1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for gpgme 1.15.1.
4#
5# Report bugs to <https://bugs.gnupg.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.gnupg.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='gpgme'
592PACKAGE_TARNAME='gpgme'
593PACKAGE_VERSION='1.15.1'
594PACKAGE_STRING='gpgme 1.15.1'
595PACKAGE_BUGREPORT='https://bugs.gnupg.org'
596PACKAGE_URL=''
597
598ac_unique_file="src/gpgme.h.in"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638emacs_local_vars_end
639emacs_local_vars_read_only
640emacs_local_vars_begin
641LTLIBOBJS
642GPGME_CONFIG_AVAIL_LANG
643GPGME_CONFIG_HOST
644GPGME_CONFIG_CFLAGS
645GPGME_CONFIG_LIBS
646GPGME_CONFIG_API_VERSION
647HAVE_UISERVER_FALSE
648HAVE_UISERVER_TRUE
649USE_DESCRIPTOR_PASSING_FALSE
650USE_DESCRIPTOR_PASSING_TRUE
651LIBASSUAN_LIBS
652LIBASSUAN_CFLAGS
653LIBASSUAN_CONFIG
654GPG_ERROR_MT_LIBS
655GPG_ERROR_MT_CFLAGS
656GPG_ERROR_LIBS
657GPG_ERROR_CFLAGS
658GPGRT_CONFIG
659GPG_ERROR_CONFIG
660GLIBC21
661LIBOBJS
662API__SSIZE_T
663API__OFF_T
664INSERT__TYPEDEFS_FOR_GPGME_H
665NEED__FILE_OFFSET_BITS
666RUN_G13_TESTS_FALSE
667RUN_G13_TESTS_TRUE
668RUN_GPGSM_TESTS_FALSE
669RUN_GPGSM_TESTS_TRUE
670RUN_GPG_TESTS_FALSE
671RUN_GPG_TESTS_TRUE
672RUN_GPGCONF_TESTS_FALSE
673RUN_GPGCONF_TESTS_TRUE
674BUILD_TIMESTAMP
675BUILD_FILEVERSION
676BUILD_VERSION
677BUILD_REVISION
678ENABLED_LANGUAGES
679PYTHONS
680PYTHON_EXTRA_LDFLAGS
681PYTHON_EXTRA_LIBS
682PYTHON_SITE_PKG
683PYTHON_LDFLAGS
684PYTHON_CPPFLAGS
685pkgpyexecdir
686pyexecdir
687pkgpythondir
688pythondir
689PYTHON_PLATFORM
690PYTHON_EXEC_PREFIX
691PYTHON_PREFIX
692PYTHON_VERSION
693PYTHON
694SWIG_LIB
695SWIG
696HAVE_DOT
697HAVE_DOXYGEN_FALSE
698HAVE_DOXYGEN_TRUE
699GRAPHVIZ
700DOXYGEN
701QTCHOOSER
702MOC2
703MOC
704GPGME_QTTEST_LIBS
705GPGME_QTTEST_CFLAGS
706GPGME_QT_LIBS
707GPGME_QT_CFLAGS
708HAVE_CXX11
709BUILD_W32_GLIB_FALSE
710BUILD_W32_GLIB_TRUE
711HAVE_MACOS_SYSTEM_FALSE
712HAVE_MACOS_SYSTEM_TRUE
713HAVE_ANDROID_SYSTEM_FALSE
714HAVE_ANDROID_SYSTEM_TRUE
715HAVE_W64_SYSTEM_FALSE
716HAVE_W64_SYSTEM_TRUE
717HAVE_W32_SYSTEM_FALSE
718HAVE_W32_SYSTEM_TRUE
719HAVE_DOSISH_SYSTEM_FALSE
720HAVE_DOSISH_SYSTEM_TRUE
721GLIB_MKENUMS
722GOBJECT_QUERY
723GLIB_GENMARSHAL
724GLIB_LIBS
725GLIB_CFLAGS
726PKG_CONFIG
727HAVE_LD_VERSION_SCRIPT_FALSE
728HAVE_LD_VERSION_SCRIPT_TRUE
729RC
730CXXCPP
731OTOOL64
732OTOOL
733LIPO
734NMEDIT
735DSYMUTIL
736MANIFEST_TOOL
737RANLIB
738ac_ct_AR
739AR
740LN_S
741NM
742ac_ct_DUMPBIN
743DUMPBIN
744LD
745FGREP
746SED
747LIBTOOL
748OBJDUMP
749DLLTOOL
750AS
751CC_FOR_BUILD
752VERSION_NUMBER
753VERSION_MICRO
754VERSION_MINOR
755VERSION_MAJOR
756GITLOG_TO_CHANGELOG
757am__fastdepCXX_FALSE
758am__fastdepCXX_TRUE
759CXXDEPMODE
760ac_ct_CXX
761CXXFLAGS
762CXX
763LDADD_FOR_TESTS_KLUDGE
764EGREP
765GREP
766CPP
767am__fastdepCC_FALSE
768am__fastdepCC_TRUE
769CCDEPMODE
770am__nodep
771AMDEPBACKSLASH
772AMDEP_FALSE
773AMDEP_TRUE
774am__include
775DEPDIR
776OBJEXT
777EXEEXT
778ac_ct_CC
779CPPFLAGS
780LDFLAGS
781CFLAGS
782CC
783SYSROOT
784host_os
785host_vendor
786host_cpu
787host
788build_os
789build_vendor
790build_cpu
791build
792MAINT
793MAINTAINER_MODE_FALSE
794MAINTAINER_MODE_TRUE
795AM_BACKSLASH
796AM_DEFAULT_VERBOSITY
797AM_DEFAULT_V
798AM_V
799am__untar
800am__tar
801AMTAR
802am__leading_dot
803SET_MAKE
804AWK
805mkdir_p
806MKDIR_P
807INSTALL_STRIP_PROGRAM
808STRIP
809install_sh
810MAKEINFO
811AUTOHEADER
812AUTOMAKE
813AUTOCONF
814ACLOCAL
815VERSION
816PACKAGE
817CYGPATH_W
818am__isrc
819INSTALL_DATA
820INSTALL_SCRIPT
821INSTALL_PROGRAM
822LIBQGPGME_LT_REVISION
823LIBQGPGME_LT_AGE
824LIBQGPGME_LT_CURRENT
825LIBGPGMEPP_LT_REVISION
826LIBGPGMEPP_LT_AGE
827LIBGPGMEPP_LT_CURRENT
828LIBGPGME_LT_REVISION
829LIBGPGME_LT_AGE
830LIBGPGME_LT_CURRENT
831target_alias
832host_alias
833build_alias
834LIBS
835ECHO_T
836ECHO_N
837ECHO_C
838DEFS
839mandir
840localedir
841libdir
842psdir
843pdfdir
844dvidir
845htmldir
846infodir
847docdir
848oldincludedir
849includedir
850runstatedir
851localstatedir
852sharedstatedir
853sysconfdir
854datadir
855datarootdir
856libexecdir
857sbindir
858bindir
859program_transform_name
860prefix
861exec_prefix
862PACKAGE_URL
863PACKAGE_BUGREPORT
864PACKAGE_STRING
865PACKAGE_VERSION
866PACKAGE_TARNAME
867PACKAGE_NAME
868PATH_SEPARATOR
869SHELL
870am__quote'
871ac_subst_files=''
872ac_user_opts='
873enable_option_checking
874enable_silent_rules
875enable_maintainer_mode
876enable_dependency_tracking
877enable_static
878enable_shared
879with_pic
880enable_fast_install
881with_gnu_ld
882with_sysroot
883enable_libtool_lock
884enable_glibtest
885enable_w32_glib
886enable_fixed_path
887enable_languages
888enable_build_timestamp
889enable_gpgconf_test
890enable_gpg_test
891enable_gpgsm_test
892enable_g13_test
893enable_largefile
894with_libgpg_error_prefix
895with_gpg_error_prefix
896with_libassuan_prefix
897enable_fd_passing
898enable_linux_getdents
899'
900      ac_precious_vars='build_alias
901host_alias
902target_alias
903SYSROOT
904CC
905CFLAGS
906LDFLAGS
907LIBS
908CPPFLAGS
909CPP
910CXX
911CXXFLAGS
912CCC
913CC_FOR_BUILD
914CXXCPP
915PKG_CONFIG
916GPGME_QT_CFLAGS
917GPGME_QT_LIBS
918GPGME_QTTEST_CFLAGS
919GPGME_QTTEST_LIBS
920PYTHON
921PYTHON_VERSION'
922
923
924# Initialize some variables set by options.
925ac_init_help=
926ac_init_version=false
927ac_unrecognized_opts=
928ac_unrecognized_sep=
929# The variables have the same names as the options, with
930# dashes changed to underlines.
931cache_file=/dev/null
932exec_prefix=NONE
933no_create=
934no_recursion=
935prefix=NONE
936program_prefix=NONE
937program_suffix=NONE
938program_transform_name=s,x,x,
939silent=
940site=
941srcdir=
942verbose=
943x_includes=NONE
944x_libraries=NONE
945
946# Installation directory options.
947# These are left unexpanded so users can "make install exec_prefix=/foo"
948# and all the variables that are supposed to be based on exec_prefix
949# by default will actually change.
950# Use braces instead of parens because sh, perl, etc. also accept them.
951# (The list follows the same order as the GNU Coding Standards.)
952bindir='${exec_prefix}/bin'
953sbindir='${exec_prefix}/sbin'
954libexecdir='${exec_prefix}/libexec'
955datarootdir='${prefix}/share'
956datadir='${datarootdir}'
957sysconfdir='${prefix}/etc'
958sharedstatedir='${prefix}/com'
959localstatedir='${prefix}/var'
960runstatedir='${localstatedir}/run'
961includedir='${prefix}/include'
962oldincludedir='/usr/include'
963docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964infodir='${datarootdir}/info'
965htmldir='${docdir}'
966dvidir='${docdir}'
967pdfdir='${docdir}'
968psdir='${docdir}'
969libdir='${exec_prefix}/lib'
970localedir='${datarootdir}/locale'
971mandir='${datarootdir}/man'
972
973ac_prev=
974ac_dashdash=
975for ac_option
976do
977  # If the previous option needs an argument, assign it.
978  if test -n "$ac_prev"; then
979    eval $ac_prev=\$ac_option
980    ac_prev=
981    continue
982  fi
983
984  case $ac_option in
985  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986  *=)   ac_optarg= ;;
987  *)    ac_optarg=yes ;;
988  esac
989
990  # Accept the important Cygnus configure options, so we can diagnose typos.
991
992  case $ac_dashdash$ac_option in
993  --)
994    ac_dashdash=yes ;;
995
996  -bindir | --bindir | --bindi | --bind | --bin | --bi)
997    ac_prev=bindir ;;
998  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999    bindir=$ac_optarg ;;
1000
1001  -build | --build | --buil | --bui | --bu)
1002    ac_prev=build_alias ;;
1003  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004    build_alias=$ac_optarg ;;
1005
1006  -cache-file | --cache-file | --cache-fil | --cache-fi \
1007  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008    ac_prev=cache_file ;;
1009  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011    cache_file=$ac_optarg ;;
1012
1013  --config-cache | -C)
1014    cache_file=config.cache ;;
1015
1016  -datadir | --datadir | --datadi | --datad)
1017    ac_prev=datadir ;;
1018  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019    datadir=$ac_optarg ;;
1020
1021  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022  | --dataroo | --dataro | --datar)
1023    ac_prev=datarootdir ;;
1024  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026    datarootdir=$ac_optarg ;;
1027
1028  -disable-* | --disable-*)
1029    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032      as_fn_error $? "invalid feature name: $ac_useropt"
1033    ac_useropt_orig=$ac_useropt
1034    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035    case $ac_user_opts in
1036      *"
1037"enable_$ac_useropt"
1038"*) ;;
1039      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040	 ac_unrecognized_sep=', ';;
1041    esac
1042    eval enable_$ac_useropt=no ;;
1043
1044  -docdir | --docdir | --docdi | --doc | --do)
1045    ac_prev=docdir ;;
1046  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047    docdir=$ac_optarg ;;
1048
1049  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050    ac_prev=dvidir ;;
1051  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052    dvidir=$ac_optarg ;;
1053
1054  -enable-* | --enable-*)
1055    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056    # Reject names that are not valid shell variable names.
1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058      as_fn_error $? "invalid feature name: $ac_useropt"
1059    ac_useropt_orig=$ac_useropt
1060    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061    case $ac_user_opts in
1062      *"
1063"enable_$ac_useropt"
1064"*) ;;
1065      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066	 ac_unrecognized_sep=', ';;
1067    esac
1068    eval enable_$ac_useropt=\$ac_optarg ;;
1069
1070  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072  | --exec | --exe | --ex)
1073    ac_prev=exec_prefix ;;
1074  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076  | --exec=* | --exe=* | --ex=*)
1077    exec_prefix=$ac_optarg ;;
1078
1079  -gas | --gas | --ga | --g)
1080    # Obsolete; use --with-gas.
1081    with_gas=yes ;;
1082
1083  -help | --help | --hel | --he | -h)
1084    ac_init_help=long ;;
1085  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086    ac_init_help=recursive ;;
1087  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088    ac_init_help=short ;;
1089
1090  -host | --host | --hos | --ho)
1091    ac_prev=host_alias ;;
1092  -host=* | --host=* | --hos=* | --ho=*)
1093    host_alias=$ac_optarg ;;
1094
1095  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096    ac_prev=htmldir ;;
1097  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098  | --ht=*)
1099    htmldir=$ac_optarg ;;
1100
1101  -includedir | --includedir | --includedi | --included | --include \
1102  | --includ | --inclu | --incl | --inc)
1103    ac_prev=includedir ;;
1104  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105  | --includ=* | --inclu=* | --incl=* | --inc=*)
1106    includedir=$ac_optarg ;;
1107
1108  -infodir | --infodir | --infodi | --infod | --info | --inf)
1109    ac_prev=infodir ;;
1110  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111    infodir=$ac_optarg ;;
1112
1113  -libdir | --libdir | --libdi | --libd)
1114    ac_prev=libdir ;;
1115  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116    libdir=$ac_optarg ;;
1117
1118  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119  | --libexe | --libex | --libe)
1120    ac_prev=libexecdir ;;
1121  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122  | --libexe=* | --libex=* | --libe=*)
1123    libexecdir=$ac_optarg ;;
1124
1125  -localedir | --localedir | --localedi | --localed | --locale)
1126    ac_prev=localedir ;;
1127  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128    localedir=$ac_optarg ;;
1129
1130  -localstatedir | --localstatedir | --localstatedi | --localstated \
1131  | --localstate | --localstat | --localsta | --localst | --locals)
1132    ac_prev=localstatedir ;;
1133  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135    localstatedir=$ac_optarg ;;
1136
1137  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138    ac_prev=mandir ;;
1139  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140    mandir=$ac_optarg ;;
1141
1142  -nfp | --nfp | --nf)
1143    # Obsolete; use --without-fp.
1144    with_fp=no ;;
1145
1146  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147  | --no-cr | --no-c | -n)
1148    no_create=yes ;;
1149
1150  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152    no_recursion=yes ;;
1153
1154  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156  | --oldin | --oldi | --old | --ol | --o)
1157    ac_prev=oldincludedir ;;
1158  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161    oldincludedir=$ac_optarg ;;
1162
1163  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164    ac_prev=prefix ;;
1165  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166    prefix=$ac_optarg ;;
1167
1168  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169  | --program-pre | --program-pr | --program-p)
1170    ac_prev=program_prefix ;;
1171  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173    program_prefix=$ac_optarg ;;
1174
1175  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176  | --program-suf | --program-su | --program-s)
1177    ac_prev=program_suffix ;;
1178  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180    program_suffix=$ac_optarg ;;
1181
1182  -program-transform-name | --program-transform-name \
1183  | --program-transform-nam | --program-transform-na \
1184  | --program-transform-n | --program-transform- \
1185  | --program-transform | --program-transfor \
1186  | --program-transfo | --program-transf \
1187  | --program-trans | --program-tran \
1188  | --progr-tra | --program-tr | --program-t)
1189    ac_prev=program_transform_name ;;
1190  -program-transform-name=* | --program-transform-name=* \
1191  | --program-transform-nam=* | --program-transform-na=* \
1192  | --program-transform-n=* | --program-transform-=* \
1193  | --program-transform=* | --program-transfor=* \
1194  | --program-transfo=* | --program-transf=* \
1195  | --program-trans=* | --program-tran=* \
1196  | --progr-tra=* | --program-tr=* | --program-t=*)
1197    program_transform_name=$ac_optarg ;;
1198
1199  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200    ac_prev=pdfdir ;;
1201  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202    pdfdir=$ac_optarg ;;
1203
1204  -psdir | --psdir | --psdi | --psd | --ps)
1205    ac_prev=psdir ;;
1206  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207    psdir=$ac_optarg ;;
1208
1209  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210  | -silent | --silent | --silen | --sile | --sil)
1211    silent=yes ;;
1212
1213  -runstatedir | --runstatedir | --runstatedi | --runstated \
1214  | --runstate | --runstat | --runsta | --runst | --runs \
1215  | --run | --ru | --r)
1216    ac_prev=runstatedir ;;
1217  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1218  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1219  | --run=* | --ru=* | --r=*)
1220    runstatedir=$ac_optarg ;;
1221
1222  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223    ac_prev=sbindir ;;
1224  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225  | --sbi=* | --sb=*)
1226    sbindir=$ac_optarg ;;
1227
1228  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230  | --sharedst | --shareds | --shared | --share | --shar \
1231  | --sha | --sh)
1232    ac_prev=sharedstatedir ;;
1233  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236  | --sha=* | --sh=*)
1237    sharedstatedir=$ac_optarg ;;
1238
1239  -site | --site | --sit)
1240    ac_prev=site ;;
1241  -site=* | --site=* | --sit=*)
1242    site=$ac_optarg ;;
1243
1244  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245    ac_prev=srcdir ;;
1246  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247    srcdir=$ac_optarg ;;
1248
1249  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250  | --syscon | --sysco | --sysc | --sys | --sy)
1251    ac_prev=sysconfdir ;;
1252  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254    sysconfdir=$ac_optarg ;;
1255
1256  -target | --target | --targe | --targ | --tar | --ta | --t)
1257    ac_prev=target_alias ;;
1258  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259    target_alias=$ac_optarg ;;
1260
1261  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262    verbose=yes ;;
1263
1264  -version | --version | --versio | --versi | --vers | -V)
1265    ac_init_version=: ;;
1266
1267  -with-* | --with-*)
1268    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269    # Reject names that are not valid shell variable names.
1270    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271      as_fn_error $? "invalid package name: $ac_useropt"
1272    ac_useropt_orig=$ac_useropt
1273    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274    case $ac_user_opts in
1275      *"
1276"with_$ac_useropt"
1277"*) ;;
1278      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279	 ac_unrecognized_sep=', ';;
1280    esac
1281    eval with_$ac_useropt=\$ac_optarg ;;
1282
1283  -without-* | --without-*)
1284    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285    # Reject names that are not valid shell variable names.
1286    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287      as_fn_error $? "invalid package name: $ac_useropt"
1288    ac_useropt_orig=$ac_useropt
1289    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290    case $ac_user_opts in
1291      *"
1292"with_$ac_useropt"
1293"*) ;;
1294      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1295	 ac_unrecognized_sep=', ';;
1296    esac
1297    eval with_$ac_useropt=no ;;
1298
1299  --x)
1300    # Obsolete; use --with-x.
1301    with_x=yes ;;
1302
1303  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304  | --x-incl | --x-inc | --x-in | --x-i)
1305    ac_prev=x_includes ;;
1306  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308    x_includes=$ac_optarg ;;
1309
1310  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312    ac_prev=x_libraries ;;
1313  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315    x_libraries=$ac_optarg ;;
1316
1317  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1318Try \`$0 --help' for more information"
1319    ;;
1320
1321  *=*)
1322    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323    # Reject names that are not valid shell variable names.
1324    case $ac_envvar in #(
1325      '' | [0-9]* | *[!_$as_cr_alnum]* )
1326      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1327    esac
1328    eval $ac_envvar=\$ac_optarg
1329    export $ac_envvar ;;
1330
1331  *)
1332    # FIXME: should be removed in autoconf 3.0.
1333    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1337    ;;
1338
1339  esac
1340done
1341
1342if test -n "$ac_prev"; then
1343  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344  as_fn_error $? "missing argument to $ac_option"
1345fi
1346
1347if test -n "$ac_unrecognized_opts"; then
1348  case $enable_option_checking in
1349    no) ;;
1350    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1351    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1352  esac
1353fi
1354
1355# Check all directory arguments for consistency.
1356for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357		datadir sysconfdir sharedstatedir localstatedir includedir \
1358		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359		libdir localedir mandir runstatedir
1360do
1361  eval ac_val=\$$ac_var
1362  # Remove trailing slashes.
1363  case $ac_val in
1364    */ )
1365      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1366      eval $ac_var=\$ac_val;;
1367  esac
1368  # Be sure to have absolute directory names.
1369  case $ac_val in
1370    [\\/$]* | ?:[\\/]* )  continue;;
1371    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372  esac
1373  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1374done
1375
1376# There might be people who depend on the old broken behavior: `$host'
1377# used to hold the argument of --host etc.
1378# FIXME: To remove some day.
1379build=$build_alias
1380host=$host_alias
1381target=$target_alias
1382
1383# FIXME: To remove some day.
1384if test "x$host_alias" != x; then
1385  if test "x$build_alias" = x; then
1386    cross_compiling=maybe
1387  elif test "x$build_alias" != "x$host_alias"; then
1388    cross_compiling=yes
1389  fi
1390fi
1391
1392ac_tool_prefix=
1393test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395test "$silent" = yes && exec 6>/dev/null
1396
1397
1398ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399ac_ls_di=`ls -di .` &&
1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401  as_fn_error $? "working directory cannot be determined"
1402test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403  as_fn_error $? "pwd does not report name of working directory"
1404
1405
1406# Find the source files, if location was not specified.
1407if test -z "$srcdir"; then
1408  ac_srcdir_defaulted=yes
1409  # Try the directory containing this script, then the parent directory.
1410  ac_confdir=`$as_dirname -- "$as_myself" ||
1411$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412	 X"$as_myself" : 'X\(//\)[^/]' \| \
1413	 X"$as_myself" : 'X\(//\)$' \| \
1414	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415$as_echo X"$as_myself" |
1416    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417	    s//\1/
1418	    q
1419	  }
1420	  /^X\(\/\/\)[^/].*/{
1421	    s//\1/
1422	    q
1423	  }
1424	  /^X\(\/\/\)$/{
1425	    s//\1/
1426	    q
1427	  }
1428	  /^X\(\/\).*/{
1429	    s//\1/
1430	    q
1431	  }
1432	  s/.*/./; q'`
1433  srcdir=$ac_confdir
1434  if test ! -r "$srcdir/$ac_unique_file"; then
1435    srcdir=..
1436  fi
1437else
1438  ac_srcdir_defaulted=no
1439fi
1440if test ! -r "$srcdir/$ac_unique_file"; then
1441  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1443fi
1444ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445ac_abs_confdir=`(
1446	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1447	pwd)`
1448# When building in place, set srcdir=.
1449if test "$ac_abs_confdir" = "$ac_pwd"; then
1450  srcdir=.
1451fi
1452# Remove unnecessary trailing slashes from srcdir.
1453# Double slashes in file names in object file debugging info
1454# mess up M-x gdb in Emacs.
1455case $srcdir in
1456*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457esac
1458for ac_var in $ac_precious_vars; do
1459  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460  eval ac_env_${ac_var}_value=\$${ac_var}
1461  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463done
1464
1465#
1466# Report the --help message.
1467#
1468if test "$ac_init_help" = "long"; then
1469  # Omit some internal or obsolete options to make the list less imposing.
1470  # This message is too long to be a string in the A/UX 3.1 sh.
1471  cat <<_ACEOF
1472\`configure' configures gpgme 1.15.1 to adapt to many kinds of systems.
1473
1474Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479Defaults for the options are specified in brackets.
1480
1481Configuration:
1482  -h, --help              display this help and exit
1483      --help=short        display options specific to this package
1484      --help=recursive    display the short help of all the included packages
1485  -V, --version           display version information and exit
1486  -q, --quiet, --silent   do not print \`checking ...' messages
1487      --cache-file=FILE   cache test results in FILE [disabled]
1488  -C, --config-cache      alias for \`--cache-file=config.cache'
1489  -n, --no-create         do not create output files
1490      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492Installation directories:
1493  --prefix=PREFIX         install architecture-independent files in PREFIX
1494                          [$ac_default_prefix]
1495  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                          [PREFIX]
1497
1498By default, \`make install' will install all the files in
1499\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501for instance \`--prefix=\$HOME'.
1502
1503For better control, use the options below.
1504
1505Fine tuning of the installation directories:
1506  --bindir=DIR            user executables [EPREFIX/bin]
1507  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1508  --libexecdir=DIR        program executables [EPREFIX/libexec]
1509  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1510  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1511  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1512  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1513  --libdir=DIR            object code libraries [EPREFIX/lib]
1514  --includedir=DIR        C header files [PREFIX/include]
1515  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1516  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1517  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1518  --infodir=DIR           info documentation [DATAROOTDIR/info]
1519  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1520  --mandir=DIR            man documentation [DATAROOTDIR/man]
1521  --docdir=DIR            documentation root [DATAROOTDIR/doc/gpgme]
1522  --htmldir=DIR           html documentation [DOCDIR]
1523  --dvidir=DIR            dvi documentation [DOCDIR]
1524  --pdfdir=DIR            pdf documentation [DOCDIR]
1525  --psdir=DIR             ps documentation [DOCDIR]
1526_ACEOF
1527
1528  cat <<\_ACEOF
1529
1530Program names:
1531  --program-prefix=PREFIX            prepend PREFIX to installed program names
1532  --program-suffix=SUFFIX            append SUFFIX to installed program names
1533  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1534
1535System types:
1536  --build=BUILD     configure for building on BUILD [guessed]
1537  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538_ACEOF
1539fi
1540
1541if test -n "$ac_init_help"; then
1542  case $ac_init_help in
1543     short | recursive ) echo "Configuration of gpgme 1.15.1:";;
1544   esac
1545  cat <<\_ACEOF
1546
1547Optional Features:
1548  --disable-option-checking  ignore unrecognized --enable/--with options
1549  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1550  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1551  --enable-silent-rules   less verbose build output (undo: "make V=1")
1552  --disable-silent-rules  verbose build output (undo: "make V=0")
1553  --enable-maintainer-mode
1554                          enable make rules and dependencies not useful (and
1555                          sometimes confusing) to the casual installer
1556  --enable-dependency-tracking
1557                          do not reject slow dependency extractors
1558  --disable-dependency-tracking
1559                          speeds up one-time build
1560  --enable-static[=PKGS]  build static libraries [default=no]
1561  --enable-shared[=PKGS]  build shared libraries [default=yes]
1562  --enable-fast-install[=PKGS]
1563                          optimize for fast installation [default=yes]
1564  --disable-libtool-lock  avoid locking (might break parallel builds)
1565  --disable-glibtest      do not try to compile and run a test GLIB program
1566  --enable-w32-glib       build GPGME Glib for W32
1567  --enable-fixed-path=PATH
1568                          locate binaries only via this PATH
1569  --enable-languages=languages
1570                          enable only specific language bindings
1571  --enable-build-timestamp
1572                          set an explicit build timestamp for reproducibility.
1573                          (default is the current time in ISO-8601 format)
1574  --disable-gpgconf-test  disable GPGCONF regression test
1575  --disable-gpg-test      disable GPG regression test
1576  --disable-gpgsm-test    disable GPGSM regression test
1577  --disable-g13-test      disable G13 regression test
1578  --disable-largefile     omit support for large files
1579  --disable-fd-passing    do not use FD passing
1580  --disable-linux-getdents
1581                          do not use SYS_getdents on Linux
1582
1583Optional Packages:
1584  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1585  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1586  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1587                          both]
1588  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1589  --with-sysroot=DIR Search for dependent libraries within DIR
1590                        (or the compiler's sysroot if not specified).
1591  --with-libgpg-error-prefix=PFX
1592                          prefix where GPG Error is installed (optional)
1593
1594  --with-libassuan-prefix=PFX
1595                          prefix where LIBASSUAN is installed (optional)
1596
1597Some influential environment variables:
1598  SYSROOT     locate config scripts also below that directory
1599  CC          C compiler command
1600  CFLAGS      C compiler flags
1601  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1602              nonstandard directory <lib dir>
1603  LIBS        libraries to pass to the linker, e.g. -l<library>
1604  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1605              you have headers in a nonstandard directory <include dir>
1606  CPP         C preprocessor
1607  CXX         C++ compiler command
1608  CXXFLAGS    C++ compiler flags
1609  CC_FOR_BUILD
1610              build system C compiler
1611  CXXCPP      C++ preprocessor
1612  PKG_CONFIG  path to pkg-config utility
1613  GPGME_QT_CFLAGS
1614              C compiler flags for GPGME_QT, overriding pkg-config
1615  GPGME_QT_LIBS
1616              linker flags for GPGME_QT, overriding pkg-config
1617  GPGME_QTTEST_CFLAGS
1618              C compiler flags for GPGME_QTTEST, overriding pkg-config
1619  GPGME_QTTEST_LIBS
1620              linker flags for GPGME_QTTEST, overriding pkg-config
1621  PYTHON      the Python interpreter
1622  PYTHON_VERSION
1623              The installed Python version to use, for example '2.3'. This
1624              string will be appended to the Python interpreter canonical
1625              name.
1626
1627Use these variables to override the choices made by `configure' or to help
1628it to find libraries and programs with nonstandard names/locations.
1629
1630Report bugs to <https://bugs.gnupg.org>.
1631_ACEOF
1632ac_status=$?
1633fi
1634
1635if test "$ac_init_help" = "recursive"; then
1636  # If there are subdirs, report their specific --help.
1637  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638    test -d "$ac_dir" ||
1639      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640      continue
1641    ac_builddir=.
1642
1643case "$ac_dir" in
1644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645*)
1646  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647  # A ".." for each directory in $ac_dir_suffix.
1648  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649  case $ac_top_builddir_sub in
1650  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652  esac ;;
1653esac
1654ac_abs_top_builddir=$ac_pwd
1655ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656# for backward compatibility:
1657ac_top_builddir=$ac_top_build_prefix
1658
1659case $srcdir in
1660  .)  # We are building in place.
1661    ac_srcdir=.
1662    ac_top_srcdir=$ac_top_builddir_sub
1663    ac_abs_top_srcdir=$ac_pwd ;;
1664  [\\/]* | ?:[\\/]* )  # Absolute name.
1665    ac_srcdir=$srcdir$ac_dir_suffix;
1666    ac_top_srcdir=$srcdir
1667    ac_abs_top_srcdir=$srcdir ;;
1668  *) # Relative name.
1669    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670    ac_top_srcdir=$ac_top_build_prefix$srcdir
1671    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672esac
1673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674
1675    cd "$ac_dir" || { ac_status=$?; continue; }
1676    # Check for guested configure.
1677    if test -f "$ac_srcdir/configure.gnu"; then
1678      echo &&
1679      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680    elif test -f "$ac_srcdir/configure"; then
1681      echo &&
1682      $SHELL "$ac_srcdir/configure" --help=recursive
1683    else
1684      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685    fi || ac_status=$?
1686    cd "$ac_pwd" || { ac_status=$?; break; }
1687  done
1688fi
1689
1690test -n "$ac_init_help" && exit $ac_status
1691if $ac_init_version; then
1692  cat <<\_ACEOF
1693gpgme configure 1.15.1
1694generated by GNU Autoconf 2.69
1695
1696Copyright (C) 2012 Free Software Foundation, Inc.
1697This configure script is free software; the Free Software Foundation
1698gives unlimited permission to copy, distribute and modify it.
1699_ACEOF
1700  exit
1701fi
1702
1703## ------------------------ ##
1704## Autoconf initialization. ##
1705## ------------------------ ##
1706
1707# ac_fn_c_try_compile LINENO
1708# --------------------------
1709# Try to compile conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_compile ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  rm -f conftest.$ac_objext
1714  if { { ac_try="$ac_compile"
1715case "(($ac_try" in
1716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717  *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721  (eval "$ac_compile") 2>conftest.err
1722  ac_status=$?
1723  if test -s conftest.err; then
1724    grep -v '^ *+' conftest.err >conftest.er1
1725    cat conftest.er1 >&5
1726    mv -f conftest.er1 conftest.err
1727  fi
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; } && {
1730	 test -z "$ac_c_werror_flag" ||
1731	 test ! -s conftest.err
1732       } && test -s conftest.$ac_objext; then :
1733  ac_retval=0
1734else
1735  $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738	ac_retval=1
1739fi
1740  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741  as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_compile
1744
1745# ac_fn_c_try_cpp LINENO
1746# ----------------------
1747# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_cpp ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  if { { ac_try="$ac_cpp conftest.$ac_ext"
1752case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759  ac_status=$?
1760  if test -s conftest.err; then
1761    grep -v '^ *+' conftest.err >conftest.er1
1762    cat conftest.er1 >&5
1763    mv -f conftest.er1 conftest.err
1764  fi
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; } > conftest.i && {
1767	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768	 test ! -s conftest.err
1769       }; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775    ac_retval=1
1776fi
1777  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778  as_fn_set_status $ac_retval
1779
1780} # ac_fn_c_try_cpp
1781
1782# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783# -------------------------------------------------------
1784# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785# the include files in INCLUDES and setting the cache variable VAR
1786# accordingly.
1787ac_fn_c_check_header_mongrel ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  if eval \${$3+:} false; then :
1791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if eval \${$3+:} false; then :
1794  $as_echo_n "(cached) " >&6
1795fi
1796eval ac_res=\$$3
1797	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
1799else
1800  # Is the header compilable?
1801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802$as_echo_n "checking $2 usability... " >&6; }
1803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h.  */
1805$4
1806#include <$2>
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809  ac_header_compiler=yes
1810else
1811  ac_header_compiler=no
1812fi
1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815$as_echo "$ac_header_compiler" >&6; }
1816
1817# Is the header present?
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819$as_echo_n "checking $2 presence... " >&6; }
1820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822#include <$2>
1823_ACEOF
1824if ac_fn_c_try_cpp "$LINENO"; then :
1825  ac_header_preproc=yes
1826else
1827  ac_header_preproc=no
1828fi
1829rm -f conftest.err conftest.i conftest.$ac_ext
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831$as_echo "$ac_header_preproc" >&6; }
1832
1833# So?  What about this header?
1834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835  yes:no: )
1836    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840    ;;
1841  no:yes:* )
1842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1845$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1849$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852( $as_echo "## ------------------------------------- ##
1853## Report this to https://bugs.gnupg.org ##
1854## ------------------------------------- ##"
1855     ) | sed "s/^/$as_me: WARNING:     /" >&2
1856    ;;
1857esac
1858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if eval \${$3+:} false; then :
1861  $as_echo_n "(cached) " >&6
1862else
1863  eval "$3=\$ac_header_compiler"
1864fi
1865eval ac_res=\$$3
1866	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868fi
1869  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871} # ac_fn_c_check_header_mongrel
1872
1873# ac_fn_c_try_run LINENO
1874# ----------------------
1875# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1876# that executables *can* be run.
1877ac_fn_c_try_run ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  if { { ac_try="$ac_link"
1881case "(($ac_try" in
1882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883  *) ac_try_echo=$ac_try;;
1884esac
1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886$as_echo "$ac_try_echo"; } >&5
1887  (eval "$ac_link") 2>&5
1888  ac_status=$?
1889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1891  { { case "(($ac_try" in
1892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893  *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897  (eval "$ac_try") 2>&5
1898  ac_status=$?
1899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900  test $ac_status = 0; }; }; then :
1901  ac_retval=0
1902else
1903  $as_echo "$as_me: program exited with status $ac_status" >&5
1904       $as_echo "$as_me: failed program was:" >&5
1905sed 's/^/| /' conftest.$ac_ext >&5
1906
1907       ac_retval=$ac_status
1908fi
1909  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911  as_fn_set_status $ac_retval
1912
1913} # ac_fn_c_try_run
1914
1915# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916# -------------------------------------------------------
1917# Tests whether HEADER exists and can be compiled using the include files in
1918# INCLUDES, setting the cache variable VAR accordingly.
1919ac_fn_c_check_header_compile ()
1920{
1921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
1924if eval \${$3+:} false; then :
1925  $as_echo_n "(cached) " >&6
1926else
1927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h.  */
1929$4
1930#include <$2>
1931_ACEOF
1932if ac_fn_c_try_compile "$LINENO"; then :
1933  eval "$3=yes"
1934else
1935  eval "$3=no"
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
1940	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
1942  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944} # ac_fn_c_check_header_compile
1945
1946# ac_fn_c_try_link LINENO
1947# -----------------------
1948# Try to link conftest.$ac_ext, and return whether this succeeded.
1949ac_fn_c_try_link ()
1950{
1951  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952  rm -f conftest.$ac_objext conftest$ac_exeext
1953  if { { ac_try="$ac_link"
1954case "(($ac_try" in
1955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956  *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959$as_echo "$ac_try_echo"; } >&5
1960  (eval "$ac_link") 2>conftest.err
1961  ac_status=$?
1962  if test -s conftest.err; then
1963    grep -v '^ *+' conftest.err >conftest.er1
1964    cat conftest.er1 >&5
1965    mv -f conftest.er1 conftest.err
1966  fi
1967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968  test $ac_status = 0; } && {
1969	 test -z "$ac_c_werror_flag" ||
1970	 test ! -s conftest.err
1971       } && test -s conftest$ac_exeext && {
1972	 test "$cross_compiling" = yes ||
1973	 test -x conftest$ac_exeext
1974       }; then :
1975  ac_retval=0
1976else
1977  $as_echo "$as_me: failed program was:" >&5
1978sed 's/^/| /' conftest.$ac_ext >&5
1979
1980	ac_retval=1
1981fi
1982  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1983  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1984  # interfere with the next link command; also delete a directory that is
1985  # left behind by Apple's compiler.  We do this before executing the actions.
1986  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988  as_fn_set_status $ac_retval
1989
1990} # ac_fn_c_try_link
1991
1992# ac_fn_cxx_try_compile LINENO
1993# ----------------------------
1994# Try to compile conftest.$ac_ext, and return whether this succeeded.
1995ac_fn_cxx_try_compile ()
1996{
1997  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998  rm -f conftest.$ac_objext
1999  if { { ac_try="$ac_compile"
2000case "(($ac_try" in
2001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002  *) ac_try_echo=$ac_try;;
2003esac
2004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005$as_echo "$ac_try_echo"; } >&5
2006  (eval "$ac_compile") 2>conftest.err
2007  ac_status=$?
2008  if test -s conftest.err; then
2009    grep -v '^ *+' conftest.err >conftest.er1
2010    cat conftest.er1 >&5
2011    mv -f conftest.er1 conftest.err
2012  fi
2013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014  test $ac_status = 0; } && {
2015	 test -z "$ac_cxx_werror_flag" ||
2016	 test ! -s conftest.err
2017       } && test -s conftest.$ac_objext; then :
2018  ac_retval=0
2019else
2020  $as_echo "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023	ac_retval=1
2024fi
2025  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026  as_fn_set_status $ac_retval
2027
2028} # ac_fn_cxx_try_compile
2029
2030# ac_fn_c_check_func LINENO FUNC VAR
2031# ----------------------------------
2032# Tests whether FUNC exists, setting the cache variable VAR accordingly
2033ac_fn_c_check_func ()
2034{
2035  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037$as_echo_n "checking for $2... " >&6; }
2038if eval \${$3+:} false; then :
2039  $as_echo_n "(cached) " >&6
2040else
2041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h.  */
2043/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2045#define $2 innocuous_$2
2046
2047/* System header to define __stub macros and hopefully few prototypes,
2048    which can conflict with char $2 (); below.
2049    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050    <limits.h> exists even on freestanding compilers.  */
2051
2052#ifdef __STDC__
2053# include <limits.h>
2054#else
2055# include <assert.h>
2056#endif
2057
2058#undef $2
2059
2060/* Override any GCC internal prototype to avoid an error.
2061   Use char because int might match the return type of a GCC
2062   builtin and then its argument prototype would still apply.  */
2063#ifdef __cplusplus
2064extern "C"
2065#endif
2066char $2 ();
2067/* The GNU C library defines this for functions which it implements
2068    to always fail with ENOSYS.  Some functions are actually named
2069    something starting with __ and the normal name is an alias.  */
2070#if defined __stub_$2 || defined __stub___$2
2071choke me
2072#endif
2073
2074int
2075main ()
2076{
2077return $2 ();
2078  ;
2079  return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_link "$LINENO"; then :
2083  eval "$3=yes"
2084else
2085  eval "$3=no"
2086fi
2087rm -f core conftest.err conftest.$ac_objext \
2088    conftest$ac_exeext conftest.$ac_ext
2089fi
2090eval ac_res=\$$3
2091	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092$as_echo "$ac_res" >&6; }
2093  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094
2095} # ac_fn_c_check_func
2096
2097# ac_fn_cxx_try_cpp LINENO
2098# ------------------------
2099# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100ac_fn_cxx_try_cpp ()
2101{
2102  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103  if { { ac_try="$ac_cpp conftest.$ac_ext"
2104case "(($ac_try" in
2105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106  *) ac_try_echo=$ac_try;;
2107esac
2108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109$as_echo "$ac_try_echo"; } >&5
2110  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111  ac_status=$?
2112  if test -s conftest.err; then
2113    grep -v '^ *+' conftest.err >conftest.er1
2114    cat conftest.er1 >&5
2115    mv -f conftest.er1 conftest.err
2116  fi
2117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118  test $ac_status = 0; } > conftest.i && {
2119	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120	 test ! -s conftest.err
2121       }; then :
2122  ac_retval=0
2123else
2124  $as_echo "$as_me: failed program was:" >&5
2125sed 's/^/| /' conftest.$ac_ext >&5
2126
2127    ac_retval=1
2128fi
2129  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130  as_fn_set_status $ac_retval
2131
2132} # ac_fn_cxx_try_cpp
2133
2134# ac_fn_cxx_try_link LINENO
2135# -------------------------
2136# Try to link conftest.$ac_ext, and return whether this succeeded.
2137ac_fn_cxx_try_link ()
2138{
2139  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140  rm -f conftest.$ac_objext conftest$ac_exeext
2141  if { { ac_try="$ac_link"
2142case "(($ac_try" in
2143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144  *) ac_try_echo=$ac_try;;
2145esac
2146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147$as_echo "$ac_try_echo"; } >&5
2148  (eval "$ac_link") 2>conftest.err
2149  ac_status=$?
2150  if test -s conftest.err; then
2151    grep -v '^ *+' conftest.err >conftest.er1
2152    cat conftest.er1 >&5
2153    mv -f conftest.er1 conftest.err
2154  fi
2155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156  test $ac_status = 0; } && {
2157	 test -z "$ac_cxx_werror_flag" ||
2158	 test ! -s conftest.err
2159       } && test -s conftest$ac_exeext && {
2160	 test "$cross_compiling" = yes ||
2161	 test -x conftest$ac_exeext
2162       }; then :
2163  ac_retval=0
2164else
2165  $as_echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168	ac_retval=1
2169fi
2170  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172  # interfere with the next link command; also delete a directory that is
2173  # left behind by Apple's compiler.  We do this before executing the actions.
2174  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176  as_fn_set_status $ac_retval
2177
2178} # ac_fn_cxx_try_link
2179
2180# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2181# --------------------------------------------
2182# Tries to find the compile-time value of EXPR in a program that includes
2183# INCLUDES, setting VAR accordingly. Returns whether the value could be
2184# computed
2185ac_fn_c_compute_int ()
2186{
2187  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188  if test "$cross_compiling" = yes; then
2189    # Depending upon the size, compute the lo and hi bounds.
2190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h.  */
2192$4
2193int
2194main ()
2195{
2196static int test_array [1 - 2 * !(($2) >= 0)];
2197test_array [0] = 0;
2198return test_array [0];
2199
2200  ;
2201  return 0;
2202}
2203_ACEOF
2204if ac_fn_c_try_compile "$LINENO"; then :
2205  ac_lo=0 ac_mid=0
2206  while :; do
2207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h.  */
2209$4
2210int
2211main ()
2212{
2213static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214test_array [0] = 0;
2215return test_array [0];
2216
2217  ;
2218  return 0;
2219}
2220_ACEOF
2221if ac_fn_c_try_compile "$LINENO"; then :
2222  ac_hi=$ac_mid; break
2223else
2224  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2225			if test $ac_lo -le $ac_mid; then
2226			  ac_lo= ac_hi=
2227			  break
2228			fi
2229			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232  done
2233else
2234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h.  */
2236$4
2237int
2238main ()
2239{
2240static int test_array [1 - 2 * !(($2) < 0)];
2241test_array [0] = 0;
2242return test_array [0];
2243
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248if ac_fn_c_try_compile "$LINENO"; then :
2249  ac_hi=-1 ac_mid=-1
2250  while :; do
2251    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252/* end confdefs.h.  */
2253$4
2254int
2255main ()
2256{
2257static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2258test_array [0] = 0;
2259return test_array [0];
2260
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266  ac_lo=$ac_mid; break
2267else
2268  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2269			if test $ac_mid -le $ac_hi; then
2270			  ac_lo= ac_hi=
2271			  break
2272			fi
2273			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276  done
2277else
2278  ac_lo= ac_hi=
2279fi
2280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281fi
2282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283# Binary search between lo and hi bounds.
2284while test "x$ac_lo" != "x$ac_hi"; do
2285  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h.  */
2288$4
2289int
2290main ()
2291{
2292static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2293test_array [0] = 0;
2294return test_array [0];
2295
2296  ;
2297  return 0;
2298}
2299_ACEOF
2300if ac_fn_c_try_compile "$LINENO"; then :
2301  ac_hi=$ac_mid
2302else
2303  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2304fi
2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306done
2307case $ac_lo in #((
2308?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2309'') ac_retval=1 ;;
2310esac
2311  else
2312    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h.  */
2314$4
2315static long int longval () { return $2; }
2316static unsigned long int ulongval () { return $2; }
2317#include <stdio.h>
2318#include <stdlib.h>
2319int
2320main ()
2321{
2322
2323  FILE *f = fopen ("conftest.val", "w");
2324  if (! f)
2325    return 1;
2326  if (($2) < 0)
2327    {
2328      long int i = longval ();
2329      if (i != ($2))
2330	return 1;
2331      fprintf (f, "%ld", i);
2332    }
2333  else
2334    {
2335      unsigned long int i = ulongval ();
2336      if (i != ($2))
2337	return 1;
2338      fprintf (f, "%lu", i);
2339    }
2340  /* Do not output a trailing newline, as this causes \r\n confusion
2341     on some platforms.  */
2342  return ferror (f) || fclose (f) != 0;
2343
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348if ac_fn_c_try_run "$LINENO"; then :
2349  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2350else
2351  ac_retval=1
2352fi
2353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2354  conftest.$ac_objext conftest.beam conftest.$ac_ext
2355rm -f conftest.val
2356
2357  fi
2358  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359  as_fn_set_status $ac_retval
2360
2361} # ac_fn_c_compute_int
2362
2363# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2364# -------------------------------------------
2365# Tests whether TYPE exists after having included INCLUDES, setting cache
2366# variable VAR accordingly.
2367ac_fn_c_check_type ()
2368{
2369  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371$as_echo_n "checking for $2... " >&6; }
2372if eval \${$3+:} false; then :
2373  $as_echo_n "(cached) " >&6
2374else
2375  eval "$3=no"
2376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377/* end confdefs.h.  */
2378$4
2379int
2380main ()
2381{
2382if (sizeof ($2))
2383	 return 0;
2384  ;
2385  return 0;
2386}
2387_ACEOF
2388if ac_fn_c_try_compile "$LINENO"; then :
2389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390/* end confdefs.h.  */
2391$4
2392int
2393main ()
2394{
2395if (sizeof (($2)))
2396	    return 0;
2397  ;
2398  return 0;
2399}
2400_ACEOF
2401if ac_fn_c_try_compile "$LINENO"; then :
2402
2403else
2404  eval "$3=yes"
2405fi
2406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407fi
2408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409fi
2410eval ac_res=\$$3
2411	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412$as_echo "$ac_res" >&6; }
2413  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414
2415} # ac_fn_c_check_type
2416
2417# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2418# ---------------------------------------------
2419# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2420# accordingly.
2421ac_fn_c_check_decl ()
2422{
2423  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424  as_decl_name=`echo $2|sed 's/ *(.*//'`
2425  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2427$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2428if eval \${$3+:} false; then :
2429  $as_echo_n "(cached) " >&6
2430else
2431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432/* end confdefs.h.  */
2433$4
2434int
2435main ()
2436{
2437#ifndef $as_decl_name
2438#ifdef __cplusplus
2439  (void) $as_decl_use;
2440#else
2441  (void) $as_decl_name;
2442#endif
2443#endif
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449if ac_fn_c_try_compile "$LINENO"; then :
2450  eval "$3=yes"
2451else
2452  eval "$3=no"
2453fi
2454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455fi
2456eval ac_res=\$$3
2457	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458$as_echo "$ac_res" >&6; }
2459  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460
2461} # ac_fn_c_check_decl
2462
2463# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2464# ----------------------------------------------------
2465# Tries to find if the field MEMBER exists in type AGGR, after including
2466# INCLUDES, setting cache variable VAR accordingly.
2467ac_fn_c_check_member ()
2468{
2469  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2471$as_echo_n "checking for $2.$3... " >&6; }
2472if eval \${$4+:} false; then :
2473  $as_echo_n "(cached) " >&6
2474else
2475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476/* end confdefs.h.  */
2477$5
2478int
2479main ()
2480{
2481static $2 ac_aggr;
2482if (ac_aggr.$3)
2483return 0;
2484  ;
2485  return 0;
2486}
2487_ACEOF
2488if ac_fn_c_try_compile "$LINENO"; then :
2489  eval "$4=yes"
2490else
2491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492/* end confdefs.h.  */
2493$5
2494int
2495main ()
2496{
2497static $2 ac_aggr;
2498if (sizeof ac_aggr.$3)
2499return 0;
2500  ;
2501  return 0;
2502}
2503_ACEOF
2504if ac_fn_c_try_compile "$LINENO"; then :
2505  eval "$4=yes"
2506else
2507  eval "$4=no"
2508fi
2509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510fi
2511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512fi
2513eval ac_res=\$$4
2514	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515$as_echo "$ac_res" >&6; }
2516  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517
2518} # ac_fn_c_check_member
2519cat >config.log <<_ACEOF
2520This file contains any messages produced by compilers while
2521running configure, to aid debugging if configure makes a mistake.
2522
2523It was created by gpgme $as_me 1.15.1, which was
2524generated by GNU Autoconf 2.69.  Invocation command line was
2525
2526  $ $0 $@
2527
2528_ACEOF
2529exec 5>>config.log
2530{
2531cat <<_ASUNAME
2532## --------- ##
2533## Platform. ##
2534## --------- ##
2535
2536hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2537uname -m = `(uname -m) 2>/dev/null || echo unknown`
2538uname -r = `(uname -r) 2>/dev/null || echo unknown`
2539uname -s = `(uname -s) 2>/dev/null || echo unknown`
2540uname -v = `(uname -v) 2>/dev/null || echo unknown`
2541
2542/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2543/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2544
2545/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2546/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2547/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2548/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2549/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2550/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2551/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2552
2553_ASUNAME
2554
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558  IFS=$as_save_IFS
2559  test -z "$as_dir" && as_dir=.
2560    $as_echo "PATH: $as_dir"
2561  done
2562IFS=$as_save_IFS
2563
2564} >&5
2565
2566cat >&5 <<_ACEOF
2567
2568
2569## ----------- ##
2570## Core tests. ##
2571## ----------- ##
2572
2573_ACEOF
2574
2575
2576# Keep a trace of the command line.
2577# Strip out --no-create and --no-recursion so they do not pile up.
2578# Strip out --silent because we don't want to record it for future runs.
2579# Also quote any args containing shell meta-characters.
2580# Make two passes to allow for proper duplicate-argument suppression.
2581ac_configure_args=
2582ac_configure_args0=
2583ac_configure_args1=
2584ac_must_keep_next=false
2585for ac_pass in 1 2
2586do
2587  for ac_arg
2588  do
2589    case $ac_arg in
2590    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2591    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2592    | -silent | --silent | --silen | --sile | --sil)
2593      continue ;;
2594    *\'*)
2595      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2596    esac
2597    case $ac_pass in
2598    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2599    2)
2600      as_fn_append ac_configure_args1 " '$ac_arg'"
2601      if test $ac_must_keep_next = true; then
2602	ac_must_keep_next=false # Got value, back to normal.
2603      else
2604	case $ac_arg in
2605	  *=* | --config-cache | -C | -disable-* | --disable-* \
2606	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2607	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2608	  | -with-* | --with-* | -without-* | --without-* | --x)
2609	    case "$ac_configure_args0 " in
2610	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2611	    esac
2612	    ;;
2613	  -* ) ac_must_keep_next=true ;;
2614	esac
2615      fi
2616      as_fn_append ac_configure_args " '$ac_arg'"
2617      ;;
2618    esac
2619  done
2620done
2621{ ac_configure_args0=; unset ac_configure_args0;}
2622{ ac_configure_args1=; unset ac_configure_args1;}
2623
2624# When interrupted or exit'd, cleanup temporary files, and complete
2625# config.log.  We remove comments because anyway the quotes in there
2626# would cause problems or look ugly.
2627# WARNING: Use '\'' to represent an apostrophe within the trap.
2628# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2629trap 'exit_status=$?
2630  # Save into config.log some information that might help in debugging.
2631  {
2632    echo
2633
2634    $as_echo "## ---------------- ##
2635## Cache variables. ##
2636## ---------------- ##"
2637    echo
2638    # The following way of writing the cache mishandles newlines in values,
2639(
2640  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2641    eval ac_val=\$$ac_var
2642    case $ac_val in #(
2643    *${as_nl}*)
2644      case $ac_var in #(
2645      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2646$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2647      esac
2648      case $ac_var in #(
2649      _ | IFS | as_nl) ;; #(
2650      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2651      *) { eval $ac_var=; unset $ac_var;} ;;
2652      esac ;;
2653    esac
2654  done
2655  (set) 2>&1 |
2656    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2657    *${as_nl}ac_space=\ *)
2658      sed -n \
2659	"s/'\''/'\''\\\\'\'''\''/g;
2660	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2661      ;; #(
2662    *)
2663      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2664      ;;
2665    esac |
2666    sort
2667)
2668    echo
2669
2670    $as_echo "## ----------------- ##
2671## Output variables. ##
2672## ----------------- ##"
2673    echo
2674    for ac_var in $ac_subst_vars
2675    do
2676      eval ac_val=\$$ac_var
2677      case $ac_val in
2678      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2679      esac
2680      $as_echo "$ac_var='\''$ac_val'\''"
2681    done | sort
2682    echo
2683
2684    if test -n "$ac_subst_files"; then
2685      $as_echo "## ------------------- ##
2686## File substitutions. ##
2687## ------------------- ##"
2688      echo
2689      for ac_var in $ac_subst_files
2690      do
2691	eval ac_val=\$$ac_var
2692	case $ac_val in
2693	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2694	esac
2695	$as_echo "$ac_var='\''$ac_val'\''"
2696      done | sort
2697      echo
2698    fi
2699
2700    if test -s confdefs.h; then
2701      $as_echo "## ----------- ##
2702## confdefs.h. ##
2703## ----------- ##"
2704      echo
2705      cat confdefs.h
2706      echo
2707    fi
2708    test "$ac_signal" != 0 &&
2709      $as_echo "$as_me: caught signal $ac_signal"
2710    $as_echo "$as_me: exit $exit_status"
2711  } >&5
2712  rm -f core *.core core.conftest.* &&
2713    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2714    exit $exit_status
2715' 0
2716for ac_signal in 1 2 13 15; do
2717  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2718done
2719ac_signal=0
2720
2721# confdefs.h avoids OS command line length limits that DEFS can exceed.
2722rm -f -r conftest* confdefs.h
2723
2724$as_echo "/* confdefs.h */" > confdefs.h
2725
2726# Predefined preprocessor variables.
2727
2728cat >>confdefs.h <<_ACEOF
2729#define PACKAGE_NAME "$PACKAGE_NAME"
2730_ACEOF
2731
2732cat >>confdefs.h <<_ACEOF
2733#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2734_ACEOF
2735
2736cat >>confdefs.h <<_ACEOF
2737#define PACKAGE_VERSION "$PACKAGE_VERSION"
2738_ACEOF
2739
2740cat >>confdefs.h <<_ACEOF
2741#define PACKAGE_STRING "$PACKAGE_STRING"
2742_ACEOF
2743
2744cat >>confdefs.h <<_ACEOF
2745#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2746_ACEOF
2747
2748cat >>confdefs.h <<_ACEOF
2749#define PACKAGE_URL "$PACKAGE_URL"
2750_ACEOF
2751
2752
2753# Let the site file select an alternate cache file if it wants to.
2754# Prefer an explicitly selected file to automatically selected ones.
2755ac_site_file1=NONE
2756ac_site_file2=NONE
2757if test -n "$CONFIG_SITE"; then
2758  # We do not want a PATH search for config.site.
2759  case $CONFIG_SITE in #((
2760    -*)  ac_site_file1=./$CONFIG_SITE;;
2761    */*) ac_site_file1=$CONFIG_SITE;;
2762    *)   ac_site_file1=./$CONFIG_SITE;;
2763  esac
2764elif test "x$prefix" != xNONE; then
2765  ac_site_file1=$prefix/share/config.site
2766  ac_site_file2=$prefix/etc/config.site
2767else
2768  ac_site_file1=$ac_default_prefix/share/config.site
2769  ac_site_file2=$ac_default_prefix/etc/config.site
2770fi
2771for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2772do
2773  test "x$ac_site_file" = xNONE && continue
2774  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2775    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2776$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2777    sed 's/^/| /' "$ac_site_file" >&5
2778    . "$ac_site_file" \
2779      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781as_fn_error $? "failed to load site script $ac_site_file
2782See \`config.log' for more details" "$LINENO" 5; }
2783  fi
2784done
2785
2786if test -r "$cache_file"; then
2787  # Some versions of bash will fail to source /dev/null (special files
2788  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2789  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2790    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2791$as_echo "$as_me: loading cache $cache_file" >&6;}
2792    case $cache_file in
2793      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2794      *)                      . "./$cache_file";;
2795    esac
2796  fi
2797else
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2799$as_echo "$as_me: creating cache $cache_file" >&6;}
2800  >$cache_file
2801fi
2802
2803as_fn_append ac_header_list " locale.h"
2804as_fn_append ac_header_list " sys/select.h"
2805as_fn_append ac_header_list " sys/uio.h"
2806as_fn_append ac_header_list " argp.h"
2807as_fn_append ac_header_list " stdint.h"
2808as_fn_append ac_header_list " unistd.h"
2809as_fn_append ac_header_list " sys/time.h"
2810as_fn_append ac_header_list " sys/types.h"
2811as_fn_append ac_header_list " sys/stat.h"
2812# Check that the precious variables saved in the cache have kept the same
2813# value.
2814ac_cache_corrupted=false
2815for ac_var in $ac_precious_vars; do
2816  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2817  eval ac_new_set=\$ac_env_${ac_var}_set
2818  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2819  eval ac_new_val=\$ac_env_${ac_var}_value
2820  case $ac_old_set,$ac_new_set in
2821    set,)
2822      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2823$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2824      ac_cache_corrupted=: ;;
2825    ,set)
2826      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2827$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2828      ac_cache_corrupted=: ;;
2829    ,);;
2830    *)
2831      if test "x$ac_old_val" != "x$ac_new_val"; then
2832	# differences in whitespace do not lead to failure.
2833	ac_old_val_w=`echo x $ac_old_val`
2834	ac_new_val_w=`echo x $ac_new_val`
2835	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2836	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2837$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2838	  ac_cache_corrupted=:
2839	else
2840	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2841$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2842	  eval $ac_var=\$ac_old_val
2843	fi
2844	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2845$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2846	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2847$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2848      fi;;
2849  esac
2850  # Pass precious variables to config.status.
2851  if test "$ac_new_set" = set; then
2852    case $ac_new_val in
2853    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2854    *) ac_arg=$ac_var=$ac_new_val ;;
2855    esac
2856    case " $ac_configure_args " in
2857      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2858      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2859    esac
2860  fi
2861done
2862if $ac_cache_corrupted; then
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2866$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2867  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2868fi
2869## -------------------- ##
2870## Main body of script. ##
2871## -------------------- ##
2872
2873ac_ext=c
2874ac_cpp='$CPP $CPPFLAGS'
2875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878
2879
2880
2881# LT Version numbers, remember to change them just *before* a release.
2882#   (Code changed:			REVISION++)
2883#   (Interfaces added/removed/changed:	CURRENT++, REVISION=0)
2884#   (Interfaces added:			AGE++)
2885#   (Interfaces removed:		AGE=0)
2886#
2887LIBGPGME_LT_CURRENT=35
2888LIBGPGME_LT_AGE=24
2889LIBGPGME_LT_REVISION=1
2890
2891# If there is an ABI break in gpgmepp or qgpgme also bump the
2892# version in IMPORTED_LOCATION in the GpgmeppConfig-w32.cmake.in.in
2893
2894LIBGPGMEPP_LT_CURRENT=18
2895LIBGPGMEPP_LT_AGE=12
2896LIBGPGMEPP_LT_REVISION=1
2897
2898LIBQGPGME_LT_CURRENT=12
2899LIBQGPGME_LT_AGE=5
2900LIBQGPGME_LT_REVISION=1
2901################################################
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915# If the API is changed in an incompatible way: increment the next counter.
2916GPGME_CONFIG_API_VERSION=1
2917##############################################
2918
2919NEED_GPG_ERROR_VERSION=1.36
2920NEED_LIBASSUAN_API=2
2921NEED_LIBASSUAN_VERSION=2.4.2
2922
2923
2924VERSION_MAJOR=1
2925VERSION_MINOR=15
2926VERSION_MICRO=1
2927
2928ac_aux_dir=
2929for ac_dir in build-aux "$srcdir"/build-aux; do
2930  if test -f "$ac_dir/install-sh"; then
2931    ac_aux_dir=$ac_dir
2932    ac_install_sh="$ac_aux_dir/install-sh -c"
2933    break
2934  elif test -f "$ac_dir/install.sh"; then
2935    ac_aux_dir=$ac_dir
2936    ac_install_sh="$ac_aux_dir/install.sh -c"
2937    break
2938  elif test -f "$ac_dir/shtool"; then
2939    ac_aux_dir=$ac_dir
2940    ac_install_sh="$ac_aux_dir/shtool install -c"
2941    break
2942  fi
2943done
2944if test -z "$ac_aux_dir"; then
2945  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2946fi
2947
2948# These three variables are undocumented and unsupported,
2949# and are intended to be withdrawn in a future Autoconf release.
2950# They can cause serious problems if a builder's source tree is in a directory
2951# whose full name contains unusual characters.
2952ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2953ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2954ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2955
2956
2957
2958
2959ac_config_headers="$ac_config_headers conf/config.h"
2960
2961am__api_version='1.16'
2962
2963# Find a good install program.  We prefer a C program (faster),
2964# so one script is as good as another.  But avoid the broken or
2965# incompatible versions:
2966# SysV /etc/install, /usr/sbin/install
2967# SunOS /usr/etc/install
2968# IRIX /sbin/install
2969# AIX /bin/install
2970# AmigaOS /C/install, which installs bootblocks on floppy discs
2971# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2972# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2973# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2974# OS/2's system install, which has a completely different semantic
2975# ./install, which can be erroneously created by make from ./install.sh.
2976# Reject install programs that cannot install multiple files.
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2978$as_echo_n "checking for a BSD-compatible install... " >&6; }
2979if test -z "$INSTALL"; then
2980if ${ac_cv_path_install+:} false; then :
2981  $as_echo_n "(cached) " >&6
2982else
2983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986  IFS=$as_save_IFS
2987  test -z "$as_dir" && as_dir=.
2988    # Account for people who put trailing slashes in PATH elements.
2989case $as_dir/ in #((
2990  ./ | .// | /[cC]/* | \
2991  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2992  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2993  /usr/ucb/* ) ;;
2994  *)
2995    # OSF1 and SCO ODT 3.0 have their own names for install.
2996    # Don't use installbsd from OSF since it installs stuff as root
2997    # by default.
2998    for ac_prog in ginstall scoinst install; do
2999      for ac_exec_ext in '' $ac_executable_extensions; do
3000	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3001	  if test $ac_prog = install &&
3002	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3003	    # AIX install.  It has an incompatible calling convention.
3004	    :
3005	  elif test $ac_prog = install &&
3006	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3007	    # program-specific install script used by HP pwplus--don't use.
3008	    :
3009	  else
3010	    rm -rf conftest.one conftest.two conftest.dir
3011	    echo one > conftest.one
3012	    echo two > conftest.two
3013	    mkdir conftest.dir
3014	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3015	      test -s conftest.one && test -s conftest.two &&
3016	      test -s conftest.dir/conftest.one &&
3017	      test -s conftest.dir/conftest.two
3018	    then
3019	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3020	      break 3
3021	    fi
3022	  fi
3023	fi
3024      done
3025    done
3026    ;;
3027esac
3028
3029  done
3030IFS=$as_save_IFS
3031
3032rm -rf conftest.one conftest.two conftest.dir
3033
3034fi
3035  if test "${ac_cv_path_install+set}" = set; then
3036    INSTALL=$ac_cv_path_install
3037  else
3038    # As a last resort, use the slow shell script.  Don't cache a
3039    # value for INSTALL within a source directory, because that will
3040    # break other packages using the cache if that directory is
3041    # removed, or if the value is a relative name.
3042    INSTALL=$ac_install_sh
3043  fi
3044fi
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3046$as_echo "$INSTALL" >&6; }
3047
3048# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3049# It thinks the first close brace ends the variable substitution.
3050test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3051
3052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3053
3054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3055
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3057$as_echo_n "checking whether build environment is sane... " >&6; }
3058# Reject unsafe characters in $srcdir or the absolute working directory
3059# name.  Accept space and tab only in the latter.
3060am_lf='
3061'
3062case `pwd` in
3063  *[\\\"\#\$\&\'\`$am_lf]*)
3064    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3065esac
3066case $srcdir in
3067  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3068    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3069esac
3070
3071# Do 'set' in a subshell so we don't clobber the current shell's
3072# arguments.  Must try -L first in case configure is actually a
3073# symlink; some systems play weird games with the mod time of symlinks
3074# (eg FreeBSD returns the mod time of the symlink's containing
3075# directory).
3076if (
3077   am_has_slept=no
3078   for am_try in 1 2; do
3079     echo "timestamp, slept: $am_has_slept" > conftest.file
3080     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3081     if test "$*" = "X"; then
3082	# -L didn't work.
3083	set X `ls -t "$srcdir/configure" conftest.file`
3084     fi
3085     if test "$*" != "X $srcdir/configure conftest.file" \
3086	&& test "$*" != "X conftest.file $srcdir/configure"; then
3087
3088	# If neither matched, then we have a broken ls.  This can happen
3089	# if, for instance, CONFIG_SHELL is bash and it inherits a
3090	# broken ls alias from the environment.  This has actually
3091	# happened.  Such a system could not be considered "sane".
3092	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3093  alias in your environment" "$LINENO" 5
3094     fi
3095     if test "$2" = conftest.file || test $am_try -eq 2; then
3096       break
3097     fi
3098     # Just in case.
3099     sleep 1
3100     am_has_slept=yes
3101   done
3102   test "$2" = conftest.file
3103   )
3104then
3105   # Ok.
3106   :
3107else
3108   as_fn_error $? "newly created file is older than distributed files!
3109Check your system clock" "$LINENO" 5
3110fi
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112$as_echo "yes" >&6; }
3113# If we didn't sleep, we still need to ensure time stamps of config.status and
3114# generated files are strictly newer.
3115am_sleep_pid=
3116if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3117  ( sleep 1 ) &
3118  am_sleep_pid=$!
3119fi
3120
3121rm -f conftest.file
3122
3123test "$program_prefix" != NONE &&
3124  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3125# Use a double $ so make ignores it.
3126test "$program_suffix" != NONE &&
3127  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3128# Double any \ or $.
3129# By default was `s,x,x', remove it if useless.
3130ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3131program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3132
3133# Expand $ac_aux_dir to an absolute path.
3134am_aux_dir=`cd "$ac_aux_dir" && pwd`
3135
3136if test x"${MISSING+set}" != xset; then
3137  case $am_aux_dir in
3138  *\ * | *\	*)
3139    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3140  *)
3141    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3142  esac
3143fi
3144# Use eval to expand $SHELL
3145if eval "$MISSING --is-lightweight"; then
3146  am_missing_run="$MISSING "
3147else
3148  am_missing_run=
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3150$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3151fi
3152
3153if test x"${install_sh+set}" != xset; then
3154  case $am_aux_dir in
3155  *\ * | *\	*)
3156    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3157  *)
3158    install_sh="\${SHELL} $am_aux_dir/install-sh"
3159  esac
3160fi
3161
3162# Installed binaries are usually stripped using 'strip' when the user
3163# run "make install-strip".  However 'strip' might not be the right
3164# tool to use in cross-compilation environments, therefore Automake
3165# will honor the 'STRIP' environment variable to overrule this program.
3166if test "$cross_compiling" != no; then
3167  if test -n "$ac_tool_prefix"; then
3168  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3169set dummy ${ac_tool_prefix}strip; ac_word=$2
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171$as_echo_n "checking for $ac_word... " >&6; }
3172if ${ac_cv_prog_STRIP+:} false; then :
3173  $as_echo_n "(cached) " >&6
3174else
3175  if test -n "$STRIP"; then
3176  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3177else
3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH
3180do
3181  IFS=$as_save_IFS
3182  test -z "$as_dir" && as_dir=.
3183    for ac_exec_ext in '' $ac_executable_extensions; do
3184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187    break 2
3188  fi
3189done
3190  done
3191IFS=$as_save_IFS
3192
3193fi
3194fi
3195STRIP=$ac_cv_prog_STRIP
3196if test -n "$STRIP"; then
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3198$as_echo "$STRIP" >&6; }
3199else
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202fi
3203
3204
3205fi
3206if test -z "$ac_cv_prog_STRIP"; then
3207  ac_ct_STRIP=$STRIP
3208  # Extract the first word of "strip", so it can be a program name with args.
3209set dummy strip; ac_word=$2
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211$as_echo_n "checking for $ac_word... " >&6; }
3212if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3213  $as_echo_n "(cached) " >&6
3214else
3215  if test -n "$ac_ct_STRIP"; then
3216  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3217else
3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221  IFS=$as_save_IFS
3222  test -z "$as_dir" && as_dir=.
3223    for ac_exec_ext in '' $ac_executable_extensions; do
3224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225    ac_cv_prog_ac_ct_STRIP="strip"
3226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227    break 2
3228  fi
3229done
3230  done
3231IFS=$as_save_IFS
3232
3233fi
3234fi
3235ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3236if test -n "$ac_ct_STRIP"; then
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3238$as_echo "$ac_ct_STRIP" >&6; }
3239else
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241$as_echo "no" >&6; }
3242fi
3243
3244  if test "x$ac_ct_STRIP" = x; then
3245    STRIP=":"
3246  else
3247    case $cross_compiling:$ac_tool_warned in
3248yes:)
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251ac_tool_warned=yes ;;
3252esac
3253    STRIP=$ac_ct_STRIP
3254  fi
3255else
3256  STRIP="$ac_cv_prog_STRIP"
3257fi
3258
3259fi
3260INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3261
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3263$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3264if test -z "$MKDIR_P"; then
3265  if ${ac_cv_path_mkdir+:} false; then :
3266  $as_echo_n "(cached) " >&6
3267else
3268  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3270do
3271  IFS=$as_save_IFS
3272  test -z "$as_dir" && as_dir=.
3273    for ac_prog in mkdir gmkdir; do
3274	 for ac_exec_ext in '' $ac_executable_extensions; do
3275	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3276	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3277	     'mkdir (GNU coreutils) '* | \
3278	     'mkdir (coreutils) '* | \
3279	     'mkdir (fileutils) '4.1*)
3280	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3281	       break 3;;
3282	   esac
3283	 done
3284       done
3285  done
3286IFS=$as_save_IFS
3287
3288fi
3289
3290  test -d ./--version && rmdir ./--version
3291  if test "${ac_cv_path_mkdir+set}" = set; then
3292    MKDIR_P="$ac_cv_path_mkdir -p"
3293  else
3294    # As a last resort, use the slow shell script.  Don't cache a
3295    # value for MKDIR_P within a source directory, because that will
3296    # break other packages using the cache if that directory is
3297    # removed, or if the value is a relative name.
3298    MKDIR_P="$ac_install_sh -d"
3299  fi
3300fi
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3302$as_echo "$MKDIR_P" >&6; }
3303
3304for ac_prog in gawk mawk nawk awk
3305do
3306  # Extract the first word of "$ac_prog", so it can be a program name with args.
3307set dummy $ac_prog; ac_word=$2
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309$as_echo_n "checking for $ac_word... " >&6; }
3310if ${ac_cv_prog_AWK+:} false; then :
3311  $as_echo_n "(cached) " >&6
3312else
3313  if test -n "$AWK"; then
3314  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3315else
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH
3318do
3319  IFS=$as_save_IFS
3320  test -z "$as_dir" && as_dir=.
3321    for ac_exec_ext in '' $ac_executable_extensions; do
3322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323    ac_cv_prog_AWK="$ac_prog"
3324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325    break 2
3326  fi
3327done
3328  done
3329IFS=$as_save_IFS
3330
3331fi
3332fi
3333AWK=$ac_cv_prog_AWK
3334if test -n "$AWK"; then
3335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3336$as_echo "$AWK" >&6; }
3337else
3338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340fi
3341
3342
3343  test -n "$AWK" && break
3344done
3345
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3347$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3348set x ${MAKE-make}
3349ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3350if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3351  $as_echo_n "(cached) " >&6
3352else
3353  cat >conftest.make <<\_ACEOF
3354SHELL = /bin/sh
3355all:
3356	@echo '@@@%%%=$(MAKE)=@@@%%%'
3357_ACEOF
3358# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3359case `${MAKE-make} -f conftest.make 2>/dev/null` in
3360  *@@@%%%=?*=@@@%%%*)
3361    eval ac_cv_prog_make_${ac_make}_set=yes;;
3362  *)
3363    eval ac_cv_prog_make_${ac_make}_set=no;;
3364esac
3365rm -f conftest.make
3366fi
3367if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369$as_echo "yes" >&6; }
3370  SET_MAKE=
3371else
3372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374  SET_MAKE="MAKE=${MAKE-make}"
3375fi
3376
3377rm -rf .tst 2>/dev/null
3378mkdir .tst 2>/dev/null
3379if test -d .tst; then
3380  am__leading_dot=.
3381else
3382  am__leading_dot=_
3383fi
3384rmdir .tst 2>/dev/null
3385
3386# Check whether --enable-silent-rules was given.
3387if test "${enable_silent_rules+set}" = set; then :
3388  enableval=$enable_silent_rules;
3389fi
3390
3391case $enable_silent_rules in # (((
3392  yes) AM_DEFAULT_VERBOSITY=0;;
3393   no) AM_DEFAULT_VERBOSITY=1;;
3394    *) AM_DEFAULT_VERBOSITY=1;;
3395esac
3396am_make=${MAKE-make}
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3398$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3399if ${am_cv_make_support_nested_variables+:} false; then :
3400  $as_echo_n "(cached) " >&6
3401else
3402  if $as_echo 'TRUE=$(BAR$(V))
3403BAR0=false
3404BAR1=true
3405V=1
3406am__doit:
3407	@$(TRUE)
3408.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3409  am_cv_make_support_nested_variables=yes
3410else
3411  am_cv_make_support_nested_variables=no
3412fi
3413fi
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3415$as_echo "$am_cv_make_support_nested_variables" >&6; }
3416if test $am_cv_make_support_nested_variables = yes; then
3417    AM_V='$(V)'
3418  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3419else
3420  AM_V=$AM_DEFAULT_VERBOSITY
3421  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3422fi
3423AM_BACKSLASH='\'
3424
3425if test "`cd $srcdir && pwd`" != "`pwd`"; then
3426  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3427  # is not polluted with repeated "-I."
3428  am__isrc=' -I$(srcdir)'
3429  # test to see if srcdir already configured
3430  if test -f $srcdir/config.status; then
3431    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3432  fi
3433fi
3434
3435# test whether we have cygpath
3436if test -z "$CYGPATH_W"; then
3437  if (cygpath --version) >/dev/null 2>/dev/null; then
3438    CYGPATH_W='cygpath -w'
3439  else
3440    CYGPATH_W=echo
3441  fi
3442fi
3443
3444
3445# Define the identity of the package.
3446 PACKAGE='gpgme'
3447 VERSION='1.15.1'
3448
3449
3450cat >>confdefs.h <<_ACEOF
3451#define PACKAGE "$PACKAGE"
3452_ACEOF
3453
3454
3455cat >>confdefs.h <<_ACEOF
3456#define VERSION "$VERSION"
3457_ACEOF
3458
3459# Some tools Automake needs.
3460
3461ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3462
3463
3464AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3465
3466
3467AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3468
3469
3470AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3471
3472
3473MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3474
3475# For better backward compatibility.  To be removed once Automake 1.9.x
3476# dies out for good.  For more background, see:
3477# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3478# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3479mkdir_p='$(MKDIR_P)'
3480
3481# We need awk for the "check" target (and possibly the TAP driver).  The
3482# system "awk" is bad on some platforms.
3483# Always define AMTAR for backward compatibility.  Yes, it's still used
3484# in the wild :-(  We should find a proper way to deprecate it ...
3485AMTAR='$${TAR-tar}'
3486
3487
3488# We'll loop over all known methods to create a tar archive until one works.
3489_am_tools='gnutar  pax cpio none'
3490
3491am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3492
3493
3494
3495
3496
3497
3498# POSIX will say in a future version that running "rm -f" with no argument
3499# is OK; and we want to be able to make that assumption in our Makefile
3500# recipes.  So use an aggressive probe to check that the usage we want is
3501# actually supported "in the wild" to an acceptable degree.
3502# See automake bug#10828.
3503# To make any issue more visible, cause the running configure to be aborted
3504# by default if the 'rm' program in use doesn't match our expectations; the
3505# user can still override this though.
3506if rm -f && rm -fr && rm -rf; then : OK; else
3507  cat >&2 <<'END'
3508Oops!
3509
3510Your 'rm' program seems unable to run without file operands specified
3511on the command line, even when the '-f' option is present.  This is contrary
3512to the behaviour of most rm programs out there, and not conforming with
3513the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3514
3515Please tell bug-automake@gnu.org about your system, including the value
3516of your $PATH and any error possibly output before this message.  This
3517can help us improve future automake versions.
3518
3519END
3520  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3521    echo 'Configuration will proceed anyway, since you have set the' >&2
3522    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3523    echo >&2
3524  else
3525    cat >&2 <<'END'
3526Aborting the configuration process, to ensure you take notice of the issue.
3527
3528You can download and install GNU coreutils to get an 'rm' implementation
3529that behaves properly: <https://www.gnu.org/software/coreutils/>.
3530
3531If you want to complete the configuration process using your problematic
3532'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3533to "yes", and re-run configure.
3534
3535END
3536    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3537  fi
3538fi
3539
3540
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3542$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3543    # Check whether --enable-maintainer-mode was given.
3544if test "${enable_maintainer_mode+set}" = set; then :
3545  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3546else
3547  USE_MAINTAINER_MODE=no
3548fi
3549
3550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3551$as_echo "$USE_MAINTAINER_MODE" >&6; }
3552   if test $USE_MAINTAINER_MODE = yes; then
3553  MAINTAINER_MODE_TRUE=
3554  MAINTAINER_MODE_FALSE='#'
3555else
3556  MAINTAINER_MODE_TRUE='#'
3557  MAINTAINER_MODE_FALSE=
3558fi
3559
3560  MAINT=$MAINTAINER_MODE_TRUE
3561
3562
3563# Make sure we can run config.sub.
3564$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3565  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3568$as_echo_n "checking build system type... " >&6; }
3569if ${ac_cv_build+:} false; then :
3570  $as_echo_n "(cached) " >&6
3571else
3572  ac_build_alias=$build_alias
3573test "x$ac_build_alias" = x &&
3574  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3575test "x$ac_build_alias" = x &&
3576  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3577ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3579
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3582$as_echo "$ac_cv_build" >&6; }
3583case $ac_cv_build in
3584*-*-*) ;;
3585*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3586esac
3587build=$ac_cv_build
3588ac_save_IFS=$IFS; IFS='-'
3589set x $ac_cv_build
3590shift
3591build_cpu=$1
3592build_vendor=$2
3593shift; shift
3594# Remember, the first character of IFS is used to create $*,
3595# except with old shells:
3596build_os=$*
3597IFS=$ac_save_IFS
3598case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599
3600
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3602$as_echo_n "checking host system type... " >&6; }
3603if ${ac_cv_host+:} false; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  if test "x$host_alias" = x; then
3607  ac_cv_host=$ac_cv_build
3608else
3609  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3611fi
3612
3613fi
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3615$as_echo "$ac_cv_host" >&6; }
3616case $ac_cv_host in
3617*-*-*) ;;
3618*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3619esac
3620host=$ac_cv_host
3621ac_save_IFS=$IFS; IFS='-'
3622set x $ac_cv_host
3623shift
3624host_cpu=$1
3625host_vendor=$2
3626shift; shift
3627# Remember, the first character of IFS is used to create $*,
3628# except with old shells:
3629host_os=$*
3630IFS=$ac_save_IFS
3631case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3632
3633
3634# Check whether --enable-silent-rules was given.
3635if test "${enable_silent_rules+set}" = set; then :
3636  enableval=$enable_silent_rules;
3637fi
3638
3639case $enable_silent_rules in # (((
3640  yes) AM_DEFAULT_VERBOSITY=0;;
3641   no) AM_DEFAULT_VERBOSITY=1;;
3642    *) AM_DEFAULT_VERBOSITY=1;;
3643esac
3644am_make=${MAKE-make}
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3646$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3647if ${am_cv_make_support_nested_variables+:} false; then :
3648  $as_echo_n "(cached) " >&6
3649else
3650  if $as_echo 'TRUE=$(BAR$(V))
3651BAR0=false
3652BAR1=true
3653V=1
3654am__doit:
3655	@$(TRUE)
3656.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3657  am_cv_make_support_nested_variables=yes
3658else
3659  am_cv_make_support_nested_variables=no
3660fi
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3663$as_echo "$am_cv_make_support_nested_variables" >&6; }
3664if test $am_cv_make_support_nested_variables = yes; then
3665    AM_V='$(V)'
3666  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3667else
3668  AM_V=$AM_DEFAULT_VERBOSITY
3669  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3670fi
3671AM_BACKSLASH='\'
3672
3673
3674
3675# Enable GNU extensions on systems that have them.
3676DEPDIR="${am__leading_dot}deps"
3677
3678ac_config_commands="$ac_config_commands depfiles"
3679
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3681$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3682cat > confinc.mk << 'END'
3683am__doit:
3684	@echo this is the am__doit target >confinc.out
3685.PHONY: am__doit
3686END
3687am__include="#"
3688am__quote=
3689# BSD make does it like this.
3690echo '.include "confinc.mk" # ignored' > confmf.BSD
3691# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3692echo 'include confinc.mk # ignored' > confmf.GNU
3693_am_result=no
3694for s in GNU BSD; do
3695  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3696   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }
3700  case $?:`cat confinc.out 2>/dev/null` in #(
3701  '0:this is the am__doit target') :
3702    case $s in #(
3703  BSD) :
3704    am__include='.include' am__quote='"' ;; #(
3705  *) :
3706    am__include='include' am__quote='' ;;
3707esac ;; #(
3708  *) :
3709     ;;
3710esac
3711  if test "$am__include" != "#"; then
3712    _am_result="yes ($s style)"
3713    break
3714  fi
3715done
3716rm -f confinc.* confmf.*
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3718$as_echo "${_am_result}" >&6; }
3719
3720# Check whether --enable-dependency-tracking was given.
3721if test "${enable_dependency_tracking+set}" = set; then :
3722  enableval=$enable_dependency_tracking;
3723fi
3724
3725if test "x$enable_dependency_tracking" != xno; then
3726  am_depcomp="$ac_aux_dir/depcomp"
3727  AMDEPBACKSLASH='\'
3728  am__nodep='_no'
3729fi
3730 if test "x$enable_dependency_tracking" != xno; then
3731  AMDEP_TRUE=
3732  AMDEP_FALSE='#'
3733else
3734  AMDEP_TRUE='#'
3735  AMDEP_FALSE=
3736fi
3737
3738
3739ac_ext=c
3740ac_cpp='$CPP $CPPFLAGS'
3741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744if test -n "$ac_tool_prefix"; then
3745  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3746set dummy ${ac_tool_prefix}gcc; ac_word=$2
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748$as_echo_n "checking for $ac_word... " >&6; }
3749if ${ac_cv_prog_CC+:} false; then :
3750  $as_echo_n "(cached) " >&6
3751else
3752  if test -n "$CC"; then
3753  ac_cv_prog_CC="$CC" # Let the user override the test.
3754else
3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758  IFS=$as_save_IFS
3759  test -z "$as_dir" && as_dir=.
3760    for ac_exec_ext in '' $ac_executable_extensions; do
3761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764    break 2
3765  fi
3766done
3767  done
3768IFS=$as_save_IFS
3769
3770fi
3771fi
3772CC=$ac_cv_prog_CC
3773if test -n "$CC"; then
3774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775$as_echo "$CC" >&6; }
3776else
3777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778$as_echo "no" >&6; }
3779fi
3780
3781
3782fi
3783if test -z "$ac_cv_prog_CC"; then
3784  ac_ct_CC=$CC
3785  # Extract the first word of "gcc", so it can be a program name with args.
3786set dummy gcc; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
3789if ${ac_cv_prog_ac_ct_CC+:} false; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  if test -n "$ac_ct_CC"; then
3793  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800    for ac_exec_ext in '' $ac_executable_extensions; do
3801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802    ac_cv_prog_ac_ct_CC="gcc"
3803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804    break 2
3805  fi
3806done
3807  done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813if test -n "$ac_ct_CC"; then
3814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815$as_echo "$ac_ct_CC" >&6; }
3816else
3817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821  if test "x$ac_ct_CC" = x; then
3822    CC=""
3823  else
3824    case $cross_compiling:$ac_tool_warned in
3825yes:)
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3828ac_tool_warned=yes ;;
3829esac
3830    CC=$ac_ct_CC
3831  fi
3832else
3833  CC="$ac_cv_prog_CC"
3834fi
3835
3836if test -z "$CC"; then
3837          if test -n "$ac_tool_prefix"; then
3838    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3839set dummy ${ac_tool_prefix}cc; ac_word=$2
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841$as_echo_n "checking for $ac_word... " >&6; }
3842if ${ac_cv_prog_CC+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  if test -n "$CC"; then
3846  ac_cv_prog_CC="$CC" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851  IFS=$as_save_IFS
3852  test -z "$as_dir" && as_dir=.
3853    for ac_exec_ext in '' $ac_executable_extensions; do
3854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855    ac_cv_prog_CC="${ac_tool_prefix}cc"
3856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857    break 2
3858  fi
3859done
3860  done
3861IFS=$as_save_IFS
3862
3863fi
3864fi
3865CC=$ac_cv_prog_CC
3866if test -n "$CC"; then
3867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3868$as_echo "$CC" >&6; }
3869else
3870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871$as_echo "no" >&6; }
3872fi
3873
3874
3875  fi
3876fi
3877if test -z "$CC"; then
3878  # Extract the first word of "cc", so it can be a program name with args.
3879set dummy cc; ac_word=$2
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881$as_echo_n "checking for $ac_word... " >&6; }
3882if ${ac_cv_prog_CC+:} false; then :
3883  $as_echo_n "(cached) " >&6
3884else
3885  if test -n "$CC"; then
3886  ac_cv_prog_CC="$CC" # Let the user override the test.
3887else
3888  ac_prog_rejected=no
3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892  IFS=$as_save_IFS
3893  test -z "$as_dir" && as_dir=.
3894    for ac_exec_ext in '' $ac_executable_extensions; do
3895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3897       ac_prog_rejected=yes
3898       continue
3899     fi
3900    ac_cv_prog_CC="cc"
3901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902    break 2
3903  fi
3904done
3905  done
3906IFS=$as_save_IFS
3907
3908if test $ac_prog_rejected = yes; then
3909  # We found a bogon in the path, so make sure we never use it.
3910  set dummy $ac_cv_prog_CC
3911  shift
3912  if test $# != 0; then
3913    # We chose a different compiler from the bogus one.
3914    # However, it has the same basename, so the bogon will be chosen
3915    # first if we set CC to just the basename; use the full file name.
3916    shift
3917    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3918  fi
3919fi
3920fi
3921fi
3922CC=$ac_cv_prog_CC
3923if test -n "$CC"; then
3924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925$as_echo "$CC" >&6; }
3926else
3927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928$as_echo "no" >&6; }
3929fi
3930
3931
3932fi
3933if test -z "$CC"; then
3934  if test -n "$ac_tool_prefix"; then
3935  for ac_prog in cl.exe
3936  do
3937    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3938set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940$as_echo_n "checking for $ac_word... " >&6; }
3941if ${ac_cv_prog_CC+:} false; then :
3942  $as_echo_n "(cached) " >&6
3943else
3944  if test -n "$CC"; then
3945  ac_cv_prog_CC="$CC" # Let the user override the test.
3946else
3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH
3949do
3950  IFS=$as_save_IFS
3951  test -z "$as_dir" && as_dir=.
3952    for ac_exec_ext in '' $ac_executable_extensions; do
3953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956    break 2
3957  fi
3958done
3959  done
3960IFS=$as_save_IFS
3961
3962fi
3963fi
3964CC=$ac_cv_prog_CC
3965if test -n "$CC"; then
3966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967$as_echo "$CC" >&6; }
3968else
3969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
3971fi
3972
3973
3974    test -n "$CC" && break
3975  done
3976fi
3977if test -z "$CC"; then
3978  ac_ct_CC=$CC
3979  for ac_prog in cl.exe
3980do
3981  # Extract the first word of "$ac_prog", so it can be a program name with args.
3982set dummy $ac_prog; ac_word=$2
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984$as_echo_n "checking for $ac_word... " >&6; }
3985if ${ac_cv_prog_ac_ct_CC+:} false; then :
3986  $as_echo_n "(cached) " >&6
3987else
3988  if test -n "$ac_ct_CC"; then
3989  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3990else
3991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992for as_dir in $PATH
3993do
3994  IFS=$as_save_IFS
3995  test -z "$as_dir" && as_dir=.
3996    for ac_exec_ext in '' $ac_executable_extensions; do
3997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998    ac_cv_prog_ac_ct_CC="$ac_prog"
3999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000    break 2
4001  fi
4002done
4003  done
4004IFS=$as_save_IFS
4005
4006fi
4007fi
4008ac_ct_CC=$ac_cv_prog_ac_ct_CC
4009if test -n "$ac_ct_CC"; then
4010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4011$as_echo "$ac_ct_CC" >&6; }
4012else
4013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014$as_echo "no" >&6; }
4015fi
4016
4017
4018  test -n "$ac_ct_CC" && break
4019done
4020
4021  if test "x$ac_ct_CC" = x; then
4022    CC=""
4023  else
4024    case $cross_compiling:$ac_tool_warned in
4025yes:)
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028ac_tool_warned=yes ;;
4029esac
4030    CC=$ac_ct_CC
4031  fi
4032fi
4033
4034fi
4035
4036
4037test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039as_fn_error $? "no acceptable C compiler found in \$PATH
4040See \`config.log' for more details" "$LINENO" 5; }
4041
4042# Provide some information about the compiler.
4043$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4044set X $ac_compile
4045ac_compiler=$2
4046for ac_option in --version -v -V -qversion; do
4047  { { ac_try="$ac_compiler $ac_option >&5"
4048case "(($ac_try" in
4049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050  *) ac_try_echo=$ac_try;;
4051esac
4052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053$as_echo "$ac_try_echo"; } >&5
4054  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4055  ac_status=$?
4056  if test -s conftest.err; then
4057    sed '10a\
4058... rest of stderr output deleted ...
4059         10q' conftest.err >conftest.er1
4060    cat conftest.er1 >&5
4061  fi
4062  rm -f conftest.er1 conftest.err
4063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064  test $ac_status = 0; }
4065done
4066
4067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069
4070int
4071main ()
4072{
4073
4074  ;
4075  return 0;
4076}
4077_ACEOF
4078ac_clean_files_save=$ac_clean_files
4079ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4080# Try to create an executable without -o first, disregard a.out.
4081# It will help us diagnose broken compilers, and finding out an intuition
4082# of exeext.
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4084$as_echo_n "checking whether the C compiler works... " >&6; }
4085ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4086
4087# The possible output files:
4088ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4089
4090ac_rmfiles=
4091for ac_file in $ac_files
4092do
4093  case $ac_file in
4094    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4095    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4096  esac
4097done
4098rm -f $ac_rmfiles
4099
4100if { { ac_try="$ac_link_default"
4101case "(($ac_try" in
4102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103  *) ac_try_echo=$ac_try;;
4104esac
4105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106$as_echo "$ac_try_echo"; } >&5
4107  (eval "$ac_link_default") 2>&5
4108  ac_status=$?
4109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110  test $ac_status = 0; }; then :
4111  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4112# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4113# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4114# so that the user can short-circuit this test for compilers unknown to
4115# Autoconf.
4116for ac_file in $ac_files ''
4117do
4118  test -f "$ac_file" || continue
4119  case $ac_file in
4120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4121	;;
4122    [ab].out )
4123	# We found the default executable, but exeext='' is most
4124	# certainly right.
4125	break;;
4126    *.* )
4127	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4128	then :; else
4129	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4130	fi
4131	# We set ac_cv_exeext here because the later test for it is not
4132	# safe: cross compilers may not add the suffix if given an `-o'
4133	# argument, so we may need to know it at that point already.
4134	# Even if this section looks crufty: it has the advantage of
4135	# actually working.
4136	break;;
4137    * )
4138	break;;
4139  esac
4140done
4141test "$ac_cv_exeext" = no && ac_cv_exeext=
4142
4143else
4144  ac_file=''
4145fi
4146if test -z "$ac_file"; then :
4147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148$as_echo "no" >&6; }
4149$as_echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154as_fn_error 77 "C compiler cannot create executables
4155See \`config.log' for more details" "$LINENO" 5; }
4156else
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4158$as_echo "yes" >&6; }
4159fi
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4161$as_echo_n "checking for C compiler default output file name... " >&6; }
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4163$as_echo "$ac_file" >&6; }
4164ac_exeext=$ac_cv_exeext
4165
4166rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4167ac_clean_files=$ac_clean_files_save
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4169$as_echo_n "checking for suffix of executables... " >&6; }
4170if { { ac_try="$ac_link"
4171case "(($ac_try" in
4172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173  *) ac_try_echo=$ac_try;;
4174esac
4175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176$as_echo "$ac_try_echo"; } >&5
4177  (eval "$ac_link") 2>&5
4178  ac_status=$?
4179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180  test $ac_status = 0; }; then :
4181  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4182# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4183# work properly (i.e., refer to `conftest.exe'), while it won't with
4184# `rm'.
4185for ac_file in conftest.exe conftest conftest.*; do
4186  test -f "$ac_file" || continue
4187  case $ac_file in
4188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4189    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4190	  break;;
4191    * ) break;;
4192  esac
4193done
4194else
4195  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4198See \`config.log' for more details" "$LINENO" 5; }
4199fi
4200rm -f conftest conftest$ac_cv_exeext
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4202$as_echo "$ac_cv_exeext" >&6; }
4203
4204rm -f conftest.$ac_ext
4205EXEEXT=$ac_cv_exeext
4206ac_exeext=$EXEEXT
4207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209#include <stdio.h>
4210int
4211main ()
4212{
4213FILE *f = fopen ("conftest.out", "w");
4214 return ferror (f) || fclose (f) != 0;
4215
4216  ;
4217  return 0;
4218}
4219_ACEOF
4220ac_clean_files="$ac_clean_files conftest.out"
4221# Check that the compiler produces executables we can run.  If not, either
4222# the compiler is broken, or we cross compile.
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4224$as_echo_n "checking whether we are cross compiling... " >&6; }
4225if test "$cross_compiling" != yes; then
4226  { { ac_try="$ac_link"
4227case "(($ac_try" in
4228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229  *) ac_try_echo=$ac_try;;
4230esac
4231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232$as_echo "$ac_try_echo"; } >&5
4233  (eval "$ac_link") 2>&5
4234  ac_status=$?
4235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236  test $ac_status = 0; }
4237  if { ac_try='./conftest$ac_cv_exeext'
4238  { { case "(($ac_try" in
4239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240  *) ac_try_echo=$ac_try;;
4241esac
4242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243$as_echo "$ac_try_echo"; } >&5
4244  (eval "$ac_try") 2>&5
4245  ac_status=$?
4246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247  test $ac_status = 0; }; }; then
4248    cross_compiling=no
4249  else
4250    if test "$cross_compiling" = maybe; then
4251	cross_compiling=yes
4252    else
4253	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255as_fn_error $? "cannot run C compiled programs.
4256If you meant to cross compile, use \`--host'.
4257See \`config.log' for more details" "$LINENO" 5; }
4258    fi
4259  fi
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4262$as_echo "$cross_compiling" >&6; }
4263
4264rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4265ac_clean_files=$ac_clean_files_save
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4267$as_echo_n "checking for suffix of object files... " >&6; }
4268if ${ac_cv_objext+:} false; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h.  */
4273
4274int
4275main ()
4276{
4277
4278  ;
4279  return 0;
4280}
4281_ACEOF
4282rm -f conftest.o conftest.obj
4283if { { ac_try="$ac_compile"
4284case "(($ac_try" in
4285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286  *) ac_try_echo=$ac_try;;
4287esac
4288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289$as_echo "$ac_try_echo"; } >&5
4290  (eval "$ac_compile") 2>&5
4291  ac_status=$?
4292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293  test $ac_status = 0; }; then :
4294  for ac_file in conftest.o conftest.obj conftest.*; do
4295  test -f "$ac_file" || continue;
4296  case $ac_file in
4297    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4299       break;;
4300  esac
4301done
4302else
4303  $as_echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
4305
4306{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308as_fn_error $? "cannot compute suffix of object files: cannot compile
4309See \`config.log' for more details" "$LINENO" 5; }
4310fi
4311rm -f conftest.$ac_cv_objext conftest.$ac_ext
4312fi
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314$as_echo "$ac_cv_objext" >&6; }
4315OBJEXT=$ac_cv_objext
4316ac_objext=$OBJEXT
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4319if ${ac_cv_c_compiler_gnu+:} false; then :
4320  $as_echo_n "(cached) " >&6
4321else
4322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h.  */
4324
4325int
4326main ()
4327{
4328#ifndef __GNUC__
4329       choke me
4330#endif
4331
4332  ;
4333  return 0;
4334}
4335_ACEOF
4336if ac_fn_c_try_compile "$LINENO"; then :
4337  ac_compiler_gnu=yes
4338else
4339  ac_compiler_gnu=no
4340fi
4341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342ac_cv_c_compiler_gnu=$ac_compiler_gnu
4343
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347if test $ac_compiler_gnu = yes; then
4348  GCC=yes
4349else
4350  GCC=
4351fi
4352ac_test_CFLAGS=${CFLAGS+set}
4353ac_save_CFLAGS=$CFLAGS
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355$as_echo_n "checking whether $CC accepts -g... " >&6; }
4356if ${ac_cv_prog_cc_g+:} false; then :
4357  $as_echo_n "(cached) " >&6
4358else
4359  ac_save_c_werror_flag=$ac_c_werror_flag
4360   ac_c_werror_flag=yes
4361   ac_cv_prog_cc_g=no
4362   CFLAGS="-g"
4363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h.  */
4365
4366int
4367main ()
4368{
4369
4370  ;
4371  return 0;
4372}
4373_ACEOF
4374if ac_fn_c_try_compile "$LINENO"; then :
4375  ac_cv_prog_cc_g=yes
4376else
4377  CFLAGS=""
4378      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h.  */
4380
4381int
4382main ()
4383{
4384
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_compile "$LINENO"; then :
4390
4391else
4392  ac_c_werror_flag=$ac_save_c_werror_flag
4393	 CFLAGS="-g"
4394	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395/* end confdefs.h.  */
4396
4397int
4398main ()
4399{
4400
4401  ;
4402  return 0;
4403}
4404_ACEOF
4405if ac_fn_c_try_compile "$LINENO"; then :
4406  ac_cv_prog_cc_g=yes
4407fi
4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409fi
4410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411fi
4412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413   ac_c_werror_flag=$ac_save_c_werror_flag
4414fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416$as_echo "$ac_cv_prog_cc_g" >&6; }
4417if test "$ac_test_CFLAGS" = set; then
4418  CFLAGS=$ac_save_CFLAGS
4419elif test $ac_cv_prog_cc_g = yes; then
4420  if test "$GCC" = yes; then
4421    CFLAGS="-g -O2"
4422  else
4423    CFLAGS="-g"
4424  fi
4425else
4426  if test "$GCC" = yes; then
4427    CFLAGS="-O2"
4428  else
4429    CFLAGS=
4430  fi
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434if ${ac_cv_prog_cc_c89+:} false; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  ac_cv_prog_cc_c89=no
4438ac_save_CC=$CC
4439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h.  */
4441#include <stdarg.h>
4442#include <stdio.h>
4443struct stat;
4444/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4445struct buf { int x; };
4446FILE * (*rcsopen) (struct buf *, struct stat *, int);
4447static char *e (p, i)
4448     char **p;
4449     int i;
4450{
4451  return p[i];
4452}
4453static char *f (char * (*g) (char **, int), char **p, ...)
4454{
4455  char *s;
4456  va_list v;
4457  va_start (v,p);
4458  s = g (p, va_arg (v,int));
4459  va_end (v);
4460  return s;
4461}
4462
4463/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4464   function prototypes and stuff, but not '\xHH' hex character constants.
4465   These don't provoke an error unfortunately, instead are silently treated
4466   as 'x'.  The following induces an error, until -std is added to get
4467   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4468   array size at least.  It's necessary to write '\x00'==0 to get something
4469   that's true only with -std.  */
4470int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4471
4472/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4473   inside strings and character constants.  */
4474#define FOO(x) 'x'
4475int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4476
4477int test (int i, double x);
4478struct s1 {int (*f) (int a);};
4479struct s2 {int (*f) (double a);};
4480int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4481int argc;
4482char **argv;
4483int
4484main ()
4485{
4486return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4487  ;
4488  return 0;
4489}
4490_ACEOF
4491for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4492	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4493do
4494  CC="$ac_save_CC $ac_arg"
4495  if ac_fn_c_try_compile "$LINENO"; then :
4496  ac_cv_prog_cc_c89=$ac_arg
4497fi
4498rm -f core conftest.err conftest.$ac_objext
4499  test "x$ac_cv_prog_cc_c89" != "xno" && break
4500done
4501rm -f conftest.$ac_ext
4502CC=$ac_save_CC
4503
4504fi
4505# AC_CACHE_VAL
4506case "x$ac_cv_prog_cc_c89" in
4507  x)
4508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4509$as_echo "none needed" >&6; } ;;
4510  xno)
4511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512$as_echo "unsupported" >&6; } ;;
4513  *)
4514    CC="$CC $ac_cv_prog_cc_c89"
4515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4516$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4517esac
4518if test "x$ac_cv_prog_cc_c89" != xno; then :
4519
4520fi
4521
4522ac_ext=c
4523ac_cpp='$CPP $CPPFLAGS'
4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528ac_ext=c
4529ac_cpp='$CPP $CPPFLAGS'
4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4534$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4535if ${am_cv_prog_cc_c_o+:} false; then :
4536  $as_echo_n "(cached) " >&6
4537else
4538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h.  */
4540
4541int
4542main ()
4543{
4544
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549  # Make sure it works both with $CC and with simple cc.
4550  # Following AC_PROG_CC_C_O, we do the test twice because some
4551  # compilers refuse to overwrite an existing .o file with -o,
4552  # though they will create one.
4553  am_cv_prog_cc_c_o=yes
4554  for am_i in 1 2; do
4555    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4556   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); } \
4560         && test -f conftest2.$ac_objext; then
4561      : OK
4562    else
4563      am_cv_prog_cc_c_o=no
4564      break
4565    fi
4566  done
4567  rm -f core conftest*
4568  unset am_i
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4571$as_echo "$am_cv_prog_cc_c_o" >&6; }
4572if test "$am_cv_prog_cc_c_o" != yes; then
4573   # Losing compiler, so override with the script.
4574   # FIXME: It is wrong to rewrite CC.
4575   # But if we don't then we get into trouble of one sort or another.
4576   # A longer-term fix would be to have automake use am__CC in this case,
4577   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578   CC="$am_aux_dir/compile $CC"
4579fi
4580ac_ext=c
4581ac_cpp='$CPP $CPPFLAGS'
4582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586
4587depcc="$CC"   am_compiler_list=
4588
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4590$as_echo_n "checking dependency style of $depcc... " >&6; }
4591if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4592  $as_echo_n "(cached) " >&6
4593else
4594  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4595  # We make a subdir and do the tests there.  Otherwise we can end up
4596  # making bogus files that we don't know about and never remove.  For
4597  # instance it was reported that on HP-UX the gcc test will end up
4598  # making a dummy file named 'D' -- because '-MD' means "put the output
4599  # in D".
4600  rm -rf conftest.dir
4601  mkdir conftest.dir
4602  # Copy depcomp to subdir because otherwise we won't find it if we're
4603  # using a relative directory.
4604  cp "$am_depcomp" conftest.dir
4605  cd conftest.dir
4606  # We will build objects and dependencies in a subdirectory because
4607  # it helps to detect inapplicable dependency modes.  For instance
4608  # both Tru64's cc and ICC support -MD to output dependencies as a
4609  # side effect of compilation, but ICC will put the dependencies in
4610  # the current directory while Tru64 will put them in the object
4611  # directory.
4612  mkdir sub
4613
4614  am_cv_CC_dependencies_compiler_type=none
4615  if test "$am_compiler_list" = ""; then
4616     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4617  fi
4618  am__universal=false
4619  case " $depcc " in #(
4620     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4621     esac
4622
4623  for depmode in $am_compiler_list; do
4624    # Setup a source with many dependencies, because some compilers
4625    # like to wrap large dependency lists on column 80 (with \), and
4626    # we should not choose a depcomp mode which is confused by this.
4627    #
4628    # We need to recreate these files for each test, as the compiler may
4629    # overwrite some of them when testing with obscure command lines.
4630    # This happens at least with the AIX C compiler.
4631    : > sub/conftest.c
4632    for i in 1 2 3 4 5 6; do
4633      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4634      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4635      # Solaris 10 /bin/sh.
4636      echo '/* dummy */' > sub/conftst$i.h
4637    done
4638    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4639
4640    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4641    # mode.  It turns out that the SunPro C++ compiler does not properly
4642    # handle '-M -o', and we need to detect this.  Also, some Intel
4643    # versions had trouble with output in subdirs.
4644    am__obj=sub/conftest.${OBJEXT-o}
4645    am__minus_obj="-o $am__obj"
4646    case $depmode in
4647    gcc)
4648      # This depmode causes a compiler race in universal mode.
4649      test "$am__universal" = false || continue
4650      ;;
4651    nosideeffect)
4652      # After this tag, mechanisms are not by side-effect, so they'll
4653      # only be used when explicitly requested.
4654      if test "x$enable_dependency_tracking" = xyes; then
4655	continue
4656      else
4657	break
4658      fi
4659      ;;
4660    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4661      # This compiler won't grok '-c -o', but also, the minuso test has
4662      # not run yet.  These depmodes are late enough in the game, and
4663      # so weak that their functioning should not be impacted.
4664      am__obj=conftest.${OBJEXT-o}
4665      am__minus_obj=
4666      ;;
4667    none) break ;;
4668    esac
4669    if depmode=$depmode \
4670       source=sub/conftest.c object=$am__obj \
4671       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4672       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4673         >/dev/null 2>conftest.err &&
4674       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4675       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4676       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4677       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4678      # icc doesn't choke on unknown options, it will just issue warnings
4679      # or remarks (even with -Werror).  So we grep stderr for any message
4680      # that says an option was ignored or not supported.
4681      # When given -MP, icc 7.0 and 7.1 complain thusly:
4682      #   icc: Command line warning: ignoring option '-M'; no argument required
4683      # The diagnosis changed in icc 8.0:
4684      #   icc: Command line remark: option '-MP' not supported
4685      if (grep 'ignoring option' conftest.err ||
4686          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4687        am_cv_CC_dependencies_compiler_type=$depmode
4688        break
4689      fi
4690    fi
4691  done
4692
4693  cd ..
4694  rm -rf conftest.dir
4695else
4696  am_cv_CC_dependencies_compiler_type=none
4697fi
4698
4699fi
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4701$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4702CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4703
4704 if
4705  test "x$enable_dependency_tracking" != xno \
4706  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4707  am__fastdepCC_TRUE=
4708  am__fastdepCC_FALSE='#'
4709else
4710  am__fastdepCC_TRUE='#'
4711  am__fastdepCC_FALSE=
4712fi
4713
4714
4715
4716ac_ext=c
4717ac_cpp='$CPP $CPPFLAGS'
4718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4722$as_echo_n "checking how to run the C preprocessor... " >&6; }
4723# On Suns, sometimes $CPP names a directory.
4724if test -n "$CPP" && test -d "$CPP"; then
4725  CPP=
4726fi
4727if test -z "$CPP"; then
4728  if ${ac_cv_prog_CPP+:} false; then :
4729  $as_echo_n "(cached) " >&6
4730else
4731      # Double quotes because CPP needs to be expanded
4732    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4733    do
4734      ac_preproc_ok=false
4735for ac_c_preproc_warn_flag in '' yes
4736do
4737  # Use a header file that comes with gcc, so configuring glibc
4738  # with a fresh cross-compiler works.
4739  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4740  # <limits.h> exists even on freestanding compilers.
4741  # On the NeXT, cc -E runs the code through the compiler's parser,
4742  # not just through cpp. "Syntax error" is here to catch this case.
4743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745#ifdef __STDC__
4746# include <limits.h>
4747#else
4748# include <assert.h>
4749#endif
4750		     Syntax error
4751_ACEOF
4752if ac_fn_c_try_cpp "$LINENO"; then :
4753
4754else
4755  # Broken: fails on valid input.
4756continue
4757fi
4758rm -f conftest.err conftest.i conftest.$ac_ext
4759
4760  # OK, works on sane cases.  Now check whether nonexistent headers
4761  # can be detected and how.
4762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763/* end confdefs.h.  */
4764#include <ac_nonexistent.h>
4765_ACEOF
4766if ac_fn_c_try_cpp "$LINENO"; then :
4767  # Broken: success on invalid input.
4768continue
4769else
4770  # Passes both tests.
4771ac_preproc_ok=:
4772break
4773fi
4774rm -f conftest.err conftest.i conftest.$ac_ext
4775
4776done
4777# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778rm -f conftest.i conftest.err conftest.$ac_ext
4779if $ac_preproc_ok; then :
4780  break
4781fi
4782
4783    done
4784    ac_cv_prog_CPP=$CPP
4785
4786fi
4787  CPP=$ac_cv_prog_CPP
4788else
4789  ac_cv_prog_CPP=$CPP
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4792$as_echo "$CPP" >&6; }
4793ac_preproc_ok=false
4794for ac_c_preproc_warn_flag in '' yes
4795do
4796  # Use a header file that comes with gcc, so configuring glibc
4797  # with a fresh cross-compiler works.
4798  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4799  # <limits.h> exists even on freestanding compilers.
4800  # On the NeXT, cc -E runs the code through the compiler's parser,
4801  # not just through cpp. "Syntax error" is here to catch this case.
4802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803/* end confdefs.h.  */
4804#ifdef __STDC__
4805# include <limits.h>
4806#else
4807# include <assert.h>
4808#endif
4809		     Syntax error
4810_ACEOF
4811if ac_fn_c_try_cpp "$LINENO"; then :
4812
4813else
4814  # Broken: fails on valid input.
4815continue
4816fi
4817rm -f conftest.err conftest.i conftest.$ac_ext
4818
4819  # OK, works on sane cases.  Now check whether nonexistent headers
4820  # can be detected and how.
4821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h.  */
4823#include <ac_nonexistent.h>
4824_ACEOF
4825if ac_fn_c_try_cpp "$LINENO"; then :
4826  # Broken: success on invalid input.
4827continue
4828else
4829  # Passes both tests.
4830ac_preproc_ok=:
4831break
4832fi
4833rm -f conftest.err conftest.i conftest.$ac_ext
4834
4835done
4836# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837rm -f conftest.i conftest.err conftest.$ac_ext
4838if $ac_preproc_ok; then :
4839
4840else
4841  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4844See \`config.log' for more details" "$LINENO" 5; }
4845fi
4846
4847ac_ext=c
4848ac_cpp='$CPP $CPPFLAGS'
4849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
4853
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4855$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4856if ${ac_cv_path_GREP+:} false; then :
4857  $as_echo_n "(cached) " >&6
4858else
4859  if test -z "$GREP"; then
4860  ac_path_GREP_found=false
4861  # Loop through the user's path and test for each of PROGNAME-LIST
4862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4864do
4865  IFS=$as_save_IFS
4866  test -z "$as_dir" && as_dir=.
4867    for ac_prog in grep ggrep; do
4868    for ac_exec_ext in '' $ac_executable_extensions; do
4869      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4870      as_fn_executable_p "$ac_path_GREP" || continue
4871# Check for GNU ac_path_GREP and select it if it is found.
4872  # Check for GNU $ac_path_GREP
4873case `"$ac_path_GREP" --version 2>&1` in
4874*GNU*)
4875  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4876*)
4877  ac_count=0
4878  $as_echo_n 0123456789 >"conftest.in"
4879  while :
4880  do
4881    cat "conftest.in" "conftest.in" >"conftest.tmp"
4882    mv "conftest.tmp" "conftest.in"
4883    cp "conftest.in" "conftest.nl"
4884    $as_echo 'GREP' >> "conftest.nl"
4885    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887    as_fn_arith $ac_count + 1 && ac_count=$as_val
4888    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4889      # Best one so far, save it but keep looking for a better one
4890      ac_cv_path_GREP="$ac_path_GREP"
4891      ac_path_GREP_max=$ac_count
4892    fi
4893    # 10*(2^10) chars as input seems more than enough
4894    test $ac_count -gt 10 && break
4895  done
4896  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897esac
4898
4899      $ac_path_GREP_found && break 3
4900    done
4901  done
4902  done
4903IFS=$as_save_IFS
4904  if test -z "$ac_cv_path_GREP"; then
4905    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4906  fi
4907else
4908  ac_cv_path_GREP=$GREP
4909fi
4910
4911fi
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4913$as_echo "$ac_cv_path_GREP" >&6; }
4914 GREP="$ac_cv_path_GREP"
4915
4916
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4918$as_echo_n "checking for egrep... " >&6; }
4919if ${ac_cv_path_EGREP+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4923   then ac_cv_path_EGREP="$GREP -E"
4924   else
4925     if test -z "$EGREP"; then
4926  ac_path_EGREP_found=false
4927  # Loop through the user's path and test for each of PROGNAME-LIST
4928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4930do
4931  IFS=$as_save_IFS
4932  test -z "$as_dir" && as_dir=.
4933    for ac_prog in egrep; do
4934    for ac_exec_ext in '' $ac_executable_extensions; do
4935      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4936      as_fn_executable_p "$ac_path_EGREP" || continue
4937# Check for GNU ac_path_EGREP and select it if it is found.
4938  # Check for GNU $ac_path_EGREP
4939case `"$ac_path_EGREP" --version 2>&1` in
4940*GNU*)
4941  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4942*)
4943  ac_count=0
4944  $as_echo_n 0123456789 >"conftest.in"
4945  while :
4946  do
4947    cat "conftest.in" "conftest.in" >"conftest.tmp"
4948    mv "conftest.tmp" "conftest.in"
4949    cp "conftest.in" "conftest.nl"
4950    $as_echo 'EGREP' >> "conftest.nl"
4951    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4952    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4953    as_fn_arith $ac_count + 1 && ac_count=$as_val
4954    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4955      # Best one so far, save it but keep looking for a better one
4956      ac_cv_path_EGREP="$ac_path_EGREP"
4957      ac_path_EGREP_max=$ac_count
4958    fi
4959    # 10*(2^10) chars as input seems more than enough
4960    test $ac_count -gt 10 && break
4961  done
4962  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4963esac
4964
4965      $ac_path_EGREP_found && break 3
4966    done
4967  done
4968  done
4969IFS=$as_save_IFS
4970  if test -z "$ac_cv_path_EGREP"; then
4971    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4972  fi
4973else
4974  ac_cv_path_EGREP=$EGREP
4975fi
4976
4977   fi
4978fi
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4980$as_echo "$ac_cv_path_EGREP" >&6; }
4981 EGREP="$ac_cv_path_EGREP"
4982
4983
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4985$as_echo_n "checking for ANSI C header files... " >&6; }
4986if ${ac_cv_header_stdc+:} false; then :
4987  $as_echo_n "(cached) " >&6
4988else
4989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991#include <stdlib.h>
4992#include <stdarg.h>
4993#include <string.h>
4994#include <float.h>
4995
4996int
4997main ()
4998{
4999
5000  ;
5001  return 0;
5002}
5003_ACEOF
5004if ac_fn_c_try_compile "$LINENO"; then :
5005  ac_cv_header_stdc=yes
5006else
5007  ac_cv_header_stdc=no
5008fi
5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010
5011if test $ac_cv_header_stdc = yes; then
5012  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h.  */
5015#include <string.h>
5016
5017_ACEOF
5018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019  $EGREP "memchr" >/dev/null 2>&1; then :
5020
5021else
5022  ac_cv_header_stdc=no
5023fi
5024rm -f conftest*
5025
5026fi
5027
5028if test $ac_cv_header_stdc = yes; then
5029  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032#include <stdlib.h>
5033
5034_ACEOF
5035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5036  $EGREP "free" >/dev/null 2>&1; then :
5037
5038else
5039  ac_cv_header_stdc=no
5040fi
5041rm -f conftest*
5042
5043fi
5044
5045if test $ac_cv_header_stdc = yes; then
5046  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5047  if test "$cross_compiling" = yes; then :
5048  :
5049else
5050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h.  */
5052#include <ctype.h>
5053#include <stdlib.h>
5054#if ((' ' & 0x0FF) == 0x020)
5055# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5056# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5057#else
5058# define ISLOWER(c) \
5059		   (('a' <= (c) && (c) <= 'i') \
5060		     || ('j' <= (c) && (c) <= 'r') \
5061		     || ('s' <= (c) && (c) <= 'z'))
5062# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5063#endif
5064
5065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5066int
5067main ()
5068{
5069  int i;
5070  for (i = 0; i < 256; i++)
5071    if (XOR (islower (i), ISLOWER (i))
5072	|| toupper (i) != TOUPPER (i))
5073      return 2;
5074  return 0;
5075}
5076_ACEOF
5077if ac_fn_c_try_run "$LINENO"; then :
5078
5079else
5080  ac_cv_header_stdc=no
5081fi
5082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5083  conftest.$ac_objext conftest.beam conftest.$ac_ext
5084fi
5085
5086fi
5087fi
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5089$as_echo "$ac_cv_header_stdc" >&6; }
5090if test $ac_cv_header_stdc = yes; then
5091
5092$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5093
5094fi
5095
5096# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5097for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5098		  inttypes.h stdint.h unistd.h
5099do :
5100  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5101ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5102"
5103if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5104  cat >>confdefs.h <<_ACEOF
5105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5106_ACEOF
5107
5108fi
5109
5110done
5111
5112
5113
5114  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5115if test "x$ac_cv_header_minix_config_h" = xyes; then :
5116  MINIX=yes
5117else
5118  MINIX=
5119fi
5120
5121
5122  if test "$MINIX" = yes; then
5123
5124$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5125
5126
5127$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5128
5129
5130$as_echo "#define _MINIX 1" >>confdefs.h
5131
5132  fi
5133
5134
5135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5136$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5137if ${ac_cv_safe_to_define___extensions__+:} false; then :
5138  $as_echo_n "(cached) " >&6
5139else
5140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141/* end confdefs.h.  */
5142
5143#         define __EXTENSIONS__ 1
5144          $ac_includes_default
5145int
5146main ()
5147{
5148
5149  ;
5150  return 0;
5151}
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"; then :
5154  ac_cv_safe_to_define___extensions__=yes
5155else
5156  ac_cv_safe_to_define___extensions__=no
5157fi
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5161$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5162  test $ac_cv_safe_to_define___extensions__ = yes &&
5163    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5164
5165  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5166
5167  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5168
5169  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5170
5171  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5172
5173
5174
5175# Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5176case $host in
5177  *-*-linux*)
5178    if test -n "$LD_LIBRARY_PATH"; then
5179      saved_LDFLAGS="$LDFLAGS"
5180      LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5181      LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5182      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5183$as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5184      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* end confdefs.h.  */
5186
5187int main (void) { return 0; }
5188
5189_ACEOF
5190if ac_fn_c_try_link "$LINENO"; then :
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5192$as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5193else
5194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195$as_echo "no" >&6; }
5196       LDADD_FOR_TESTS_KLUDGE=""
5197
5198fi
5199rm -f core conftest.err conftest.$ac_objext \
5200    conftest$ac_exeext conftest.$ac_ext
5201      LDFLAGS="$saved_LDFLAGS"
5202    fi
5203    ;;
5204esac
5205
5206
5207
5208
5209ac_ext=c
5210ac_cpp='$CPP $CPPFLAGS'
5211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214if test -n "$ac_tool_prefix"; then
5215  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5216set dummy ${ac_tool_prefix}gcc; ac_word=$2
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218$as_echo_n "checking for $ac_word... " >&6; }
5219if ${ac_cv_prog_CC+:} false; then :
5220  $as_echo_n "(cached) " >&6
5221else
5222  if test -n "$CC"; then
5223  ac_cv_prog_CC="$CC" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228  IFS=$as_save_IFS
5229  test -z "$as_dir" && as_dir=.
5230    for ac_exec_ext in '' $ac_executable_extensions; do
5231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234    break 2
5235  fi
5236done
5237  done
5238IFS=$as_save_IFS
5239
5240fi
5241fi
5242CC=$ac_cv_prog_CC
5243if test -n "$CC"; then
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5245$as_echo "$CC" >&6; }
5246else
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248$as_echo "no" >&6; }
5249fi
5250
5251
5252fi
5253if test -z "$ac_cv_prog_CC"; then
5254  ac_ct_CC=$CC
5255  # Extract the first word of "gcc", so it can be a program name with args.
5256set dummy gcc; ac_word=$2
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258$as_echo_n "checking for $ac_word... " >&6; }
5259if ${ac_cv_prog_ac_ct_CC+:} false; then :
5260  $as_echo_n "(cached) " >&6
5261else
5262  if test -n "$ac_ct_CC"; then
5263  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268  IFS=$as_save_IFS
5269  test -z "$as_dir" && as_dir=.
5270    for ac_exec_ext in '' $ac_executable_extensions; do
5271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272    ac_cv_prog_ac_ct_CC="gcc"
5273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274    break 2
5275  fi
5276done
5277  done
5278IFS=$as_save_IFS
5279
5280fi
5281fi
5282ac_ct_CC=$ac_cv_prog_ac_ct_CC
5283if test -n "$ac_ct_CC"; then
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5285$as_echo "$ac_ct_CC" >&6; }
5286else
5287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288$as_echo "no" >&6; }
5289fi
5290
5291  if test "x$ac_ct_CC" = x; then
5292    CC=""
5293  else
5294    case $cross_compiling:$ac_tool_warned in
5295yes:)
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298ac_tool_warned=yes ;;
5299esac
5300    CC=$ac_ct_CC
5301  fi
5302else
5303  CC="$ac_cv_prog_CC"
5304fi
5305
5306if test -z "$CC"; then
5307          if test -n "$ac_tool_prefix"; then
5308    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5309set dummy ${ac_tool_prefix}cc; ac_word=$2
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311$as_echo_n "checking for $ac_word... " >&6; }
5312if ${ac_cv_prog_CC+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  if test -n "$CC"; then
5316  ac_cv_prog_CC="$CC" # Let the user override the test.
5317else
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321  IFS=$as_save_IFS
5322  test -z "$as_dir" && as_dir=.
5323    for ac_exec_ext in '' $ac_executable_extensions; do
5324  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325    ac_cv_prog_CC="${ac_tool_prefix}cc"
5326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327    break 2
5328  fi
5329done
5330  done
5331IFS=$as_save_IFS
5332
5333fi
5334fi
5335CC=$ac_cv_prog_CC
5336if test -n "$CC"; then
5337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5338$as_echo "$CC" >&6; }
5339else
5340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341$as_echo "no" >&6; }
5342fi
5343
5344
5345  fi
5346fi
5347if test -z "$CC"; then
5348  # Extract the first word of "cc", so it can be a program name with args.
5349set dummy cc; ac_word=$2
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351$as_echo_n "checking for $ac_word... " >&6; }
5352if ${ac_cv_prog_CC+:} false; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  if test -n "$CC"; then
5356  ac_cv_prog_CC="$CC" # Let the user override the test.
5357else
5358  ac_prog_rejected=no
5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362  IFS=$as_save_IFS
5363  test -z "$as_dir" && as_dir=.
5364    for ac_exec_ext in '' $ac_executable_extensions; do
5365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5367       ac_prog_rejected=yes
5368       continue
5369     fi
5370    ac_cv_prog_CC="cc"
5371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372    break 2
5373  fi
5374done
5375  done
5376IFS=$as_save_IFS
5377
5378if test $ac_prog_rejected = yes; then
5379  # We found a bogon in the path, so make sure we never use it.
5380  set dummy $ac_cv_prog_CC
5381  shift
5382  if test $# != 0; then
5383    # We chose a different compiler from the bogus one.
5384    # However, it has the same basename, so the bogon will be chosen
5385    # first if we set CC to just the basename; use the full file name.
5386    shift
5387    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5388  fi
5389fi
5390fi
5391fi
5392CC=$ac_cv_prog_CC
5393if test -n "$CC"; then
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5395$as_echo "$CC" >&6; }
5396else
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
5399fi
5400
5401
5402fi
5403if test -z "$CC"; then
5404  if test -n "$ac_tool_prefix"; then
5405  for ac_prog in cl.exe
5406  do
5407    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5408set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410$as_echo_n "checking for $ac_word... " >&6; }
5411if ${ac_cv_prog_CC+:} false; then :
5412  $as_echo_n "(cached) " >&6
5413else
5414  if test -n "$CC"; then
5415  ac_cv_prog_CC="$CC" # Let the user override the test.
5416else
5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH
5419do
5420  IFS=$as_save_IFS
5421  test -z "$as_dir" && as_dir=.
5422    for ac_exec_ext in '' $ac_executable_extensions; do
5423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426    break 2
5427  fi
5428done
5429  done
5430IFS=$as_save_IFS
5431
5432fi
5433fi
5434CC=$ac_cv_prog_CC
5435if test -n "$CC"; then
5436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5437$as_echo "$CC" >&6; }
5438else
5439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440$as_echo "no" >&6; }
5441fi
5442
5443
5444    test -n "$CC" && break
5445  done
5446fi
5447if test -z "$CC"; then
5448  ac_ct_CC=$CC
5449  for ac_prog in cl.exe
5450do
5451  # Extract the first word of "$ac_prog", so it can be a program name with args.
5452set dummy $ac_prog; ac_word=$2
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if ${ac_cv_prog_ac_ct_CC+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458  if test -n "$ac_ct_CC"; then
5459  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464  IFS=$as_save_IFS
5465  test -z "$as_dir" && as_dir=.
5466    for ac_exec_ext in '' $ac_executable_extensions; do
5467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468    ac_cv_prog_ac_ct_CC="$ac_prog"
5469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470    break 2
5471  fi
5472done
5473  done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478ac_ct_CC=$ac_cv_prog_ac_ct_CC
5479if test -n "$ac_ct_CC"; then
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5481$as_echo "$ac_ct_CC" >&6; }
5482else
5483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486
5487
5488  test -n "$ac_ct_CC" && break
5489done
5490
5491  if test "x$ac_ct_CC" = x; then
5492    CC=""
5493  else
5494    case $cross_compiling:$ac_tool_warned in
5495yes:)
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498ac_tool_warned=yes ;;
5499esac
5500    CC=$ac_ct_CC
5501  fi
5502fi
5503
5504fi
5505
5506
5507test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5509as_fn_error $? "no acceptable C compiler found in \$PATH
5510See \`config.log' for more details" "$LINENO" 5; }
5511
5512# Provide some information about the compiler.
5513$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5514set X $ac_compile
5515ac_compiler=$2
5516for ac_option in --version -v -V -qversion; do
5517  { { ac_try="$ac_compiler $ac_option >&5"
5518case "(($ac_try" in
5519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520  *) ac_try_echo=$ac_try;;
5521esac
5522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5523$as_echo "$ac_try_echo"; } >&5
5524  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5525  ac_status=$?
5526  if test -s conftest.err; then
5527    sed '10a\
5528... rest of stderr output deleted ...
5529         10q' conftest.err >conftest.er1
5530    cat conftest.er1 >&5
5531  fi
5532  rm -f conftest.er1 conftest.err
5533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5534  test $ac_status = 0; }
5535done
5536
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5538$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5539if ${ac_cv_c_compiler_gnu+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h.  */
5544
5545int
5546main ()
5547{
5548#ifndef __GNUC__
5549       choke me
5550#endif
5551
5552  ;
5553  return 0;
5554}
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"; then :
5557  ac_compiler_gnu=yes
5558else
5559  ac_compiler_gnu=no
5560fi
5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562ac_cv_c_compiler_gnu=$ac_compiler_gnu
5563
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5566$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5567if test $ac_compiler_gnu = yes; then
5568  GCC=yes
5569else
5570  GCC=
5571fi
5572ac_test_CFLAGS=${CFLAGS+set}
5573ac_save_CFLAGS=$CFLAGS
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5575$as_echo_n "checking whether $CC accepts -g... " >&6; }
5576if ${ac_cv_prog_cc_g+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  ac_save_c_werror_flag=$ac_c_werror_flag
5580   ac_c_werror_flag=yes
5581   ac_cv_prog_cc_g=no
5582   CFLAGS="-g"
5583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h.  */
5585
5586int
5587main ()
5588{
5589
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594if ac_fn_c_try_compile "$LINENO"; then :
5595  ac_cv_prog_cc_g=yes
5596else
5597  CFLAGS=""
5598      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h.  */
5600
5601int
5602main ()
5603{
5604
5605  ;
5606  return 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"; then :
5610
5611else
5612  ac_c_werror_flag=$ac_save_c_werror_flag
5613	 CFLAGS="-g"
5614	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h.  */
5616
5617int
5618main ()
5619{
5620
5621  ;
5622  return 0;
5623}
5624_ACEOF
5625if ac_fn_c_try_compile "$LINENO"; then :
5626  ac_cv_prog_cc_g=yes
5627fi
5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629fi
5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631fi
5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633   ac_c_werror_flag=$ac_save_c_werror_flag
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5636$as_echo "$ac_cv_prog_cc_g" >&6; }
5637if test "$ac_test_CFLAGS" = set; then
5638  CFLAGS=$ac_save_CFLAGS
5639elif test $ac_cv_prog_cc_g = yes; then
5640  if test "$GCC" = yes; then
5641    CFLAGS="-g -O2"
5642  else
5643    CFLAGS="-g"
5644  fi
5645else
5646  if test "$GCC" = yes; then
5647    CFLAGS="-O2"
5648  else
5649    CFLAGS=
5650  fi
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5653$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5654if ${ac_cv_prog_cc_c89+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  ac_cv_prog_cc_c89=no
5658ac_save_CC=$CC
5659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661#include <stdarg.h>
5662#include <stdio.h>
5663struct stat;
5664/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5665struct buf { int x; };
5666FILE * (*rcsopen) (struct buf *, struct stat *, int);
5667static char *e (p, i)
5668     char **p;
5669     int i;
5670{
5671  return p[i];
5672}
5673static char *f (char * (*g) (char **, int), char **p, ...)
5674{
5675  char *s;
5676  va_list v;
5677  va_start (v,p);
5678  s = g (p, va_arg (v,int));
5679  va_end (v);
5680  return s;
5681}
5682
5683/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5684   function prototypes and stuff, but not '\xHH' hex character constants.
5685   These don't provoke an error unfortunately, instead are silently treated
5686   as 'x'.  The following induces an error, until -std is added to get
5687   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5688   array size at least.  It's necessary to write '\x00'==0 to get something
5689   that's true only with -std.  */
5690int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5691
5692/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5693   inside strings and character constants.  */
5694#define FOO(x) 'x'
5695int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5696
5697int test (int i, double x);
5698struct s1 {int (*f) (int a);};
5699struct s2 {int (*f) (double a);};
5700int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5701int argc;
5702char **argv;
5703int
5704main ()
5705{
5706return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5707  ;
5708  return 0;
5709}
5710_ACEOF
5711for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5712	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5713do
5714  CC="$ac_save_CC $ac_arg"
5715  if ac_fn_c_try_compile "$LINENO"; then :
5716  ac_cv_prog_cc_c89=$ac_arg
5717fi
5718rm -f core conftest.err conftest.$ac_objext
5719  test "x$ac_cv_prog_cc_c89" != "xno" && break
5720done
5721rm -f conftest.$ac_ext
5722CC=$ac_save_CC
5723
5724fi
5725# AC_CACHE_VAL
5726case "x$ac_cv_prog_cc_c89" in
5727  x)
5728    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5729$as_echo "none needed" >&6; } ;;
5730  xno)
5731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5732$as_echo "unsupported" >&6; } ;;
5733  *)
5734    CC="$CC $ac_cv_prog_cc_c89"
5735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5736$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5737esac
5738if test "x$ac_cv_prog_cc_c89" != xno; then :
5739
5740fi
5741
5742ac_ext=c
5743ac_cpp='$CPP $CPPFLAGS'
5744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
5748ac_ext=c
5749ac_cpp='$CPP $CPPFLAGS'
5750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752ac_compiler_gnu=$ac_cv_c_compiler_gnu
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5754$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5755if ${am_cv_prog_cc_c_o+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760
5761int
5762main ()
5763{
5764
5765  ;
5766  return 0;
5767}
5768_ACEOF
5769  # Make sure it works both with $CC and with simple cc.
5770  # Following AC_PROG_CC_C_O, we do the test twice because some
5771  # compilers refuse to overwrite an existing .o file with -o,
5772  # though they will create one.
5773  am_cv_prog_cc_c_o=yes
5774  for am_i in 1 2; do
5775    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5776   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); } \
5780         && test -f conftest2.$ac_objext; then
5781      : OK
5782    else
5783      am_cv_prog_cc_c_o=no
5784      break
5785    fi
5786  done
5787  rm -f core conftest*
5788  unset am_i
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5791$as_echo "$am_cv_prog_cc_c_o" >&6; }
5792if test "$am_cv_prog_cc_c_o" != yes; then
5793   # Losing compiler, so override with the script.
5794   # FIXME: It is wrong to rewrite CC.
5795   # But if we don't then we get into trouble of one sort or another.
5796   # A longer-term fix would be to have automake use am__CC in this case,
5797   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5798   CC="$am_aux_dir/compile $CC"
5799fi
5800ac_ext=c
5801ac_cpp='$CPP $CPPFLAGS'
5802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805
5806
5807depcc="$CC"   am_compiler_list=
5808
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5810$as_echo_n "checking dependency style of $depcc... " >&6; }
5811if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5812  $as_echo_n "(cached) " >&6
5813else
5814  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5815  # We make a subdir and do the tests there.  Otherwise we can end up
5816  # making bogus files that we don't know about and never remove.  For
5817  # instance it was reported that on HP-UX the gcc test will end up
5818  # making a dummy file named 'D' -- because '-MD' means "put the output
5819  # in D".
5820  rm -rf conftest.dir
5821  mkdir conftest.dir
5822  # Copy depcomp to subdir because otherwise we won't find it if we're
5823  # using a relative directory.
5824  cp "$am_depcomp" conftest.dir
5825  cd conftest.dir
5826  # We will build objects and dependencies in a subdirectory because
5827  # it helps to detect inapplicable dependency modes.  For instance
5828  # both Tru64's cc and ICC support -MD to output dependencies as a
5829  # side effect of compilation, but ICC will put the dependencies in
5830  # the current directory while Tru64 will put them in the object
5831  # directory.
5832  mkdir sub
5833
5834  am_cv_CC_dependencies_compiler_type=none
5835  if test "$am_compiler_list" = ""; then
5836     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5837  fi
5838  am__universal=false
5839  case " $depcc " in #(
5840     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5841     esac
5842
5843  for depmode in $am_compiler_list; do
5844    # Setup a source with many dependencies, because some compilers
5845    # like to wrap large dependency lists on column 80 (with \), and
5846    # we should not choose a depcomp mode which is confused by this.
5847    #
5848    # We need to recreate these files for each test, as the compiler may
5849    # overwrite some of them when testing with obscure command lines.
5850    # This happens at least with the AIX C compiler.
5851    : > sub/conftest.c
5852    for i in 1 2 3 4 5 6; do
5853      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5854      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5855      # Solaris 10 /bin/sh.
5856      echo '/* dummy */' > sub/conftst$i.h
5857    done
5858    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5859
5860    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5861    # mode.  It turns out that the SunPro C++ compiler does not properly
5862    # handle '-M -o', and we need to detect this.  Also, some Intel
5863    # versions had trouble with output in subdirs.
5864    am__obj=sub/conftest.${OBJEXT-o}
5865    am__minus_obj="-o $am__obj"
5866    case $depmode in
5867    gcc)
5868      # This depmode causes a compiler race in universal mode.
5869      test "$am__universal" = false || continue
5870      ;;
5871    nosideeffect)
5872      # After this tag, mechanisms are not by side-effect, so they'll
5873      # only be used when explicitly requested.
5874      if test "x$enable_dependency_tracking" = xyes; then
5875	continue
5876      else
5877	break
5878      fi
5879      ;;
5880    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5881      # This compiler won't grok '-c -o', but also, the minuso test has
5882      # not run yet.  These depmodes are late enough in the game, and
5883      # so weak that their functioning should not be impacted.
5884      am__obj=conftest.${OBJEXT-o}
5885      am__minus_obj=
5886      ;;
5887    none) break ;;
5888    esac
5889    if depmode=$depmode \
5890       source=sub/conftest.c object=$am__obj \
5891       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5892       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5893         >/dev/null 2>conftest.err &&
5894       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5895       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5896       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5897       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5898      # icc doesn't choke on unknown options, it will just issue warnings
5899      # or remarks (even with -Werror).  So we grep stderr for any message
5900      # that says an option was ignored or not supported.
5901      # When given -MP, icc 7.0 and 7.1 complain thusly:
5902      #   icc: Command line warning: ignoring option '-M'; no argument required
5903      # The diagnosis changed in icc 8.0:
5904      #   icc: Command line remark: option '-MP' not supported
5905      if (grep 'ignoring option' conftest.err ||
5906          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5907        am_cv_CC_dependencies_compiler_type=$depmode
5908        break
5909      fi
5910    fi
5911  done
5912
5913  cd ..
5914  rm -rf conftest.dir
5915else
5916  am_cv_CC_dependencies_compiler_type=none
5917fi
5918
5919fi
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5921$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5922CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5923
5924 if
5925  test "x$enable_dependency_tracking" != xno \
5926  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5927  am__fastdepCC_TRUE=
5928  am__fastdepCC_FALSE='#'
5929else
5930  am__fastdepCC_TRUE='#'
5931  am__fastdepCC_FALSE=
5932fi
5933
5934
5935ac_ext=c
5936ac_cpp='$CPP $CPPFLAGS'
5937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5941$as_echo_n "checking how to run the C preprocessor... " >&6; }
5942# On Suns, sometimes $CPP names a directory.
5943if test -n "$CPP" && test -d "$CPP"; then
5944  CPP=
5945fi
5946if test -z "$CPP"; then
5947  if ${ac_cv_prog_CPP+:} false; then :
5948  $as_echo_n "(cached) " >&6
5949else
5950      # Double quotes because CPP needs to be expanded
5951    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5952    do
5953      ac_preproc_ok=false
5954for ac_c_preproc_warn_flag in '' yes
5955do
5956  # Use a header file that comes with gcc, so configuring glibc
5957  # with a fresh cross-compiler works.
5958  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5959  # <limits.h> exists even on freestanding compilers.
5960  # On the NeXT, cc -E runs the code through the compiler's parser,
5961  # not just through cpp. "Syntax error" is here to catch this case.
5962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h.  */
5964#ifdef __STDC__
5965# include <limits.h>
5966#else
5967# include <assert.h>
5968#endif
5969		     Syntax error
5970_ACEOF
5971if ac_fn_c_try_cpp "$LINENO"; then :
5972
5973else
5974  # Broken: fails on valid input.
5975continue
5976fi
5977rm -f conftest.err conftest.i conftest.$ac_ext
5978
5979  # OK, works on sane cases.  Now check whether nonexistent headers
5980  # can be detected and how.
5981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982/* end confdefs.h.  */
5983#include <ac_nonexistent.h>
5984_ACEOF
5985if ac_fn_c_try_cpp "$LINENO"; then :
5986  # Broken: success on invalid input.
5987continue
5988else
5989  # Passes both tests.
5990ac_preproc_ok=:
5991break
5992fi
5993rm -f conftest.err conftest.i conftest.$ac_ext
5994
5995done
5996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5997rm -f conftest.i conftest.err conftest.$ac_ext
5998if $ac_preproc_ok; then :
5999  break
6000fi
6001
6002    done
6003    ac_cv_prog_CPP=$CPP
6004
6005fi
6006  CPP=$ac_cv_prog_CPP
6007else
6008  ac_cv_prog_CPP=$CPP
6009fi
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6011$as_echo "$CPP" >&6; }
6012ac_preproc_ok=false
6013for ac_c_preproc_warn_flag in '' yes
6014do
6015  # Use a header file that comes with gcc, so configuring glibc
6016  # with a fresh cross-compiler works.
6017  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6018  # <limits.h> exists even on freestanding compilers.
6019  # On the NeXT, cc -E runs the code through the compiler's parser,
6020  # not just through cpp. "Syntax error" is here to catch this case.
6021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h.  */
6023#ifdef __STDC__
6024# include <limits.h>
6025#else
6026# include <assert.h>
6027#endif
6028		     Syntax error
6029_ACEOF
6030if ac_fn_c_try_cpp "$LINENO"; then :
6031
6032else
6033  # Broken: fails on valid input.
6034continue
6035fi
6036rm -f conftest.err conftest.i conftest.$ac_ext
6037
6038  # OK, works on sane cases.  Now check whether nonexistent headers
6039  # can be detected and how.
6040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h.  */
6042#include <ac_nonexistent.h>
6043_ACEOF
6044if ac_fn_c_try_cpp "$LINENO"; then :
6045  # Broken: success on invalid input.
6046continue
6047else
6048  # Passes both tests.
6049ac_preproc_ok=:
6050break
6051fi
6052rm -f conftest.err conftest.i conftest.$ac_ext
6053
6054done
6055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6056rm -f conftest.i conftest.err conftest.$ac_ext
6057if $ac_preproc_ok; then :
6058
6059else
6060  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6062as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6063See \`config.log' for more details" "$LINENO" 5; }
6064fi
6065
6066ac_ext=c
6067ac_cpp='$CPP $CPPFLAGS'
6068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071
6072ac_ext=cpp
6073ac_cpp='$CXXCPP $CPPFLAGS'
6074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6077if test -z "$CXX"; then
6078  if test -n "$CCC"; then
6079    CXX=$CCC
6080  else
6081    if test -n "$ac_tool_prefix"; then
6082  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6083  do
6084    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6085set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if ${ac_cv_prog_CXX+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  if test -n "$CXX"; then
6092  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097  IFS=$as_save_IFS
6098  test -z "$as_dir" && as_dir=.
6099    for ac_exec_ext in '' $ac_executable_extensions; do
6100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103    break 2
6104  fi
6105done
6106  done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111CXX=$ac_cv_prog_CXX
6112if test -n "$CXX"; then
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6114$as_echo "$CXX" >&6; }
6115else
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120
6121    test -n "$CXX" && break
6122  done
6123fi
6124if test -z "$CXX"; then
6125  ac_ct_CXX=$CXX
6126  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6127do
6128  # Extract the first word of "$ac_prog", so it can be a program name with args.
6129set dummy $ac_prog; ac_word=$2
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131$as_echo_n "checking for $ac_word... " >&6; }
6132if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  if test -n "$ac_ct_CXX"; then
6136  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6137else
6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141  IFS=$as_save_IFS
6142  test -z "$as_dir" && as_dir=.
6143    for ac_exec_ext in '' $ac_executable_extensions; do
6144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145    ac_cv_prog_ac_ct_CXX="$ac_prog"
6146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147    break 2
6148  fi
6149done
6150  done
6151IFS=$as_save_IFS
6152
6153fi
6154fi
6155ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6156if test -n "$ac_ct_CXX"; then
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6158$as_echo "$ac_ct_CXX" >&6; }
6159else
6160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161$as_echo "no" >&6; }
6162fi
6163
6164
6165  test -n "$ac_ct_CXX" && break
6166done
6167
6168  if test "x$ac_ct_CXX" = x; then
6169    CXX="g++"
6170  else
6171    case $cross_compiling:$ac_tool_warned in
6172yes:)
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175ac_tool_warned=yes ;;
6176esac
6177    CXX=$ac_ct_CXX
6178  fi
6179fi
6180
6181  fi
6182fi
6183# Provide some information about the compiler.
6184$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6185set X $ac_compile
6186ac_compiler=$2
6187for ac_option in --version -v -V -qversion; do
6188  { { ac_try="$ac_compiler $ac_option >&5"
6189case "(($ac_try" in
6190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191  *) ac_try_echo=$ac_try;;
6192esac
6193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6194$as_echo "$ac_try_echo"; } >&5
6195  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6196  ac_status=$?
6197  if test -s conftest.err; then
6198    sed '10a\
6199... rest of stderr output deleted ...
6200         10q' conftest.err >conftest.er1
6201    cat conftest.er1 >&5
6202  fi
6203  rm -f conftest.er1 conftest.err
6204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205  test $ac_status = 0; }
6206done
6207
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6209$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6210if ${ac_cv_cxx_compiler_gnu+:} false; then :
6211  $as_echo_n "(cached) " >&6
6212else
6213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h.  */
6215
6216int
6217main ()
6218{
6219#ifndef __GNUC__
6220       choke me
6221#endif
6222
6223  ;
6224  return 0;
6225}
6226_ACEOF
6227if ac_fn_cxx_try_compile "$LINENO"; then :
6228  ac_compiler_gnu=yes
6229else
6230  ac_compiler_gnu=no
6231fi
6232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6234
6235fi
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6237$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6238if test $ac_compiler_gnu = yes; then
6239  GXX=yes
6240else
6241  GXX=
6242fi
6243ac_test_CXXFLAGS=${CXXFLAGS+set}
6244ac_save_CXXFLAGS=$CXXFLAGS
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6246$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6247if ${ac_cv_prog_cxx_g+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6251   ac_cxx_werror_flag=yes
6252   ac_cv_prog_cxx_g=no
6253   CXXFLAGS="-g"
6254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h.  */
6256
6257int
6258main ()
6259{
6260
6261  ;
6262  return 0;
6263}
6264_ACEOF
6265if ac_fn_cxx_try_compile "$LINENO"; then :
6266  ac_cv_prog_cxx_g=yes
6267else
6268  CXXFLAGS=""
6269      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h.  */
6271
6272int
6273main ()
6274{
6275
6276  ;
6277  return 0;
6278}
6279_ACEOF
6280if ac_fn_cxx_try_compile "$LINENO"; then :
6281
6282else
6283  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6284	 CXXFLAGS="-g"
6285	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h.  */
6287
6288int
6289main ()
6290{
6291
6292  ;
6293  return 0;
6294}
6295_ACEOF
6296if ac_fn_cxx_try_compile "$LINENO"; then :
6297  ac_cv_prog_cxx_g=yes
6298fi
6299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300fi
6301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302fi
6303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6305fi
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6307$as_echo "$ac_cv_prog_cxx_g" >&6; }
6308if test "$ac_test_CXXFLAGS" = set; then
6309  CXXFLAGS=$ac_save_CXXFLAGS
6310elif test $ac_cv_prog_cxx_g = yes; then
6311  if test "$GXX" = yes; then
6312    CXXFLAGS="-g -O2"
6313  else
6314    CXXFLAGS="-g"
6315  fi
6316else
6317  if test "$GXX" = yes; then
6318    CXXFLAGS="-O2"
6319  else
6320    CXXFLAGS=
6321  fi
6322fi
6323ac_ext=c
6324ac_cpp='$CPP $CPPFLAGS'
6325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328
6329depcc="$CXX"  am_compiler_list=
6330
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6332$as_echo_n "checking dependency style of $depcc... " >&6; }
6333if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6337  # We make a subdir and do the tests there.  Otherwise we can end up
6338  # making bogus files that we don't know about and never remove.  For
6339  # instance it was reported that on HP-UX the gcc test will end up
6340  # making a dummy file named 'D' -- because '-MD' means "put the output
6341  # in D".
6342  rm -rf conftest.dir
6343  mkdir conftest.dir
6344  # Copy depcomp to subdir because otherwise we won't find it if we're
6345  # using a relative directory.
6346  cp "$am_depcomp" conftest.dir
6347  cd conftest.dir
6348  # We will build objects and dependencies in a subdirectory because
6349  # it helps to detect inapplicable dependency modes.  For instance
6350  # both Tru64's cc and ICC support -MD to output dependencies as a
6351  # side effect of compilation, but ICC will put the dependencies in
6352  # the current directory while Tru64 will put them in the object
6353  # directory.
6354  mkdir sub
6355
6356  am_cv_CXX_dependencies_compiler_type=none
6357  if test "$am_compiler_list" = ""; then
6358     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6359  fi
6360  am__universal=false
6361  case " $depcc " in #(
6362     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6363     esac
6364
6365  for depmode in $am_compiler_list; do
6366    # Setup a source with many dependencies, because some compilers
6367    # like to wrap large dependency lists on column 80 (with \), and
6368    # we should not choose a depcomp mode which is confused by this.
6369    #
6370    # We need to recreate these files for each test, as the compiler may
6371    # overwrite some of them when testing with obscure command lines.
6372    # This happens at least with the AIX C compiler.
6373    : > sub/conftest.c
6374    for i in 1 2 3 4 5 6; do
6375      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6376      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6377      # Solaris 10 /bin/sh.
6378      echo '/* dummy */' > sub/conftst$i.h
6379    done
6380    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6381
6382    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6383    # mode.  It turns out that the SunPro C++ compiler does not properly
6384    # handle '-M -o', and we need to detect this.  Also, some Intel
6385    # versions had trouble with output in subdirs.
6386    am__obj=sub/conftest.${OBJEXT-o}
6387    am__minus_obj="-o $am__obj"
6388    case $depmode in
6389    gcc)
6390      # This depmode causes a compiler race in universal mode.
6391      test "$am__universal" = false || continue
6392      ;;
6393    nosideeffect)
6394      # After this tag, mechanisms are not by side-effect, so they'll
6395      # only be used when explicitly requested.
6396      if test "x$enable_dependency_tracking" = xyes; then
6397	continue
6398      else
6399	break
6400      fi
6401      ;;
6402    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6403      # This compiler won't grok '-c -o', but also, the minuso test has
6404      # not run yet.  These depmodes are late enough in the game, and
6405      # so weak that their functioning should not be impacted.
6406      am__obj=conftest.${OBJEXT-o}
6407      am__minus_obj=
6408      ;;
6409    none) break ;;
6410    esac
6411    if depmode=$depmode \
6412       source=sub/conftest.c object=$am__obj \
6413       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6414       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6415         >/dev/null 2>conftest.err &&
6416       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6417       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6418       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6419       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6420      # icc doesn't choke on unknown options, it will just issue warnings
6421      # or remarks (even with -Werror).  So we grep stderr for any message
6422      # that says an option was ignored or not supported.
6423      # When given -MP, icc 7.0 and 7.1 complain thusly:
6424      #   icc: Command line warning: ignoring option '-M'; no argument required
6425      # The diagnosis changed in icc 8.0:
6426      #   icc: Command line remark: option '-MP' not supported
6427      if (grep 'ignoring option' conftest.err ||
6428          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6429        am_cv_CXX_dependencies_compiler_type=$depmode
6430        break
6431      fi
6432    fi
6433  done
6434
6435  cd ..
6436  rm -rf conftest.dir
6437else
6438  am_cv_CXX_dependencies_compiler_type=none
6439fi
6440
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6443$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6444CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6445
6446 if
6447  test "x$enable_dependency_tracking" != xno \
6448  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6449  am__fastdepCXX_TRUE=
6450  am__fastdepCXX_FALSE='#'
6451else
6452  am__fastdepCXX_TRUE='#'
6453  am__fastdepCXX_FALSE=
6454fi
6455
6456
6457
6458# Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6459for ac_prog in gitlog-to-changelog
6460do
6461  # Extract the first word of "$ac_prog", so it can be a program name with args.
6462set dummy $ac_prog; ac_word=$2
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464$as_echo_n "checking for $ac_word... " >&6; }
6465if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6466  $as_echo_n "(cached) " >&6
6467else
6468  if test -n "$GITLOG_TO_CHANGELOG"; then
6469  ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474  IFS=$as_save_IFS
6475  test -z "$as_dir" && as_dir=.
6476    for ac_exec_ext in '' $ac_executable_extensions; do
6477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478    ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480    break 2
6481  fi
6482done
6483  done
6484IFS=$as_save_IFS
6485
6486fi
6487fi
6488GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6489if test -n "$GITLOG_TO_CHANGELOG"; then
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6491$as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6492else
6493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494$as_echo "no" >&6; }
6495fi
6496
6497
6498  test -n "$GITLOG_TO_CHANGELOG" && break
6499done
6500test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6501
6502
6503
6504
6505
6506
6507VERSION_NUMBER=0x010f01
6508
6509
6510# We need to compile and run a program on the build machine.  A
6511# comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
6512# the AC archive is broken for autoconf 2.57.  Given that there is no
6513# newer version of that macro, we assume that it is also broken for
6514# autoconf 2.61 and thus we use a simple but usually sufficient
6515# approach.
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
6517$as_echo_n "checking for cc for build... " >&6; }
6518if test "$cross_compiling" = "yes"; then
6519  CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
6520else
6521  CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
6522fi
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6524$as_echo "$CC_FOR_BUILD" >&6; }
6525
6526
6527
6528# Don't default to build static libs.
6529
6530case `pwd` in
6531  *\ * | *\	*)
6532    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6533$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6534esac
6535
6536
6537
6538macro_version='2.4.2'
6539macro_revision='1.3337'
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553ltmain="$ac_aux_dir/ltmain.sh"
6554
6555# Backslashify metacharacters that are still active within
6556# double-quoted strings.
6557sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6558
6559# Same as above, but do not quote variable references.
6560double_quote_subst='s/\(["`\\]\)/\\\1/g'
6561
6562# Sed substitution to delay expansion of an escaped shell variable in a
6563# double_quote_subst'ed string.
6564delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6565
6566# Sed substitution to delay expansion of an escaped single quote.
6567delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6568
6569# Sed substitution to avoid accidental globbing in evaled expressions
6570no_glob_subst='s/\*/\\\*/g'
6571
6572ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6573ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6574ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6575
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6577$as_echo_n "checking how to print strings... " >&6; }
6578# Test print first, because it will be a builtin if present.
6579if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6580   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6581  ECHO='print -r --'
6582elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6583  ECHO='printf %s\n'
6584else
6585  # Use this function as a fallback that always works.
6586  func_fallback_echo ()
6587  {
6588    eval 'cat <<_LTECHO_EOF
6589$1
6590_LTECHO_EOF'
6591  }
6592  ECHO='func_fallback_echo'
6593fi
6594
6595# func_echo_all arg...
6596# Invoke $ECHO with all args, space-separated.
6597func_echo_all ()
6598{
6599    $ECHO ""
6600}
6601
6602case "$ECHO" in
6603  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6604$as_echo "printf" >&6; } ;;
6605  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6606$as_echo "print -r" >&6; } ;;
6607  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6608$as_echo "cat" >&6; } ;;
6609esac
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6625$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6626if ${ac_cv_path_SED+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6630     for ac_i in 1 2 3 4 5 6 7; do
6631       ac_script="$ac_script$as_nl$ac_script"
6632     done
6633     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6634     { ac_script=; unset ac_script;}
6635     if test -z "$SED"; then
6636  ac_path_SED_found=false
6637  # Loop through the user's path and test for each of PROGNAME-LIST
6638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641  IFS=$as_save_IFS
6642  test -z "$as_dir" && as_dir=.
6643    for ac_prog in sed gsed; do
6644    for ac_exec_ext in '' $ac_executable_extensions; do
6645      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6646      as_fn_executable_p "$ac_path_SED" || continue
6647# Check for GNU ac_path_SED and select it if it is found.
6648  # Check for GNU $ac_path_SED
6649case `"$ac_path_SED" --version 2>&1` in
6650*GNU*)
6651  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6652*)
6653  ac_count=0
6654  $as_echo_n 0123456789 >"conftest.in"
6655  while :
6656  do
6657    cat "conftest.in" "conftest.in" >"conftest.tmp"
6658    mv "conftest.tmp" "conftest.in"
6659    cp "conftest.in" "conftest.nl"
6660    $as_echo '' >> "conftest.nl"
6661    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6662    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6663    as_fn_arith $ac_count + 1 && ac_count=$as_val
6664    if test $ac_count -gt ${ac_path_SED_max-0}; then
6665      # Best one so far, save it but keep looking for a better one
6666      ac_cv_path_SED="$ac_path_SED"
6667      ac_path_SED_max=$ac_count
6668    fi
6669    # 10*(2^10) chars as input seems more than enough
6670    test $ac_count -gt 10 && break
6671  done
6672  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6673esac
6674
6675      $ac_path_SED_found && break 3
6676    done
6677  done
6678  done
6679IFS=$as_save_IFS
6680  if test -z "$ac_cv_path_SED"; then
6681    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6682  fi
6683else
6684  ac_cv_path_SED=$SED
6685fi
6686
6687fi
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6689$as_echo "$ac_cv_path_SED" >&6; }
6690 SED="$ac_cv_path_SED"
6691  rm -f conftest.sed
6692
6693test -z "$SED" && SED=sed
6694Xsed="$SED -e 1s/^X//"
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6707$as_echo_n "checking for fgrep... " >&6; }
6708if ${ac_cv_path_FGREP+:} false; then :
6709  $as_echo_n "(cached) " >&6
6710else
6711  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6712   then ac_cv_path_FGREP="$GREP -F"
6713   else
6714     if test -z "$FGREP"; then
6715  ac_path_FGREP_found=false
6716  # Loop through the user's path and test for each of PROGNAME-LIST
6717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6719do
6720  IFS=$as_save_IFS
6721  test -z "$as_dir" && as_dir=.
6722    for ac_prog in fgrep; do
6723    for ac_exec_ext in '' $ac_executable_extensions; do
6724      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6725      as_fn_executable_p "$ac_path_FGREP" || continue
6726# Check for GNU ac_path_FGREP and select it if it is found.
6727  # Check for GNU $ac_path_FGREP
6728case `"$ac_path_FGREP" --version 2>&1` in
6729*GNU*)
6730  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6731*)
6732  ac_count=0
6733  $as_echo_n 0123456789 >"conftest.in"
6734  while :
6735  do
6736    cat "conftest.in" "conftest.in" >"conftest.tmp"
6737    mv "conftest.tmp" "conftest.in"
6738    cp "conftest.in" "conftest.nl"
6739    $as_echo 'FGREP' >> "conftest.nl"
6740    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6741    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6742    as_fn_arith $ac_count + 1 && ac_count=$as_val
6743    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6744      # Best one so far, save it but keep looking for a better one
6745      ac_cv_path_FGREP="$ac_path_FGREP"
6746      ac_path_FGREP_max=$ac_count
6747    fi
6748    # 10*(2^10) chars as input seems more than enough
6749    test $ac_count -gt 10 && break
6750  done
6751  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6752esac
6753
6754      $ac_path_FGREP_found && break 3
6755    done
6756  done
6757  done
6758IFS=$as_save_IFS
6759  if test -z "$ac_cv_path_FGREP"; then
6760    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6761  fi
6762else
6763  ac_cv_path_FGREP=$FGREP
6764fi
6765
6766   fi
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6769$as_echo "$ac_cv_path_FGREP" >&6; }
6770 FGREP="$ac_cv_path_FGREP"
6771
6772
6773test -z "$GREP" && GREP=grep
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793# Check whether --with-gnu-ld was given.
6794if test "${with_gnu_ld+set}" = set; then :
6795  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6796else
6797  with_gnu_ld=no
6798fi
6799
6800ac_prog=ld
6801if test "$GCC" = yes; then
6802  # Check if gcc -print-prog-name=ld gives a path.
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6804$as_echo_n "checking for ld used by $CC... " >&6; }
6805  case $host in
6806  *-*-mingw*)
6807    # gcc leaves a trailing carriage return which upsets mingw
6808    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6809  *)
6810    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6811  esac
6812  case $ac_prog in
6813    # Accept absolute paths.
6814    [\\/]* | ?:[\\/]*)
6815      re_direlt='/[^/][^/]*/\.\./'
6816      # Canonicalize the pathname of ld
6817      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6818      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6819	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6820      done
6821      test -z "$LD" && LD="$ac_prog"
6822      ;;
6823  "")
6824    # If it fails, then pretend we aren't using GCC.
6825    ac_prog=ld
6826    ;;
6827  *)
6828    # If it is relative, then search for the first ld in PATH.
6829    with_gnu_ld=unknown
6830    ;;
6831  esac
6832elif test "$with_gnu_ld" = yes; then
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6834$as_echo_n "checking for GNU ld... " >&6; }
6835else
6836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6837$as_echo_n "checking for non-GNU ld... " >&6; }
6838fi
6839if ${lt_cv_path_LD+:} false; then :
6840  $as_echo_n "(cached) " >&6
6841else
6842  if test -z "$LD"; then
6843  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6844  for ac_dir in $PATH; do
6845    IFS="$lt_save_ifs"
6846    test -z "$ac_dir" && ac_dir=.
6847    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6848      lt_cv_path_LD="$ac_dir/$ac_prog"
6849      # Check to see if the program is GNU ld.  I'd rather use --version,
6850      # but apparently some variants of GNU ld only accept -v.
6851      # Break only if it was the GNU/non-GNU ld that we prefer.
6852      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6853      *GNU* | *'with BFD'*)
6854	test "$with_gnu_ld" != no && break
6855	;;
6856      *)
6857	test "$with_gnu_ld" != yes && break
6858	;;
6859      esac
6860    fi
6861  done
6862  IFS="$lt_save_ifs"
6863else
6864  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6865fi
6866fi
6867
6868LD="$lt_cv_path_LD"
6869if test -n "$LD"; then
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6871$as_echo "$LD" >&6; }
6872else
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6878$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6879if ${lt_cv_prog_gnu_ld+:} false; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6883case `$LD -v 2>&1 </dev/null` in
6884*GNU* | *'with BFD'*)
6885  lt_cv_prog_gnu_ld=yes
6886  ;;
6887*)
6888  lt_cv_prog_gnu_ld=no
6889  ;;
6890esac
6891fi
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6893$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6894with_gnu_ld=$lt_cv_prog_gnu_ld
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6905$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6906if ${lt_cv_path_NM+:} false; then :
6907  $as_echo_n "(cached) " >&6
6908else
6909  if test -n "$NM"; then
6910  # Let the user override the test.
6911  lt_cv_path_NM="$NM"
6912else
6913  lt_nm_to_check="${ac_tool_prefix}nm"
6914  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6915    lt_nm_to_check="$lt_nm_to_check nm"
6916  fi
6917  for lt_tmp_nm in $lt_nm_to_check; do
6918    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6919    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6920      IFS="$lt_save_ifs"
6921      test -z "$ac_dir" && ac_dir=.
6922      tmp_nm="$ac_dir/$lt_tmp_nm"
6923      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6924	# Check to see if the nm accepts a BSD-compat flag.
6925	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6926	#   nm: unknown option "B" ignored
6927	# Tru64's nm complains that /dev/null is an invalid object file
6928	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6929	*/dev/null* | *'Invalid file or object type'*)
6930	  lt_cv_path_NM="$tmp_nm -B"
6931	  break
6932	  ;;
6933	*)
6934	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6935	  */dev/null*)
6936	    lt_cv_path_NM="$tmp_nm -p"
6937	    break
6938	    ;;
6939	  *)
6940	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6941	    continue # so that we can try to find one that supports BSD flags
6942	    ;;
6943	  esac
6944	  ;;
6945	esac
6946      fi
6947    done
6948    IFS="$lt_save_ifs"
6949  done
6950  : ${lt_cv_path_NM=no}
6951fi
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6954$as_echo "$lt_cv_path_NM" >&6; }
6955if test "$lt_cv_path_NM" != "no"; then
6956  NM="$lt_cv_path_NM"
6957else
6958  # Didn't find any BSD compatible name lister, look for dumpbin.
6959  if test -n "$DUMPBIN"; then :
6960    # Let the user override the test.
6961  else
6962    if test -n "$ac_tool_prefix"; then
6963  for ac_prog in dumpbin "link -dump"
6964  do
6965    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968$as_echo_n "checking for $ac_word... " >&6; }
6969if ${ac_cv_prog_DUMPBIN+:} false; then :
6970  $as_echo_n "(cached) " >&6
6971else
6972  if test -n "$DUMPBIN"; then
6973  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6974else
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978  IFS=$as_save_IFS
6979  test -z "$as_dir" && as_dir=.
6980    for ac_exec_ext in '' $ac_executable_extensions; do
6981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984    break 2
6985  fi
6986done
6987  done
6988IFS=$as_save_IFS
6989
6990fi
6991fi
6992DUMPBIN=$ac_cv_prog_DUMPBIN
6993if test -n "$DUMPBIN"; then
6994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6995$as_echo "$DUMPBIN" >&6; }
6996else
6997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998$as_echo "no" >&6; }
6999fi
7000
7001
7002    test -n "$DUMPBIN" && break
7003  done
7004fi
7005if test -z "$DUMPBIN"; then
7006  ac_ct_DUMPBIN=$DUMPBIN
7007  for ac_prog in dumpbin "link -dump"
7008do
7009  # Extract the first word of "$ac_prog", so it can be a program name with args.
7010set dummy $ac_prog; ac_word=$2
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012$as_echo_n "checking for $ac_word... " >&6; }
7013if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7014  $as_echo_n "(cached) " >&6
7015else
7016  if test -n "$ac_ct_DUMPBIN"; then
7017  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7018else
7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022  IFS=$as_save_IFS
7023  test -z "$as_dir" && as_dir=.
7024    for ac_exec_ext in '' $ac_executable_extensions; do
7025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028    break 2
7029  fi
7030done
7031  done
7032IFS=$as_save_IFS
7033
7034fi
7035fi
7036ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7037if test -n "$ac_ct_DUMPBIN"; then
7038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7039$as_echo "$ac_ct_DUMPBIN" >&6; }
7040else
7041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042$as_echo "no" >&6; }
7043fi
7044
7045
7046  test -n "$ac_ct_DUMPBIN" && break
7047done
7048
7049  if test "x$ac_ct_DUMPBIN" = x; then
7050    DUMPBIN=":"
7051  else
7052    case $cross_compiling:$ac_tool_warned in
7053yes:)
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056ac_tool_warned=yes ;;
7057esac
7058    DUMPBIN=$ac_ct_DUMPBIN
7059  fi
7060fi
7061
7062    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7063    *COFF*)
7064      DUMPBIN="$DUMPBIN -symbols"
7065      ;;
7066    *)
7067      DUMPBIN=:
7068      ;;
7069    esac
7070  fi
7071
7072  if test "$DUMPBIN" != ":"; then
7073    NM="$DUMPBIN"
7074  fi
7075fi
7076test -z "$NM" && NM=nm
7077
7078
7079
7080
7081
7082
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7084$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7085if ${lt_cv_nm_interface+:} false; then :
7086  $as_echo_n "(cached) " >&6
7087else
7088  lt_cv_nm_interface="BSD nm"
7089  echo "int some_variable = 0;" > conftest.$ac_ext
7090  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7091  (eval "$ac_compile" 2>conftest.err)
7092  cat conftest.err >&5
7093  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7094  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7095  cat conftest.err >&5
7096  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7097  cat conftest.out >&5
7098  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7099    lt_cv_nm_interface="MS dumpbin"
7100  fi
7101  rm -f conftest*
7102fi
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7104$as_echo "$lt_cv_nm_interface" >&6; }
7105
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7107$as_echo_n "checking whether ln -s works... " >&6; }
7108LN_S=$as_ln_s
7109if test "$LN_S" = "ln -s"; then
7110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7111$as_echo "yes" >&6; }
7112else
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7114$as_echo "no, using $LN_S" >&6; }
7115fi
7116
7117# find the maximum length of command line arguments
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7119$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7120if ${lt_cv_sys_max_cmd_len+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123    i=0
7124  teststring="ABCD"
7125
7126  case $build_os in
7127  msdosdjgpp*)
7128    # On DJGPP, this test can blow up pretty badly due to problems in libc
7129    # (any single argument exceeding 2000 bytes causes a buffer overrun
7130    # during glob expansion).  Even if it were fixed, the result of this
7131    # check would be larger than it should be.
7132    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7133    ;;
7134
7135  gnu*)
7136    # Under GNU Hurd, this test is not required because there is
7137    # no limit to the length of command line arguments.
7138    # Libtool will interpret -1 as no limit whatsoever
7139    lt_cv_sys_max_cmd_len=-1;
7140    ;;
7141
7142  cygwin* | mingw* | cegcc*)
7143    # On Win9x/ME, this test blows up -- it succeeds, but takes
7144    # about 5 minutes as the teststring grows exponentially.
7145    # Worse, since 9x/ME are not pre-emptively multitasking,
7146    # you end up with a "frozen" computer, even though with patience
7147    # the test eventually succeeds (with a max line length of 256k).
7148    # Instead, let's just punt: use the minimum linelength reported by
7149    # all of the supported platforms: 8192 (on NT/2K/XP).
7150    lt_cv_sys_max_cmd_len=8192;
7151    ;;
7152
7153  mint*)
7154    # On MiNT this can take a long time and run out of memory.
7155    lt_cv_sys_max_cmd_len=8192;
7156    ;;
7157
7158  amigaos*)
7159    # On AmigaOS with pdksh, this test takes hours, literally.
7160    # So we just punt and use a minimum line length of 8192.
7161    lt_cv_sys_max_cmd_len=8192;
7162    ;;
7163
7164  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7165    # This has been around since 386BSD, at least.  Likely further.
7166    if test -x /sbin/sysctl; then
7167      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7168    elif test -x /usr/sbin/sysctl; then
7169      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7170    else
7171      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7172    fi
7173    # And add a safety zone
7174    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7175    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7176    ;;
7177
7178  interix*)
7179    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7180    lt_cv_sys_max_cmd_len=196608
7181    ;;
7182
7183  os2*)
7184    # The test takes a long time on OS/2.
7185    lt_cv_sys_max_cmd_len=8192
7186    ;;
7187
7188  osf*)
7189    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7190    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7191    # nice to cause kernel panics so lets avoid the loop below.
7192    # First set a reasonable default.
7193    lt_cv_sys_max_cmd_len=16384
7194    #
7195    if test -x /sbin/sysconfig; then
7196      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7197        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7198      esac
7199    fi
7200    ;;
7201  sco3.2v5*)
7202    lt_cv_sys_max_cmd_len=102400
7203    ;;
7204  sysv5* | sco5v6* | sysv4.2uw2*)
7205    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7206    if test -n "$kargmax"; then
7207      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7208    else
7209      lt_cv_sys_max_cmd_len=32768
7210    fi
7211    ;;
7212  *)
7213    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7214    if test -n "$lt_cv_sys_max_cmd_len"; then
7215      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7216      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7217    else
7218      # Make teststring a little bigger before we do anything with it.
7219      # a 1K string should be a reasonable start.
7220      for i in 1 2 3 4 5 6 7 8 ; do
7221        teststring=$teststring$teststring
7222      done
7223      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7224      # If test is not a shell built-in, we'll probably end up computing a
7225      # maximum length that is only half of the actual maximum length, but
7226      # we can't tell.
7227      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7228	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7229	      test $i != 17 # 1/2 MB should be enough
7230      do
7231        i=`expr $i + 1`
7232        teststring=$teststring$teststring
7233      done
7234      # Only check the string length outside the loop.
7235      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7236      teststring=
7237      # Add a significant safety factor because C++ compilers can tack on
7238      # massive amounts of additional arguments before passing them to the
7239      # linker.  It appears as though 1/2 is a usable value.
7240      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7241    fi
7242    ;;
7243  esac
7244
7245fi
7246
7247if test -n $lt_cv_sys_max_cmd_len ; then
7248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7249$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7250else
7251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7252$as_echo "none" >&6; }
7253fi
7254max_cmd_len=$lt_cv_sys_max_cmd_len
7255
7256
7257
7258
7259
7260
7261: ${CP="cp -f"}
7262: ${MV="mv -f"}
7263: ${RM="rm -f"}
7264
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7266$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7267# Try some XSI features
7268xsi_shell=no
7269( _lt_dummy="a/b/c"
7270  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7271      = c,a/b,b/c, \
7272    && eval 'test $(( 1 + 1 )) -eq 2 \
7273    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7274  && xsi_shell=yes
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7276$as_echo "$xsi_shell" >&6; }
7277
7278
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7280$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7281lt_shell_append=no
7282( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7283    >/dev/null 2>&1 \
7284  && lt_shell_append=yes
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7286$as_echo "$lt_shell_append" >&6; }
7287
7288
7289if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7290  lt_unset=unset
7291else
7292  lt_unset=false
7293fi
7294
7295
7296
7297
7298
7299# test EBCDIC or ASCII
7300case `echo X|tr X '\101'` in
7301 A) # ASCII based system
7302    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7303  lt_SP2NL='tr \040 \012'
7304  lt_NL2SP='tr \015\012 \040\040'
7305  ;;
7306 *) # EBCDIC based system
7307  lt_SP2NL='tr \100 \n'
7308  lt_NL2SP='tr \r\n \100\100'
7309  ;;
7310esac
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7321$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7322if ${lt_cv_to_host_file_cmd+:} false; then :
7323  $as_echo_n "(cached) " >&6
7324else
7325  case $host in
7326  *-*-mingw* )
7327    case $build in
7328      *-*-mingw* ) # actually msys
7329        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7330        ;;
7331      *-*-cygwin* )
7332        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7333        ;;
7334      * ) # otherwise, assume *nix
7335        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7336        ;;
7337    esac
7338    ;;
7339  *-*-cygwin* )
7340    case $build in
7341      *-*-mingw* ) # actually msys
7342        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7343        ;;
7344      *-*-cygwin* )
7345        lt_cv_to_host_file_cmd=func_convert_file_noop
7346        ;;
7347      * ) # otherwise, assume *nix
7348        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7349        ;;
7350    esac
7351    ;;
7352  * ) # unhandled hosts (and "normal" native builds)
7353    lt_cv_to_host_file_cmd=func_convert_file_noop
7354    ;;
7355esac
7356
7357fi
7358
7359to_host_file_cmd=$lt_cv_to_host_file_cmd
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7361$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7362
7363
7364
7365
7366
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7368$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7369if ${lt_cv_to_tool_file_cmd+:} false; then :
7370  $as_echo_n "(cached) " >&6
7371else
7372  #assume ordinary cross tools, or native build.
7373lt_cv_to_tool_file_cmd=func_convert_file_noop
7374case $host in
7375  *-*-mingw* )
7376    case $build in
7377      *-*-mingw* ) # actually msys
7378        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7379        ;;
7380    esac
7381    ;;
7382esac
7383
7384fi
7385
7386to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7388$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7389
7390
7391
7392
7393
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7395$as_echo_n "checking for $LD option to reload object files... " >&6; }
7396if ${lt_cv_ld_reload_flag+:} false; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399  lt_cv_ld_reload_flag='-r'
7400fi
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7402$as_echo "$lt_cv_ld_reload_flag" >&6; }
7403reload_flag=$lt_cv_ld_reload_flag
7404case $reload_flag in
7405"" | " "*) ;;
7406*) reload_flag=" $reload_flag" ;;
7407esac
7408reload_cmds='$LD$reload_flag -o $output$reload_objs'
7409case $host_os in
7410  cygwin* | mingw* | pw32* | cegcc*)
7411    if test "$GCC" != yes; then
7412      reload_cmds=false
7413    fi
7414    ;;
7415  darwin*)
7416    if test "$GCC" = yes; then
7417      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7418    else
7419      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7420    fi
7421    ;;
7422esac
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432if test -n "$ac_tool_prefix"; then
7433  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7434set dummy ${ac_tool_prefix}objdump; ac_word=$2
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436$as_echo_n "checking for $ac_word... " >&6; }
7437if ${ac_cv_prog_OBJDUMP+:} false; then :
7438  $as_echo_n "(cached) " >&6
7439else
7440  if test -n "$OBJDUMP"; then
7441  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7442else
7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446  IFS=$as_save_IFS
7447  test -z "$as_dir" && as_dir=.
7448    for ac_exec_ext in '' $ac_executable_extensions; do
7449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452    break 2
7453  fi
7454done
7455  done
7456IFS=$as_save_IFS
7457
7458fi
7459fi
7460OBJDUMP=$ac_cv_prog_OBJDUMP
7461if test -n "$OBJDUMP"; then
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7463$as_echo "$OBJDUMP" >&6; }
7464else
7465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466$as_echo "no" >&6; }
7467fi
7468
7469
7470fi
7471if test -z "$ac_cv_prog_OBJDUMP"; then
7472  ac_ct_OBJDUMP=$OBJDUMP
7473  # Extract the first word of "objdump", so it can be a program name with args.
7474set dummy objdump; ac_word=$2
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476$as_echo_n "checking for $ac_word... " >&6; }
7477if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  if test -n "$ac_ct_OBJDUMP"; then
7481  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7482else
7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486  IFS=$as_save_IFS
7487  test -z "$as_dir" && as_dir=.
7488    for ac_exec_ext in '' $ac_executable_extensions; do
7489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492    break 2
7493  fi
7494done
7495  done
7496IFS=$as_save_IFS
7497
7498fi
7499fi
7500ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7501if test -n "$ac_ct_OBJDUMP"; then
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7503$as_echo "$ac_ct_OBJDUMP" >&6; }
7504else
7505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506$as_echo "no" >&6; }
7507fi
7508
7509  if test "x$ac_ct_OBJDUMP" = x; then
7510    OBJDUMP="false"
7511  else
7512    case $cross_compiling:$ac_tool_warned in
7513yes:)
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516ac_tool_warned=yes ;;
7517esac
7518    OBJDUMP=$ac_ct_OBJDUMP
7519  fi
7520else
7521  OBJDUMP="$ac_cv_prog_OBJDUMP"
7522fi
7523
7524test -z "$OBJDUMP" && OBJDUMP=objdump
7525
7526
7527
7528
7529
7530
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7532$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7533if ${lt_cv_deplibs_check_method+:} false; then :
7534  $as_echo_n "(cached) " >&6
7535else
7536  lt_cv_file_magic_cmd='$MAGIC_CMD'
7537lt_cv_file_magic_test_file=
7538lt_cv_deplibs_check_method='unknown'
7539# Need to set the preceding variable on all platforms that support
7540# interlibrary dependencies.
7541# 'none' -- dependencies not supported.
7542# `unknown' -- same as none, but documents that we really don't know.
7543# 'pass_all' -- all dependencies passed with no checks.
7544# 'test_compile' -- check by making test program.
7545# 'file_magic [[regex]]' -- check by looking for files in library path
7546# which responds to the $file_magic_cmd with a given extended regex.
7547# If you have `file' or equivalent on your system and you're not sure
7548# whether `pass_all' will *always* work, you probably want this one.
7549
7550case $host_os in
7551aix[4-9]*)
7552  lt_cv_deplibs_check_method=pass_all
7553  ;;
7554
7555beos*)
7556  lt_cv_deplibs_check_method=pass_all
7557  ;;
7558
7559bsdi[45]*)
7560  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7561  lt_cv_file_magic_cmd='/usr/bin/file -L'
7562  lt_cv_file_magic_test_file=/shlib/libc.so
7563  ;;
7564
7565cygwin*)
7566  # func_win32_libid is a shell function defined in ltmain.sh
7567  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7568  lt_cv_file_magic_cmd='func_win32_libid'
7569  ;;
7570
7571mingw* | pw32*)
7572  # Base MSYS/MinGW do not provide the 'file' command needed by
7573  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7574  # unless we find 'file', for example because we are cross-compiling.
7575  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7576  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7577    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7578    lt_cv_file_magic_cmd='func_win32_libid'
7579  else
7580    # Keep this pattern in sync with the one in func_win32_libid.
7581    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7582    lt_cv_file_magic_cmd='$OBJDUMP -f'
7583  fi
7584  ;;
7585
7586cegcc*)
7587  # use the weaker test based on 'objdump'. See mingw*.
7588  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7589  lt_cv_file_magic_cmd='$OBJDUMP -f'
7590  ;;
7591
7592darwin* | rhapsody*)
7593  lt_cv_deplibs_check_method=pass_all
7594  ;;
7595
7596freebsd* | dragonfly*)
7597  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7598    case $host_cpu in
7599    i*86 )
7600      # Not sure whether the presence of OpenBSD here was a mistake.
7601      # Let's accept both of them until this is cleared up.
7602      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7603      lt_cv_file_magic_cmd=/usr/bin/file
7604      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7605      ;;
7606    esac
7607  else
7608    lt_cv_deplibs_check_method=pass_all
7609  fi
7610  ;;
7611
7612gnu*)
7613  lt_cv_deplibs_check_method=pass_all
7614  ;;
7615
7616haiku*)
7617  lt_cv_deplibs_check_method=pass_all
7618  ;;
7619
7620hpux10.20* | hpux11*)
7621  lt_cv_file_magic_cmd=/usr/bin/file
7622  case $host_cpu in
7623  ia64*)
7624    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7625    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7626    ;;
7627  hppa*64*)
7628    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]'
7629    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7630    ;;
7631  *)
7632    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7633    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7634    ;;
7635  esac
7636  ;;
7637
7638interix[3-9]*)
7639  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7640  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7641  ;;
7642
7643irix5* | irix6* | nonstopux*)
7644  case $LD in
7645  *-32|*"-32 ") libmagic=32-bit;;
7646  *-n32|*"-n32 ") libmagic=N32;;
7647  *-64|*"-64 ") libmagic=64-bit;;
7648  *) libmagic=never-match;;
7649  esac
7650  lt_cv_deplibs_check_method=pass_all
7651  ;;
7652
7653# This must be glibc/ELF.
7654linux* | k*bsd*-gnu | kopensolaris*-gnu)
7655  lt_cv_deplibs_check_method=pass_all
7656  ;;
7657
7658netbsd* | netbsdelf*-gnu)
7659  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7660    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7661  else
7662    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7663  fi
7664  ;;
7665
7666newos6*)
7667  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7668  lt_cv_file_magic_cmd=/usr/bin/file
7669  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7670  ;;
7671
7672*nto* | *qnx*)
7673  lt_cv_deplibs_check_method=pass_all
7674  ;;
7675
7676openbsd*)
7677  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7678    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7679  else
7680    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7681  fi
7682  ;;
7683
7684osf3* | osf4* | osf5*)
7685  lt_cv_deplibs_check_method=pass_all
7686  ;;
7687
7688rdos*)
7689  lt_cv_deplibs_check_method=pass_all
7690  ;;
7691
7692solaris*)
7693  lt_cv_deplibs_check_method=pass_all
7694  ;;
7695
7696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7697  lt_cv_deplibs_check_method=pass_all
7698  ;;
7699
7700sysv4 | sysv4.3*)
7701  case $host_vendor in
7702  motorola)
7703    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]'
7704    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7705    ;;
7706  ncr)
7707    lt_cv_deplibs_check_method=pass_all
7708    ;;
7709  sequent)
7710    lt_cv_file_magic_cmd='/bin/file'
7711    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7712    ;;
7713  sni)
7714    lt_cv_file_magic_cmd='/bin/file'
7715    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7716    lt_cv_file_magic_test_file=/lib/libc.so
7717    ;;
7718  siemens)
7719    lt_cv_deplibs_check_method=pass_all
7720    ;;
7721  pc)
7722    lt_cv_deplibs_check_method=pass_all
7723    ;;
7724  esac
7725  ;;
7726
7727tpf*)
7728  lt_cv_deplibs_check_method=pass_all
7729  ;;
7730esac
7731
7732fi
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7734$as_echo "$lt_cv_deplibs_check_method" >&6; }
7735
7736file_magic_glob=
7737want_nocaseglob=no
7738if test "$build" = "$host"; then
7739  case $host_os in
7740  mingw* | pw32*)
7741    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7742      want_nocaseglob=yes
7743    else
7744      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7745    fi
7746    ;;
7747  esac
7748fi
7749
7750file_magic_cmd=$lt_cv_file_magic_cmd
7751deplibs_check_method=$lt_cv_deplibs_check_method
7752test -z "$deplibs_check_method" && deplibs_check_method=unknown
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775if test -n "$ac_tool_prefix"; then
7776  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7777set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779$as_echo_n "checking for $ac_word... " >&6; }
7780if ${ac_cv_prog_DLLTOOL+:} false; then :
7781  $as_echo_n "(cached) " >&6
7782else
7783  if test -n "$DLLTOOL"; then
7784  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7785else
7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789  IFS=$as_save_IFS
7790  test -z "$as_dir" && as_dir=.
7791    for ac_exec_ext in '' $ac_executable_extensions; do
7792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795    break 2
7796  fi
7797done
7798  done
7799IFS=$as_save_IFS
7800
7801fi
7802fi
7803DLLTOOL=$ac_cv_prog_DLLTOOL
7804if test -n "$DLLTOOL"; then
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7806$as_echo "$DLLTOOL" >&6; }
7807else
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
7810fi
7811
7812
7813fi
7814if test -z "$ac_cv_prog_DLLTOOL"; then
7815  ac_ct_DLLTOOL=$DLLTOOL
7816  # Extract the first word of "dlltool", so it can be a program name with args.
7817set dummy dlltool; ac_word=$2
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  if test -n "$ac_ct_DLLTOOL"; then
7824  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7825else
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829  IFS=$as_save_IFS
7830  test -z "$as_dir" && as_dir=.
7831    for ac_exec_ext in '' $ac_executable_extensions; do
7832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835    break 2
7836  fi
7837done
7838  done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7844if test -n "$ac_ct_DLLTOOL"; then
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7846$as_echo "$ac_ct_DLLTOOL" >&6; }
7847else
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
7850fi
7851
7852  if test "x$ac_ct_DLLTOOL" = x; then
7853    DLLTOOL="false"
7854  else
7855    case $cross_compiling:$ac_tool_warned in
7856yes:)
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859ac_tool_warned=yes ;;
7860esac
7861    DLLTOOL=$ac_ct_DLLTOOL
7862  fi
7863else
7864  DLLTOOL="$ac_cv_prog_DLLTOOL"
7865fi
7866
7867test -z "$DLLTOOL" && DLLTOOL=dlltool
7868
7869
7870
7871
7872
7873
7874
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7876$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7877if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7878  $as_echo_n "(cached) " >&6
7879else
7880  lt_cv_sharedlib_from_linklib_cmd='unknown'
7881
7882case $host_os in
7883cygwin* | mingw* | pw32* | cegcc*)
7884  # two different shell functions defined in ltmain.sh
7885  # decide which to use based on capabilities of $DLLTOOL
7886  case `$DLLTOOL --help 2>&1` in
7887  *--identify-strict*)
7888    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7889    ;;
7890  *)
7891    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7892    ;;
7893  esac
7894  ;;
7895*)
7896  # fallback: assume linklib IS sharedlib
7897  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7898  ;;
7899esac
7900
7901fi
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7903$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7904sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7905test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7906
7907
7908
7909
7910
7911
7912
7913if test -n "$ac_tool_prefix"; then
7914  for ac_prog in ar
7915  do
7916    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7917set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919$as_echo_n "checking for $ac_word... " >&6; }
7920if ${ac_cv_prog_AR+:} false; then :
7921  $as_echo_n "(cached) " >&6
7922else
7923  if test -n "$AR"; then
7924  ac_cv_prog_AR="$AR" # Let the user override the test.
7925else
7926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927for as_dir in $PATH
7928do
7929  IFS=$as_save_IFS
7930  test -z "$as_dir" && as_dir=.
7931    for ac_exec_ext in '' $ac_executable_extensions; do
7932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935    break 2
7936  fi
7937done
7938  done
7939IFS=$as_save_IFS
7940
7941fi
7942fi
7943AR=$ac_cv_prog_AR
7944if test -n "$AR"; then
7945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7946$as_echo "$AR" >&6; }
7947else
7948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949$as_echo "no" >&6; }
7950fi
7951
7952
7953    test -n "$AR" && break
7954  done
7955fi
7956if test -z "$AR"; then
7957  ac_ct_AR=$AR
7958  for ac_prog in ar
7959do
7960  # Extract the first word of "$ac_prog", so it can be a program name with args.
7961set dummy $ac_prog; ac_word=$2
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963$as_echo_n "checking for $ac_word... " >&6; }
7964if ${ac_cv_prog_ac_ct_AR+:} false; then :
7965  $as_echo_n "(cached) " >&6
7966else
7967  if test -n "$ac_ct_AR"; then
7968  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7969else
7970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971for as_dir in $PATH
7972do
7973  IFS=$as_save_IFS
7974  test -z "$as_dir" && as_dir=.
7975    for ac_exec_ext in '' $ac_executable_extensions; do
7976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977    ac_cv_prog_ac_ct_AR="$ac_prog"
7978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979    break 2
7980  fi
7981done
7982  done
7983IFS=$as_save_IFS
7984
7985fi
7986fi
7987ac_ct_AR=$ac_cv_prog_ac_ct_AR
7988if test -n "$ac_ct_AR"; then
7989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7990$as_echo "$ac_ct_AR" >&6; }
7991else
7992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993$as_echo "no" >&6; }
7994fi
7995
7996
7997  test -n "$ac_ct_AR" && break
7998done
7999
8000  if test "x$ac_ct_AR" = x; then
8001    AR="false"
8002  else
8003    case $cross_compiling:$ac_tool_warned in
8004yes:)
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8007ac_tool_warned=yes ;;
8008esac
8009    AR=$ac_ct_AR
8010  fi
8011fi
8012
8013: ${AR=ar}
8014: ${AR_FLAGS=cru}
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8027$as_echo_n "checking for archiver @FILE support... " >&6; }
8028if ${lt_cv_ar_at_file+:} false; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  lt_cv_ar_at_file=no
8032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h.  */
8034
8035int
8036main ()
8037{
8038
8039  ;
8040  return 0;
8041}
8042_ACEOF
8043if ac_fn_c_try_compile "$LINENO"; then :
8044  echo conftest.$ac_objext > conftest.lst
8045      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8046      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8047  (eval $lt_ar_try) 2>&5
8048  ac_status=$?
8049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050  test $ac_status = 0; }
8051      if test "$ac_status" -eq 0; then
8052	# Ensure the archiver fails upon bogus file names.
8053	rm -f conftest.$ac_objext libconftest.a
8054	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8055  (eval $lt_ar_try) 2>&5
8056  ac_status=$?
8057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058  test $ac_status = 0; }
8059	if test "$ac_status" -ne 0; then
8060          lt_cv_ar_at_file=@
8061        fi
8062      fi
8063      rm -f conftest.* libconftest.a
8064
8065fi
8066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8070$as_echo "$lt_cv_ar_at_file" >&6; }
8071
8072if test "x$lt_cv_ar_at_file" = xno; then
8073  archiver_list_spec=
8074else
8075  archiver_list_spec=$lt_cv_ar_at_file
8076fi
8077
8078
8079
8080
8081
8082
8083
8084if test -n "$ac_tool_prefix"; then
8085  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8086set dummy ${ac_tool_prefix}strip; ac_word=$2
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088$as_echo_n "checking for $ac_word... " >&6; }
8089if ${ac_cv_prog_STRIP+:} false; then :
8090  $as_echo_n "(cached) " >&6
8091else
8092  if test -n "$STRIP"; then
8093  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8094else
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098  IFS=$as_save_IFS
8099  test -z "$as_dir" && as_dir=.
8100    for ac_exec_ext in '' $ac_executable_extensions; do
8101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104    break 2
8105  fi
8106done
8107  done
8108IFS=$as_save_IFS
8109
8110fi
8111fi
8112STRIP=$ac_cv_prog_STRIP
8113if test -n "$STRIP"; then
8114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8115$as_echo "$STRIP" >&6; }
8116else
8117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
8119fi
8120
8121
8122fi
8123if test -z "$ac_cv_prog_STRIP"; then
8124  ac_ct_STRIP=$STRIP
8125  # Extract the first word of "strip", so it can be a program name with args.
8126set dummy strip; ac_word=$2
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128$as_echo_n "checking for $ac_word... " >&6; }
8129if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8130  $as_echo_n "(cached) " >&6
8131else
8132  if test -n "$ac_ct_STRIP"; then
8133  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8134else
8135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136for as_dir in $PATH
8137do
8138  IFS=$as_save_IFS
8139  test -z "$as_dir" && as_dir=.
8140    for ac_exec_ext in '' $ac_executable_extensions; do
8141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142    ac_cv_prog_ac_ct_STRIP="strip"
8143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144    break 2
8145  fi
8146done
8147  done
8148IFS=$as_save_IFS
8149
8150fi
8151fi
8152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8153if test -n "$ac_ct_STRIP"; then
8154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8155$as_echo "$ac_ct_STRIP" >&6; }
8156else
8157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
8159fi
8160
8161  if test "x$ac_ct_STRIP" = x; then
8162    STRIP=":"
8163  else
8164    case $cross_compiling:$ac_tool_warned in
8165yes:)
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168ac_tool_warned=yes ;;
8169esac
8170    STRIP=$ac_ct_STRIP
8171  fi
8172else
8173  STRIP="$ac_cv_prog_STRIP"
8174fi
8175
8176test -z "$STRIP" && STRIP=:
8177
8178
8179
8180
8181
8182
8183if test -n "$ac_tool_prefix"; then
8184  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8185set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187$as_echo_n "checking for $ac_word... " >&6; }
8188if ${ac_cv_prog_RANLIB+:} false; then :
8189  $as_echo_n "(cached) " >&6
8190else
8191  if test -n "$RANLIB"; then
8192  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8193else
8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195for as_dir in $PATH
8196do
8197  IFS=$as_save_IFS
8198  test -z "$as_dir" && as_dir=.
8199    for ac_exec_ext in '' $ac_executable_extensions; do
8200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203    break 2
8204  fi
8205done
8206  done
8207IFS=$as_save_IFS
8208
8209fi
8210fi
8211RANLIB=$ac_cv_prog_RANLIB
8212if test -n "$RANLIB"; then
8213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8214$as_echo "$RANLIB" >&6; }
8215else
8216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217$as_echo "no" >&6; }
8218fi
8219
8220
8221fi
8222if test -z "$ac_cv_prog_RANLIB"; then
8223  ac_ct_RANLIB=$RANLIB
8224  # Extract the first word of "ranlib", so it can be a program name with args.
8225set dummy ranlib; ac_word=$2
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227$as_echo_n "checking for $ac_word... " >&6; }
8228if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8229  $as_echo_n "(cached) " >&6
8230else
8231  if test -n "$ac_ct_RANLIB"; then
8232  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237  IFS=$as_save_IFS
8238  test -z "$as_dir" && as_dir=.
8239    for ac_exec_ext in '' $ac_executable_extensions; do
8240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241    ac_cv_prog_ac_ct_RANLIB="ranlib"
8242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243    break 2
8244  fi
8245done
8246  done
8247IFS=$as_save_IFS
8248
8249fi
8250fi
8251ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8252if test -n "$ac_ct_RANLIB"; then
8253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8254$as_echo "$ac_ct_RANLIB" >&6; }
8255else
8256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }
8258fi
8259
8260  if test "x$ac_ct_RANLIB" = x; then
8261    RANLIB=":"
8262  else
8263    case $cross_compiling:$ac_tool_warned in
8264yes:)
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267ac_tool_warned=yes ;;
8268esac
8269    RANLIB=$ac_ct_RANLIB
8270  fi
8271else
8272  RANLIB="$ac_cv_prog_RANLIB"
8273fi
8274
8275test -z "$RANLIB" && RANLIB=:
8276
8277
8278
8279
8280
8281
8282# Determine commands to create old-style static archives.
8283old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8284old_postinstall_cmds='chmod 644 $oldlib'
8285old_postuninstall_cmds=
8286
8287if test -n "$RANLIB"; then
8288  case $host_os in
8289  openbsd*)
8290    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8291    ;;
8292  *)
8293    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8294    ;;
8295  esac
8296  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8297fi
8298
8299case $host_os in
8300  darwin*)
8301    lock_old_archive_extraction=yes ;;
8302  *)
8303    lock_old_archive_extraction=no ;;
8304esac
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344# If no C compiler was specified, use CC.
8345LTCC=${LTCC-"$CC"}
8346
8347# If no C compiler flags were specified, use CFLAGS.
8348LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8349
8350# Allow CC to be a program name with arguments.
8351compiler=$CC
8352
8353
8354# Check for command to grab the raw symbol name followed by C symbol from nm.
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8356$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8357if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8358  $as_echo_n "(cached) " >&6
8359else
8360
8361# These are sane defaults that work on at least a few old systems.
8362# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8363
8364# Character class describing NM global symbol codes.
8365symcode='[BCDEGRST]'
8366
8367# Regexp to match symbols that can be accessed directly from C.
8368sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8369
8370# Define system-specific variables.
8371case $host_os in
8372aix*)
8373  symcode='[BCDT]'
8374  ;;
8375cygwin* | mingw* | pw32* | cegcc*)
8376  symcode='[ABCDGISTW]'
8377  ;;
8378hpux*)
8379  if test "$host_cpu" = ia64; then
8380    symcode='[ABCDEGRST]'
8381  fi
8382  ;;
8383irix* | nonstopux*)
8384  symcode='[BCDEGRST]'
8385  ;;
8386osf*)
8387  symcode='[BCDEGQRST]'
8388  ;;
8389solaris*)
8390  symcode='[BDRT]'
8391  ;;
8392sco3.2v5*)
8393  symcode='[DT]'
8394  ;;
8395sysv4.2uw2*)
8396  symcode='[DT]'
8397  ;;
8398sysv5* | sco5v6* | unixware* | OpenUNIX*)
8399  symcode='[ABDT]'
8400  ;;
8401sysv4)
8402  symcode='[DFNSTU]'
8403  ;;
8404esac
8405
8406# If we're using GNU nm, then use its standard symbol codes.
8407case `$NM -V 2>&1` in
8408*GNU* | *'with BFD'*)
8409  symcode='[ABCDGIRSTW]' ;;
8410esac
8411
8412# Transform an extracted symbol line into a proper C declaration.
8413# Some systems (esp. on ia64) link data and code symbols differently,
8414# so use this general approach.
8415lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8416
8417# Transform an extracted symbol line into symbol name and symbol address
8418lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8419lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8420
8421# Handle CRLF in mingw tool chain
8422opt_cr=
8423case $build_os in
8424mingw*)
8425  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8426  ;;
8427esac
8428
8429# Try without a prefix underscore, then with it.
8430for ac_symprfx in "" "_"; do
8431
8432  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8433  symxfrm="\\1 $ac_symprfx\\2 \\2"
8434
8435  # Write the raw and C identifiers.
8436  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8437    # Fake it for dumpbin and say T for any non-static function
8438    # and D for any global variable.
8439    # Also find C++ and __fastcall symbols from MSVC++,
8440    # which start with @ or ?.
8441    lt_cv_sys_global_symbol_pipe="$AWK '"\
8442"     {last_section=section; section=\$ 3};"\
8443"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8444"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8445"     \$ 0!~/External *\|/{next};"\
8446"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8447"     {if(hide[section]) next};"\
8448"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8449"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8450"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8451"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8452"     ' prfx=^$ac_symprfx"
8453  else
8454    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8455  fi
8456  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8457
8458  # Check to see that the pipe works correctly.
8459  pipe_works=no
8460
8461  rm -f conftest*
8462  cat > conftest.$ac_ext <<_LT_EOF
8463#ifdef __cplusplus
8464extern "C" {
8465#endif
8466char nm_test_var;
8467void nm_test_func(void);
8468void nm_test_func(void){}
8469#ifdef __cplusplus
8470}
8471#endif
8472int main(){nm_test_var='a';nm_test_func();return(0);}
8473_LT_EOF
8474
8475  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8476  (eval $ac_compile) 2>&5
8477  ac_status=$?
8478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8479  test $ac_status = 0; }; then
8480    # Now try to grab the symbols.
8481    nlist=conftest.nm
8482    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8483  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8484  ac_status=$?
8485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8486  test $ac_status = 0; } && test -s "$nlist"; then
8487      # Try sorting and uniquifying the output.
8488      if sort "$nlist" | uniq > "$nlist"T; then
8489	mv -f "$nlist"T "$nlist"
8490      else
8491	rm -f "$nlist"T
8492      fi
8493
8494      # Make sure that we snagged all the symbols we need.
8495      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8496	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8497	  cat <<_LT_EOF > conftest.$ac_ext
8498/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8499#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8500/* DATA imports from DLLs on WIN32 con't be const, because runtime
8501   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8502# define LT_DLSYM_CONST
8503#elif defined(__osf__)
8504/* This system does not cope well with relocations in const data.  */
8505# define LT_DLSYM_CONST
8506#else
8507# define LT_DLSYM_CONST const
8508#endif
8509
8510#ifdef __cplusplus
8511extern "C" {
8512#endif
8513
8514_LT_EOF
8515	  # Now generate the symbol file.
8516	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8517
8518	  cat <<_LT_EOF >> conftest.$ac_ext
8519
8520/* The mapping between symbol names and symbols.  */
8521LT_DLSYM_CONST struct {
8522  const char *name;
8523  void       *address;
8524}
8525lt__PROGRAM__LTX_preloaded_symbols[] =
8526{
8527  { "@PROGRAM@", (void *) 0 },
8528_LT_EOF
8529	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8530	  cat <<\_LT_EOF >> conftest.$ac_ext
8531  {0, (void *) 0}
8532};
8533
8534/* This works around a problem in FreeBSD linker */
8535#ifdef FREEBSD_WORKAROUND
8536static const void *lt_preloaded_setup() {
8537  return lt__PROGRAM__LTX_preloaded_symbols;
8538}
8539#endif
8540
8541#ifdef __cplusplus
8542}
8543#endif
8544_LT_EOF
8545	  # Now try linking the two files.
8546	  mv conftest.$ac_objext conftstm.$ac_objext
8547	  lt_globsym_save_LIBS=$LIBS
8548	  lt_globsym_save_CFLAGS=$CFLAGS
8549	  LIBS="conftstm.$ac_objext"
8550	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8551	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8552  (eval $ac_link) 2>&5
8553  ac_status=$?
8554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8555  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8556	    pipe_works=yes
8557	  fi
8558	  LIBS=$lt_globsym_save_LIBS
8559	  CFLAGS=$lt_globsym_save_CFLAGS
8560	else
8561	  echo "cannot find nm_test_func in $nlist" >&5
8562	fi
8563      else
8564	echo "cannot find nm_test_var in $nlist" >&5
8565      fi
8566    else
8567      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8568    fi
8569  else
8570    echo "$progname: failed program was:" >&5
8571    cat conftest.$ac_ext >&5
8572  fi
8573  rm -rf conftest* conftst*
8574
8575  # Do not use the global_symbol_pipe unless it works.
8576  if test "$pipe_works" = yes; then
8577    break
8578  else
8579    lt_cv_sys_global_symbol_pipe=
8580  fi
8581done
8582
8583fi
8584
8585if test -z "$lt_cv_sys_global_symbol_pipe"; then
8586  lt_cv_sys_global_symbol_to_cdecl=
8587fi
8588if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8590$as_echo "failed" >&6; }
8591else
8592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8593$as_echo "ok" >&6; }
8594fi
8595
8596# Response file support.
8597if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8598  nm_file_list_spec='@'
8599elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8600  nm_file_list_spec='@'
8601fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8630$as_echo_n "checking for sysroot... " >&6; }
8631
8632# Check whether --with-sysroot was given.
8633if test "${with_sysroot+set}" = set; then :
8634  withval=$with_sysroot;
8635else
8636  with_sysroot=no
8637fi
8638
8639
8640lt_sysroot=
8641case ${with_sysroot} in #(
8642 yes)
8643   if test "$GCC" = yes; then
8644     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8645   fi
8646   ;; #(
8647 /*)
8648   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8649   ;; #(
8650 no|'')
8651   ;; #(
8652 *)
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8654$as_echo "${with_sysroot}" >&6; }
8655   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8656   ;;
8657esac
8658
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8660$as_echo "${lt_sysroot:-no}" >&6; }
8661
8662
8663
8664
8665
8666# Check whether --enable-libtool-lock was given.
8667if test "${enable_libtool_lock+set}" = set; then :
8668  enableval=$enable_libtool_lock;
8669fi
8670
8671test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8672
8673# Some flags need to be propagated to the compiler or linker for good
8674# libtool support.
8675case $host in
8676ia64-*-hpux*)
8677  # Find out which ABI we are using.
8678  echo 'int i;' > conftest.$ac_ext
8679  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8680  (eval $ac_compile) 2>&5
8681  ac_status=$?
8682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8683  test $ac_status = 0; }; then
8684    case `/usr/bin/file conftest.$ac_objext` in
8685      *ELF-32*)
8686	HPUX_IA64_MODE="32"
8687	;;
8688      *ELF-64*)
8689	HPUX_IA64_MODE="64"
8690	;;
8691    esac
8692  fi
8693  rm -rf conftest*
8694  ;;
8695*-*-irix6*)
8696  # Find out which ABI we are using.
8697  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8698  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8699  (eval $ac_compile) 2>&5
8700  ac_status=$?
8701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8702  test $ac_status = 0; }; then
8703    if test "$lt_cv_prog_gnu_ld" = yes; then
8704      case `/usr/bin/file conftest.$ac_objext` in
8705	*32-bit*)
8706	  LD="${LD-ld} -melf32bsmip"
8707	  ;;
8708	*N32*)
8709	  LD="${LD-ld} -melf32bmipn32"
8710	  ;;
8711	*64-bit*)
8712	  LD="${LD-ld} -melf64bmip"
8713	;;
8714      esac
8715    else
8716      case `/usr/bin/file conftest.$ac_objext` in
8717	*32-bit*)
8718	  LD="${LD-ld} -32"
8719	  ;;
8720	*N32*)
8721	  LD="${LD-ld} -n32"
8722	  ;;
8723	*64-bit*)
8724	  LD="${LD-ld} -64"
8725	  ;;
8726      esac
8727    fi
8728  fi
8729  rm -rf conftest*
8730  ;;
8731
8732x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8733s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8734  # Find out which ABI we are using.
8735  echo 'int i;' > conftest.$ac_ext
8736  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8737  (eval $ac_compile) 2>&5
8738  ac_status=$?
8739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8740  test $ac_status = 0; }; then
8741    case `/usr/bin/file conftest.o` in
8742      *32-bit*)
8743	case $host in
8744	  x86_64-*kfreebsd*-gnu)
8745	    LD="${LD-ld} -m elf_i386_fbsd"
8746	    ;;
8747	  x86_64-*linux*)
8748	    LD="${LD-ld} -m elf_i386"
8749	    ;;
8750         powerpc64le-*)
8751           LD="${LD-ld} -m elf32lppclinux"
8752           ;;
8753         powerpc64-*)
8754	    LD="${LD-ld} -m elf32ppclinux"
8755	    ;;
8756	  s390x-*linux*)
8757	    LD="${LD-ld} -m elf_s390"
8758	    ;;
8759	  sparc64-*linux*)
8760	    LD="${LD-ld} -m elf32_sparc"
8761	    ;;
8762	esac
8763	;;
8764      *64-bit*)
8765	case $host in
8766	  x86_64-*kfreebsd*-gnu)
8767	    LD="${LD-ld} -m elf_x86_64_fbsd"
8768	    ;;
8769	  x86_64-*linux*)
8770	    LD="${LD-ld} -m elf_x86_64"
8771	    ;;
8772         powerpcle-*)
8773           LD="${LD-ld} -m elf64lppc"
8774           ;;
8775         powerpc-*)
8776	    LD="${LD-ld} -m elf64ppc"
8777	    ;;
8778	  s390*-*linux*|s390*-*tpf*)
8779	    LD="${LD-ld} -m elf64_s390"
8780	    ;;
8781	  sparc*-*linux*)
8782	    LD="${LD-ld} -m elf64_sparc"
8783	    ;;
8784	esac
8785	;;
8786    esac
8787  fi
8788  rm -rf conftest*
8789  ;;
8790
8791*-*-sco3.2v5*)
8792  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8793  SAVE_CFLAGS="$CFLAGS"
8794  CFLAGS="$CFLAGS -belf"
8795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8796$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8797if ${lt_cv_cc_needs_belf+:} false; then :
8798  $as_echo_n "(cached) " >&6
8799else
8800  ac_ext=c
8801ac_cpp='$CPP $CPPFLAGS'
8802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8804ac_compiler_gnu=$ac_cv_c_compiler_gnu
8805
8806     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808
8809int
8810main ()
8811{
8812
8813  ;
8814  return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_link "$LINENO"; then :
8818  lt_cv_cc_needs_belf=yes
8819else
8820  lt_cv_cc_needs_belf=no
8821fi
8822rm -f core conftest.err conftest.$ac_objext \
8823    conftest$ac_exeext conftest.$ac_ext
8824     ac_ext=c
8825ac_cpp='$CPP $CPPFLAGS'
8826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828ac_compiler_gnu=$ac_cv_c_compiler_gnu
8829
8830fi
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8832$as_echo "$lt_cv_cc_needs_belf" >&6; }
8833  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8834    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8835    CFLAGS="$SAVE_CFLAGS"
8836  fi
8837  ;;
8838*-*solaris*)
8839  # Find out which ABI we are using.
8840  echo 'int i;' > conftest.$ac_ext
8841  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8842  (eval $ac_compile) 2>&5
8843  ac_status=$?
8844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8845  test $ac_status = 0; }; then
8846    case `/usr/bin/file conftest.o` in
8847    *64-bit*)
8848      case $lt_cv_prog_gnu_ld in
8849      yes*)
8850        case $host in
8851        i?86-*-solaris*)
8852          LD="${LD-ld} -m elf_x86_64"
8853          ;;
8854        sparc*-*-solaris*)
8855          LD="${LD-ld} -m elf64_sparc"
8856          ;;
8857        esac
8858        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8859        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8860          LD="${LD-ld}_sol2"
8861        fi
8862        ;;
8863      *)
8864	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8865	  LD="${LD-ld} -64"
8866	fi
8867	;;
8868      esac
8869      ;;
8870    esac
8871  fi
8872  rm -rf conftest*
8873  ;;
8874esac
8875
8876need_locks="$enable_libtool_lock"
8877
8878if test -n "$ac_tool_prefix"; then
8879  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8880set dummy ${ac_tool_prefix}mt; ac_word=$2
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882$as_echo_n "checking for $ac_word... " >&6; }
8883if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8884  $as_echo_n "(cached) " >&6
8885else
8886  if test -n "$MANIFEST_TOOL"; then
8887  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8888else
8889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890for as_dir in $PATH
8891do
8892  IFS=$as_save_IFS
8893  test -z "$as_dir" && as_dir=.
8894    for ac_exec_ext in '' $ac_executable_extensions; do
8895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898    break 2
8899  fi
8900done
8901  done
8902IFS=$as_save_IFS
8903
8904fi
8905fi
8906MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8907if test -n "$MANIFEST_TOOL"; then
8908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8909$as_echo "$MANIFEST_TOOL" >&6; }
8910else
8911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912$as_echo "no" >&6; }
8913fi
8914
8915
8916fi
8917if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8918  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8919  # Extract the first word of "mt", so it can be a program name with args.
8920set dummy mt; ac_word=$2
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922$as_echo_n "checking for $ac_word... " >&6; }
8923if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8924  $as_echo_n "(cached) " >&6
8925else
8926  if test -n "$ac_ct_MANIFEST_TOOL"; then
8927  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8928else
8929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH
8931do
8932  IFS=$as_save_IFS
8933  test -z "$as_dir" && as_dir=.
8934    for ac_exec_ext in '' $ac_executable_extensions; do
8935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938    break 2
8939  fi
8940done
8941  done
8942IFS=$as_save_IFS
8943
8944fi
8945fi
8946ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8947if test -n "$ac_ct_MANIFEST_TOOL"; then
8948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8949$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8950else
8951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
8953fi
8954
8955  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8956    MANIFEST_TOOL=":"
8957  else
8958    case $cross_compiling:$ac_tool_warned in
8959yes:)
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8962ac_tool_warned=yes ;;
8963esac
8964    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8965  fi
8966else
8967  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8968fi
8969
8970test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8972$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8973if ${lt_cv_path_mainfest_tool+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  lt_cv_path_mainfest_tool=no
8977  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8978  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8979  cat conftest.err >&5
8980  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8981    lt_cv_path_mainfest_tool=yes
8982  fi
8983  rm -f conftest*
8984fi
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8986$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8987if test "x$lt_cv_path_mainfest_tool" != xyes; then
8988  MANIFEST_TOOL=:
8989fi
8990
8991
8992
8993
8994
8995
8996  case $host_os in
8997    rhapsody* | darwin*)
8998    if test -n "$ac_tool_prefix"; then
8999  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9000set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002$as_echo_n "checking for $ac_word... " >&6; }
9003if ${ac_cv_prog_DSYMUTIL+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  if test -n "$DSYMUTIL"; then
9007  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9008else
9009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010for as_dir in $PATH
9011do
9012  IFS=$as_save_IFS
9013  test -z "$as_dir" && as_dir=.
9014    for ac_exec_ext in '' $ac_executable_extensions; do
9015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018    break 2
9019  fi
9020done
9021  done
9022IFS=$as_save_IFS
9023
9024fi
9025fi
9026DSYMUTIL=$ac_cv_prog_DSYMUTIL
9027if test -n "$DSYMUTIL"; then
9028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9029$as_echo "$DSYMUTIL" >&6; }
9030else
9031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032$as_echo "no" >&6; }
9033fi
9034
9035
9036fi
9037if test -z "$ac_cv_prog_DSYMUTIL"; then
9038  ac_ct_DSYMUTIL=$DSYMUTIL
9039  # Extract the first word of "dsymutil", so it can be a program name with args.
9040set dummy dsymutil; ac_word=$2
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042$as_echo_n "checking for $ac_word... " >&6; }
9043if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9044  $as_echo_n "(cached) " >&6
9045else
9046  if test -n "$ac_ct_DSYMUTIL"; then
9047  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9048else
9049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052  IFS=$as_save_IFS
9053  test -z "$as_dir" && as_dir=.
9054    for ac_exec_ext in '' $ac_executable_extensions; do
9055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058    break 2
9059  fi
9060done
9061  done
9062IFS=$as_save_IFS
9063
9064fi
9065fi
9066ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9067if test -n "$ac_ct_DSYMUTIL"; then
9068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9069$as_echo "$ac_ct_DSYMUTIL" >&6; }
9070else
9071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072$as_echo "no" >&6; }
9073fi
9074
9075  if test "x$ac_ct_DSYMUTIL" = x; then
9076    DSYMUTIL=":"
9077  else
9078    case $cross_compiling:$ac_tool_warned in
9079yes:)
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9082ac_tool_warned=yes ;;
9083esac
9084    DSYMUTIL=$ac_ct_DSYMUTIL
9085  fi
9086else
9087  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9088fi
9089
9090    if test -n "$ac_tool_prefix"; then
9091  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9092set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094$as_echo_n "checking for $ac_word... " >&6; }
9095if ${ac_cv_prog_NMEDIT+:} false; then :
9096  $as_echo_n "(cached) " >&6
9097else
9098  if test -n "$NMEDIT"; then
9099  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9100else
9101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102for as_dir in $PATH
9103do
9104  IFS=$as_save_IFS
9105  test -z "$as_dir" && as_dir=.
9106    for ac_exec_ext in '' $ac_executable_extensions; do
9107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9108    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9110    break 2
9111  fi
9112done
9113  done
9114IFS=$as_save_IFS
9115
9116fi
9117fi
9118NMEDIT=$ac_cv_prog_NMEDIT
9119if test -n "$NMEDIT"; then
9120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9121$as_echo "$NMEDIT" >&6; }
9122else
9123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124$as_echo "no" >&6; }
9125fi
9126
9127
9128fi
9129if test -z "$ac_cv_prog_NMEDIT"; then
9130  ac_ct_NMEDIT=$NMEDIT
9131  # Extract the first word of "nmedit", so it can be a program name with args.
9132set dummy nmedit; ac_word=$2
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134$as_echo_n "checking for $ac_word... " >&6; }
9135if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9136  $as_echo_n "(cached) " >&6
9137else
9138  if test -n "$ac_ct_NMEDIT"; then
9139  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9140else
9141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142for as_dir in $PATH
9143do
9144  IFS=$as_save_IFS
9145  test -z "$as_dir" && as_dir=.
9146    for ac_exec_ext in '' $ac_executable_extensions; do
9147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9148    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9150    break 2
9151  fi
9152done
9153  done
9154IFS=$as_save_IFS
9155
9156fi
9157fi
9158ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9159if test -n "$ac_ct_NMEDIT"; then
9160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9161$as_echo "$ac_ct_NMEDIT" >&6; }
9162else
9163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164$as_echo "no" >&6; }
9165fi
9166
9167  if test "x$ac_ct_NMEDIT" = x; then
9168    NMEDIT=":"
9169  else
9170    case $cross_compiling:$ac_tool_warned in
9171yes:)
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9174ac_tool_warned=yes ;;
9175esac
9176    NMEDIT=$ac_ct_NMEDIT
9177  fi
9178else
9179  NMEDIT="$ac_cv_prog_NMEDIT"
9180fi
9181
9182    if test -n "$ac_tool_prefix"; then
9183  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9184set dummy ${ac_tool_prefix}lipo; ac_word=$2
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186$as_echo_n "checking for $ac_word... " >&6; }
9187if ${ac_cv_prog_LIPO+:} false; then :
9188  $as_echo_n "(cached) " >&6
9189else
9190  if test -n "$LIPO"; then
9191  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9192else
9193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194for as_dir in $PATH
9195do
9196  IFS=$as_save_IFS
9197  test -z "$as_dir" && as_dir=.
9198    for ac_exec_ext in '' $ac_executable_extensions; do
9199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9200    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9202    break 2
9203  fi
9204done
9205  done
9206IFS=$as_save_IFS
9207
9208fi
9209fi
9210LIPO=$ac_cv_prog_LIPO
9211if test -n "$LIPO"; then
9212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9213$as_echo "$LIPO" >&6; }
9214else
9215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216$as_echo "no" >&6; }
9217fi
9218
9219
9220fi
9221if test -z "$ac_cv_prog_LIPO"; then
9222  ac_ct_LIPO=$LIPO
9223  # Extract the first word of "lipo", so it can be a program name with args.
9224set dummy lipo; ac_word=$2
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226$as_echo_n "checking for $ac_word... " >&6; }
9227if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9228  $as_echo_n "(cached) " >&6
9229else
9230  if test -n "$ac_ct_LIPO"; then
9231  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9232else
9233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234for as_dir in $PATH
9235do
9236  IFS=$as_save_IFS
9237  test -z "$as_dir" && as_dir=.
9238    for ac_exec_ext in '' $ac_executable_extensions; do
9239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9240    ac_cv_prog_ac_ct_LIPO="lipo"
9241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9242    break 2
9243  fi
9244done
9245  done
9246IFS=$as_save_IFS
9247
9248fi
9249fi
9250ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9251if test -n "$ac_ct_LIPO"; then
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9253$as_echo "$ac_ct_LIPO" >&6; }
9254else
9255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256$as_echo "no" >&6; }
9257fi
9258
9259  if test "x$ac_ct_LIPO" = x; then
9260    LIPO=":"
9261  else
9262    case $cross_compiling:$ac_tool_warned in
9263yes:)
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9266ac_tool_warned=yes ;;
9267esac
9268    LIPO=$ac_ct_LIPO
9269  fi
9270else
9271  LIPO="$ac_cv_prog_LIPO"
9272fi
9273
9274    if test -n "$ac_tool_prefix"; then
9275  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9276set dummy ${ac_tool_prefix}otool; ac_word=$2
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278$as_echo_n "checking for $ac_word... " >&6; }
9279if ${ac_cv_prog_OTOOL+:} false; then :
9280  $as_echo_n "(cached) " >&6
9281else
9282  if test -n "$OTOOL"; then
9283  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9284else
9285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286for as_dir in $PATH
9287do
9288  IFS=$as_save_IFS
9289  test -z "$as_dir" && as_dir=.
9290    for ac_exec_ext in '' $ac_executable_extensions; do
9291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9292    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294    break 2
9295  fi
9296done
9297  done
9298IFS=$as_save_IFS
9299
9300fi
9301fi
9302OTOOL=$ac_cv_prog_OTOOL
9303if test -n "$OTOOL"; then
9304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9305$as_echo "$OTOOL" >&6; }
9306else
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308$as_echo "no" >&6; }
9309fi
9310
9311
9312fi
9313if test -z "$ac_cv_prog_OTOOL"; then
9314  ac_ct_OTOOL=$OTOOL
9315  # Extract the first word of "otool", so it can be a program name with args.
9316set dummy otool; ac_word=$2
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318$as_echo_n "checking for $ac_word... " >&6; }
9319if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9320  $as_echo_n "(cached) " >&6
9321else
9322  if test -n "$ac_ct_OTOOL"; then
9323  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9324else
9325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326for as_dir in $PATH
9327do
9328  IFS=$as_save_IFS
9329  test -z "$as_dir" && as_dir=.
9330    for ac_exec_ext in '' $ac_executable_extensions; do
9331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332    ac_cv_prog_ac_ct_OTOOL="otool"
9333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334    break 2
9335  fi
9336done
9337  done
9338IFS=$as_save_IFS
9339
9340fi
9341fi
9342ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9343if test -n "$ac_ct_OTOOL"; then
9344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9345$as_echo "$ac_ct_OTOOL" >&6; }
9346else
9347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348$as_echo "no" >&6; }
9349fi
9350
9351  if test "x$ac_ct_OTOOL" = x; then
9352    OTOOL=":"
9353  else
9354    case $cross_compiling:$ac_tool_warned in
9355yes:)
9356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9358ac_tool_warned=yes ;;
9359esac
9360    OTOOL=$ac_ct_OTOOL
9361  fi
9362else
9363  OTOOL="$ac_cv_prog_OTOOL"
9364fi
9365
9366    if test -n "$ac_tool_prefix"; then
9367  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9368set dummy ${ac_tool_prefix}otool64; ac_word=$2
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370$as_echo_n "checking for $ac_word... " >&6; }
9371if ${ac_cv_prog_OTOOL64+:} false; then :
9372  $as_echo_n "(cached) " >&6
9373else
9374  if test -n "$OTOOL64"; then
9375  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9376else
9377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378for as_dir in $PATH
9379do
9380  IFS=$as_save_IFS
9381  test -z "$as_dir" && as_dir=.
9382    for ac_exec_ext in '' $ac_executable_extensions; do
9383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9384    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386    break 2
9387  fi
9388done
9389  done
9390IFS=$as_save_IFS
9391
9392fi
9393fi
9394OTOOL64=$ac_cv_prog_OTOOL64
9395if test -n "$OTOOL64"; then
9396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9397$as_echo "$OTOOL64" >&6; }
9398else
9399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400$as_echo "no" >&6; }
9401fi
9402
9403
9404fi
9405if test -z "$ac_cv_prog_OTOOL64"; then
9406  ac_ct_OTOOL64=$OTOOL64
9407  # Extract the first word of "otool64", so it can be a program name with args.
9408set dummy otool64; ac_word=$2
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410$as_echo_n "checking for $ac_word... " >&6; }
9411if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9412  $as_echo_n "(cached) " >&6
9413else
9414  if test -n "$ac_ct_OTOOL64"; then
9415  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9416else
9417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420  IFS=$as_save_IFS
9421  test -z "$as_dir" && as_dir=.
9422    for ac_exec_ext in '' $ac_executable_extensions; do
9423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424    ac_cv_prog_ac_ct_OTOOL64="otool64"
9425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426    break 2
9427  fi
9428done
9429  done
9430IFS=$as_save_IFS
9431
9432fi
9433fi
9434ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9435if test -n "$ac_ct_OTOOL64"; then
9436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9437$as_echo "$ac_ct_OTOOL64" >&6; }
9438else
9439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440$as_echo "no" >&6; }
9441fi
9442
9443  if test "x$ac_ct_OTOOL64" = x; then
9444    OTOOL64=":"
9445  else
9446    case $cross_compiling:$ac_tool_warned in
9447yes:)
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9450ac_tool_warned=yes ;;
9451esac
9452    OTOOL64=$ac_ct_OTOOL64
9453  fi
9454else
9455  OTOOL64="$ac_cv_prog_OTOOL64"
9456fi
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9485$as_echo_n "checking for -single_module linker flag... " >&6; }
9486if ${lt_cv_apple_cc_single_mod+:} false; then :
9487  $as_echo_n "(cached) " >&6
9488else
9489  lt_cv_apple_cc_single_mod=no
9490      if test -z "${LT_MULTI_MODULE}"; then
9491	# By default we will add the -single_module flag. You can override
9492	# by either setting the environment variable LT_MULTI_MODULE
9493	# non-empty at configure time, or by adding -multi_module to the
9494	# link flags.
9495	rm -rf libconftest.dylib*
9496	echo "int foo(void){return 1;}" > conftest.c
9497	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9498-dynamiclib -Wl,-single_module conftest.c" >&5
9499	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9500	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9501        _lt_result=$?
9502	# If there is a non-empty error log, and "single_module"
9503	# appears in it, assume the flag caused a linker warning
9504        if test -s conftest.err && $GREP single_module conftest.err; then
9505	  cat conftest.err >&5
9506	# Otherwise, if the output was created with a 0 exit code from
9507	# the compiler, it worked.
9508	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9509	  lt_cv_apple_cc_single_mod=yes
9510	else
9511	  cat conftest.err >&5
9512	fi
9513	rm -rf libconftest.dylib*
9514	rm -f conftest.*
9515      fi
9516fi
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9518$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9519
9520    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9521$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9522if ${lt_cv_ld_exported_symbols_list+:} false; then :
9523  $as_echo_n "(cached) " >&6
9524else
9525  lt_cv_ld_exported_symbols_list=no
9526      save_LDFLAGS=$LDFLAGS
9527      echo "_main" > conftest.sym
9528      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9529      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h.  */
9531
9532int
9533main ()
9534{
9535
9536  ;
9537  return 0;
9538}
9539_ACEOF
9540if ac_fn_c_try_link "$LINENO"; then :
9541  lt_cv_ld_exported_symbols_list=yes
9542else
9543  lt_cv_ld_exported_symbols_list=no
9544fi
9545rm -f core conftest.err conftest.$ac_objext \
9546    conftest$ac_exeext conftest.$ac_ext
9547	LDFLAGS="$save_LDFLAGS"
9548
9549fi
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9551$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9552
9553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9554$as_echo_n "checking for -force_load linker flag... " >&6; }
9555if ${lt_cv_ld_force_load+:} false; then :
9556  $as_echo_n "(cached) " >&6
9557else
9558  lt_cv_ld_force_load=no
9559      cat > conftest.c << _LT_EOF
9560int forced_loaded() { return 2;}
9561_LT_EOF
9562      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9563      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9564      echo "$AR cru libconftest.a conftest.o" >&5
9565      $AR cru libconftest.a conftest.o 2>&5
9566      echo "$RANLIB libconftest.a" >&5
9567      $RANLIB libconftest.a 2>&5
9568      cat > conftest.c << _LT_EOF
9569int main() { return 0;}
9570_LT_EOF
9571      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9572      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9573      _lt_result=$?
9574      if test -s conftest.err && $GREP force_load conftest.err; then
9575	cat conftest.err >&5
9576      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9577	lt_cv_ld_force_load=yes
9578      else
9579	cat conftest.err >&5
9580      fi
9581        rm -f conftest.err libconftest.a conftest conftest.c
9582        rm -rf conftest.dSYM
9583
9584fi
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9586$as_echo "$lt_cv_ld_force_load" >&6; }
9587    case $host_os in
9588    rhapsody* | darwin1.[012])
9589      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9590    darwin1.*)
9591      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9592    darwin*) # darwin 5.x on
9593      # if running on 10.5 or later, the deployment target defaults
9594      # to the OS version, if on x86, and 10.4, the deployment
9595      # target defaults to 10.4. Don't you love it?
9596      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9597	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9598	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9599	10.[012]*)
9600	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9601	10.*)
9602	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9603      esac
9604    ;;
9605  esac
9606    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9607      _lt_dar_single_mod='$single_module'
9608    fi
9609    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9610      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9611    else
9612      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9613    fi
9614    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9615      _lt_dsymutil='~$DSYMUTIL $lib || :'
9616    else
9617      _lt_dsymutil=
9618    fi
9619    ;;
9620  esac
9621
9622for ac_header in dlfcn.h
9623do :
9624  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9625"
9626if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9627  cat >>confdefs.h <<_ACEOF
9628#define HAVE_DLFCN_H 1
9629_ACEOF
9630
9631fi
9632
9633done
9634
9635
9636
9637
9638func_stripname_cnf ()
9639{
9640  case ${2} in
9641  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9642  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9643  esac
9644} # func_stripname_cnf
9645
9646
9647
9648
9649
9650# Set options
9651enable_win32_dll=yes
9652
9653case $host in
9654*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9655  if test -n "$ac_tool_prefix"; then
9656  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9657set dummy ${ac_tool_prefix}as; ac_word=$2
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659$as_echo_n "checking for $ac_word... " >&6; }
9660if ${ac_cv_prog_AS+:} false; then :
9661  $as_echo_n "(cached) " >&6
9662else
9663  if test -n "$AS"; then
9664  ac_cv_prog_AS="$AS" # Let the user override the test.
9665else
9666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667for as_dir in $PATH
9668do
9669  IFS=$as_save_IFS
9670  test -z "$as_dir" && as_dir=.
9671    for ac_exec_ext in '' $ac_executable_extensions; do
9672  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673    ac_cv_prog_AS="${ac_tool_prefix}as"
9674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675    break 2
9676  fi
9677done
9678  done
9679IFS=$as_save_IFS
9680
9681fi
9682fi
9683AS=$ac_cv_prog_AS
9684if test -n "$AS"; then
9685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9686$as_echo "$AS" >&6; }
9687else
9688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689$as_echo "no" >&6; }
9690fi
9691
9692
9693fi
9694if test -z "$ac_cv_prog_AS"; then
9695  ac_ct_AS=$AS
9696  # Extract the first word of "as", so it can be a program name with args.
9697set dummy as; ac_word=$2
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699$as_echo_n "checking for $ac_word... " >&6; }
9700if ${ac_cv_prog_ac_ct_AS+:} false; then :
9701  $as_echo_n "(cached) " >&6
9702else
9703  if test -n "$ac_ct_AS"; then
9704  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9705else
9706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707for as_dir in $PATH
9708do
9709  IFS=$as_save_IFS
9710  test -z "$as_dir" && as_dir=.
9711    for ac_exec_ext in '' $ac_executable_extensions; do
9712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9713    ac_cv_prog_ac_ct_AS="as"
9714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9715    break 2
9716  fi
9717done
9718  done
9719IFS=$as_save_IFS
9720
9721fi
9722fi
9723ac_ct_AS=$ac_cv_prog_ac_ct_AS
9724if test -n "$ac_ct_AS"; then
9725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9726$as_echo "$ac_ct_AS" >&6; }
9727else
9728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729$as_echo "no" >&6; }
9730fi
9731
9732  if test "x$ac_ct_AS" = x; then
9733    AS="false"
9734  else
9735    case $cross_compiling:$ac_tool_warned in
9736yes:)
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9739ac_tool_warned=yes ;;
9740esac
9741    AS=$ac_ct_AS
9742  fi
9743else
9744  AS="$ac_cv_prog_AS"
9745fi
9746
9747  if test -n "$ac_tool_prefix"; then
9748  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9749set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751$as_echo_n "checking for $ac_word... " >&6; }
9752if ${ac_cv_prog_DLLTOOL+:} false; then :
9753  $as_echo_n "(cached) " >&6
9754else
9755  if test -n "$DLLTOOL"; then
9756  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9757else
9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761  IFS=$as_save_IFS
9762  test -z "$as_dir" && as_dir=.
9763    for ac_exec_ext in '' $ac_executable_extensions; do
9764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767    break 2
9768  fi
9769done
9770  done
9771IFS=$as_save_IFS
9772
9773fi
9774fi
9775DLLTOOL=$ac_cv_prog_DLLTOOL
9776if test -n "$DLLTOOL"; then
9777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9778$as_echo "$DLLTOOL" >&6; }
9779else
9780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781$as_echo "no" >&6; }
9782fi
9783
9784
9785fi
9786if test -z "$ac_cv_prog_DLLTOOL"; then
9787  ac_ct_DLLTOOL=$DLLTOOL
9788  # Extract the first word of "dlltool", so it can be a program name with args.
9789set dummy dlltool; ac_word=$2
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791$as_echo_n "checking for $ac_word... " >&6; }
9792if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9793  $as_echo_n "(cached) " >&6
9794else
9795  if test -n "$ac_ct_DLLTOOL"; then
9796  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9797else
9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799for as_dir in $PATH
9800do
9801  IFS=$as_save_IFS
9802  test -z "$as_dir" && as_dir=.
9803    for ac_exec_ext in '' $ac_executable_extensions; do
9804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807    break 2
9808  fi
9809done
9810  done
9811IFS=$as_save_IFS
9812
9813fi
9814fi
9815ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9816if test -n "$ac_ct_DLLTOOL"; then
9817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9818$as_echo "$ac_ct_DLLTOOL" >&6; }
9819else
9820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821$as_echo "no" >&6; }
9822fi
9823
9824  if test "x$ac_ct_DLLTOOL" = x; then
9825    DLLTOOL="false"
9826  else
9827    case $cross_compiling:$ac_tool_warned in
9828yes:)
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9831ac_tool_warned=yes ;;
9832esac
9833    DLLTOOL=$ac_ct_DLLTOOL
9834  fi
9835else
9836  DLLTOOL="$ac_cv_prog_DLLTOOL"
9837fi
9838
9839  if test -n "$ac_tool_prefix"; then
9840  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9841set dummy ${ac_tool_prefix}objdump; ac_word=$2
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843$as_echo_n "checking for $ac_word... " >&6; }
9844if ${ac_cv_prog_OBJDUMP+:} false; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  if test -n "$OBJDUMP"; then
9848  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9849else
9850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851for as_dir in $PATH
9852do
9853  IFS=$as_save_IFS
9854  test -z "$as_dir" && as_dir=.
9855    for ac_exec_ext in '' $ac_executable_extensions; do
9856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9857    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859    break 2
9860  fi
9861done
9862  done
9863IFS=$as_save_IFS
9864
9865fi
9866fi
9867OBJDUMP=$ac_cv_prog_OBJDUMP
9868if test -n "$OBJDUMP"; then
9869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9870$as_echo "$OBJDUMP" >&6; }
9871else
9872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873$as_echo "no" >&6; }
9874fi
9875
9876
9877fi
9878if test -z "$ac_cv_prog_OBJDUMP"; then
9879  ac_ct_OBJDUMP=$OBJDUMP
9880  # Extract the first word of "objdump", so it can be a program name with args.
9881set dummy objdump; ac_word=$2
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883$as_echo_n "checking for $ac_word... " >&6; }
9884if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9885  $as_echo_n "(cached) " >&6
9886else
9887  if test -n "$ac_ct_OBJDUMP"; then
9888  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9889else
9890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891for as_dir in $PATH
9892do
9893  IFS=$as_save_IFS
9894  test -z "$as_dir" && as_dir=.
9895    for ac_exec_ext in '' $ac_executable_extensions; do
9896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9897    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899    break 2
9900  fi
9901done
9902  done
9903IFS=$as_save_IFS
9904
9905fi
9906fi
9907ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9908if test -n "$ac_ct_OBJDUMP"; then
9909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9910$as_echo "$ac_ct_OBJDUMP" >&6; }
9911else
9912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913$as_echo "no" >&6; }
9914fi
9915
9916  if test "x$ac_ct_OBJDUMP" = x; then
9917    OBJDUMP="false"
9918  else
9919    case $cross_compiling:$ac_tool_warned in
9920yes:)
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9923ac_tool_warned=yes ;;
9924esac
9925    OBJDUMP=$ac_ct_OBJDUMP
9926  fi
9927else
9928  OBJDUMP="$ac_cv_prog_OBJDUMP"
9929fi
9930
9931  ;;
9932esac
9933
9934test -z "$AS" && AS=as
9935
9936
9937
9938
9939
9940test -z "$DLLTOOL" && DLLTOOL=dlltool
9941
9942
9943
9944
9945
9946test -z "$OBJDUMP" && OBJDUMP=objdump
9947
9948
9949
9950
9951# Check whether --enable-static was given.
9952if test "${enable_static+set}" = set; then :
9953  enableval=$enable_static; p=${PACKAGE-default}
9954    case $enableval in
9955    yes) enable_static=yes ;;
9956    no) enable_static=no ;;
9957    *)
9958     enable_static=no
9959      # Look at the argument we got.  We use all the common list separators.
9960      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9961      for pkg in $enableval; do
9962	IFS="$lt_save_ifs"
9963	if test "X$pkg" = "X$p"; then
9964	  enable_static=yes
9965	fi
9966      done
9967      IFS="$lt_save_ifs"
9968      ;;
9969    esac
9970else
9971  enable_static=no
9972fi
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983        enable_dlopen=no
9984
9985
9986
9987            # Check whether --enable-shared was given.
9988if test "${enable_shared+set}" = set; then :
9989  enableval=$enable_shared; p=${PACKAGE-default}
9990    case $enableval in
9991    yes) enable_shared=yes ;;
9992    no) enable_shared=no ;;
9993    *)
9994      enable_shared=no
9995      # Look at the argument we got.  We use all the common list separators.
9996      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9997      for pkg in $enableval; do
9998	IFS="$lt_save_ifs"
9999	if test "X$pkg" = "X$p"; then
10000	  enable_shared=yes
10001	fi
10002      done
10003      IFS="$lt_save_ifs"
10004      ;;
10005    esac
10006else
10007  enable_shared=yes
10008fi
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020# Check whether --with-pic was given.
10021if test "${with_pic+set}" = set; then :
10022  withval=$with_pic; lt_p=${PACKAGE-default}
10023    case $withval in
10024    yes|no) pic_mode=$withval ;;
10025    *)
10026      pic_mode=default
10027      # Look at the argument we got.  We use all the common list separators.
10028      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10029      for lt_pkg in $withval; do
10030	IFS="$lt_save_ifs"
10031	if test "X$lt_pkg" = "X$lt_p"; then
10032	  pic_mode=yes
10033	fi
10034      done
10035      IFS="$lt_save_ifs"
10036      ;;
10037    esac
10038else
10039  pic_mode=default
10040fi
10041
10042
10043test -z "$pic_mode" && pic_mode=default
10044
10045
10046
10047
10048
10049
10050
10051  # Check whether --enable-fast-install was given.
10052if test "${enable_fast_install+set}" = set; then :
10053  enableval=$enable_fast_install; p=${PACKAGE-default}
10054    case $enableval in
10055    yes) enable_fast_install=yes ;;
10056    no) enable_fast_install=no ;;
10057    *)
10058      enable_fast_install=no
10059      # Look at the argument we got.  We use all the common list separators.
10060      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10061      for pkg in $enableval; do
10062	IFS="$lt_save_ifs"
10063	if test "X$pkg" = "X$p"; then
10064	  enable_fast_install=yes
10065	fi
10066      done
10067      IFS="$lt_save_ifs"
10068      ;;
10069    esac
10070else
10071  enable_fast_install=yes
10072fi
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084# This can be used to rebuild libtool when needed
10085LIBTOOL_DEPS="$ltmain"
10086
10087# Always use our own libtool.
10088LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119test -z "$LN_S" && LN_S="ln -s"
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134if test -n "${ZSH_VERSION+set}" ; then
10135   setopt NO_GLOB_SUBST
10136fi
10137
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10139$as_echo_n "checking for objdir... " >&6; }
10140if ${lt_cv_objdir+:} false; then :
10141  $as_echo_n "(cached) " >&6
10142else
10143  rm -f .libs 2>/dev/null
10144mkdir .libs 2>/dev/null
10145if test -d .libs; then
10146  lt_cv_objdir=.libs
10147else
10148  # MS-DOS does not allow filenames that begin with a dot.
10149  lt_cv_objdir=_libs
10150fi
10151rmdir .libs 2>/dev/null
10152fi
10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10154$as_echo "$lt_cv_objdir" >&6; }
10155objdir=$lt_cv_objdir
10156
10157
10158
10159
10160
10161cat >>confdefs.h <<_ACEOF
10162#define LT_OBJDIR "$lt_cv_objdir/"
10163_ACEOF
10164
10165
10166
10167
10168case $host_os in
10169aix3*)
10170  # AIX sometimes has problems with the GCC collect2 program.  For some
10171  # reason, if we set the COLLECT_NAMES environment variable, the problems
10172  # vanish in a puff of smoke.
10173  if test "X${COLLECT_NAMES+set}" != Xset; then
10174    COLLECT_NAMES=
10175    export COLLECT_NAMES
10176  fi
10177  ;;
10178esac
10179
10180# Global variables:
10181ofile=libtool
10182can_build_shared=yes
10183
10184# All known linkers require a `.a' archive for static linking (except MSVC,
10185# which needs '.lib').
10186libext=a
10187
10188with_gnu_ld="$lt_cv_prog_gnu_ld"
10189
10190old_CC="$CC"
10191old_CFLAGS="$CFLAGS"
10192
10193# Set sane defaults for various variables
10194test -z "$CC" && CC=cc
10195test -z "$LTCC" && LTCC=$CC
10196test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10197test -z "$LD" && LD=ld
10198test -z "$ac_objext" && ac_objext=o
10199
10200for cc_temp in $compiler""; do
10201  case $cc_temp in
10202    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10203    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10204    \-*) ;;
10205    *) break;;
10206  esac
10207done
10208cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10209
10210
10211# Only perform the check for file, if the check method requires it
10212test -z "$MAGIC_CMD" && MAGIC_CMD=file
10213case $deplibs_check_method in
10214file_magic*)
10215  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10217$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10218if ${lt_cv_path_MAGIC_CMD+:} false; then :
10219  $as_echo_n "(cached) " >&6
10220else
10221  case $MAGIC_CMD in
10222[\\/*] |  ?:[\\/]*)
10223  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10224  ;;
10225*)
10226  lt_save_MAGIC_CMD="$MAGIC_CMD"
10227  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10228  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10229  for ac_dir in $ac_dummy; do
10230    IFS="$lt_save_ifs"
10231    test -z "$ac_dir" && ac_dir=.
10232    if test -f $ac_dir/${ac_tool_prefix}file; then
10233      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10234      if test -n "$file_magic_test_file"; then
10235	case $deplibs_check_method in
10236	"file_magic "*)
10237	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10238	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10239	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10240	    $EGREP "$file_magic_regex" > /dev/null; then
10241	    :
10242	  else
10243	    cat <<_LT_EOF 1>&2
10244
10245*** Warning: the command libtool uses to detect shared libraries,
10246*** $file_magic_cmd, produces output that libtool cannot recognize.
10247*** The result is that libtool may fail to recognize shared libraries
10248*** as such.  This will affect the creation of libtool libraries that
10249*** depend on shared libraries, but programs linked with such libtool
10250*** libraries will work regardless of this problem.  Nevertheless, you
10251*** may want to report the problem to your system manager and/or to
10252*** bug-libtool@gnu.org
10253
10254_LT_EOF
10255	  fi ;;
10256	esac
10257      fi
10258      break
10259    fi
10260  done
10261  IFS="$lt_save_ifs"
10262  MAGIC_CMD="$lt_save_MAGIC_CMD"
10263  ;;
10264esac
10265fi
10266
10267MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10268if test -n "$MAGIC_CMD"; then
10269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10270$as_echo "$MAGIC_CMD" >&6; }
10271else
10272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273$as_echo "no" >&6; }
10274fi
10275
10276
10277
10278
10279
10280if test -z "$lt_cv_path_MAGIC_CMD"; then
10281  if test -n "$ac_tool_prefix"; then
10282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10283$as_echo_n "checking for file... " >&6; }
10284if ${lt_cv_path_MAGIC_CMD+:} false; then :
10285  $as_echo_n "(cached) " >&6
10286else
10287  case $MAGIC_CMD in
10288[\\/*] |  ?:[\\/]*)
10289  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10290  ;;
10291*)
10292  lt_save_MAGIC_CMD="$MAGIC_CMD"
10293  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10294  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10295  for ac_dir in $ac_dummy; do
10296    IFS="$lt_save_ifs"
10297    test -z "$ac_dir" && ac_dir=.
10298    if test -f $ac_dir/file; then
10299      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10300      if test -n "$file_magic_test_file"; then
10301	case $deplibs_check_method in
10302	"file_magic "*)
10303	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10304	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10305	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10306	    $EGREP "$file_magic_regex" > /dev/null; then
10307	    :
10308	  else
10309	    cat <<_LT_EOF 1>&2
10310
10311*** Warning: the command libtool uses to detect shared libraries,
10312*** $file_magic_cmd, produces output that libtool cannot recognize.
10313*** The result is that libtool may fail to recognize shared libraries
10314*** as such.  This will affect the creation of libtool libraries that
10315*** depend on shared libraries, but programs linked with such libtool
10316*** libraries will work regardless of this problem.  Nevertheless, you
10317*** may want to report the problem to your system manager and/or to
10318*** bug-libtool@gnu.org
10319
10320_LT_EOF
10321	  fi ;;
10322	esac
10323      fi
10324      break
10325    fi
10326  done
10327  IFS="$lt_save_ifs"
10328  MAGIC_CMD="$lt_save_MAGIC_CMD"
10329  ;;
10330esac
10331fi
10332
10333MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10334if test -n "$MAGIC_CMD"; then
10335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10336$as_echo "$MAGIC_CMD" >&6; }
10337else
10338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
10340fi
10341
10342
10343  else
10344    MAGIC_CMD=:
10345  fi
10346fi
10347
10348  fi
10349  ;;
10350esac
10351
10352# Use C for the default configuration in the libtool script
10353
10354lt_save_CC="$CC"
10355ac_ext=c
10356ac_cpp='$CPP $CPPFLAGS'
10357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10359ac_compiler_gnu=$ac_cv_c_compiler_gnu
10360
10361
10362# Source file extension for C test sources.
10363ac_ext=c
10364
10365# Object file extension for compiled C test sources.
10366objext=o
10367objext=$objext
10368
10369# Code to be used in simple compile tests
10370lt_simple_compile_test_code="int some_variable = 0;"
10371
10372# Code to be used in simple link tests
10373lt_simple_link_test_code='int main(){return(0);}'
10374
10375
10376
10377
10378
10379
10380
10381# If no C compiler was specified, use CC.
10382LTCC=${LTCC-"$CC"}
10383
10384# If no C compiler flags were specified, use CFLAGS.
10385LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10386
10387# Allow CC to be a program name with arguments.
10388compiler=$CC
10389
10390# Save the default compiler, since it gets overwritten when the other
10391# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10392compiler_DEFAULT=$CC
10393
10394# save warnings/boilerplate of simple test code
10395ac_outfile=conftest.$ac_objext
10396echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10397eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10398_lt_compiler_boilerplate=`cat conftest.err`
10399$RM conftest*
10400
10401ac_outfile=conftest.$ac_objext
10402echo "$lt_simple_link_test_code" >conftest.$ac_ext
10403eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10404_lt_linker_boilerplate=`cat conftest.err`
10405$RM -r conftest*
10406
10407
10408## CAVEAT EMPTOR:
10409## There is no encapsulation within the following macros, do not change
10410## the running order or otherwise move them around unless you know exactly
10411## what you are doing...
10412if test -n "$compiler"; then
10413
10414lt_prog_compiler_no_builtin_flag=
10415
10416if test "$GCC" = yes; then
10417  case $cc_basename in
10418  nvcc*)
10419    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10420  *)
10421    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10422  esac
10423
10424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10425$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10426if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10427  $as_echo_n "(cached) " >&6
10428else
10429  lt_cv_prog_compiler_rtti_exceptions=no
10430   ac_outfile=conftest.$ac_objext
10431   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10432   lt_compiler_flag="-fno-rtti -fno-exceptions"
10433   # Insert the option either (1) after the last *FLAGS variable, or
10434   # (2) before a word containing "conftest.", or (3) at the end.
10435   # Note that $ac_compile itself does not contain backslashes and begins
10436   # with a dollar sign (not a hyphen), so the echo should work correctly.
10437   # The option is referenced via a variable to avoid confusing sed.
10438   lt_compile=`echo "$ac_compile" | $SED \
10439   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10440   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10441   -e 's:$: $lt_compiler_flag:'`
10442   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10443   (eval "$lt_compile" 2>conftest.err)
10444   ac_status=$?
10445   cat conftest.err >&5
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   if (exit $ac_status) && test -s "$ac_outfile"; then
10448     # The compiler can only warn and ignore the option if not recognized
10449     # So say no if there are warnings other than the usual output.
10450     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10451     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10452     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10453       lt_cv_prog_compiler_rtti_exceptions=yes
10454     fi
10455   fi
10456   $RM conftest*
10457
10458fi
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10460$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10461
10462if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10463    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10464else
10465    :
10466fi
10467
10468fi
10469
10470
10471
10472
10473
10474
10475  lt_prog_compiler_wl=
10476lt_prog_compiler_pic=
10477lt_prog_compiler_static=
10478
10479
10480  if test "$GCC" = yes; then
10481    lt_prog_compiler_wl='-Wl,'
10482    lt_prog_compiler_static='-static'
10483
10484    case $host_os in
10485      aix*)
10486      # All AIX code is PIC.
10487      if test "$host_cpu" = ia64; then
10488	# AIX 5 now supports IA64 processor
10489	lt_prog_compiler_static='-Bstatic'
10490      fi
10491      ;;
10492
10493    amigaos*)
10494      case $host_cpu in
10495      powerpc)
10496            # see comment about AmigaOS4 .so support
10497            lt_prog_compiler_pic='-fPIC'
10498        ;;
10499      m68k)
10500            # FIXME: we need at least 68020 code to build shared libraries, but
10501            # adding the `-m68020' flag to GCC prevents building anything better,
10502            # like `-m68040'.
10503            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10504        ;;
10505      esac
10506      ;;
10507
10508    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10509      # PIC is the default for these OSes.
10510      ;;
10511
10512    mingw* | cygwin* | pw32* | os2* | cegcc*)
10513      # This hack is so that the source file can tell whether it is being
10514      # built for inclusion in a dll (and should export symbols for example).
10515      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10516      # (--disable-auto-import) libraries
10517      lt_prog_compiler_pic='-DDLL_EXPORT'
10518      ;;
10519
10520    darwin* | rhapsody*)
10521      # PIC is the default on this platform
10522      # Common symbols not allowed in MH_DYLIB files
10523      lt_prog_compiler_pic='-fno-common'
10524      ;;
10525
10526    haiku*)
10527      # PIC is the default for Haiku.
10528      # The "-static" flag exists, but is broken.
10529      lt_prog_compiler_static=
10530      ;;
10531
10532    hpux*)
10533      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10534      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10535      # sets the default TLS model and affects inlining.
10536      case $host_cpu in
10537      hppa*64*)
10538	# +Z the default
10539	;;
10540      *)
10541	lt_prog_compiler_pic='-fPIC'
10542	;;
10543      esac
10544      ;;
10545
10546    interix[3-9]*)
10547      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10548      # Instead, we relocate shared libraries at runtime.
10549      ;;
10550
10551    msdosdjgpp*)
10552      # Just because we use GCC doesn't mean we suddenly get shared libraries
10553      # on systems that don't support them.
10554      lt_prog_compiler_can_build_shared=no
10555      enable_shared=no
10556      ;;
10557
10558    *nto* | *qnx*)
10559      # QNX uses GNU C++, but need to define -shared option too, otherwise
10560      # it will coredump.
10561      lt_prog_compiler_pic='-fPIC -shared'
10562      ;;
10563
10564    sysv4*MP*)
10565      if test -d /usr/nec; then
10566	lt_prog_compiler_pic=-Kconform_pic
10567      fi
10568      ;;
10569
10570    *)
10571      lt_prog_compiler_pic='-fPIC'
10572      ;;
10573    esac
10574
10575    case $cc_basename in
10576    nvcc*) # Cuda Compiler Driver 2.2
10577      lt_prog_compiler_wl='-Xlinker '
10578      if test -n "$lt_prog_compiler_pic"; then
10579        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10580      fi
10581      ;;
10582    esac
10583  else
10584    # PORTME Check for flag to pass linker flags through the system compiler.
10585    case $host_os in
10586    aix*)
10587      lt_prog_compiler_wl='-Wl,'
10588      if test "$host_cpu" = ia64; then
10589	# AIX 5 now supports IA64 processor
10590	lt_prog_compiler_static='-Bstatic'
10591      else
10592	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10593      fi
10594      ;;
10595
10596    mingw* | cygwin* | pw32* | os2* | cegcc*)
10597      # This hack is so that the source file can tell whether it is being
10598      # built for inclusion in a dll (and should export symbols for example).
10599      lt_prog_compiler_pic='-DDLL_EXPORT'
10600      ;;
10601
10602    hpux9* | hpux10* | hpux11*)
10603      lt_prog_compiler_wl='-Wl,'
10604      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10605      # not for PA HP-UX.
10606      case $host_cpu in
10607      hppa*64*|ia64*)
10608	# +Z the default
10609	;;
10610      *)
10611	lt_prog_compiler_pic='+Z'
10612	;;
10613      esac
10614      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10615      lt_prog_compiler_static='${wl}-a ${wl}archive'
10616      ;;
10617
10618    irix5* | irix6* | nonstopux*)
10619      lt_prog_compiler_wl='-Wl,'
10620      # PIC (with -KPIC) is the default.
10621      lt_prog_compiler_static='-non_shared'
10622      ;;
10623
10624    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10625      case $cc_basename in
10626      # old Intel for x86_64 which still supported -KPIC.
10627      ecc*)
10628	lt_prog_compiler_wl='-Wl,'
10629	lt_prog_compiler_pic='-KPIC'
10630	lt_prog_compiler_static='-static'
10631        ;;
10632      # icc used to be incompatible with GCC.
10633      # ICC 10 doesn't accept -KPIC any more.
10634      icc* | ifort*)
10635	lt_prog_compiler_wl='-Wl,'
10636	lt_prog_compiler_pic='-fPIC'
10637	lt_prog_compiler_static='-static'
10638        ;;
10639      # Lahey Fortran 8.1.
10640      lf95*)
10641	lt_prog_compiler_wl='-Wl,'
10642	lt_prog_compiler_pic='--shared'
10643	lt_prog_compiler_static='--static'
10644	;;
10645      nagfor*)
10646	# NAG Fortran compiler
10647	lt_prog_compiler_wl='-Wl,-Wl,,'
10648	lt_prog_compiler_pic='-PIC'
10649	lt_prog_compiler_static='-Bstatic'
10650	;;
10651      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10652        # Portland Group compilers (*not* the Pentium gcc compiler,
10653	# which looks to be a dead project)
10654	lt_prog_compiler_wl='-Wl,'
10655	lt_prog_compiler_pic='-fpic'
10656	lt_prog_compiler_static='-Bstatic'
10657        ;;
10658      ccc*)
10659        lt_prog_compiler_wl='-Wl,'
10660        # All Alpha code is PIC.
10661        lt_prog_compiler_static='-non_shared'
10662        ;;
10663      xl* | bgxl* | bgf* | mpixl*)
10664	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10665	lt_prog_compiler_wl='-Wl,'
10666	lt_prog_compiler_pic='-qpic'
10667	lt_prog_compiler_static='-qstaticlink'
10668	;;
10669      *)
10670	case `$CC -V 2>&1 | sed 5q` in
10671	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10672	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10673	  lt_prog_compiler_pic='-KPIC'
10674	  lt_prog_compiler_static='-Bstatic'
10675	  lt_prog_compiler_wl=''
10676	  ;;
10677	*Sun\ F* | *Sun*Fortran*)
10678	  lt_prog_compiler_pic='-KPIC'
10679	  lt_prog_compiler_static='-Bstatic'
10680	  lt_prog_compiler_wl='-Qoption ld '
10681	  ;;
10682	*Sun\ C*)
10683	  # Sun C 5.9
10684	  lt_prog_compiler_pic='-KPIC'
10685	  lt_prog_compiler_static='-Bstatic'
10686	  lt_prog_compiler_wl='-Wl,'
10687	  ;;
10688        *Intel*\ [CF]*Compiler*)
10689	  lt_prog_compiler_wl='-Wl,'
10690	  lt_prog_compiler_pic='-fPIC'
10691	  lt_prog_compiler_static='-static'
10692	  ;;
10693	*Portland\ Group*)
10694	  lt_prog_compiler_wl='-Wl,'
10695	  lt_prog_compiler_pic='-fpic'
10696	  lt_prog_compiler_static='-Bstatic'
10697	  ;;
10698	esac
10699	;;
10700      esac
10701      ;;
10702
10703    newsos6)
10704      lt_prog_compiler_pic='-KPIC'
10705      lt_prog_compiler_static='-Bstatic'
10706      ;;
10707
10708    *nto* | *qnx*)
10709      # QNX uses GNU C++, but need to define -shared option too, otherwise
10710      # it will coredump.
10711      lt_prog_compiler_pic='-fPIC -shared'
10712      ;;
10713
10714    osf3* | osf4* | osf5*)
10715      lt_prog_compiler_wl='-Wl,'
10716      # All OSF/1 code is PIC.
10717      lt_prog_compiler_static='-non_shared'
10718      ;;
10719
10720    rdos*)
10721      lt_prog_compiler_static='-non_shared'
10722      ;;
10723
10724    solaris*)
10725      lt_prog_compiler_pic='-KPIC'
10726      lt_prog_compiler_static='-Bstatic'
10727      case $cc_basename in
10728      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10729	lt_prog_compiler_wl='-Qoption ld ';;
10730      *)
10731	lt_prog_compiler_wl='-Wl,';;
10732      esac
10733      ;;
10734
10735    sunos4*)
10736      lt_prog_compiler_wl='-Qoption ld '
10737      lt_prog_compiler_pic='-PIC'
10738      lt_prog_compiler_static='-Bstatic'
10739      ;;
10740
10741    sysv4 | sysv4.2uw2* | sysv4.3*)
10742      lt_prog_compiler_wl='-Wl,'
10743      lt_prog_compiler_pic='-KPIC'
10744      lt_prog_compiler_static='-Bstatic'
10745      ;;
10746
10747    sysv4*MP*)
10748      if test -d /usr/nec ;then
10749	lt_prog_compiler_pic='-Kconform_pic'
10750	lt_prog_compiler_static='-Bstatic'
10751      fi
10752      ;;
10753
10754    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10755      lt_prog_compiler_wl='-Wl,'
10756      lt_prog_compiler_pic='-KPIC'
10757      lt_prog_compiler_static='-Bstatic'
10758      ;;
10759
10760    unicos*)
10761      lt_prog_compiler_wl='-Wl,'
10762      lt_prog_compiler_can_build_shared=no
10763      ;;
10764
10765    uts4*)
10766      lt_prog_compiler_pic='-pic'
10767      lt_prog_compiler_static='-Bstatic'
10768      ;;
10769
10770    *)
10771      lt_prog_compiler_can_build_shared=no
10772      ;;
10773    esac
10774  fi
10775
10776case $host_os in
10777  # For platforms which do not support PIC, -DPIC is meaningless:
10778  *djgpp*)
10779    lt_prog_compiler_pic=
10780    ;;
10781  *)
10782    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10783    ;;
10784esac
10785
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10787$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10788if ${lt_cv_prog_compiler_pic+:} false; then :
10789  $as_echo_n "(cached) " >&6
10790else
10791  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10792fi
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10794$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10795lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10796
10797#
10798# Check to make sure the PIC flag actually works.
10799#
10800if test -n "$lt_prog_compiler_pic"; then
10801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10802$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10803if ${lt_cv_prog_compiler_pic_works+:} false; then :
10804  $as_echo_n "(cached) " >&6
10805else
10806  lt_cv_prog_compiler_pic_works=no
10807   ac_outfile=conftest.$ac_objext
10808   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10809   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10810   # Insert the option either (1) after the last *FLAGS variable, or
10811   # (2) before a word containing "conftest.", or (3) at the end.
10812   # Note that $ac_compile itself does not contain backslashes and begins
10813   # with a dollar sign (not a hyphen), so the echo should work correctly.
10814   # The option is referenced via a variable to avoid confusing sed.
10815   lt_compile=`echo "$ac_compile" | $SED \
10816   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10817   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10818   -e 's:$: $lt_compiler_flag:'`
10819   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10820   (eval "$lt_compile" 2>conftest.err)
10821   ac_status=$?
10822   cat conftest.err >&5
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   if (exit $ac_status) && test -s "$ac_outfile"; then
10825     # The compiler can only warn and ignore the option if not recognized
10826     # So say no if there are warnings other than the usual output.
10827     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10828     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10829     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10830       lt_cv_prog_compiler_pic_works=yes
10831     fi
10832   fi
10833   $RM conftest*
10834
10835fi
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10837$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10838
10839if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10840    case $lt_prog_compiler_pic in
10841     "" | " "*) ;;
10842     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10843     esac
10844else
10845    lt_prog_compiler_pic=
10846     lt_prog_compiler_can_build_shared=no
10847fi
10848
10849fi
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861#
10862# Check to make sure the static flag actually works.
10863#
10864wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10866$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10867if ${lt_cv_prog_compiler_static_works+:} false; then :
10868  $as_echo_n "(cached) " >&6
10869else
10870  lt_cv_prog_compiler_static_works=no
10871   save_LDFLAGS="$LDFLAGS"
10872   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10873   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10874   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10875     # The linker can only warn and ignore the option if not recognized
10876     # So say no if there are warnings
10877     if test -s conftest.err; then
10878       # Append any errors to the config.log.
10879       cat conftest.err 1>&5
10880       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10881       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10882       if diff conftest.exp conftest.er2 >/dev/null; then
10883         lt_cv_prog_compiler_static_works=yes
10884       fi
10885     else
10886       lt_cv_prog_compiler_static_works=yes
10887     fi
10888   fi
10889   $RM -r conftest*
10890   LDFLAGS="$save_LDFLAGS"
10891
10892fi
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10894$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10895
10896if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10897    :
10898else
10899    lt_prog_compiler_static=
10900fi
10901
10902
10903
10904
10905
10906
10907
10908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10909$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10910if ${lt_cv_prog_compiler_c_o+:} false; then :
10911  $as_echo_n "(cached) " >&6
10912else
10913  lt_cv_prog_compiler_c_o=no
10914   $RM -r conftest 2>/dev/null
10915   mkdir conftest
10916   cd conftest
10917   mkdir out
10918   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10919
10920   lt_compiler_flag="-o out/conftest2.$ac_objext"
10921   # Insert the option either (1) after the last *FLAGS variable, or
10922   # (2) before a word containing "conftest.", or (3) at the end.
10923   # Note that $ac_compile itself does not contain backslashes and begins
10924   # with a dollar sign (not a hyphen), so the echo should work correctly.
10925   lt_compile=`echo "$ac_compile" | $SED \
10926   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10927   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10928   -e 's:$: $lt_compiler_flag:'`
10929   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10930   (eval "$lt_compile" 2>out/conftest.err)
10931   ac_status=$?
10932   cat out/conftest.err >&5
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10935   then
10936     # The compiler can only warn and ignore the option if not recognized
10937     # So say no if there are warnings
10938     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10939     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10940     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10941       lt_cv_prog_compiler_c_o=yes
10942     fi
10943   fi
10944   chmod u+w . 2>&5
10945   $RM conftest*
10946   # SGI C++ compiler will create directory out/ii_files/ for
10947   # template instantiation
10948   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10949   $RM out/* && rmdir out
10950   cd ..
10951   $RM -r conftest
10952   $RM conftest*
10953
10954fi
10955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10956$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10957
10958
10959
10960
10961
10962
10963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10964$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10965if ${lt_cv_prog_compiler_c_o+:} false; then :
10966  $as_echo_n "(cached) " >&6
10967else
10968  lt_cv_prog_compiler_c_o=no
10969   $RM -r conftest 2>/dev/null
10970   mkdir conftest
10971   cd conftest
10972   mkdir out
10973   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10974
10975   lt_compiler_flag="-o out/conftest2.$ac_objext"
10976   # Insert the option either (1) after the last *FLAGS variable, or
10977   # (2) before a word containing "conftest.", or (3) at the end.
10978   # Note that $ac_compile itself does not contain backslashes and begins
10979   # with a dollar sign (not a hyphen), so the echo should work correctly.
10980   lt_compile=`echo "$ac_compile" | $SED \
10981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10983   -e 's:$: $lt_compiler_flag:'`
10984   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10985   (eval "$lt_compile" 2>out/conftest.err)
10986   ac_status=$?
10987   cat out/conftest.err >&5
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10990   then
10991     # The compiler can only warn and ignore the option if not recognized
10992     # So say no if there are warnings
10993     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10994     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10995     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10996       lt_cv_prog_compiler_c_o=yes
10997     fi
10998   fi
10999   chmod u+w . 2>&5
11000   $RM conftest*
11001   # SGI C++ compiler will create directory out/ii_files/ for
11002   # template instantiation
11003   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11004   $RM out/* && rmdir out
11005   cd ..
11006   $RM -r conftest
11007   $RM conftest*
11008
11009fi
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11011$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11012
11013
11014
11015
11016hard_links="nottested"
11017if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11018  # do not overwrite the value of need_locks provided by the user
11019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11020$as_echo_n "checking if we can lock with hard links... " >&6; }
11021  hard_links=yes
11022  $RM conftest*
11023  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11024  touch conftest.a
11025  ln conftest.a conftest.b 2>&5 || hard_links=no
11026  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11028$as_echo "$hard_links" >&6; }
11029  if test "$hard_links" = no; then
11030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11031$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11032    need_locks=warn
11033  fi
11034else
11035  need_locks=no
11036fi
11037
11038
11039
11040
11041
11042
11043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11044$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11045
11046  runpath_var=
11047  allow_undefined_flag=
11048  always_export_symbols=no
11049  archive_cmds=
11050  archive_expsym_cmds=
11051  compiler_needs_object=no
11052  enable_shared_with_static_runtimes=no
11053  export_dynamic_flag_spec=
11054  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11055  hardcode_automatic=no
11056  hardcode_direct=no
11057  hardcode_direct_absolute=no
11058  hardcode_libdir_flag_spec=
11059  hardcode_libdir_separator=
11060  hardcode_minus_L=no
11061  hardcode_shlibpath_var=unsupported
11062  inherit_rpath=no
11063  link_all_deplibs=unknown
11064  module_cmds=
11065  module_expsym_cmds=
11066  old_archive_from_new_cmds=
11067  old_archive_from_expsyms_cmds=
11068  thread_safe_flag_spec=
11069  whole_archive_flag_spec=
11070  # include_expsyms should be a list of space-separated symbols to be *always*
11071  # included in the symbol list
11072  include_expsyms=
11073  # exclude_expsyms can be an extended regexp of symbols to exclude
11074  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11075  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11076  # as well as any symbol that contains `d'.
11077  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11078  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11079  # platforms (ab)use it in PIC code, but their linkers get confused if
11080  # the symbol is explicitly referenced.  Since portable code cannot
11081  # rely on this symbol name, it's probably fine to never include it in
11082  # preloaded symbol tables.
11083  # Exclude shared library initialization/finalization symbols.
11084  extract_expsyms_cmds=
11085
11086  case $host_os in
11087  cygwin* | mingw* | pw32* | cegcc*)
11088    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11089    # When not using gcc, we currently assume that we are using
11090    # Microsoft Visual C++.
11091    if test "$GCC" != yes; then
11092      with_gnu_ld=no
11093    fi
11094    ;;
11095  interix*)
11096    # we just hope/assume this is gcc and not c89 (= MSVC++)
11097    with_gnu_ld=yes
11098    ;;
11099  openbsd*)
11100    with_gnu_ld=no
11101    ;;
11102  linux* | k*bsd*-gnu | gnu*)
11103    link_all_deplibs=no
11104    ;;
11105  esac
11106
11107  ld_shlibs=yes
11108
11109  # On some targets, GNU ld is compatible enough with the native linker
11110  # that we're better off using the native interface for both.
11111  lt_use_gnu_ld_interface=no
11112  if test "$with_gnu_ld" = yes; then
11113    case $host_os in
11114      aix*)
11115	# The AIX port of GNU ld has always aspired to compatibility
11116	# with the native linker.  However, as the warning in the GNU ld
11117	# block says, versions before 2.19.5* couldn't really create working
11118	# shared libraries, regardless of the interface used.
11119	case `$LD -v 2>&1` in
11120	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11121	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11122	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11123	  *)
11124	    lt_use_gnu_ld_interface=yes
11125	    ;;
11126	esac
11127	;;
11128      *)
11129	lt_use_gnu_ld_interface=yes
11130	;;
11131    esac
11132  fi
11133
11134  if test "$lt_use_gnu_ld_interface" = yes; then
11135    # If archive_cmds runs LD, not CC, wlarc should be empty
11136    wlarc='${wl}'
11137
11138    # Set some defaults for GNU ld with shared library support. These
11139    # are reset later if shared libraries are not supported. Putting them
11140    # here allows them to be overridden if necessary.
11141    runpath_var=LD_RUN_PATH
11142    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11143    export_dynamic_flag_spec='${wl}--export-dynamic'
11144    # ancient GNU ld didn't support --whole-archive et. al.
11145    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11146      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11147    else
11148      whole_archive_flag_spec=
11149    fi
11150    supports_anon_versioning=no
11151    case `$LD -v 2>&1` in
11152      *GNU\ gold*) supports_anon_versioning=yes ;;
11153      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11154      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11155      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11156      *\ 2.11.*) ;; # other 2.11 versions
11157      *) supports_anon_versioning=yes ;;
11158    esac
11159
11160    # See if GNU ld supports shared libraries.
11161    case $host_os in
11162    aix[3-9]*)
11163      # On AIX/PPC, the GNU linker is very broken
11164      if test "$host_cpu" != ia64; then
11165	ld_shlibs=no
11166	cat <<_LT_EOF 1>&2
11167
11168*** Warning: the GNU linker, at least up to release 2.19, is reported
11169*** to be unable to reliably create shared libraries on AIX.
11170*** Therefore, libtool is disabling shared libraries support.  If you
11171*** really care for shared libraries, you may want to install binutils
11172*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11173*** You will then need to restart the configuration process.
11174
11175_LT_EOF
11176      fi
11177      ;;
11178
11179    amigaos*)
11180      case $host_cpu in
11181      powerpc)
11182            # see comment about AmigaOS4 .so support
11183            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11184            archive_expsym_cmds=''
11185        ;;
11186      m68k)
11187            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)'
11188            hardcode_libdir_flag_spec='-L$libdir'
11189            hardcode_minus_L=yes
11190        ;;
11191      esac
11192      ;;
11193
11194    beos*)
11195      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11196	allow_undefined_flag=unsupported
11197	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11198	# support --undefined.  This deserves some investigation.  FIXME
11199	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11200      else
11201	ld_shlibs=no
11202      fi
11203      ;;
11204
11205    cygwin* | mingw* | pw32* | cegcc*)
11206      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11207      # as there is no search path for DLLs.
11208      hardcode_libdir_flag_spec='-L$libdir'
11209      export_dynamic_flag_spec='${wl}--export-all-symbols'
11210      allow_undefined_flag=unsupported
11211      always_export_symbols=no
11212      enable_shared_with_static_runtimes=yes
11213      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'
11214      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11215
11216      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11217        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11218	# If the export-symbols file already is a .def file (1st line
11219	# is EXPORTS), use it as is; otherwise, prepend...
11220	archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11221	  cp $export_symbols $output_objdir/$soname.def;
11222	else
11223	  echo EXPORTS > $output_objdir/$soname.def;
11224	  cat $export_symbols >> $output_objdir/$soname.def;
11225	fi~
11226	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11227      else
11228	ld_shlibs=no
11229      fi
11230      ;;
11231
11232    haiku*)
11233      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234      link_all_deplibs=yes
11235      ;;
11236
11237    interix[3-9]*)
11238      hardcode_direct=no
11239      hardcode_shlibpath_var=no
11240      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11241      export_dynamic_flag_spec='${wl}-E'
11242      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11243      # Instead, shared libraries are loaded at an image base (0x10000000 by
11244      # default) and relocated if they conflict, which is a slow very memory
11245      # consuming and fragmenting process.  To avoid this, we pick a random,
11246      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11247      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11248      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11249      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'
11250      ;;
11251
11252    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11253      tmp_diet=no
11254      if test "$host_os" = linux-dietlibc; then
11255	case $cc_basename in
11256	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11257	esac
11258      fi
11259      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11260	 && test "$tmp_diet" = no
11261      then
11262	tmp_addflag=' $pic_flag'
11263	tmp_sharedflag='-shared'
11264	case $cc_basename,$host_cpu in
11265        pgcc*)				# Portland Group C compiler
11266	  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'
11267	  tmp_addflag=' $pic_flag'
11268	  ;;
11269	pgf77* | pgf90* | pgf95* | pgfortran*)
11270					# Portland Group f77 and f90 compilers
11271	  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'
11272	  tmp_addflag=' $pic_flag -Mnomain' ;;
11273	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11274	  tmp_addflag=' -i_dynamic' ;;
11275	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11276	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11277	ifc* | ifort*)			# Intel Fortran compiler
11278	  tmp_addflag=' -nofor_main' ;;
11279	lf95*)				# Lahey Fortran 8.1
11280	  whole_archive_flag_spec=
11281	  tmp_sharedflag='--shared' ;;
11282	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11283	  tmp_sharedflag='-qmkshrobj'
11284	  tmp_addflag= ;;
11285	nvcc*)	# Cuda Compiler Driver 2.2
11286	  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'
11287	  compiler_needs_object=yes
11288	  ;;
11289	esac
11290	case `$CC -V 2>&1 | sed 5q` in
11291	*Sun\ C*)			# Sun C 5.9
11292	  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'
11293	  compiler_needs_object=yes
11294	  tmp_sharedflag='-G' ;;
11295	*Sun\ F*)			# Sun Fortran 8.3
11296	  tmp_sharedflag='-G' ;;
11297	esac
11298	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11299
11300        if test "x$supports_anon_versioning" = xyes; then
11301          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11302	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11303	    echo "local: *; };" >> $output_objdir/$libname.ver~
11304	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11305        fi
11306
11307	case $cc_basename in
11308	xlf* | bgf* | bgxlf* | mpixlf*)
11309	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11310	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11311	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11312	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11313	  if test "x$supports_anon_versioning" = xyes; then
11314	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11315	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11316	      echo "local: *; };" >> $output_objdir/$libname.ver~
11317	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11318	  fi
11319	  ;;
11320	esac
11321      else
11322        ld_shlibs=no
11323      fi
11324      ;;
11325
11326    netbsd* | netbsdelf*-gnu)
11327      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11328	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11329	wlarc=
11330      else
11331	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11333      fi
11334      ;;
11335
11336    solaris*)
11337      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11338	ld_shlibs=no
11339	cat <<_LT_EOF 1>&2
11340
11341*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11342*** create shared libraries on Solaris systems.  Therefore, libtool
11343*** is disabling shared libraries support.  We urge you to upgrade GNU
11344*** binutils to release 2.9.1 or newer.  Another option is to modify
11345*** your PATH or compiler configuration so that the native linker is
11346*** used, and then restart.
11347
11348_LT_EOF
11349      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11350	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11351	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11352      else
11353	ld_shlibs=no
11354      fi
11355      ;;
11356
11357    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11358      case `$LD -v 2>&1` in
11359        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11360	ld_shlibs=no
11361	cat <<_LT_EOF 1>&2
11362
11363*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11364*** reliably create shared libraries on SCO systems.  Therefore, libtool
11365*** is disabling shared libraries support.  We urge you to upgrade GNU
11366*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11367*** your PATH or compiler configuration so that the native linker is
11368*** used, and then restart.
11369
11370_LT_EOF
11371	;;
11372	*)
11373	  # For security reasons, it is highly recommended that you always
11374	  # use absolute paths for naming shared libraries, and exclude the
11375	  # DT_RUNPATH tag from executables and libraries.  But doing so
11376	  # requires that you compile everything twice, which is a pain.
11377	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11378	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11379	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11380	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11381	  else
11382	    ld_shlibs=no
11383	  fi
11384	;;
11385      esac
11386      ;;
11387
11388    sunos4*)
11389      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11390      wlarc=
11391      hardcode_direct=yes
11392      hardcode_shlibpath_var=no
11393      ;;
11394
11395    *)
11396      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11397	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11398	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11399      else
11400	ld_shlibs=no
11401      fi
11402      ;;
11403    esac
11404
11405    if test "$ld_shlibs" = no; then
11406      runpath_var=
11407      hardcode_libdir_flag_spec=
11408      export_dynamic_flag_spec=
11409      whole_archive_flag_spec=
11410    fi
11411  else
11412    # PORTME fill in a description of your system's linker (not GNU ld)
11413    case $host_os in
11414    aix3*)
11415      allow_undefined_flag=unsupported
11416      always_export_symbols=yes
11417      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'
11418      # Note: this linker hardcodes the directories in LIBPATH if there
11419      # are no directories specified by -L.
11420      hardcode_minus_L=yes
11421      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11422	# Neither direct hardcoding nor static linking is supported with a
11423	# broken collect2.
11424	hardcode_direct=unsupported
11425      fi
11426      ;;
11427
11428    aix[4-9]*)
11429      if test "$host_cpu" = ia64; then
11430	# On IA64, the linker does run time linking by default, so we don't
11431	# have to do anything special.
11432	aix_use_runtimelinking=no
11433	exp_sym_flag='-Bexport'
11434	no_entry_flag=""
11435      else
11436	# If we're using GNU nm, then we don't want the "-C" option.
11437	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11438	# Also, AIX nm treats weak defined symbols like other global
11439	# defined symbols, whereas GNU nm marks them as "W".
11440	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11441	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11442	else
11443	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11444	fi
11445	aix_use_runtimelinking=no
11446
11447	# Test if we are trying to use run time linking or normal
11448	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11449	# need to do runtime linking.
11450	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11451	  for ld_flag in $LDFLAGS; do
11452	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11453	    aix_use_runtimelinking=yes
11454	    break
11455	  fi
11456	  done
11457	  ;;
11458	esac
11459
11460	exp_sym_flag='-bexport'
11461	no_entry_flag='-bnoentry'
11462      fi
11463
11464      # When large executables or shared objects are built, AIX ld can
11465      # have problems creating the table of contents.  If linking a library
11466      # or program results in "error TOC overflow" add -mminimal-toc to
11467      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11468      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11469
11470      archive_cmds=''
11471      hardcode_direct=yes
11472      hardcode_direct_absolute=yes
11473      hardcode_libdir_separator=':'
11474      link_all_deplibs=yes
11475      file_list_spec='${wl}-f,'
11476
11477      if test "$GCC" = yes; then
11478	case $host_os in aix4.[012]|aix4.[012].*)
11479	# We only want to do this on AIX 4.2 and lower, the check
11480	# below for broken collect2 doesn't work under 4.3+
11481	  collect2name=`${CC} -print-prog-name=collect2`
11482	  if test -f "$collect2name" &&
11483	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11484	  then
11485	  # We have reworked collect2
11486	  :
11487	  else
11488	  # We have old collect2
11489	  hardcode_direct=unsupported
11490	  # It fails to find uninstalled libraries when the uninstalled
11491	  # path is not listed in the libpath.  Setting hardcode_minus_L
11492	  # to unsupported forces relinking
11493	  hardcode_minus_L=yes
11494	  hardcode_libdir_flag_spec='-L$libdir'
11495	  hardcode_libdir_separator=
11496	  fi
11497	  ;;
11498	esac
11499	shared_flag='-shared'
11500	if test "$aix_use_runtimelinking" = yes; then
11501	  shared_flag="$shared_flag "'${wl}-G'
11502	fi
11503	link_all_deplibs=no
11504      else
11505	# not using gcc
11506	if test "$host_cpu" = ia64; then
11507	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11508	# chokes on -Wl,-G. The following line is correct:
11509	  shared_flag='-G'
11510	else
11511	  if test "$aix_use_runtimelinking" = yes; then
11512	    shared_flag='${wl}-G'
11513	  else
11514	    shared_flag='${wl}-bM:SRE'
11515	  fi
11516	fi
11517      fi
11518
11519      export_dynamic_flag_spec='${wl}-bexpall'
11520      # It seems that -bexpall does not export symbols beginning with
11521      # underscore (_), so it is better to generate a list of symbols to export.
11522      always_export_symbols=yes
11523      if test "$aix_use_runtimelinking" = yes; then
11524	# Warning - without using the other runtime loading flags (-brtl),
11525	# -berok will link without error, but may produce a broken library.
11526	allow_undefined_flag='-berok'
11527        # Determine the default libpath from the value encoded in an
11528        # empty executable.
11529        if test "${lt_cv_aix_libpath+set}" = set; then
11530  aix_libpath=$lt_cv_aix_libpath
11531else
11532  if ${lt_cv_aix_libpath_+:} false; then :
11533  $as_echo_n "(cached) " >&6
11534else
11535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h.  */
11537
11538int
11539main ()
11540{
11541
11542  ;
11543  return 0;
11544}
11545_ACEOF
11546if ac_fn_c_try_link "$LINENO"; then :
11547
11548  lt_aix_libpath_sed='
11549      /Import File Strings/,/^$/ {
11550	  /^0/ {
11551	      s/^0  *\([^ ]*\) *$/\1/
11552	      p
11553	  }
11554      }'
11555  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11556  # Check for a 64-bit object if we didn't find anything.
11557  if test -z "$lt_cv_aix_libpath_"; then
11558    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11559  fi
11560fi
11561rm -f core conftest.err conftest.$ac_objext \
11562    conftest$ac_exeext conftest.$ac_ext
11563  if test -z "$lt_cv_aix_libpath_"; then
11564    lt_cv_aix_libpath_="/usr/lib:/lib"
11565  fi
11566
11567fi
11568
11569  aix_libpath=$lt_cv_aix_libpath_
11570fi
11571
11572        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11573        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11574      else
11575	if test "$host_cpu" = ia64; then
11576	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11577	  allow_undefined_flag="-z nodefs"
11578	  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"
11579	else
11580	 # Determine the default libpath from the value encoded in an
11581	 # empty executable.
11582	 if test "${lt_cv_aix_libpath+set}" = set; then
11583  aix_libpath=$lt_cv_aix_libpath
11584else
11585  if ${lt_cv_aix_libpath_+:} false; then :
11586  $as_echo_n "(cached) " >&6
11587else
11588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589/* end confdefs.h.  */
11590
11591int
11592main ()
11593{
11594
11595  ;
11596  return 0;
11597}
11598_ACEOF
11599if ac_fn_c_try_link "$LINENO"; then :
11600
11601  lt_aix_libpath_sed='
11602      /Import File Strings/,/^$/ {
11603	  /^0/ {
11604	      s/^0  *\([^ ]*\) *$/\1/
11605	      p
11606	  }
11607      }'
11608  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11609  # Check for a 64-bit object if we didn't find anything.
11610  if test -z "$lt_cv_aix_libpath_"; then
11611    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11612  fi
11613fi
11614rm -f core conftest.err conftest.$ac_objext \
11615    conftest$ac_exeext conftest.$ac_ext
11616  if test -z "$lt_cv_aix_libpath_"; then
11617    lt_cv_aix_libpath_="/usr/lib:/lib"
11618  fi
11619
11620fi
11621
11622  aix_libpath=$lt_cv_aix_libpath_
11623fi
11624
11625	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11626	  # Warning - without using the other run time loading flags,
11627	  # -berok will link without error, but may produce a broken library.
11628	  no_undefined_flag=' ${wl}-bernotok'
11629	  allow_undefined_flag=' ${wl}-berok'
11630	  if test "$with_gnu_ld" = yes; then
11631	    # We only use this code for GNU lds that support --whole-archive.
11632	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11633	  else
11634	    # Exported symbols can be pulled into shared objects from archives
11635	    whole_archive_flag_spec='$convenience'
11636	  fi
11637	  archive_cmds_need_lc=yes
11638	  # This is similar to how AIX traditionally builds its shared libraries.
11639	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11640	fi
11641      fi
11642      ;;
11643
11644    amigaos*)
11645      case $host_cpu in
11646      powerpc)
11647            # see comment about AmigaOS4 .so support
11648            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11649            archive_expsym_cmds=''
11650        ;;
11651      m68k)
11652            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)'
11653            hardcode_libdir_flag_spec='-L$libdir'
11654            hardcode_minus_L=yes
11655        ;;
11656      esac
11657      ;;
11658
11659    bsdi[45]*)
11660      export_dynamic_flag_spec=-rdynamic
11661      ;;
11662
11663    cygwin* | mingw* | pw32* | cegcc*)
11664      # When not using gcc, we currently assume that we are using
11665      # Microsoft Visual C++.
11666      # hardcode_libdir_flag_spec is actually meaningless, as there is
11667      # no search path for DLLs.
11668      case $cc_basename in
11669      cl*)
11670	# Native MSVC
11671	hardcode_libdir_flag_spec=' '
11672	allow_undefined_flag=unsupported
11673	always_export_symbols=yes
11674	file_list_spec='@'
11675	# Tell ltmain to make .lib files, not .a files.
11676	libext=lib
11677	# Tell ltmain to make .dll files, not .so files.
11678	shrext_cmds=".dll"
11679	# FIXME: Setting linknames here is a bad hack.
11680	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11681	archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11682	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11683	  else
11684	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11685	  fi~
11686	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11687	  linknames='
11688	# The linker will not automatically build a static lib if we build a DLL.
11689	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11690	enable_shared_with_static_runtimes=yes
11691	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11692	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11693	# Don't use ranlib
11694	old_postinstall_cmds='chmod 644 $oldlib'
11695	postlink_cmds='lt_outputfile="@OUTPUT@"~
11696	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11697	  case $lt_outputfile in
11698	    *.exe|*.EXE) ;;
11699	    *)
11700	      lt_outputfile="$lt_outputfile.exe"
11701	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11702	      ;;
11703	  esac~
11704	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11705	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11706	    $RM "$lt_outputfile.manifest";
11707	  fi'
11708	;;
11709      *)
11710	# Assume MSVC wrapper
11711	hardcode_libdir_flag_spec=' '
11712	allow_undefined_flag=unsupported
11713	# Tell ltmain to make .lib files, not .a files.
11714	libext=lib
11715	# Tell ltmain to make .dll files, not .so files.
11716	shrext_cmds=".dll"
11717	# FIXME: Setting linknames here is a bad hack.
11718	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11719	# The linker will automatically build a .lib file if we build a DLL.
11720	old_archive_from_new_cmds='true'
11721	# FIXME: Should let the user specify the lib program.
11722	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11723	enable_shared_with_static_runtimes=yes
11724	;;
11725      esac
11726      ;;
11727
11728    darwin* | rhapsody*)
11729
11730
11731  archive_cmds_need_lc=no
11732  hardcode_direct=no
11733  hardcode_automatic=yes
11734  hardcode_shlibpath_var=unsupported
11735  if test "$lt_cv_ld_force_load" = "yes"; then
11736    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\"`'
11737
11738  else
11739    whole_archive_flag_spec=''
11740  fi
11741  link_all_deplibs=yes
11742  allow_undefined_flag="$_lt_dar_allow_undefined"
11743  case $cc_basename in
11744     ifort*) _lt_dar_can_shared=yes ;;
11745     *) _lt_dar_can_shared=$GCC ;;
11746  esac
11747  if test "$_lt_dar_can_shared" = "yes"; then
11748    output_verbose_link_cmd=func_echo_all
11749    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11750    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11751    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}"
11752    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}"
11753
11754  else
11755  ld_shlibs=no
11756  fi
11757
11758      ;;
11759
11760    dgux*)
11761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11762      hardcode_libdir_flag_spec='-L$libdir'
11763      hardcode_shlibpath_var=no
11764      ;;
11765
11766    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11767    # support.  Future versions do this automatically, but an explicit c++rt0.o
11768    # does not break anything, and helps significantly (at the cost of a little
11769    # extra space).
11770    freebsd2.2*)
11771      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11772      hardcode_libdir_flag_spec='-R$libdir'
11773      hardcode_direct=yes
11774      hardcode_shlibpath_var=no
11775      ;;
11776
11777    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11778    freebsd2.*)
11779      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11780      hardcode_direct=yes
11781      hardcode_minus_L=yes
11782      hardcode_shlibpath_var=no
11783      ;;
11784
11785    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11786    freebsd* | dragonfly*)
11787      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11788      hardcode_libdir_flag_spec='-R$libdir'
11789      hardcode_direct=yes
11790      hardcode_shlibpath_var=no
11791      ;;
11792
11793    hpux9*)
11794      if test "$GCC" = yes; then
11795	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11796      else
11797	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11798      fi
11799      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11800      hardcode_libdir_separator=:
11801      hardcode_direct=yes
11802
11803      # hardcode_minus_L: Not really in the search PATH,
11804      # but as the default location of the library.
11805      hardcode_minus_L=yes
11806      export_dynamic_flag_spec='${wl}-E'
11807      ;;
11808
11809    hpux10*)
11810      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11811	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11812      else
11813	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11814      fi
11815      if test "$with_gnu_ld" = no; then
11816	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11817	hardcode_libdir_separator=:
11818	hardcode_direct=yes
11819	hardcode_direct_absolute=yes
11820	export_dynamic_flag_spec='${wl}-E'
11821	# hardcode_minus_L: Not really in the search PATH,
11822	# but as the default location of the library.
11823	hardcode_minus_L=yes
11824      fi
11825      ;;
11826
11827    hpux11*)
11828      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11829	case $host_cpu in
11830	hppa*64*)
11831	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11832	  ;;
11833	ia64*)
11834	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11835	  ;;
11836	*)
11837	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11838	  ;;
11839	esac
11840      else
11841	case $host_cpu in
11842	hppa*64*)
11843	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11844	  ;;
11845	ia64*)
11846	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11847	  ;;
11848	*)
11849
11850	  # Older versions of the 11.00 compiler do not understand -b yet
11851	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11852	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11853$as_echo_n "checking if $CC understands -b... " >&6; }
11854if ${lt_cv_prog_compiler__b+:} false; then :
11855  $as_echo_n "(cached) " >&6
11856else
11857  lt_cv_prog_compiler__b=no
11858   save_LDFLAGS="$LDFLAGS"
11859   LDFLAGS="$LDFLAGS -b"
11860   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11861   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11862     # The linker can only warn and ignore the option if not recognized
11863     # So say no if there are warnings
11864     if test -s conftest.err; then
11865       # Append any errors to the config.log.
11866       cat conftest.err 1>&5
11867       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11868       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11869       if diff conftest.exp conftest.er2 >/dev/null; then
11870         lt_cv_prog_compiler__b=yes
11871       fi
11872     else
11873       lt_cv_prog_compiler__b=yes
11874     fi
11875   fi
11876   $RM -r conftest*
11877   LDFLAGS="$save_LDFLAGS"
11878
11879fi
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11881$as_echo "$lt_cv_prog_compiler__b" >&6; }
11882
11883if test x"$lt_cv_prog_compiler__b" = xyes; then
11884    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11885else
11886    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11887fi
11888
11889	  ;;
11890	esac
11891      fi
11892      if test "$with_gnu_ld" = no; then
11893	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11894	hardcode_libdir_separator=:
11895
11896	case $host_cpu in
11897	hppa*64*|ia64*)
11898	  hardcode_direct=no
11899	  hardcode_shlibpath_var=no
11900	  ;;
11901	*)
11902	  hardcode_direct=yes
11903	  hardcode_direct_absolute=yes
11904	  export_dynamic_flag_spec='${wl}-E'
11905
11906	  # hardcode_minus_L: Not really in the search PATH,
11907	  # but as the default location of the library.
11908	  hardcode_minus_L=yes
11909	  ;;
11910	esac
11911      fi
11912      ;;
11913
11914    irix5* | irix6* | nonstopux*)
11915      if test "$GCC" = yes; then
11916	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'
11917	# Try to use the -exported_symbol ld option, if it does not
11918	# work, assume that -exports_file does not work either and
11919	# implicitly export all symbols.
11920	# This should be the same for all languages, so no per-tag cache variable.
11921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11922$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11923if ${lt_cv_irix_exported_symbol+:} false; then :
11924  $as_echo_n "(cached) " >&6
11925else
11926  save_LDFLAGS="$LDFLAGS"
11927	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11928	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929/* end confdefs.h.  */
11930int foo (void) { return 0; }
11931_ACEOF
11932if ac_fn_c_try_link "$LINENO"; then :
11933  lt_cv_irix_exported_symbol=yes
11934else
11935  lt_cv_irix_exported_symbol=no
11936fi
11937rm -f core conftest.err conftest.$ac_objext \
11938    conftest$ac_exeext conftest.$ac_ext
11939           LDFLAGS="$save_LDFLAGS"
11940fi
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11942$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11943	if test "$lt_cv_irix_exported_symbol" = yes; then
11944          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'
11945	fi
11946      else
11947	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'
11948	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'
11949      fi
11950      archive_cmds_need_lc='no'
11951      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11952      hardcode_libdir_separator=:
11953      inherit_rpath=yes
11954      link_all_deplibs=yes
11955      ;;
11956
11957    netbsd* | netbsdelf*-gnu)
11958      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11959	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11960      else
11961	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11962      fi
11963      hardcode_libdir_flag_spec='-R$libdir'
11964      hardcode_direct=yes
11965      hardcode_shlibpath_var=no
11966      ;;
11967
11968    newsos6)
11969      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11970      hardcode_direct=yes
11971      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11972      hardcode_libdir_separator=:
11973      hardcode_shlibpath_var=no
11974      ;;
11975
11976    *nto* | *qnx*)
11977      ;;
11978
11979    openbsd*)
11980      if test -f /usr/libexec/ld.so; then
11981	hardcode_direct=yes
11982	hardcode_shlibpath_var=no
11983	hardcode_direct_absolute=yes
11984	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11985	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11986	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11987	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11988	  export_dynamic_flag_spec='${wl}-E'
11989	else
11990	  case $host_os in
11991	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11992	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11993	     hardcode_libdir_flag_spec='-R$libdir'
11994	     ;;
11995	   *)
11996	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11997	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11998	     ;;
11999	  esac
12000	fi
12001      else
12002	ld_shlibs=no
12003      fi
12004      ;;
12005
12006    os2*)
12007      hardcode_libdir_flag_spec='-L$libdir'
12008      hardcode_minus_L=yes
12009      allow_undefined_flag=unsupported
12010      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12011      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12012      ;;
12013
12014    osf3*)
12015      if test "$GCC" = yes; then
12016	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12017	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'
12018      else
12019	allow_undefined_flag=' -expect_unresolved \*'
12020	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'
12021      fi
12022      archive_cmds_need_lc='no'
12023      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12024      hardcode_libdir_separator=:
12025      ;;
12026
12027    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12028      if test "$GCC" = yes; then
12029	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12030	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'
12031	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12032      else
12033	allow_undefined_flag=' -expect_unresolved \*'
12034	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'
12035	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~
12036	$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'
12037
12038	# Both c and cxx compiler support -rpath directly
12039	hardcode_libdir_flag_spec='-rpath $libdir'
12040      fi
12041      archive_cmds_need_lc='no'
12042      hardcode_libdir_separator=:
12043      ;;
12044
12045    solaris*)
12046      no_undefined_flag=' -z defs'
12047      if test "$GCC" = yes; then
12048	wlarc='${wl}'
12049	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12050	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12051	  $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'
12052      else
12053	case `$CC -V 2>&1` in
12054	*"Compilers 5.0"*)
12055	  wlarc=''
12056	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12057	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12058	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12059	  ;;
12060	*)
12061	  wlarc='${wl}'
12062	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12063	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12064	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12065	  ;;
12066	esac
12067      fi
12068      hardcode_libdir_flag_spec='-R$libdir'
12069      hardcode_shlibpath_var=no
12070      case $host_os in
12071      solaris2.[0-5] | solaris2.[0-5].*) ;;
12072      *)
12073	# The compiler driver will combine and reorder linker options,
12074	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12075	# but is careful enough not to reorder.
12076	# Supported since Solaris 2.6 (maybe 2.5.1?)
12077	if test "$GCC" = yes; then
12078	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12079	else
12080	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12081	fi
12082	;;
12083      esac
12084      link_all_deplibs=yes
12085      ;;
12086
12087    sunos4*)
12088      if test "x$host_vendor" = xsequent; then
12089	# Use $CC to link under sequent, because it throws in some extra .o
12090	# files that make .init and .fini sections work.
12091	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12092      else
12093	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12094      fi
12095      hardcode_libdir_flag_spec='-L$libdir'
12096      hardcode_direct=yes
12097      hardcode_minus_L=yes
12098      hardcode_shlibpath_var=no
12099      ;;
12100
12101    sysv4)
12102      case $host_vendor in
12103	sni)
12104	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12105	  hardcode_direct=yes # is this really true???
12106	;;
12107	siemens)
12108	  ## LD is ld it makes a PLAMLIB
12109	  ## CC just makes a GrossModule.
12110	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12111	  reload_cmds='$CC -r -o $output$reload_objs'
12112	  hardcode_direct=no
12113        ;;
12114	motorola)
12115	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12116	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12117	;;
12118      esac
12119      runpath_var='LD_RUN_PATH'
12120      hardcode_shlibpath_var=no
12121      ;;
12122
12123    sysv4.3*)
12124      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12125      hardcode_shlibpath_var=no
12126      export_dynamic_flag_spec='-Bexport'
12127      ;;
12128
12129    sysv4*MP*)
12130      if test -d /usr/nec; then
12131	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12132	hardcode_shlibpath_var=no
12133	runpath_var=LD_RUN_PATH
12134	hardcode_runpath_var=yes
12135	ld_shlibs=yes
12136      fi
12137      ;;
12138
12139    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12140      no_undefined_flag='${wl}-z,text'
12141      archive_cmds_need_lc=no
12142      hardcode_shlibpath_var=no
12143      runpath_var='LD_RUN_PATH'
12144
12145      if test "$GCC" = yes; then
12146	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12148      else
12149	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12150	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151      fi
12152      ;;
12153
12154    sysv5* | sco3.2v5* | sco5v6*)
12155      # Note: We can NOT use -z defs as we might desire, because we do not
12156      # link with -lc, and that would cause any symbols used from libc to
12157      # always be unresolved, which means just about no library would
12158      # ever link correctly.  If we're not using GNU ld we use -z text
12159      # though, which does catch some bad symbols but isn't as heavy-handed
12160      # as -z defs.
12161      no_undefined_flag='${wl}-z,text'
12162      allow_undefined_flag='${wl}-z,nodefs'
12163      archive_cmds_need_lc=no
12164      hardcode_shlibpath_var=no
12165      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12166      hardcode_libdir_separator=':'
12167      link_all_deplibs=yes
12168      export_dynamic_flag_spec='${wl}-Bexport'
12169      runpath_var='LD_RUN_PATH'
12170
12171      if test "$GCC" = yes; then
12172	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12173	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12174      else
12175	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12176	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12177      fi
12178      ;;
12179
12180    uts4*)
12181      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12182      hardcode_libdir_flag_spec='-L$libdir'
12183      hardcode_shlibpath_var=no
12184      ;;
12185
12186    *)
12187      ld_shlibs=no
12188      ;;
12189    esac
12190
12191    if test x$host_vendor = xsni; then
12192      case $host in
12193      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12194	export_dynamic_flag_spec='${wl}-Blargedynsym'
12195	;;
12196      esac
12197    fi
12198  fi
12199
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12201$as_echo "$ld_shlibs" >&6; }
12202test "$ld_shlibs" = no && can_build_shared=no
12203
12204with_gnu_ld=$with_gnu_ld
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220#
12221# Do we need to explicitly link libc?
12222#
12223case "x$archive_cmds_need_lc" in
12224x|xyes)
12225  # Assume -lc should be added
12226  archive_cmds_need_lc=yes
12227
12228  if test "$enable_shared" = yes && test "$GCC" = yes; then
12229    case $archive_cmds in
12230    *'~'*)
12231      # FIXME: we may have to deal with multi-command sequences.
12232      ;;
12233    '$CC '*)
12234      # Test whether the compiler implicitly links with -lc since on some
12235      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12236      # to ld, don't add -lc before -lgcc.
12237      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12238$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12239if ${lt_cv_archive_cmds_need_lc+:} false; then :
12240  $as_echo_n "(cached) " >&6
12241else
12242  $RM conftest*
12243	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12244
12245	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12246  (eval $ac_compile) 2>&5
12247  ac_status=$?
12248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249  test $ac_status = 0; } 2>conftest.err; then
12250	  soname=conftest
12251	  lib=conftest
12252	  libobjs=conftest.$ac_objext
12253	  deplibs=
12254	  wl=$lt_prog_compiler_wl
12255	  pic_flag=$lt_prog_compiler_pic
12256	  compiler_flags=-v
12257	  linker_flags=-v
12258	  verstring=
12259	  output_objdir=.
12260	  libname=conftest
12261	  lt_save_allow_undefined_flag=$allow_undefined_flag
12262	  allow_undefined_flag=
12263	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12264  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12265  ac_status=$?
12266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12267  test $ac_status = 0; }
12268	  then
12269	    lt_cv_archive_cmds_need_lc=no
12270	  else
12271	    lt_cv_archive_cmds_need_lc=yes
12272	  fi
12273	  allow_undefined_flag=$lt_save_allow_undefined_flag
12274	else
12275	  cat conftest.err 1>&5
12276	fi
12277	$RM conftest*
12278
12279fi
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12281$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12282      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12283      ;;
12284    esac
12285  fi
12286  ;;
12287esac
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12441$as_echo_n "checking dynamic linker characteristics... " >&6; }
12442
12443if test "$GCC" = yes; then
12444  case $host_os in
12445    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12446    *) lt_awk_arg="/^libraries:/" ;;
12447  esac
12448  case $host_os in
12449    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12450    *) lt_sed_strip_eq="s,=/,/,g" ;;
12451  esac
12452  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12453  case $lt_search_path_spec in
12454  *\;*)
12455    # if the path contains ";" then we assume it to be the separator
12456    # otherwise default to the standard path separator (i.e. ":") - it is
12457    # assumed that no part of a normal pathname contains ";" but that should
12458    # okay in the real world where ";" in dirpaths is itself problematic.
12459    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12460    ;;
12461  *)
12462    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12463    ;;
12464  esac
12465  # Ok, now we have the path, separated by spaces, we can step through it
12466  # and add multilib dir if necessary.
12467  lt_tmp_lt_search_path_spec=
12468  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12469  for lt_sys_path in $lt_search_path_spec; do
12470    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12471      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12472    else
12473      test -d "$lt_sys_path" && \
12474	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12475    fi
12476  done
12477  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12478BEGIN {RS=" "; FS="/|\n";} {
12479  lt_foo="";
12480  lt_count=0;
12481  for (lt_i = NF; lt_i > 0; lt_i--) {
12482    if ($lt_i != "" && $lt_i != ".") {
12483      if ($lt_i == "..") {
12484        lt_count++;
12485      } else {
12486        if (lt_count == 0) {
12487          lt_foo="/" $lt_i lt_foo;
12488        } else {
12489          lt_count--;
12490        }
12491      }
12492    }
12493  }
12494  if (lt_foo != "") { lt_freq[lt_foo]++; }
12495  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12496}'`
12497  # AWK program above erroneously prepends '/' to C:/dos/paths
12498  # for these hosts.
12499  case $host_os in
12500    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12501      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12502  esac
12503  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12504else
12505  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12506fi
12507library_names_spec=
12508libname_spec='lib$name'
12509soname_spec=
12510shrext_cmds=".so"
12511postinstall_cmds=
12512postuninstall_cmds=
12513finish_cmds=
12514finish_eval=
12515shlibpath_var=
12516shlibpath_overrides_runpath=unknown
12517version_type=none
12518dynamic_linker="$host_os ld.so"
12519sys_lib_dlsearch_path_spec="/lib /usr/lib"
12520need_lib_prefix=unknown
12521hardcode_into_libs=no
12522
12523# when you set need_version to no, make sure it does not cause -set_version
12524# flags to be left without arguments
12525need_version=unknown
12526
12527case $host_os in
12528aix3*)
12529  version_type=linux # correct to gnu/linux during the next big refactor
12530  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12531  shlibpath_var=LIBPATH
12532
12533  # AIX 3 has no versioning support, so we append a major version to the name.
12534  soname_spec='${libname}${release}${shared_ext}$major'
12535  ;;
12536
12537aix[4-9]*)
12538  version_type=linux # correct to gnu/linux during the next big refactor
12539  need_lib_prefix=no
12540  need_version=no
12541  hardcode_into_libs=yes
12542  if test "$host_cpu" = ia64; then
12543    # AIX 5 supports IA64
12544    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12545    shlibpath_var=LD_LIBRARY_PATH
12546  else
12547    # With GCC up to 2.95.x, collect2 would create an import file
12548    # for dependence libraries.  The import file would start with
12549    # the line `#! .'.  This would cause the generated library to
12550    # depend on `.', always an invalid library.  This was fixed in
12551    # development snapshots of GCC prior to 3.0.
12552    case $host_os in
12553      aix4 | aix4.[01] | aix4.[01].*)
12554      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12555	   echo ' yes '
12556	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12557	:
12558      else
12559	can_build_shared=no
12560      fi
12561      ;;
12562    esac
12563    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12564    # soname into executable. Probably we can add versioning support to
12565    # collect2, so additional links can be useful in future.
12566    if test "$aix_use_runtimelinking" = yes; then
12567      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12568      # instead of lib<name>.a to let people know that these are not
12569      # typical AIX shared libraries.
12570      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571    else
12572      # We preserve .a as extension for shared libraries through AIX4.2
12573      # and later when we are not doing run time linking.
12574      library_names_spec='${libname}${release}.a $libname.a'
12575      soname_spec='${libname}${release}${shared_ext}$major'
12576    fi
12577    shlibpath_var=LIBPATH
12578  fi
12579  ;;
12580
12581amigaos*)
12582  case $host_cpu in
12583  powerpc)
12584    # Since July 2007 AmigaOS4 officially supports .so libraries.
12585    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587    ;;
12588  m68k)
12589    library_names_spec='$libname.ixlibrary $libname.a'
12590    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12591    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12592    ;;
12593  esac
12594  ;;
12595
12596beos*)
12597  library_names_spec='${libname}${shared_ext}'
12598  dynamic_linker="$host_os ld.so"
12599  shlibpath_var=LIBRARY_PATH
12600  ;;
12601
12602bsdi[45]*)
12603  version_type=linux # correct to gnu/linux during the next big refactor
12604  need_version=no
12605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606  soname_spec='${libname}${release}${shared_ext}$major'
12607  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12608  shlibpath_var=LD_LIBRARY_PATH
12609  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12610  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12611  # the default ld.so.conf also contains /usr/contrib/lib and
12612  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12613  # libtool to hard-code these into programs
12614  ;;
12615
12616cygwin* | mingw* | pw32* | cegcc*)
12617  version_type=windows
12618  shrext_cmds=".dll"
12619  need_version=no
12620  need_lib_prefix=no
12621
12622  case $GCC,$cc_basename in
12623  yes,*)
12624    # gcc
12625    library_names_spec='$libname.dll.a'
12626    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12627    postinstall_cmds='base_file=`basename \${file}`~
12628      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12629      dldir=$destdir/`dirname \$dlpath`~
12630      test -d \$dldir || mkdir -p \$dldir~
12631      $install_prog $dir/$dlname \$dldir/$dlname~
12632      chmod a+x \$dldir/$dlname~
12633      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12634        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12635      fi'
12636    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12637      dlpath=$dir/\$dldll~
12638       $RM \$dlpath'
12639    shlibpath_overrides_runpath=yes
12640
12641    case $host_os in
12642    cygwin*)
12643      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12644      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12645
12646      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12647      ;;
12648    mingw* | cegcc*)
12649      # MinGW DLLs use traditional 'lib' prefix
12650      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12651      ;;
12652    pw32*)
12653      # pw32 DLLs use 'pw' prefix rather than 'lib'
12654      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12655      ;;
12656    esac
12657    dynamic_linker='Win32 ld.exe'
12658    ;;
12659
12660  *,cl*)
12661    # Native MSVC
12662    libname_spec='$name'
12663    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12664    library_names_spec='${libname}.dll.lib'
12665
12666    case $build_os in
12667    mingw*)
12668      sys_lib_search_path_spec=
12669      lt_save_ifs=$IFS
12670      IFS=';'
12671      for lt_path in $LIB
12672      do
12673        IFS=$lt_save_ifs
12674        # Let DOS variable expansion print the short 8.3 style file name.
12675        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12676        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12677      done
12678      IFS=$lt_save_ifs
12679      # Convert to MSYS style.
12680      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12681      ;;
12682    cygwin*)
12683      # Convert to unix form, then to dos form, then back to unix form
12684      # but this time dos style (no spaces!) so that the unix form looks
12685      # like /cygdrive/c/PROGRA~1:/cygdr...
12686      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12687      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12688      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12689      ;;
12690    *)
12691      sys_lib_search_path_spec="$LIB"
12692      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12693        # It is most probably a Windows format PATH.
12694        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12695      else
12696        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12697      fi
12698      # FIXME: find the short name or the path components, as spaces are
12699      # common. (e.g. "Program Files" -> "PROGRA~1")
12700      ;;
12701    esac
12702
12703    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12704    postinstall_cmds='base_file=`basename \${file}`~
12705      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12706      dldir=$destdir/`dirname \$dlpath`~
12707      test -d \$dldir || mkdir -p \$dldir~
12708      $install_prog $dir/$dlname \$dldir/$dlname'
12709    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12710      dlpath=$dir/\$dldll~
12711       $RM \$dlpath'
12712    shlibpath_overrides_runpath=yes
12713    dynamic_linker='Win32 link.exe'
12714    ;;
12715
12716  *)
12717    # Assume MSVC wrapper
12718    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12719    dynamic_linker='Win32 ld.exe'
12720    ;;
12721  esac
12722  # FIXME: first we should search . and the directory the executable is in
12723  shlibpath_var=PATH
12724  ;;
12725
12726darwin* | rhapsody*)
12727  dynamic_linker="$host_os dyld"
12728  version_type=darwin
12729  need_lib_prefix=no
12730  need_version=no
12731  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12732  soname_spec='${libname}${release}${major}$shared_ext'
12733  shlibpath_overrides_runpath=yes
12734  shlibpath_var=DYLD_LIBRARY_PATH
12735  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12736
12737  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12738  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12739  ;;
12740
12741dgux*)
12742  version_type=linux # correct to gnu/linux during the next big refactor
12743  need_lib_prefix=no
12744  need_version=no
12745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12746  soname_spec='${libname}${release}${shared_ext}$major'
12747  shlibpath_var=LD_LIBRARY_PATH
12748  ;;
12749
12750freebsd* | dragonfly*)
12751  # DragonFly does not have aout.  When/if they implement a new
12752  # versioning mechanism, adjust this.
12753  if test -x /usr/bin/objformat; then
12754    objformat=`/usr/bin/objformat`
12755  else
12756    case $host_os in
12757    freebsd[23].*) objformat=aout ;;
12758    *) objformat=elf ;;
12759    esac
12760  fi
12761  version_type=freebsd-$objformat
12762  case $version_type in
12763    freebsd-elf*)
12764      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12765      need_version=no
12766      need_lib_prefix=no
12767      ;;
12768    freebsd-*)
12769      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12770      need_version=yes
12771      ;;
12772  esac
12773  shlibpath_var=LD_LIBRARY_PATH
12774  case $host_os in
12775  freebsd2.*)
12776    shlibpath_overrides_runpath=yes
12777    ;;
12778  freebsd3.[01]* | freebsdelf3.[01]*)
12779    shlibpath_overrides_runpath=yes
12780    hardcode_into_libs=yes
12781    ;;
12782  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12783  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12784    shlibpath_overrides_runpath=no
12785    hardcode_into_libs=yes
12786    ;;
12787  *) # from 4.6 on, and DragonFly
12788    shlibpath_overrides_runpath=yes
12789    hardcode_into_libs=yes
12790    ;;
12791  esac
12792  ;;
12793
12794gnu*)
12795  version_type=linux # correct to gnu/linux during the next big refactor
12796  need_lib_prefix=no
12797  need_version=no
12798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12799  soname_spec='${libname}${release}${shared_ext}$major'
12800  shlibpath_var=LD_LIBRARY_PATH
12801  shlibpath_overrides_runpath=no
12802  hardcode_into_libs=yes
12803  ;;
12804
12805haiku*)
12806  version_type=linux # correct to gnu/linux during the next big refactor
12807  need_lib_prefix=no
12808  need_version=no
12809  dynamic_linker="$host_os runtime_loader"
12810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12811  soname_spec='${libname}${release}${shared_ext}$major'
12812  shlibpath_var=LIBRARY_PATH
12813  shlibpath_overrides_runpath=yes
12814  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12815  hardcode_into_libs=yes
12816  ;;
12817
12818hpux9* | hpux10* | hpux11*)
12819  # Give a soname corresponding to the major version so that dld.sl refuses to
12820  # link against other versions.
12821  version_type=sunos
12822  need_lib_prefix=no
12823  need_version=no
12824  case $host_cpu in
12825  ia64*)
12826    shrext_cmds='.so'
12827    hardcode_into_libs=yes
12828    dynamic_linker="$host_os dld.so"
12829    shlibpath_var=LD_LIBRARY_PATH
12830    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12831    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832    soname_spec='${libname}${release}${shared_ext}$major'
12833    if test "X$HPUX_IA64_MODE" = X32; then
12834      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12835    else
12836      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12837    fi
12838    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12839    ;;
12840  hppa*64*)
12841    shrext_cmds='.sl'
12842    hardcode_into_libs=yes
12843    dynamic_linker="$host_os dld.sl"
12844    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12845    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847    soname_spec='${libname}${release}${shared_ext}$major'
12848    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12849    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12850    ;;
12851  *)
12852    shrext_cmds='.sl'
12853    dynamic_linker="$host_os dld.sl"
12854    shlibpath_var=SHLIB_PATH
12855    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12856    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12857    soname_spec='${libname}${release}${shared_ext}$major'
12858    ;;
12859  esac
12860  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12861  postinstall_cmds='chmod 555 $lib'
12862  # or fails outright, so override atomically:
12863  install_override_mode=555
12864  ;;
12865
12866interix[3-9]*)
12867  version_type=linux # correct to gnu/linux during the next big refactor
12868  need_lib_prefix=no
12869  need_version=no
12870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12871  soname_spec='${libname}${release}${shared_ext}$major'
12872  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12873  shlibpath_var=LD_LIBRARY_PATH
12874  shlibpath_overrides_runpath=no
12875  hardcode_into_libs=yes
12876  ;;
12877
12878irix5* | irix6* | nonstopux*)
12879  case $host_os in
12880    nonstopux*) version_type=nonstopux ;;
12881    *)
12882	if test "$lt_cv_prog_gnu_ld" = yes; then
12883		version_type=linux # correct to gnu/linux during the next big refactor
12884	else
12885		version_type=irix
12886	fi ;;
12887  esac
12888  need_lib_prefix=no
12889  need_version=no
12890  soname_spec='${libname}${release}${shared_ext}$major'
12891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12892  case $host_os in
12893  irix5* | nonstopux*)
12894    libsuff= shlibsuff=
12895    ;;
12896  *)
12897    case $LD in # libtool.m4 will add one of these switches to LD
12898    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12899      libsuff= shlibsuff= libmagic=32-bit;;
12900    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12901      libsuff=32 shlibsuff=N32 libmagic=N32;;
12902    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12903      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12904    *) libsuff= shlibsuff= libmagic=never-match;;
12905    esac
12906    ;;
12907  esac
12908  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12909  shlibpath_overrides_runpath=no
12910  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12911  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12912  hardcode_into_libs=yes
12913  ;;
12914
12915# No shared lib support for Linux oldld, aout, or coff.
12916linux*oldld* | linux*aout* | linux*coff*)
12917  dynamic_linker=no
12918  ;;
12919
12920linux*android*)
12921  version_type=none # Android doesn't support versioned libraries.
12922  need_lib_prefix=no
12923  need_version=no
12924  library_names_spec='$libname$release$shared_ext'
12925  soname_spec='$libname$release$shared_ext'
12926  finish_cmds=
12927  shlibpath_var=LD_LIBRARY_PATH
12928  shlibpath_overrides_runpath=yes
12929
12930  # This implies no fast_install, which is unacceptable.
12931  # Some rework will be needed to allow for fast_install
12932  # before this can be enabled.
12933  hardcode_into_libs=yes
12934
12935  dynamic_linker='Android linker'
12936  # Don't embed -rpath directories since the linker doesn't support them.
12937  hardcode_libdir_flag_spec='-L$libdir'
12938  ;;
12939
12940# This must be glibc/ELF.
12941linux* | k*bsd*-gnu | kopensolaris*-gnu)
12942  version_type=linux # correct to gnu/linux during the next big refactor
12943  need_lib_prefix=no
12944  need_version=no
12945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946  soname_spec='${libname}${release}${shared_ext}$major'
12947  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12948  shlibpath_var=LD_LIBRARY_PATH
12949  shlibpath_overrides_runpath=no
12950
12951  # Some binutils ld are patched to set DT_RUNPATH
12952  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12953  $as_echo_n "(cached) " >&6
12954else
12955  lt_cv_shlibpath_overrides_runpath=no
12956    save_LDFLAGS=$LDFLAGS
12957    save_libdir=$libdir
12958    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12959	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961/* end confdefs.h.  */
12962
12963int
12964main ()
12965{
12966
12967  ;
12968  return 0;
12969}
12970_ACEOF
12971if ac_fn_c_try_link "$LINENO"; then :
12972  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12973  lt_cv_shlibpath_overrides_runpath=yes
12974fi
12975fi
12976rm -f core conftest.err conftest.$ac_objext \
12977    conftest$ac_exeext conftest.$ac_ext
12978    LDFLAGS=$save_LDFLAGS
12979    libdir=$save_libdir
12980
12981fi
12982
12983  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12984
12985  # This implies no fast_install, which is unacceptable.
12986  # Some rework will be needed to allow for fast_install
12987  # before this can be enabled.
12988  hardcode_into_libs=yes
12989
12990  # Append ld.so.conf contents to the search path
12991  if test -f /etc/ld.so.conf; then
12992    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' ' '`
12993    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12994  fi
12995
12996  # We used to test for /lib/ld.so.1 and disable shared libraries on
12997  # powerpc, because MkLinux only supported shared libraries with the
12998  # GNU dynamic linker.  Since this was broken with cross compilers,
12999  # most powerpc-linux boxes support dynamic linking these days and
13000  # people can always --disable-shared, the test was removed, and we
13001  # assume the GNU/Linux dynamic linker is in use.
13002  dynamic_linker='GNU/Linux ld.so'
13003  ;;
13004
13005netbsdelf*-gnu)
13006  version_type=linux
13007  need_lib_prefix=no
13008  need_version=no
13009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13010  soname_spec='${libname}${release}${shared_ext}$major'
13011  shlibpath_var=LD_LIBRARY_PATH
13012  shlibpath_overrides_runpath=no
13013  hardcode_into_libs=yes
13014  dynamic_linker='NetBSD ld.elf_so'
13015  ;;
13016
13017netbsd*)
13018  version_type=sunos
13019  need_lib_prefix=no
13020  need_version=no
13021  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13022    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13023    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13024    dynamic_linker='NetBSD (a.out) ld.so'
13025  else
13026    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13027    soname_spec='${libname}${release}${shared_ext}$major'
13028    dynamic_linker='NetBSD ld.elf_so'
13029  fi
13030  shlibpath_var=LD_LIBRARY_PATH
13031  shlibpath_overrides_runpath=yes
13032  hardcode_into_libs=yes
13033  ;;
13034
13035newsos6)
13036  version_type=linux # correct to gnu/linux during the next big refactor
13037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038  shlibpath_var=LD_LIBRARY_PATH
13039  shlibpath_overrides_runpath=yes
13040  ;;
13041
13042*nto* | *qnx*)
13043  version_type=qnx
13044  need_lib_prefix=no
13045  need_version=no
13046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047  soname_spec='${libname}${release}${shared_ext}$major'
13048  shlibpath_var=LD_LIBRARY_PATH
13049  shlibpath_overrides_runpath=no
13050  hardcode_into_libs=yes
13051  dynamic_linker='ldqnx.so'
13052  ;;
13053
13054openbsd*)
13055  version_type=sunos
13056  sys_lib_dlsearch_path_spec="/usr/lib"
13057  need_lib_prefix=no
13058  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13059  case $host_os in
13060    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13061    *)				need_version=no  ;;
13062  esac
13063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13064  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13065  shlibpath_var=LD_LIBRARY_PATH
13066  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13067    case $host_os in
13068      openbsd2.[89] | openbsd2.[89].*)
13069	shlibpath_overrides_runpath=no
13070	;;
13071      *)
13072	shlibpath_overrides_runpath=yes
13073	;;
13074      esac
13075  else
13076    shlibpath_overrides_runpath=yes
13077  fi
13078  ;;
13079
13080os2*)
13081  libname_spec='$name'
13082  shrext_cmds=".dll"
13083  need_lib_prefix=no
13084  library_names_spec='$libname${shared_ext} $libname.a'
13085  dynamic_linker='OS/2 ld.exe'
13086  shlibpath_var=LIBPATH
13087  ;;
13088
13089osf3* | osf4* | osf5*)
13090  version_type=osf
13091  need_lib_prefix=no
13092  need_version=no
13093  soname_spec='${libname}${release}${shared_ext}$major'
13094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095  shlibpath_var=LD_LIBRARY_PATH
13096  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13097  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13098  ;;
13099
13100rdos*)
13101  dynamic_linker=no
13102  ;;
13103
13104solaris*)
13105  version_type=linux # correct to gnu/linux during the next big refactor
13106  need_lib_prefix=no
13107  need_version=no
13108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109  soname_spec='${libname}${release}${shared_ext}$major'
13110  shlibpath_var=LD_LIBRARY_PATH
13111  shlibpath_overrides_runpath=yes
13112  hardcode_into_libs=yes
13113  # ldd complains unless libraries are executable
13114  postinstall_cmds='chmod +x $lib'
13115  ;;
13116
13117sunos4*)
13118  version_type=sunos
13119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13120  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13121  shlibpath_var=LD_LIBRARY_PATH
13122  shlibpath_overrides_runpath=yes
13123  if test "$with_gnu_ld" = yes; then
13124    need_lib_prefix=no
13125  fi
13126  need_version=yes
13127  ;;
13128
13129sysv4 | sysv4.3*)
13130  version_type=linux # correct to gnu/linux during the next big refactor
13131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132  soname_spec='${libname}${release}${shared_ext}$major'
13133  shlibpath_var=LD_LIBRARY_PATH
13134  case $host_vendor in
13135    sni)
13136      shlibpath_overrides_runpath=no
13137      need_lib_prefix=no
13138      runpath_var=LD_RUN_PATH
13139      ;;
13140    siemens)
13141      need_lib_prefix=no
13142      ;;
13143    motorola)
13144      need_lib_prefix=no
13145      need_version=no
13146      shlibpath_overrides_runpath=no
13147      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13148      ;;
13149  esac
13150  ;;
13151
13152sysv4*MP*)
13153  if test -d /usr/nec ;then
13154    version_type=linux # correct to gnu/linux during the next big refactor
13155    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13156    soname_spec='$libname${shared_ext}.$major'
13157    shlibpath_var=LD_LIBRARY_PATH
13158  fi
13159  ;;
13160
13161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13162  version_type=freebsd-elf
13163  need_lib_prefix=no
13164  need_version=no
13165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13166  soname_spec='${libname}${release}${shared_ext}$major'
13167  shlibpath_var=LD_LIBRARY_PATH
13168  shlibpath_overrides_runpath=yes
13169  hardcode_into_libs=yes
13170  if test "$with_gnu_ld" = yes; then
13171    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13172  else
13173    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13174    case $host_os in
13175      sco3.2v5*)
13176        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13177	;;
13178    esac
13179  fi
13180  sys_lib_dlsearch_path_spec='/usr/lib'
13181  ;;
13182
13183tpf*)
13184  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13185  version_type=linux # correct to gnu/linux during the next big refactor
13186  need_lib_prefix=no
13187  need_version=no
13188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13189  shlibpath_var=LD_LIBRARY_PATH
13190  shlibpath_overrides_runpath=no
13191  hardcode_into_libs=yes
13192  ;;
13193
13194uts4*)
13195  version_type=linux # correct to gnu/linux during the next big refactor
13196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197  soname_spec='${libname}${release}${shared_ext}$major'
13198  shlibpath_var=LD_LIBRARY_PATH
13199  ;;
13200
13201*)
13202  dynamic_linker=no
13203  ;;
13204esac
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13206$as_echo "$dynamic_linker" >&6; }
13207test "$dynamic_linker" = no && can_build_shared=no
13208
13209variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13210if test "$GCC" = yes; then
13211  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13212fi
13213
13214if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13215  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13216fi
13217if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13218  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13219fi
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13313$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13314hardcode_action=
13315if test -n "$hardcode_libdir_flag_spec" ||
13316   test -n "$runpath_var" ||
13317   test "X$hardcode_automatic" = "Xyes" ; then
13318
13319  # We can hardcode non-existent directories.
13320  if test "$hardcode_direct" != no &&
13321     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13322     # have to relink, otherwise we might link with an installed library
13323     # when we should be linking with a yet-to-be-installed one
13324     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13325     test "$hardcode_minus_L" != no; then
13326    # Linking always hardcodes the temporary library directory.
13327    hardcode_action=relink
13328  else
13329    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13330    hardcode_action=immediate
13331  fi
13332else
13333  # We cannot hardcode anything, or else we can only hardcode existing
13334  # directories.
13335  hardcode_action=unsupported
13336fi
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13338$as_echo "$hardcode_action" >&6; }
13339
13340if test "$hardcode_action" = relink ||
13341   test "$inherit_rpath" = yes; then
13342  # Fast installation is not supported
13343  enable_fast_install=no
13344elif test "$shlibpath_overrides_runpath" = yes ||
13345     test "$enable_shared" = no; then
13346  # Fast installation is not necessary
13347  enable_fast_install=needless
13348fi
13349
13350
13351
13352
13353
13354
13355  if test "x$enable_dlopen" != xyes; then
13356  enable_dlopen=unknown
13357  enable_dlopen_self=unknown
13358  enable_dlopen_self_static=unknown
13359else
13360  lt_cv_dlopen=no
13361  lt_cv_dlopen_libs=
13362
13363  case $host_os in
13364  beos*)
13365    lt_cv_dlopen="load_add_on"
13366    lt_cv_dlopen_libs=
13367    lt_cv_dlopen_self=yes
13368    ;;
13369
13370  mingw* | pw32* | cegcc*)
13371    lt_cv_dlopen="LoadLibrary"
13372    lt_cv_dlopen_libs=
13373    ;;
13374
13375  cygwin*)
13376    lt_cv_dlopen="dlopen"
13377    lt_cv_dlopen_libs=
13378    ;;
13379
13380  darwin*)
13381  # if libdl is installed we need to link against it
13382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13383$as_echo_n "checking for dlopen in -ldl... " >&6; }
13384if ${ac_cv_lib_dl_dlopen+:} false; then :
13385  $as_echo_n "(cached) " >&6
13386else
13387  ac_check_lib_save_LIBS=$LIBS
13388LIBS="-ldl  $LIBS"
13389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390/* end confdefs.h.  */
13391
13392/* Override any GCC internal prototype to avoid an error.
13393   Use char because int might match the return type of a GCC
13394   builtin and then its argument prototype would still apply.  */
13395#ifdef __cplusplus
13396extern "C"
13397#endif
13398char dlopen ();
13399int
13400main ()
13401{
13402return dlopen ();
13403  ;
13404  return 0;
13405}
13406_ACEOF
13407if ac_fn_c_try_link "$LINENO"; then :
13408  ac_cv_lib_dl_dlopen=yes
13409else
13410  ac_cv_lib_dl_dlopen=no
13411fi
13412rm -f core conftest.err conftest.$ac_objext \
13413    conftest$ac_exeext conftest.$ac_ext
13414LIBS=$ac_check_lib_save_LIBS
13415fi
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13417$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13418if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13419  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13420else
13421
13422    lt_cv_dlopen="dyld"
13423    lt_cv_dlopen_libs=
13424    lt_cv_dlopen_self=yes
13425
13426fi
13427
13428    ;;
13429
13430  *)
13431    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13432if test "x$ac_cv_func_shl_load" = xyes; then :
13433  lt_cv_dlopen="shl_load"
13434else
13435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13436$as_echo_n "checking for shl_load in -ldld... " >&6; }
13437if ${ac_cv_lib_dld_shl_load+:} false; then :
13438  $as_echo_n "(cached) " >&6
13439else
13440  ac_check_lib_save_LIBS=$LIBS
13441LIBS="-ldld  $LIBS"
13442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443/* end confdefs.h.  */
13444
13445/* Override any GCC internal prototype to avoid an error.
13446   Use char because int might match the return type of a GCC
13447   builtin and then its argument prototype would still apply.  */
13448#ifdef __cplusplus
13449extern "C"
13450#endif
13451char shl_load ();
13452int
13453main ()
13454{
13455return shl_load ();
13456  ;
13457  return 0;
13458}
13459_ACEOF
13460if ac_fn_c_try_link "$LINENO"; then :
13461  ac_cv_lib_dld_shl_load=yes
13462else
13463  ac_cv_lib_dld_shl_load=no
13464fi
13465rm -f core conftest.err conftest.$ac_objext \
13466    conftest$ac_exeext conftest.$ac_ext
13467LIBS=$ac_check_lib_save_LIBS
13468fi
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13470$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13471if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13472  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13473else
13474  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13475if test "x$ac_cv_func_dlopen" = xyes; then :
13476  lt_cv_dlopen="dlopen"
13477else
13478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13479$as_echo_n "checking for dlopen in -ldl... " >&6; }
13480if ${ac_cv_lib_dl_dlopen+:} false; then :
13481  $as_echo_n "(cached) " >&6
13482else
13483  ac_check_lib_save_LIBS=$LIBS
13484LIBS="-ldl  $LIBS"
13485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486/* end confdefs.h.  */
13487
13488/* Override any GCC internal prototype to avoid an error.
13489   Use char because int might match the return type of a GCC
13490   builtin and then its argument prototype would still apply.  */
13491#ifdef __cplusplus
13492extern "C"
13493#endif
13494char dlopen ();
13495int
13496main ()
13497{
13498return dlopen ();
13499  ;
13500  return 0;
13501}
13502_ACEOF
13503if ac_fn_c_try_link "$LINENO"; then :
13504  ac_cv_lib_dl_dlopen=yes
13505else
13506  ac_cv_lib_dl_dlopen=no
13507fi
13508rm -f core conftest.err conftest.$ac_objext \
13509    conftest$ac_exeext conftest.$ac_ext
13510LIBS=$ac_check_lib_save_LIBS
13511fi
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13513$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13514if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13515  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13516else
13517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13518$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13519if ${ac_cv_lib_svld_dlopen+:} false; then :
13520  $as_echo_n "(cached) " >&6
13521else
13522  ac_check_lib_save_LIBS=$LIBS
13523LIBS="-lsvld  $LIBS"
13524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525/* end confdefs.h.  */
13526
13527/* Override any GCC internal prototype to avoid an error.
13528   Use char because int might match the return type of a GCC
13529   builtin and then its argument prototype would still apply.  */
13530#ifdef __cplusplus
13531extern "C"
13532#endif
13533char dlopen ();
13534int
13535main ()
13536{
13537return dlopen ();
13538  ;
13539  return 0;
13540}
13541_ACEOF
13542if ac_fn_c_try_link "$LINENO"; then :
13543  ac_cv_lib_svld_dlopen=yes
13544else
13545  ac_cv_lib_svld_dlopen=no
13546fi
13547rm -f core conftest.err conftest.$ac_objext \
13548    conftest$ac_exeext conftest.$ac_ext
13549LIBS=$ac_check_lib_save_LIBS
13550fi
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13552$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13553if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13554  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13555else
13556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13557$as_echo_n "checking for dld_link in -ldld... " >&6; }
13558if ${ac_cv_lib_dld_dld_link+:} false; then :
13559  $as_echo_n "(cached) " >&6
13560else
13561  ac_check_lib_save_LIBS=$LIBS
13562LIBS="-ldld  $LIBS"
13563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564/* end confdefs.h.  */
13565
13566/* Override any GCC internal prototype to avoid an error.
13567   Use char because int might match the return type of a GCC
13568   builtin and then its argument prototype would still apply.  */
13569#ifdef __cplusplus
13570extern "C"
13571#endif
13572char dld_link ();
13573int
13574main ()
13575{
13576return dld_link ();
13577  ;
13578  return 0;
13579}
13580_ACEOF
13581if ac_fn_c_try_link "$LINENO"; then :
13582  ac_cv_lib_dld_dld_link=yes
13583else
13584  ac_cv_lib_dld_dld_link=no
13585fi
13586rm -f core conftest.err conftest.$ac_objext \
13587    conftest$ac_exeext conftest.$ac_ext
13588LIBS=$ac_check_lib_save_LIBS
13589fi
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13591$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13592if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13593  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13594fi
13595
13596
13597fi
13598
13599
13600fi
13601
13602
13603fi
13604
13605
13606fi
13607
13608
13609fi
13610
13611    ;;
13612  esac
13613
13614  if test "x$lt_cv_dlopen" != xno; then
13615    enable_dlopen=yes
13616  else
13617    enable_dlopen=no
13618  fi
13619
13620  case $lt_cv_dlopen in
13621  dlopen)
13622    save_CPPFLAGS="$CPPFLAGS"
13623    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13624
13625    save_LDFLAGS="$LDFLAGS"
13626    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13627
13628    save_LIBS="$LIBS"
13629    LIBS="$lt_cv_dlopen_libs $LIBS"
13630
13631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13632$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13633if ${lt_cv_dlopen_self+:} false; then :
13634  $as_echo_n "(cached) " >&6
13635else
13636  	  if test "$cross_compiling" = yes; then :
13637  lt_cv_dlopen_self=cross
13638else
13639  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13640  lt_status=$lt_dlunknown
13641  cat > conftest.$ac_ext <<_LT_EOF
13642#line $LINENO "configure"
13643#include "confdefs.h"
13644
13645#if HAVE_DLFCN_H
13646#include <dlfcn.h>
13647#endif
13648
13649#include <stdio.h>
13650
13651#ifdef RTLD_GLOBAL
13652#  define LT_DLGLOBAL		RTLD_GLOBAL
13653#else
13654#  ifdef DL_GLOBAL
13655#    define LT_DLGLOBAL		DL_GLOBAL
13656#  else
13657#    define LT_DLGLOBAL		0
13658#  endif
13659#endif
13660
13661/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13662   find out it does not work in some platform. */
13663#ifndef LT_DLLAZY_OR_NOW
13664#  ifdef RTLD_LAZY
13665#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13666#  else
13667#    ifdef DL_LAZY
13668#      define LT_DLLAZY_OR_NOW		DL_LAZY
13669#    else
13670#      ifdef RTLD_NOW
13671#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13672#      else
13673#        ifdef DL_NOW
13674#          define LT_DLLAZY_OR_NOW	DL_NOW
13675#        else
13676#          define LT_DLLAZY_OR_NOW	0
13677#        endif
13678#      endif
13679#    endif
13680#  endif
13681#endif
13682
13683/* When -fvisbility=hidden is used, assume the code has been annotated
13684   correspondingly for the symbols needed.  */
13685#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13686int fnord () __attribute__((visibility("default")));
13687#endif
13688
13689int fnord () { return 42; }
13690int main ()
13691{
13692  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13693  int status = $lt_dlunknown;
13694
13695  if (self)
13696    {
13697      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13698      else
13699        {
13700	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13701          else puts (dlerror ());
13702	}
13703      /* dlclose (self); */
13704    }
13705  else
13706    puts (dlerror ());
13707
13708  return status;
13709}
13710_LT_EOF
13711  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13712  (eval $ac_link) 2>&5
13713  ac_status=$?
13714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13715  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13716    (./conftest; exit; ) >&5 2>/dev/null
13717    lt_status=$?
13718    case x$lt_status in
13719      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13720      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13721      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13722    esac
13723  else :
13724    # compilation failed
13725    lt_cv_dlopen_self=no
13726  fi
13727fi
13728rm -fr conftest*
13729
13730
13731fi
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13733$as_echo "$lt_cv_dlopen_self" >&6; }
13734
13735    if test "x$lt_cv_dlopen_self" = xyes; then
13736      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13737      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13738$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13739if ${lt_cv_dlopen_self_static+:} false; then :
13740  $as_echo_n "(cached) " >&6
13741else
13742  	  if test "$cross_compiling" = yes; then :
13743  lt_cv_dlopen_self_static=cross
13744else
13745  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13746  lt_status=$lt_dlunknown
13747  cat > conftest.$ac_ext <<_LT_EOF
13748#line $LINENO "configure"
13749#include "confdefs.h"
13750
13751#if HAVE_DLFCN_H
13752#include <dlfcn.h>
13753#endif
13754
13755#include <stdio.h>
13756
13757#ifdef RTLD_GLOBAL
13758#  define LT_DLGLOBAL		RTLD_GLOBAL
13759#else
13760#  ifdef DL_GLOBAL
13761#    define LT_DLGLOBAL		DL_GLOBAL
13762#  else
13763#    define LT_DLGLOBAL		0
13764#  endif
13765#endif
13766
13767/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13768   find out it does not work in some platform. */
13769#ifndef LT_DLLAZY_OR_NOW
13770#  ifdef RTLD_LAZY
13771#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13772#  else
13773#    ifdef DL_LAZY
13774#      define LT_DLLAZY_OR_NOW		DL_LAZY
13775#    else
13776#      ifdef RTLD_NOW
13777#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13778#      else
13779#        ifdef DL_NOW
13780#          define LT_DLLAZY_OR_NOW	DL_NOW
13781#        else
13782#          define LT_DLLAZY_OR_NOW	0
13783#        endif
13784#      endif
13785#    endif
13786#  endif
13787#endif
13788
13789/* When -fvisbility=hidden is used, assume the code has been annotated
13790   correspondingly for the symbols needed.  */
13791#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13792int fnord () __attribute__((visibility("default")));
13793#endif
13794
13795int fnord () { return 42; }
13796int main ()
13797{
13798  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13799  int status = $lt_dlunknown;
13800
13801  if (self)
13802    {
13803      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13804      else
13805        {
13806	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13807          else puts (dlerror ());
13808	}
13809      /* dlclose (self); */
13810    }
13811  else
13812    puts (dlerror ());
13813
13814  return status;
13815}
13816_LT_EOF
13817  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13818  (eval $ac_link) 2>&5
13819  ac_status=$?
13820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13821  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13822    (./conftest; exit; ) >&5 2>/dev/null
13823    lt_status=$?
13824    case x$lt_status in
13825      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13826      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13827      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13828    esac
13829  else :
13830    # compilation failed
13831    lt_cv_dlopen_self_static=no
13832  fi
13833fi
13834rm -fr conftest*
13835
13836
13837fi
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13839$as_echo "$lt_cv_dlopen_self_static" >&6; }
13840    fi
13841
13842    CPPFLAGS="$save_CPPFLAGS"
13843    LDFLAGS="$save_LDFLAGS"
13844    LIBS="$save_LIBS"
13845    ;;
13846  esac
13847
13848  case $lt_cv_dlopen_self in
13849  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13850  *) enable_dlopen_self=unknown ;;
13851  esac
13852
13853  case $lt_cv_dlopen_self_static in
13854  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13855  *) enable_dlopen_self_static=unknown ;;
13856  esac
13857fi
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875striplib=
13876old_striplib=
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13878$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13879if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13880  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13881  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13883$as_echo "yes" >&6; }
13884else
13885# FIXME - insert some real tests, host_os isn't really good enough
13886  case $host_os in
13887  darwin*)
13888    if test -n "$STRIP" ; then
13889      striplib="$STRIP -x"
13890      old_striplib="$STRIP -S"
13891      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13892$as_echo "yes" >&6; }
13893    else
13894      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895$as_echo "no" >&6; }
13896    fi
13897    ;;
13898  *)
13899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900$as_echo "no" >&6; }
13901    ;;
13902  esac
13903fi
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916  # Report which library types will actually be built
13917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13918$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13920$as_echo "$can_build_shared" >&6; }
13921
13922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13923$as_echo_n "checking whether to build shared libraries... " >&6; }
13924  test "$can_build_shared" = "no" && enable_shared=no
13925
13926  # On AIX, shared libraries and static libraries use the same namespace, and
13927  # are all built from PIC.
13928  case $host_os in
13929  aix3*)
13930    test "$enable_shared" = yes && enable_static=no
13931    if test -n "$RANLIB"; then
13932      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13933      postinstall_cmds='$RANLIB $lib'
13934    fi
13935    ;;
13936
13937  aix[4-9]*)
13938    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13939      test "$enable_shared" = yes && enable_static=no
13940    fi
13941    ;;
13942  esac
13943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13944$as_echo "$enable_shared" >&6; }
13945
13946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13947$as_echo_n "checking whether to build static libraries... " >&6; }
13948  # Make sure either enable_shared or enable_static is yes.
13949  test "$enable_shared" = yes || enable_static=yes
13950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13951$as_echo "$enable_static" >&6; }
13952
13953
13954
13955
13956fi
13957ac_ext=c
13958ac_cpp='$CPP $CPPFLAGS'
13959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963CC="$lt_save_CC"
13964
13965      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13966    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13967    (test "X$CXX" != "Xg++"))) ; then
13968  ac_ext=cpp
13969ac_cpp='$CXXCPP $CPPFLAGS'
13970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13974$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13975if test -z "$CXXCPP"; then
13976  if ${ac_cv_prog_CXXCPP+:} false; then :
13977  $as_echo_n "(cached) " >&6
13978else
13979      # Double quotes because CXXCPP needs to be expanded
13980    for CXXCPP in "$CXX -E" "/lib/cpp"
13981    do
13982      ac_preproc_ok=false
13983for ac_cxx_preproc_warn_flag in '' yes
13984do
13985  # Use a header file that comes with gcc, so configuring glibc
13986  # with a fresh cross-compiler works.
13987  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13988  # <limits.h> exists even on freestanding compilers.
13989  # On the NeXT, cc -E runs the code through the compiler's parser,
13990  # not just through cpp. "Syntax error" is here to catch this case.
13991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992/* end confdefs.h.  */
13993#ifdef __STDC__
13994# include <limits.h>
13995#else
13996# include <assert.h>
13997#endif
13998		     Syntax error
13999_ACEOF
14000if ac_fn_cxx_try_cpp "$LINENO"; then :
14001
14002else
14003  # Broken: fails on valid input.
14004continue
14005fi
14006rm -f conftest.err conftest.i conftest.$ac_ext
14007
14008  # OK, works on sane cases.  Now check whether nonexistent headers
14009  # can be detected and how.
14010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011/* end confdefs.h.  */
14012#include <ac_nonexistent.h>
14013_ACEOF
14014if ac_fn_cxx_try_cpp "$LINENO"; then :
14015  # Broken: success on invalid input.
14016continue
14017else
14018  # Passes both tests.
14019ac_preproc_ok=:
14020break
14021fi
14022rm -f conftest.err conftest.i conftest.$ac_ext
14023
14024done
14025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14026rm -f conftest.i conftest.err conftest.$ac_ext
14027if $ac_preproc_ok; then :
14028  break
14029fi
14030
14031    done
14032    ac_cv_prog_CXXCPP=$CXXCPP
14033
14034fi
14035  CXXCPP=$ac_cv_prog_CXXCPP
14036else
14037  ac_cv_prog_CXXCPP=$CXXCPP
14038fi
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14040$as_echo "$CXXCPP" >&6; }
14041ac_preproc_ok=false
14042for ac_cxx_preproc_warn_flag in '' yes
14043do
14044  # Use a header file that comes with gcc, so configuring glibc
14045  # with a fresh cross-compiler works.
14046  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14047  # <limits.h> exists even on freestanding compilers.
14048  # On the NeXT, cc -E runs the code through the compiler's parser,
14049  # not just through cpp. "Syntax error" is here to catch this case.
14050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051/* end confdefs.h.  */
14052#ifdef __STDC__
14053# include <limits.h>
14054#else
14055# include <assert.h>
14056#endif
14057		     Syntax error
14058_ACEOF
14059if ac_fn_cxx_try_cpp "$LINENO"; then :
14060
14061else
14062  # Broken: fails on valid input.
14063continue
14064fi
14065rm -f conftest.err conftest.i conftest.$ac_ext
14066
14067  # OK, works on sane cases.  Now check whether nonexistent headers
14068  # can be detected and how.
14069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070/* end confdefs.h.  */
14071#include <ac_nonexistent.h>
14072_ACEOF
14073if ac_fn_cxx_try_cpp "$LINENO"; then :
14074  # Broken: success on invalid input.
14075continue
14076else
14077  # Passes both tests.
14078ac_preproc_ok=:
14079break
14080fi
14081rm -f conftest.err conftest.i conftest.$ac_ext
14082
14083done
14084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14085rm -f conftest.i conftest.err conftest.$ac_ext
14086if $ac_preproc_ok; then :
14087
14088else
14089  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14091as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14092See \`config.log' for more details" "$LINENO" 5; }
14093fi
14094
14095ac_ext=c
14096ac_cpp='$CPP $CPPFLAGS'
14097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100
14101else
14102  _lt_caught_CXX_error=yes
14103fi
14104
14105ac_ext=cpp
14106ac_cpp='$CXXCPP $CPPFLAGS'
14107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14110
14111archive_cmds_need_lc_CXX=no
14112allow_undefined_flag_CXX=
14113always_export_symbols_CXX=no
14114archive_expsym_cmds_CXX=
14115compiler_needs_object_CXX=no
14116export_dynamic_flag_spec_CXX=
14117hardcode_direct_CXX=no
14118hardcode_direct_absolute_CXX=no
14119hardcode_libdir_flag_spec_CXX=
14120hardcode_libdir_separator_CXX=
14121hardcode_minus_L_CXX=no
14122hardcode_shlibpath_var_CXX=unsupported
14123hardcode_automatic_CXX=no
14124inherit_rpath_CXX=no
14125module_cmds_CXX=
14126module_expsym_cmds_CXX=
14127link_all_deplibs_CXX=unknown
14128old_archive_cmds_CXX=$old_archive_cmds
14129reload_flag_CXX=$reload_flag
14130reload_cmds_CXX=$reload_cmds
14131no_undefined_flag_CXX=
14132whole_archive_flag_spec_CXX=
14133enable_shared_with_static_runtimes_CXX=no
14134
14135# Source file extension for C++ test sources.
14136ac_ext=cpp
14137
14138# Object file extension for compiled C++ test sources.
14139objext=o
14140objext_CXX=$objext
14141
14142# No sense in running all these tests if we already determined that
14143# the CXX compiler isn't working.  Some variables (like enable_shared)
14144# are currently assumed to apply to all compilers on this platform,
14145# and will be corrupted by setting them based on a non-working compiler.
14146if test "$_lt_caught_CXX_error" != yes; then
14147  # Code to be used in simple compile tests
14148  lt_simple_compile_test_code="int some_variable = 0;"
14149
14150  # Code to be used in simple link tests
14151  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14152
14153  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14154
14155
14156
14157
14158
14159
14160# If no C compiler was specified, use CC.
14161LTCC=${LTCC-"$CC"}
14162
14163# If no C compiler flags were specified, use CFLAGS.
14164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14165
14166# Allow CC to be a program name with arguments.
14167compiler=$CC
14168
14169
14170  # save warnings/boilerplate of simple test code
14171  ac_outfile=conftest.$ac_objext
14172echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14173eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14174_lt_compiler_boilerplate=`cat conftest.err`
14175$RM conftest*
14176
14177  ac_outfile=conftest.$ac_objext
14178echo "$lt_simple_link_test_code" >conftest.$ac_ext
14179eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14180_lt_linker_boilerplate=`cat conftest.err`
14181$RM -r conftest*
14182
14183
14184  # Allow CC to be a program name with arguments.
14185  lt_save_CC=$CC
14186  lt_save_CFLAGS=$CFLAGS
14187  lt_save_LD=$LD
14188  lt_save_GCC=$GCC
14189  GCC=$GXX
14190  lt_save_with_gnu_ld=$with_gnu_ld
14191  lt_save_path_LD=$lt_cv_path_LD
14192  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14193    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14194  else
14195    $as_unset lt_cv_prog_gnu_ld
14196  fi
14197  if test -n "${lt_cv_path_LDCXX+set}"; then
14198    lt_cv_path_LD=$lt_cv_path_LDCXX
14199  else
14200    $as_unset lt_cv_path_LD
14201  fi
14202  test -z "${LDCXX+set}" || LD=$LDCXX
14203  CC=${CXX-"c++"}
14204  CFLAGS=$CXXFLAGS
14205  compiler=$CC
14206  compiler_CXX=$CC
14207  for cc_temp in $compiler""; do
14208  case $cc_temp in
14209    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14210    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14211    \-*) ;;
14212    *) break;;
14213  esac
14214done
14215cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14216
14217
14218  if test -n "$compiler"; then
14219    # We don't want -fno-exception when compiling C++ code, so set the
14220    # no_builtin_flag separately
14221    if test "$GXX" = yes; then
14222      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14223    else
14224      lt_prog_compiler_no_builtin_flag_CXX=
14225    fi
14226
14227    if test "$GXX" = yes; then
14228      # Set up default GNU C++ configuration
14229
14230
14231
14232# Check whether --with-gnu-ld was given.
14233if test "${with_gnu_ld+set}" = set; then :
14234  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14235else
14236  with_gnu_ld=no
14237fi
14238
14239ac_prog=ld
14240if test "$GCC" = yes; then
14241  # Check if gcc -print-prog-name=ld gives a path.
14242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14243$as_echo_n "checking for ld used by $CC... " >&6; }
14244  case $host in
14245  *-*-mingw*)
14246    # gcc leaves a trailing carriage return which upsets mingw
14247    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14248  *)
14249    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14250  esac
14251  case $ac_prog in
14252    # Accept absolute paths.
14253    [\\/]* | ?:[\\/]*)
14254      re_direlt='/[^/][^/]*/\.\./'
14255      # Canonicalize the pathname of ld
14256      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14257      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14258	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14259      done
14260      test -z "$LD" && LD="$ac_prog"
14261      ;;
14262  "")
14263    # If it fails, then pretend we aren't using GCC.
14264    ac_prog=ld
14265    ;;
14266  *)
14267    # If it is relative, then search for the first ld in PATH.
14268    with_gnu_ld=unknown
14269    ;;
14270  esac
14271elif test "$with_gnu_ld" = yes; then
14272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14273$as_echo_n "checking for GNU ld... " >&6; }
14274else
14275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14276$as_echo_n "checking for non-GNU ld... " >&6; }
14277fi
14278if ${lt_cv_path_LD+:} false; then :
14279  $as_echo_n "(cached) " >&6
14280else
14281  if test -z "$LD"; then
14282  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14283  for ac_dir in $PATH; do
14284    IFS="$lt_save_ifs"
14285    test -z "$ac_dir" && ac_dir=.
14286    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14287      lt_cv_path_LD="$ac_dir/$ac_prog"
14288      # Check to see if the program is GNU ld.  I'd rather use --version,
14289      # but apparently some variants of GNU ld only accept -v.
14290      # Break only if it was the GNU/non-GNU ld that we prefer.
14291      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14292      *GNU* | *'with BFD'*)
14293	test "$with_gnu_ld" != no && break
14294	;;
14295      *)
14296	test "$with_gnu_ld" != yes && break
14297	;;
14298      esac
14299    fi
14300  done
14301  IFS="$lt_save_ifs"
14302else
14303  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14304fi
14305fi
14306
14307LD="$lt_cv_path_LD"
14308if test -n "$LD"; then
14309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14310$as_echo "$LD" >&6; }
14311else
14312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313$as_echo "no" >&6; }
14314fi
14315test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14317$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14318if ${lt_cv_prog_gnu_ld+:} false; then :
14319  $as_echo_n "(cached) " >&6
14320else
14321  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14322case `$LD -v 2>&1 </dev/null` in
14323*GNU* | *'with BFD'*)
14324  lt_cv_prog_gnu_ld=yes
14325  ;;
14326*)
14327  lt_cv_prog_gnu_ld=no
14328  ;;
14329esac
14330fi
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14332$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14333with_gnu_ld=$lt_cv_prog_gnu_ld
14334
14335
14336
14337
14338
14339
14340
14341      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14342      # archiving commands below assume that GNU ld is being used.
14343      if test "$with_gnu_ld" = yes; then
14344        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14345        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'
14346
14347        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14348        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14349
14350        # If archive_cmds runs LD, not CC, wlarc should be empty
14351        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14352        #     investigate it a little bit more. (MM)
14353        wlarc='${wl}'
14354
14355        # ancient GNU ld didn't support --whole-archive et. al.
14356        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14357	  $GREP 'no-whole-archive' > /dev/null; then
14358          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14359        else
14360          whole_archive_flag_spec_CXX=
14361        fi
14362      else
14363        with_gnu_ld=no
14364        wlarc=
14365
14366        # A generic and very simple default shared library creation
14367        # command for GNU C++ for the case where it uses the native
14368        # linker, instead of GNU ld.  If possible, this setting should
14369        # overridden to take advantage of the native linker features on
14370        # the platform it is being used on.
14371        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14372      fi
14373
14374      # Commands to make compiler produce verbose output that lists
14375      # what "hidden" libraries, object files and flags are used when
14376      # linking a shared library.
14377      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14378
14379    else
14380      GXX=no
14381      with_gnu_ld=no
14382      wlarc=
14383    fi
14384
14385    # PORTME: fill in a description of your system's C++ link characteristics
14386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14387$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14388    ld_shlibs_CXX=yes
14389    case $host_os in
14390      aix3*)
14391        # FIXME: insert proper C++ library support
14392        ld_shlibs_CXX=no
14393        ;;
14394      aix[4-9]*)
14395        if test "$host_cpu" = ia64; then
14396          # On IA64, the linker does run time linking by default, so we don't
14397          # have to do anything special.
14398          aix_use_runtimelinking=no
14399          exp_sym_flag='-Bexport'
14400          no_entry_flag=""
14401        else
14402          aix_use_runtimelinking=no
14403
14404          # Test if we are trying to use run time linking or normal
14405          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14406          # need to do runtime linking.
14407          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14408	    for ld_flag in $LDFLAGS; do
14409	      case $ld_flag in
14410	      *-brtl*)
14411	        aix_use_runtimelinking=yes
14412	        break
14413	        ;;
14414	      esac
14415	    done
14416	    ;;
14417          esac
14418
14419          exp_sym_flag='-bexport'
14420          no_entry_flag='-bnoentry'
14421        fi
14422
14423        # When large executables or shared objects are built, AIX ld can
14424        # have problems creating the table of contents.  If linking a library
14425        # or program results in "error TOC overflow" add -mminimal-toc to
14426        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14427        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14428
14429        archive_cmds_CXX=''
14430        hardcode_direct_CXX=yes
14431        hardcode_direct_absolute_CXX=yes
14432        hardcode_libdir_separator_CXX=':'
14433        link_all_deplibs_CXX=yes
14434        file_list_spec_CXX='${wl}-f,'
14435
14436        if test "$GXX" = yes; then
14437          case $host_os in aix4.[012]|aix4.[012].*)
14438          # We only want to do this on AIX 4.2 and lower, the check
14439          # below for broken collect2 doesn't work under 4.3+
14440	  collect2name=`${CC} -print-prog-name=collect2`
14441	  if test -f "$collect2name" &&
14442	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14443	  then
14444	    # We have reworked collect2
14445	    :
14446	  else
14447	    # We have old collect2
14448	    hardcode_direct_CXX=unsupported
14449	    # It fails to find uninstalled libraries when the uninstalled
14450	    # path is not listed in the libpath.  Setting hardcode_minus_L
14451	    # to unsupported forces relinking
14452	    hardcode_minus_L_CXX=yes
14453	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14454	    hardcode_libdir_separator_CXX=
14455	  fi
14456          esac
14457          shared_flag='-shared'
14458	  if test "$aix_use_runtimelinking" = yes; then
14459	    shared_flag="$shared_flag "'${wl}-G'
14460	  fi
14461        else
14462          # not using gcc
14463          if test "$host_cpu" = ia64; then
14464	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14465	  # chokes on -Wl,-G. The following line is correct:
14466	  shared_flag='-G'
14467          else
14468	    if test "$aix_use_runtimelinking" = yes; then
14469	      shared_flag='${wl}-G'
14470	    else
14471	      shared_flag='${wl}-bM:SRE'
14472	    fi
14473          fi
14474        fi
14475
14476        export_dynamic_flag_spec_CXX='${wl}-bexpall'
14477        # It seems that -bexpall does not export symbols beginning with
14478        # underscore (_), so it is better to generate a list of symbols to
14479	# export.
14480        always_export_symbols_CXX=yes
14481        if test "$aix_use_runtimelinking" = yes; then
14482          # Warning - without using the other runtime loading flags (-brtl),
14483          # -berok will link without error, but may produce a broken library.
14484          allow_undefined_flag_CXX='-berok'
14485          # Determine the default libpath from the value encoded in an empty
14486          # executable.
14487          if test "${lt_cv_aix_libpath+set}" = set; then
14488  aix_libpath=$lt_cv_aix_libpath
14489else
14490  if ${lt_cv_aix_libpath__CXX+:} false; then :
14491  $as_echo_n "(cached) " >&6
14492else
14493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494/* end confdefs.h.  */
14495
14496int
14497main ()
14498{
14499
14500  ;
14501  return 0;
14502}
14503_ACEOF
14504if ac_fn_cxx_try_link "$LINENO"; then :
14505
14506  lt_aix_libpath_sed='
14507      /Import File Strings/,/^$/ {
14508	  /^0/ {
14509	      s/^0  *\([^ ]*\) *$/\1/
14510	      p
14511	  }
14512      }'
14513  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14514  # Check for a 64-bit object if we didn't find anything.
14515  if test -z "$lt_cv_aix_libpath__CXX"; then
14516    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14517  fi
14518fi
14519rm -f core conftest.err conftest.$ac_objext \
14520    conftest$ac_exeext conftest.$ac_ext
14521  if test -z "$lt_cv_aix_libpath__CXX"; then
14522    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14523  fi
14524
14525fi
14526
14527  aix_libpath=$lt_cv_aix_libpath__CXX
14528fi
14529
14530          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14531
14532          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14533        else
14534          if test "$host_cpu" = ia64; then
14535	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14536	    allow_undefined_flag_CXX="-z nodefs"
14537	    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"
14538          else
14539	    # Determine the default libpath from the value encoded in an
14540	    # empty executable.
14541	    if test "${lt_cv_aix_libpath+set}" = set; then
14542  aix_libpath=$lt_cv_aix_libpath
14543else
14544  if ${lt_cv_aix_libpath__CXX+:} false; then :
14545  $as_echo_n "(cached) " >&6
14546else
14547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548/* end confdefs.h.  */
14549
14550int
14551main ()
14552{
14553
14554  ;
14555  return 0;
14556}
14557_ACEOF
14558if ac_fn_cxx_try_link "$LINENO"; then :
14559
14560  lt_aix_libpath_sed='
14561      /Import File Strings/,/^$/ {
14562	  /^0/ {
14563	      s/^0  *\([^ ]*\) *$/\1/
14564	      p
14565	  }
14566      }'
14567  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14568  # Check for a 64-bit object if we didn't find anything.
14569  if test -z "$lt_cv_aix_libpath__CXX"; then
14570    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14571  fi
14572fi
14573rm -f core conftest.err conftest.$ac_objext \
14574    conftest$ac_exeext conftest.$ac_ext
14575  if test -z "$lt_cv_aix_libpath__CXX"; then
14576    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14577  fi
14578
14579fi
14580
14581  aix_libpath=$lt_cv_aix_libpath__CXX
14582fi
14583
14584	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14585	    # Warning - without using the other run time loading flags,
14586	    # -berok will link without error, but may produce a broken library.
14587	    no_undefined_flag_CXX=' ${wl}-bernotok'
14588	    allow_undefined_flag_CXX=' ${wl}-berok'
14589	    if test "$with_gnu_ld" = yes; then
14590	      # We only use this code for GNU lds that support --whole-archive.
14591	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14592	    else
14593	      # Exported symbols can be pulled into shared objects from archives
14594	      whole_archive_flag_spec_CXX='$convenience'
14595	    fi
14596	    archive_cmds_need_lc_CXX=yes
14597	    # This is similar to how AIX traditionally builds its shared
14598	    # libraries.
14599	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14600          fi
14601        fi
14602        ;;
14603
14604      beos*)
14605	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14606	  allow_undefined_flag_CXX=unsupported
14607	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14608	  # support --undefined.  This deserves some investigation.  FIXME
14609	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610	else
14611	  ld_shlibs_CXX=no
14612	fi
14613	;;
14614
14615      chorus*)
14616        case $cc_basename in
14617          *)
14618	  # FIXME: insert proper C++ library support
14619	  ld_shlibs_CXX=no
14620	  ;;
14621        esac
14622        ;;
14623
14624      cygwin* | mingw* | pw32* | cegcc*)
14625	case $GXX,$cc_basename in
14626	,cl* | no,cl*)
14627	  # Native MSVC
14628	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14629	  # no search path for DLLs.
14630	  hardcode_libdir_flag_spec_CXX=' '
14631	  allow_undefined_flag_CXX=unsupported
14632	  always_export_symbols_CXX=yes
14633	  file_list_spec_CXX='@'
14634	  # Tell ltmain to make .lib files, not .a files.
14635	  libext=lib
14636	  # Tell ltmain to make .dll files, not .so files.
14637	  shrext_cmds=".dll"
14638	  # FIXME: Setting linknames here is a bad hack.
14639	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14640	  archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14641	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14642	    else
14643	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14644	    fi~
14645	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14646	    linknames='
14647	  # The linker will not automatically build a static lib if we build a DLL.
14648	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14649	  enable_shared_with_static_runtimes_CXX=yes
14650	  # Don't use ranlib
14651	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14652	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14653	    lt_tool_outputfile="@TOOL_OUTPUT@"~
14654	    case $lt_outputfile in
14655	      *.exe|*.EXE) ;;
14656	      *)
14657		lt_outputfile="$lt_outputfile.exe"
14658		lt_tool_outputfile="$lt_tool_outputfile.exe"
14659		;;
14660	    esac~
14661	    func_to_tool_file "$lt_outputfile"~
14662	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14663	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14664	      $RM "$lt_outputfile.manifest";
14665	    fi'
14666	  ;;
14667	*)
14668	  # g++
14669	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14670	  # as there is no search path for DLLs.
14671	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14672	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14673	  allow_undefined_flag_CXX=unsupported
14674	  always_export_symbols_CXX=no
14675	  enable_shared_with_static_runtimes_CXX=yes
14676
14677	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14678	    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'
14679	    # If the export-symbols file already is a .def file (1st line
14680	    # is EXPORTS), use it as is; otherwise, prepend...
14681	    archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14682	      cp $export_symbols $output_objdir/$soname.def;
14683	    else
14684	      echo EXPORTS > $output_objdir/$soname.def;
14685	      cat $export_symbols >> $output_objdir/$soname.def;
14686	    fi~
14687	    $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'
14688	  else
14689	    ld_shlibs_CXX=no
14690	  fi
14691	  ;;
14692	esac
14693	;;
14694      darwin* | rhapsody*)
14695
14696
14697  archive_cmds_need_lc_CXX=no
14698  hardcode_direct_CXX=no
14699  hardcode_automatic_CXX=yes
14700  hardcode_shlibpath_var_CXX=unsupported
14701  if test "$lt_cv_ld_force_load" = "yes"; then
14702    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\"`'
14703
14704  else
14705    whole_archive_flag_spec_CXX=''
14706  fi
14707  link_all_deplibs_CXX=yes
14708  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14709  case $cc_basename in
14710     ifort*) _lt_dar_can_shared=yes ;;
14711     *) _lt_dar_can_shared=$GCC ;;
14712  esac
14713  if test "$_lt_dar_can_shared" = "yes"; then
14714    output_verbose_link_cmd=func_echo_all
14715    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}"
14716    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14717    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}"
14718    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}"
14719       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14720      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}"
14721      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}"
14722    fi
14723
14724  else
14725  ld_shlibs_CXX=no
14726  fi
14727
14728	;;
14729
14730      dgux*)
14731        case $cc_basename in
14732          ec++*)
14733	    # FIXME: insert proper C++ library support
14734	    ld_shlibs_CXX=no
14735	    ;;
14736          ghcx*)
14737	    # Green Hills C++ Compiler
14738	    # FIXME: insert proper C++ library support
14739	    ld_shlibs_CXX=no
14740	    ;;
14741          *)
14742	    # FIXME: insert proper C++ library support
14743	    ld_shlibs_CXX=no
14744	    ;;
14745        esac
14746        ;;
14747
14748      freebsd2.*)
14749        # C++ shared libraries reported to be fairly broken before
14750	# switch to ELF
14751        ld_shlibs_CXX=no
14752        ;;
14753
14754      freebsd-elf*)
14755        archive_cmds_need_lc_CXX=no
14756        ;;
14757
14758      freebsd* | dragonfly*)
14759        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14760        # conventions
14761        ld_shlibs_CXX=yes
14762        ;;
14763
14764      gnu*)
14765        ;;
14766
14767      haiku*)
14768        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769        link_all_deplibs_CXX=yes
14770        ;;
14771
14772      hpux9*)
14773        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14774        hardcode_libdir_separator_CXX=:
14775        export_dynamic_flag_spec_CXX='${wl}-E'
14776        hardcode_direct_CXX=yes
14777        hardcode_minus_L_CXX=yes # Not in the search PATH,
14778				             # but as the default
14779				             # location of the library.
14780
14781        case $cc_basename in
14782          CC*)
14783            # FIXME: insert proper C++ library support
14784            ld_shlibs_CXX=no
14785            ;;
14786          aCC*)
14787            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14788            # Commands to make compiler produce verbose output that lists
14789            # what "hidden" libraries, object files and flags are used when
14790            # linking a shared library.
14791            #
14792            # There doesn't appear to be a way to prevent this compiler from
14793            # explicitly linking system object files so we need to strip them
14794            # from the output so that they don't get included in the library
14795            # dependencies.
14796            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"'
14797            ;;
14798          *)
14799            if test "$GXX" = yes; then
14800              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14801            else
14802              # FIXME: insert proper C++ library support
14803              ld_shlibs_CXX=no
14804            fi
14805            ;;
14806        esac
14807        ;;
14808
14809      hpux10*|hpux11*)
14810        if test $with_gnu_ld = no; then
14811	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14812	  hardcode_libdir_separator_CXX=:
14813
14814          case $host_cpu in
14815            hppa*64*|ia64*)
14816              ;;
14817            *)
14818	      export_dynamic_flag_spec_CXX='${wl}-E'
14819              ;;
14820          esac
14821        fi
14822        case $host_cpu in
14823          hppa*64*|ia64*)
14824            hardcode_direct_CXX=no
14825            hardcode_shlibpath_var_CXX=no
14826            ;;
14827          *)
14828            hardcode_direct_CXX=yes
14829            hardcode_direct_absolute_CXX=yes
14830            hardcode_minus_L_CXX=yes # Not in the search PATH,
14831					         # but as the default
14832					         # location of the library.
14833            ;;
14834        esac
14835
14836        case $cc_basename in
14837          CC*)
14838	    # FIXME: insert proper C++ library support
14839	    ld_shlibs_CXX=no
14840	    ;;
14841          aCC*)
14842	    case $host_cpu in
14843	      hppa*64*)
14844	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14845	        ;;
14846	      ia64*)
14847	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14848	        ;;
14849	      *)
14850	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14851	        ;;
14852	    esac
14853	    # Commands to make compiler produce verbose output that lists
14854	    # what "hidden" libraries, object files and flags are used when
14855	    # linking a shared library.
14856	    #
14857	    # There doesn't appear to be a way to prevent this compiler from
14858	    # explicitly linking system object files so we need to strip them
14859	    # from the output so that they don't get included in the library
14860	    # dependencies.
14861	    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"'
14862	    ;;
14863          *)
14864	    if test "$GXX" = yes; then
14865	      if test $with_gnu_ld = no; then
14866	        case $host_cpu in
14867	          hppa*64*)
14868	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14869	            ;;
14870	          ia64*)
14871	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14872	            ;;
14873	          *)
14874	            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'
14875	            ;;
14876	        esac
14877	      fi
14878	    else
14879	      # FIXME: insert proper C++ library support
14880	      ld_shlibs_CXX=no
14881	    fi
14882	    ;;
14883        esac
14884        ;;
14885
14886      interix[3-9]*)
14887	hardcode_direct_CXX=no
14888	hardcode_shlibpath_var_CXX=no
14889	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14890	export_dynamic_flag_spec_CXX='${wl}-E'
14891	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14892	# Instead, shared libraries are loaded at an image base (0x10000000 by
14893	# default) and relocated if they conflict, which is a slow very memory
14894	# consuming and fragmenting process.  To avoid this, we pick a random,
14895	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14896	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14897	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'
14898	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'
14899	;;
14900      irix5* | irix6*)
14901        case $cc_basename in
14902          CC*)
14903	    # SGI C++
14904	    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'
14905
14906	    # Archives containing C++ object files must be created using
14907	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14908	    # necessary to make sure instantiated templates are included
14909	    # in the archive.
14910	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14911	    ;;
14912          *)
14913	    if test "$GXX" = yes; then
14914	      if test "$with_gnu_ld" = no; then
14915	        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'
14916	      else
14917	        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'
14918	      fi
14919	    fi
14920	    link_all_deplibs_CXX=yes
14921	    ;;
14922        esac
14923        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14924        hardcode_libdir_separator_CXX=:
14925        inherit_rpath_CXX=yes
14926        ;;
14927
14928      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14929        case $cc_basename in
14930          KCC*)
14931	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14932
14933	    # KCC will only create a shared library if the output file
14934	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14935	    # to its proper name (with version) after linking.
14936	    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'
14937	    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'
14938	    # Commands to make compiler produce verbose output that lists
14939	    # what "hidden" libraries, object files and flags are used when
14940	    # linking a shared library.
14941	    #
14942	    # There doesn't appear to be a way to prevent this compiler from
14943	    # explicitly linking system object files so we need to strip them
14944	    # from the output so that they don't get included in the library
14945	    # dependencies.
14946	    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"'
14947
14948	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14949	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14950
14951	    # Archives containing C++ object files must be created using
14952	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14953	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14954	    ;;
14955	  icpc* | ecpc* )
14956	    # Intel C++
14957	    with_gnu_ld=yes
14958	    # version 8.0 and above of icpc choke on multiply defined symbols
14959	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14960	    # earlier do not add the objects themselves.
14961	    case `$CC -V 2>&1` in
14962	      *"Version 7."*)
14963	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964		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'
14965		;;
14966	      *)  # Version 8.0 or newer
14967	        tmp_idyn=
14968	        case $host_cpu in
14969		  ia64*) tmp_idyn=' -i_dynamic';;
14970		esac
14971	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14972		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'
14973		;;
14974	    esac
14975	    archive_cmds_need_lc_CXX=no
14976	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14977	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14978	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14979	    ;;
14980          pgCC* | pgcpp*)
14981            # Portland Group C++ compiler
14982	    case `$CC -V` in
14983	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14984	      prelink_cmds_CXX='tpldir=Template.dir~
14985		rm -rf $tpldir~
14986		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14987		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14988	      old_archive_cmds_CXX='tpldir=Template.dir~
14989		rm -rf $tpldir~
14990		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14991		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14992		$RANLIB $oldlib'
14993	      archive_cmds_CXX='tpldir=Template.dir~
14994		rm -rf $tpldir~
14995		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14996		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14997	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14998		rm -rf $tpldir~
14999		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15000		$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'
15001	      ;;
15002	    *) # Version 6 and above use weak symbols
15003	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15004	      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'
15005	      ;;
15006	    esac
15007
15008	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15009	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15010	    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'
15011            ;;
15012	  cxx*)
15013	    # Compaq C++
15014	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015	    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'
15016
15017	    runpath_var=LD_RUN_PATH
15018	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15019	    hardcode_libdir_separator_CXX=:
15020
15021	    # Commands to make compiler produce verbose output that lists
15022	    # what "hidden" libraries, object files and flags are used when
15023	    # linking a shared library.
15024	    #
15025	    # There doesn't appear to be a way to prevent this compiler from
15026	    # explicitly linking system object files so we need to strip them
15027	    # from the output so that they don't get included in the library
15028	    # dependencies.
15029	    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'
15030	    ;;
15031	  xl* | mpixl* | bgxl*)
15032	    # IBM XL 8.0 on PPC, with GNU ld
15033	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15034	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15035	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036	    if test "x$supports_anon_versioning" = xyes; then
15037	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15038		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15039		echo "local: *; };" >> $output_objdir/$libname.ver~
15040		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15041	    fi
15042	    ;;
15043	  *)
15044	    case `$CC -V 2>&1 | sed 5q` in
15045	    *Sun\ C*)
15046	      # Sun C++ 5.9
15047	      no_undefined_flag_CXX=' -zdefs'
15048	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15049	      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'
15050	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15051	      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'
15052	      compiler_needs_object_CXX=yes
15053
15054	      # Not sure whether something based on
15055	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15056	      # would be better.
15057	      output_verbose_link_cmd='func_echo_all'
15058
15059	      # Archives containing C++ object files must be created using
15060	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15061	      # necessary to make sure instantiated templates are included
15062	      # in the archive.
15063	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15064	      ;;
15065	    esac
15066	    ;;
15067	esac
15068	;;
15069
15070      lynxos*)
15071        # FIXME: insert proper C++ library support
15072	ld_shlibs_CXX=no
15073	;;
15074
15075      m88k*)
15076        # FIXME: insert proper C++ library support
15077        ld_shlibs_CXX=no
15078	;;
15079
15080      mvs*)
15081        case $cc_basename in
15082          cxx*)
15083	    # FIXME: insert proper C++ library support
15084	    ld_shlibs_CXX=no
15085	    ;;
15086	  *)
15087	    # FIXME: insert proper C++ library support
15088	    ld_shlibs_CXX=no
15089	    ;;
15090	esac
15091	;;
15092
15093      netbsd*)
15094        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15095	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15096	  wlarc=
15097	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15098	  hardcode_direct_CXX=yes
15099	  hardcode_shlibpath_var_CXX=no
15100	fi
15101	# Workaround some broken pre-1.5 toolchains
15102	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15103	;;
15104
15105      *nto* | *qnx*)
15106        ld_shlibs_CXX=yes
15107	;;
15108
15109      openbsd2*)
15110        # C++ shared libraries are fairly broken
15111	ld_shlibs_CXX=no
15112	;;
15113
15114      openbsd*)
15115	if test -f /usr/libexec/ld.so; then
15116	  hardcode_direct_CXX=yes
15117	  hardcode_shlibpath_var_CXX=no
15118	  hardcode_direct_absolute_CXX=yes
15119	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15120	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15121	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15122	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15123	    export_dynamic_flag_spec_CXX='${wl}-E'
15124	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15125	  fi
15126	  output_verbose_link_cmd=func_echo_all
15127	else
15128	  ld_shlibs_CXX=no
15129	fi
15130	;;
15131
15132      osf3* | osf4* | osf5*)
15133        case $cc_basename in
15134          KCC*)
15135	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15136
15137	    # KCC will only create a shared library if the output file
15138	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15139	    # to its proper name (with version) after linking.
15140	    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'
15141
15142	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15143	    hardcode_libdir_separator_CXX=:
15144
15145	    # Archives containing C++ object files must be created using
15146	    # the KAI C++ compiler.
15147	    case $host in
15148	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15149	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15150	    esac
15151	    ;;
15152          RCC*)
15153	    # Rational C++ 2.4.1
15154	    # FIXME: insert proper C++ library support
15155	    ld_shlibs_CXX=no
15156	    ;;
15157          cxx*)
15158	    case $host in
15159	      osf3*)
15160	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15161	        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'
15162	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15163		;;
15164	      *)
15165	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15166	        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'
15167	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15168	          echo "-hidden">> $lib.exp~
15169	          $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~
15170	          $RM $lib.exp'
15171	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15172		;;
15173	    esac
15174
15175	    hardcode_libdir_separator_CXX=:
15176
15177	    # Commands to make compiler produce verbose output that lists
15178	    # what "hidden" libraries, object files and flags are used when
15179	    # linking a shared library.
15180	    #
15181	    # There doesn't appear to be a way to prevent this compiler from
15182	    # explicitly linking system object files so we need to strip them
15183	    # from the output so that they don't get included in the library
15184	    # dependencies.
15185	    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"'
15186	    ;;
15187	  *)
15188	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15189	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15190	      case $host in
15191	        osf3*)
15192	          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'
15193		  ;;
15194	        *)
15195	          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'
15196		  ;;
15197	      esac
15198
15199	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15200	      hardcode_libdir_separator_CXX=:
15201
15202	      # Commands to make compiler produce verbose output that lists
15203	      # what "hidden" libraries, object files and flags are used when
15204	      # linking a shared library.
15205	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15206
15207	    else
15208	      # FIXME: insert proper C++ library support
15209	      ld_shlibs_CXX=no
15210	    fi
15211	    ;;
15212        esac
15213        ;;
15214
15215      psos*)
15216        # FIXME: insert proper C++ library support
15217        ld_shlibs_CXX=no
15218        ;;
15219
15220      sunos4*)
15221        case $cc_basename in
15222          CC*)
15223	    # Sun C++ 4.x
15224	    # FIXME: insert proper C++ library support
15225	    ld_shlibs_CXX=no
15226	    ;;
15227          lcc*)
15228	    # Lucid
15229	    # FIXME: insert proper C++ library support
15230	    ld_shlibs_CXX=no
15231	    ;;
15232          *)
15233	    # FIXME: insert proper C++ library support
15234	    ld_shlibs_CXX=no
15235	    ;;
15236        esac
15237        ;;
15238
15239      solaris*)
15240        case $cc_basename in
15241          CC* | sunCC*)
15242	    # Sun C++ 4.2, 5.x and Centerline C++
15243            archive_cmds_need_lc_CXX=yes
15244	    no_undefined_flag_CXX=' -zdefs'
15245	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15246	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15247	      $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'
15248
15249	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15250	    hardcode_shlibpath_var_CXX=no
15251	    case $host_os in
15252	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15253	      *)
15254		# The compiler driver will combine and reorder linker options,
15255		# but understands `-z linker_flag'.
15256	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15257		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15258	        ;;
15259	    esac
15260	    link_all_deplibs_CXX=yes
15261
15262	    output_verbose_link_cmd='func_echo_all'
15263
15264	    # Archives containing C++ object files must be created using
15265	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15266	    # necessary to make sure instantiated templates are included
15267	    # in the archive.
15268	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15269	    ;;
15270          gcx*)
15271	    # Green Hills C++ Compiler
15272	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15273
15274	    # The C++ compiler must be used to create the archive.
15275	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15276	    ;;
15277          *)
15278	    # GNU C++ compiler with Solaris linker
15279	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15280	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15281	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15282	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15283	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15284		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15285
15286	        # Commands to make compiler produce verbose output that lists
15287	        # what "hidden" libraries, object files and flags are used when
15288	        # linking a shared library.
15289	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15290	      else
15291	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
15292	        # platform.
15293	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15294	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15295		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15296
15297	        # Commands to make compiler produce verbose output that lists
15298	        # what "hidden" libraries, object files and flags are used when
15299	        # linking a shared library.
15300	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15301	      fi
15302
15303	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15304	      case $host_os in
15305		solaris2.[0-5] | solaris2.[0-5].*) ;;
15306		*)
15307		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15308		  ;;
15309	      esac
15310	    fi
15311	    ;;
15312        esac
15313        ;;
15314
15315    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15316      no_undefined_flag_CXX='${wl}-z,text'
15317      archive_cmds_need_lc_CXX=no
15318      hardcode_shlibpath_var_CXX=no
15319      runpath_var='LD_RUN_PATH'
15320
15321      case $cc_basename in
15322        CC*)
15323	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15324	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15325	  ;;
15326	*)
15327	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15328	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15329	  ;;
15330      esac
15331      ;;
15332
15333      sysv5* | sco3.2v5* | sco5v6*)
15334	# Note: We can NOT use -z defs as we might desire, because we do not
15335	# link with -lc, and that would cause any symbols used from libc to
15336	# always be unresolved, which means just about no library would
15337	# ever link correctly.  If we're not using GNU ld we use -z text
15338	# though, which does catch some bad symbols but isn't as heavy-handed
15339	# as -z defs.
15340	no_undefined_flag_CXX='${wl}-z,text'
15341	allow_undefined_flag_CXX='${wl}-z,nodefs'
15342	archive_cmds_need_lc_CXX=no
15343	hardcode_shlibpath_var_CXX=no
15344	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15345	hardcode_libdir_separator_CXX=':'
15346	link_all_deplibs_CXX=yes
15347	export_dynamic_flag_spec_CXX='${wl}-Bexport'
15348	runpath_var='LD_RUN_PATH'
15349
15350	case $cc_basename in
15351          CC*)
15352	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15353	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15354	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15355	      '"$old_archive_cmds_CXX"
15356	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15357	      '"$reload_cmds_CXX"
15358	    ;;
15359	  *)
15360	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15361	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15362	    ;;
15363	esac
15364      ;;
15365
15366      tandem*)
15367        case $cc_basename in
15368          NCC*)
15369	    # NonStop-UX NCC 3.20
15370	    # FIXME: insert proper C++ library support
15371	    ld_shlibs_CXX=no
15372	    ;;
15373          *)
15374	    # FIXME: insert proper C++ library support
15375	    ld_shlibs_CXX=no
15376	    ;;
15377        esac
15378        ;;
15379
15380      vxworks*)
15381        # FIXME: insert proper C++ library support
15382        ld_shlibs_CXX=no
15383        ;;
15384
15385      *)
15386        # FIXME: insert proper C++ library support
15387        ld_shlibs_CXX=no
15388        ;;
15389    esac
15390
15391    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15392$as_echo "$ld_shlibs_CXX" >&6; }
15393    test "$ld_shlibs_CXX" = no && can_build_shared=no
15394
15395    GCC_CXX="$GXX"
15396    LD_CXX="$LD"
15397
15398    ## CAVEAT EMPTOR:
15399    ## There is no encapsulation within the following macros, do not change
15400    ## the running order or otherwise move them around unless you know exactly
15401    ## what you are doing...
15402    # Dependencies to place before and after the object being linked:
15403predep_objects_CXX=
15404postdep_objects_CXX=
15405predeps_CXX=
15406postdeps_CXX=
15407compiler_lib_search_path_CXX=
15408
15409cat > conftest.$ac_ext <<_LT_EOF
15410class Foo
15411{
15412public:
15413  Foo (void) { a = 0; }
15414private:
15415  int a;
15416};
15417_LT_EOF
15418
15419
15420_lt_libdeps_save_CFLAGS=$CFLAGS
15421case "$CC $CFLAGS " in #(
15422*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15423*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15424*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15425esac
15426
15427if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15428  (eval $ac_compile) 2>&5
15429  ac_status=$?
15430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15431  test $ac_status = 0; }; then
15432  # Parse the compiler output and extract the necessary
15433  # objects, libraries and library flags.
15434
15435  # Sentinel used to keep track of whether or not we are before
15436  # the conftest object file.
15437  pre_test_object_deps_done=no
15438
15439  for p in `eval "$output_verbose_link_cmd"`; do
15440    case ${prev}${p} in
15441
15442    -L* | -R* | -l*)
15443       # Some compilers place space between "-{L,R}" and the path.
15444       # Remove the space.
15445       if test $p = "-L" ||
15446          test $p = "-R"; then
15447	 prev=$p
15448	 continue
15449       fi
15450
15451       # Expand the sysroot to ease extracting the directories later.
15452       if test -z "$prev"; then
15453         case $p in
15454         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15455         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15456         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15457         esac
15458       fi
15459       case $p in
15460       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15461       esac
15462       if test "$pre_test_object_deps_done" = no; then
15463	 case ${prev} in
15464	 -L | -R)
15465	   # Internal compiler library paths should come after those
15466	   # provided the user.  The postdeps already come after the
15467	   # user supplied libs so there is no need to process them.
15468	   if test -z "$compiler_lib_search_path_CXX"; then
15469	     compiler_lib_search_path_CXX="${prev}${p}"
15470	   else
15471	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15472	   fi
15473	   ;;
15474	 # The "-l" case would never come before the object being
15475	 # linked, so don't bother handling this case.
15476	 esac
15477       else
15478	 if test -z "$postdeps_CXX"; then
15479	   postdeps_CXX="${prev}${p}"
15480	 else
15481	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15482	 fi
15483       fi
15484       prev=
15485       ;;
15486
15487    *.lto.$objext) ;; # Ignore GCC LTO objects
15488    *.$objext)
15489       # This assumes that the test object file only shows up
15490       # once in the compiler output.
15491       if test "$p" = "conftest.$objext"; then
15492	 pre_test_object_deps_done=yes
15493	 continue
15494       fi
15495
15496       if test "$pre_test_object_deps_done" = no; then
15497	 if test -z "$predep_objects_CXX"; then
15498	   predep_objects_CXX="$p"
15499	 else
15500	   predep_objects_CXX="$predep_objects_CXX $p"
15501	 fi
15502       else
15503	 if test -z "$postdep_objects_CXX"; then
15504	   postdep_objects_CXX="$p"
15505	 else
15506	   postdep_objects_CXX="$postdep_objects_CXX $p"
15507	 fi
15508       fi
15509       ;;
15510
15511    *) ;; # Ignore the rest.
15512
15513    esac
15514  done
15515
15516  # Clean up.
15517  rm -f a.out a.exe
15518else
15519  echo "libtool.m4: error: problem compiling CXX test program"
15520fi
15521
15522$RM -f confest.$objext
15523CFLAGS=$_lt_libdeps_save_CFLAGS
15524
15525# PORTME: override above test on systems where it is broken
15526case $host_os in
15527interix[3-9]*)
15528  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15529  # hack all around it, let's just trust "g++" to DTRT.
15530  predep_objects_CXX=
15531  postdep_objects_CXX=
15532  postdeps_CXX=
15533  ;;
15534
15535linux*)
15536  case `$CC -V 2>&1 | sed 5q` in
15537  *Sun\ C*)
15538    # Sun C++ 5.9
15539
15540    # The more standards-conforming stlport4 library is
15541    # incompatible with the Cstd library. Avoid specifying
15542    # it if it's in CXXFLAGS. Ignore libCrun as
15543    # -library=stlport4 depends on it.
15544    case " $CXX $CXXFLAGS " in
15545    *" -library=stlport4 "*)
15546      solaris_use_stlport4=yes
15547      ;;
15548    esac
15549
15550    if test "$solaris_use_stlport4" != yes; then
15551      postdeps_CXX='-library=Cstd -library=Crun'
15552    fi
15553    ;;
15554  esac
15555  ;;
15556
15557solaris*)
15558  case $cc_basename in
15559  CC* | sunCC*)
15560    # The more standards-conforming stlport4 library is
15561    # incompatible with the Cstd library. Avoid specifying
15562    # it if it's in CXXFLAGS. Ignore libCrun as
15563    # -library=stlport4 depends on it.
15564    case " $CXX $CXXFLAGS " in
15565    *" -library=stlport4 "*)
15566      solaris_use_stlport4=yes
15567      ;;
15568    esac
15569
15570    # Adding this requires a known-good setup of shared libraries for
15571    # Sun compiler versions before 5.6, else PIC objects from an old
15572    # archive will be linked into the output, leading to subtle bugs.
15573    if test "$solaris_use_stlport4" != yes; then
15574      postdeps_CXX='-library=Cstd -library=Crun'
15575    fi
15576    ;;
15577  esac
15578  ;;
15579esac
15580
15581
15582case " $postdeps_CXX " in
15583*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15584esac
15585 compiler_lib_search_dirs_CXX=
15586if test -n "${compiler_lib_search_path_CXX}"; then
15587 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15588fi
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620    lt_prog_compiler_wl_CXX=
15621lt_prog_compiler_pic_CXX=
15622lt_prog_compiler_static_CXX=
15623
15624
15625  # C++ specific cases for pic, static, wl, etc.
15626  if test "$GXX" = yes; then
15627    lt_prog_compiler_wl_CXX='-Wl,'
15628    lt_prog_compiler_static_CXX='-static'
15629
15630    case $host_os in
15631    aix*)
15632      # All AIX code is PIC.
15633      if test "$host_cpu" = ia64; then
15634	# AIX 5 now supports IA64 processor
15635	lt_prog_compiler_static_CXX='-Bstatic'
15636      fi
15637      ;;
15638
15639    amigaos*)
15640      case $host_cpu in
15641      powerpc)
15642            # see comment about AmigaOS4 .so support
15643            lt_prog_compiler_pic_CXX='-fPIC'
15644        ;;
15645      m68k)
15646            # FIXME: we need at least 68020 code to build shared libraries, but
15647            # adding the `-m68020' flag to GCC prevents building anything better,
15648            # like `-m68040'.
15649            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15650        ;;
15651      esac
15652      ;;
15653
15654    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15655      # PIC is the default for these OSes.
15656      ;;
15657    mingw* | cygwin* | os2* | pw32* | cegcc*)
15658      # This hack is so that the source file can tell whether it is being
15659      # built for inclusion in a dll (and should export symbols for example).
15660      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15661      # (--disable-auto-import) libraries
15662      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15663      ;;
15664    darwin* | rhapsody*)
15665      # PIC is the default on this platform
15666      # Common symbols not allowed in MH_DYLIB files
15667      lt_prog_compiler_pic_CXX='-fno-common'
15668      ;;
15669    *djgpp*)
15670      # DJGPP does not support shared libraries at all
15671      lt_prog_compiler_pic_CXX=
15672      ;;
15673    haiku*)
15674      # PIC is the default for Haiku.
15675      # The "-static" flag exists, but is broken.
15676      lt_prog_compiler_static_CXX=
15677      ;;
15678    interix[3-9]*)
15679      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15680      # Instead, we relocate shared libraries at runtime.
15681      ;;
15682    sysv4*MP*)
15683      if test -d /usr/nec; then
15684	lt_prog_compiler_pic_CXX=-Kconform_pic
15685      fi
15686      ;;
15687    hpux*)
15688      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15689      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15690      # sets the default TLS model and affects inlining.
15691      case $host_cpu in
15692      hppa*64*)
15693	;;
15694      *)
15695	lt_prog_compiler_pic_CXX='-fPIC'
15696	;;
15697      esac
15698      ;;
15699    *qnx* | *nto*)
15700      # QNX uses GNU C++, but need to define -shared option too, otherwise
15701      # it will coredump.
15702      lt_prog_compiler_pic_CXX='-fPIC -shared'
15703      ;;
15704    *)
15705      lt_prog_compiler_pic_CXX='-fPIC'
15706      ;;
15707    esac
15708  else
15709    case $host_os in
15710      aix[4-9]*)
15711	# All AIX code is PIC.
15712	if test "$host_cpu" = ia64; then
15713	  # AIX 5 now supports IA64 processor
15714	  lt_prog_compiler_static_CXX='-Bstatic'
15715	else
15716	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15717	fi
15718	;;
15719      chorus*)
15720	case $cc_basename in
15721	cxch68*)
15722	  # Green Hills C++ Compiler
15723	  # _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"
15724	  ;;
15725	esac
15726	;;
15727      mingw* | cygwin* | os2* | pw32* | cegcc*)
15728	# This hack is so that the source file can tell whether it is being
15729	# built for inclusion in a dll (and should export symbols for example).
15730	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15731	;;
15732      dgux*)
15733	case $cc_basename in
15734	  ec++*)
15735	    lt_prog_compiler_pic_CXX='-KPIC'
15736	    ;;
15737	  ghcx*)
15738	    # Green Hills C++ Compiler
15739	    lt_prog_compiler_pic_CXX='-pic'
15740	    ;;
15741	  *)
15742	    ;;
15743	esac
15744	;;
15745      freebsd* | dragonfly*)
15746	# FreeBSD uses GNU C++
15747	;;
15748      hpux9* | hpux10* | hpux11*)
15749	case $cc_basename in
15750	  CC*)
15751	    lt_prog_compiler_wl_CXX='-Wl,'
15752	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15753	    if test "$host_cpu" != ia64; then
15754	      lt_prog_compiler_pic_CXX='+Z'
15755	    fi
15756	    ;;
15757	  aCC*)
15758	    lt_prog_compiler_wl_CXX='-Wl,'
15759	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15760	    case $host_cpu in
15761	    hppa*64*|ia64*)
15762	      # +Z the default
15763	      ;;
15764	    *)
15765	      lt_prog_compiler_pic_CXX='+Z'
15766	      ;;
15767	    esac
15768	    ;;
15769	  *)
15770	    ;;
15771	esac
15772	;;
15773      interix*)
15774	# This is c89, which is MS Visual C++ (no shared libs)
15775	# Anyone wants to do a port?
15776	;;
15777      irix5* | irix6* | nonstopux*)
15778	case $cc_basename in
15779	  CC*)
15780	    lt_prog_compiler_wl_CXX='-Wl,'
15781	    lt_prog_compiler_static_CXX='-non_shared'
15782	    # CC pic flag -KPIC is the default.
15783	    ;;
15784	  *)
15785	    ;;
15786	esac
15787	;;
15788      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15789	case $cc_basename in
15790	  KCC*)
15791	    # KAI C++ Compiler
15792	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15793	    lt_prog_compiler_pic_CXX='-fPIC'
15794	    ;;
15795	  ecpc* )
15796	    # old Intel C++ for x86_64 which still supported -KPIC.
15797	    lt_prog_compiler_wl_CXX='-Wl,'
15798	    lt_prog_compiler_pic_CXX='-KPIC'
15799	    lt_prog_compiler_static_CXX='-static'
15800	    ;;
15801	  icpc* )
15802	    # Intel C++, used to be incompatible with GCC.
15803	    # ICC 10 doesn't accept -KPIC any more.
15804	    lt_prog_compiler_wl_CXX='-Wl,'
15805	    lt_prog_compiler_pic_CXX='-fPIC'
15806	    lt_prog_compiler_static_CXX='-static'
15807	    ;;
15808	  pgCC* | pgcpp*)
15809	    # Portland Group C++ compiler
15810	    lt_prog_compiler_wl_CXX='-Wl,'
15811	    lt_prog_compiler_pic_CXX='-fpic'
15812	    lt_prog_compiler_static_CXX='-Bstatic'
15813	    ;;
15814	  cxx*)
15815	    # Compaq C++
15816	    # Make sure the PIC flag is empty.  It appears that all Alpha
15817	    # Linux and Compaq Tru64 Unix objects are PIC.
15818	    lt_prog_compiler_pic_CXX=
15819	    lt_prog_compiler_static_CXX='-non_shared'
15820	    ;;
15821	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15822	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15823	    lt_prog_compiler_wl_CXX='-Wl,'
15824	    lt_prog_compiler_pic_CXX='-qpic'
15825	    lt_prog_compiler_static_CXX='-qstaticlink'
15826	    ;;
15827	  *)
15828	    case `$CC -V 2>&1 | sed 5q` in
15829	    *Sun\ C*)
15830	      # Sun C++ 5.9
15831	      lt_prog_compiler_pic_CXX='-KPIC'
15832	      lt_prog_compiler_static_CXX='-Bstatic'
15833	      lt_prog_compiler_wl_CXX='-Qoption ld '
15834	      ;;
15835	    esac
15836	    ;;
15837	esac
15838	;;
15839      lynxos*)
15840	;;
15841      m88k*)
15842	;;
15843      mvs*)
15844	case $cc_basename in
15845	  cxx*)
15846	    lt_prog_compiler_pic_CXX='-W c,exportall'
15847	    ;;
15848	  *)
15849	    ;;
15850	esac
15851	;;
15852      netbsd* | netbsdelf*-gnu)
15853	;;
15854      *qnx* | *nto*)
15855        # QNX uses GNU C++, but need to define -shared option too, otherwise
15856        # it will coredump.
15857        lt_prog_compiler_pic_CXX='-fPIC -shared'
15858        ;;
15859      osf3* | osf4* | osf5*)
15860	case $cc_basename in
15861	  KCC*)
15862	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15863	    ;;
15864	  RCC*)
15865	    # Rational C++ 2.4.1
15866	    lt_prog_compiler_pic_CXX='-pic'
15867	    ;;
15868	  cxx*)
15869	    # Digital/Compaq C++
15870	    lt_prog_compiler_wl_CXX='-Wl,'
15871	    # Make sure the PIC flag is empty.  It appears that all Alpha
15872	    # Linux and Compaq Tru64 Unix objects are PIC.
15873	    lt_prog_compiler_pic_CXX=
15874	    lt_prog_compiler_static_CXX='-non_shared'
15875	    ;;
15876	  *)
15877	    ;;
15878	esac
15879	;;
15880      psos*)
15881	;;
15882      solaris*)
15883	case $cc_basename in
15884	  CC* | sunCC*)
15885	    # Sun C++ 4.2, 5.x and Centerline C++
15886	    lt_prog_compiler_pic_CXX='-KPIC'
15887	    lt_prog_compiler_static_CXX='-Bstatic'
15888	    lt_prog_compiler_wl_CXX='-Qoption ld '
15889	    ;;
15890	  gcx*)
15891	    # Green Hills C++ Compiler
15892	    lt_prog_compiler_pic_CXX='-PIC'
15893	    ;;
15894	  *)
15895	    ;;
15896	esac
15897	;;
15898      sunos4*)
15899	case $cc_basename in
15900	  CC*)
15901	    # Sun C++ 4.x
15902	    lt_prog_compiler_pic_CXX='-pic'
15903	    lt_prog_compiler_static_CXX='-Bstatic'
15904	    ;;
15905	  lcc*)
15906	    # Lucid
15907	    lt_prog_compiler_pic_CXX='-pic'
15908	    ;;
15909	  *)
15910	    ;;
15911	esac
15912	;;
15913      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15914	case $cc_basename in
15915	  CC*)
15916	    lt_prog_compiler_wl_CXX='-Wl,'
15917	    lt_prog_compiler_pic_CXX='-KPIC'
15918	    lt_prog_compiler_static_CXX='-Bstatic'
15919	    ;;
15920	esac
15921	;;
15922      tandem*)
15923	case $cc_basename in
15924	  NCC*)
15925	    # NonStop-UX NCC 3.20
15926	    lt_prog_compiler_pic_CXX='-KPIC'
15927	    ;;
15928	  *)
15929	    ;;
15930	esac
15931	;;
15932      vxworks*)
15933	;;
15934      *)
15935	lt_prog_compiler_can_build_shared_CXX=no
15936	;;
15937    esac
15938  fi
15939
15940case $host_os in
15941  # For platforms which do not support PIC, -DPIC is meaningless:
15942  *djgpp*)
15943    lt_prog_compiler_pic_CXX=
15944    ;;
15945  *)
15946    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15947    ;;
15948esac
15949
15950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15951$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15952if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15953  $as_echo_n "(cached) " >&6
15954else
15955  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15956fi
15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15958$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15959lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15960
15961#
15962# Check to make sure the PIC flag actually works.
15963#
15964if test -n "$lt_prog_compiler_pic_CXX"; then
15965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15966$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15967if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15968  $as_echo_n "(cached) " >&6
15969else
15970  lt_cv_prog_compiler_pic_works_CXX=no
15971   ac_outfile=conftest.$ac_objext
15972   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15973   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15974   # Insert the option either (1) after the last *FLAGS variable, or
15975   # (2) before a word containing "conftest.", or (3) at the end.
15976   # Note that $ac_compile itself does not contain backslashes and begins
15977   # with a dollar sign (not a hyphen), so the echo should work correctly.
15978   # The option is referenced via a variable to avoid confusing sed.
15979   lt_compile=`echo "$ac_compile" | $SED \
15980   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15981   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15982   -e 's:$: $lt_compiler_flag:'`
15983   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15984   (eval "$lt_compile" 2>conftest.err)
15985   ac_status=$?
15986   cat conftest.err >&5
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   if (exit $ac_status) && test -s "$ac_outfile"; then
15989     # The compiler can only warn and ignore the option if not recognized
15990     # So say no if there are warnings other than the usual output.
15991     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15992     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15993     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15994       lt_cv_prog_compiler_pic_works_CXX=yes
15995     fi
15996   fi
15997   $RM conftest*
15998
15999fi
16000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16001$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16002
16003if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16004    case $lt_prog_compiler_pic_CXX in
16005     "" | " "*) ;;
16006     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16007     esac
16008else
16009    lt_prog_compiler_pic_CXX=
16010     lt_prog_compiler_can_build_shared_CXX=no
16011fi
16012
16013fi
16014
16015
16016
16017
16018
16019#
16020# Check to make sure the static flag actually works.
16021#
16022wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16024$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16025if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16026  $as_echo_n "(cached) " >&6
16027else
16028  lt_cv_prog_compiler_static_works_CXX=no
16029   save_LDFLAGS="$LDFLAGS"
16030   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16031   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16032   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16033     # The linker can only warn and ignore the option if not recognized
16034     # So say no if there are warnings
16035     if test -s conftest.err; then
16036       # Append any errors to the config.log.
16037       cat conftest.err 1>&5
16038       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16039       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16040       if diff conftest.exp conftest.er2 >/dev/null; then
16041         lt_cv_prog_compiler_static_works_CXX=yes
16042       fi
16043     else
16044       lt_cv_prog_compiler_static_works_CXX=yes
16045     fi
16046   fi
16047   $RM -r conftest*
16048   LDFLAGS="$save_LDFLAGS"
16049
16050fi
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16052$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16053
16054if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16055    :
16056else
16057    lt_prog_compiler_static_CXX=
16058fi
16059
16060
16061
16062
16063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16064$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16065if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16066  $as_echo_n "(cached) " >&6
16067else
16068  lt_cv_prog_compiler_c_o_CXX=no
16069   $RM -r conftest 2>/dev/null
16070   mkdir conftest
16071   cd conftest
16072   mkdir out
16073   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16074
16075   lt_compiler_flag="-o out/conftest2.$ac_objext"
16076   # Insert the option either (1) after the last *FLAGS variable, or
16077   # (2) before a word containing "conftest.", or (3) at the end.
16078   # Note that $ac_compile itself does not contain backslashes and begins
16079   # with a dollar sign (not a hyphen), so the echo should work correctly.
16080   lt_compile=`echo "$ac_compile" | $SED \
16081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083   -e 's:$: $lt_compiler_flag:'`
16084   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16085   (eval "$lt_compile" 2>out/conftest.err)
16086   ac_status=$?
16087   cat out/conftest.err >&5
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16090   then
16091     # The compiler can only warn and ignore the option if not recognized
16092     # So say no if there are warnings
16093     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16094     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16095     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16096       lt_cv_prog_compiler_c_o_CXX=yes
16097     fi
16098   fi
16099   chmod u+w . 2>&5
16100   $RM conftest*
16101   # SGI C++ compiler will create directory out/ii_files/ for
16102   # template instantiation
16103   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16104   $RM out/* && rmdir out
16105   cd ..
16106   $RM -r conftest
16107   $RM conftest*
16108
16109fi
16110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16111$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16112
16113
16114
16115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16116$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16117if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16118  $as_echo_n "(cached) " >&6
16119else
16120  lt_cv_prog_compiler_c_o_CXX=no
16121   $RM -r conftest 2>/dev/null
16122   mkdir conftest
16123   cd conftest
16124   mkdir out
16125   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16126
16127   lt_compiler_flag="-o out/conftest2.$ac_objext"
16128   # Insert the option either (1) after the last *FLAGS variable, or
16129   # (2) before a word containing "conftest.", or (3) at the end.
16130   # Note that $ac_compile itself does not contain backslashes and begins
16131   # with a dollar sign (not a hyphen), so the echo should work correctly.
16132   lt_compile=`echo "$ac_compile" | $SED \
16133   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16135   -e 's:$: $lt_compiler_flag:'`
16136   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16137   (eval "$lt_compile" 2>out/conftest.err)
16138   ac_status=$?
16139   cat out/conftest.err >&5
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16142   then
16143     # The compiler can only warn and ignore the option if not recognized
16144     # So say no if there are warnings
16145     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16146     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16147     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16148       lt_cv_prog_compiler_c_o_CXX=yes
16149     fi
16150   fi
16151   chmod u+w . 2>&5
16152   $RM conftest*
16153   # SGI C++ compiler will create directory out/ii_files/ for
16154   # template instantiation
16155   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16156   $RM out/* && rmdir out
16157   cd ..
16158   $RM -r conftest
16159   $RM conftest*
16160
16161fi
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16163$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16164
16165
16166
16167
16168hard_links="nottested"
16169if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16170  # do not overwrite the value of need_locks provided by the user
16171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16172$as_echo_n "checking if we can lock with hard links... " >&6; }
16173  hard_links=yes
16174  $RM conftest*
16175  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16176  touch conftest.a
16177  ln conftest.a conftest.b 2>&5 || hard_links=no
16178  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16180$as_echo "$hard_links" >&6; }
16181  if test "$hard_links" = no; then
16182    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16183$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16184    need_locks=warn
16185  fi
16186else
16187  need_locks=no
16188fi
16189
16190
16191
16192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16193$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16194
16195  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16196  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16197  case $host_os in
16198  aix[4-9]*)
16199    # If we're using GNU nm, then we don't want the "-C" option.
16200    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16201    # Also, AIX nm treats weak defined symbols like other global defined
16202    # symbols, whereas GNU nm marks them as "W".
16203    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16204      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16205    else
16206      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16207    fi
16208    ;;
16209  pw32*)
16210    export_symbols_cmds_CXX="$ltdll_cmds"
16211    ;;
16212  cygwin* | mingw* | cegcc*)
16213    case $cc_basename in
16214    cl*)
16215      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16216      ;;
16217    *)
16218      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'
16219      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16220      ;;
16221    esac
16222    ;;
16223  linux* | k*bsd*-gnu | gnu*)
16224    link_all_deplibs_CXX=no
16225    ;;
16226  *)
16227    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16228    ;;
16229  esac
16230
16231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16232$as_echo "$ld_shlibs_CXX" >&6; }
16233test "$ld_shlibs_CXX" = no && can_build_shared=no
16234
16235with_gnu_ld_CXX=$with_gnu_ld
16236
16237
16238
16239
16240
16241
16242#
16243# Do we need to explicitly link libc?
16244#
16245case "x$archive_cmds_need_lc_CXX" in
16246x|xyes)
16247  # Assume -lc should be added
16248  archive_cmds_need_lc_CXX=yes
16249
16250  if test "$enable_shared" = yes && test "$GCC" = yes; then
16251    case $archive_cmds_CXX in
16252    *'~'*)
16253      # FIXME: we may have to deal with multi-command sequences.
16254      ;;
16255    '$CC '*)
16256      # Test whether the compiler implicitly links with -lc since on some
16257      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16258      # to ld, don't add -lc before -lgcc.
16259      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16260$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16261if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16262  $as_echo_n "(cached) " >&6
16263else
16264  $RM conftest*
16265	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16266
16267	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16268  (eval $ac_compile) 2>&5
16269  ac_status=$?
16270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16271  test $ac_status = 0; } 2>conftest.err; then
16272	  soname=conftest
16273	  lib=conftest
16274	  libobjs=conftest.$ac_objext
16275	  deplibs=
16276	  wl=$lt_prog_compiler_wl_CXX
16277	  pic_flag=$lt_prog_compiler_pic_CXX
16278	  compiler_flags=-v
16279	  linker_flags=-v
16280	  verstring=
16281	  output_objdir=.
16282	  libname=conftest
16283	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16284	  allow_undefined_flag_CXX=
16285	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16286  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16287  ac_status=$?
16288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16289  test $ac_status = 0; }
16290	  then
16291	    lt_cv_archive_cmds_need_lc_CXX=no
16292	  else
16293	    lt_cv_archive_cmds_need_lc_CXX=yes
16294	  fi
16295	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16296	else
16297	  cat conftest.err 1>&5
16298	fi
16299	$RM conftest*
16300
16301fi
16302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16303$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16304      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16305      ;;
16306    esac
16307  fi
16308  ;;
16309esac
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16373$as_echo_n "checking dynamic linker characteristics... " >&6; }
16374
16375library_names_spec=
16376libname_spec='lib$name'
16377soname_spec=
16378shrext_cmds=".so"
16379postinstall_cmds=
16380postuninstall_cmds=
16381finish_cmds=
16382finish_eval=
16383shlibpath_var=
16384shlibpath_overrides_runpath=unknown
16385version_type=none
16386dynamic_linker="$host_os ld.so"
16387sys_lib_dlsearch_path_spec="/lib /usr/lib"
16388need_lib_prefix=unknown
16389hardcode_into_libs=no
16390
16391# when you set need_version to no, make sure it does not cause -set_version
16392# flags to be left without arguments
16393need_version=unknown
16394
16395case $host_os in
16396aix3*)
16397  version_type=linux # correct to gnu/linux during the next big refactor
16398  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16399  shlibpath_var=LIBPATH
16400
16401  # AIX 3 has no versioning support, so we append a major version to the name.
16402  soname_spec='${libname}${release}${shared_ext}$major'
16403  ;;
16404
16405aix[4-9]*)
16406  version_type=linux # correct to gnu/linux during the next big refactor
16407  need_lib_prefix=no
16408  need_version=no
16409  hardcode_into_libs=yes
16410  if test "$host_cpu" = ia64; then
16411    # AIX 5 supports IA64
16412    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16413    shlibpath_var=LD_LIBRARY_PATH
16414  else
16415    # With GCC up to 2.95.x, collect2 would create an import file
16416    # for dependence libraries.  The import file would start with
16417    # the line `#! .'.  This would cause the generated library to
16418    # depend on `.', always an invalid library.  This was fixed in
16419    # development snapshots of GCC prior to 3.0.
16420    case $host_os in
16421      aix4 | aix4.[01] | aix4.[01].*)
16422      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16423	   echo ' yes '
16424	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16425	:
16426      else
16427	can_build_shared=no
16428      fi
16429      ;;
16430    esac
16431    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16432    # soname into executable. Probably we can add versioning support to
16433    # collect2, so additional links can be useful in future.
16434    if test "$aix_use_runtimelinking" = yes; then
16435      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16436      # instead of lib<name>.a to let people know that these are not
16437      # typical AIX shared libraries.
16438      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439    else
16440      # We preserve .a as extension for shared libraries through AIX4.2
16441      # and later when we are not doing run time linking.
16442      library_names_spec='${libname}${release}.a $libname.a'
16443      soname_spec='${libname}${release}${shared_ext}$major'
16444    fi
16445    shlibpath_var=LIBPATH
16446  fi
16447  ;;
16448
16449amigaos*)
16450  case $host_cpu in
16451  powerpc)
16452    # Since July 2007 AmigaOS4 officially supports .so libraries.
16453    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16454    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455    ;;
16456  m68k)
16457    library_names_spec='$libname.ixlibrary $libname.a'
16458    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16459    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16460    ;;
16461  esac
16462  ;;
16463
16464beos*)
16465  library_names_spec='${libname}${shared_ext}'
16466  dynamic_linker="$host_os ld.so"
16467  shlibpath_var=LIBRARY_PATH
16468  ;;
16469
16470bsdi[45]*)
16471  version_type=linux # correct to gnu/linux during the next big refactor
16472  need_version=no
16473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474  soname_spec='${libname}${release}${shared_ext}$major'
16475  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16476  shlibpath_var=LD_LIBRARY_PATH
16477  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16478  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16479  # the default ld.so.conf also contains /usr/contrib/lib and
16480  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16481  # libtool to hard-code these into programs
16482  ;;
16483
16484cygwin* | mingw* | pw32* | cegcc*)
16485  version_type=windows
16486  shrext_cmds=".dll"
16487  need_version=no
16488  need_lib_prefix=no
16489
16490  case $GCC,$cc_basename in
16491  yes,*)
16492    # gcc
16493    library_names_spec='$libname.dll.a'
16494    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16495    postinstall_cmds='base_file=`basename \${file}`~
16496      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16497      dldir=$destdir/`dirname \$dlpath`~
16498      test -d \$dldir || mkdir -p \$dldir~
16499      $install_prog $dir/$dlname \$dldir/$dlname~
16500      chmod a+x \$dldir/$dlname~
16501      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16502        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16503      fi'
16504    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16505      dlpath=$dir/\$dldll~
16506       $RM \$dlpath'
16507    shlibpath_overrides_runpath=yes
16508
16509    case $host_os in
16510    cygwin*)
16511      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16512      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16513
16514      ;;
16515    mingw* | cegcc*)
16516      # MinGW DLLs use traditional 'lib' prefix
16517      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16518      ;;
16519    pw32*)
16520      # pw32 DLLs use 'pw' prefix rather than 'lib'
16521      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16522      ;;
16523    esac
16524    dynamic_linker='Win32 ld.exe'
16525    ;;
16526
16527  *,cl*)
16528    # Native MSVC
16529    libname_spec='$name'
16530    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16531    library_names_spec='${libname}.dll.lib'
16532
16533    case $build_os in
16534    mingw*)
16535      sys_lib_search_path_spec=
16536      lt_save_ifs=$IFS
16537      IFS=';'
16538      for lt_path in $LIB
16539      do
16540        IFS=$lt_save_ifs
16541        # Let DOS variable expansion print the short 8.3 style file name.
16542        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16543        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16544      done
16545      IFS=$lt_save_ifs
16546      # Convert to MSYS style.
16547      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16548      ;;
16549    cygwin*)
16550      # Convert to unix form, then to dos form, then back to unix form
16551      # but this time dos style (no spaces!) so that the unix form looks
16552      # like /cygdrive/c/PROGRA~1:/cygdr...
16553      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16554      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16555      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16556      ;;
16557    *)
16558      sys_lib_search_path_spec="$LIB"
16559      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16560        # It is most probably a Windows format PATH.
16561        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16562      else
16563        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16564      fi
16565      # FIXME: find the short name or the path components, as spaces are
16566      # common. (e.g. "Program Files" -> "PROGRA~1")
16567      ;;
16568    esac
16569
16570    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16571    postinstall_cmds='base_file=`basename \${file}`~
16572      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16573      dldir=$destdir/`dirname \$dlpath`~
16574      test -d \$dldir || mkdir -p \$dldir~
16575      $install_prog $dir/$dlname \$dldir/$dlname'
16576    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16577      dlpath=$dir/\$dldll~
16578       $RM \$dlpath'
16579    shlibpath_overrides_runpath=yes
16580    dynamic_linker='Win32 link.exe'
16581    ;;
16582
16583  *)
16584    # Assume MSVC wrapper
16585    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16586    dynamic_linker='Win32 ld.exe'
16587    ;;
16588  esac
16589  # FIXME: first we should search . and the directory the executable is in
16590  shlibpath_var=PATH
16591  ;;
16592
16593darwin* | rhapsody*)
16594  dynamic_linker="$host_os dyld"
16595  version_type=darwin
16596  need_lib_prefix=no
16597  need_version=no
16598  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16599  soname_spec='${libname}${release}${major}$shared_ext'
16600  shlibpath_overrides_runpath=yes
16601  shlibpath_var=DYLD_LIBRARY_PATH
16602  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16603
16604  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16605  ;;
16606
16607dgux*)
16608  version_type=linux # correct to gnu/linux during the next big refactor
16609  need_lib_prefix=no
16610  need_version=no
16611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16612  soname_spec='${libname}${release}${shared_ext}$major'
16613  shlibpath_var=LD_LIBRARY_PATH
16614  ;;
16615
16616freebsd* | dragonfly*)
16617  # DragonFly does not have aout.  When/if they implement a new
16618  # versioning mechanism, adjust this.
16619  if test -x /usr/bin/objformat; then
16620    objformat=`/usr/bin/objformat`
16621  else
16622    case $host_os in
16623    freebsd[23].*) objformat=aout ;;
16624    *) objformat=elf ;;
16625    esac
16626  fi
16627  version_type=freebsd-$objformat
16628  case $version_type in
16629    freebsd-elf*)
16630      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16631      need_version=no
16632      need_lib_prefix=no
16633      ;;
16634    freebsd-*)
16635      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16636      need_version=yes
16637      ;;
16638  esac
16639  shlibpath_var=LD_LIBRARY_PATH
16640  case $host_os in
16641  freebsd2.*)
16642    shlibpath_overrides_runpath=yes
16643    ;;
16644  freebsd3.[01]* | freebsdelf3.[01]*)
16645    shlibpath_overrides_runpath=yes
16646    hardcode_into_libs=yes
16647    ;;
16648  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16649  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16650    shlibpath_overrides_runpath=no
16651    hardcode_into_libs=yes
16652    ;;
16653  *) # from 4.6 on, and DragonFly
16654    shlibpath_overrides_runpath=yes
16655    hardcode_into_libs=yes
16656    ;;
16657  esac
16658  ;;
16659
16660gnu*)
16661  version_type=linux # correct to gnu/linux during the next big refactor
16662  need_lib_prefix=no
16663  need_version=no
16664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16665  soname_spec='${libname}${release}${shared_ext}$major'
16666  shlibpath_var=LD_LIBRARY_PATH
16667  shlibpath_overrides_runpath=no
16668  hardcode_into_libs=yes
16669  ;;
16670
16671haiku*)
16672  version_type=linux # correct to gnu/linux during the next big refactor
16673  need_lib_prefix=no
16674  need_version=no
16675  dynamic_linker="$host_os runtime_loader"
16676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16677  soname_spec='${libname}${release}${shared_ext}$major'
16678  shlibpath_var=LIBRARY_PATH
16679  shlibpath_overrides_runpath=yes
16680  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16681  hardcode_into_libs=yes
16682  ;;
16683
16684hpux9* | hpux10* | hpux11*)
16685  # Give a soname corresponding to the major version so that dld.sl refuses to
16686  # link against other versions.
16687  version_type=sunos
16688  need_lib_prefix=no
16689  need_version=no
16690  case $host_cpu in
16691  ia64*)
16692    shrext_cmds='.so'
16693    hardcode_into_libs=yes
16694    dynamic_linker="$host_os dld.so"
16695    shlibpath_var=LD_LIBRARY_PATH
16696    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16697    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698    soname_spec='${libname}${release}${shared_ext}$major'
16699    if test "X$HPUX_IA64_MODE" = X32; then
16700      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16701    else
16702      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16703    fi
16704    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16705    ;;
16706  hppa*64*)
16707    shrext_cmds='.sl'
16708    hardcode_into_libs=yes
16709    dynamic_linker="$host_os dld.sl"
16710    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16711    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16713    soname_spec='${libname}${release}${shared_ext}$major'
16714    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16715    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16716    ;;
16717  *)
16718    shrext_cmds='.sl'
16719    dynamic_linker="$host_os dld.sl"
16720    shlibpath_var=SHLIB_PATH
16721    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16722    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723    soname_spec='${libname}${release}${shared_ext}$major'
16724    ;;
16725  esac
16726  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16727  postinstall_cmds='chmod 555 $lib'
16728  # or fails outright, so override atomically:
16729  install_override_mode=555
16730  ;;
16731
16732interix[3-9]*)
16733  version_type=linux # correct to gnu/linux during the next big refactor
16734  need_lib_prefix=no
16735  need_version=no
16736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16737  soname_spec='${libname}${release}${shared_ext}$major'
16738  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16739  shlibpath_var=LD_LIBRARY_PATH
16740  shlibpath_overrides_runpath=no
16741  hardcode_into_libs=yes
16742  ;;
16743
16744irix5* | irix6* | nonstopux*)
16745  case $host_os in
16746    nonstopux*) version_type=nonstopux ;;
16747    *)
16748	if test "$lt_cv_prog_gnu_ld" = yes; then
16749		version_type=linux # correct to gnu/linux during the next big refactor
16750	else
16751		version_type=irix
16752	fi ;;
16753  esac
16754  need_lib_prefix=no
16755  need_version=no
16756  soname_spec='${libname}${release}${shared_ext}$major'
16757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16758  case $host_os in
16759  irix5* | nonstopux*)
16760    libsuff= shlibsuff=
16761    ;;
16762  *)
16763    case $LD in # libtool.m4 will add one of these switches to LD
16764    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16765      libsuff= shlibsuff= libmagic=32-bit;;
16766    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16767      libsuff=32 shlibsuff=N32 libmagic=N32;;
16768    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16769      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16770    *) libsuff= shlibsuff= libmagic=never-match;;
16771    esac
16772    ;;
16773  esac
16774  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16775  shlibpath_overrides_runpath=no
16776  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16777  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16778  hardcode_into_libs=yes
16779  ;;
16780
16781# No shared lib support for Linux oldld, aout, or coff.
16782linux*oldld* | linux*aout* | linux*coff*)
16783  dynamic_linker=no
16784  ;;
16785
16786linux*android*)
16787  version_type=none # Android doesn't support versioned libraries.
16788  need_lib_prefix=no
16789  need_version=no
16790  library_names_spec='$libname$release$shared_ext'
16791  soname_spec='$libname$release$shared_ext'
16792  finish_cmds=
16793  shlibpath_var=LD_LIBRARY_PATH
16794  shlibpath_overrides_runpath=yes
16795
16796  # This implies no fast_install, which is unacceptable.
16797  # Some rework will be needed to allow for fast_install
16798  # before this can be enabled.
16799  hardcode_into_libs=yes
16800
16801  dynamic_linker='Android linker'
16802  # Don't embed -rpath directories since the linker doesn't support them.
16803  hardcode_libdir_flag_spec_CXX='-L$libdir'
16804  ;;
16805
16806# This must be glibc/ELF.
16807linux* | k*bsd*-gnu | kopensolaris*-gnu)
16808  version_type=linux # correct to gnu/linux during the next big refactor
16809  need_lib_prefix=no
16810  need_version=no
16811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812  soname_spec='${libname}${release}${shared_ext}$major'
16813  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16814  shlibpath_var=LD_LIBRARY_PATH
16815  shlibpath_overrides_runpath=no
16816
16817  # Some binutils ld are patched to set DT_RUNPATH
16818  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16819  $as_echo_n "(cached) " >&6
16820else
16821  lt_cv_shlibpath_overrides_runpath=no
16822    save_LDFLAGS=$LDFLAGS
16823    save_libdir=$libdir
16824    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16825	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16826    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827/* end confdefs.h.  */
16828
16829int
16830main ()
16831{
16832
16833  ;
16834  return 0;
16835}
16836_ACEOF
16837if ac_fn_cxx_try_link "$LINENO"; then :
16838  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16839  lt_cv_shlibpath_overrides_runpath=yes
16840fi
16841fi
16842rm -f core conftest.err conftest.$ac_objext \
16843    conftest$ac_exeext conftest.$ac_ext
16844    LDFLAGS=$save_LDFLAGS
16845    libdir=$save_libdir
16846
16847fi
16848
16849  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16850
16851  # This implies no fast_install, which is unacceptable.
16852  # Some rework will be needed to allow for fast_install
16853  # before this can be enabled.
16854  hardcode_into_libs=yes
16855
16856  # Append ld.so.conf contents to the search path
16857  if test -f /etc/ld.so.conf; then
16858    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' ' '`
16859    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16860  fi
16861
16862  # We used to test for /lib/ld.so.1 and disable shared libraries on
16863  # powerpc, because MkLinux only supported shared libraries with the
16864  # GNU dynamic linker.  Since this was broken with cross compilers,
16865  # most powerpc-linux boxes support dynamic linking these days and
16866  # people can always --disable-shared, the test was removed, and we
16867  # assume the GNU/Linux dynamic linker is in use.
16868  dynamic_linker='GNU/Linux ld.so'
16869  ;;
16870
16871netbsdelf*-gnu)
16872  version_type=linux
16873  need_lib_prefix=no
16874  need_version=no
16875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16876  soname_spec='${libname}${release}${shared_ext}$major'
16877  shlibpath_var=LD_LIBRARY_PATH
16878  shlibpath_overrides_runpath=no
16879  hardcode_into_libs=yes
16880  dynamic_linker='NetBSD ld.elf_so'
16881  ;;
16882
16883netbsd*)
16884  version_type=sunos
16885  need_lib_prefix=no
16886  need_version=no
16887  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16888    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16889    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16890    dynamic_linker='NetBSD (a.out) ld.so'
16891  else
16892    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16893    soname_spec='${libname}${release}${shared_ext}$major'
16894    dynamic_linker='NetBSD ld.elf_so'
16895  fi
16896  shlibpath_var=LD_LIBRARY_PATH
16897  shlibpath_overrides_runpath=yes
16898  hardcode_into_libs=yes
16899  ;;
16900
16901newsos6)
16902  version_type=linux # correct to gnu/linux during the next big refactor
16903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16904  shlibpath_var=LD_LIBRARY_PATH
16905  shlibpath_overrides_runpath=yes
16906  ;;
16907
16908*nto* | *qnx*)
16909  version_type=qnx
16910  need_lib_prefix=no
16911  need_version=no
16912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913  soname_spec='${libname}${release}${shared_ext}$major'
16914  shlibpath_var=LD_LIBRARY_PATH
16915  shlibpath_overrides_runpath=no
16916  hardcode_into_libs=yes
16917  dynamic_linker='ldqnx.so'
16918  ;;
16919
16920openbsd*)
16921  version_type=sunos
16922  sys_lib_dlsearch_path_spec="/usr/lib"
16923  need_lib_prefix=no
16924  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16925  case $host_os in
16926    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16927    *)				need_version=no  ;;
16928  esac
16929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16930  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16931  shlibpath_var=LD_LIBRARY_PATH
16932  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16933    case $host_os in
16934      openbsd2.[89] | openbsd2.[89].*)
16935	shlibpath_overrides_runpath=no
16936	;;
16937      *)
16938	shlibpath_overrides_runpath=yes
16939	;;
16940      esac
16941  else
16942    shlibpath_overrides_runpath=yes
16943  fi
16944  ;;
16945
16946os2*)
16947  libname_spec='$name'
16948  shrext_cmds=".dll"
16949  need_lib_prefix=no
16950  library_names_spec='$libname${shared_ext} $libname.a'
16951  dynamic_linker='OS/2 ld.exe'
16952  shlibpath_var=LIBPATH
16953  ;;
16954
16955osf3* | osf4* | osf5*)
16956  version_type=osf
16957  need_lib_prefix=no
16958  need_version=no
16959  soname_spec='${libname}${release}${shared_ext}$major'
16960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961  shlibpath_var=LD_LIBRARY_PATH
16962  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16963  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16964  ;;
16965
16966rdos*)
16967  dynamic_linker=no
16968  ;;
16969
16970solaris*)
16971  version_type=linux # correct to gnu/linux during the next big refactor
16972  need_lib_prefix=no
16973  need_version=no
16974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16975  soname_spec='${libname}${release}${shared_ext}$major'
16976  shlibpath_var=LD_LIBRARY_PATH
16977  shlibpath_overrides_runpath=yes
16978  hardcode_into_libs=yes
16979  # ldd complains unless libraries are executable
16980  postinstall_cmds='chmod +x $lib'
16981  ;;
16982
16983sunos4*)
16984  version_type=sunos
16985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16986  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16987  shlibpath_var=LD_LIBRARY_PATH
16988  shlibpath_overrides_runpath=yes
16989  if test "$with_gnu_ld" = yes; then
16990    need_lib_prefix=no
16991  fi
16992  need_version=yes
16993  ;;
16994
16995sysv4 | sysv4.3*)
16996  version_type=linux # correct to gnu/linux during the next big refactor
16997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998  soname_spec='${libname}${release}${shared_ext}$major'
16999  shlibpath_var=LD_LIBRARY_PATH
17000  case $host_vendor in
17001    sni)
17002      shlibpath_overrides_runpath=no
17003      need_lib_prefix=no
17004      runpath_var=LD_RUN_PATH
17005      ;;
17006    siemens)
17007      need_lib_prefix=no
17008      ;;
17009    motorola)
17010      need_lib_prefix=no
17011      need_version=no
17012      shlibpath_overrides_runpath=no
17013      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17014      ;;
17015  esac
17016  ;;
17017
17018sysv4*MP*)
17019  if test -d /usr/nec ;then
17020    version_type=linux # correct to gnu/linux during the next big refactor
17021    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17022    soname_spec='$libname${shared_ext}.$major'
17023    shlibpath_var=LD_LIBRARY_PATH
17024  fi
17025  ;;
17026
17027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17028  version_type=freebsd-elf
17029  need_lib_prefix=no
17030  need_version=no
17031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17032  soname_spec='${libname}${release}${shared_ext}$major'
17033  shlibpath_var=LD_LIBRARY_PATH
17034  shlibpath_overrides_runpath=yes
17035  hardcode_into_libs=yes
17036  if test "$with_gnu_ld" = yes; then
17037    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17038  else
17039    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17040    case $host_os in
17041      sco3.2v5*)
17042        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17043	;;
17044    esac
17045  fi
17046  sys_lib_dlsearch_path_spec='/usr/lib'
17047  ;;
17048
17049tpf*)
17050  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17051  version_type=linux # correct to gnu/linux during the next big refactor
17052  need_lib_prefix=no
17053  need_version=no
17054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055  shlibpath_var=LD_LIBRARY_PATH
17056  shlibpath_overrides_runpath=no
17057  hardcode_into_libs=yes
17058  ;;
17059
17060uts4*)
17061  version_type=linux # correct to gnu/linux during the next big refactor
17062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063  soname_spec='${libname}${release}${shared_ext}$major'
17064  shlibpath_var=LD_LIBRARY_PATH
17065  ;;
17066
17067*)
17068  dynamic_linker=no
17069  ;;
17070esac
17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17072$as_echo "$dynamic_linker" >&6; }
17073test "$dynamic_linker" = no && can_build_shared=no
17074
17075variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17076if test "$GCC" = yes; then
17077  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17078fi
17079
17080if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17081  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17082fi
17083if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17084  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17085fi
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17125$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17126hardcode_action_CXX=
17127if test -n "$hardcode_libdir_flag_spec_CXX" ||
17128   test -n "$runpath_var_CXX" ||
17129   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17130
17131  # We can hardcode non-existent directories.
17132  if test "$hardcode_direct_CXX" != no &&
17133     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17134     # have to relink, otherwise we might link with an installed library
17135     # when we should be linking with a yet-to-be-installed one
17136     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17137     test "$hardcode_minus_L_CXX" != no; then
17138    # Linking always hardcodes the temporary library directory.
17139    hardcode_action_CXX=relink
17140  else
17141    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17142    hardcode_action_CXX=immediate
17143  fi
17144else
17145  # We cannot hardcode anything, or else we can only hardcode existing
17146  # directories.
17147  hardcode_action_CXX=unsupported
17148fi
17149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17150$as_echo "$hardcode_action_CXX" >&6; }
17151
17152if test "$hardcode_action_CXX" = relink ||
17153   test "$inherit_rpath_CXX" = yes; then
17154  # Fast installation is not supported
17155  enable_fast_install=no
17156elif test "$shlibpath_overrides_runpath" = yes ||
17157     test "$enable_shared" = no; then
17158  # Fast installation is not necessary
17159  enable_fast_install=needless
17160fi
17161
17162
17163
17164
17165
17166
17167
17168  fi # test -n "$compiler"
17169
17170  CC=$lt_save_CC
17171  CFLAGS=$lt_save_CFLAGS
17172  LDCXX=$LD
17173  LD=$lt_save_LD
17174  GCC=$lt_save_GCC
17175  with_gnu_ld=$lt_save_with_gnu_ld
17176  lt_cv_path_LDCXX=$lt_cv_path_LD
17177  lt_cv_path_LD=$lt_save_path_LD
17178  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17179  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17180fi # test "$_lt_caught_CXX_error" != yes
17181
17182ac_ext=c
17183ac_cpp='$CPP $CPPFLAGS'
17184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186ac_compiler_gnu=$ac_cv_c_compiler_gnu
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202        ac_config_commands="$ac_config_commands libtool"
17203
17204
17205
17206
17207# Only expand once:
17208
17209
17210if test -n "$ac_tool_prefix"; then
17211  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17212set dummy ${ac_tool_prefix}windres; ac_word=$2
17213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17214$as_echo_n "checking for $ac_word... " >&6; }
17215if ${ac_cv_prog_RC+:} false; then :
17216  $as_echo_n "(cached) " >&6
17217else
17218  if test -n "$RC"; then
17219  ac_cv_prog_RC="$RC" # Let the user override the test.
17220else
17221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17222for as_dir in $PATH
17223do
17224  IFS=$as_save_IFS
17225  test -z "$as_dir" && as_dir=.
17226    for ac_exec_ext in '' $ac_executable_extensions; do
17227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17228    ac_cv_prog_RC="${ac_tool_prefix}windres"
17229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17230    break 2
17231  fi
17232done
17233  done
17234IFS=$as_save_IFS
17235
17236fi
17237fi
17238RC=$ac_cv_prog_RC
17239if test -n "$RC"; then
17240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17241$as_echo "$RC" >&6; }
17242else
17243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244$as_echo "no" >&6; }
17245fi
17246
17247
17248fi
17249if test -z "$ac_cv_prog_RC"; then
17250  ac_ct_RC=$RC
17251  # Extract the first word of "windres", so it can be a program name with args.
17252set dummy windres; ac_word=$2
17253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17254$as_echo_n "checking for $ac_word... " >&6; }
17255if ${ac_cv_prog_ac_ct_RC+:} false; then :
17256  $as_echo_n "(cached) " >&6
17257else
17258  if test -n "$ac_ct_RC"; then
17259  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17260else
17261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17262for as_dir in $PATH
17263do
17264  IFS=$as_save_IFS
17265  test -z "$as_dir" && as_dir=.
17266    for ac_exec_ext in '' $ac_executable_extensions; do
17267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17268    ac_cv_prog_ac_ct_RC="windres"
17269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17270    break 2
17271  fi
17272done
17273  done
17274IFS=$as_save_IFS
17275
17276fi
17277fi
17278ac_ct_RC=$ac_cv_prog_ac_ct_RC
17279if test -n "$ac_ct_RC"; then
17280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17281$as_echo "$ac_ct_RC" >&6; }
17282else
17283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284$as_echo "no" >&6; }
17285fi
17286
17287  if test "x$ac_ct_RC" = x; then
17288    RC=""
17289  else
17290    case $cross_compiling:$ac_tool_warned in
17291yes:)
17292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17294ac_tool_warned=yes ;;
17295esac
17296    RC=$ac_ct_RC
17297  fi
17298else
17299  RC="$ac_cv_prog_RC"
17300fi
17301
17302
17303
17304
17305# Source file extension for RC test sources.
17306ac_ext=rc
17307
17308# Object file extension for compiled RC test sources.
17309objext=o
17310objext_RC=$objext
17311
17312# Code to be used in simple compile tests
17313lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17314
17315# Code to be used in simple link tests
17316lt_simple_link_test_code="$lt_simple_compile_test_code"
17317
17318# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17319
17320
17321
17322
17323
17324
17325# If no C compiler was specified, use CC.
17326LTCC=${LTCC-"$CC"}
17327
17328# If no C compiler flags were specified, use CFLAGS.
17329LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17330
17331# Allow CC to be a program name with arguments.
17332compiler=$CC
17333
17334
17335# save warnings/boilerplate of simple test code
17336ac_outfile=conftest.$ac_objext
17337echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17338eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17339_lt_compiler_boilerplate=`cat conftest.err`
17340$RM conftest*
17341
17342ac_outfile=conftest.$ac_objext
17343echo "$lt_simple_link_test_code" >conftest.$ac_ext
17344eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17345_lt_linker_boilerplate=`cat conftest.err`
17346$RM -r conftest*
17347
17348
17349# Allow CC to be a program name with arguments.
17350lt_save_CC="$CC"
17351lt_save_CFLAGS=$CFLAGS
17352lt_save_GCC=$GCC
17353GCC=
17354CC=${RC-"windres"}
17355CFLAGS=
17356compiler=$CC
17357compiler_RC=$CC
17358for cc_temp in $compiler""; do
17359  case $cc_temp in
17360    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17361    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17362    \-*) ;;
17363    *) break;;
17364  esac
17365done
17366cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17367
17368lt_cv_prog_compiler_c_o_RC=yes
17369
17370if test -n "$compiler"; then
17371  :
17372
17373
17374
17375fi
17376
17377GCC=$lt_save_GCC
17378ac_ext=c
17379ac_cpp='$CPP $CPPFLAGS'
17380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382ac_compiler_gnu=$ac_cv_c_compiler_gnu
17383
17384CC=$lt_save_CC
17385CFLAGS=$lt_save_CFLAGS
17386
17387
17388# For now we hardcode the use of version scripts.  It would be better
17389# to write a test for this or even implement this within libtool.
17390have_ld_version_script=no
17391case "${host}" in
17392    *-*-linux*)
17393	have_ld_version_script=yes
17394        ;;
17395    *-*-gnu*)
17396	have_ld_version_script=yes
17397        ;;
17398    *-apple-darwin*)
17399
17400$as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
17401
17402
17403$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17404
17405        ;;
17406esac
17407
17408 if test "$have_ld_version_script" = "yes"; then
17409  HAVE_LD_VERSION_SCRIPT_TRUE=
17410  HAVE_LD_VERSION_SCRIPT_FALSE='#'
17411else
17412  HAVE_LD_VERSION_SCRIPT_TRUE='#'
17413  HAVE_LD_VERSION_SCRIPT_FALSE=
17414fi
17415
17416
17417GPG_DEFAULT=no
17418GPGSM_DEFAULT=no
17419GPGCONF_DEFAULT=no
17420G13_DEFAULT=no
17421component_system=None
17422have_dosish_system=no
17423have_android_system=no
17424have_w32_system=no
17425have_w64_system=no
17426have_macos_system=no
17427build_w32_glib=no
17428build_w32_qt=no
17429available_languages="cl cpp python qt"
17430default_languages="cl cpp python qt"
17431case "${host}" in
17432    x86_64-*mingw32*)
17433        have_w64_system=yes
17434        ;;
17435    *-linux-androideabi)
17436        have_android_system=yes
17437        ;;
17438    *-apple-darwin*)
17439        have_macos_system=yes
17440        ;;
17441esac
17442case "${host}" in
17443    *-mingw32*)
17444	have_dosish_system=yes
17445        have_w32_system=yes
17446        GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17447	GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17448        GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17449        G13_DEFAULT='c:\\gnupg\\g13.exe'
17450        #component_system='COM+'
17451
17452	# Check whether --enable-glibtest was given.
17453if test "${enable_glibtest+set}" = set; then :
17454  enableval=$enable_glibtest;
17455else
17456  enable_glibtest=yes
17457fi
17458
17459
17460  pkg_config_args=glib-2.0
17461  for module in .
17462  do
17463      case "$module" in
17464         gmodule)
17465             pkg_config_args="$pkg_config_args gmodule-2.0"
17466         ;;
17467         gmodule-no-export)
17468             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17469         ;;
17470         gobject)
17471             pkg_config_args="$pkg_config_args gobject-2.0"
17472         ;;
17473         gthread)
17474             pkg_config_args="$pkg_config_args gthread-2.0"
17475         ;;
17476      esac
17477  done
17478
17479  # Extract the first word of "pkg-config", so it can be a program name with args.
17480set dummy pkg-config; ac_word=$2
17481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17482$as_echo_n "checking for $ac_word... " >&6; }
17483if ${ac_cv_path_PKG_CONFIG+:} false; then :
17484  $as_echo_n "(cached) " >&6
17485else
17486  case $PKG_CONFIG in
17487  [\\/]* | ?:[\\/]*)
17488  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17489  ;;
17490  *)
17491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17492for as_dir in $PATH
17493do
17494  IFS=$as_save_IFS
17495  test -z "$as_dir" && as_dir=.
17496    for ac_exec_ext in '' $ac_executable_extensions; do
17497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17498    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17500    break 2
17501  fi
17502done
17503  done
17504IFS=$as_save_IFS
17505
17506  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17507  ;;
17508esac
17509fi
17510PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17511if test -n "$PKG_CONFIG"; then
17512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17513$as_echo "$PKG_CONFIG" >&6; }
17514else
17515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17516$as_echo "no" >&6; }
17517fi
17518
17519
17520
17521  no_glib=""
17522
17523  if test x$PKG_CONFIG != xno ; then
17524    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17525      :
17526    else
17527      echo *** pkg-config too old; version 0.7 or better required.
17528      no_glib=yes
17529      PKG_CONFIG=no
17530    fi
17531  else
17532    no_glib=yes
17533  fi
17534
17535  min_glib_version=2.0.0
17536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17537$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17538
17539  if test x$PKG_CONFIG != xno ; then
17540    ## don't try to run the test against uninstalled libtool libs
17541    if $PKG_CONFIG --uninstalled $pkg_config_args; then
17542	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17543	  enable_glibtest=no
17544    fi
17545
17546    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17547	  :
17548    else
17549	  no_glib=yes
17550    fi
17551  fi
17552
17553  if test x"$no_glib" = x ; then
17554    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17555    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17556    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17557
17558    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17559    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17560    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17561           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17562    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17563           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17564    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17565           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17566    if test "x$enable_glibtest" = "xyes" ; then
17567      ac_save_CFLAGS="$CFLAGS"
17568      ac_save_LIBS="$LIBS"
17569      CFLAGS="$CFLAGS $GLIB_CFLAGS"
17570      LIBS="$GLIB_LIBS $LIBS"
17571      rm -f conf.glibtest
17572      if test "$cross_compiling" = yes; then :
17573  echo $ac_n "cross compiling; assumed OK... $ac_c"
17574else
17575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576/* end confdefs.h.  */
17577
17578#include <glib.h>
17579#include <stdio.h>
17580#include <stdlib.h>
17581
17582int
17583main ()
17584{
17585  int major, minor, micro;
17586  char *tmp_version;
17587
17588  system ("touch conf.glibtest");
17589
17590  /* HP/UX 9 (%@#!) writes to sscanf strings */
17591  tmp_version = g_strdup("$min_glib_version");
17592  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17593     printf("%s, bad version string\n", "$min_glib_version");
17594     exit(1);
17595   }
17596
17597  if ((glib_major_version != $glib_config_major_version) ||
17598      (glib_minor_version != $glib_config_minor_version) ||
17599      (glib_micro_version != $glib_config_micro_version))
17600    {
17601      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17602             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17603             glib_major_version, glib_minor_version, glib_micro_version);
17604      printf ("*** was found! If pkg-config was correct, then it is best\n");
17605      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17606      printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
17607      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17608      printf("*** required on your system.\n");
17609      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17610      printf("*** to point to the correct configuration files\n");
17611    }
17612  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17613	   (glib_minor_version != GLIB_MINOR_VERSION) ||
17614           (glib_micro_version != GLIB_MICRO_VERSION))
17615    {
17616      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17617	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17618      printf("*** library (version %d.%d.%d)\n",
17619	     glib_major_version, glib_minor_version, glib_micro_version);
17620    }
17621  else
17622    {
17623      if ((glib_major_version > major) ||
17624        ((glib_major_version == major) && (glib_minor_version > minor)) ||
17625        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17626      {
17627        return 0;
17628       }
17629     else
17630      {
17631        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17632               glib_major_version, glib_minor_version, glib_micro_version);
17633        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17634	       major, minor, micro);
17635        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17636        printf("***\n");
17637        printf("*** If you have already installed a sufficiently new version, this error\n");
17638        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17639        printf("*** being found. The easiest way to fix this is to remove the old version\n");
17640        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17641        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17642        printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
17643        printf("*** so that the correct libraries are found at run-time))\n");
17644      }
17645    }
17646  return 1;
17647}
17648
17649_ACEOF
17650if ac_fn_c_try_run "$LINENO"; then :
17651
17652else
17653  no_glib=yes
17654fi
17655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17656  conftest.$ac_objext conftest.beam conftest.$ac_ext
17657fi
17658
17659       CFLAGS="$ac_save_CFLAGS"
17660       LIBS="$ac_save_LIBS"
17661     fi
17662  fi
17663  if test "x$no_glib" = x ; then
17664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17665$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17666     :
17667  else
17668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669$as_echo "no" >&6; }
17670     if test "$PKG_CONFIG" = "no" ; then
17671       echo "*** A new enough version of pkg-config was not found."
17672       echo "*** See https://www.freedesktop.org/software/pkgconfig/"
17673     else
17674       if test -f conf.glibtest ; then
17675        :
17676       else
17677          echo "*** Could not run GLIB test program, checking why..."
17678          ac_save_CFLAGS="$CFLAGS"
17679          ac_save_LIBS="$LIBS"
17680          CFLAGS="$CFLAGS $GLIB_CFLAGS"
17681          LIBS="$LIBS $GLIB_LIBS"
17682          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683/* end confdefs.h.  */
17684
17685#include <glib.h>
17686#include <stdio.h>
17687
17688int
17689main ()
17690{
17691 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17692  ;
17693  return 0;
17694}
17695_ACEOF
17696if ac_fn_c_try_link "$LINENO"; then :
17697   echo "*** The test program compiled, but did not run. This usually means"
17698          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17699          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17700          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17701          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17702          echo "*** is required on your system"
17703	  echo "***"
17704          echo "*** If you have an old version installed, it is best to remove it, although"
17705          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17706else
17707   echo "*** The test program failed to compile or link. See the file config.log for the"
17708          echo "*** exact error that occurred. This usually means GLIB is incorrectly installed."
17709fi
17710rm -f core conftest.err conftest.$ac_objext \
17711    conftest$ac_exeext conftest.$ac_ext
17712          CFLAGS="$ac_save_CFLAGS"
17713          LIBS="$ac_save_LIBS"
17714       fi
17715     fi
17716     GLIB_CFLAGS=""
17717     GLIB_LIBS=""
17718     GLIB_GENMARSHAL=""
17719     GOBJECT_QUERY=""
17720     GLIB_MKENUMS=""
17721     :
17722  fi
17723
17724
17725
17726
17727
17728  rm -f conf.glibtest
17729
17730	# Check whether --enable-w32-glib was given.
17731if test "${enable_w32_glib+set}" = set; then :
17732  enableval=$enable_w32_glib; build_w32_glib=$enableval
17733fi
17734
17735       ;;
17736    *)
17737
17738	# XXX: Probably use exec-prefix here?
17739#	GPG_DEFAULT='/usr/bin/gpg'
17740#	GPGSM_DEFAULT='/usr/bin/gpgsm'
17741#	GPGCONF_DEFAULT='/usr/bin/gpgconf'
17742#	G13_DEFAULT='/usr/bin/g13'
17743	;;
17744esac
17745
17746if test "$have_dosish_system" = yes; then
17747
17748$as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17749
17750fi
17751 if test "$have_dosish_system" = yes; then
17752  HAVE_DOSISH_SYSTEM_TRUE=
17753  HAVE_DOSISH_SYSTEM_FALSE='#'
17754else
17755  HAVE_DOSISH_SYSTEM_TRUE='#'
17756  HAVE_DOSISH_SYSTEM_FALSE=
17757fi
17758
17759
17760if test "$have_w32_system" = yes; then
17761
17762$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17763
17764fi
17765 if test "$have_w32_system" = yes; then
17766  HAVE_W32_SYSTEM_TRUE=
17767  HAVE_W32_SYSTEM_FALSE='#'
17768else
17769  HAVE_W32_SYSTEM_TRUE='#'
17770  HAVE_W32_SYSTEM_FALSE=
17771fi
17772
17773
17774if test "$have_w64_system" = yes; then
17775
17776$as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17777
17778fi
17779 if test "$have_w64_system" = yes; then
17780  HAVE_W64_SYSTEM_TRUE=
17781  HAVE_W64_SYSTEM_FALSE='#'
17782else
17783  HAVE_W64_SYSTEM_TRUE='#'
17784  HAVE_W64_SYSTEM_FALSE=
17785fi
17786
17787
17788if test "$have_android_system" = yes; then
17789
17790$as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17791
17792fi
17793 if test "$have_android_system" = yes; then
17794  HAVE_ANDROID_SYSTEM_TRUE=
17795  HAVE_ANDROID_SYSTEM_FALSE='#'
17796else
17797  HAVE_ANDROID_SYSTEM_TRUE='#'
17798  HAVE_ANDROID_SYSTEM_FALSE=
17799fi
17800
17801
17802if test "$have_macos_system" = yes; then
17803
17804$as_echo "#define HAVE_MACOS_SYSTEM 1" >>confdefs.h
17805
17806fi
17807 if test "$have_macos_system" = yes; then
17808  HAVE_MACOS_SYSTEM_TRUE=
17809  HAVE_MACOS_SYSTEM_FALSE='#'
17810else
17811  HAVE_MACOS_SYSTEM_TRUE='#'
17812  HAVE_MACOS_SYSTEM_FALSE=
17813fi
17814
17815
17816 if test "$build_w32_glib" = yes; then
17817  BUILD_W32_GLIB_TRUE=
17818  BUILD_W32_GLIB_FALSE='#'
17819else
17820  BUILD_W32_GLIB_TRUE='#'
17821  BUILD_W32_GLIB_FALSE=
17822fi
17823
17824
17825
17826# Check whether --enable-fixed-path was given.
17827if test "${enable_fixed_path+set}" = set; then :
17828  enableval=$enable_fixed_path; fixed_search_path="$enableval"
17829else
17830  fixed_search_path=""
17831fi
17832
17833if test x$fixed_search_path != x ; then
17834
17835cat >>confdefs.h <<_ACEOF
17836#define FIXED_SEARCH_PATH "$fixed_search_path"
17837_ACEOF
17838
17839fi
17840
17841
17842# Note: You need to declare all possible languages also in
17843#       lang/Makefile.am's DIST_SUBDIRS.
17844# Check whether --enable-languages was given.
17845if test "${enable_languages+set}" = set; then :
17846  enableval=$enable_languages; enabled_languages=`echo $enableval | \
17847                             tr ',:' '  ' | tr 'A-Z' 'a-z' | \
17848                             sed 's/c++/cpp/'`
17849else
17850  enabled_languages="maybe"
17851fi
17852
17853if test "x$enabled_languages" = "x" \
17854   -o "$enabled_languages" = "no"; then
17855   enabled_languages=
17856fi
17857
17858# If languages are explicitly set missing requirements
17859# for the languages are treated as errors otherwise
17860# there will be a warning.
17861explicit_languages=1
17862if test "x$enabled_languages" = "xmaybe"; then
17863    explicit_languages=0
17864    enabled_languages="$default_languages"
17865fi
17866
17867for language in $enabled_languages; do
17868
17869name=$language
17870list=$available_languages
17871found=0
17872
17873for n in $list; do
17874  if test "x$name" = "x$n"; then
17875    found=1
17876  fi
17877done
17878
17879    if test "$found" = "0"; then
17880       as_fn_error $? "unsupported language binding specified" "$LINENO" 5
17881    fi
17882done
17883
17884
17885
17886# Enable C++ 11 if cpp language is requested
17887
17888name="cpp"
17889list=$enabled_languages
17890found=0
17891
17892for n in $list; do
17893  if test "x$name" = "x$n"; then
17894    found=1
17895  fi
17896done
17897
17898if test "$found" = "1"; then
17899          ax_cxx_compile_cxx11_required=false
17900  ac_ext=cpp
17901ac_cpp='$CXXCPP $CPPFLAGS'
17902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17905  ac_success=no
17906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17907$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17908if ${ax_cv_cxx_compile_cxx11+:} false; then :
17909  $as_echo_n "(cached) " >&6
17910else
17911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912/* end confdefs.h.  */
17913
17914
17915// If the compiler admits that it is not ready for C++11, why torture it?
17916// Hopefully, this will speed up the test.
17917
17918#ifndef __cplusplus
17919
17920#error "This is not a C++ compiler"
17921
17922#elif __cplusplus < 201103L
17923
17924#error "This is not a C++11 compiler"
17925
17926#else
17927
17928namespace cxx11
17929{
17930
17931  namespace test_static_assert
17932  {
17933
17934    template <typename T>
17935    struct check
17936    {
17937      static_assert(sizeof(int) <= sizeof(T), "not big enough");
17938    };
17939
17940  }
17941
17942  namespace test_final_override
17943  {
17944
17945    struct Base
17946    {
17947      virtual void f() {}
17948    };
17949
17950    struct Derived : public Base
17951    {
17952      virtual void f() override {}
17953    };
17954
17955  }
17956
17957  namespace test_double_right_angle_brackets
17958  {
17959
17960    template < typename T >
17961    struct check {};
17962
17963    typedef check<void> single_type;
17964    typedef check<check<void>> double_type;
17965    typedef check<check<check<void>>> triple_type;
17966    typedef check<check<check<check<void>>>> quadruple_type;
17967
17968  }
17969
17970  namespace test_decltype
17971  {
17972
17973    int
17974    f()
17975    {
17976      int a = 1;
17977      decltype(a) b = 2;
17978      return a + b;
17979    }
17980
17981  }
17982
17983  namespace test_type_deduction
17984  {
17985
17986    template < typename T1, typename T2 >
17987    struct is_same
17988    {
17989      static const bool value = false;
17990    };
17991
17992    template < typename T >
17993    struct is_same<T, T>
17994    {
17995      static const bool value = true;
17996    };
17997
17998    template < typename T1, typename T2 >
17999    auto
18000    add(T1 a1, T2 a2) -> decltype(a1 + a2)
18001    {
18002      return a1 + a2;
18003    }
18004
18005    int
18006    test(const int c, volatile int v)
18007    {
18008      static_assert(is_same<int, decltype(0)>::value == true, "");
18009      static_assert(is_same<int, decltype(c)>::value == false, "");
18010      static_assert(is_same<int, decltype(v)>::value == false, "");
18011      auto ac = c;
18012      auto av = v;
18013      auto sumi = ac + av + 'x';
18014      auto sumf = ac + av + 1.0;
18015      static_assert(is_same<int, decltype(ac)>::value == true, "");
18016      static_assert(is_same<int, decltype(av)>::value == true, "");
18017      static_assert(is_same<int, decltype(sumi)>::value == true, "");
18018      static_assert(is_same<int, decltype(sumf)>::value == false, "");
18019      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18020      return (sumf > 0.0) ? sumi : add(c, v);
18021    }
18022
18023  }
18024
18025  namespace test_noexcept
18026  {
18027
18028    int f() { return 0; }
18029    int g() noexcept { return 0; }
18030
18031    static_assert(noexcept(f()) == false, "");
18032    static_assert(noexcept(g()) == true, "");
18033
18034  }
18035
18036  namespace test_constexpr
18037  {
18038
18039    template < typename CharT >
18040    unsigned long constexpr
18041    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18042    {
18043      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18044    }
18045
18046    template < typename CharT >
18047    unsigned long constexpr
18048    strlen_c(const CharT *const s) noexcept
18049    {
18050      return strlen_c_r(s, 0UL);
18051    }
18052
18053    static_assert(strlen_c("") == 0UL, "");
18054    static_assert(strlen_c("1") == 1UL, "");
18055    static_assert(strlen_c("example") == 7UL, "");
18056    static_assert(strlen_c("another\0example") == 7UL, "");
18057
18058  }
18059
18060  namespace test_rvalue_references
18061  {
18062
18063    template < int N >
18064    struct answer
18065    {
18066      static constexpr int value = N;
18067    };
18068
18069    answer<1> f(int&)       { return answer<1>(); }
18070    answer<2> f(const int&) { return answer<2>(); }
18071    answer<3> f(int&&)      { return answer<3>(); }
18072
18073    void
18074    test()
18075    {
18076      int i = 0;
18077      const int c = 0;
18078      static_assert(decltype(f(i))::value == 1, "");
18079      static_assert(decltype(f(c))::value == 2, "");
18080      static_assert(decltype(f(0))::value == 3, "");
18081    }
18082
18083  }
18084
18085  namespace test_uniform_initialization
18086  {
18087
18088    struct test
18089    {
18090      static const int zero {};
18091      static const int one {1};
18092    };
18093
18094    static_assert(test::zero == 0, "");
18095    static_assert(test::one == 1, "");
18096
18097  }
18098
18099  namespace test_lambdas
18100  {
18101
18102    void
18103    test1()
18104    {
18105      auto lambda1 = [](){};
18106      auto lambda2 = lambda1;
18107      lambda1();
18108      lambda2();
18109    }
18110
18111    int
18112    test2()
18113    {
18114      auto a = [](int i, int j){ return i + j; }(1, 2);
18115      auto b = []() -> int { return '0'; }();
18116      auto c = [=](){ return a + b; }();
18117      auto d = [&](){ return c; }();
18118      auto e = [a, &b](int x) mutable {
18119        const auto identity = [](int y){ return y; };
18120        for (auto i = 0; i < a; ++i)
18121          a += b--;
18122        return x + identity(a + b);
18123      }(0);
18124      return a + b + c + d + e;
18125    }
18126
18127    int
18128    test3()
18129    {
18130      const auto nullary = [](){ return 0; };
18131      const auto unary = [](int x){ return x; };
18132      using nullary_t = decltype(nullary);
18133      using unary_t = decltype(unary);
18134      const auto higher1st = [](nullary_t f){ return f(); };
18135      const auto higher2nd = [unary](nullary_t f1){
18136        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18137      };
18138      return higher1st(nullary) + higher2nd(nullary)(unary);
18139    }
18140
18141  }
18142
18143  namespace test_variadic_templates
18144  {
18145
18146    template <int...>
18147    struct sum;
18148
18149    template <int N0, int... N1toN>
18150    struct sum<N0, N1toN...>
18151    {
18152      static constexpr auto value = N0 + sum<N1toN...>::value;
18153    };
18154
18155    template <>
18156    struct sum<>
18157    {
18158      static constexpr auto value = 0;
18159    };
18160
18161    static_assert(sum<>::value == 0, "");
18162    static_assert(sum<1>::value == 1, "");
18163    static_assert(sum<23>::value == 23, "");
18164    static_assert(sum<1, 2>::value == 3, "");
18165    static_assert(sum<5, 5, 11>::value == 21, "");
18166    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18167
18168  }
18169
18170  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18171  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18172  // because of this.
18173  namespace test_template_alias_sfinae
18174  {
18175
18176    struct foo {};
18177
18178    template<typename T>
18179    using member = typename T::member_type;
18180
18181    template<typename T>
18182    void func(...) {}
18183
18184    template<typename T>
18185    void func(member<T>*) {}
18186
18187    void test();
18188
18189    void test() { func<foo>(0); }
18190
18191  }
18192
18193}  // namespace cxx11
18194
18195#endif  // __cplusplus >= 201103L
18196
18197
18198
18199_ACEOF
18200if ac_fn_cxx_try_compile "$LINENO"; then :
18201  ax_cv_cxx_compile_cxx11=yes
18202else
18203  ax_cv_cxx_compile_cxx11=no
18204fi
18205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206fi
18207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18208$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18209  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18210    ac_success=yes
18211  fi
18212
18213
18214
18215    if test x$ac_success = xno; then
18216                for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
18217      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18218      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18219$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18220if eval \${$cachevar+:} false; then :
18221  $as_echo_n "(cached) " >&6
18222else
18223  ac_save_CXX="$CXX"
18224         CXX="$CXX $switch"
18225         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226/* end confdefs.h.  */
18227
18228
18229// If the compiler admits that it is not ready for C++11, why torture it?
18230// Hopefully, this will speed up the test.
18231
18232#ifndef __cplusplus
18233
18234#error "This is not a C++ compiler"
18235
18236#elif __cplusplus < 201103L
18237
18238#error "This is not a C++11 compiler"
18239
18240#else
18241
18242namespace cxx11
18243{
18244
18245  namespace test_static_assert
18246  {
18247
18248    template <typename T>
18249    struct check
18250    {
18251      static_assert(sizeof(int) <= sizeof(T), "not big enough");
18252    };
18253
18254  }
18255
18256  namespace test_final_override
18257  {
18258
18259    struct Base
18260    {
18261      virtual void f() {}
18262    };
18263
18264    struct Derived : public Base
18265    {
18266      virtual void f() override {}
18267    };
18268
18269  }
18270
18271  namespace test_double_right_angle_brackets
18272  {
18273
18274    template < typename T >
18275    struct check {};
18276
18277    typedef check<void> single_type;
18278    typedef check<check<void>> double_type;
18279    typedef check<check<check<void>>> triple_type;
18280    typedef check<check<check<check<void>>>> quadruple_type;
18281
18282  }
18283
18284  namespace test_decltype
18285  {
18286
18287    int
18288    f()
18289    {
18290      int a = 1;
18291      decltype(a) b = 2;
18292      return a + b;
18293    }
18294
18295  }
18296
18297  namespace test_type_deduction
18298  {
18299
18300    template < typename T1, typename T2 >
18301    struct is_same
18302    {
18303      static const bool value = false;
18304    };
18305
18306    template < typename T >
18307    struct is_same<T, T>
18308    {
18309      static const bool value = true;
18310    };
18311
18312    template < typename T1, typename T2 >
18313    auto
18314    add(T1 a1, T2 a2) -> decltype(a1 + a2)
18315    {
18316      return a1 + a2;
18317    }
18318
18319    int
18320    test(const int c, volatile int v)
18321    {
18322      static_assert(is_same<int, decltype(0)>::value == true, "");
18323      static_assert(is_same<int, decltype(c)>::value == false, "");
18324      static_assert(is_same<int, decltype(v)>::value == false, "");
18325      auto ac = c;
18326      auto av = v;
18327      auto sumi = ac + av + 'x';
18328      auto sumf = ac + av + 1.0;
18329      static_assert(is_same<int, decltype(ac)>::value == true, "");
18330      static_assert(is_same<int, decltype(av)>::value == true, "");
18331      static_assert(is_same<int, decltype(sumi)>::value == true, "");
18332      static_assert(is_same<int, decltype(sumf)>::value == false, "");
18333      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18334      return (sumf > 0.0) ? sumi : add(c, v);
18335    }
18336
18337  }
18338
18339  namespace test_noexcept
18340  {
18341
18342    int f() { return 0; }
18343    int g() noexcept { return 0; }
18344
18345    static_assert(noexcept(f()) == false, "");
18346    static_assert(noexcept(g()) == true, "");
18347
18348  }
18349
18350  namespace test_constexpr
18351  {
18352
18353    template < typename CharT >
18354    unsigned long constexpr
18355    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18356    {
18357      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18358    }
18359
18360    template < typename CharT >
18361    unsigned long constexpr
18362    strlen_c(const CharT *const s) noexcept
18363    {
18364      return strlen_c_r(s, 0UL);
18365    }
18366
18367    static_assert(strlen_c("") == 0UL, "");
18368    static_assert(strlen_c("1") == 1UL, "");
18369    static_assert(strlen_c("example") == 7UL, "");
18370    static_assert(strlen_c("another\0example") == 7UL, "");
18371
18372  }
18373
18374  namespace test_rvalue_references
18375  {
18376
18377    template < int N >
18378    struct answer
18379    {
18380      static constexpr int value = N;
18381    };
18382
18383    answer<1> f(int&)       { return answer<1>(); }
18384    answer<2> f(const int&) { return answer<2>(); }
18385    answer<3> f(int&&)      { return answer<3>(); }
18386
18387    void
18388    test()
18389    {
18390      int i = 0;
18391      const int c = 0;
18392      static_assert(decltype(f(i))::value == 1, "");
18393      static_assert(decltype(f(c))::value == 2, "");
18394      static_assert(decltype(f(0))::value == 3, "");
18395    }
18396
18397  }
18398
18399  namespace test_uniform_initialization
18400  {
18401
18402    struct test
18403    {
18404      static const int zero {};
18405      static const int one {1};
18406    };
18407
18408    static_assert(test::zero == 0, "");
18409    static_assert(test::one == 1, "");
18410
18411  }
18412
18413  namespace test_lambdas
18414  {
18415
18416    void
18417    test1()
18418    {
18419      auto lambda1 = [](){};
18420      auto lambda2 = lambda1;
18421      lambda1();
18422      lambda2();
18423    }
18424
18425    int
18426    test2()
18427    {
18428      auto a = [](int i, int j){ return i + j; }(1, 2);
18429      auto b = []() -> int { return '0'; }();
18430      auto c = [=](){ return a + b; }();
18431      auto d = [&](){ return c; }();
18432      auto e = [a, &b](int x) mutable {
18433        const auto identity = [](int y){ return y; };
18434        for (auto i = 0; i < a; ++i)
18435          a += b--;
18436        return x + identity(a + b);
18437      }(0);
18438      return a + b + c + d + e;
18439    }
18440
18441    int
18442    test3()
18443    {
18444      const auto nullary = [](){ return 0; };
18445      const auto unary = [](int x){ return x; };
18446      using nullary_t = decltype(nullary);
18447      using unary_t = decltype(unary);
18448      const auto higher1st = [](nullary_t f){ return f(); };
18449      const auto higher2nd = [unary](nullary_t f1){
18450        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18451      };
18452      return higher1st(nullary) + higher2nd(nullary)(unary);
18453    }
18454
18455  }
18456
18457  namespace test_variadic_templates
18458  {
18459
18460    template <int...>
18461    struct sum;
18462
18463    template <int N0, int... N1toN>
18464    struct sum<N0, N1toN...>
18465    {
18466      static constexpr auto value = N0 + sum<N1toN...>::value;
18467    };
18468
18469    template <>
18470    struct sum<>
18471    {
18472      static constexpr auto value = 0;
18473    };
18474
18475    static_assert(sum<>::value == 0, "");
18476    static_assert(sum<1>::value == 1, "");
18477    static_assert(sum<23>::value == 23, "");
18478    static_assert(sum<1, 2>::value == 3, "");
18479    static_assert(sum<5, 5, 11>::value == 21, "");
18480    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18481
18482  }
18483
18484  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18485  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18486  // because of this.
18487  namespace test_template_alias_sfinae
18488  {
18489
18490    struct foo {};
18491
18492    template<typename T>
18493    using member = typename T::member_type;
18494
18495    template<typename T>
18496    void func(...) {}
18497
18498    template<typename T>
18499    void func(member<T>*) {}
18500
18501    void test();
18502
18503    void test() { func<foo>(0); }
18504
18505  }
18506
18507}  // namespace cxx11
18508
18509#endif  // __cplusplus >= 201103L
18510
18511
18512
18513_ACEOF
18514if ac_fn_cxx_try_compile "$LINENO"; then :
18515  eval $cachevar=yes
18516else
18517  eval $cachevar=no
18518fi
18519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520         CXX="$ac_save_CXX"
18521fi
18522eval ac_res=\$$cachevar
18523	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18524$as_echo "$ac_res" >&6; }
18525      if eval test x\$$cachevar = xyes; then
18526        CXX="$CXX $switch"
18527        CXXCPP="$CXXCPP $switch"
18528        ac_success=yes
18529        break
18530      fi
18531    done
18532  fi
18533  ac_ext=c
18534ac_cpp='$CPP $CPPFLAGS'
18535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537ac_compiler_gnu=$ac_cv_c_compiler_gnu
18538
18539  if test x$ax_cxx_compile_cxx11_required = xtrue; then
18540    if test x$ac_success = xno; then
18541      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18542    fi
18543  fi
18544  if test x$ac_success = xno; then
18545    HAVE_CXX11=0
18546    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18547$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18548  else
18549    HAVE_CXX11=1
18550
18551$as_echo "#define HAVE_CXX11 1" >>confdefs.h
18552
18553  fi
18554
18555
18556    if test "$HAVE_CXX11" != "1"; then
18557        if test "$explicit_languages" = "1"; then
18558            as_fn_error $? "
18559***
18560*** A compiler with c++11 support is required for the c++ binding.
18561***" "$LINENO" 5
18562        else
18563            enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
18564            enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18565            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18566***
18567*** No c++11 support detected. C++ and Qt bindings will be disabled.
18568***" >&5
18569$as_echo "$as_me: WARNING:
18570***
18571*** No c++11 support detected. C++ and Qt bindings will be disabled.
18572***" >&2;}
18573        fi
18574    fi
18575fi
18576
18577# Check that if qt is enabled cpp also is enabled
18578
18579name="qt"
18580list=$enabled_languages
18581found=0
18582
18583for n in $list; do
18584  if test "x$name" = "x$n"; then
18585    found=1
18586  fi
18587done
18588
18589if test "$found" = "1"; then
18590    # We need to ensure that in the language order qt comes after cpp
18591    # so we remove qt first and explicitly add it as last list member.
18592    enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18593
18594name="cpp"
18595list=$enabled_languages
18596found=0
18597
18598for n in $list; do
18599  if test "x$name" = "x$n"; then
18600    found=1
18601  fi
18602done
18603
18604    if test "$found" = "0"; then
18605        as_fn_error $? "
18606***
18607*** Qt language binding depends on cpp binding.
18608***" "$LINENO" 5
18609    fi
18610
18611
18612if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18613	if test -n "$ac_tool_prefix"; then
18614  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18615set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18617$as_echo_n "checking for $ac_word... " >&6; }
18618if ${ac_cv_path_PKG_CONFIG+:} false; then :
18619  $as_echo_n "(cached) " >&6
18620else
18621  case $PKG_CONFIG in
18622  [\\/]* | ?:[\\/]*)
18623  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18624  ;;
18625  *)
18626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18627for as_dir in $PATH
18628do
18629  IFS=$as_save_IFS
18630  test -z "$as_dir" && as_dir=.
18631    for ac_exec_ext in '' $ac_executable_extensions; do
18632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18633    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18635    break 2
18636  fi
18637done
18638  done
18639IFS=$as_save_IFS
18640
18641  ;;
18642esac
18643fi
18644PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18645if test -n "$PKG_CONFIG"; then
18646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18647$as_echo "$PKG_CONFIG" >&6; }
18648else
18649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18650$as_echo "no" >&6; }
18651fi
18652
18653
18654fi
18655if test -z "$ac_cv_path_PKG_CONFIG"; then
18656  ac_pt_PKG_CONFIG=$PKG_CONFIG
18657  # Extract the first word of "pkg-config", so it can be a program name with args.
18658set dummy pkg-config; ac_word=$2
18659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18660$as_echo_n "checking for $ac_word... " >&6; }
18661if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18662  $as_echo_n "(cached) " >&6
18663else
18664  case $ac_pt_PKG_CONFIG in
18665  [\\/]* | ?:[\\/]*)
18666  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18667  ;;
18668  *)
18669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18670for as_dir in $PATH
18671do
18672  IFS=$as_save_IFS
18673  test -z "$as_dir" && as_dir=.
18674    for ac_exec_ext in '' $ac_executable_extensions; do
18675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18676    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18678    break 2
18679  fi
18680done
18681  done
18682IFS=$as_save_IFS
18683
18684  ;;
18685esac
18686fi
18687ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18688if test -n "$ac_pt_PKG_CONFIG"; then
18689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18690$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18691else
18692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693$as_echo "no" >&6; }
18694fi
18695
18696  if test "x$ac_pt_PKG_CONFIG" = x; then
18697    PKG_CONFIG=""
18698  else
18699    case $cross_compiling:$ac_tool_warned in
18700yes:)
18701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18703ac_tool_warned=yes ;;
18704esac
18705    PKG_CONFIG=$ac_pt_PKG_CONFIG
18706  fi
18707else
18708  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18709fi
18710
18711fi
18712if test -n "$PKG_CONFIG"; then
18713	_pkg_min_version=0.9.0
18714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18715$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18716	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18718$as_echo "yes" >&6; }
18719	else
18720		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721$as_echo "no" >&6; }
18722		PKG_CONFIG=""
18723	fi
18724
18725fi
18726
18727  have_qt5_libs="no";
18728
18729
18730pkg_failed=no
18731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QT" >&5
18732$as_echo_n "checking for GPGME_QT... " >&6; }
18733
18734if test -n "$PKG_CONFIG"; then
18735    if test -n "$GPGME_QT_CFLAGS"; then
18736        pkg_cv_GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS"
18737    else
18738        if test -n "$PKG_CONFIG" && \
18739    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18740  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18741  ac_status=$?
18742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743  test $ac_status = 0; }; then
18744  pkg_cv_GPGME_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0" 2>/dev/null`
18745else
18746  pkg_failed=yes
18747fi
18748    fi
18749else
18750	pkg_failed=untried
18751fi
18752if test -n "$PKG_CONFIG"; then
18753    if test -n "$GPGME_QT_LIBS"; then
18754        pkg_cv_GPGME_QT_LIBS="$GPGME_QT_LIBS"
18755    else
18756        if test -n "$PKG_CONFIG" && \
18757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18758  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18759  ac_status=$?
18760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18761  test $ac_status = 0; }; then
18762  pkg_cv_GPGME_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0" 2>/dev/null`
18763else
18764  pkg_failed=yes
18765fi
18766    fi
18767else
18768	pkg_failed=untried
18769fi
18770
18771
18772
18773if test $pkg_failed = yes; then
18774
18775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18776        _pkg_short_errors_supported=yes
18777else
18778        _pkg_short_errors_supported=no
18779fi
18780        if test $_pkg_short_errors_supported = yes; then
18781	        GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18782        else
18783	        GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18784        fi
18785	# Put the nasty error message in config.log where it belongs
18786	echo "$GPGME_QT_PKG_ERRORS" >&5
18787
18788	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18789$as_echo "no" >&6; }
18790                have_qt5_libs="no"
18791elif test $pkg_failed = untried; then
18792	have_qt5_libs="no"
18793else
18794	GPGME_QT_CFLAGS=$pkg_cv_GPGME_QT_CFLAGS
18795	GPGME_QT_LIBS=$pkg_cv_GPGME_QT_LIBS
18796        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18797$as_echo "yes" >&6; }
18798	have_qt5_libs="yes"
18799fi
18800
18801
18802pkg_failed=no
18803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QTTEST" >&5
18804$as_echo_n "checking for GPGME_QTTEST... " >&6; }
18805
18806if test -n "$PKG_CONFIG"; then
18807    if test -n "$GPGME_QTTEST_CFLAGS"; then
18808        pkg_cv_GPGME_QTTEST_CFLAGS="$GPGME_QTTEST_CFLAGS"
18809    else
18810        if test -n "$PKG_CONFIG" && \
18811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18812  ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18813  ac_status=$?
18814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18815  test $ac_status = 0; }; then
18816  pkg_cv_GPGME_QTTEST_CFLAGS=`$PKG_CONFIG --cflags "Qt5Test >= 5.0.0" 2>/dev/null`
18817else
18818  pkg_failed=yes
18819fi
18820    fi
18821else
18822	pkg_failed=untried
18823fi
18824if test -n "$PKG_CONFIG"; then
18825    if test -n "$GPGME_QTTEST_LIBS"; then
18826        pkg_cv_GPGME_QTTEST_LIBS="$GPGME_QTTEST_LIBS"
18827    else
18828        if test -n "$PKG_CONFIG" && \
18829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18830  ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18831  ac_status=$?
18832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18833  test $ac_status = 0; }; then
18834  pkg_cv_GPGME_QTTEST_LIBS=`$PKG_CONFIG --libs "Qt5Test >= 5.0.0" 2>/dev/null`
18835else
18836  pkg_failed=yes
18837fi
18838    fi
18839else
18840	pkg_failed=untried
18841fi
18842
18843
18844
18845if test $pkg_failed = yes; then
18846
18847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18848        _pkg_short_errors_supported=yes
18849else
18850        _pkg_short_errors_supported=no
18851fi
18852        if test $_pkg_short_errors_supported = yes; then
18853	        GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18854        else
18855	        GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18856        fi
18857	# Put the nasty error message in config.log where it belongs
18858	echo "$GPGME_QTTEST_PKG_ERRORS" >&5
18859
18860	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18861$as_echo "no" >&6; }
18862                have_qt5test_libs="no"
18863elif test $pkg_failed = untried; then
18864	have_qt5test_libs="no"
18865else
18866	GPGME_QTTEST_CFLAGS=$pkg_cv_GPGME_QTTEST_CFLAGS
18867	GPGME_QTTEST_LIBS=$pkg_cv_GPGME_QTTEST_LIBS
18868        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869$as_echo "yes" >&6; }
18870	have_qt5test_libs="yes"
18871fi
18872
18873  if ! test "$have_w32_system" = yes; then
18874    if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
18875      GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
18876    fi
18877  fi
18878  if test "$have_qt5_libs" = "yes"; then
18879    if test -n "$ac_tool_prefix"; then
18880  # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18881set dummy ${ac_tool_prefix}moc; ac_word=$2
18882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18883$as_echo_n "checking for $ac_word... " >&6; }
18884if ${ac_cv_prog_MOC+:} false; then :
18885  $as_echo_n "(cached) " >&6
18886else
18887  if test -n "$MOC"; then
18888  ac_cv_prog_MOC="$MOC" # Let the user override the test.
18889else
18890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18891for as_dir in $PATH
18892do
18893  IFS=$as_save_IFS
18894  test -z "$as_dir" && as_dir=.
18895    for ac_exec_ext in '' $ac_executable_extensions; do
18896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18897    ac_cv_prog_MOC="${ac_tool_prefix}moc"
18898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18899    break 2
18900  fi
18901done
18902  done
18903IFS=$as_save_IFS
18904
18905fi
18906fi
18907MOC=$ac_cv_prog_MOC
18908if test -n "$MOC"; then
18909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18910$as_echo "$MOC" >&6; }
18911else
18912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18913$as_echo "no" >&6; }
18914fi
18915
18916
18917fi
18918if test -z "$ac_cv_prog_MOC"; then
18919  ac_ct_MOC=$MOC
18920  # Extract the first word of "moc", so it can be a program name with args.
18921set dummy moc; ac_word=$2
18922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18923$as_echo_n "checking for $ac_word... " >&6; }
18924if ${ac_cv_prog_ac_ct_MOC+:} false; then :
18925  $as_echo_n "(cached) " >&6
18926else
18927  if test -n "$ac_ct_MOC"; then
18928  ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
18929else
18930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18931for as_dir in $PATH
18932do
18933  IFS=$as_save_IFS
18934  test -z "$as_dir" && as_dir=.
18935    for ac_exec_ext in '' $ac_executable_extensions; do
18936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18937    ac_cv_prog_ac_ct_MOC="moc"
18938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18939    break 2
18940  fi
18941done
18942  done
18943IFS=$as_save_IFS
18944
18945fi
18946fi
18947ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
18948if test -n "$ac_ct_MOC"; then
18949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
18950$as_echo "$ac_ct_MOC" >&6; }
18951else
18952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953$as_echo "no" >&6; }
18954fi
18955
18956  if test "x$ac_ct_MOC" = x; then
18957    MOC=""
18958  else
18959    case $cross_compiling:$ac_tool_warned in
18960yes:)
18961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18963ac_tool_warned=yes ;;
18964esac
18965    MOC=$ac_ct_MOC
18966  fi
18967else
18968  MOC="$ac_cv_prog_MOC"
18969fi
18970
18971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
18972$as_echo_n "checking moc version... " >&6; }
18973    mocversion=`$MOC -v 2>&1`
18974    mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
18975    if test x"$mocversiongrep" != x"$mocversion"; then
18976      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977$as_echo "no" >&6; }
18978      # moc was not the qt5 one, try with moc-qt5
18979      if test -n "$ac_tool_prefix"; then
18980  # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
18981set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
18982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18983$as_echo_n "checking for $ac_word... " >&6; }
18984if ${ac_cv_prog_MOC2+:} false; then :
18985  $as_echo_n "(cached) " >&6
18986else
18987  if test -n "$MOC2"; then
18988  ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
18989else
18990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18991for as_dir in $PATH
18992do
18993  IFS=$as_save_IFS
18994  test -z "$as_dir" && as_dir=.
18995    for ac_exec_ext in '' $ac_executable_extensions; do
18996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18997    ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt5"
18998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18999    break 2
19000  fi
19001done
19002  done
19003IFS=$as_save_IFS
19004
19005fi
19006fi
19007MOC2=$ac_cv_prog_MOC2
19008if test -n "$MOC2"; then
19009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
19010$as_echo "$MOC2" >&6; }
19011else
19012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19013$as_echo "no" >&6; }
19014fi
19015
19016
19017fi
19018if test -z "$ac_cv_prog_MOC2"; then
19019  ac_ct_MOC2=$MOC2
19020  # Extract the first word of "moc-qt5", so it can be a program name with args.
19021set dummy moc-qt5; ac_word=$2
19022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19023$as_echo_n "checking for $ac_word... " >&6; }
19024if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
19025  $as_echo_n "(cached) " >&6
19026else
19027  if test -n "$ac_ct_MOC2"; then
19028  ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
19029else
19030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031for as_dir in $PATH
19032do
19033  IFS=$as_save_IFS
19034  test -z "$as_dir" && as_dir=.
19035    for ac_exec_ext in '' $ac_executable_extensions; do
19036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19037    ac_cv_prog_ac_ct_MOC2="moc-qt5"
19038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19039    break 2
19040  fi
19041done
19042  done
19043IFS=$as_save_IFS
19044
19045fi
19046fi
19047ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
19048if test -n "$ac_ct_MOC2"; then
19049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
19050$as_echo "$ac_ct_MOC2" >&6; }
19051else
19052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19053$as_echo "no" >&6; }
19054fi
19055
19056  if test "x$ac_ct_MOC2" = x; then
19057    MOC2=""
19058  else
19059    case $cross_compiling:$ac_tool_warned in
19060yes:)
19061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19063ac_tool_warned=yes ;;
19064esac
19065    MOC2=$ac_ct_MOC2
19066  fi
19067else
19068  MOC2="$ac_cv_prog_MOC2"
19069fi
19070
19071      mocversion=`$MOC2 -v 2>&1`
19072      mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc-qt5 5|moc 5"`
19073      if test x"$mocversiongrep" != x"$mocversion"; then
19074        if test -n "$ac_tool_prefix"; then
19075  # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
19076set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
19077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19078$as_echo_n "checking for $ac_word... " >&6; }
19079if ${ac_cv_prog_QTCHOOSER+:} false; then :
19080  $as_echo_n "(cached) " >&6
19081else
19082  if test -n "$QTCHOOSER"; then
19083  ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
19084else
19085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19086for as_dir in $PATH
19087do
19088  IFS=$as_save_IFS
19089  test -z "$as_dir" && as_dir=.
19090    for ac_exec_ext in '' $ac_executable_extensions; do
19091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19092    ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
19093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19094    break 2
19095  fi
19096done
19097  done
19098IFS=$as_save_IFS
19099
19100fi
19101fi
19102QTCHOOSER=$ac_cv_prog_QTCHOOSER
19103if test -n "$QTCHOOSER"; then
19104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
19105$as_echo "$QTCHOOSER" >&6; }
19106else
19107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108$as_echo "no" >&6; }
19109fi
19110
19111
19112fi
19113if test -z "$ac_cv_prog_QTCHOOSER"; then
19114  ac_ct_QTCHOOSER=$QTCHOOSER
19115  # Extract the first word of "qtchooser", so it can be a program name with args.
19116set dummy qtchooser; ac_word=$2
19117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19118$as_echo_n "checking for $ac_word... " >&6; }
19119if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
19120  $as_echo_n "(cached) " >&6
19121else
19122  if test -n "$ac_ct_QTCHOOSER"; then
19123  ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
19124else
19125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126for as_dir in $PATH
19127do
19128  IFS=$as_save_IFS
19129  test -z "$as_dir" && as_dir=.
19130    for ac_exec_ext in '' $ac_executable_extensions; do
19131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19132    ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
19133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19134    break 2
19135  fi
19136done
19137  done
19138IFS=$as_save_IFS
19139
19140fi
19141fi
19142ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
19143if test -n "$ac_ct_QTCHOOSER"; then
19144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
19145$as_echo "$ac_ct_QTCHOOSER" >&6; }
19146else
19147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148$as_echo "no" >&6; }
19149fi
19150
19151  if test "x$ac_ct_QTCHOOSER" = x; then
19152    QTCHOOSER=""
19153  else
19154    case $cross_compiling:$ac_tool_warned in
19155yes:)
19156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19158ac_tool_warned=yes ;;
19159esac
19160    QTCHOOSER=$ac_ct_QTCHOOSER
19161  fi
19162else
19163  QTCHOOSER="$ac_cv_prog_QTCHOOSER"
19164fi
19165
19166        qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
19167        mocversion=`$qt5tooldir/moc -v 2>&1`
19168        mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
19169        if test x"$mocversiongrep" != x"$mocversion"; then
19170          # no valid moc found
19171          have_qt5_libs="no";
19172        else
19173          MOC=$qt5tooldir/moc
19174        fi
19175      else
19176        MOC=$MOC2
19177      fi
19178    fi
19179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mocversion" >&5
19180$as_echo "$mocversion" >&6; }
19181                        OLDCPPFLAGS=$CPPFLAGS
19182    CPPFLAGS=$GPGME_QT_CFLAGS
19183    OLDLIBS=$LIBS
19184    LIBS=$GPGME_QT_LIBS
19185    ac_ext=cpp
19186ac_cpp='$CXXCPP $CPPFLAGS'
19187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19190
19191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple qt program can be built" >&5
19192$as_echo_n "checking whether a simple qt program can be built... " >&6; }
19193    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194/* end confdefs.h.  */
19195
19196    #include <QCoreApplication>
19197    int main (int argc, char **argv) {
19198    QCoreApplication app(argc, argv);
19199    app.exec();
19200    }
19201_ACEOF
19202if ac_fn_cxx_try_link "$LINENO"; then :
19203  have_qt5_libs='yes'
19204else
19205  have_qt5_libs='no'
19206fi
19207rm -f core conftest.err conftest.$ac_objext \
19208    conftest$ac_exeext conftest.$ac_ext
19209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt5_libs" >&5
19210$as_echo "$have_qt5_libs" >&6; }
19211    ac_ext=c
19212ac_cpp='$CPP $CPPFLAGS'
19213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215ac_compiler_gnu=$ac_cv_c_compiler_gnu
19216
19217    CPPFLAGS=$OLDCPPFLAGS
19218    LIBS=$OLDLIBS
19219  fi
19220
19221    if test "$have_qt5_libs" != "yes"; then
19222        if test "$explicit_languages" = "1"; then
19223        as_fn_error $? "
19224***
19225*** Qt5 (Qt5Core) is required for Qt binding.
19226***" "$LINENO" 5
19227        else
19228           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19229***
19230*** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19231***" >&5
19232$as_echo "$as_me: WARNING:
19233***
19234*** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19235***" >&2;}
19236        fi
19237    else
19238        enabled_languages=`echo $enabled_languages qt`
19239
19240        for ac_prog in doxygen
19241do
19242  # Extract the first word of "$ac_prog", so it can be a program name with args.
19243set dummy $ac_prog; ac_word=$2
19244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19245$as_echo_n "checking for $ac_word... " >&6; }
19246if ${ac_cv_prog_DOXYGEN+:} false; then :
19247  $as_echo_n "(cached) " >&6
19248else
19249  if test -n "$DOXYGEN"; then
19250  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19251else
19252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19253for as_dir in $PATH
19254do
19255  IFS=$as_save_IFS
19256  test -z "$as_dir" && as_dir=.
19257    for ac_exec_ext in '' $ac_executable_extensions; do
19258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19259    ac_cv_prog_DOXYGEN="$ac_prog"
19260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19261    break 2
19262  fi
19263done
19264  done
19265IFS=$as_save_IFS
19266
19267fi
19268fi
19269DOXYGEN=$ac_cv_prog_DOXYGEN
19270if test -n "$DOXYGEN"; then
19271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19272$as_echo "$DOXYGEN" >&6; }
19273else
19274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275$as_echo "no" >&6; }
19276fi
19277
19278
19279  test -n "$DOXYGEN" && break
19280done
19281
19282        if test -z "$DOXYGEN";
19283            # This is not highlighted because it's not really important.
19284            then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - Qt binding doc will not be built." >&5
19285$as_echo "$as_me: WARNING: Doxygen not found - Qt binding doc will not be built." >&2;}
19286        fi
19287        for ac_prog in dot
19288do
19289  # Extract the first word of "$ac_prog", so it can be a program name with args.
19290set dummy $ac_prog; ac_word=$2
19291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19292$as_echo_n "checking for $ac_word... " >&6; }
19293if ${ac_cv_prog_GRAPHVIZ+:} false; then :
19294  $as_echo_n "(cached) " >&6
19295else
19296  if test -n "$GRAPHVIZ"; then
19297  ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
19298else
19299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300for as_dir in $PATH
19301do
19302  IFS=$as_save_IFS
19303  test -z "$as_dir" && as_dir=.
19304    for ac_exec_ext in '' $ac_executable_extensions; do
19305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306    ac_cv_prog_GRAPHVIZ="$ac_prog"
19307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19308    break 2
19309  fi
19310done
19311  done
19312IFS=$as_save_IFS
19313
19314fi
19315fi
19316GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
19317if test -n "$GRAPHVIZ"; then
19318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
19319$as_echo "$GRAPHVIZ" >&6; }
19320else
19321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322$as_echo "no" >&6; }
19323fi
19324
19325
19326  test -n "$GRAPHVIZ" && break
19327done
19328
19329        if test -z "$GRAPHVIZ";
19330            then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&5
19331$as_echo "$as_me: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&2;}
19332        fi
19333    fi
19334fi
19335 if test -n "$DOXYGEN"; then
19336  HAVE_DOXYGEN_TRUE=
19337  HAVE_DOXYGEN_FALSE='#'
19338else
19339  HAVE_DOXYGEN_TRUE='#'
19340  HAVE_DOXYGEN_FALSE=
19341fi
19342
19343if test -n "$GRAPHVIZ"; then
19344    HAVE_DOT="YES"
19345else
19346    HAVE_DOT="NO"
19347fi
19348
19349
19350# Python bindings.
19351
19352name="python"
19353list=$enabled_languages
19354found=0
19355
19356for n in $list; do
19357  if test "x$name" = "x$n"; then
19358    found=1
19359  fi
19360done
19361
19362found_py=$found
19363if test "$found_py" = "1"; then
19364
19365        # Ubuntu has swig 2.0 as /usr/bin/swig2.0
19366        for ac_prog in swig swig2.0
19367do
19368  # Extract the first word of "$ac_prog", so it can be a program name with args.
19369set dummy $ac_prog; ac_word=$2
19370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19371$as_echo_n "checking for $ac_word... " >&6; }
19372if ${ac_cv_path_SWIG+:} false; then :
19373  $as_echo_n "(cached) " >&6
19374else
19375  case $SWIG in
19376  [\\/]* | ?:[\\/]*)
19377  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19378  ;;
19379  *)
19380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19381for as_dir in $PATH
19382do
19383  IFS=$as_save_IFS
19384  test -z "$as_dir" && as_dir=.
19385    for ac_exec_ext in '' $ac_executable_extensions; do
19386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19387    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19389    break 2
19390  fi
19391done
19392  done
19393IFS=$as_save_IFS
19394
19395  ;;
19396esac
19397fi
19398SWIG=$ac_cv_path_SWIG
19399if test -n "$SWIG"; then
19400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19401$as_echo "$SWIG" >&6; }
19402else
19403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404$as_echo "no" >&6; }
19405fi
19406
19407
19408  test -n "$SWIG" && break
19409done
19410
19411        if test -z "$SWIG" ; then
19412                :
19413        elif test -n "" ; then
19414                { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19415$as_echo_n "checking SWIG version... " >&6; }
19416                swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
19417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19418$as_echo "$swig_version" >&6; }
19419                if test -n "$swig_version" ; then
19420                        # Calculate the required version number components
19421                        required=
19422                        required_major=`echo $required | sed 's/[^0-9].*//'`
19423                        if test -z "$required_major" ; then
19424                                required_major=0
19425                        fi
19426                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19427                        required_minor=`echo $required | sed 's/[^0-9].*//'`
19428                        if test -z "$required_minor" ; then
19429                                required_minor=0
19430                        fi
19431                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19432                        required_patch=`echo $required | sed 's/[^0-9].*//'`
19433                        if test -z "$required_patch" ; then
19434                                required_patch=0
19435                        fi
19436                        # Calculate the available version number components
19437                        available=$swig_version
19438                        available_major=`echo $available | sed 's/[^0-9].*//'`
19439                        if test -z "$available_major" ; then
19440                                available_major=0
19441                        fi
19442                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19443                        available_minor=`echo $available | sed 's/[^0-9].*//'`
19444                        if test -z "$available_minor" ; then
19445                                available_minor=0
19446                        fi
19447                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19448                        available_patch=`echo $available | sed 's/[^0-9].*//'`
19449                        if test -z "$available_patch" ; then
19450                                available_patch=0
19451                        fi
19452                        # Convert the version tuple into a single number for easier comparison.
19453                        # Using base 100 should be safe since SWIG internally uses BCD values
19454                        # to encode its version number.
19455                        required_swig_vernum=`expr $required_major \* 10000 \
19456                            \+ $required_minor \* 100 \+ $required_patch`
19457                        available_swig_vernum=`expr $available_major \* 10000 \
19458                            \+ $available_minor \* 100 \+ $available_patch`
19459
19460                        if test $available_swig_vernum -lt $required_swig_vernum; then
19461                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
19462$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
19463                                SWIG=''
19464
19465                        else
19466                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19467$as_echo_n "checking for SWIG library... " >&6; }
19468                                SWIG_LIB=`$SWIG -swiglib`
19469                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19470$as_echo "$SWIG_LIB" >&6; }
19471
19472                        fi
19473                else
19474                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19475$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19476                        SWIG=''
19477
19478                fi
19479        fi
19480
19481
19482    if test -z "$SWIG"; then
19483        if test "$explicit_languages" = "1"; then
19484            as_fn_error $? "
19485***
19486*** You need SWIG to build the Python bindings.
19487***" "$LINENO" 5
19488        else
19489            enabled_languages=$(echo $enabled_languages | sed 's/python//')
19490        fi
19491    else
19492        # Reset the version collecting vars.
19493	PYTHONS=
19494	PYTHON_VERSIONS=
19495
19496	if test "$found_py" = "1" -o "$found_py3" = "1"; then
19497	  # Reset everything, so that we can look for another Python.
19498          unset PYTHON
19499	    unset PYTHON_VERSION
19500	    unset PYTHON_CPPFLAGS
19501	    unset PYTHON_LDFLAGS
19502	    unset PYTHON_SITE_PKG
19503	    unset PYTHON_EXTRA_LIBS
19504	    unset PYTHON_EXTRA_LDFLAGS
19505	    unset ac_cv_path_PYTHON
19506	    unset am_cv_pathless_PYTHON
19507	    unset am_cv_python_version
19508	    unset am_cv_python_platform
19509	    unset am_cv_python_pythondir
19510	    unset am_cv_python_pyexecdir
19511
19512
19513
19514
19515
19516
19517        if test -n "$PYTHON"; then
19518      # If the user set $PYTHON, use it and don't search something else.
19519      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19520$as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
19521      prog="import sys
19522# split strings by '.' and convert to numeric.  Append some zeros
19523# because we need at least 4 digits for the hex conversion.
19524# map returns an iterator in Python 3.0 and a list in 2.x
19525minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19526minverhex = 0
19527# xrange is not present in Python 3.0 and range returns an iterator
19528for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19529sys.exit(sys.hexversion < minverhex)"
19530  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19531   ($PYTHON -c "$prog") >&5 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); }; then :
19535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19536$as_echo "yes" >&6; }
19537else
19538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539$as_echo "no" >&6; }
19540			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19541fi
19542      am_display_PYTHON=$PYTHON
19543    else
19544      # Otherwise, try each interpreter until we find one that satisfies
19545      # VERSION.
19546      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19547$as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
19548if ${am_cv_pathless_PYTHON+:} false; then :
19549  $as_echo_n "(cached) " >&6
19550else
19551
19552	for am_cv_pathless_PYTHON           in python2.7 none; do
19553	  test "$am_cv_pathless_PYTHON" = none && break
19554	  prog="import sys
19555# split strings by '.' and convert to numeric.  Append some zeros
19556# because we need at least 4 digits for the hex conversion.
19557# map returns an iterator in Python 3.0 and a list in 2.x
19558minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19559minverhex = 0
19560# xrange is not present in Python 3.0 and range returns an iterator
19561for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19562sys.exit(sys.hexversion < minverhex)"
19563  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19564   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; then :
19568  break
19569fi
19570	done
19571fi
19572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19573$as_echo "$am_cv_pathless_PYTHON" >&6; }
19574      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19575      if test "$am_cv_pathless_PYTHON" = none; then
19576	PYTHON=:
19577      else
19578        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19579set dummy $am_cv_pathless_PYTHON; ac_word=$2
19580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19581$as_echo_n "checking for $ac_word... " >&6; }
19582if ${ac_cv_path_PYTHON+:} false; then :
19583  $as_echo_n "(cached) " >&6
19584else
19585  case $PYTHON in
19586  [\\/]* | ?:[\\/]*)
19587  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19588  ;;
19589  *)
19590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19591for as_dir in $PATH
19592do
19593  IFS=$as_save_IFS
19594  test -z "$as_dir" && as_dir=.
19595    for ac_exec_ext in '' $ac_executable_extensions; do
19596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19597    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19599    break 2
19600  fi
19601done
19602  done
19603IFS=$as_save_IFS
19604
19605  ;;
19606esac
19607fi
19608PYTHON=$ac_cv_path_PYTHON
19609if test -n "$PYTHON"; then
19610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19611$as_echo "$PYTHON" >&6; }
19612else
19613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19614$as_echo "no" >&6; }
19615fi
19616
19617
19618      fi
19619      am_display_PYTHON=$am_cv_pathless_PYTHON
19620    fi
19621
19622
19623  if test "$PYTHON" = :; then
19624      :
19625  else
19626
19627
19628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19629$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19630if ${am_cv_python_version+:} false; then :
19631  $as_echo_n "(cached) " >&6
19632else
19633  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19634fi
19635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19636$as_echo "$am_cv_python_version" >&6; }
19637  PYTHON_VERSION=$am_cv_python_version
19638
19639
19640
19641  PYTHON_PREFIX='${prefix}'
19642
19643  PYTHON_EXEC_PREFIX='${exec_prefix}'
19644
19645
19646
19647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19648$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19649if ${am_cv_python_platform+:} false; then :
19650  $as_echo_n "(cached) " >&6
19651else
19652  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19653fi
19654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19655$as_echo "$am_cv_python_platform" >&6; }
19656  PYTHON_PLATFORM=$am_cv_python_platform
19657
19658
19659  # Just factor out some code duplication.
19660  am_python_setup_sysconfig="\
19661import sys
19662# Prefer sysconfig over distutils.sysconfig, for better compatibility
19663# with python 3.x.  See automake bug#10227.
19664try:
19665    import sysconfig
19666except ImportError:
19667    can_use_sysconfig = 0
19668else:
19669    can_use_sysconfig = 1
19670# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19671# <https://github.com/pypa/virtualenv/issues/118>
19672try:
19673    from platform import python_implementation
19674    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19675        can_use_sysconfig = 0
19676except ImportError:
19677    pass"
19678
19679
19680            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19681$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19682if ${am_cv_python_pythondir+:} false; then :
19683  $as_echo_n "(cached) " >&6
19684else
19685  if test "x$prefix" = xNONE
19686     then
19687       am_py_prefix=$ac_default_prefix
19688     else
19689       am_py_prefix=$prefix
19690     fi
19691     am_cv_python_pythondir=`$PYTHON -c "
19692$am_python_setup_sysconfig
19693if can_use_sysconfig:
19694    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19695else:
19696    from distutils import sysconfig
19697    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19698sys.stdout.write(sitedir)"`
19699     case $am_cv_python_pythondir in
19700     $am_py_prefix*)
19701       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19702       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19703       ;;
19704     *)
19705       case $am_py_prefix in
19706         /usr|/System*) ;;
19707         *)
19708	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19709	  ;;
19710       esac
19711       ;;
19712     esac
19713
19714fi
19715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19716$as_echo "$am_cv_python_pythondir" >&6; }
19717  pythondir=$am_cv_python_pythondir
19718
19719
19720
19721  pkgpythondir=\${pythondir}/$PACKAGE
19722
19723
19724        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19725$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19726if ${am_cv_python_pyexecdir+:} false; then :
19727  $as_echo_n "(cached) " >&6
19728else
19729  if test "x$exec_prefix" = xNONE
19730     then
19731       am_py_exec_prefix=$am_py_prefix
19732     else
19733       am_py_exec_prefix=$exec_prefix
19734     fi
19735     am_cv_python_pyexecdir=`$PYTHON -c "
19736$am_python_setup_sysconfig
19737if can_use_sysconfig:
19738    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
19739else:
19740    from distutils import sysconfig
19741    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
19742sys.stdout.write(sitedir)"`
19743     case $am_cv_python_pyexecdir in
19744     $am_py_exec_prefix*)
19745       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19746       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19747       ;;
19748     *)
19749       case $am_py_exec_prefix in
19750         /usr|/System*) ;;
19751         *)
19752	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19753	   ;;
19754       esac
19755       ;;
19756     esac
19757
19758fi
19759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19760$as_echo "$am_cv_python_pyexecdir" >&6; }
19761  pyexecdir=$am_cv_python_pyexecdir
19762
19763
19764
19765  pkgpyexecdir=\${pyexecdir}/$PACKAGE
19766
19767
19768
19769
19770	#
19771	# Allow the use of a (user set) custom python version
19772	#
19773
19774
19775	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19776set dummy python$PYTHON_VERSION; ac_word=$2
19777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19778$as_echo_n "checking for $ac_word... " >&6; }
19779if ${ac_cv_path_PYTHON+:} false; then :
19780  $as_echo_n "(cached) " >&6
19781else
19782  case $PYTHON in
19783  [\\/]* | ?:[\\/]*)
19784  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19785  ;;
19786  *)
19787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19788for as_dir in $PATH
19789do
19790  IFS=$as_save_IFS
19791  test -z "$as_dir" && as_dir=.
19792    for ac_exec_ext in '' $ac_executable_extensions; do
19793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19794    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19796    break 2
19797  fi
19798done
19799  done
19800IFS=$as_save_IFS
19801
19802  ;;
19803esac
19804fi
19805PYTHON=$ac_cv_path_PYTHON
19806if test -n "$PYTHON"; then
19807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19808$as_echo "$PYTHON" >&6; }
19809else
19810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19811$as_echo "no" >&6; }
19812fi
19813
19814
19815	if test -z "$PYTHON"; then
19816	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19817	   PYTHON_VERSION=""
19818	fi
19819
19820	#
19821	# Check for a version of Python >= 2.1.0
19822	#
19823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19824$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
19825	ac_supports_python_ver=`$PYTHON -c "import sys; \
19826		ver = sys.version.split ()[0]; \
19827		print (ver >= '2.1.0')"`
19828	if test "$ac_supports_python_ver" != "True"; then
19829		if test -z "$PYTHON_NOVERSIONCHECK"; then
19830			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19831$as_echo "no" >&6; }
19832			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19834as_fn_error $? "
19835This version of the AC_PYTHON_DEVEL macro
19836doesn't work properly with versions of Python before
198372.1.0. You may need to re-run configure, setting the
19838variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
19839PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19840Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19841to something else than an empty string.
19842
19843See \`config.log' for more details" "$LINENO" 5; }
19844		else
19845			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19846$as_echo "skip at user request" >&6; }
19847		fi
19848	else
19849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19850$as_echo "yes" >&6; }
19851	fi
19852
19853	#
19854	# if the macro parameter ``version'' is set, honour it
19855	#
19856	if test -n ""; then
19857		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19858$as_echo_n "checking for a version of Python ... " >&6; }
19859		ac_supports_python_ver=`$PYTHON -c "import sys; \
19860			ver = sys.version.split ()[0]; \
19861			print (ver )"`
19862		if test "$ac_supports_python_ver" = "True"; then
19863		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19864$as_echo "yes" >&6; }
19865		else
19866			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19867$as_echo "no" >&6; }
19868			as_fn_error $? "this package requires Python .
19869If you have it installed, but it isn't the default Python
19870interpreter in your system path, please pass the PYTHON_VERSION
19871variable to configure. See \`\`configure --help'' for reference.
19872" "$LINENO" 5
19873			PYTHON_VERSION=""
19874		fi
19875	fi
19876
19877	#
19878	# Check if you have distutils, else fail
19879	#
19880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19881$as_echo_n "checking for the distutils Python package... " >&6; }
19882	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
19883	if test -z "$ac_distutils_result"; then
19884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19885$as_echo "yes" >&6; }
19886	else
19887		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19888$as_echo "no" >&6; }
19889		as_fn_error $? "cannot import Python module \"distutils\".
19890Please check your Python installation. The error was:
19891$ac_distutils_result" "$LINENO" 5
19892		PYTHON_VERSION=""
19893	fi
19894
19895	#
19896	# Check for Python include path
19897	#
19898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19899$as_echo_n "checking for Python include path... " >&6; }
19900	if test -z "$PYTHON_CPPFLAGS"; then
19901		python_path=`$PYTHON -c "import distutils.sysconfig; \
19902			print (distutils.sysconfig.get_python_inc ());"`
19903		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
19904			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
19905		if test -n "${python_path}"; then
19906			if test "${plat_python_path}" != "${python_path}"; then
19907				python_path="-I$python_path -I$plat_python_path"
19908			else
19909				python_path="-I$python_path"
19910			fi
19911		fi
19912		PYTHON_CPPFLAGS=$python_path
19913	fi
19914	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19915$as_echo "$PYTHON_CPPFLAGS" >&6; }
19916
19917
19918	#
19919	# Check for Python library path
19920	#
19921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19922$as_echo_n "checking for Python library path... " >&6; }
19923	if test -z "$PYTHON_LDFLAGS"; then
19924		# (makes two attempts to ensure we've got a version number
19925		# from the interpreter)
19926		ac_python_version=`cat<<EOD | $PYTHON -
19927
19928# join all versioning strings, on some systems
19929# major/minor numbers could be in different list elements
19930from distutils.sysconfig import *
19931e = get_config_var('VERSION')
19932if e is not None:
19933	print(e)
19934EOD`
19935
19936		if test -z "$ac_python_version"; then
19937			if test -n "$PYTHON_VERSION"; then
19938				ac_python_version=$PYTHON_VERSION
19939			else
19940				ac_python_version=`$PYTHON -c "import sys; \
19941					print (sys.version[:3])"`
19942			fi
19943		fi
19944
19945		# Make the versioning information available to the compiler
19946
19947		# JW: We don't need it and it interferes with the hack
19948		# to detect multiple Pyhton versions
19949		#AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
19950                #                  [If available, contains the Python version number currently in use.])
19951
19952		# First, the library directory:
19953		ac_python_libdir=`cat<<EOD | $PYTHON -
19954
19955# There should be only one
19956import distutils.sysconfig
19957e = distutils.sysconfig.get_config_var('LIBDIR')
19958if e is not None:
19959	print (e)
19960EOD`
19961
19962		# Now, for the library:
19963		ac_python_library=`cat<<EOD | $PYTHON -
19964
19965import distutils.sysconfig
19966c = distutils.sysconfig.get_config_vars()
19967if 'LDVERSION' in c:
19968	print ('python'+c['LDVERSION'])
19969else:
19970	print ('python'+c['VERSION'])
19971EOD`
19972
19973		# This small piece shamelessly adapted from PostgreSQL python macro;
19974		# credits goes to momjian, I think. I'd like to put the right name
19975		# in the credits, if someone can point me in the right direction... ?
19976		#
19977		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19978		then
19979			# use the official shared library
19980			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19981			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
19982		else
19983			# old way: use libpython from python_configdir
19984			ac_python_libdir=`$PYTHON -c \
19985			  "from distutils.sysconfig import get_python_lib as f; \
19986			  import os; \
19987			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19988			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
19989		fi
19990
19991		if test -z "PYTHON_LDFLAGS"; then
19992			as_fn_error $? "
19993  Cannot determine location of your Python DSO. Please check it was installed with
19994  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
19995			" "$LINENO" 5
19996		fi
19997	fi
19998	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19999$as_echo "$PYTHON_LDFLAGS" >&6; }
20000
20001
20002	#
20003	# Check for site packages
20004	#
20005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20006$as_echo_n "checking for Python site-packages path... " >&6; }
20007	if test -z "$PYTHON_SITE_PKG"; then
20008		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20009			print (distutils.sysconfig.get_python_lib(0,0));"`
20010	fi
20011	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20012$as_echo "$PYTHON_SITE_PKG" >&6; }
20013
20014
20015	#
20016	# libraries which must be linked in when embedding
20017	#
20018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20019$as_echo_n "checking python extra libraries... " >&6; }
20020	if test -z "$PYTHON_EXTRA_LIBS"; then
20021	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20022                conf = distutils.sysconfig.get_config_var; \
20023                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20024	fi
20025	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20026$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20027
20028
20029	#
20030	# linking flags needed when embedding
20031	#
20032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20033$as_echo_n "checking python extra linking flags... " >&6; }
20034	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20035		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20036			conf = distutils.sysconfig.get_config_var; \
20037			print (conf('LINKFORSHARED'))"`
20038	fi
20039	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20040$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20041
20042
20043	#
20044	# final check to see if everything compiles alright
20045	#
20046	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20047$as_echo_n "checking consistency of all components of python development environment... " >&6; }
20048	# save current global flags
20049	ac_save_LIBS="$LIBS"
20050	ac_save_CPPFLAGS="$CPPFLAGS"
20051	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20052	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20053	ac_ext=c
20054ac_cpp='$CPP $CPPFLAGS'
20055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20057ac_compiler_gnu=$ac_cv_c_compiler_gnu
20058
20059	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060/* end confdefs.h.  */
20061
20062		#include <Python.h>
20063int
20064main ()
20065{
20066Py_Initialize();
20067  ;
20068  return 0;
20069}
20070
20071_ACEOF
20072if ac_fn_c_try_link "$LINENO"; then :
20073  pythonexists=yes
20074else
20075  pythonexists=no
20076fi
20077rm -f core conftest.err conftest.$ac_objext \
20078    conftest$ac_exeext conftest.$ac_ext
20079	ac_ext=c
20080ac_cpp='$CPP $CPPFLAGS'
20081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084
20085	# turn back to default flags
20086	CPPFLAGS="$ac_save_CPPFLAGS"
20087	LIBS="$ac_save_LIBS"
20088
20089	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20090$as_echo "$pythonexists" >&6; }
20091
20092        if test ! "x$pythonexists" = "xyes"; then
20093	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20094  Could not link test program to Python. Maybe the main Python library has been
20095  installed in some non-standard library path. If so, pass it to configure,
20096  via the LDFLAGS environment variable.
20097  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20098  ============================================================================
20099   You probably have to install the development version of the Python package
20100   for your distribution.  The exact name of this package varies among them.
20101  ============================================================================
20102	   " >&5
20103$as_echo "$as_me: WARNING:
20104  Could not link test program to Python. Maybe the main Python library has been
20105  installed in some non-standard library path. If so, pass it to configure,
20106  via the LDFLAGS environment variable.
20107  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20108  ============================================================================
20109   You probably have to install the development version of the Python package
20110   for your distribution.  The exact name of this package varies among them.
20111  ============================================================================
20112	   " >&2;}
20113	  PYTHON_VERSION=""
20114	fi
20115
20116	#
20117	# all done!
20118	#
20119
20120		if test "$PYTHON_VERSION"; then
20121			PYTHONS="$(echo $PYTHONS $PYTHON)"
20122			PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20123		fi
20124
20125  fi
20126
20127
20128           unset PYTHON
20129	    unset PYTHON_VERSION
20130	    unset PYTHON_CPPFLAGS
20131	    unset PYTHON_LDFLAGS
20132	    unset PYTHON_SITE_PKG
20133	    unset PYTHON_EXTRA_LIBS
20134	    unset PYTHON_EXTRA_LDFLAGS
20135	    unset ac_cv_path_PYTHON
20136	    unset am_cv_pathless_PYTHON
20137	    unset am_cv_python_version
20138	    unset am_cv_python_platform
20139	    unset am_cv_python_pythondir
20140	    unset am_cv_python_pyexecdir
20141
20142
20143
20144
20145
20146
20147        if test -n "$PYTHON"; then
20148      # If the user set $PYTHON, use it and don't search something else.
20149      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
20150$as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
20151      prog="import sys
20152# split strings by '.' and convert to numeric.  Append some zeros
20153# because we need at least 4 digits for the hex conversion.
20154# map returns an iterator in Python 3.0 and a list in 2.x
20155minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20156minverhex = 0
20157# xrange is not present in Python 3.0 and range returns an iterator
20158for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20159sys.exit(sys.hexversion < minverhex)"
20160  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20161   ($PYTHON -c "$prog") >&5 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; then :
20165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20166$as_echo "yes" >&6; }
20167else
20168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169$as_echo "no" >&6; }
20170			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20171fi
20172      am_display_PYTHON=$PYTHON
20173    else
20174      # Otherwise, try each interpreter until we find one that satisfies
20175      # VERSION.
20176      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
20177$as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
20178if ${am_cv_pathless_PYTHON+:} false; then :
20179  $as_echo_n "(cached) " >&6
20180else
20181
20182	for am_cv_pathless_PYTHON           in python3.4 none; do
20183	  test "$am_cv_pathless_PYTHON" = none && break
20184	  prog="import sys
20185# split strings by '.' and convert to numeric.  Append some zeros
20186# because we need at least 4 digits for the hex conversion.
20187# map returns an iterator in Python 3.0 and a list in 2.x
20188minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20189minverhex = 0
20190# xrange is not present in Python 3.0 and range returns an iterator
20191for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20192sys.exit(sys.hexversion < minverhex)"
20193  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20194   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; then :
20198  break
20199fi
20200	done
20201fi
20202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20203$as_echo "$am_cv_pathless_PYTHON" >&6; }
20204      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20205      if test "$am_cv_pathless_PYTHON" = none; then
20206	PYTHON=:
20207      else
20208        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20209set dummy $am_cv_pathless_PYTHON; ac_word=$2
20210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211$as_echo_n "checking for $ac_word... " >&6; }
20212if ${ac_cv_path_PYTHON+:} false; then :
20213  $as_echo_n "(cached) " >&6
20214else
20215  case $PYTHON in
20216  [\\/]* | ?:[\\/]*)
20217  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20218  ;;
20219  *)
20220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20221for as_dir in $PATH
20222do
20223  IFS=$as_save_IFS
20224  test -z "$as_dir" && as_dir=.
20225    for ac_exec_ext in '' $ac_executable_extensions; do
20226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20227    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20229    break 2
20230  fi
20231done
20232  done
20233IFS=$as_save_IFS
20234
20235  ;;
20236esac
20237fi
20238PYTHON=$ac_cv_path_PYTHON
20239if test -n "$PYTHON"; then
20240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20241$as_echo "$PYTHON" >&6; }
20242else
20243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244$as_echo "no" >&6; }
20245fi
20246
20247
20248      fi
20249      am_display_PYTHON=$am_cv_pathless_PYTHON
20250    fi
20251
20252
20253  if test "$PYTHON" = :; then
20254      :
20255  else
20256
20257
20258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20259$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20260if ${am_cv_python_version+:} false; then :
20261  $as_echo_n "(cached) " >&6
20262else
20263  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20264fi
20265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20266$as_echo "$am_cv_python_version" >&6; }
20267  PYTHON_VERSION=$am_cv_python_version
20268
20269
20270
20271  PYTHON_PREFIX='${prefix}'
20272
20273  PYTHON_EXEC_PREFIX='${exec_prefix}'
20274
20275
20276
20277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20278$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20279if ${am_cv_python_platform+:} false; then :
20280  $as_echo_n "(cached) " >&6
20281else
20282  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20283fi
20284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20285$as_echo "$am_cv_python_platform" >&6; }
20286  PYTHON_PLATFORM=$am_cv_python_platform
20287
20288
20289  # Just factor out some code duplication.
20290  am_python_setup_sysconfig="\
20291import sys
20292# Prefer sysconfig over distutils.sysconfig, for better compatibility
20293# with python 3.x.  See automake bug#10227.
20294try:
20295    import sysconfig
20296except ImportError:
20297    can_use_sysconfig = 0
20298else:
20299    can_use_sysconfig = 1
20300# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20301# <https://github.com/pypa/virtualenv/issues/118>
20302try:
20303    from platform import python_implementation
20304    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20305        can_use_sysconfig = 0
20306except ImportError:
20307    pass"
20308
20309
20310            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20311$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20312if ${am_cv_python_pythondir+:} false; then :
20313  $as_echo_n "(cached) " >&6
20314else
20315  if test "x$prefix" = xNONE
20316     then
20317       am_py_prefix=$ac_default_prefix
20318     else
20319       am_py_prefix=$prefix
20320     fi
20321     am_cv_python_pythondir=`$PYTHON -c "
20322$am_python_setup_sysconfig
20323if can_use_sysconfig:
20324    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20325else:
20326    from distutils import sysconfig
20327    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20328sys.stdout.write(sitedir)"`
20329     case $am_cv_python_pythondir in
20330     $am_py_prefix*)
20331       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20332       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20333       ;;
20334     *)
20335       case $am_py_prefix in
20336         /usr|/System*) ;;
20337         *)
20338	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20339	  ;;
20340       esac
20341       ;;
20342     esac
20343
20344fi
20345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20346$as_echo "$am_cv_python_pythondir" >&6; }
20347  pythondir=$am_cv_python_pythondir
20348
20349
20350
20351  pkgpythondir=\${pythondir}/$PACKAGE
20352
20353
20354        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20355$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20356if ${am_cv_python_pyexecdir+:} false; then :
20357  $as_echo_n "(cached) " >&6
20358else
20359  if test "x$exec_prefix" = xNONE
20360     then
20361       am_py_exec_prefix=$am_py_prefix
20362     else
20363       am_py_exec_prefix=$exec_prefix
20364     fi
20365     am_cv_python_pyexecdir=`$PYTHON -c "
20366$am_python_setup_sysconfig
20367if can_use_sysconfig:
20368    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20369else:
20370    from distutils import sysconfig
20371    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20372sys.stdout.write(sitedir)"`
20373     case $am_cv_python_pyexecdir in
20374     $am_py_exec_prefix*)
20375       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20376       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20377       ;;
20378     *)
20379       case $am_py_exec_prefix in
20380         /usr|/System*) ;;
20381         *)
20382	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20383	   ;;
20384       esac
20385       ;;
20386     esac
20387
20388fi
20389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20390$as_echo "$am_cv_python_pyexecdir" >&6; }
20391  pyexecdir=$am_cv_python_pyexecdir
20392
20393
20394
20395  pkgpyexecdir=\${pyexecdir}/$PACKAGE
20396
20397
20398
20399
20400	#
20401	# Allow the use of a (user set) custom python version
20402	#
20403
20404
20405	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20406set dummy python$PYTHON_VERSION; ac_word=$2
20407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20408$as_echo_n "checking for $ac_word... " >&6; }
20409if ${ac_cv_path_PYTHON+:} false; then :
20410  $as_echo_n "(cached) " >&6
20411else
20412  case $PYTHON in
20413  [\\/]* | ?:[\\/]*)
20414  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20415  ;;
20416  *)
20417  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20418for as_dir in $PATH
20419do
20420  IFS=$as_save_IFS
20421  test -z "$as_dir" && as_dir=.
20422    for ac_exec_ext in '' $ac_executable_extensions; do
20423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20424    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20426    break 2
20427  fi
20428done
20429  done
20430IFS=$as_save_IFS
20431
20432  ;;
20433esac
20434fi
20435PYTHON=$ac_cv_path_PYTHON
20436if test -n "$PYTHON"; then
20437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20438$as_echo "$PYTHON" >&6; }
20439else
20440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20441$as_echo "no" >&6; }
20442fi
20443
20444
20445	if test -z "$PYTHON"; then
20446	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
20447	   PYTHON_VERSION=""
20448	fi
20449
20450	#
20451	# Check for a version of Python >= 2.1.0
20452	#
20453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
20454$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20455	ac_supports_python_ver=`$PYTHON -c "import sys; \
20456		ver = sys.version.split ()[0]; \
20457		print (ver >= '2.1.0')"`
20458	if test "$ac_supports_python_ver" != "True"; then
20459		if test -z "$PYTHON_NOVERSIONCHECK"; then
20460			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20461$as_echo "no" >&6; }
20462			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20464as_fn_error $? "
20465This version of the AC_PYTHON_DEVEL macro
20466doesn't work properly with versions of Python before
204672.1.0. You may need to re-run configure, setting the
20468variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20469PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20470Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20471to something else than an empty string.
20472
20473See \`config.log' for more details" "$LINENO" 5; }
20474		else
20475			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
20476$as_echo "skip at user request" >&6; }
20477		fi
20478	else
20479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20480$as_echo "yes" >&6; }
20481	fi
20482
20483	#
20484	# if the macro parameter ``version'' is set, honour it
20485	#
20486	if test -n ""; then
20487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
20488$as_echo_n "checking for a version of Python ... " >&6; }
20489		ac_supports_python_ver=`$PYTHON -c "import sys; \
20490			ver = sys.version.split ()[0]; \
20491			print (ver )"`
20492		if test "$ac_supports_python_ver" = "True"; then
20493		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20494$as_echo "yes" >&6; }
20495		else
20496			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20497$as_echo "no" >&6; }
20498			as_fn_error $? "this package requires Python .
20499If you have it installed, but it isn't the default Python
20500interpreter in your system path, please pass the PYTHON_VERSION
20501variable to configure. See \`\`configure --help'' for reference.
20502" "$LINENO" 5
20503			PYTHON_VERSION=""
20504		fi
20505	fi
20506
20507	#
20508	# Check if you have distutils, else fail
20509	#
20510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
20511$as_echo_n "checking for the distutils Python package... " >&6; }
20512	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20513	if test -z "$ac_distutils_result"; then
20514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20515$as_echo "yes" >&6; }
20516	else
20517		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20518$as_echo "no" >&6; }
20519		as_fn_error $? "cannot import Python module \"distutils\".
20520Please check your Python installation. The error was:
20521$ac_distutils_result" "$LINENO" 5
20522		PYTHON_VERSION=""
20523	fi
20524
20525	#
20526	# Check for Python include path
20527	#
20528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20529$as_echo_n "checking for Python include path... " >&6; }
20530	if test -z "$PYTHON_CPPFLAGS"; then
20531		python_path=`$PYTHON -c "import distutils.sysconfig; \
20532			print (distutils.sysconfig.get_python_inc ());"`
20533		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
20534			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
20535		if test -n "${python_path}"; then
20536			if test "${plat_python_path}" != "${python_path}"; then
20537				python_path="-I$python_path -I$plat_python_path"
20538			else
20539				python_path="-I$python_path"
20540			fi
20541		fi
20542		PYTHON_CPPFLAGS=$python_path
20543	fi
20544	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
20545$as_echo "$PYTHON_CPPFLAGS" >&6; }
20546
20547
20548	#
20549	# Check for Python library path
20550	#
20551	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
20552$as_echo_n "checking for Python library path... " >&6; }
20553	if test -z "$PYTHON_LDFLAGS"; then
20554		# (makes two attempts to ensure we've got a version number
20555		# from the interpreter)
20556		ac_python_version=`cat<<EOD | $PYTHON -
20557
20558# join all versioning strings, on some systems
20559# major/minor numbers could be in different list elements
20560from distutils.sysconfig import *
20561e = get_config_var('VERSION')
20562if e is not None:
20563	print(e)
20564EOD`
20565
20566		if test -z "$ac_python_version"; then
20567			if test -n "$PYTHON_VERSION"; then
20568				ac_python_version=$PYTHON_VERSION
20569			else
20570				ac_python_version=`$PYTHON -c "import sys; \
20571					print (sys.version[:3])"`
20572			fi
20573		fi
20574
20575		# Make the versioning information available to the compiler
20576
20577		# JW: We don't need it and it interferes with the hack
20578		# to detect multiple Pyhton versions
20579		#AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
20580                #                  [If available, contains the Python version number currently in use.])
20581
20582		# First, the library directory:
20583		ac_python_libdir=`cat<<EOD | $PYTHON -
20584
20585# There should be only one
20586import distutils.sysconfig
20587e = distutils.sysconfig.get_config_var('LIBDIR')
20588if e is not None:
20589	print (e)
20590EOD`
20591
20592		# Now, for the library:
20593		ac_python_library=`cat<<EOD | $PYTHON -
20594
20595import distutils.sysconfig
20596c = distutils.sysconfig.get_config_vars()
20597if 'LDVERSION' in c:
20598	print ('python'+c['LDVERSION'])
20599else:
20600	print ('python'+c['VERSION'])
20601EOD`
20602
20603		# This small piece shamelessly adapted from PostgreSQL python macro;
20604		# credits goes to momjian, I think. I'd like to put the right name
20605		# in the credits, if someone can point me in the right direction... ?
20606		#
20607		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
20608		then
20609			# use the official shared library
20610			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
20611			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
20612		else
20613			# old way: use libpython from python_configdir
20614			ac_python_libdir=`$PYTHON -c \
20615			  "from distutils.sysconfig import get_python_lib as f; \
20616			  import os; \
20617			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
20618			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
20619		fi
20620
20621		if test -z "PYTHON_LDFLAGS"; then
20622			as_fn_error $? "
20623  Cannot determine location of your Python DSO. Please check it was installed with
20624  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
20625			" "$LINENO" 5
20626		fi
20627	fi
20628	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20629$as_echo "$PYTHON_LDFLAGS" >&6; }
20630
20631
20632	#
20633	# Check for site packages
20634	#
20635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20636$as_echo_n "checking for Python site-packages path... " >&6; }
20637	if test -z "$PYTHON_SITE_PKG"; then
20638		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20639			print (distutils.sysconfig.get_python_lib(0,0));"`
20640	fi
20641	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20642$as_echo "$PYTHON_SITE_PKG" >&6; }
20643
20644
20645	#
20646	# libraries which must be linked in when embedding
20647	#
20648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20649$as_echo_n "checking python extra libraries... " >&6; }
20650	if test -z "$PYTHON_EXTRA_LIBS"; then
20651	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20652                conf = distutils.sysconfig.get_config_var; \
20653                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20654	fi
20655	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20656$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20657
20658
20659	#
20660	# linking flags needed when embedding
20661	#
20662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20663$as_echo_n "checking python extra linking flags... " >&6; }
20664	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20665		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20666			conf = distutils.sysconfig.get_config_var; \
20667			print (conf('LINKFORSHARED'))"`
20668	fi
20669	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20670$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20671
20672
20673	#
20674	# final check to see if everything compiles alright
20675	#
20676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20677$as_echo_n "checking consistency of all components of python development environment... " >&6; }
20678	# save current global flags
20679	ac_save_LIBS="$LIBS"
20680	ac_save_CPPFLAGS="$CPPFLAGS"
20681	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20682	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20683	ac_ext=c
20684ac_cpp='$CPP $CPPFLAGS'
20685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20687ac_compiler_gnu=$ac_cv_c_compiler_gnu
20688
20689	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20690/* end confdefs.h.  */
20691
20692		#include <Python.h>
20693int
20694main ()
20695{
20696Py_Initialize();
20697  ;
20698  return 0;
20699}
20700
20701_ACEOF
20702if ac_fn_c_try_link "$LINENO"; then :
20703  pythonexists=yes
20704else
20705  pythonexists=no
20706fi
20707rm -f core conftest.err conftest.$ac_objext \
20708    conftest$ac_exeext conftest.$ac_ext
20709	ac_ext=c
20710ac_cpp='$CPP $CPPFLAGS'
20711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713ac_compiler_gnu=$ac_cv_c_compiler_gnu
20714
20715	# turn back to default flags
20716	CPPFLAGS="$ac_save_CPPFLAGS"
20717	LIBS="$ac_save_LIBS"
20718
20719	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20720$as_echo "$pythonexists" >&6; }
20721
20722        if test ! "x$pythonexists" = "xyes"; then
20723	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20724  Could not link test program to Python. Maybe the main Python library has been
20725  installed in some non-standard library path. If so, pass it to configure,
20726  via the LDFLAGS environment variable.
20727  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20728  ============================================================================
20729   You probably have to install the development version of the Python package
20730   for your distribution.  The exact name of this package varies among them.
20731  ============================================================================
20732	   " >&5
20733$as_echo "$as_me: WARNING:
20734  Could not link test program to Python. Maybe the main Python library has been
20735  installed in some non-standard library path. If so, pass it to configure,
20736  via the LDFLAGS environment variable.
20737  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20738  ============================================================================
20739   You probably have to install the development version of the Python package
20740   for your distribution.  The exact name of this package varies among them.
20741  ============================================================================
20742	   " >&2;}
20743	  PYTHON_VERSION=""
20744	fi
20745
20746	#
20747	# all done!
20748	#
20749
20750		if test "$PYTHON_VERSION"; then
20751			PYTHONS="$(echo $PYTHONS $PYTHON)"
20752			PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20753		fi
20754
20755  fi
20756
20757
20758           unset PYTHON
20759	    unset PYTHON_VERSION
20760	    unset PYTHON_CPPFLAGS
20761	    unset PYTHON_LDFLAGS
20762	    unset PYTHON_SITE_PKG
20763	    unset PYTHON_EXTRA_LIBS
20764	    unset PYTHON_EXTRA_LDFLAGS
20765	    unset ac_cv_path_PYTHON
20766	    unset am_cv_pathless_PYTHON
20767	    unset am_cv_python_version
20768	    unset am_cv_python_platform
20769	    unset am_cv_python_pythondir
20770	    unset am_cv_python_pyexecdir
20771
20772
20773
20774
20775
20776
20777        if test -n "$PYTHON"; then
20778      # If the user set $PYTHON, use it and don't search something else.
20779      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.5" >&5
20780$as_echo_n "checking whether $PYTHON version is >= 3.5... " >&6; }
20781      prog="import sys
20782# split strings by '.' and convert to numeric.  Append some zeros
20783# because we need at least 4 digits for the hex conversion.
20784# map returns an iterator in Python 3.0 and a list in 2.x
20785minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20786minverhex = 0
20787# xrange is not present in Python 3.0 and range returns an iterator
20788for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20789sys.exit(sys.hexversion < minverhex)"
20790  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20791   ($PYTHON -c "$prog") >&5 2>&5
20792   ac_status=$?
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); }; then :
20795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20796$as_echo "yes" >&6; }
20797else
20798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799$as_echo "no" >&6; }
20800			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20801fi
20802      am_display_PYTHON=$PYTHON
20803    else
20804      # Otherwise, try each interpreter until we find one that satisfies
20805      # VERSION.
20806      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.5" >&5
20807$as_echo_n "checking for a Python interpreter with version >= 3.5... " >&6; }
20808if ${am_cv_pathless_PYTHON+:} false; then :
20809  $as_echo_n "(cached) " >&6
20810else
20811
20812	for am_cv_pathless_PYTHON           in python3.5 none; do
20813	  test "$am_cv_pathless_PYTHON" = none && break
20814	  prog="import sys
20815# split strings by '.' and convert to numeric.  Append some zeros
20816# because we need at least 4 digits for the hex conversion.
20817# map returns an iterator in Python 3.0 and a list in 2.x
20818minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20819minverhex = 0
20820# xrange is not present in Python 3.0 and range returns an iterator
20821for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20822sys.exit(sys.hexversion < minverhex)"
20823  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20824   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20825   ac_status=$?
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); }; then :
20828  break
20829fi
20830	done
20831fi
20832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20833$as_echo "$am_cv_pathless_PYTHON" >&6; }
20834      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20835      if test "$am_cv_pathless_PYTHON" = none; then
20836	PYTHON=:
20837      else
20838        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20839set dummy $am_cv_pathless_PYTHON; ac_word=$2
20840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20841$as_echo_n "checking for $ac_word... " >&6; }
20842if ${ac_cv_path_PYTHON+:} false; then :
20843  $as_echo_n "(cached) " >&6
20844else
20845  case $PYTHON in
20846  [\\/]* | ?:[\\/]*)
20847  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20848  ;;
20849  *)
20850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20851for as_dir in $PATH
20852do
20853  IFS=$as_save_IFS
20854  test -z "$as_dir" && as_dir=.
20855    for ac_exec_ext in '' $ac_executable_extensions; do
20856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20857    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20859    break 2
20860  fi
20861done
20862  done
20863IFS=$as_save_IFS
20864
20865  ;;
20866esac
20867fi
20868PYTHON=$ac_cv_path_PYTHON
20869if test -n "$PYTHON"; then
20870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20871$as_echo "$PYTHON" >&6; }
20872else
20873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874$as_echo "no" >&6; }
20875fi
20876
20877
20878      fi
20879      am_display_PYTHON=$am_cv_pathless_PYTHON
20880    fi
20881
20882
20883  if test "$PYTHON" = :; then
20884      :
20885  else
20886
20887
20888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20889$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20890if ${am_cv_python_version+:} false; then :
20891  $as_echo_n "(cached) " >&6
20892else
20893  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20894fi
20895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20896$as_echo "$am_cv_python_version" >&6; }
20897  PYTHON_VERSION=$am_cv_python_version
20898
20899
20900
20901  PYTHON_PREFIX='${prefix}'
20902
20903  PYTHON_EXEC_PREFIX='${exec_prefix}'
20904
20905
20906
20907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20908$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20909if ${am_cv_python_platform+:} false; then :
20910  $as_echo_n "(cached) " >&6
20911else
20912  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20913fi
20914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20915$as_echo "$am_cv_python_platform" >&6; }
20916  PYTHON_PLATFORM=$am_cv_python_platform
20917
20918
20919  # Just factor out some code duplication.
20920  am_python_setup_sysconfig="\
20921import sys
20922# Prefer sysconfig over distutils.sysconfig, for better compatibility
20923# with python 3.x.  See automake bug#10227.
20924try:
20925    import sysconfig
20926except ImportError:
20927    can_use_sysconfig = 0
20928else:
20929    can_use_sysconfig = 1
20930# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20931# <https://github.com/pypa/virtualenv/issues/118>
20932try:
20933    from platform import python_implementation
20934    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20935        can_use_sysconfig = 0
20936except ImportError:
20937    pass"
20938
20939
20940            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20941$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20942if ${am_cv_python_pythondir+:} false; then :
20943  $as_echo_n "(cached) " >&6
20944else
20945  if test "x$prefix" = xNONE
20946     then
20947       am_py_prefix=$ac_default_prefix
20948     else
20949       am_py_prefix=$prefix
20950     fi
20951     am_cv_python_pythondir=`$PYTHON -c "
20952$am_python_setup_sysconfig
20953if can_use_sysconfig:
20954    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20955else:
20956    from distutils import sysconfig
20957    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20958sys.stdout.write(sitedir)"`
20959     case $am_cv_python_pythondir in
20960     $am_py_prefix*)
20961       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20962       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20963       ;;
20964     *)
20965       case $am_py_prefix in
20966         /usr|/System*) ;;
20967         *)
20968	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20969	  ;;
20970       esac
20971       ;;
20972     esac
20973
20974fi
20975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20976$as_echo "$am_cv_python_pythondir" >&6; }
20977  pythondir=$am_cv_python_pythondir
20978
20979
20980
20981  pkgpythondir=\${pythondir}/$PACKAGE
20982
20983
20984        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20985$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20986if ${am_cv_python_pyexecdir+:} false; then :
20987  $as_echo_n "(cached) " >&6
20988else
20989  if test "x$exec_prefix" = xNONE
20990     then
20991       am_py_exec_prefix=$am_py_prefix
20992     else
20993       am_py_exec_prefix=$exec_prefix
20994     fi
20995     am_cv_python_pyexecdir=`$PYTHON -c "
20996$am_python_setup_sysconfig
20997if can_use_sysconfig:
20998    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20999else:
21000    from distutils import sysconfig
21001    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21002sys.stdout.write(sitedir)"`
21003     case $am_cv_python_pyexecdir in
21004     $am_py_exec_prefix*)
21005       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21006       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21007       ;;
21008     *)
21009       case $am_py_exec_prefix in
21010         /usr|/System*) ;;
21011         *)
21012	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21013	   ;;
21014       esac
21015       ;;
21016     esac
21017
21018fi
21019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21020$as_echo "$am_cv_python_pyexecdir" >&6; }
21021  pyexecdir=$am_cv_python_pyexecdir
21022
21023
21024
21025  pkgpyexecdir=\${pyexecdir}/$PACKAGE
21026
21027
21028
21029
21030	#
21031	# Allow the use of a (user set) custom python version
21032	#
21033
21034
21035	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21036set dummy python$PYTHON_VERSION; ac_word=$2
21037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21038$as_echo_n "checking for $ac_word... " >&6; }
21039if ${ac_cv_path_PYTHON+:} false; then :
21040  $as_echo_n "(cached) " >&6
21041else
21042  case $PYTHON in
21043  [\\/]* | ?:[\\/]*)
21044  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21045  ;;
21046  *)
21047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21048for as_dir in $PATH
21049do
21050  IFS=$as_save_IFS
21051  test -z "$as_dir" && as_dir=.
21052    for ac_exec_ext in '' $ac_executable_extensions; do
21053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21054    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21056    break 2
21057  fi
21058done
21059  done
21060IFS=$as_save_IFS
21061
21062  ;;
21063esac
21064fi
21065PYTHON=$ac_cv_path_PYTHON
21066if test -n "$PYTHON"; then
21067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21068$as_echo "$PYTHON" >&6; }
21069else
21070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071$as_echo "no" >&6; }
21072fi
21073
21074
21075	if test -z "$PYTHON"; then
21076	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21077	   PYTHON_VERSION=""
21078	fi
21079
21080	#
21081	# Check for a version of Python >= 2.1.0
21082	#
21083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21084$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21085	ac_supports_python_ver=`$PYTHON -c "import sys; \
21086		ver = sys.version.split ()[0]; \
21087		print (ver >= '2.1.0')"`
21088	if test "$ac_supports_python_ver" != "True"; then
21089		if test -z "$PYTHON_NOVERSIONCHECK"; then
21090			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091$as_echo "no" >&6; }
21092			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21094as_fn_error $? "
21095This version of the AC_PYTHON_DEVEL macro
21096doesn't work properly with versions of Python before
210972.1.0. You may need to re-run configure, setting the
21098variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21099PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21100Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21101to something else than an empty string.
21102
21103See \`config.log' for more details" "$LINENO" 5; }
21104		else
21105			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21106$as_echo "skip at user request" >&6; }
21107		fi
21108	else
21109		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21110$as_echo "yes" >&6; }
21111	fi
21112
21113	#
21114	# if the macro parameter ``version'' is set, honour it
21115	#
21116	if test -n ""; then
21117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21118$as_echo_n "checking for a version of Python ... " >&6; }
21119		ac_supports_python_ver=`$PYTHON -c "import sys; \
21120			ver = sys.version.split ()[0]; \
21121			print (ver )"`
21122		if test "$ac_supports_python_ver" = "True"; then
21123		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21124$as_echo "yes" >&6; }
21125		else
21126			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21127$as_echo "no" >&6; }
21128			as_fn_error $? "this package requires Python .
21129If you have it installed, but it isn't the default Python
21130interpreter in your system path, please pass the PYTHON_VERSION
21131variable to configure. See \`\`configure --help'' for reference.
21132" "$LINENO" 5
21133			PYTHON_VERSION=""
21134		fi
21135	fi
21136
21137	#
21138	# Check if you have distutils, else fail
21139	#
21140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21141$as_echo_n "checking for the distutils Python package... " >&6; }
21142	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21143	if test -z "$ac_distutils_result"; then
21144		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21145$as_echo "yes" >&6; }
21146	else
21147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21148$as_echo "no" >&6; }
21149		as_fn_error $? "cannot import Python module \"distutils\".
21150Please check your Python installation. The error was:
21151$ac_distutils_result" "$LINENO" 5
21152		PYTHON_VERSION=""
21153	fi
21154
21155	#
21156	# Check for Python include path
21157	#
21158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21159$as_echo_n "checking for Python include path... " >&6; }
21160	if test -z "$PYTHON_CPPFLAGS"; then
21161		python_path=`$PYTHON -c "import distutils.sysconfig; \
21162			print (distutils.sysconfig.get_python_inc ());"`
21163		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21164			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21165		if test -n "${python_path}"; then
21166			if test "${plat_python_path}" != "${python_path}"; then
21167				python_path="-I$python_path -I$plat_python_path"
21168			else
21169				python_path="-I$python_path"
21170			fi
21171		fi
21172		PYTHON_CPPFLAGS=$python_path
21173	fi
21174	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21175$as_echo "$PYTHON_CPPFLAGS" >&6; }
21176
21177
21178	#
21179	# Check for Python library path
21180	#
21181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21182$as_echo_n "checking for Python library path... " >&6; }
21183	if test -z "$PYTHON_LDFLAGS"; then
21184		# (makes two attempts to ensure we've got a version number
21185		# from the interpreter)
21186		ac_python_version=`cat<<EOD | $PYTHON -
21187
21188# join all versioning strings, on some systems
21189# major/minor numbers could be in different list elements
21190from distutils.sysconfig import *
21191e = get_config_var('VERSION')
21192if e is not None:
21193	print(e)
21194EOD`
21195
21196		if test -z "$ac_python_version"; then
21197			if test -n "$PYTHON_VERSION"; then
21198				ac_python_version=$PYTHON_VERSION
21199			else
21200				ac_python_version=`$PYTHON -c "import sys; \
21201					print (sys.version[:3])"`
21202			fi
21203		fi
21204
21205		# Make the versioning information available to the compiler
21206
21207		# JW: We don't need it and it interferes with the hack
21208		# to detect multiple Pyhton versions
21209		#AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21210                #                  [If available, contains the Python version number currently in use.])
21211
21212		# First, the library directory:
21213		ac_python_libdir=`cat<<EOD | $PYTHON -
21214
21215# There should be only one
21216import distutils.sysconfig
21217e = distutils.sysconfig.get_config_var('LIBDIR')
21218if e is not None:
21219	print (e)
21220EOD`
21221
21222		# Now, for the library:
21223		ac_python_library=`cat<<EOD | $PYTHON -
21224
21225import distutils.sysconfig
21226c = distutils.sysconfig.get_config_vars()
21227if 'LDVERSION' in c:
21228	print ('python'+c['LDVERSION'])
21229else:
21230	print ('python'+c['VERSION'])
21231EOD`
21232
21233		# This small piece shamelessly adapted from PostgreSQL python macro;
21234		# credits goes to momjian, I think. I'd like to put the right name
21235		# in the credits, if someone can point me in the right direction... ?
21236		#
21237		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21238		then
21239			# use the official shared library
21240			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21241			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21242		else
21243			# old way: use libpython from python_configdir
21244			ac_python_libdir=`$PYTHON -c \
21245			  "from distutils.sysconfig import get_python_lib as f; \
21246			  import os; \
21247			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21248			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21249		fi
21250
21251		if test -z "PYTHON_LDFLAGS"; then
21252			as_fn_error $? "
21253  Cannot determine location of your Python DSO. Please check it was installed with
21254  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21255			" "$LINENO" 5
21256		fi
21257	fi
21258	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21259$as_echo "$PYTHON_LDFLAGS" >&6; }
21260
21261
21262	#
21263	# Check for site packages
21264	#
21265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21266$as_echo_n "checking for Python site-packages path... " >&6; }
21267	if test -z "$PYTHON_SITE_PKG"; then
21268		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21269			print (distutils.sysconfig.get_python_lib(0,0));"`
21270	fi
21271	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21272$as_echo "$PYTHON_SITE_PKG" >&6; }
21273
21274
21275	#
21276	# libraries which must be linked in when embedding
21277	#
21278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21279$as_echo_n "checking python extra libraries... " >&6; }
21280	if test -z "$PYTHON_EXTRA_LIBS"; then
21281	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21282                conf = distutils.sysconfig.get_config_var; \
21283                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21284	fi
21285	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21286$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21287
21288
21289	#
21290	# linking flags needed when embedding
21291	#
21292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21293$as_echo_n "checking python extra linking flags... " >&6; }
21294	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21295		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21296			conf = distutils.sysconfig.get_config_var; \
21297			print (conf('LINKFORSHARED'))"`
21298	fi
21299	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21300$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21301
21302
21303	#
21304	# final check to see if everything compiles alright
21305	#
21306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21307$as_echo_n "checking consistency of all components of python development environment... " >&6; }
21308	# save current global flags
21309	ac_save_LIBS="$LIBS"
21310	ac_save_CPPFLAGS="$CPPFLAGS"
21311	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21312	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21313	ac_ext=c
21314ac_cpp='$CPP $CPPFLAGS'
21315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21317ac_compiler_gnu=$ac_cv_c_compiler_gnu
21318
21319	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21320/* end confdefs.h.  */
21321
21322		#include <Python.h>
21323int
21324main ()
21325{
21326Py_Initialize();
21327  ;
21328  return 0;
21329}
21330
21331_ACEOF
21332if ac_fn_c_try_link "$LINENO"; then :
21333  pythonexists=yes
21334else
21335  pythonexists=no
21336fi
21337rm -f core conftest.err conftest.$ac_objext \
21338    conftest$ac_exeext conftest.$ac_ext
21339	ac_ext=c
21340ac_cpp='$CPP $CPPFLAGS'
21341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21343ac_compiler_gnu=$ac_cv_c_compiler_gnu
21344
21345	# turn back to default flags
21346	CPPFLAGS="$ac_save_CPPFLAGS"
21347	LIBS="$ac_save_LIBS"
21348
21349	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21350$as_echo "$pythonexists" >&6; }
21351
21352        if test ! "x$pythonexists" = "xyes"; then
21353	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21354  Could not link test program to Python. Maybe the main Python library has been
21355  installed in some non-standard library path. If so, pass it to configure,
21356  via the LDFLAGS environment variable.
21357  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21358  ============================================================================
21359   You probably have to install the development version of the Python package
21360   for your distribution.  The exact name of this package varies among them.
21361  ============================================================================
21362	   " >&5
21363$as_echo "$as_me: WARNING:
21364  Could not link test program to Python. Maybe the main Python library has been
21365  installed in some non-standard library path. If so, pass it to configure,
21366  via the LDFLAGS environment variable.
21367  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21368  ============================================================================
21369   You probably have to install the development version of the Python package
21370   for your distribution.  The exact name of this package varies among them.
21371  ============================================================================
21372	   " >&2;}
21373	  PYTHON_VERSION=""
21374	fi
21375
21376	#
21377	# all done!
21378	#
21379
21380		if test "$PYTHON_VERSION"; then
21381			PYTHONS="$(echo $PYTHONS $PYTHON)"
21382			PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
21383		fi
21384
21385  fi
21386
21387
21388           unset PYTHON
21389	    unset PYTHON_VERSION
21390	    unset PYTHON_CPPFLAGS
21391	    unset PYTHON_LDFLAGS
21392	    unset PYTHON_SITE_PKG
21393	    unset PYTHON_EXTRA_LIBS
21394	    unset PYTHON_EXTRA_LDFLAGS
21395	    unset ac_cv_path_PYTHON
21396	    unset am_cv_pathless_PYTHON
21397	    unset am_cv_python_version
21398	    unset am_cv_python_platform
21399	    unset am_cv_python_pythondir
21400	    unset am_cv_python_pyexecdir
21401
21402
21403
21404
21405
21406
21407        if test -n "$PYTHON"; then
21408      # If the user set $PYTHON, use it and don't search something else.
21409      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
21410$as_echo_n "checking whether $PYTHON version is >= 3.6... " >&6; }
21411      prog="import sys
21412# split strings by '.' and convert to numeric.  Append some zeros
21413# because we need at least 4 digits for the hex conversion.
21414# map returns an iterator in Python 3.0 and a list in 2.x
21415minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21416minverhex = 0
21417# xrange is not present in Python 3.0 and range returns an iterator
21418for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21419sys.exit(sys.hexversion < minverhex)"
21420  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21421   ($PYTHON -c "$prog") >&5 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; then :
21425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21426$as_echo "yes" >&6; }
21427else
21428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21429$as_echo "no" >&6; }
21430			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
21431fi
21432      am_display_PYTHON=$PYTHON
21433    else
21434      # Otherwise, try each interpreter until we find one that satisfies
21435      # VERSION.
21436      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
21437$as_echo_n "checking for a Python interpreter with version >= 3.6... " >&6; }
21438if ${am_cv_pathless_PYTHON+:} false; then :
21439  $as_echo_n "(cached) " >&6
21440else
21441
21442	for am_cv_pathless_PYTHON           in python3.6 none; do
21443	  test "$am_cv_pathless_PYTHON" = none && break
21444	  prog="import sys
21445# split strings by '.' and convert to numeric.  Append some zeros
21446# because we need at least 4 digits for the hex conversion.
21447# map returns an iterator in Python 3.0 and a list in 2.x
21448minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21449minverhex = 0
21450# xrange is not present in Python 3.0 and range returns an iterator
21451for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21452sys.exit(sys.hexversion < minverhex)"
21453  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21454   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21455   ac_status=$?
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); }; then :
21458  break
21459fi
21460	done
21461fi
21462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21463$as_echo "$am_cv_pathless_PYTHON" >&6; }
21464      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21465      if test "$am_cv_pathless_PYTHON" = none; then
21466	PYTHON=:
21467      else
21468        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21469set dummy $am_cv_pathless_PYTHON; ac_word=$2
21470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21471$as_echo_n "checking for $ac_word... " >&6; }
21472if ${ac_cv_path_PYTHON+:} false; then :
21473  $as_echo_n "(cached) " >&6
21474else
21475  case $PYTHON in
21476  [\\/]* | ?:[\\/]*)
21477  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21478  ;;
21479  *)
21480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21481for as_dir in $PATH
21482do
21483  IFS=$as_save_IFS
21484  test -z "$as_dir" && as_dir=.
21485    for ac_exec_ext in '' $ac_executable_extensions; do
21486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21487    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21489    break 2
21490  fi
21491done
21492  done
21493IFS=$as_save_IFS
21494
21495  ;;
21496esac
21497fi
21498PYTHON=$ac_cv_path_PYTHON
21499if test -n "$PYTHON"; then
21500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21501$as_echo "$PYTHON" >&6; }
21502else
21503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21504$as_echo "no" >&6; }
21505fi
21506
21507
21508      fi
21509      am_display_PYTHON=$am_cv_pathless_PYTHON
21510    fi
21511
21512
21513  if test "$PYTHON" = :; then
21514      :
21515  else
21516
21517
21518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
21519$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
21520if ${am_cv_python_version+:} false; then :
21521  $as_echo_n "(cached) " >&6
21522else
21523  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
21524fi
21525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
21526$as_echo "$am_cv_python_version" >&6; }
21527  PYTHON_VERSION=$am_cv_python_version
21528
21529
21530
21531  PYTHON_PREFIX='${prefix}'
21532
21533  PYTHON_EXEC_PREFIX='${exec_prefix}'
21534
21535
21536
21537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
21538$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
21539if ${am_cv_python_platform+:} false; then :
21540  $as_echo_n "(cached) " >&6
21541else
21542  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
21543fi
21544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21545$as_echo "$am_cv_python_platform" >&6; }
21546  PYTHON_PLATFORM=$am_cv_python_platform
21547
21548
21549  # Just factor out some code duplication.
21550  am_python_setup_sysconfig="\
21551import sys
21552# Prefer sysconfig over distutils.sysconfig, for better compatibility
21553# with python 3.x.  See automake bug#10227.
21554try:
21555    import sysconfig
21556except ImportError:
21557    can_use_sysconfig = 0
21558else:
21559    can_use_sysconfig = 1
21560# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
21561# <https://github.com/pypa/virtualenv/issues/118>
21562try:
21563    from platform import python_implementation
21564    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
21565        can_use_sysconfig = 0
21566except ImportError:
21567    pass"
21568
21569
21570            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21571$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21572if ${am_cv_python_pythondir+:} false; then :
21573  $as_echo_n "(cached) " >&6
21574else
21575  if test "x$prefix" = xNONE
21576     then
21577       am_py_prefix=$ac_default_prefix
21578     else
21579       am_py_prefix=$prefix
21580     fi
21581     am_cv_python_pythondir=`$PYTHON -c "
21582$am_python_setup_sysconfig
21583if can_use_sysconfig:
21584    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
21585else:
21586    from distutils import sysconfig
21587    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
21588sys.stdout.write(sitedir)"`
21589     case $am_cv_python_pythondir in
21590     $am_py_prefix*)
21591       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21592       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21593       ;;
21594     *)
21595       case $am_py_prefix in
21596         /usr|/System*) ;;
21597         *)
21598	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
21599	  ;;
21600       esac
21601       ;;
21602     esac
21603
21604fi
21605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21606$as_echo "$am_cv_python_pythondir" >&6; }
21607  pythondir=$am_cv_python_pythondir
21608
21609
21610
21611  pkgpythondir=\${pythondir}/$PACKAGE
21612
21613
21614        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21615$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21616if ${am_cv_python_pyexecdir+:} false; then :
21617  $as_echo_n "(cached) " >&6
21618else
21619  if test "x$exec_prefix" = xNONE
21620     then
21621       am_py_exec_prefix=$am_py_prefix
21622     else
21623       am_py_exec_prefix=$exec_prefix
21624     fi
21625     am_cv_python_pyexecdir=`$PYTHON -c "
21626$am_python_setup_sysconfig
21627if can_use_sysconfig:
21628    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
21629else:
21630    from distutils import sysconfig
21631    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21632sys.stdout.write(sitedir)"`
21633     case $am_cv_python_pyexecdir in
21634     $am_py_exec_prefix*)
21635       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21636       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21637       ;;
21638     *)
21639       case $am_py_exec_prefix in
21640         /usr|/System*) ;;
21641         *)
21642	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21643	   ;;
21644       esac
21645       ;;
21646     esac
21647
21648fi
21649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21650$as_echo "$am_cv_python_pyexecdir" >&6; }
21651  pyexecdir=$am_cv_python_pyexecdir
21652
21653
21654
21655  pkgpyexecdir=\${pyexecdir}/$PACKAGE
21656
21657
21658
21659
21660	#
21661	# Allow the use of a (user set) custom python version
21662	#
21663
21664
21665	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21666set dummy python$PYTHON_VERSION; ac_word=$2
21667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21668$as_echo_n "checking for $ac_word... " >&6; }
21669if ${ac_cv_path_PYTHON+:} false; then :
21670  $as_echo_n "(cached) " >&6
21671else
21672  case $PYTHON in
21673  [\\/]* | ?:[\\/]*)
21674  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21675  ;;
21676  *)
21677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21678for as_dir in $PATH
21679do
21680  IFS=$as_save_IFS
21681  test -z "$as_dir" && as_dir=.
21682    for ac_exec_ext in '' $ac_executable_extensions; do
21683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21684    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21686    break 2
21687  fi
21688done
21689  done
21690IFS=$as_save_IFS
21691
21692  ;;
21693esac
21694fi
21695PYTHON=$ac_cv_path_PYTHON
21696if test -n "$PYTHON"; then
21697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21698$as_echo "$PYTHON" >&6; }
21699else
21700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701$as_echo "no" >&6; }
21702fi
21703
21704
21705	if test -z "$PYTHON"; then
21706	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21707	   PYTHON_VERSION=""
21708	fi
21709
21710	#
21711	# Check for a version of Python >= 2.1.0
21712	#
21713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21714$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21715	ac_supports_python_ver=`$PYTHON -c "import sys; \
21716		ver = sys.version.split ()[0]; \
21717		print (ver >= '2.1.0')"`
21718	if test "$ac_supports_python_ver" != "True"; then
21719		if test -z "$PYTHON_NOVERSIONCHECK"; then
21720			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21721$as_echo "no" >&6; }
21722			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21724as_fn_error $? "
21725This version of the AC_PYTHON_DEVEL macro
21726doesn't work properly with versions of Python before
217272.1.0. You may need to re-run configure, setting the
21728variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21729PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21730Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21731to something else than an empty string.
21732
21733See \`config.log' for more details" "$LINENO" 5; }
21734		else
21735			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21736$as_echo "skip at user request" >&6; }
21737		fi
21738	else
21739		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21740$as_echo "yes" >&6; }
21741	fi
21742
21743	#
21744	# if the macro parameter ``version'' is set, honour it
21745	#
21746	if test -n ""; then
21747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21748$as_echo_n "checking for a version of Python ... " >&6; }
21749		ac_supports_python_ver=`$PYTHON -c "import sys; \
21750			ver = sys.version.split ()[0]; \
21751			print (ver )"`
21752		if test "$ac_supports_python_ver" = "True"; then
21753		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21754$as_echo "yes" >&6; }
21755		else
21756			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21757$as_echo "no" >&6; }
21758			as_fn_error $? "this package requires Python .
21759If you have it installed, but it isn't the default Python
21760interpreter in your system path, please pass the PYTHON_VERSION
21761variable to configure. See \`\`configure --help'' for reference.
21762" "$LINENO" 5
21763			PYTHON_VERSION=""
21764		fi
21765	fi
21766
21767	#
21768	# Check if you have distutils, else fail
21769	#
21770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21771$as_echo_n "checking for the distutils Python package... " >&6; }
21772	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21773	if test -z "$ac_distutils_result"; then
21774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21775$as_echo "yes" >&6; }
21776	else
21777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21778$as_echo "no" >&6; }
21779		as_fn_error $? "cannot import Python module \"distutils\".
21780Please check your Python installation. The error was:
21781$ac_distutils_result" "$LINENO" 5
21782		PYTHON_VERSION=""
21783	fi
21784
21785	#
21786	# Check for Python include path
21787	#
21788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21789$as_echo_n "checking for Python include path... " >&6; }
21790	if test -z "$PYTHON_CPPFLAGS"; then
21791		python_path=`$PYTHON -c "import distutils.sysconfig; \
21792			print (distutils.sysconfig.get_python_inc ());"`
21793		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21794			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21795		if test -n "${python_path}"; then
21796			if test "${plat_python_path}" != "${python_path}"; then
21797				python_path="-I$python_path -I$plat_python_path"
21798			else
21799				python_path="-I$python_path"
21800			fi
21801		fi
21802		PYTHON_CPPFLAGS=$python_path
21803	fi
21804	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21805$as_echo "$PYTHON_CPPFLAGS" >&6; }
21806
21807
21808	#
21809	# Check for Python library path
21810	#
21811	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21812$as_echo_n "checking for Python library path... " >&6; }
21813	if test -z "$PYTHON_LDFLAGS"; then
21814		# (makes two attempts to ensure we've got a version number
21815		# from the interpreter)
21816		ac_python_version=`cat<<EOD | $PYTHON -
21817
21818# join all versioning strings, on some systems
21819# major/minor numbers could be in different list elements
21820from distutils.sysconfig import *
21821e = get_config_var('VERSION')
21822if e is not None:
21823	print(e)
21824EOD`
21825
21826		if test -z "$ac_python_version"; then
21827			if test -n "$PYTHON_VERSION"; then
21828				ac_python_version=$PYTHON_VERSION
21829			else
21830				ac_python_version=`$PYTHON -c "import sys; \
21831					print (sys.version[:3])"`
21832			fi
21833		fi
21834
21835		# Make the versioning information available to the compiler
21836
21837		# JW: We don't need it and it interferes with the hack
21838		# to detect multiple Pyhton versions
21839		#AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21840                #                  [If available, contains the Python version number currently in use.])
21841
21842		# First, the library directory:
21843		ac_python_libdir=`cat<<EOD | $PYTHON -
21844
21845# There should be only one
21846import distutils.sysconfig
21847e = distutils.sysconfig.get_config_var('LIBDIR')
21848if e is not None:
21849	print (e)
21850EOD`
21851
21852		# Now, for the library:
21853		ac_python_library=`cat<<EOD | $PYTHON -
21854
21855import distutils.sysconfig
21856c = distutils.sysconfig.get_config_vars()
21857if 'LDVERSION' in c:
21858	print ('python'+c['LDVERSION'])
21859else:
21860	print ('python'+c['VERSION'])
21861EOD`
21862
21863		# This small piece shamelessly adapted from PostgreSQL python macro;
21864		# credits goes to momjian, I think. I'd like to put the right name
21865		# in the credits, if someone can point me in the right direction... ?
21866		#
21867		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21868		then
21869			# use the official shared library
21870			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21871			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21872		else
21873			# old way: use libpython from python_configdir
21874			ac_python_libdir=`$PYTHON -c \
21875			  "from distutils.sysconfig import get_python_lib as f; \
21876			  import os; \
21877			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21878			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21879		fi
21880
21881		if test -z "PYTHON_LDFLAGS"; then
21882			as_fn_error $? "
21883  Cannot determine location of your Python DSO. Please check it was installed with
21884  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21885			" "$LINENO" 5
21886		fi
21887	fi
21888	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21889$as_echo "$PYTHON_LDFLAGS" >&6; }
21890
21891
21892	#
21893	# Check for site packages
21894	#
21895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21896$as_echo_n "checking for Python site-packages path... " >&6; }
21897	if test -z "$PYTHON_SITE_PKG"; then
21898		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21899			print (distutils.sysconfig.get_python_lib(0,0));"`
21900	fi
21901	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21902$as_echo "$PYTHON_SITE_PKG" >&6; }
21903
21904
21905	#
21906	# libraries which must be linked in when embedding
21907	#
21908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21909$as_echo_n "checking python extra libraries... " >&6; }
21910	if test -z "$PYTHON_EXTRA_LIBS"; then
21911	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21912                conf = distutils.sysconfig.get_config_var; \
21913                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21914	fi
21915	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21916$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21917
21918
21919	#
21920	# linking flags needed when embedding
21921	#
21922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21923$as_echo_n "checking python extra linking flags... " >&6; }
21924	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21925		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21926			conf = distutils.sysconfig.get_config_var; \
21927			print (conf('LINKFORSHARED'))"`
21928	fi
21929	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21930$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21931
21932
21933	#
21934	# final check to see if everything compiles alright
21935	#
21936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21937$as_echo_n "checking consistency of all components of python development environment... " >&6; }
21938	# save current global flags
21939	ac_save_LIBS="$LIBS"
21940	ac_save_CPPFLAGS="$CPPFLAGS"
21941	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21942	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21943	ac_ext=c
21944ac_cpp='$CPP $CPPFLAGS'
21945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947ac_compiler_gnu=$ac_cv_c_compiler_gnu
21948
21949	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21950/* end confdefs.h.  */
21951
21952		#include <Python.h>
21953int
21954main ()
21955{
21956Py_Initialize();
21957  ;
21958  return 0;
21959}
21960
21961_ACEOF
21962if ac_fn_c_try_link "$LINENO"; then :
21963  pythonexists=yes
21964else
21965  pythonexists=no
21966fi
21967rm -f core conftest.err conftest.$ac_objext \
21968    conftest$ac_exeext conftest.$ac_ext
21969	ac_ext=c
21970ac_cpp='$CPP $CPPFLAGS'
21971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21973ac_compiler_gnu=$ac_cv_c_compiler_gnu
21974
21975	# turn back to default flags
21976	CPPFLAGS="$ac_save_CPPFLAGS"
21977	LIBS="$ac_save_LIBS"
21978
21979	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21980$as_echo "$pythonexists" >&6; }
21981
21982        if test ! "x$pythonexists" = "xyes"; then
21983	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21984  Could not link test program to Python. Maybe the main Python library has been
21985  installed in some non-standard library path. If so, pass it to configure,
21986  via the LDFLAGS environment variable.
21987  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21988  ============================================================================
21989   You probably have to install the development version of the Python package
21990   for your distribution.  The exact name of this package varies among them.
21991  ============================================================================
21992	   " >&5
21993$as_echo "$as_me: WARNING:
21994  Could not link test program to Python. Maybe the main Python library has been
21995  installed in some non-standard library path. If so, pass it to configure,
21996  via the LDFLAGS environment variable.
21997  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21998  ============================================================================
21999   You probably have to install the development version of the Python package
22000   for your distribution.  The exact name of this package varies among them.
22001  ============================================================================
22002	   " >&2;}
22003	  PYTHON_VERSION=""
22004	fi
22005
22006	#
22007	# all done!
22008	#
22009
22010		if test "$PYTHON_VERSION"; then
22011			PYTHONS="$(echo $PYTHONS $PYTHON)"
22012			PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22013		fi
22014
22015  fi
22016
22017
22018           unset PYTHON
22019	    unset PYTHON_VERSION
22020	    unset PYTHON_CPPFLAGS
22021	    unset PYTHON_LDFLAGS
22022	    unset PYTHON_SITE_PKG
22023	    unset PYTHON_EXTRA_LIBS
22024	    unset PYTHON_EXTRA_LDFLAGS
22025	    unset ac_cv_path_PYTHON
22026	    unset am_cv_pathless_PYTHON
22027	    unset am_cv_python_version
22028	    unset am_cv_python_platform
22029	    unset am_cv_python_pythondir
22030	    unset am_cv_python_pyexecdir
22031
22032
22033
22034
22035
22036
22037        if test -n "$PYTHON"; then
22038      # If the user set $PYTHON, use it and don't search something else.
22039      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.7" >&5
22040$as_echo_n "checking whether $PYTHON version is >= 3.7... " >&6; }
22041      prog="import sys
22042# split strings by '.' and convert to numeric.  Append some zeros
22043# because we need at least 4 digits for the hex conversion.
22044# map returns an iterator in Python 3.0 and a list in 2.x
22045minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22046minverhex = 0
22047# xrange is not present in Python 3.0 and range returns an iterator
22048for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22049sys.exit(sys.hexversion < minverhex)"
22050  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22051   ($PYTHON -c "$prog") >&5 2>&5
22052   ac_status=$?
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); }; then :
22055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22056$as_echo "yes" >&6; }
22057else
22058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22059$as_echo "no" >&6; }
22060			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22061fi
22062      am_display_PYTHON=$PYTHON
22063    else
22064      # Otherwise, try each interpreter until we find one that satisfies
22065      # VERSION.
22066      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.7" >&5
22067$as_echo_n "checking for a Python interpreter with version >= 3.7... " >&6; }
22068if ${am_cv_pathless_PYTHON+:} false; then :
22069  $as_echo_n "(cached) " >&6
22070else
22071
22072	for am_cv_pathless_PYTHON           in python3.7 none; do
22073	  test "$am_cv_pathless_PYTHON" = none && break
22074	  prog="import sys
22075# split strings by '.' and convert to numeric.  Append some zeros
22076# because we need at least 4 digits for the hex conversion.
22077# map returns an iterator in Python 3.0 and a list in 2.x
22078minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22079minverhex = 0
22080# xrange is not present in Python 3.0 and range returns an iterator
22081for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22082sys.exit(sys.hexversion < minverhex)"
22083  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22084   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22085   ac_status=$?
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); }; then :
22088  break
22089fi
22090	done
22091fi
22092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22093$as_echo "$am_cv_pathless_PYTHON" >&6; }
22094      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22095      if test "$am_cv_pathless_PYTHON" = none; then
22096	PYTHON=:
22097      else
22098        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22099set dummy $am_cv_pathless_PYTHON; 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_PYTHON+:} false; then :
22103  $as_echo_n "(cached) " >&6
22104else
22105  case $PYTHON in
22106  [\\/]* | ?:[\\/]*)
22107  ac_cv_path_PYTHON="$PYTHON" # 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_PYTHON="$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
22128PYTHON=$ac_cv_path_PYTHON
22129if test -n "$PYTHON"; then
22130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22131$as_echo "$PYTHON" >&6; }
22132else
22133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22134$as_echo "no" >&6; }
22135fi
22136
22137
22138      fi
22139      am_display_PYTHON=$am_cv_pathless_PYTHON
22140    fi
22141
22142
22143  if test "$PYTHON" = :; then
22144      :
22145  else
22146
22147
22148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22149$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22150if ${am_cv_python_version+:} false; then :
22151  $as_echo_n "(cached) " >&6
22152else
22153  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22154fi
22155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22156$as_echo "$am_cv_python_version" >&6; }
22157  PYTHON_VERSION=$am_cv_python_version
22158
22159
22160
22161  PYTHON_PREFIX='${prefix}'
22162
22163  PYTHON_EXEC_PREFIX='${exec_prefix}'
22164
22165
22166
22167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22168$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22169if ${am_cv_python_platform+:} false; then :
22170  $as_echo_n "(cached) " >&6
22171else
22172  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22173fi
22174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22175$as_echo "$am_cv_python_platform" >&6; }
22176  PYTHON_PLATFORM=$am_cv_python_platform
22177
22178
22179  # Just factor out some code duplication.
22180  am_python_setup_sysconfig="\
22181import sys
22182# Prefer sysconfig over distutils.sysconfig, for better compatibility
22183# with python 3.x.  See automake bug#10227.
22184try:
22185    import sysconfig
22186except ImportError:
22187    can_use_sysconfig = 0
22188else:
22189    can_use_sysconfig = 1
22190# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22191# <https://github.com/pypa/virtualenv/issues/118>
22192try:
22193    from platform import python_implementation
22194    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22195        can_use_sysconfig = 0
22196except ImportError:
22197    pass"
22198
22199
22200            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22201$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22202if ${am_cv_python_pythondir+:} false; then :
22203  $as_echo_n "(cached) " >&6
22204else
22205  if test "x$prefix" = xNONE
22206     then
22207       am_py_prefix=$ac_default_prefix
22208     else
22209       am_py_prefix=$prefix
22210     fi
22211     am_cv_python_pythondir=`$PYTHON -c "
22212$am_python_setup_sysconfig
22213if can_use_sysconfig:
22214    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22215else:
22216    from distutils import sysconfig
22217    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22218sys.stdout.write(sitedir)"`
22219     case $am_cv_python_pythondir in
22220     $am_py_prefix*)
22221       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22222       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22223       ;;
22224     *)
22225       case $am_py_prefix in
22226         /usr|/System*) ;;
22227         *)
22228	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22229	  ;;
22230       esac
22231       ;;
22232     esac
22233
22234fi
22235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22236$as_echo "$am_cv_python_pythondir" >&6; }
22237  pythondir=$am_cv_python_pythondir
22238
22239
22240
22241  pkgpythondir=\${pythondir}/$PACKAGE
22242
22243
22244        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22245$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22246if ${am_cv_python_pyexecdir+:} false; then :
22247  $as_echo_n "(cached) " >&6
22248else
22249  if test "x$exec_prefix" = xNONE
22250     then
22251       am_py_exec_prefix=$am_py_prefix
22252     else
22253       am_py_exec_prefix=$exec_prefix
22254     fi
22255     am_cv_python_pyexecdir=`$PYTHON -c "
22256$am_python_setup_sysconfig
22257if can_use_sysconfig:
22258    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22259else:
22260    from distutils import sysconfig
22261    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22262sys.stdout.write(sitedir)"`
22263     case $am_cv_python_pyexecdir in
22264     $am_py_exec_prefix*)
22265       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22266       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22267       ;;
22268     *)
22269       case $am_py_exec_prefix in
22270         /usr|/System*) ;;
22271         *)
22272	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22273	   ;;
22274       esac
22275       ;;
22276     esac
22277
22278fi
22279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22280$as_echo "$am_cv_python_pyexecdir" >&6; }
22281  pyexecdir=$am_cv_python_pyexecdir
22282
22283
22284
22285  pkgpyexecdir=\${pyexecdir}/$PACKAGE
22286
22287
22288
22289
22290	#
22291	# Allow the use of a (user set) custom python version
22292	#
22293
22294
22295	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22296set dummy python$PYTHON_VERSION; ac_word=$2
22297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22298$as_echo_n "checking for $ac_word... " >&6; }
22299if ${ac_cv_path_PYTHON+:} false; then :
22300  $as_echo_n "(cached) " >&6
22301else
22302  case $PYTHON in
22303  [\\/]* | ?:[\\/]*)
22304  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22305  ;;
22306  *)
22307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22308for as_dir in $PATH
22309do
22310  IFS=$as_save_IFS
22311  test -z "$as_dir" && as_dir=.
22312    for ac_exec_ext in '' $ac_executable_extensions; do
22313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22314    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22316    break 2
22317  fi
22318done
22319  done
22320IFS=$as_save_IFS
22321
22322  ;;
22323esac
22324fi
22325PYTHON=$ac_cv_path_PYTHON
22326if test -n "$PYTHON"; then
22327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22328$as_echo "$PYTHON" >&6; }
22329else
22330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22331$as_echo "no" >&6; }
22332fi
22333
22334
22335	if test -z "$PYTHON"; then
22336	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22337	   PYTHON_VERSION=""
22338	fi
22339
22340	#
22341	# Check for a version of Python >= 2.1.0
22342	#
22343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22344$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22345	ac_supports_python_ver=`$PYTHON -c "import sys; \
22346		ver = sys.version.split ()[0]; \
22347		print (ver >= '2.1.0')"`
22348	if test "$ac_supports_python_ver" != "True"; then
22349		if test -z "$PYTHON_NOVERSIONCHECK"; then
22350			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22351$as_echo "no" >&6; }
22352			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22354as_fn_error $? "
22355This version of the AC_PYTHON_DEVEL macro
22356doesn't work properly with versions of Python before
223572.1.0. You may need to re-run configure, setting the
22358variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22359PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22360Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22361to something else than an empty string.
22362
22363See \`config.log' for more details" "$LINENO" 5; }
22364		else
22365			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22366$as_echo "skip at user request" >&6; }
22367		fi
22368	else
22369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22370$as_echo "yes" >&6; }
22371	fi
22372
22373	#
22374	# if the macro parameter ``version'' is set, honour it
22375	#
22376	if test -n ""; then
22377		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
22378$as_echo_n "checking for a version of Python ... " >&6; }
22379		ac_supports_python_ver=`$PYTHON -c "import sys; \
22380			ver = sys.version.split ()[0]; \
22381			print (ver )"`
22382		if test "$ac_supports_python_ver" = "True"; then
22383		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22384$as_echo "yes" >&6; }
22385		else
22386			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22387$as_echo "no" >&6; }
22388			as_fn_error $? "this package requires Python .
22389If you have it installed, but it isn't the default Python
22390interpreter in your system path, please pass the PYTHON_VERSION
22391variable to configure. See \`\`configure --help'' for reference.
22392" "$LINENO" 5
22393			PYTHON_VERSION=""
22394		fi
22395	fi
22396
22397	#
22398	# Check if you have distutils, else fail
22399	#
22400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
22401$as_echo_n "checking for the distutils Python package... " >&6; }
22402	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22403	if test -z "$ac_distutils_result"; then
22404		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22405$as_echo "yes" >&6; }
22406	else
22407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408$as_echo "no" >&6; }
22409		as_fn_error $? "cannot import Python module \"distutils\".
22410Please check your Python installation. The error was:
22411$ac_distutils_result" "$LINENO" 5
22412		PYTHON_VERSION=""
22413	fi
22414
22415	#
22416	# Check for Python include path
22417	#
22418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
22419$as_echo_n "checking for Python include path... " >&6; }
22420	if test -z "$PYTHON_CPPFLAGS"; then
22421		python_path=`$PYTHON -c "import distutils.sysconfig; \
22422			print (distutils.sysconfig.get_python_inc ());"`
22423		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
22424			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
22425		if test -n "${python_path}"; then
22426			if test "${plat_python_path}" != "${python_path}"; then
22427				python_path="-I$python_path -I$plat_python_path"
22428			else
22429				python_path="-I$python_path"
22430			fi
22431		fi
22432		PYTHON_CPPFLAGS=$python_path
22433	fi
22434	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
22435$as_echo "$PYTHON_CPPFLAGS" >&6; }
22436
22437
22438	#
22439	# Check for Python library path
22440	#
22441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
22442$as_echo_n "checking for Python library path... " >&6; }
22443	if test -z "$PYTHON_LDFLAGS"; then
22444		# (makes two attempts to ensure we've got a version number
22445		# from the interpreter)
22446		ac_python_version=`cat<<EOD | $PYTHON -
22447
22448# join all versioning strings, on some systems
22449# major/minor numbers could be in different list elements
22450from distutils.sysconfig import *
22451e = get_config_var('VERSION')
22452if e is not None:
22453	print(e)
22454EOD`
22455
22456		if test -z "$ac_python_version"; then
22457			if test -n "$PYTHON_VERSION"; then
22458				ac_python_version=$PYTHON_VERSION
22459			else
22460				ac_python_version=`$PYTHON -c "import sys; \
22461					print (sys.version[:3])"`
22462			fi
22463		fi
22464
22465		# Make the versioning information available to the compiler
22466
22467		# JW: We don't need it and it interferes with the hack
22468		# to detect multiple Pyhton versions
22469		#AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
22470                #                  [If available, contains the Python version number currently in use.])
22471
22472		# First, the library directory:
22473		ac_python_libdir=`cat<<EOD | $PYTHON -
22474
22475# There should be only one
22476import distutils.sysconfig
22477e = distutils.sysconfig.get_config_var('LIBDIR')
22478if e is not None:
22479	print (e)
22480EOD`
22481
22482		# Now, for the library:
22483		ac_python_library=`cat<<EOD | $PYTHON -
22484
22485import distutils.sysconfig
22486c = distutils.sysconfig.get_config_vars()
22487if 'LDVERSION' in c:
22488	print ('python'+c['LDVERSION'])
22489else:
22490	print ('python'+c['VERSION'])
22491EOD`
22492
22493		# This small piece shamelessly adapted from PostgreSQL python macro;
22494		# credits goes to momjian, I think. I'd like to put the right name
22495		# in the credits, if someone can point me in the right direction... ?
22496		#
22497		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
22498		then
22499			# use the official shared library
22500			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
22501			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
22502		else
22503			# old way: use libpython from python_configdir
22504			ac_python_libdir=`$PYTHON -c \
22505			  "from distutils.sysconfig import get_python_lib as f; \
22506			  import os; \
22507			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
22508			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
22509		fi
22510
22511		if test -z "PYTHON_LDFLAGS"; then
22512			as_fn_error $? "
22513  Cannot determine location of your Python DSO. Please check it was installed with
22514  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
22515			" "$LINENO" 5
22516		fi
22517	fi
22518	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
22519$as_echo "$PYTHON_LDFLAGS" >&6; }
22520
22521
22522	#
22523	# Check for site packages
22524	#
22525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
22526$as_echo_n "checking for Python site-packages path... " >&6; }
22527	if test -z "$PYTHON_SITE_PKG"; then
22528		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
22529			print (distutils.sysconfig.get_python_lib(0,0));"`
22530	fi
22531	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
22532$as_echo "$PYTHON_SITE_PKG" >&6; }
22533
22534
22535	#
22536	# libraries which must be linked in when embedding
22537	#
22538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
22539$as_echo_n "checking python extra libraries... " >&6; }
22540	if test -z "$PYTHON_EXTRA_LIBS"; then
22541	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
22542                conf = distutils.sysconfig.get_config_var; \
22543                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
22544	fi
22545	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
22546$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
22547
22548
22549	#
22550	# linking flags needed when embedding
22551	#
22552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
22553$as_echo_n "checking python extra linking flags... " >&6; }
22554	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
22555		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
22556			conf = distutils.sysconfig.get_config_var; \
22557			print (conf('LINKFORSHARED'))"`
22558	fi
22559	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
22560$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
22561
22562
22563	#
22564	# final check to see if everything compiles alright
22565	#
22566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
22567$as_echo_n "checking consistency of all components of python development environment... " >&6; }
22568	# save current global flags
22569	ac_save_LIBS="$LIBS"
22570	ac_save_CPPFLAGS="$CPPFLAGS"
22571	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
22572	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
22573	ac_ext=c
22574ac_cpp='$CPP $CPPFLAGS'
22575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22577ac_compiler_gnu=$ac_cv_c_compiler_gnu
22578
22579	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22580/* end confdefs.h.  */
22581
22582		#include <Python.h>
22583int
22584main ()
22585{
22586Py_Initialize();
22587  ;
22588  return 0;
22589}
22590
22591_ACEOF
22592if ac_fn_c_try_link "$LINENO"; then :
22593  pythonexists=yes
22594else
22595  pythonexists=no
22596fi
22597rm -f core conftest.err conftest.$ac_objext \
22598    conftest$ac_exeext conftest.$ac_ext
22599	ac_ext=c
22600ac_cpp='$CPP $CPPFLAGS'
22601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22603ac_compiler_gnu=$ac_cv_c_compiler_gnu
22604
22605	# turn back to default flags
22606	CPPFLAGS="$ac_save_CPPFLAGS"
22607	LIBS="$ac_save_LIBS"
22608
22609	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
22610$as_echo "$pythonexists" >&6; }
22611
22612        if test ! "x$pythonexists" = "xyes"; then
22613	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22614  Could not link test program to Python. Maybe the main Python library has been
22615  installed in some non-standard library path. If so, pass it to configure,
22616  via the LDFLAGS environment variable.
22617  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22618  ============================================================================
22619   You probably have to install the development version of the Python package
22620   for your distribution.  The exact name of this package varies among them.
22621  ============================================================================
22622	   " >&5
22623$as_echo "$as_me: WARNING:
22624  Could not link test program to Python. Maybe the main Python library has been
22625  installed in some non-standard library path. If so, pass it to configure,
22626  via the LDFLAGS environment variable.
22627  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22628  ============================================================================
22629   You probably have to install the development version of the Python package
22630   for your distribution.  The exact name of this package varies among them.
22631  ============================================================================
22632	   " >&2;}
22633	  PYTHON_VERSION=""
22634	fi
22635
22636	#
22637	# all done!
22638	#
22639
22640		if test "$PYTHON_VERSION"; then
22641			PYTHONS="$(echo $PYTHONS $PYTHON)"
22642			PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22643		fi
22644
22645  fi
22646
22647
22648           unset PYTHON
22649	    unset PYTHON_VERSION
22650	    unset PYTHON_CPPFLAGS
22651	    unset PYTHON_LDFLAGS
22652	    unset PYTHON_SITE_PKG
22653	    unset PYTHON_EXTRA_LIBS
22654	    unset PYTHON_EXTRA_LDFLAGS
22655	    unset ac_cv_path_PYTHON
22656	    unset am_cv_pathless_PYTHON
22657	    unset am_cv_python_version
22658	    unset am_cv_python_platform
22659	    unset am_cv_python_pythondir
22660	    unset am_cv_python_pyexecdir
22661
22662
22663
22664
22665
22666
22667        if test -n "$PYTHON"; then
22668      # If the user set $PYTHON, use it and don't search something else.
22669      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.8" >&5
22670$as_echo_n "checking whether $PYTHON version is >= 3.8... " >&6; }
22671      prog="import sys
22672# split strings by '.' and convert to numeric.  Append some zeros
22673# because we need at least 4 digits for the hex conversion.
22674# map returns an iterator in Python 3.0 and a list in 2.x
22675minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22676minverhex = 0
22677# xrange is not present in Python 3.0 and range returns an iterator
22678for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22679sys.exit(sys.hexversion < minverhex)"
22680  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22681   ($PYTHON -c "$prog") >&5 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); }; then :
22685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22686$as_echo "yes" >&6; }
22687else
22688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22689$as_echo "no" >&6; }
22690			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22691fi
22692      am_display_PYTHON=$PYTHON
22693    else
22694      # Otherwise, try each interpreter until we find one that satisfies
22695      # VERSION.
22696      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.8" >&5
22697$as_echo_n "checking for a Python interpreter with version >= 3.8... " >&6; }
22698if ${am_cv_pathless_PYTHON+:} false; then :
22699  $as_echo_n "(cached) " >&6
22700else
22701
22702	for am_cv_pathless_PYTHON           in python3.8 none; do
22703	  test "$am_cv_pathless_PYTHON" = none && break
22704	  prog="import sys
22705# split strings by '.' and convert to numeric.  Append some zeros
22706# because we need at least 4 digits for the hex conversion.
22707# map returns an iterator in Python 3.0 and a list in 2.x
22708minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22709minverhex = 0
22710# xrange is not present in Python 3.0 and range returns an iterator
22711for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22712sys.exit(sys.hexversion < minverhex)"
22713  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22714   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22715   ac_status=$?
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; then :
22718  break
22719fi
22720	done
22721fi
22722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22723$as_echo "$am_cv_pathless_PYTHON" >&6; }
22724      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22725      if test "$am_cv_pathless_PYTHON" = none; then
22726	PYTHON=:
22727      else
22728        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22729set dummy $am_cv_pathless_PYTHON; ac_word=$2
22730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22731$as_echo_n "checking for $ac_word... " >&6; }
22732if ${ac_cv_path_PYTHON+:} false; then :
22733  $as_echo_n "(cached) " >&6
22734else
22735  case $PYTHON in
22736  [\\/]* | ?:[\\/]*)
22737  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22738  ;;
22739  *)
22740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741for as_dir in $PATH
22742do
22743  IFS=$as_save_IFS
22744  test -z "$as_dir" && as_dir=.
22745    for ac_exec_ext in '' $ac_executable_extensions; do
22746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22747    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22749    break 2
22750  fi
22751done
22752  done
22753IFS=$as_save_IFS
22754
22755  ;;
22756esac
22757fi
22758PYTHON=$ac_cv_path_PYTHON
22759if test -n "$PYTHON"; then
22760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22761$as_echo "$PYTHON" >&6; }
22762else
22763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764$as_echo "no" >&6; }
22765fi
22766
22767
22768      fi
22769      am_display_PYTHON=$am_cv_pathless_PYTHON
22770    fi
22771
22772
22773  if test "$PYTHON" = :; then
22774      :
22775  else
22776
22777
22778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22779$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22780if ${am_cv_python_version+:} false; then :
22781  $as_echo_n "(cached) " >&6
22782else
22783  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22784fi
22785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22786$as_echo "$am_cv_python_version" >&6; }
22787  PYTHON_VERSION=$am_cv_python_version
22788
22789
22790
22791  PYTHON_PREFIX='${prefix}'
22792
22793  PYTHON_EXEC_PREFIX='${exec_prefix}'
22794
22795
22796
22797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22798$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22799if ${am_cv_python_platform+:} false; then :
22800  $as_echo_n "(cached) " >&6
22801else
22802  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22803fi
22804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22805$as_echo "$am_cv_python_platform" >&6; }
22806  PYTHON_PLATFORM=$am_cv_python_platform
22807
22808
22809  # Just factor out some code duplication.
22810  am_python_setup_sysconfig="\
22811import sys
22812# Prefer sysconfig over distutils.sysconfig, for better compatibility
22813# with python 3.x.  See automake bug#10227.
22814try:
22815    import sysconfig
22816except ImportError:
22817    can_use_sysconfig = 0
22818else:
22819    can_use_sysconfig = 1
22820# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22821# <https://github.com/pypa/virtualenv/issues/118>
22822try:
22823    from platform import python_implementation
22824    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22825        can_use_sysconfig = 0
22826except ImportError:
22827    pass"
22828
22829
22830            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22831$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22832if ${am_cv_python_pythondir+:} false; then :
22833  $as_echo_n "(cached) " >&6
22834else
22835  if test "x$prefix" = xNONE
22836     then
22837       am_py_prefix=$ac_default_prefix
22838     else
22839       am_py_prefix=$prefix
22840     fi
22841     am_cv_python_pythondir=`$PYTHON -c "
22842$am_python_setup_sysconfig
22843if can_use_sysconfig:
22844    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22845else:
22846    from distutils import sysconfig
22847    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22848sys.stdout.write(sitedir)"`
22849     case $am_cv_python_pythondir in
22850     $am_py_prefix*)
22851       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22852       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22853       ;;
22854     *)
22855       case $am_py_prefix in
22856         /usr|/System*) ;;
22857         *)
22858	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22859	  ;;
22860       esac
22861       ;;
22862     esac
22863
22864fi
22865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22866$as_echo "$am_cv_python_pythondir" >&6; }
22867  pythondir=$am_cv_python_pythondir
22868
22869
22870
22871  pkgpythondir=\${pythondir}/$PACKAGE
22872
22873
22874        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22875$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22876if ${am_cv_python_pyexecdir+:} false; then :
22877  $as_echo_n "(cached) " >&6
22878else
22879  if test "x$exec_prefix" = xNONE
22880     then
22881       am_py_exec_prefix=$am_py_prefix
22882     else
22883       am_py_exec_prefix=$exec_prefix
22884     fi
22885     am_cv_python_pyexecdir=`$PYTHON -c "
22886$am_python_setup_sysconfig
22887if can_use_sysconfig:
22888    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22889else:
22890    from distutils import sysconfig
22891    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22892sys.stdout.write(sitedir)"`
22893     case $am_cv_python_pyexecdir in
22894     $am_py_exec_prefix*)
22895       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22896       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22897       ;;
22898     *)
22899       case $am_py_exec_prefix in
22900         /usr|/System*) ;;
22901         *)
22902	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22903	   ;;
22904       esac
22905       ;;
22906     esac
22907
22908fi
22909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22910$as_echo "$am_cv_python_pyexecdir" >&6; }
22911  pyexecdir=$am_cv_python_pyexecdir
22912
22913
22914
22915  pkgpyexecdir=\${pyexecdir}/$PACKAGE
22916
22917
22918
22919
22920	#
22921	# Allow the use of a (user set) custom python version
22922	#
22923
22924
22925	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22926set dummy python$PYTHON_VERSION; ac_word=$2
22927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22928$as_echo_n "checking for $ac_word... " >&6; }
22929if ${ac_cv_path_PYTHON+:} false; then :
22930  $as_echo_n "(cached) " >&6
22931else
22932  case $PYTHON in
22933  [\\/]* | ?:[\\/]*)
22934  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22935  ;;
22936  *)
22937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22938for as_dir in $PATH
22939do
22940  IFS=$as_save_IFS
22941  test -z "$as_dir" && as_dir=.
22942    for ac_exec_ext in '' $ac_executable_extensions; do
22943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22944    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22946    break 2
22947  fi
22948done
22949  done
22950IFS=$as_save_IFS
22951
22952  ;;
22953esac
22954fi
22955PYTHON=$ac_cv_path_PYTHON
22956if test -n "$PYTHON"; then
22957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22958$as_echo "$PYTHON" >&6; }
22959else
22960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22961$as_echo "no" >&6; }
22962fi
22963
22964
22965	if test -z "$PYTHON"; then
22966	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22967	   PYTHON_VERSION=""
22968	fi
22969
22970	#
22971	# Check for a version of Python >= 2.1.0
22972	#
22973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22974$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22975	ac_supports_python_ver=`$PYTHON -c "import sys; \
22976		ver = sys.version.split ()[0]; \
22977		print (ver >= '2.1.0')"`
22978	if test "$ac_supports_python_ver" != "True"; then
22979		if test -z "$PYTHON_NOVERSIONCHECK"; then
22980			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22981$as_echo "no" >&6; }
22982			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22984as_fn_error $? "
22985This version of the AC_PYTHON_DEVEL macro
22986doesn't work properly with versions of Python before
229872.1.0. You may need to re-run configure, setting the
22988variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22989PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22990Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22991to something else than an empty string.
22992
22993See \`config.log' for more details" "$LINENO" 5; }
22994		else
22995			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22996$as_echo "skip at user request" >&6; }
22997		fi
22998	else
22999		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23000$as_echo "yes" >&6; }
23001	fi
23002
23003	#
23004	# if the macro parameter ``version'' is set, honour it
23005	#
23006	if test -n ""; then
23007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23008$as_echo_n "checking for a version of Python ... " >&6; }
23009		ac_supports_python_ver=`$PYTHON -c "import sys; \
23010			ver = sys.version.split ()[0]; \
23011			print (ver )"`
23012		if test "$ac_supports_python_ver" = "True"; then
23013		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23014$as_echo "yes" >&6; }
23015		else
23016			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23017$as_echo "no" >&6; }
23018			as_fn_error $? "this package requires Python .
23019If you have it installed, but it isn't the default Python
23020interpreter in your system path, please pass the PYTHON_VERSION
23021variable to configure. See \`\`configure --help'' for reference.
23022" "$LINENO" 5
23023			PYTHON_VERSION=""
23024		fi
23025	fi
23026
23027	#
23028	# Check if you have distutils, else fail
23029	#
23030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23031$as_echo_n "checking for the distutils Python package... " >&6; }
23032	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23033	if test -z "$ac_distutils_result"; then
23034		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23035$as_echo "yes" >&6; }
23036	else
23037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23038$as_echo "no" >&6; }
23039		as_fn_error $? "cannot import Python module \"distutils\".
23040Please check your Python installation. The error was:
23041$ac_distutils_result" "$LINENO" 5
23042		PYTHON_VERSION=""
23043	fi
23044
23045	#
23046	# Check for Python include path
23047	#
23048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23049$as_echo_n "checking for Python include path... " >&6; }
23050	if test -z "$PYTHON_CPPFLAGS"; then
23051		python_path=`$PYTHON -c "import distutils.sysconfig; \
23052			print (distutils.sysconfig.get_python_inc ());"`
23053		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23054			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23055		if test -n "${python_path}"; then
23056			if test "${plat_python_path}" != "${python_path}"; then
23057				python_path="-I$python_path -I$plat_python_path"
23058			else
23059				python_path="-I$python_path"
23060			fi
23061		fi
23062		PYTHON_CPPFLAGS=$python_path
23063	fi
23064	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23065$as_echo "$PYTHON_CPPFLAGS" >&6; }
23066
23067
23068	#
23069	# Check for Python library path
23070	#
23071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23072$as_echo_n "checking for Python library path... " >&6; }
23073	if test -z "$PYTHON_LDFLAGS"; then
23074		# (makes two attempts to ensure we've got a version number
23075		# from the interpreter)
23076		ac_python_version=`cat<<EOD | $PYTHON -
23077
23078# join all versioning strings, on some systems
23079# major/minor numbers could be in different list elements
23080from distutils.sysconfig import *
23081e = get_config_var('VERSION')
23082if e is not None:
23083	print(e)
23084EOD`
23085
23086		if test -z "$ac_python_version"; then
23087			if test -n "$PYTHON_VERSION"; then
23088				ac_python_version=$PYTHON_VERSION
23089			else
23090				ac_python_version=`$PYTHON -c "import sys; \
23091					print (sys.version[:3])"`
23092			fi
23093		fi
23094
23095		# Make the versioning information available to the compiler
23096
23097		# JW: We don't need it and it interferes with the hack
23098		# to detect multiple Pyhton versions
23099		#AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23100                #                  [If available, contains the Python version number currently in use.])
23101
23102		# First, the library directory:
23103		ac_python_libdir=`cat<<EOD | $PYTHON -
23104
23105# There should be only one
23106import distutils.sysconfig
23107e = distutils.sysconfig.get_config_var('LIBDIR')
23108if e is not None:
23109	print (e)
23110EOD`
23111
23112		# Now, for the library:
23113		ac_python_library=`cat<<EOD | $PYTHON -
23114
23115import distutils.sysconfig
23116c = distutils.sysconfig.get_config_vars()
23117if 'LDVERSION' in c:
23118	print ('python'+c['LDVERSION'])
23119else:
23120	print ('python'+c['VERSION'])
23121EOD`
23122
23123		# This small piece shamelessly adapted from PostgreSQL python macro;
23124		# credits goes to momjian, I think. I'd like to put the right name
23125		# in the credits, if someone can point me in the right direction... ?
23126		#
23127		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23128		then
23129			# use the official shared library
23130			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23131			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23132		else
23133			# old way: use libpython from python_configdir
23134			ac_python_libdir=`$PYTHON -c \
23135			  "from distutils.sysconfig import get_python_lib as f; \
23136			  import os; \
23137			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23138			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23139		fi
23140
23141		if test -z "PYTHON_LDFLAGS"; then
23142			as_fn_error $? "
23143  Cannot determine location of your Python DSO. Please check it was installed with
23144  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23145			" "$LINENO" 5
23146		fi
23147	fi
23148	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23149$as_echo "$PYTHON_LDFLAGS" >&6; }
23150
23151
23152	#
23153	# Check for site packages
23154	#
23155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23156$as_echo_n "checking for Python site-packages path... " >&6; }
23157	if test -z "$PYTHON_SITE_PKG"; then
23158		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23159			print (distutils.sysconfig.get_python_lib(0,0));"`
23160	fi
23161	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23162$as_echo "$PYTHON_SITE_PKG" >&6; }
23163
23164
23165	#
23166	# libraries which must be linked in when embedding
23167	#
23168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23169$as_echo_n "checking python extra libraries... " >&6; }
23170	if test -z "$PYTHON_EXTRA_LIBS"; then
23171	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23172                conf = distutils.sysconfig.get_config_var; \
23173                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23174	fi
23175	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23176$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23177
23178
23179	#
23180	# linking flags needed when embedding
23181	#
23182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23183$as_echo_n "checking python extra linking flags... " >&6; }
23184	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23185		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23186			conf = distutils.sysconfig.get_config_var; \
23187			print (conf('LINKFORSHARED'))"`
23188	fi
23189	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23190$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23191
23192
23193	#
23194	# final check to see if everything compiles alright
23195	#
23196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23197$as_echo_n "checking consistency of all components of python development environment... " >&6; }
23198	# save current global flags
23199	ac_save_LIBS="$LIBS"
23200	ac_save_CPPFLAGS="$CPPFLAGS"
23201	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23202	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
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 <Python.h>
23213int
23214main ()
23215{
23216Py_Initialize();
23217  ;
23218  return 0;
23219}
23220
23221_ACEOF
23222if ac_fn_c_try_link "$LINENO"; then :
23223  pythonexists=yes
23224else
23225  pythonexists=no
23226fi
23227rm -f core conftest.err conftest.$ac_objext \
23228    conftest$ac_exeext conftest.$ac_ext
23229	ac_ext=c
23230ac_cpp='$CPP $CPPFLAGS'
23231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23233ac_compiler_gnu=$ac_cv_c_compiler_gnu
23234
23235	# turn back to default flags
23236	CPPFLAGS="$ac_save_CPPFLAGS"
23237	LIBS="$ac_save_LIBS"
23238
23239	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23240$as_echo "$pythonexists" >&6; }
23241
23242        if test ! "x$pythonexists" = "xyes"; then
23243	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23244  Could not link test program to Python. Maybe the main Python library has been
23245  installed in some non-standard library path. If so, pass it to configure,
23246  via the LDFLAGS environment variable.
23247  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23248  ============================================================================
23249   You probably have to install the development version of the Python package
23250   for your distribution.  The exact name of this package varies among them.
23251  ============================================================================
23252	   " >&5
23253$as_echo "$as_me: WARNING:
23254  Could not link test program to Python. Maybe the main Python library has been
23255  installed in some non-standard library path. If so, pass it to configure,
23256  via the LDFLAGS environment variable.
23257  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23258  ============================================================================
23259   You probably have to install the development version of the Python package
23260   for your distribution.  The exact name of this package varies among them.
23261  ============================================================================
23262	   " >&2;}
23263	  PYTHON_VERSION=""
23264	fi
23265
23266	#
23267	# all done!
23268	#
23269
23270		if test "$PYTHON_VERSION"; then
23271			PYTHONS="$(echo $PYTHONS $PYTHON)"
23272			PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23273		fi
23274
23275  fi
23276
23277
23278           unset PYTHON
23279	    unset PYTHON_VERSION
23280	    unset PYTHON_CPPFLAGS
23281	    unset PYTHON_LDFLAGS
23282	    unset PYTHON_SITE_PKG
23283	    unset PYTHON_EXTRA_LIBS
23284	    unset PYTHON_EXTRA_LDFLAGS
23285	    unset ac_cv_path_PYTHON
23286	    unset am_cv_pathless_PYTHON
23287	    unset am_cv_python_version
23288	    unset am_cv_python_platform
23289	    unset am_cv_python_pythondir
23290	    unset am_cv_python_pyexecdir
23291
23292
23293
23294
23295
23296
23297        if test -n "$PYTHON"; then
23298      # If the user set $PYTHON, use it and don't search something else.
23299      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.9" >&5
23300$as_echo_n "checking whether $PYTHON version is >= 3.9... " >&6; }
23301      prog="import sys
23302# split strings by '.' and convert to numeric.  Append some zeros
23303# because we need at least 4 digits for the hex conversion.
23304# map returns an iterator in Python 3.0 and a list in 2.x
23305minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23306minverhex = 0
23307# xrange is not present in Python 3.0 and range returns an iterator
23308for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23309sys.exit(sys.hexversion < minverhex)"
23310  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23311   ($PYTHON -c "$prog") >&5 2>&5
23312   ac_status=$?
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); }; then :
23315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23316$as_echo "yes" >&6; }
23317else
23318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23319$as_echo "no" >&6; }
23320			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23321fi
23322      am_display_PYTHON=$PYTHON
23323    else
23324      # Otherwise, try each interpreter until we find one that satisfies
23325      # VERSION.
23326      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.9" >&5
23327$as_echo_n "checking for a Python interpreter with version >= 3.9... " >&6; }
23328if ${am_cv_pathless_PYTHON+:} false; then :
23329  $as_echo_n "(cached) " >&6
23330else
23331
23332	for am_cv_pathless_PYTHON           in python3.9 none; do
23333	  test "$am_cv_pathless_PYTHON" = none && break
23334	  prog="import sys
23335# split strings by '.' and convert to numeric.  Append some zeros
23336# because we need at least 4 digits for the hex conversion.
23337# map returns an iterator in Python 3.0 and a list in 2.x
23338minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23339minverhex = 0
23340# xrange is not present in Python 3.0 and range returns an iterator
23341for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23342sys.exit(sys.hexversion < minverhex)"
23343  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23344   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23345   ac_status=$?
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); }; then :
23348  break
23349fi
23350	done
23351fi
23352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23353$as_echo "$am_cv_pathless_PYTHON" >&6; }
23354      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23355      if test "$am_cv_pathless_PYTHON" = none; then
23356	PYTHON=:
23357      else
23358        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23359set dummy $am_cv_pathless_PYTHON; ac_word=$2
23360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23361$as_echo_n "checking for $ac_word... " >&6; }
23362if ${ac_cv_path_PYTHON+:} false; then :
23363  $as_echo_n "(cached) " >&6
23364else
23365  case $PYTHON in
23366  [\\/]* | ?:[\\/]*)
23367  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23368  ;;
23369  *)
23370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23371for as_dir in $PATH
23372do
23373  IFS=$as_save_IFS
23374  test -z "$as_dir" && as_dir=.
23375    for ac_exec_ext in '' $ac_executable_extensions; do
23376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23377    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23379    break 2
23380  fi
23381done
23382  done
23383IFS=$as_save_IFS
23384
23385  ;;
23386esac
23387fi
23388PYTHON=$ac_cv_path_PYTHON
23389if test -n "$PYTHON"; then
23390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23391$as_echo "$PYTHON" >&6; }
23392else
23393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23394$as_echo "no" >&6; }
23395fi
23396
23397
23398      fi
23399      am_display_PYTHON=$am_cv_pathless_PYTHON
23400    fi
23401
23402
23403  if test "$PYTHON" = :; then
23404      :
23405  else
23406
23407
23408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23409$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23410if ${am_cv_python_version+:} false; then :
23411  $as_echo_n "(cached) " >&6
23412else
23413  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23414fi
23415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
23416$as_echo "$am_cv_python_version" >&6; }
23417  PYTHON_VERSION=$am_cv_python_version
23418
23419
23420
23421  PYTHON_PREFIX='${prefix}'
23422
23423  PYTHON_EXEC_PREFIX='${exec_prefix}'
23424
23425
23426
23427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
23428$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23429if ${am_cv_python_platform+:} false; then :
23430  $as_echo_n "(cached) " >&6
23431else
23432  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23433fi
23434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
23435$as_echo "$am_cv_python_platform" >&6; }
23436  PYTHON_PLATFORM=$am_cv_python_platform
23437
23438
23439  # Just factor out some code duplication.
23440  am_python_setup_sysconfig="\
23441import sys
23442# Prefer sysconfig over distutils.sysconfig, for better compatibility
23443# with python 3.x.  See automake bug#10227.
23444try:
23445    import sysconfig
23446except ImportError:
23447    can_use_sysconfig = 0
23448else:
23449    can_use_sysconfig = 1
23450# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
23451# <https://github.com/pypa/virtualenv/issues/118>
23452try:
23453    from platform import python_implementation
23454    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
23455        can_use_sysconfig = 0
23456except ImportError:
23457    pass"
23458
23459
23460            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
23461$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23462if ${am_cv_python_pythondir+:} false; then :
23463  $as_echo_n "(cached) " >&6
23464else
23465  if test "x$prefix" = xNONE
23466     then
23467       am_py_prefix=$ac_default_prefix
23468     else
23469       am_py_prefix=$prefix
23470     fi
23471     am_cv_python_pythondir=`$PYTHON -c "
23472$am_python_setup_sysconfig
23473if can_use_sysconfig:
23474    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
23475else:
23476    from distutils import sysconfig
23477    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
23478sys.stdout.write(sitedir)"`
23479     case $am_cv_python_pythondir in
23480     $am_py_prefix*)
23481       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23482       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23483       ;;
23484     *)
23485       case $am_py_prefix in
23486         /usr|/System*) ;;
23487         *)
23488	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
23489	  ;;
23490       esac
23491       ;;
23492     esac
23493
23494fi
23495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
23496$as_echo "$am_cv_python_pythondir" >&6; }
23497  pythondir=$am_cv_python_pythondir
23498
23499
23500
23501  pkgpythondir=\${pythondir}/$PACKAGE
23502
23503
23504        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
23505$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23506if ${am_cv_python_pyexecdir+:} false; then :
23507  $as_echo_n "(cached) " >&6
23508else
23509  if test "x$exec_prefix" = xNONE
23510     then
23511       am_py_exec_prefix=$am_py_prefix
23512     else
23513       am_py_exec_prefix=$exec_prefix
23514     fi
23515     am_cv_python_pyexecdir=`$PYTHON -c "
23516$am_python_setup_sysconfig
23517if can_use_sysconfig:
23518    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
23519else:
23520    from distutils import sysconfig
23521    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23522sys.stdout.write(sitedir)"`
23523     case $am_cv_python_pyexecdir in
23524     $am_py_exec_prefix*)
23525       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23526       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23527       ;;
23528     *)
23529       case $am_py_exec_prefix in
23530         /usr|/System*) ;;
23531         *)
23532	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23533	   ;;
23534       esac
23535       ;;
23536     esac
23537
23538fi
23539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23540$as_echo "$am_cv_python_pyexecdir" >&6; }
23541  pyexecdir=$am_cv_python_pyexecdir
23542
23543
23544
23545  pkgpyexecdir=\${pyexecdir}/$PACKAGE
23546
23547
23548
23549
23550	#
23551	# Allow the use of a (user set) custom python version
23552	#
23553
23554
23555	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
23556set dummy python$PYTHON_VERSION; ac_word=$2
23557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23558$as_echo_n "checking for $ac_word... " >&6; }
23559if ${ac_cv_path_PYTHON+:} false; then :
23560  $as_echo_n "(cached) " >&6
23561else
23562  case $PYTHON in
23563  [\\/]* | ?:[\\/]*)
23564  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23565  ;;
23566  *)
23567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23568for as_dir in $PATH
23569do
23570  IFS=$as_save_IFS
23571  test -z "$as_dir" && as_dir=.
23572    for ac_exec_ext in '' $ac_executable_extensions; do
23573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23574    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23576    break 2
23577  fi
23578done
23579  done
23580IFS=$as_save_IFS
23581
23582  ;;
23583esac
23584fi
23585PYTHON=$ac_cv_path_PYTHON
23586if test -n "$PYTHON"; then
23587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23588$as_echo "$PYTHON" >&6; }
23589else
23590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23591$as_echo "no" >&6; }
23592fi
23593
23594
23595	if test -z "$PYTHON"; then
23596	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
23597	   PYTHON_VERSION=""
23598	fi
23599
23600	#
23601	# Check for a version of Python >= 2.1.0
23602	#
23603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
23604$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
23605	ac_supports_python_ver=`$PYTHON -c "import sys; \
23606		ver = sys.version.split ()[0]; \
23607		print (ver >= '2.1.0')"`
23608	if test "$ac_supports_python_ver" != "True"; then
23609		if test -z "$PYTHON_NOVERSIONCHECK"; then
23610			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23611$as_echo "no" >&6; }
23612			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23614as_fn_error $? "
23615This version of the AC_PYTHON_DEVEL macro
23616doesn't work properly with versions of Python before
236172.1.0. You may need to re-run configure, setting the
23618variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
23619PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
23620Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
23621to something else than an empty string.
23622
23623See \`config.log' for more details" "$LINENO" 5; }
23624		else
23625			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
23626$as_echo "skip at user request" >&6; }
23627		fi
23628	else
23629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23630$as_echo "yes" >&6; }
23631	fi
23632
23633	#
23634	# if the macro parameter ``version'' is set, honour it
23635	#
23636	if test -n ""; then
23637		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23638$as_echo_n "checking for a version of Python ... " >&6; }
23639		ac_supports_python_ver=`$PYTHON -c "import sys; \
23640			ver = sys.version.split ()[0]; \
23641			print (ver )"`
23642		if test "$ac_supports_python_ver" = "True"; then
23643		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23644$as_echo "yes" >&6; }
23645		else
23646			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23647$as_echo "no" >&6; }
23648			as_fn_error $? "this package requires Python .
23649If you have it installed, but it isn't the default Python
23650interpreter in your system path, please pass the PYTHON_VERSION
23651variable to configure. See \`\`configure --help'' for reference.
23652" "$LINENO" 5
23653			PYTHON_VERSION=""
23654		fi
23655	fi
23656
23657	#
23658	# Check if you have distutils, else fail
23659	#
23660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23661$as_echo_n "checking for the distutils Python package... " >&6; }
23662	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23663	if test -z "$ac_distutils_result"; then
23664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23665$as_echo "yes" >&6; }
23666	else
23667		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23668$as_echo "no" >&6; }
23669		as_fn_error $? "cannot import Python module \"distutils\".
23670Please check your Python installation. The error was:
23671$ac_distutils_result" "$LINENO" 5
23672		PYTHON_VERSION=""
23673	fi
23674
23675	#
23676	# Check for Python include path
23677	#
23678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23679$as_echo_n "checking for Python include path... " >&6; }
23680	if test -z "$PYTHON_CPPFLAGS"; then
23681		python_path=`$PYTHON -c "import distutils.sysconfig; \
23682			print (distutils.sysconfig.get_python_inc ());"`
23683		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23684			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23685		if test -n "${python_path}"; then
23686			if test "${plat_python_path}" != "${python_path}"; then
23687				python_path="-I$python_path -I$plat_python_path"
23688			else
23689				python_path="-I$python_path"
23690			fi
23691		fi
23692		PYTHON_CPPFLAGS=$python_path
23693	fi
23694	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23695$as_echo "$PYTHON_CPPFLAGS" >&6; }
23696
23697
23698	#
23699	# Check for Python library path
23700	#
23701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23702$as_echo_n "checking for Python library path... " >&6; }
23703	if test -z "$PYTHON_LDFLAGS"; then
23704		# (makes two attempts to ensure we've got a version number
23705		# from the interpreter)
23706		ac_python_version=`cat<<EOD | $PYTHON -
23707
23708# join all versioning strings, on some systems
23709# major/minor numbers could be in different list elements
23710from distutils.sysconfig import *
23711e = get_config_var('VERSION')
23712if e is not None:
23713	print(e)
23714EOD`
23715
23716		if test -z "$ac_python_version"; then
23717			if test -n "$PYTHON_VERSION"; then
23718				ac_python_version=$PYTHON_VERSION
23719			else
23720				ac_python_version=`$PYTHON -c "import sys; \
23721					print (sys.version[:3])"`
23722			fi
23723		fi
23724
23725		# Make the versioning information available to the compiler
23726
23727		# JW: We don't need it and it interferes with the hack
23728		# to detect multiple Pyhton versions
23729		#AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23730                #                  [If available, contains the Python version number currently in use.])
23731
23732		# First, the library directory:
23733		ac_python_libdir=`cat<<EOD | $PYTHON -
23734
23735# There should be only one
23736import distutils.sysconfig
23737e = distutils.sysconfig.get_config_var('LIBDIR')
23738if e is not None:
23739	print (e)
23740EOD`
23741
23742		# Now, for the library:
23743		ac_python_library=`cat<<EOD | $PYTHON -
23744
23745import distutils.sysconfig
23746c = distutils.sysconfig.get_config_vars()
23747if 'LDVERSION' in c:
23748	print ('python'+c['LDVERSION'])
23749else:
23750	print ('python'+c['VERSION'])
23751EOD`
23752
23753		# This small piece shamelessly adapted from PostgreSQL python macro;
23754		# credits goes to momjian, I think. I'd like to put the right name
23755		# in the credits, if someone can point me in the right direction... ?
23756		#
23757		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23758		then
23759			# use the official shared library
23760			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23761			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23762		else
23763			# old way: use libpython from python_configdir
23764			ac_python_libdir=`$PYTHON -c \
23765			  "from distutils.sysconfig import get_python_lib as f; \
23766			  import os; \
23767			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23768			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23769		fi
23770
23771		if test -z "PYTHON_LDFLAGS"; then
23772			as_fn_error $? "
23773  Cannot determine location of your Python DSO. Please check it was installed with
23774  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23775			" "$LINENO" 5
23776		fi
23777	fi
23778	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23779$as_echo "$PYTHON_LDFLAGS" >&6; }
23780
23781
23782	#
23783	# Check for site packages
23784	#
23785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23786$as_echo_n "checking for Python site-packages path... " >&6; }
23787	if test -z "$PYTHON_SITE_PKG"; then
23788		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23789			print (distutils.sysconfig.get_python_lib(0,0));"`
23790	fi
23791	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23792$as_echo "$PYTHON_SITE_PKG" >&6; }
23793
23794
23795	#
23796	# libraries which must be linked in when embedding
23797	#
23798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23799$as_echo_n "checking python extra libraries... " >&6; }
23800	if test -z "$PYTHON_EXTRA_LIBS"; then
23801	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23802                conf = distutils.sysconfig.get_config_var; \
23803                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23804	fi
23805	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23806$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23807
23808
23809	#
23810	# linking flags needed when embedding
23811	#
23812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23813$as_echo_n "checking python extra linking flags... " >&6; }
23814	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23815		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23816			conf = distutils.sysconfig.get_config_var; \
23817			print (conf('LINKFORSHARED'))"`
23818	fi
23819	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23820$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23821
23822
23823	#
23824	# final check to see if everything compiles alright
23825	#
23826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23827$as_echo_n "checking consistency of all components of python development environment... " >&6; }
23828	# save current global flags
23829	ac_save_LIBS="$LIBS"
23830	ac_save_CPPFLAGS="$CPPFLAGS"
23831	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23832	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23833	ac_ext=c
23834ac_cpp='$CPP $CPPFLAGS'
23835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23837ac_compiler_gnu=$ac_cv_c_compiler_gnu
23838
23839	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840/* end confdefs.h.  */
23841
23842		#include <Python.h>
23843int
23844main ()
23845{
23846Py_Initialize();
23847  ;
23848  return 0;
23849}
23850
23851_ACEOF
23852if ac_fn_c_try_link "$LINENO"; then :
23853  pythonexists=yes
23854else
23855  pythonexists=no
23856fi
23857rm -f core conftest.err conftest.$ac_objext \
23858    conftest$ac_exeext conftest.$ac_ext
23859	ac_ext=c
23860ac_cpp='$CPP $CPPFLAGS'
23861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23863ac_compiler_gnu=$ac_cv_c_compiler_gnu
23864
23865	# turn back to default flags
23866	CPPFLAGS="$ac_save_CPPFLAGS"
23867	LIBS="$ac_save_LIBS"
23868
23869	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23870$as_echo "$pythonexists" >&6; }
23871
23872        if test ! "x$pythonexists" = "xyes"; then
23873	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23874  Could not link test program to Python. Maybe the main Python library has been
23875  installed in some non-standard library path. If so, pass it to configure,
23876  via the LDFLAGS environment variable.
23877  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23878  ============================================================================
23879   You probably have to install the development version of the Python package
23880   for your distribution.  The exact name of this package varies among them.
23881  ============================================================================
23882	   " >&5
23883$as_echo "$as_me: WARNING:
23884  Could not link test program to Python. Maybe the main Python library has been
23885  installed in some non-standard library path. If so, pass it to configure,
23886  via the LDFLAGS environment variable.
23887  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23888  ============================================================================
23889   You probably have to install the development version of the Python package
23890   for your distribution.  The exact name of this package varies among them.
23891  ============================================================================
23892	   " >&2;}
23893	  PYTHON_VERSION=""
23894	fi
23895
23896	#
23897	# all done!
23898	#
23899
23900		if test "$PYTHON_VERSION"; then
23901			PYTHONS="$(echo $PYTHONS $PYTHON)"
23902			PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23903		fi
23904
23905  fi
23906
23907
23908           unset PYTHON
23909	    unset PYTHON_VERSION
23910	    unset PYTHON_CPPFLAGS
23911	    unset PYTHON_LDFLAGS
23912	    unset PYTHON_SITE_PKG
23913	    unset PYTHON_EXTRA_LIBS
23914	    unset PYTHON_EXTRA_LDFLAGS
23915	    unset ac_cv_path_PYTHON
23916	    unset am_cv_pathless_PYTHON
23917	    unset am_cv_python_version
23918	    unset am_cv_python_platform
23919	    unset am_cv_python_pythondir
23920	    unset am_cv_python_pyexecdir
23921
23922
23923
23924
23925
23926
23927        if test -n "$PYTHON"; then
23928      # If the user set $PYTHON, use it and don't search something else.
23929      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= all" >&5
23930$as_echo_n "checking whether $PYTHON version is >= all... " >&6; }
23931      prog="import sys
23932# split strings by '.' and convert to numeric.  Append some zeros
23933# because we need at least 4 digits for the hex conversion.
23934# map returns an iterator in Python 3.0 and a list in 2.x
23935minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23936minverhex = 0
23937# xrange is not present in Python 3.0 and range returns an iterator
23938for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23939sys.exit(sys.hexversion < minverhex)"
23940  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23941   ($PYTHON -c "$prog") >&5 2>&5
23942   ac_status=$?
23943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944   (exit $ac_status); }; then :
23945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23946$as_echo "yes" >&6; }
23947else
23948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23949$as_echo "no" >&6; }
23950			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23951fi
23952      am_display_PYTHON=$PYTHON
23953    else
23954      # Otherwise, try each interpreter until we find one that satisfies
23955      # VERSION.
23956      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= all" >&5
23957$as_echo_n "checking for a Python interpreter with version >= all... " >&6; }
23958if ${am_cv_pathless_PYTHON+:} false; then :
23959  $as_echo_n "(cached) " >&6
23960else
23961
23962	for am_cv_pathless_PYTHON           in pythonall none; do
23963	  test "$am_cv_pathless_PYTHON" = none && break
23964	  prog="import sys
23965# split strings by '.' and convert to numeric.  Append some zeros
23966# because we need at least 4 digits for the hex conversion.
23967# map returns an iterator in Python 3.0 and a list in 2.x
23968minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23969minverhex = 0
23970# xrange is not present in Python 3.0 and range returns an iterator
23971for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23972sys.exit(sys.hexversion < minverhex)"
23973  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23974   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23975   ac_status=$?
23976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977   (exit $ac_status); }; then :
23978  break
23979fi
23980	done
23981fi
23982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23983$as_echo "$am_cv_pathless_PYTHON" >&6; }
23984      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23985      if test "$am_cv_pathless_PYTHON" = none; then
23986	PYTHON=:
23987      else
23988        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23989set dummy $am_cv_pathless_PYTHON; ac_word=$2
23990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23991$as_echo_n "checking for $ac_word... " >&6; }
23992if ${ac_cv_path_PYTHON+:} false; then :
23993  $as_echo_n "(cached) " >&6
23994else
23995  case $PYTHON in
23996  [\\/]* | ?:[\\/]*)
23997  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23998  ;;
23999  *)
24000  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24001for as_dir in $PATH
24002do
24003  IFS=$as_save_IFS
24004  test -z "$as_dir" && as_dir=.
24005    for ac_exec_ext in '' $ac_executable_extensions; do
24006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24007    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24009    break 2
24010  fi
24011done
24012  done
24013IFS=$as_save_IFS
24014
24015  ;;
24016esac
24017fi
24018PYTHON=$ac_cv_path_PYTHON
24019if test -n "$PYTHON"; then
24020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24021$as_echo "$PYTHON" >&6; }
24022else
24023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24024$as_echo "no" >&6; }
24025fi
24026
24027
24028      fi
24029      am_display_PYTHON=$am_cv_pathless_PYTHON
24030    fi
24031
24032
24033  if test "$PYTHON" = :; then
24034      :
24035  else
24036
24037
24038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
24039$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24040if ${am_cv_python_version+:} false; then :
24041  $as_echo_n "(cached) " >&6
24042else
24043  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24044fi
24045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24046$as_echo "$am_cv_python_version" >&6; }
24047  PYTHON_VERSION=$am_cv_python_version
24048
24049
24050
24051  PYTHON_PREFIX='${prefix}'
24052
24053  PYTHON_EXEC_PREFIX='${exec_prefix}'
24054
24055
24056
24057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24058$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24059if ${am_cv_python_platform+:} false; then :
24060  $as_echo_n "(cached) " >&6
24061else
24062  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24063fi
24064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24065$as_echo "$am_cv_python_platform" >&6; }
24066  PYTHON_PLATFORM=$am_cv_python_platform
24067
24068
24069  # Just factor out some code duplication.
24070  am_python_setup_sysconfig="\
24071import sys
24072# Prefer sysconfig over distutils.sysconfig, for better compatibility
24073# with python 3.x.  See automake bug#10227.
24074try:
24075    import sysconfig
24076except ImportError:
24077    can_use_sysconfig = 0
24078else:
24079    can_use_sysconfig = 1
24080# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24081# <https://github.com/pypa/virtualenv/issues/118>
24082try:
24083    from platform import python_implementation
24084    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24085        can_use_sysconfig = 0
24086except ImportError:
24087    pass"
24088
24089
24090            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24091$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24092if ${am_cv_python_pythondir+:} false; then :
24093  $as_echo_n "(cached) " >&6
24094else
24095  if test "x$prefix" = xNONE
24096     then
24097       am_py_prefix=$ac_default_prefix
24098     else
24099       am_py_prefix=$prefix
24100     fi
24101     am_cv_python_pythondir=`$PYTHON -c "
24102$am_python_setup_sysconfig
24103if can_use_sysconfig:
24104    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24105else:
24106    from distutils import sysconfig
24107    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24108sys.stdout.write(sitedir)"`
24109     case $am_cv_python_pythondir in
24110     $am_py_prefix*)
24111       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24112       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24113       ;;
24114     *)
24115       case $am_py_prefix in
24116         /usr|/System*) ;;
24117         *)
24118	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24119	  ;;
24120       esac
24121       ;;
24122     esac
24123
24124fi
24125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24126$as_echo "$am_cv_python_pythondir" >&6; }
24127  pythondir=$am_cv_python_pythondir
24128
24129
24130
24131  pkgpythondir=\${pythondir}/$PACKAGE
24132
24133
24134        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24135$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24136if ${am_cv_python_pyexecdir+:} false; then :
24137  $as_echo_n "(cached) " >&6
24138else
24139  if test "x$exec_prefix" = xNONE
24140     then
24141       am_py_exec_prefix=$am_py_prefix
24142     else
24143       am_py_exec_prefix=$exec_prefix
24144     fi
24145     am_cv_python_pyexecdir=`$PYTHON -c "
24146$am_python_setup_sysconfig
24147if can_use_sysconfig:
24148    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24149else:
24150    from distutils import sysconfig
24151    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24152sys.stdout.write(sitedir)"`
24153     case $am_cv_python_pyexecdir in
24154     $am_py_exec_prefix*)
24155       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24156       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24157       ;;
24158     *)
24159       case $am_py_exec_prefix in
24160         /usr|/System*) ;;
24161         *)
24162	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24163	   ;;
24164       esac
24165       ;;
24166     esac
24167
24168fi
24169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24170$as_echo "$am_cv_python_pyexecdir" >&6; }
24171  pyexecdir=$am_cv_python_pyexecdir
24172
24173
24174
24175  pkgpyexecdir=\${pyexecdir}/$PACKAGE
24176
24177
24178
24179
24180	#
24181	# Allow the use of a (user set) custom python version
24182	#
24183
24184
24185	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
24186set dummy python$PYTHON_VERSION; ac_word=$2
24187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24188$as_echo_n "checking for $ac_word... " >&6; }
24189if ${ac_cv_path_PYTHON+:} false; then :
24190  $as_echo_n "(cached) " >&6
24191else
24192  case $PYTHON in
24193  [\\/]* | ?:[\\/]*)
24194  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24195  ;;
24196  *)
24197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24198for as_dir in $PATH
24199do
24200  IFS=$as_save_IFS
24201  test -z "$as_dir" && as_dir=.
24202    for ac_exec_ext in '' $ac_executable_extensions; do
24203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24204    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24206    break 2
24207  fi
24208done
24209  done
24210IFS=$as_save_IFS
24211
24212  ;;
24213esac
24214fi
24215PYTHON=$ac_cv_path_PYTHON
24216if test -n "$PYTHON"; then
24217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24218$as_echo "$PYTHON" >&6; }
24219else
24220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221$as_echo "no" >&6; }
24222fi
24223
24224
24225	if test -z "$PYTHON"; then
24226	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
24227	   PYTHON_VERSION=""
24228	fi
24229
24230	#
24231	# Check for a version of Python >= 2.1.0
24232	#
24233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
24234$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
24235	ac_supports_python_ver=`$PYTHON -c "import sys; \
24236		ver = sys.version.split ()[0]; \
24237		print (ver >= '2.1.0')"`
24238	if test "$ac_supports_python_ver" != "True"; then
24239		if test -z "$PYTHON_NOVERSIONCHECK"; then
24240			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24241$as_echo "no" >&6; }
24242			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24244as_fn_error $? "
24245This version of the AC_PYTHON_DEVEL macro
24246doesn't work properly with versions of Python before
242472.1.0. You may need to re-run configure, setting the
24248variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
24249PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
24250Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
24251to something else than an empty string.
24252
24253See \`config.log' for more details" "$LINENO" 5; }
24254		else
24255			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
24256$as_echo "skip at user request" >&6; }
24257		fi
24258	else
24259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24260$as_echo "yes" >&6; }
24261	fi
24262
24263	#
24264	# if the macro parameter ``version'' is set, honour it
24265	#
24266	if test -n ""; then
24267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
24268$as_echo_n "checking for a version of Python ... " >&6; }
24269		ac_supports_python_ver=`$PYTHON -c "import sys; \
24270			ver = sys.version.split ()[0]; \
24271			print (ver )"`
24272		if test "$ac_supports_python_ver" = "True"; then
24273		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24274$as_echo "yes" >&6; }
24275		else
24276			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24277$as_echo "no" >&6; }
24278			as_fn_error $? "this package requires Python .
24279If you have it installed, but it isn't the default Python
24280interpreter in your system path, please pass the PYTHON_VERSION
24281variable to configure. See \`\`configure --help'' for reference.
24282" "$LINENO" 5
24283			PYTHON_VERSION=""
24284		fi
24285	fi
24286
24287	#
24288	# Check if you have distutils, else fail
24289	#
24290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
24291$as_echo_n "checking for the distutils Python package... " >&6; }
24292	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
24293	if test -z "$ac_distutils_result"; then
24294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24295$as_echo "yes" >&6; }
24296	else
24297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24298$as_echo "no" >&6; }
24299		as_fn_error $? "cannot import Python module \"distutils\".
24300Please check your Python installation. The error was:
24301$ac_distutils_result" "$LINENO" 5
24302		PYTHON_VERSION=""
24303	fi
24304
24305	#
24306	# Check for Python include path
24307	#
24308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
24309$as_echo_n "checking for Python include path... " >&6; }
24310	if test -z "$PYTHON_CPPFLAGS"; then
24311		python_path=`$PYTHON -c "import distutils.sysconfig; \
24312			print (distutils.sysconfig.get_python_inc ());"`
24313		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
24314			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
24315		if test -n "${python_path}"; then
24316			if test "${plat_python_path}" != "${python_path}"; then
24317				python_path="-I$python_path -I$plat_python_path"
24318			else
24319				python_path="-I$python_path"
24320			fi
24321		fi
24322		PYTHON_CPPFLAGS=$python_path
24323	fi
24324	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
24325$as_echo "$PYTHON_CPPFLAGS" >&6; }
24326
24327
24328	#
24329	# Check for Python library path
24330	#
24331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
24332$as_echo_n "checking for Python library path... " >&6; }
24333	if test -z "$PYTHON_LDFLAGS"; then
24334		# (makes two attempts to ensure we've got a version number
24335		# from the interpreter)
24336		ac_python_version=`cat<<EOD | $PYTHON -
24337
24338# join all versioning strings, on some systems
24339# major/minor numbers could be in different list elements
24340from distutils.sysconfig import *
24341e = get_config_var('VERSION')
24342if e is not None:
24343	print(e)
24344EOD`
24345
24346		if test -z "$ac_python_version"; then
24347			if test -n "$PYTHON_VERSION"; then
24348				ac_python_version=$PYTHON_VERSION
24349			else
24350				ac_python_version=`$PYTHON -c "import sys; \
24351					print (sys.version[:3])"`
24352			fi
24353		fi
24354
24355		# Make the versioning information available to the compiler
24356
24357		# JW: We don't need it and it interferes with the hack
24358		# to detect multiple Pyhton versions
24359		#AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
24360                #                  [If available, contains the Python version number currently in use.])
24361
24362		# First, the library directory:
24363		ac_python_libdir=`cat<<EOD | $PYTHON -
24364
24365# There should be only one
24366import distutils.sysconfig
24367e = distutils.sysconfig.get_config_var('LIBDIR')
24368if e is not None:
24369	print (e)
24370EOD`
24371
24372		# Now, for the library:
24373		ac_python_library=`cat<<EOD | $PYTHON -
24374
24375import distutils.sysconfig
24376c = distutils.sysconfig.get_config_vars()
24377if 'LDVERSION' in c:
24378	print ('python'+c['LDVERSION'])
24379else:
24380	print ('python'+c['VERSION'])
24381EOD`
24382
24383		# This small piece shamelessly adapted from PostgreSQL python macro;
24384		# credits goes to momjian, I think. I'd like to put the right name
24385		# in the credits, if someone can point me in the right direction... ?
24386		#
24387		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
24388		then
24389			# use the official shared library
24390			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
24391			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
24392		else
24393			# old way: use libpython from python_configdir
24394			ac_python_libdir=`$PYTHON -c \
24395			  "from distutils.sysconfig import get_python_lib as f; \
24396			  import os; \
24397			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
24398			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
24399		fi
24400
24401		if test -z "PYTHON_LDFLAGS"; then
24402			as_fn_error $? "
24403  Cannot determine location of your Python DSO. Please check it was installed with
24404  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
24405			" "$LINENO" 5
24406		fi
24407	fi
24408	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
24409$as_echo "$PYTHON_LDFLAGS" >&6; }
24410
24411
24412	#
24413	# Check for site packages
24414	#
24415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
24416$as_echo_n "checking for Python site-packages path... " >&6; }
24417	if test -z "$PYTHON_SITE_PKG"; then
24418		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
24419			print (distutils.sysconfig.get_python_lib(0,0));"`
24420	fi
24421	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
24422$as_echo "$PYTHON_SITE_PKG" >&6; }
24423
24424
24425	#
24426	# libraries which must be linked in when embedding
24427	#
24428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
24429$as_echo_n "checking python extra libraries... " >&6; }
24430	if test -z "$PYTHON_EXTRA_LIBS"; then
24431	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
24432                conf = distutils.sysconfig.get_config_var; \
24433                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
24434	fi
24435	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
24436$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
24437
24438
24439	#
24440	# linking flags needed when embedding
24441	#
24442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
24443$as_echo_n "checking python extra linking flags... " >&6; }
24444	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
24445		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
24446			conf = distutils.sysconfig.get_config_var; \
24447			print (conf('LINKFORSHARED'))"`
24448	fi
24449	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
24450$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
24451
24452
24453	#
24454	# final check to see if everything compiles alright
24455	#
24456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
24457$as_echo_n "checking consistency of all components of python development environment... " >&6; }
24458	# save current global flags
24459	ac_save_LIBS="$LIBS"
24460	ac_save_CPPFLAGS="$CPPFLAGS"
24461	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
24462	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
24463	ac_ext=c
24464ac_cpp='$CPP $CPPFLAGS'
24465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24467ac_compiler_gnu=$ac_cv_c_compiler_gnu
24468
24469	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24470/* end confdefs.h.  */
24471
24472		#include <Python.h>
24473int
24474main ()
24475{
24476Py_Initialize();
24477  ;
24478  return 0;
24479}
24480
24481_ACEOF
24482if ac_fn_c_try_link "$LINENO"; then :
24483  pythonexists=yes
24484else
24485  pythonexists=no
24486fi
24487rm -f core conftest.err conftest.$ac_objext \
24488    conftest$ac_exeext conftest.$ac_ext
24489	ac_ext=c
24490ac_cpp='$CPP $CPPFLAGS'
24491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24493ac_compiler_gnu=$ac_cv_c_compiler_gnu
24494
24495	# turn back to default flags
24496	CPPFLAGS="$ac_save_CPPFLAGS"
24497	LIBS="$ac_save_LIBS"
24498
24499	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
24500$as_echo "$pythonexists" >&6; }
24501
24502        if test ! "x$pythonexists" = "xyes"; then
24503	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24504  Could not link test program to Python. Maybe the main Python library has been
24505  installed in some non-standard library path. If so, pass it to configure,
24506  via the LDFLAGS environment variable.
24507  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24508  ============================================================================
24509   You probably have to install the development version of the Python package
24510   for your distribution.  The exact name of this package varies among them.
24511  ============================================================================
24512	   " >&5
24513$as_echo "$as_me: WARNING:
24514  Could not link test program to Python. Maybe the main Python library has been
24515  installed in some non-standard library path. If so, pass it to configure,
24516  via the LDFLAGS environment variable.
24517  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24518  ============================================================================
24519   You probably have to install the development version of the Python package
24520   for your distribution.  The exact name of this package varies among them.
24521  ============================================================================
24522	   " >&2;}
24523	  PYTHON_VERSION=""
24524	fi
24525
24526	#
24527	# all done!
24528	#
24529
24530		if test "$PYTHON_VERSION"; then
24531			PYTHONS="$(echo $PYTHONS $PYTHON)"
24532			PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
24533		fi
24534
24535  fi
24536
24537
24538
24539	fi
24540
24541	# Override the automatically found Pythons with the selected version from ports.
24542	PYTHONS=$BSD_PYTHON
24543	PYTHON_VERSIONS=$BSD_PYTHON_VERSION
24544	
24545	# Recover some values lost in the second attempt to find Python.
24546	PYTHON="$(echo $PYTHONS | cut -d ' ' -f 1)"
24547	PYTHON_VERSION="$(echo $PYTHON_VERSIONS | cut -d ' ' -f 1)"
24548
24549	# Remove duplicates.
24550	PYTHONS="$(echo $PYTHONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24551	PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24552
24553	if test "$PYTHON_VERSIONS"; then
24554	   enabled_languages_v=$(echo $enabled_languages | sed -Ee "s/python[23]?/python ($PYTHON_VERSIONS)/")
24555	   enabled_languages=$(echo $enabled_languages | sed -Ee "s/python[23]?/python/")
24556	else
24557            if test "$explicit_languages" = "1"; then
24558                as_fn_error $? "
24559***
24560*** Please install the python development packages.
24561***" "$LINENO" 5
24562	    else
24563                enabled_languages=$(echo $enabled_languages | sed 's/python//')
24564            fi
24565	fi
24566
24567	PYTHONS=$PYTHONS
24568
24569    fi
24570fi
24571
24572ENABLED_LANGUAGES=$enabled_languages
24573
24574
24575#
24576# Provide information about the build.
24577#
24578BUILD_REVISION="bb988077"
24579
24580
24581cat >>confdefs.h <<_ACEOF
24582#define BUILD_REVISION "$BUILD_REVISION"
24583_ACEOF
24584
24585
24586BUILD_VERSION=`echo "$PACKAGE_VERSION" | sed 's/\([0-9.]*\).*/\1./'`
24587BUILD_VERSION="${BUILD_VERSION}48024"
24588BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
24589
24590
24591
24592# Check whether --enable-build-timestamp was given.
24593if test "${enable_build_timestamp+set}" = set; then :
24594  enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
24595        BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
24596      else
24597        BUILD_TIMESTAMP="$enableval"
24598      fi
24599else
24600  BUILD_TIMESTAMP="<none>"
24601fi
24602
24603
24604
24605cat >>confdefs.h <<_ACEOF
24606#define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
24607_ACEOF
24608
24609
24610
24611#
24612# Options to disable some regression tests
24613#
24614run_gpgconf_test="yes"
24615# Check whether --enable-gpgconf-test was given.
24616if test "${enable_gpgconf_test+set}" = set; then :
24617  enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
24618fi
24619
24620 if test "$run_gpgconf_test" = "yes"; then
24621  RUN_GPGCONF_TESTS_TRUE=
24622  RUN_GPGCONF_TESTS_FALSE='#'
24623else
24624  RUN_GPGCONF_TESTS_TRUE='#'
24625  RUN_GPGCONF_TESTS_FALSE=
24626fi
24627
24628
24629run_gpg_test="yes"
24630# Check whether --enable-gpg-test was given.
24631if test "${enable_gpg_test+set}" = set; then :
24632  enableval=$enable_gpg_test; run_gpg_test=$enableval
24633fi
24634
24635 if test "$run_gpg_test" = "yes"; then
24636  RUN_GPG_TESTS_TRUE=
24637  RUN_GPG_TESTS_FALSE='#'
24638else
24639  RUN_GPG_TESTS_TRUE='#'
24640  RUN_GPG_TESTS_FALSE=
24641fi
24642
24643
24644run_gpgsm_test="yes"
24645# Check whether --enable-gpgsm-test was given.
24646if test "${enable_gpgsm_test+set}" = set; then :
24647  enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
24648fi
24649
24650 if test "$run_gpgsm_test" = "yes"; then
24651  RUN_GPGSM_TESTS_TRUE=
24652  RUN_GPGSM_TESTS_FALSE='#'
24653else
24654  RUN_GPGSM_TESTS_TRUE='#'
24655  RUN_GPGSM_TESTS_FALSE=
24656fi
24657
24658
24659run_g13_test="yes"
24660# Check whether --enable-g13-test was given.
24661if test "${enable_g13_test+set}" = set; then :
24662  enableval=$enable_g13_test; run_g13_test=$enableval
24663fi
24664
24665 if test "$run_g13_test" = "yes"; then
24666  RUN_G13_TESTS_TRUE=
24667  RUN_G13_TESTS_FALSE='#'
24668else
24669  RUN_G13_TESTS_TRUE='#'
24670  RUN_G13_TESTS_FALSE=
24671fi
24672
24673
24674
24675# Checks for header files.
24676
24677
24678
24679  for ac_header in $ac_header_list
24680do :
24681  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24682ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24683"
24684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24685  cat >>confdefs.h <<_ACEOF
24686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24687_ACEOF
24688
24689fi
24690
24691done
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714# Type checks.
24715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24716$as_echo_n "checking for inline... " >&6; }
24717if ${ac_cv_c_inline+:} false; then :
24718  $as_echo_n "(cached) " >&6
24719else
24720  ac_cv_c_inline=no
24721for ac_kw in inline __inline__ __inline; do
24722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723/* end confdefs.h.  */
24724#ifndef __cplusplus
24725typedef int foo_t;
24726static $ac_kw foo_t static_foo () {return 0; }
24727$ac_kw foo_t foo () {return 0; }
24728#endif
24729
24730_ACEOF
24731if ac_fn_c_try_compile "$LINENO"; then :
24732  ac_cv_c_inline=$ac_kw
24733fi
24734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24735  test "$ac_cv_c_inline" != no && break
24736done
24737
24738fi
24739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24740$as_echo "$ac_cv_c_inline" >&6; }
24741
24742case $ac_cv_c_inline in
24743  inline | yes) ;;
24744  *)
24745    case $ac_cv_c_inline in
24746      no) ac_val=;;
24747      *) ac_val=$ac_cv_c_inline;;
24748    esac
24749    cat >>confdefs.h <<_ACEOF
24750#ifndef __cplusplus
24751#define inline $ac_val
24752#endif
24753_ACEOF
24754    ;;
24755esac
24756
24757# The cast to long int works around a bug in the HP C Compiler
24758# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24759# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24760# This bug is HP SR number 8606223364.
24761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
24762$as_echo_n "checking size of unsigned int... " >&6; }
24763if ${ac_cv_sizeof_unsigned_int+:} false; then :
24764  $as_echo_n "(cached) " >&6
24765else
24766  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
24767
24768else
24769  if test "$ac_cv_type_unsigned_int" = yes; then
24770     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24772as_fn_error 77 "cannot compute sizeof (unsigned int)
24773See \`config.log' for more details" "$LINENO" 5; }
24774   else
24775     ac_cv_sizeof_unsigned_int=0
24776   fi
24777fi
24778
24779fi
24780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
24781$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24782
24783
24784
24785cat >>confdefs.h <<_ACEOF
24786#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24787_ACEOF
24788
24789
24790# Check whether --enable-largefile was given.
24791if test "${enable_largefile+set}" = set; then :
24792  enableval=$enable_largefile;
24793fi
24794
24795if test "$enable_largefile" != no; then
24796
24797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24798$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
24799if ${ac_cv_sys_largefile_CC+:} false; then :
24800  $as_echo_n "(cached) " >&6
24801else
24802  ac_cv_sys_largefile_CC=no
24803     if test "$GCC" != yes; then
24804       ac_save_CC=$CC
24805       while :; do
24806	 # IRIX 6.2 and later do not support large files by default,
24807	 # so use the C compiler's -n32 option if that helps.
24808	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24809/* end confdefs.h.  */
24810#include <sys/types.h>
24811 /* Check that off_t can represent 2**63 - 1 correctly.
24812    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24813    since some C++ compilers masquerading as C compilers
24814    incorrectly reject 9223372036854775807.  */
24815#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24816  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24817		       && LARGE_OFF_T % 2147483647 == 1)
24818		      ? 1 : -1];
24819int
24820main ()
24821{
24822
24823  ;
24824  return 0;
24825}
24826_ACEOF
24827	 if ac_fn_c_try_compile "$LINENO"; then :
24828  break
24829fi
24830rm -f core conftest.err conftest.$ac_objext
24831	 CC="$CC -n32"
24832	 if ac_fn_c_try_compile "$LINENO"; then :
24833  ac_cv_sys_largefile_CC=' -n32'; break
24834fi
24835rm -f core conftest.err conftest.$ac_objext
24836	 break
24837       done
24838       CC=$ac_save_CC
24839       rm -f conftest.$ac_ext
24840    fi
24841fi
24842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24843$as_echo "$ac_cv_sys_largefile_CC" >&6; }
24844  if test "$ac_cv_sys_largefile_CC" != no; then
24845    CC=$CC$ac_cv_sys_largefile_CC
24846  fi
24847
24848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24849$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24850if ${ac_cv_sys_file_offset_bits+:} false; then :
24851  $as_echo_n "(cached) " >&6
24852else
24853  while :; do
24854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24855/* end confdefs.h.  */
24856#include <sys/types.h>
24857 /* Check that off_t can represent 2**63 - 1 correctly.
24858    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24859    since some C++ compilers masquerading as C compilers
24860    incorrectly reject 9223372036854775807.  */
24861#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24862  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24863		       && LARGE_OFF_T % 2147483647 == 1)
24864		      ? 1 : -1];
24865int
24866main ()
24867{
24868
24869  ;
24870  return 0;
24871}
24872_ACEOF
24873if ac_fn_c_try_compile "$LINENO"; then :
24874  ac_cv_sys_file_offset_bits=no; break
24875fi
24876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24878/* end confdefs.h.  */
24879#define _FILE_OFFSET_BITS 64
24880#include <sys/types.h>
24881 /* Check that off_t can represent 2**63 - 1 correctly.
24882    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24883    since some C++ compilers masquerading as C compilers
24884    incorrectly reject 9223372036854775807.  */
24885#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24886  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24887		       && LARGE_OFF_T % 2147483647 == 1)
24888		      ? 1 : -1];
24889int
24890main ()
24891{
24892
24893  ;
24894  return 0;
24895}
24896_ACEOF
24897if ac_fn_c_try_compile "$LINENO"; then :
24898  ac_cv_sys_file_offset_bits=64; break
24899fi
24900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24901  ac_cv_sys_file_offset_bits=unknown
24902  break
24903done
24904fi
24905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24906$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24907case $ac_cv_sys_file_offset_bits in #(
24908  no | unknown) ;;
24909  *)
24910cat >>confdefs.h <<_ACEOF
24911#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24912_ACEOF
24913;;
24914esac
24915rm -rf conftest*
24916  if test $ac_cv_sys_file_offset_bits = unknown; then
24917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24918$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
24919if ${ac_cv_sys_large_files+:} false; then :
24920  $as_echo_n "(cached) " >&6
24921else
24922  while :; do
24923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924/* end confdefs.h.  */
24925#include <sys/types.h>
24926 /* Check that off_t can represent 2**63 - 1 correctly.
24927    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24928    since some C++ compilers masquerading as C compilers
24929    incorrectly reject 9223372036854775807.  */
24930#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24931  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24932		       && LARGE_OFF_T % 2147483647 == 1)
24933		      ? 1 : -1];
24934int
24935main ()
24936{
24937
24938  ;
24939  return 0;
24940}
24941_ACEOF
24942if ac_fn_c_try_compile "$LINENO"; then :
24943  ac_cv_sys_large_files=no; break
24944fi
24945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947/* end confdefs.h.  */
24948#define _LARGE_FILES 1
24949#include <sys/types.h>
24950 /* Check that off_t can represent 2**63 - 1 correctly.
24951    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24952    since some C++ compilers masquerading as C compilers
24953    incorrectly reject 9223372036854775807.  */
24954#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24955  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24956		       && LARGE_OFF_T % 2147483647 == 1)
24957		      ? 1 : -1];
24958int
24959main ()
24960{
24961
24962  ;
24963  return 0;
24964}
24965_ACEOF
24966if ac_fn_c_try_compile "$LINENO"; then :
24967  ac_cv_sys_large_files=1; break
24968fi
24969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24970  ac_cv_sys_large_files=unknown
24971  break
24972done
24973fi
24974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24975$as_echo "$ac_cv_sys_large_files" >&6; }
24976case $ac_cv_sys_large_files in #(
24977  no | unknown) ;;
24978  *)
24979cat >>confdefs.h <<_ACEOF
24980#define _LARGE_FILES $ac_cv_sys_large_files
24981_ACEOF
24982;;
24983esac
24984rm -rf conftest*
24985  fi
24986
24987
24988fi
24989
24990ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24991if test "x$ac_cv_type_off_t" = xyes; then :
24992
24993else
24994
24995cat >>confdefs.h <<_ACEOF
24996#define off_t long int
24997_ACEOF
24998
24999fi
25000
25001
25002  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
25003if test "x$ac_cv_type_uintptr_t" = xyes; then :
25004
25005$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
25006
25007else
25008  for ac_type in 'unsigned int' 'unsigned long int' \
25009	'unsigned long long int'; do
25010       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25011/* end confdefs.h.  */
25012$ac_includes_default
25013int
25014main ()
25015{
25016static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
25017test_array [0] = 0;
25018return test_array [0];
25019
25020  ;
25021  return 0;
25022}
25023_ACEOF
25024if ac_fn_c_try_compile "$LINENO"; then :
25025
25026cat >>confdefs.h <<_ACEOF
25027#define uintptr_t $ac_type
25028_ACEOF
25029
25030	  ac_type=
25031fi
25032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25033       test -z "$ac_type" && break
25034     done
25035fi
25036
25037
25038
25039# We require uint64_t
25040if test "$ac_cv_header_stdint_h" != yes; then
25041   as_fn_error $? "
25042***
25043*** No stdint.h and thus no uint64_t type.  Can't build this library.
25044***" "$LINENO" 5
25045fi
25046
25047
25048# A simple compile time check in gpgme.h for GNU/Linux systems that
25049# prevents a file offset bits mismatch between gpgme and the application.
25050NEED__FILE_OFFSET_BITS=0
25051if test "$have_w32_system" != yes; then
25052  case "$ac_cv_sys_file_offset_bits" in
25053    "" | no | unknown) ;;
25054    *)
25055    NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
25056    ;;
25057  esac
25058fi
25059
25060
25061# Figure out platform dependent typedefs for gpgme.h
25062if test "$have_w32_system" = yes; then
25063    INSERT__TYPEDEFS_FOR_GPGME_H="
25064#ifdef _WIN64
25065# include <stdint.h>
25066  typedef int64_t gpgme_off_t;
25067  typedef int64_t gpgme_ssize_t;
25068#else /* _WIN32 */
25069  typedef long gpgme_off_t;
25070  typedef long gpgme_ssize_t;
25071#endif /* _WIN32 */"
25072    API__OFF_T="gpgme_off_t"
25073    API__SSIZE_T="gpgme_ssize_t"
25074else
25075    INSERT__TYPEDEFS_FOR_GPGME_H="
25076#include <sys/types.h>
25077typedef off_t   gpgme_off_t;
25078typedef ssize_t gpgme_ssize_t;"
25079    API__OFF_T="off_t"
25080    API__SSIZE_T="ssize_t"
25081fi
25082
25083
25084
25085
25086
25087
25088
25089# Checks for compiler features.
25090if test "$GCC" = yes; then
25091    CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
25092    CFLAGS="$CFLAGS -Wno-format-y2k"
25093
25094    # If -Wno-missing-field-initializers is supported we can expect a
25095    # a larger set of warning options.
25096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
25097$as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
25098    _gcc_cflags_save=$CFLAGS
25099    CFLAGS="-Wno-missing-field-initializers"
25100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25101/* end confdefs.h.  */
25102
25103int
25104main ()
25105{
25106
25107  ;
25108  return 0;
25109}
25110_ACEOF
25111if ac_fn_c_try_compile "$LINENO"; then :
25112  _gcc_wopt=yes
25113else
25114  _gcc_wopt=no
25115fi
25116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25118$as_echo "$_gcc_wopt" >&6; }
25119    CFLAGS=$_gcc_cflags_save;
25120    if test x"$_gcc_wopt" = xyes ; then
25121      CFLAGS="$CFLAGS -Wno-missing-field-initializers"
25122      CFLAGS="$CFLAGS -Wno-sign-compare"
25123      CFLAGS="$CFLAGS -Wno-format-zero-length"
25124      CFLAGS="$CFLAGS -Wno-format-truncation"
25125      CFLAGS="$CFLAGS -Wno-sizeof-pointer-div"
25126    fi
25127    if test "$USE_MAINTAINER_MODE" = "yes"; then
25128        if test x"$_gcc_wopt" = xyes ; then
25129          CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
25130          CFLAGS="$CFLAGS -Wwrite-strings"
25131          CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25132        fi
25133        CFLAGS="$CFLAGS -Wformat -Wformat-security"
25134        CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
25135
25136        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
25137$as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
25138        _gcc_cflags_save=$CFLAGS
25139        CFLAGS="-Wpointer-arith"
25140        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141/* end confdefs.h.  */
25142
25143int
25144main ()
25145{
25146
25147  ;
25148  return 0;
25149}
25150_ACEOF
25151if ac_fn_c_try_compile "$LINENO"; then :
25152  _gcc_wopt=yes
25153else
25154  _gcc_wopt=no
25155fi
25156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25157        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25158$as_echo "$_gcc_wopt" >&6; }
25159        CFLAGS=$_gcc_cflags_save;
25160        if test x"$_gcc_wopt" = xyes ; then
25161          CFLAGS="$CFLAGS -Wpointer-arith"
25162        fi
25163    fi
25164    if test "$have_w32_system" = yes; then
25165       CFLAGS="$CFLAGS -mms-bitfields"
25166    fi
25167fi
25168
25169# Only used for debugging, so no serious test needed (for actual
25170# functionality you have to test libc as well, this only tests the
25171# compiler).
25172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
25173$as_echo_n "checking for __thread... " >&6; }
25174if ${gpgme_cv_tls_works+:} false; then :
25175  $as_echo_n "(cached) " >&6
25176else
25177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25178/* end confdefs.h.  */
25179__thread int foo;
25180int
25181main ()
25182{
25183
25184  ;
25185  return 0;
25186}
25187_ACEOF
25188if ac_fn_c_try_compile "$LINENO"; then :
25189  gpgme_cv_tls_works=yes
25190else
25191  gpgme_cv_tls_works=no
25192fi
25193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25194fi
25195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
25196$as_echo "$gpgme_cv_tls_works" >&6; }
25197if test "$gpgme_cv_tls_works" = yes; then
25198
25199$as_echo "#define HAVE_TLS 1" >>confdefs.h
25200
25201fi
25202
25203
25204# Checks for library functions.
25205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
25206$as_echo "$as_me: checking for libraries" >&6;}
25207
25208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25209$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25210if ${ac_cv_sys_largefile_source+:} false; then :
25211  $as_echo_n "(cached) " >&6
25212else
25213  while :; do
25214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25215/* end confdefs.h.  */
25216#include <sys/types.h> /* for off_t */
25217     #include <stdio.h>
25218int
25219main ()
25220{
25221int (*fp) (FILE *, off_t, int) = fseeko;
25222     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25223  ;
25224  return 0;
25225}
25226_ACEOF
25227if ac_fn_c_try_link "$LINENO"; then :
25228  ac_cv_sys_largefile_source=no; break
25229fi
25230rm -f core conftest.err conftest.$ac_objext \
25231    conftest$ac_exeext conftest.$ac_ext
25232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25233/* end confdefs.h.  */
25234#define _LARGEFILE_SOURCE 1
25235#include <sys/types.h> /* for off_t */
25236     #include <stdio.h>
25237int
25238main ()
25239{
25240int (*fp) (FILE *, off_t, int) = fseeko;
25241     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25242  ;
25243  return 0;
25244}
25245_ACEOF
25246if ac_fn_c_try_link "$LINENO"; then :
25247  ac_cv_sys_largefile_source=1; break
25248fi
25249rm -f core conftest.err conftest.$ac_objext \
25250    conftest$ac_exeext conftest.$ac_ext
25251  ac_cv_sys_largefile_source=unknown
25252  break
25253done
25254fi
25255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25256$as_echo "$ac_cv_sys_largefile_source" >&6; }
25257case $ac_cv_sys_largefile_source in #(
25258  no | unknown) ;;
25259  *)
25260cat >>confdefs.h <<_ACEOF
25261#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25262_ACEOF
25263;;
25264esac
25265rm -rf conftest*
25266
25267# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25268# in glibc 2.1.3, but that breaks too many other things.
25269# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25270if test $ac_cv_sys_largefile_source != unknown; then
25271
25272$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
25273
25274fi
25275
25276
25277# Try to find a thread-safe version of ttyname().
25278ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
25279if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
25280  ac_have_decl=1
25281else
25282  ac_have_decl=0
25283fi
25284
25285cat >>confdefs.h <<_ACEOF
25286#define HAVE_DECL_TTYNAME_R $ac_have_decl
25287_ACEOF
25288
25289
25290  for ac_header in unistd.h
25291do :
25292  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25293if test "x$ac_cv_header_unistd_h" = xyes; then :
25294  cat >>confdefs.h <<_ACEOF
25295#define HAVE_UNISTD_H 1
25296_ACEOF
25297
25298fi
25299
25300done
25301
25302
25303
25304  if test $ac_cv_have_decl_ttyname_r = no; then
25305    HAVE_DECL_TTYNAME_R=0
25306  fi
25307
25308  for ac_func in ttyname_r
25309do :
25310  ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
25311if test "x$ac_cv_func_ttyname_r" = xyes; then :
25312  cat >>confdefs.h <<_ACEOF
25313#define HAVE_TTYNAME_R 1
25314_ACEOF
25315
25316fi
25317done
25318
25319  if test $ac_cv_func_ttyname_r = no; then
25320    HAVE_TTYNAME_R=0
25321    case " $LIBOBJS " in
25322  *" ttyname_r.$ac_objext "* ) ;;
25323  *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25324 ;;
25325esac
25326
25327
25328$as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25329
25330  else
25331    HAVE_TTYNAME_R=1
25332            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
25333$as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
25334if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
25335  $as_echo_n "(cached) " >&6
25336else
25337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25338/* end confdefs.h.  */
25339#include <stddef.h>
25340              #include <unistd.h>
25341int
25342main ()
25343{
25344*ttyname_r (0, NULL, 0);
25345  ;
25346  return 0;
25347}
25348
25349_ACEOF
25350if ac_fn_c_try_compile "$LINENO"; then :
25351  gnupg_cv_func_ttyname_r_posix=no
25352else
25353  gnupg_cv_func_ttyname_r_posix=yes
25354fi
25355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356
25357fi
25358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
25359$as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
25360    if test $gnupg_cv_func_ttyname_r_posix = no; then
25361      case " $LIBOBJS " in
25362  *" ttyname_r.$ac_objext "* ) ;;
25363  *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25364 ;;
25365esac
25366
25367      $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25368
25369    elif test "$have_android_system" = yes; then
25370      # Android has ttyname and ttyname_r but they are only stubs and
25371      # print an annoying warning message.  Thus we need to replace
25372      # ttyname_r with our own dummy function.
25373      case " $LIBOBJS " in
25374  *" ttyname_r.$ac_objext "* ) ;;
25375  *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25376 ;;
25377esac
25378
25379      $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25380
25381    else
25382
25383$as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
25384
25385
25386      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
25387$as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
25388if ${gnupg_cv_func_ttyname_r_works+:} false; then :
25389  $as_echo_n "(cached) " >&6
25390else
25391
25392                              case "$host_os" in
25393                      # Guess no on Solaris.
25394            solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25395                      # Guess no on OSF/1.
25396            osf*)     gnupg_cv_func_ttyname_r_works="guessing no" ;;
25397                      # Guess yes otherwise.
25398            *)        gnupg_cv_func_ttyname_r_works="guessing yes" ;;
25399          esac
25400          if test "$cross_compiling" = yes; then :
25401  :
25402else
25403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25404/* end confdefs.h.  */
25405
25406#include <fcntl.h>
25407#include <unistd.h>
25408int
25409main (void)
25410{
25411  int result = 0;
25412  int fd;
25413  char buf[31]; /* use any size < 128 here */
25414
25415  fd = open ("/dev/tty", O_RDONLY);
25416  if (fd < 0)
25417    result |= 16;
25418  else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
25419    result |= 17;
25420  else if (ttyname_r (fd, buf, 1) == 0)
25421    result |= 18;
25422  return result;
25423}
25424_ACEOF
25425if ac_fn_c_try_run "$LINENO"; then :
25426  gnupg_cv_func_ttyname_r_works=yes
25427else
25428  case $? in
25429               17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
25430             esac
25431fi
25432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25433  conftest.$ac_objext conftest.beam conftest.$ac_ext
25434fi
25435
25436
25437fi
25438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
25439$as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
25440      case "$gnupg_cv_func_ttyname_r_works" in
25441        *yes) ;;
25442        *) case " $LIBOBJS " in
25443  *" ttyname_r.$ac_objext "* ) ;;
25444  *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25445 ;;
25446esac
25447
25448           $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25449
25450
25451$as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
25452
25453           ;;
25454      esac
25455    fi
25456  fi
25457
25458if test "$ac_cv_func_ttyname_r" != yes; then
25459  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25460***
25461*** ttyname() is not thread-safe and ttyname_r() does not exist
25462***" >&5
25463$as_echo "$as_me: WARNING:
25464***
25465*** ttyname() is not thread-safe and ttyname_r() does not exist
25466***" >&2;}
25467fi
25468
25469# Try to find a thread-safe version of getenv().
25470have_thread_safe_getenv=no
25471
25472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
25473$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
25474if ${ac_cv_gnu_library_2_1+:} false; then :
25475  $as_echo_n "(cached) " >&6
25476else
25477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25478/* end confdefs.h.  */
25479
25480#include <features.h>
25481#ifdef __GNU_LIBRARY__
25482 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25483  Lucky GNU user
25484 #endif
25485#endif
25486
25487_ACEOF
25488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25489  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
25490  ac_cv_gnu_library_2_1=yes
25491else
25492  ac_cv_gnu_library_2_1=no
25493fi
25494rm -f conftest*
25495
25496
25497
25498fi
25499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
25500$as_echo "$ac_cv_gnu_library_2_1" >&6; }
25501
25502    GLIBC21="$ac_cv_gnu_library_2_1"
25503
25504
25505if test $GLIBC21 = yes -o $have_w32_system = yes; then
25506  have_thread_safe_getenv=yes
25507fi
25508if test $have_thread_safe_getenv = yes; then
25509
25510$as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
25511
25512fi
25513have_getenv_r=no
25514for ac_func in getenv_r
25515do :
25516  ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
25517if test "x$ac_cv_func_getenv_r" = xyes; then :
25518  cat >>confdefs.h <<_ACEOF
25519#define HAVE_GETENV_R 1
25520_ACEOF
25521 have_getenv_r=yes
25522fi
25523done
25524
25525if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
25526  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25527***
25528*** getenv() is not thread-safe and getenv_r() does not exist
25529***" >&5
25530$as_echo "$as_me: WARNING:
25531***
25532*** getenv() is not thread-safe and getenv_r() does not exist
25533***" >&2;}
25534fi
25535
25536# For converting time strings to seconds since Epoch, we need the timegm
25537# function.
25538for ac_func in timegm
25539do :
25540  ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25541if test "x$ac_cv_func_timegm" = xyes; then :
25542  cat >>confdefs.h <<_ACEOF
25543#define HAVE_TIMEGM 1
25544_ACEOF
25545
25546fi
25547done
25548
25549if test "$ac_cv_func_timegm" != yes; then
25550  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25551***
25552*** timegm() not available - a non-thread-safe kludge will be used
25553*** and the TZ variable might be changed at runtime.
25554***" >&5
25555$as_echo "$as_me: WARNING:
25556***
25557*** timegm() not available - a non-thread-safe kludge will be used
25558*** and the TZ variable might be changed at runtime.
25559***" >&2;}
25560fi
25561
25562for ac_func in setlocale
25563do :
25564  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
25565if test "x$ac_cv_func_setlocale" = xyes; then :
25566  cat >>confdefs.h <<_ACEOF
25567#define HAVE_SETLOCALE 1
25568_ACEOF
25569
25570fi
25571done
25572
25573
25574# Checking for libgpg-error.
25575have_gpg_error=no
25576
25577  gpg_error_config_prefix=""
25578
25579# Check whether --with-libgpg-error-prefix was given.
25580if test "${with_libgpg_error_prefix+set}" = set; then :
25581  withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
25582fi
25583
25584
25585
25586# Check whether --with-gpg-error-prefix was given.
25587if test "${with_gpg_error_prefix+set}" = set; then :
25588  withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
25589fi
25590
25591
25592  if test x"${GPG_ERROR_CONFIG}" = x ; then
25593     if test x"${gpg_error_config_prefix}" != x ; then
25594        GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
25595     else
25596       case "${SYSROOT}" in
25597         /*)
25598           if test -x "${SYSROOT}/bin/gpg-error-config" ; then
25599             GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
25600           fi
25601           ;;
25602         '')
25603           ;;
25604          *)
25605           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
25606$as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
25607           ;;
25608       esac
25609     fi
25610  fi
25611
25612  # Extract the first word of "gpg-error-config", so it can be a program name with args.
25613set dummy gpg-error-config; ac_word=$2
25614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25615$as_echo_n "checking for $ac_word... " >&6; }
25616if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
25617  $as_echo_n "(cached) " >&6
25618else
25619  case $GPG_ERROR_CONFIG in
25620  [\\/]* | ?:[\\/]*)
25621  ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
25622  ;;
25623  *)
25624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25625for as_dir in $PATH
25626do
25627  IFS=$as_save_IFS
25628  test -z "$as_dir" && as_dir=.
25629    for ac_exec_ext in '' $ac_executable_extensions; do
25630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25631    ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25633    break 2
25634  fi
25635done
25636  done
25637IFS=$as_save_IFS
25638
25639  test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
25640  ;;
25641esac
25642fi
25643GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
25644if test -n "$GPG_ERROR_CONFIG"; then
25645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
25646$as_echo "$GPG_ERROR_CONFIG" >&6; }
25647else
25648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25649$as_echo "no" >&6; }
25650fi
25651
25652
25653  min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
25654  ok=no
25655
25656  if test "$prefix" = NONE ; then
25657    prefix_option_expanded=/usr/local
25658  else
25659    prefix_option_expanded="$prefix"
25660  fi
25661  if test "$exec_prefix" = NONE ; then
25662    exec_prefix_option_expanded=$prefix_option_expanded
25663  else
25664    exec_prefix_option_expanded=$(prefix=$prefix_option_expanded eval echo $exec_prefix)
25665  fi
25666  libdir_option_expanded=$(prefix=$prefix_option_expanded exec_prefix=$exec_prefix_option_expanded eval echo $libdir)
25667
25668  if test -f $libdir_option_expanded/pkgconfig/gpg-error.pc; then
25669    gpgrt_libdir=$libdir_option_expanded
25670  else
25671    if crt1_path=$(${CC:-cc} -print-file-name=crt1.o 2>/dev/null); then
25672      if possible_libdir=$(cd ${crt1_path%/*} && pwd 2>/dev/null); then
25673        if test -f $possible_libdir/pkgconfig/gpg-error.pc; then
25674          gpgrt_libdir=$possible_libdir
25675        fi
25676      fi
25677    fi
25678  fi
25679
25680  if test "$GPG_ERROR_CONFIG" = "no" -a -n "$gpgrt_libdir"; then
25681    # Extract the first word of "gpgrt-config", so it can be a program name with args.
25682set dummy gpgrt-config; ac_word=$2
25683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25684$as_echo_n "checking for $ac_word... " >&6; }
25685if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25686  $as_echo_n "(cached) " >&6
25687else
25688  case $GPGRT_CONFIG in
25689  [\\/]* | ?:[\\/]*)
25690  ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25691  ;;
25692  *)
25693  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25694for as_dir in $PATH
25695do
25696  IFS=$as_save_IFS
25697  test -z "$as_dir" && as_dir=.
25698    for ac_exec_ext in '' $ac_executable_extensions; do
25699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25700    ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25702    break 2
25703  fi
25704done
25705  done
25706IFS=$as_save_IFS
25707
25708  test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25709  ;;
25710esac
25711fi
25712GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25713if test -n "$GPGRT_CONFIG"; then
25714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25715$as_echo "$GPGRT_CONFIG" >&6; }
25716else
25717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25718$as_echo "no" >&6; }
25719fi
25720
25721
25722    if test "$GPGRT_CONFIG" = "no"; then
25723      unset GPGRT_CONFIG
25724    else
25725      GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25726      if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25727        GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25728        { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25729$as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25730        gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
25731      else
25732        unset GPGRT_CONFIG
25733      fi
25734    fi
25735  else
25736    gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
25737  fi
25738  if test "$GPG_ERROR_CONFIG" != "no"; then
25739    req_major=`echo $min_gpg_error_version | \
25740               sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
25741    req_minor=`echo $min_gpg_error_version | \
25742               sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
25743    major=`echo $gpg_error_config_version | \
25744               sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
25745    minor=`echo $gpg_error_config_version | \
25746               sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
25747    if test "$major" -gt "$req_major"; then
25748        ok=yes
25749    else
25750        if test "$major" -eq "$req_major"; then
25751            if test "$minor" -ge "$req_minor"; then
25752               ok=yes
25753            fi
25754        fi
25755    fi
25756    if test -z "$GPGRT_CONFIG" -a -n "$gpgrt_libdir"; then
25757      if test "$major" -gt 1 -o "$major" -eq 1 -a "$minor" -ge 33; then
25758        # Extract the first word of "gpgrt-config", so it can be a program name with args.
25759set dummy gpgrt-config; ac_word=$2
25760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25761$as_echo_n "checking for $ac_word... " >&6; }
25762if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25763  $as_echo_n "(cached) " >&6
25764else
25765  case $GPGRT_CONFIG in
25766  [\\/]* | ?:[\\/]*)
25767  ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25768  ;;
25769  *)
25770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25771for as_dir in $PATH
25772do
25773  IFS=$as_save_IFS
25774  test -z "$as_dir" && as_dir=.
25775    for ac_exec_ext in '' $ac_executable_extensions; do
25776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25777    ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25779    break 2
25780  fi
25781done
25782  done
25783IFS=$as_save_IFS
25784
25785  test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25786  ;;
25787esac
25788fi
25789GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25790if test -n "$GPGRT_CONFIG"; then
25791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25792$as_echo "$GPGRT_CONFIG" >&6; }
25793else
25794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25795$as_echo "no" >&6; }
25796fi
25797
25798
25799        if test "$GPGRT_CONFIG" = "no"; then
25800          unset GPGRT_CONFIG
25801        else
25802          GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25803          if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25804            GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25805            { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25806$as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25807          else
25808            unset GPGRT_CONFIG
25809          fi
25810        fi
25811      fi
25812    fi
25813  fi
25814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
25815$as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
25816  if test $ok = yes; then
25817    GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
25818    GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
25819    if test -z "$GPGRT_CONFIG"; then
25820      GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
25821      GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
25822    else
25823      GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
25824      GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
25825      GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
25826      GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
25827    fi
25828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
25829$as_echo "yes ($gpg_error_config_version)" >&6; }
25830    have_gpg_error=yes
25831    if test -z "$GPGRT_CONFIG"; then
25832      gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
25833    else
25834      gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
25835    fi
25836    if test x"$gpg_error_config_host" != xnone ; then
25837      if test x"$gpg_error_config_host" != x"$host" ; then
25838  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25839***
25840*** The config script \"$GPG_ERROR_CONFIG\" was
25841*** built for $gpg_error_config_host and thus may not match the
25842*** used host $host.
25843*** You may want to use the configure option --with-libgpg-error-prefix
25844*** to specify a matching config script or use \$SYSROOT.
25845***" >&5
25846$as_echo "$as_me: WARNING:
25847***
25848*** The config script \"$GPG_ERROR_CONFIG\" was
25849*** built for $gpg_error_config_host and thus may not match the
25850*** used host $host.
25851*** You may want to use the configure option --with-libgpg-error-prefix
25852*** to specify a matching config script or use \$SYSROOT.
25853***" >&2;}
25854        gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
25855      fi
25856    fi
25857  else
25858    GPG_ERROR_CFLAGS=""
25859    GPG_ERROR_LIBS=""
25860    GPG_ERROR_MT_CFLAGS=""
25861    GPG_ERROR_MT_LIBS=""
25862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25863$as_echo "no" >&6; }
25864    have_gpg_error=no
25865  fi
25866
25867
25868
25869
25870
25871
25872$as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
25873
25874
25875# And for libassuan.
25876have_libassuan=no
25877
25878
25879# Check whether --with-libassuan-prefix was given.
25880if test "${with_libassuan_prefix+set}" = set; then :
25881  withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
25882else
25883  libassuan_config_prefix=""
25884fi
25885
25886  if test x$libassuan_config_prefix != x ; then
25887    if test x${LIBASSUAN_CONFIG+set} != xset ; then
25888      LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
25889    fi
25890  fi
25891
25892  use_gpgrt_config=""
25893  if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
25894    if $GPGRT_CONFIG libassuan --exists; then
25895      LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
25896      { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
25897$as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
25898      use_gpgrt_config=yes
25899    fi
25900  fi
25901  if test -z "$use_gpgrt_config"; then
25902    # Extract the first word of "libassuan-config", so it can be a program name with args.
25903set dummy libassuan-config; ac_word=$2
25904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25905$as_echo_n "checking for $ac_word... " >&6; }
25906if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
25907  $as_echo_n "(cached) " >&6
25908else
25909  case $LIBASSUAN_CONFIG in
25910  [\\/]* | ?:[\\/]*)
25911  ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
25912  ;;
25913  *)
25914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25915for as_dir in $PATH
25916do
25917  IFS=$as_save_IFS
25918  test -z "$as_dir" && as_dir=.
25919    for ac_exec_ext in '' $ac_executable_extensions; do
25920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25921    ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25923    break 2
25924  fi
25925done
25926  done
25927IFS=$as_save_IFS
25928
25929  test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
25930  ;;
25931esac
25932fi
25933LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
25934if test -n "$LIBASSUAN_CONFIG"; then
25935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
25936$as_echo "$LIBASSUAN_CONFIG" >&6; }
25937else
25938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25939$as_echo "no" >&6; }
25940fi
25941
25942
25943  fi
25944
25945  tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
25946  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
25947    req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
25948    min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
25949  else
25950    req_libassuan_api=0
25951    min_libassuan_version="$tmp"
25952  fi
25953
25954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
25955$as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
25956  ok=no
25957  if test "$LIBASSUAN_CONFIG" != "no"; then
25958    req_major=`echo $min_libassuan_version | \
25959               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25960    req_minor=`echo $min_libassuan_version | \
25961               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25962    req_micro=`echo $min_libassuan_version | \
25963               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25964
25965    if test -z "$use_gpgrt_config"; then
25966      libassuan_config_version=`$LIBASSUAN_CONFIG --version`
25967    else
25968      libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
25969    fi
25970    major=`echo $libassuan_config_version | \
25971               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
25972    minor=`echo $libassuan_config_version | \
25973               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
25974    micro=`echo $libassuan_config_version | \
25975               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
25976
25977    if test "$major" -gt "$req_major"; then
25978        ok=yes
25979    else
25980        if test "$major" -eq "$req_major"; then
25981            if test "$minor" -gt "$req_minor"; then
25982               ok=yes
25983            else
25984               if test "$minor" -eq "$req_minor"; then
25985                   if test "$micro" -ge "$req_micro"; then
25986                     ok=yes
25987                   fi
25988               fi
25989            fi
25990        fi
25991    fi
25992  fi
25993
25994  if test $ok = yes; then
25995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
25996$as_echo "yes ($libassuan_config_version)" >&6; }
25997  else
25998    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25999$as_echo "no" >&6; }
26000  fi
26001
26002  if test $ok = yes; then
26003    if test "$req_libassuan_api" -gt 0 ; then
26004      if test -z "$use_gpgrt_config"; then
26005        tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
26006      else
26007        tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
26008      fi
26009      if test "$tmp" -gt 0 ; then
26010        { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
26011$as_echo_n "checking LIBASSUAN API version... " >&6; }
26012        if test "$req_libassuan_api" -eq "$tmp" ; then
26013          { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
26014$as_echo "okay" >&6; }
26015        else
26016          ok=no
26017          { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
26018$as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
26019        fi
26020      fi
26021    fi
26022  fi
26023
26024  if test $ok = yes; then
26025    if test x"$host" != x ; then
26026      if test -z "$use_gpgrt_config"; then
26027        libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
26028      else
26029        libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
26030      fi
26031      if test x"$libassuan_config_host" != xnone ; then
26032        if test x"$libassuan_config_host" != x"$host" ; then
26033  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26034***
26035*** The config script \"$LIBASSUAN_CONFIG\" was
26036*** built for $libassuan_config_host and thus may not match the
26037*** used host $host.
26038*** You may want to use the configure option --with-libassuan-prefix
26039*** to specify a matching config script.
26040***" >&5
26041$as_echo "$as_me: WARNING:
26042***
26043*** The config script \"$LIBASSUAN_CONFIG\" was
26044*** built for $libassuan_config_host and thus may not match the
26045*** used host $host.
26046*** You may want to use the configure option --with-libassuan-prefix
26047*** to specify a matching config script.
26048***" >&2;}
26049        fi
26050      fi
26051    fi
26052  fi
26053
26054  if test $ok = yes; then
26055    LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
26056    LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
26057    have_libassuan=yes
26058  else
26059    LIBASSUAN_CFLAGS=""
26060    LIBASSUAN_LIBS=""
26061    have_libassuan=no
26062  fi
26063
26064
26065
26066if test "$have_libassuan" = "yes"; then
26067
26068cat >>confdefs.h <<_ACEOF
26069#define GPGME_LIBASSUAN_VERSION "$libassuan_version"
26070_ACEOF
26071
26072fi
26073
26074
26075#
26076# Other checks
26077#
26078
26079# Check for getgid etc
26080for ac_func in getgid getegid closefrom
26081do :
26082  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26083ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26084if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26085  cat >>confdefs.h <<_ACEOF
26086#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26087_ACEOF
26088
26089fi
26090done
26091
26092
26093
26094# Replacement functions.
26095ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
26096if test "x$ac_cv_func_stpcpy" = xyes; then :
26097  $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
26098
26099else
26100  case " $LIBOBJS " in
26101  *" stpcpy.$ac_objext "* ) ;;
26102  *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
26103 ;;
26104esac
26105
26106fi
26107
26108
26109ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
26110if test "x$ac_cv_func_setenv" = xyes; then :
26111  $as_echo "#define HAVE_SETENV 1" >>confdefs.h
26112
26113else
26114  case " $LIBOBJS " in
26115  *" setenv.$ac_objext "* ) ;;
26116  *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
26117 ;;
26118esac
26119
26120fi
26121
26122
26123
26124# Assuan check for descriptor passing.
26125ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
26126#include <stdlib.h>
26127#include <stddef.h>
26128#include <stdio.h>
26129#include <sys/types.h>
26130#include <sys/socket.h>
26131#include <sys/un.h>
26132#if HAVE_SYS_UIO_H
26133#include <sys/uio.h>
26134#endif
26135#include <unistd.h>
26136
26137"
26138if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
26139  supports_descriptor_passing=yes
26140else
26141  supports_descriptor_passing=no
26142                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26143***
26144*** Data structure for sending ancillary data missing.
26145*** Descriptor passing won't work.
26146***" >&5
26147$as_echo "$as_me: WARNING:
26148***
26149*** Data structure for sending ancillary data missing.
26150*** Descriptor passing won't work.
26151***" >&2;}
26152fi
26153
26154
26155use_descriptor_passing=yes
26156# Check whether --enable-fd-passing was given.
26157if test "${enable_fd_passing+set}" = set; then :
26158  enableval=$enable_fd_passing; use_descriptor_passing=$enableval
26159fi
26160
26161
26162if test "$supports_descriptor_passing" != "yes"; then
26163  use_descriptor_passing=no
26164fi
26165
26166if test "$use_descriptor_passing" = "yes"; then
26167
26168$as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
26169
26170fi
26171
26172 if test "$use_descriptor_passing" = "yes"; then
26173  USE_DESCRIPTOR_PASSING_TRUE=
26174  USE_DESCRIPTOR_PASSING_FALSE='#'
26175else
26176  USE_DESCRIPTOR_PASSING_TRUE='#'
26177  USE_DESCRIPTOR_PASSING_FALSE=
26178fi
26179
26180
26181
26182uiserver=no
26183if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
26184  uiserver=yes
26185fi
26186if test "$uiserver" != "no"; then
26187
26188$as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
26189
26190fi
26191 if test "$uiserver" != "no"; then
26192  HAVE_UISERVER_TRUE=
26193  HAVE_UISERVER_FALSE='#'
26194else
26195  HAVE_UISERVER_TRUE='#'
26196  HAVE_UISERVER_FALSE=
26197fi
26198
26199
26200
26201# Option --disable-linux-getdents
26202#
26203# By default we use SYS_getdents on Linux to optimize fd closing
26204# before an exec.  This option allows to switch this optimization off.
26205use_linux_getdents=yes
26206# Check whether --enable-linux-getdents was given.
26207if test "${enable_linux_getdents+set}" = set; then :
26208  enableval=$enable_linux_getdents; use_linux_getdents=$enableval
26209fi
26210
26211if test "$use_linux_getdents" = "yes"; then
26212    case "${host}" in
26213        *-*-linux*)
26214
26215$as_echo "#define USE_LINUX_GETDENTS 1" >>confdefs.h
26216
26217           ;;
26218    esac
26219fi
26220
26221
26222#
26223# Add a few constants to help porting to W32
26224#
26225
26226
26227
26228
26229
26230# Substitution used for gpgme-config
26231GPGME_CONFIG_LIBS="-lgpgme"
26232GPGME_CONFIG_CFLAGS=""
26233GPGME_CONFIG_HOST="$host"
26234GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
26235
26236
26237
26238
26239
26240
26241# Frob'da Variables
26242LTLIBOBJS=`echo "$LIBOBJS" |
26243           sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
26244
26245
26246# Some checks for gpgme-tool
26247# Done at top: AC_CHECK_HEADER([argp.h])
26248ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
26249"
26250if test "x$ac_cv_type_error_t" = xyes; then :
26251
26252cat >>confdefs.h <<_ACEOF
26253#define HAVE_ERROR_T 1
26254_ACEOF
26255
26256
26257else
26258
26259$as_echo "#define error_t int" >>confdefs.h
26260
26261fi
26262
26263
26264
26265# A substitution to set generated files in a Emacs buffer to read-only.
26266emacs_local_vars_begin='Local Variables:'
26267
26268emacs_local_vars_read_only='buffer-read-only: t'
26269
26270emacs_local_vars_end='End:'
26271
26272
26273# Last check.
26274die=no
26275if test "$have_gpg_error" = "no"; then
26276   die=yes
26277   { $as_echo "$as_me:${as_lineno-$LINENO}:
26278***
26279*** You need libgpg-error to build this program.
26280**  This library is for example available at
26281***   https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26282*** (at least version $NEED_GPG_ERROR_VERSION is required.)
26283***" >&5
26284$as_echo "$as_me:
26285***
26286*** You need libgpg-error to build this program.
26287**  This library is for example available at
26288***   https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26289*** (at least version $NEED_GPG_ERROR_VERSION is required.)
26290***" >&6;}
26291fi
26292if test "$have_libassuan" = "no"; then
26293   die=yes
26294   { $as_echo "$as_me:${as_lineno-$LINENO}:
26295***
26296*** You need libassuan to build this program.
26297*** This library is for example available at
26298***   https://www.gnupg.org/ftp/gcrypt/libassuan/
26299*** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26300***" >&5
26301$as_echo "$as_me:
26302***
26303*** You need libassuan to build this program.
26304*** This library is for example available at
26305***   https://www.gnupg.org/ftp/gcrypt/libassuan/
26306*** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26307***" >&6;}
26308fi
26309
26310if test "$die" = "yes"; then
26311    as_fn_error $? "
26312***
26313*** Required libraries not found. Please consult the above messages
26314*** and install them before running configure again.
26315***" "$LINENO" 5
26316fi
26317
26318
26319#
26320# Create config files
26321
26322ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile tests/opassuan/Makefile tests/json/Makefile doc/Makefile src/versioninfo.rc src/gpgme.pc src/gpgme-glib.pc src/gpgme.h"
26323
26324ac_config_files="$ac_config_files src/gpgme-config"
26325
26326ac_config_files="$ac_config_files lang/cpp/Makefile lang/cpp/src/Makefile"
26327
26328ac_config_files="$ac_config_files lang/cpp/tests/Makefile"
26329
26330ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig-w32.cmake.in"
26331
26332ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig.cmake.in"
26333
26334ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfigVersion.cmake"
26335
26336ac_config_files="$ac_config_files lang/cpp/src/gpgmepp_version.h"
26337
26338ac_config_files="$ac_config_files lang/qt/Makefile lang/qt/src/Makefile"
26339
26340ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig-w32.cmake.in"
26341
26342ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig.cmake.in"
26343
26344ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfigVersion.cmake"
26345
26346ac_config_files="$ac_config_files lang/qt/tests/Makefile"
26347
26348ac_config_files="$ac_config_files lang/qt/src/qgpgme_version.h"
26349
26350ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
26351
26352if test -z "$HAVE_DOXYGEN_TRUE"; then :
26353  ac_config_files="$ac_config_files lang/qt/doc/Doxyfile"
26354
26355fi
26356ac_config_files="$ac_config_files lang/js/Makefile lang/js/src/Makefile lang/js/BrowserTestExtension/Makefile lang/js/DemoExtension/Makefile"
26357
26358ac_config_files="$ac_config_files lang/qt/doc/Makefile"
26359
26360ac_config_files="$ac_config_files lang/python/Makefile lang/python/version.py lang/python/tests/Makefile lang/python/src/Makefile lang/python/examples/Makefile lang/python/doc/Makefile"
26361
26362ac_config_files="$ac_config_files lang/python/setup.py"
26363
26364cat >confcache <<\_ACEOF
26365# This file is a shell script that caches the results of configure
26366# tests run on this system so they can be shared between configure
26367# scripts and configure runs, see configure's option --config-cache.
26368# It is not useful on other systems.  If it contains results you don't
26369# want to keep, you may remove or edit it.
26370#
26371# config.status only pays attention to the cache file if you give it
26372# the --recheck option to rerun configure.
26373#
26374# `ac_cv_env_foo' variables (set or unset) will be overridden when
26375# loading this file, other *unset* `ac_cv_foo' will be assigned the
26376# following values.
26377
26378_ACEOF
26379
26380# The following way of writing the cache mishandles newlines in values,
26381# but we know of no workaround that is simple, portable, and efficient.
26382# So, we kill variables containing newlines.
26383# Ultrix sh set writes to stderr and can't be redirected directly,
26384# and sets the high bit in the cache file unless we assign to the vars.
26385(
26386  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26387    eval ac_val=\$$ac_var
26388    case $ac_val in #(
26389    *${as_nl}*)
26390      case $ac_var in #(
26391      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26393      esac
26394      case $ac_var in #(
26395      _ | IFS | as_nl) ;; #(
26396      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26397      *) { eval $ac_var=; unset $ac_var;} ;;
26398      esac ;;
26399    esac
26400  done
26401
26402  (set) 2>&1 |
26403    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26404    *${as_nl}ac_space=\ *)
26405      # `set' does not quote correctly, so add quotes: double-quote
26406      # substitution turns \\\\ into \\, and sed turns \\ into \.
26407      sed -n \
26408	"s/'/'\\\\''/g;
26409	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26410      ;; #(
26411    *)
26412      # `set' quotes correctly as required by POSIX, so do not add quotes.
26413      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26414      ;;
26415    esac |
26416    sort
26417) |
26418  sed '
26419     /^ac_cv_env_/b end
26420     t clear
26421     :clear
26422     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26423     t end
26424     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26425     :end' >>confcache
26426if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26427  if test -w "$cache_file"; then
26428    if test "x$cache_file" != "x/dev/null"; then
26429      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26430$as_echo "$as_me: updating cache $cache_file" >&6;}
26431      if test ! -f "$cache_file" || test -h "$cache_file"; then
26432	cat confcache >"$cache_file"
26433      else
26434        case $cache_file in #(
26435        */* | ?:*)
26436	  mv -f confcache "$cache_file"$$ &&
26437	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26438        *)
26439	  mv -f confcache "$cache_file" ;;
26440	esac
26441      fi
26442    fi
26443  else
26444    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26445$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26446  fi
26447fi
26448rm -f confcache
26449
26450test "x$prefix" = xNONE && prefix=$ac_default_prefix
26451# Let make expand exec_prefix.
26452test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26453
26454DEFS=-DHAVE_CONFIG_H
26455
26456ac_libobjs=
26457ac_ltlibobjs=
26458U=
26459for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26460  # 1. Remove the extension, and $U if already installed.
26461  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26462  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26463  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26464  #    will be set to the directory where LIBOBJS objects are built.
26465  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26466  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26467done
26468LIBOBJS=$ac_libobjs
26469
26470LTLIBOBJS=$ac_ltlibobjs
26471
26472
26473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26474$as_echo_n "checking that generated files are newer than configure... " >&6; }
26475   if test -n "$am_sleep_pid"; then
26476     # Hide warnings about reused PIDs.
26477     wait $am_sleep_pid 2>/dev/null
26478   fi
26479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26480$as_echo "done" >&6; }
26481 if test -n "$EXEEXT"; then
26482  am__EXEEXT_TRUE=
26483  am__EXEEXT_FALSE='#'
26484else
26485  am__EXEEXT_TRUE='#'
26486  am__EXEEXT_FALSE=
26487fi
26488
26489if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26490  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26491Usually this means the macro was only invoked conditionally." "$LINENO" 5
26492fi
26493if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26494  as_fn_error $? "conditional \"AMDEP\" was never defined.
26495Usually this means the macro was only invoked conditionally." "$LINENO" 5
26496fi
26497if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26498  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26499Usually this means the macro was only invoked conditionally." "$LINENO" 5
26500fi
26501if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26502  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26503Usually this means the macro was only invoked conditionally." "$LINENO" 5
26504fi
26505if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26506  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26507Usually this means the macro was only invoked conditionally." "$LINENO" 5
26508fi
26509if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
26510  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
26511Usually this means the macro was only invoked conditionally." "$LINENO" 5
26512fi
26513if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
26514  as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
26515Usually this means the macro was only invoked conditionally." "$LINENO" 5
26516fi
26517if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
26518  as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
26519Usually this means the macro was only invoked conditionally." "$LINENO" 5
26520fi
26521if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
26522  as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
26523Usually this means the macro was only invoked conditionally." "$LINENO" 5
26524fi
26525if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
26526  as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
26527Usually this means the macro was only invoked conditionally." "$LINENO" 5
26528fi
26529if test -z "${HAVE_MACOS_SYSTEM_TRUE}" && test -z "${HAVE_MACOS_SYSTEM_FALSE}"; then
26530  as_fn_error $? "conditional \"HAVE_MACOS_SYSTEM\" was never defined.
26531Usually this means the macro was only invoked conditionally." "$LINENO" 5
26532fi
26533if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
26534  as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
26535Usually this means the macro was only invoked conditionally." "$LINENO" 5
26536fi
26537if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26538  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26539Usually this means the macro was only invoked conditionally." "$LINENO" 5
26540fi
26541if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
26542  as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
26543Usually this means the macro was only invoked conditionally." "$LINENO" 5
26544fi
26545if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
26546  as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
26547Usually this means the macro was only invoked conditionally." "$LINENO" 5
26548fi
26549if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
26550  as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
26551Usually this means the macro was only invoked conditionally." "$LINENO" 5
26552fi
26553if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
26554  as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
26555Usually this means the macro was only invoked conditionally." "$LINENO" 5
26556fi
26557if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
26558  as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
26559Usually this means the macro was only invoked conditionally." "$LINENO" 5
26560fi
26561if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
26562  as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
26563Usually this means the macro was only invoked conditionally." "$LINENO" 5
26564fi
26565
26566: "${CONFIG_STATUS=./config.status}"
26567ac_write_fail=0
26568ac_clean_files_save=$ac_clean_files
26569ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26570{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26571$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26572as_write_fail=0
26573cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26574#! $SHELL
26575# Generated by $as_me.
26576# Run this file to recreate the current configuration.
26577# Compiler output produced by configure, useful for debugging
26578# configure, is in config.log if it exists.
26579
26580debug=false
26581ac_cs_recheck=false
26582ac_cs_silent=false
26583
26584SHELL=\${CONFIG_SHELL-$SHELL}
26585export SHELL
26586_ASEOF
26587cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26588## -------------------- ##
26589## M4sh Initialization. ##
26590## -------------------- ##
26591
26592# Be more Bourne compatible
26593DUALCASE=1; export DUALCASE # for MKS sh
26594if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26595  emulate sh
26596  NULLCMD=:
26597  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26598  # is contrary to our usage.  Disable this feature.
26599  alias -g '${1+"$@"}'='"$@"'
26600  setopt NO_GLOB_SUBST
26601else
26602  case `(set -o) 2>/dev/null` in #(
26603  *posix*) :
26604    set -o posix ;; #(
26605  *) :
26606     ;;
26607esac
26608fi
26609
26610
26611as_nl='
26612'
26613export as_nl
26614# Printing a long string crashes Solaris 7 /usr/bin/printf.
26615as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26616as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26617as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26618# Prefer a ksh shell builtin over an external printf program on Solaris,
26619# but without wasting forks for bash or zsh.
26620if test -z "$BASH_VERSION$ZSH_VERSION" \
26621    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26622  as_echo='print -r --'
26623  as_echo_n='print -rn --'
26624elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26625  as_echo='printf %s\n'
26626  as_echo_n='printf %s'
26627else
26628  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26629    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26630    as_echo_n='/usr/ucb/echo -n'
26631  else
26632    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26633    as_echo_n_body='eval
26634      arg=$1;
26635      case $arg in #(
26636      *"$as_nl"*)
26637	expr "X$arg" : "X\\(.*\\)$as_nl";
26638	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26639      esac;
26640      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26641    '
26642    export as_echo_n_body
26643    as_echo_n='sh -c $as_echo_n_body as_echo'
26644  fi
26645  export as_echo_body
26646  as_echo='sh -c $as_echo_body as_echo'
26647fi
26648
26649# The user is always right.
26650if test "${PATH_SEPARATOR+set}" != set; then
26651  PATH_SEPARATOR=:
26652  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26653    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26654      PATH_SEPARATOR=';'
26655  }
26656fi
26657
26658
26659# IFS
26660# We need space, tab and new line, in precisely that order.  Quoting is
26661# there to prevent editors from complaining about space-tab.
26662# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26663# splitting by setting IFS to empty value.)
26664IFS=" ""	$as_nl"
26665
26666# Find who we are.  Look in the path if we contain no directory separator.
26667as_myself=
26668case $0 in #((
26669  *[\\/]* ) as_myself=$0 ;;
26670  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26671for as_dir in $PATH
26672do
26673  IFS=$as_save_IFS
26674  test -z "$as_dir" && as_dir=.
26675    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26676  done
26677IFS=$as_save_IFS
26678
26679     ;;
26680esac
26681# We did not find ourselves, most probably we were run as `sh COMMAND'
26682# in which case we are not to be found in the path.
26683if test "x$as_myself" = x; then
26684  as_myself=$0
26685fi
26686if test ! -f "$as_myself"; then
26687  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26688  exit 1
26689fi
26690
26691# Unset variables that we do not need and which cause bugs (e.g. in
26692# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26693# suppresses any "Segmentation fault" message there.  '((' could
26694# trigger a bug in pdksh 5.2.14.
26695for as_var in BASH_ENV ENV MAIL MAILPATH
26696do eval test x\${$as_var+set} = xset \
26697  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26698done
26699PS1='$ '
26700PS2='> '
26701PS4='+ '
26702
26703# NLS nuisances.
26704LC_ALL=C
26705export LC_ALL
26706LANGUAGE=C
26707export LANGUAGE
26708
26709# CDPATH.
26710(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26711
26712
26713# as_fn_error STATUS ERROR [LINENO LOG_FD]
26714# ----------------------------------------
26715# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26716# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26717# script with STATUS, using 1 if that was 0.
26718as_fn_error ()
26719{
26720  as_status=$1; test $as_status -eq 0 && as_status=1
26721  if test "$4"; then
26722    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26723    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26724  fi
26725  $as_echo "$as_me: error: $2" >&2
26726  as_fn_exit $as_status
26727} # as_fn_error
26728
26729
26730# as_fn_set_status STATUS
26731# -----------------------
26732# Set $? to STATUS, without forking.
26733as_fn_set_status ()
26734{
26735  return $1
26736} # as_fn_set_status
26737
26738# as_fn_exit STATUS
26739# -----------------
26740# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26741as_fn_exit ()
26742{
26743  set +e
26744  as_fn_set_status $1
26745  exit $1
26746} # as_fn_exit
26747
26748# as_fn_unset VAR
26749# ---------------
26750# Portably unset VAR.
26751as_fn_unset ()
26752{
26753  { eval $1=; unset $1;}
26754}
26755as_unset=as_fn_unset
26756# as_fn_append VAR VALUE
26757# ----------------------
26758# Append the text in VALUE to the end of the definition contained in VAR. Take
26759# advantage of any shell optimizations that allow amortized linear growth over
26760# repeated appends, instead of the typical quadratic growth present in naive
26761# implementations.
26762if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26763  eval 'as_fn_append ()
26764  {
26765    eval $1+=\$2
26766  }'
26767else
26768  as_fn_append ()
26769  {
26770    eval $1=\$$1\$2
26771  }
26772fi # as_fn_append
26773
26774# as_fn_arith ARG...
26775# ------------------
26776# Perform arithmetic evaluation on the ARGs, and store the result in the
26777# global $as_val. Take advantage of shells that can avoid forks. The arguments
26778# must be portable across $(()) and expr.
26779if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26780  eval 'as_fn_arith ()
26781  {
26782    as_val=$(( $* ))
26783  }'
26784else
26785  as_fn_arith ()
26786  {
26787    as_val=`expr "$@" || test $? -eq 1`
26788  }
26789fi # as_fn_arith
26790
26791
26792if expr a : '\(a\)' >/dev/null 2>&1 &&
26793   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26794  as_expr=expr
26795else
26796  as_expr=false
26797fi
26798
26799if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26800  as_basename=basename
26801else
26802  as_basename=false
26803fi
26804
26805if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26806  as_dirname=dirname
26807else
26808  as_dirname=false
26809fi
26810
26811as_me=`$as_basename -- "$0" ||
26812$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26813	 X"$0" : 'X\(//\)$' \| \
26814	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26815$as_echo X/"$0" |
26816    sed '/^.*\/\([^/][^/]*\)\/*$/{
26817	    s//\1/
26818	    q
26819	  }
26820	  /^X\/\(\/\/\)$/{
26821	    s//\1/
26822	    q
26823	  }
26824	  /^X\/\(\/\).*/{
26825	    s//\1/
26826	    q
26827	  }
26828	  s/.*/./; q'`
26829
26830# Avoid depending upon Character Ranges.
26831as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26832as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26833as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26834as_cr_digits='0123456789'
26835as_cr_alnum=$as_cr_Letters$as_cr_digits
26836
26837ECHO_C= ECHO_N= ECHO_T=
26838case `echo -n x` in #(((((
26839-n*)
26840  case `echo 'xy\c'` in
26841  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
26842  xy)  ECHO_C='\c';;
26843  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26844       ECHO_T='	';;
26845  esac;;
26846*)
26847  ECHO_N='-n';;
26848esac
26849
26850rm -f conf$$ conf$$.exe conf$$.file
26851if test -d conf$$.dir; then
26852  rm -f conf$$.dir/conf$$.file
26853else
26854  rm -f conf$$.dir
26855  mkdir conf$$.dir 2>/dev/null
26856fi
26857if (echo >conf$$.file) 2>/dev/null; then
26858  if ln -s conf$$.file conf$$ 2>/dev/null; then
26859    as_ln_s='ln -s'
26860    # ... but there are two gotchas:
26861    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26862    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26863    # In both cases, we have to default to `cp -pR'.
26864    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26865      as_ln_s='cp -pR'
26866  elif ln conf$$.file conf$$ 2>/dev/null; then
26867    as_ln_s=ln
26868  else
26869    as_ln_s='cp -pR'
26870  fi
26871else
26872  as_ln_s='cp -pR'
26873fi
26874rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26875rmdir conf$$.dir 2>/dev/null
26876
26877
26878# as_fn_mkdir_p
26879# -------------
26880# Create "$as_dir" as a directory, including parents if necessary.
26881as_fn_mkdir_p ()
26882{
26883
26884  case $as_dir in #(
26885  -*) as_dir=./$as_dir;;
26886  esac
26887  test -d "$as_dir" || eval $as_mkdir_p || {
26888    as_dirs=
26889    while :; do
26890      case $as_dir in #(
26891      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26892      *) as_qdir=$as_dir;;
26893      esac
26894      as_dirs="'$as_qdir' $as_dirs"
26895      as_dir=`$as_dirname -- "$as_dir" ||
26896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26897	 X"$as_dir" : 'X\(//\)[^/]' \| \
26898	 X"$as_dir" : 'X\(//\)$' \| \
26899	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26900$as_echo X"$as_dir" |
26901    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26902	    s//\1/
26903	    q
26904	  }
26905	  /^X\(\/\/\)[^/].*/{
26906	    s//\1/
26907	    q
26908	  }
26909	  /^X\(\/\/\)$/{
26910	    s//\1/
26911	    q
26912	  }
26913	  /^X\(\/\).*/{
26914	    s//\1/
26915	    q
26916	  }
26917	  s/.*/./; q'`
26918      test -d "$as_dir" && break
26919    done
26920    test -z "$as_dirs" || eval "mkdir $as_dirs"
26921  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26922
26923
26924} # as_fn_mkdir_p
26925if mkdir -p . 2>/dev/null; then
26926  as_mkdir_p='mkdir -p "$as_dir"'
26927else
26928  test -d ./-p && rmdir ./-p
26929  as_mkdir_p=false
26930fi
26931
26932
26933# as_fn_executable_p FILE
26934# -----------------------
26935# Test if FILE is an executable regular file.
26936as_fn_executable_p ()
26937{
26938  test -f "$1" && test -x "$1"
26939} # as_fn_executable_p
26940as_test_x='test -x'
26941as_executable_p=as_fn_executable_p
26942
26943# Sed expression to map a string onto a valid CPP name.
26944as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26945
26946# Sed expression to map a string onto a valid variable name.
26947as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26948
26949
26950exec 6>&1
26951## ----------------------------------- ##
26952## Main body of $CONFIG_STATUS script. ##
26953## ----------------------------------- ##
26954_ASEOF
26955test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26956
26957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26958# Save the log message, to keep $0 and so on meaningful, and to
26959# report actual input values of CONFIG_FILES etc. instead of their
26960# values after options handling.
26961ac_log="
26962This file was extended by gpgme $as_me 1.15.1, which was
26963generated by GNU Autoconf 2.69.  Invocation command line was
26964
26965  CONFIG_FILES    = $CONFIG_FILES
26966  CONFIG_HEADERS  = $CONFIG_HEADERS
26967  CONFIG_LINKS    = $CONFIG_LINKS
26968  CONFIG_COMMANDS = $CONFIG_COMMANDS
26969  $ $0 $@
26970
26971on `(hostname || uname -n) 2>/dev/null | sed 1q`
26972"
26973
26974_ACEOF
26975
26976case $ac_config_files in *"
26977"*) set x $ac_config_files; shift; ac_config_files=$*;;
26978esac
26979
26980case $ac_config_headers in *"
26981"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26982esac
26983
26984
26985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26986# Files that config.status was made for.
26987config_files="$ac_config_files"
26988config_headers="$ac_config_headers"
26989config_commands="$ac_config_commands"
26990
26991_ACEOF
26992
26993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26994ac_cs_usage="\
26995\`$as_me' instantiates files and other configuration actions
26996from templates according to the current configuration.  Unless the files
26997and actions are specified as TAGs, all are instantiated by default.
26998
26999Usage: $0 [OPTION]... [TAG]...
27000
27001  -h, --help       print this help, then exit
27002  -V, --version    print version number and configuration settings, then exit
27003      --config     print configuration, then exit
27004  -q, --quiet, --silent
27005                   do not print progress messages
27006  -d, --debug      don't remove temporary files
27007      --recheck    update $as_me by reconfiguring in the same conditions
27008      --file=FILE[:TEMPLATE]
27009                   instantiate the configuration file FILE
27010      --header=FILE[:TEMPLATE]
27011                   instantiate the configuration header FILE
27012
27013Configuration files:
27014$config_files
27015
27016Configuration headers:
27017$config_headers
27018
27019Configuration commands:
27020$config_commands
27021
27022Report bugs to <https://bugs.gnupg.org>."
27023
27024_ACEOF
27025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27026ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27027ac_cs_version="\\
27028gpgme config.status 1.15.1
27029configured by $0, generated by GNU Autoconf 2.69,
27030  with options \\"\$ac_cs_config\\"
27031
27032Copyright (C) 2012 Free Software Foundation, Inc.
27033This config.status script is free software; the Free Software Foundation
27034gives unlimited permission to copy, distribute and modify it."
27035
27036ac_pwd='$ac_pwd'
27037srcdir='$srcdir'
27038INSTALL='$INSTALL'
27039MKDIR_P='$MKDIR_P'
27040AWK='$AWK'
27041test -n "\$AWK" || AWK=awk
27042_ACEOF
27043
27044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27045# The default lists apply if the user does not specify any file.
27046ac_need_defaults=:
27047while test $# != 0
27048do
27049  case $1 in
27050  --*=?*)
27051    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27052    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27053    ac_shift=:
27054    ;;
27055  --*=)
27056    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27057    ac_optarg=
27058    ac_shift=:
27059    ;;
27060  *)
27061    ac_option=$1
27062    ac_optarg=$2
27063    ac_shift=shift
27064    ;;
27065  esac
27066
27067  case $ac_option in
27068  # Handling of the options.
27069  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27070    ac_cs_recheck=: ;;
27071  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27072    $as_echo "$ac_cs_version"; exit ;;
27073  --config | --confi | --conf | --con | --co | --c )
27074    $as_echo "$ac_cs_config"; exit ;;
27075  --debug | --debu | --deb | --de | --d | -d )
27076    debug=: ;;
27077  --file | --fil | --fi | --f )
27078    $ac_shift
27079    case $ac_optarg in
27080    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27081    '') as_fn_error $? "missing file argument" ;;
27082    esac
27083    as_fn_append CONFIG_FILES " '$ac_optarg'"
27084    ac_need_defaults=false;;
27085  --header | --heade | --head | --hea )
27086    $ac_shift
27087    case $ac_optarg in
27088    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27089    esac
27090    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27091    ac_need_defaults=false;;
27092  --he | --h)
27093    # Conflict between --help and --header
27094    as_fn_error $? "ambiguous option: \`$1'
27095Try \`$0 --help' for more information.";;
27096  --help | --hel | -h )
27097    $as_echo "$ac_cs_usage"; exit ;;
27098  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27099  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27100    ac_cs_silent=: ;;
27101
27102  # This is an error.
27103  -*) as_fn_error $? "unrecognized option: \`$1'
27104Try \`$0 --help' for more information." ;;
27105
27106  *) as_fn_append ac_config_targets " $1"
27107     ac_need_defaults=false ;;
27108
27109  esac
27110  shift
27111done
27112
27113ac_configure_extra_args=
27114
27115if $ac_cs_silent; then
27116  exec 6>/dev/null
27117  ac_configure_extra_args="$ac_configure_extra_args --silent"
27118fi
27119
27120_ACEOF
27121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27122if \$ac_cs_recheck; then
27123  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27124  shift
27125  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27126  CONFIG_SHELL='$SHELL'
27127  export CONFIG_SHELL
27128  exec "\$@"
27129fi
27130
27131_ACEOF
27132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27133exec 5>>config.log
27134{
27135  echo
27136  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27137## Running $as_me. ##
27138_ASBOX
27139  $as_echo "$ac_log"
27140} >&5
27141
27142_ACEOF
27143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27144#
27145# INIT-COMMANDS
27146#
27147AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27148
27149
27150# The HP-UX ksh and POSIX shell print the target directory to stdout
27151# if CDPATH is set.
27152(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27153
27154sed_quote_subst='$sed_quote_subst'
27155double_quote_subst='$double_quote_subst'
27156delay_variable_subst='$delay_variable_subst'
27157macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27158macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27159AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27160DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27161OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27162enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27163enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27164pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27165enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27166SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27167ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27168PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27169host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27170host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27171host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27172build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27173build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27174build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27175SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27176Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27177GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27178EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27179FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27180LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27181NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27182LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27183max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27184ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27185exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27186lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27187lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27188lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27189lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27190lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27191reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27192reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27193deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27194file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27195file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27196want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27197sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27198AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27199AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27200archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27201STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27202RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27203old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27204old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27205old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27206lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27207CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27208CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27209compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27210GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27211lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27212lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27213lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27214lt_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"`'
27215nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27216lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27217objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27218MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27219lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27220lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27221lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27222lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27223lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27224need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27225MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27226DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27227NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27228LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27229OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27230OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27231libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27232shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27233extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27234archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27235enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27236export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27237whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27238compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27239old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27240old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27241archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27242archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27243module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27244module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27245with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27246allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27247no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27248hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27249hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27250hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27251hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27252hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27253hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27254hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27255inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27256link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27257always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27258export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27259exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27260include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27261prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27262postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27263file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27264variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27265need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27266need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27267version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27268runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27269shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27270shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27271libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27272library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27273soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27274install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27275postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27276postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27277finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27278finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27279hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27280sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27281sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27282hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27283enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27284enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27285enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27286old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27287striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27288compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27289predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27290postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27291predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27292postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27293compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27294LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27295LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27296reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27297reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27298reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27299reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27300old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27301old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27302compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27303compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27304GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27305GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27306lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27307lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27308lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27309lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27310lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27311lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27312lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27313lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27314lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27315lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27316archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27317archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27318enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27319enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27320export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27321export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27322whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27323whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27324compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27325compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27326old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27327old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27328old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27329old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27330archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27331archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27332archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27333archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27334module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27335module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27336module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27337module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27338with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27339with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27340allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27341allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27342no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27343no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27344hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27345hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27346hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27347hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27348hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27349hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27350hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27351hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27352hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27353hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27354hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27355hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27356hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27357hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27358inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27359inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27360link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27361link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27362always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27363always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27364export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27365export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27366exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27367exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27368include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27369include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27370prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27371prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27372postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27373postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27374file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27375file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27376hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27377hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27378compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27379compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27380predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27381predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27382postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27383postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27384predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27385predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27386postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27387postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27388compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27389compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27390
27391LTCC='$LTCC'
27392LTCFLAGS='$LTCFLAGS'
27393compiler='$compiler_DEFAULT'
27394
27395# A function that is used when there is no print builtin or printf.
27396func_fallback_echo ()
27397{
27398  eval 'cat <<_LTECHO_EOF
27399\$1
27400_LTECHO_EOF'
27401}
27402
27403# Quote evaled strings.
27404for var in AS \
27405DLLTOOL \
27406OBJDUMP \
27407SHELL \
27408ECHO \
27409PATH_SEPARATOR \
27410SED \
27411GREP \
27412EGREP \
27413FGREP \
27414LD \
27415NM \
27416LN_S \
27417lt_SP2NL \
27418lt_NL2SP \
27419reload_flag \
27420deplibs_check_method \
27421file_magic_cmd \
27422file_magic_glob \
27423want_nocaseglob \
27424sharedlib_from_linklib_cmd \
27425AR \
27426AR_FLAGS \
27427archiver_list_spec \
27428STRIP \
27429RANLIB \
27430CC \
27431CFLAGS \
27432compiler \
27433lt_cv_sys_global_symbol_pipe \
27434lt_cv_sys_global_symbol_to_cdecl \
27435lt_cv_sys_global_symbol_to_c_name_address \
27436lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27437nm_file_list_spec \
27438lt_prog_compiler_no_builtin_flag \
27439lt_prog_compiler_pic \
27440lt_prog_compiler_wl \
27441lt_prog_compiler_static \
27442lt_cv_prog_compiler_c_o \
27443need_locks \
27444MANIFEST_TOOL \
27445DSYMUTIL \
27446NMEDIT \
27447LIPO \
27448OTOOL \
27449OTOOL64 \
27450shrext_cmds \
27451export_dynamic_flag_spec \
27452whole_archive_flag_spec \
27453compiler_needs_object \
27454with_gnu_ld \
27455allow_undefined_flag \
27456no_undefined_flag \
27457hardcode_libdir_flag_spec \
27458hardcode_libdir_separator \
27459exclude_expsyms \
27460include_expsyms \
27461file_list_spec \
27462variables_saved_for_relink \
27463libname_spec \
27464library_names_spec \
27465soname_spec \
27466install_override_mode \
27467finish_eval \
27468old_striplib \
27469striplib \
27470compiler_lib_search_dirs \
27471predep_objects \
27472postdep_objects \
27473predeps \
27474postdeps \
27475compiler_lib_search_path \
27476LD_CXX \
27477LD_RC \
27478reload_flag_CXX \
27479reload_flag_RC \
27480compiler_CXX \
27481compiler_RC \
27482lt_prog_compiler_no_builtin_flag_CXX \
27483lt_prog_compiler_no_builtin_flag_RC \
27484lt_prog_compiler_pic_CXX \
27485lt_prog_compiler_pic_RC \
27486lt_prog_compiler_wl_CXX \
27487lt_prog_compiler_wl_RC \
27488lt_prog_compiler_static_CXX \
27489lt_prog_compiler_static_RC \
27490lt_cv_prog_compiler_c_o_CXX \
27491lt_cv_prog_compiler_c_o_RC \
27492export_dynamic_flag_spec_CXX \
27493export_dynamic_flag_spec_RC \
27494whole_archive_flag_spec_CXX \
27495whole_archive_flag_spec_RC \
27496compiler_needs_object_CXX \
27497compiler_needs_object_RC \
27498with_gnu_ld_CXX \
27499with_gnu_ld_RC \
27500allow_undefined_flag_CXX \
27501allow_undefined_flag_RC \
27502no_undefined_flag_CXX \
27503no_undefined_flag_RC \
27504hardcode_libdir_flag_spec_CXX \
27505hardcode_libdir_flag_spec_RC \
27506hardcode_libdir_separator_CXX \
27507hardcode_libdir_separator_RC \
27508exclude_expsyms_CXX \
27509exclude_expsyms_RC \
27510include_expsyms_CXX \
27511include_expsyms_RC \
27512file_list_spec_CXX \
27513file_list_spec_RC \
27514compiler_lib_search_dirs_CXX \
27515compiler_lib_search_dirs_RC \
27516predep_objects_CXX \
27517predep_objects_RC \
27518postdep_objects_CXX \
27519postdep_objects_RC \
27520predeps_CXX \
27521predeps_RC \
27522postdeps_CXX \
27523postdeps_RC \
27524compiler_lib_search_path_CXX \
27525compiler_lib_search_path_RC; do
27526    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27527    *[\\\\\\\`\\"\\\$]*)
27528      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27529      ;;
27530    *)
27531      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27532      ;;
27533    esac
27534done
27535
27536# Double-quote double-evaled strings.
27537for var in reload_cmds \
27538old_postinstall_cmds \
27539old_postuninstall_cmds \
27540old_archive_cmds \
27541extract_expsyms_cmds \
27542old_archive_from_new_cmds \
27543old_archive_from_expsyms_cmds \
27544archive_cmds \
27545archive_expsym_cmds \
27546module_cmds \
27547module_expsym_cmds \
27548export_symbols_cmds \
27549prelink_cmds \
27550postlink_cmds \
27551postinstall_cmds \
27552postuninstall_cmds \
27553finish_cmds \
27554sys_lib_search_path_spec \
27555sys_lib_dlsearch_path_spec \
27556reload_cmds_CXX \
27557reload_cmds_RC \
27558old_archive_cmds_CXX \
27559old_archive_cmds_RC \
27560old_archive_from_new_cmds_CXX \
27561old_archive_from_new_cmds_RC \
27562old_archive_from_expsyms_cmds_CXX \
27563old_archive_from_expsyms_cmds_RC \
27564archive_cmds_CXX \
27565archive_cmds_RC \
27566archive_expsym_cmds_CXX \
27567archive_expsym_cmds_RC \
27568module_cmds_CXX \
27569module_cmds_RC \
27570module_expsym_cmds_CXX \
27571module_expsym_cmds_RC \
27572export_symbols_cmds_CXX \
27573export_symbols_cmds_RC \
27574prelink_cmds_CXX \
27575prelink_cmds_RC \
27576postlink_cmds_CXX \
27577postlink_cmds_RC; do
27578    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27579    *[\\\\\\\`\\"\\\$]*)
27580      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27581      ;;
27582    *)
27583      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27584      ;;
27585    esac
27586done
27587
27588ac_aux_dir='$ac_aux_dir'
27589xsi_shell='$xsi_shell'
27590lt_shell_append='$lt_shell_append'
27591
27592# See if we are running on zsh, and set the options which allow our
27593# commands through without removal of \ escapes INIT.
27594if test -n "\${ZSH_VERSION+set}" ; then
27595   setopt NO_GLOB_SUBST
27596fi
27597
27598
27599    PACKAGE='$PACKAGE'
27600    VERSION='$VERSION'
27601    TIMESTAMP='$TIMESTAMP'
27602    RM='$RM'
27603    ofile='$ofile'
27604
27605
27606
27607
27608
27609
27610
27611
27612_ACEOF
27613
27614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27615
27616# Handling of arguments.
27617for ac_config_target in $ac_config_targets
27618do
27619  case $ac_config_target in
27620    "conf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS conf/config.h" ;;
27621    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27622    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27623    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27624    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27625    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27626    "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
27627    "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
27628    "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
27629    "tests/json/Makefile") CONFIG_FILES="$CONFIG_FILES tests/json/Makefile" ;;
27630    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27631    "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
27632    "src/gpgme.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme.pc" ;;
27633    "src/gpgme-glib.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme-glib.pc" ;;
27634    "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
27635    "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
27636    "lang/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/Makefile" ;;
27637    "lang/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/Makefile" ;;
27638    "lang/cpp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/tests/Makefile" ;;
27639    "lang/cpp/src/GpgmeppConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig-w32.cmake.in" ;;
27640    "lang/cpp/src/GpgmeppConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig.cmake.in" ;;
27641    "lang/cpp/src/GpgmeppConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfigVersion.cmake" ;;
27642    "lang/cpp/src/gpgmepp_version.h") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/gpgmepp_version.h" ;;
27643    "lang/qt/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/Makefile" ;;
27644    "lang/qt/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/src/Makefile" ;;
27645    "lang/qt/src/QGpgmeConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig-w32.cmake.in" ;;
27646    "lang/qt/src/QGpgmeConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig.cmake.in" ;;
27647    "lang/qt/src/QGpgmeConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfigVersion.cmake" ;;
27648    "lang/qt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/tests/Makefile" ;;
27649    "lang/qt/src/qgpgme_version.h") CONFIG_FILES="$CONFIG_FILES lang/qt/src/qgpgme_version.h" ;;
27650    "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
27651    "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
27652    "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
27653    "lang/qt/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Doxyfile" ;;
27654    "lang/js/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/Makefile" ;;
27655    "lang/js/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/src/Makefile" ;;
27656    "lang/js/BrowserTestExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/BrowserTestExtension/Makefile" ;;
27657    "lang/js/DemoExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/DemoExtension/Makefile" ;;
27658    "lang/qt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Makefile" ;;
27659    "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
27660    "lang/python/version.py") CONFIG_FILES="$CONFIG_FILES lang/python/version.py" ;;
27661    "lang/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/tests/Makefile" ;;
27662    "lang/python/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/src/Makefile" ;;
27663    "lang/python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/examples/Makefile" ;;
27664    "lang/python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/doc/Makefile" ;;
27665    "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
27666
27667  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27668  esac
27669done
27670
27671
27672# If the user did not use the arguments to specify the items to instantiate,
27673# then the envvar interface is used.  Set only those that are not.
27674# We use the long form for the default assignment because of an extremely
27675# bizarre bug on SunOS 4.1.3.
27676if $ac_need_defaults; then
27677  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27678  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27679  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27680fi
27681
27682# Have a temporary directory for convenience.  Make it in the build tree
27683# simply because there is no reason against having it here, and in addition,
27684# creating and moving files from /tmp can sometimes cause problems.
27685# Hook for its removal unless debugging.
27686# Note that there is a small window in which the directory will not be cleaned:
27687# after its creation but before its name has been assigned to `$tmp'.
27688$debug ||
27689{
27690  tmp= ac_tmp=
27691  trap 'exit_status=$?
27692  : "${ac_tmp:=$tmp}"
27693  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27694' 0
27695  trap 'as_fn_exit 1' 1 2 13 15
27696}
27697# Create a (secure) tmp directory for tmp files.
27698
27699{
27700  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27701  test -d "$tmp"
27702}  ||
27703{
27704  tmp=./conf$$-$RANDOM
27705  (umask 077 && mkdir "$tmp")
27706} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27707ac_tmp=$tmp
27708
27709# Set up the scripts for CONFIG_FILES section.
27710# No need to generate them if there are no CONFIG_FILES.
27711# This happens for instance with `./config.status config.h'.
27712if test -n "$CONFIG_FILES"; then
27713
27714
27715ac_cr=`echo X | tr X '\015'`
27716# On cygwin, bash can eat \r inside `` if the user requested igncr.
27717# But we know of no other shell where ac_cr would be empty at this
27718# point, so we can use a bashism as a fallback.
27719if test "x$ac_cr" = x; then
27720  eval ac_cr=\$\'\\r\'
27721fi
27722ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27723if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27724  ac_cs_awk_cr='\\r'
27725else
27726  ac_cs_awk_cr=$ac_cr
27727fi
27728
27729echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27730_ACEOF
27731
27732
27733{
27734  echo "cat >conf$$subs.awk <<_ACEOF" &&
27735  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27736  echo "_ACEOF"
27737} >conf$$subs.sh ||
27738  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27739ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27740ac_delim='%!_!# '
27741for ac_last_try in false false false false false :; do
27742  . ./conf$$subs.sh ||
27743    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27744
27745  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27746  if test $ac_delim_n = $ac_delim_num; then
27747    break
27748  elif $ac_last_try; then
27749    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27750  else
27751    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27752  fi
27753done
27754rm -f conf$$subs.sh
27755
27756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27757cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27758_ACEOF
27759sed -n '
27760h
27761s/^/S["/; s/!.*/"]=/
27762p
27763g
27764s/^[^!]*!//
27765:repl
27766t repl
27767s/'"$ac_delim"'$//
27768t delim
27769:nl
27770h
27771s/\(.\{148\}\)..*/\1/
27772t more1
27773s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27774p
27775n
27776b repl
27777:more1
27778s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27779p
27780g
27781s/.\{148\}//
27782t nl
27783:delim
27784h
27785s/\(.\{148\}\)..*/\1/
27786t more2
27787s/["\\]/\\&/g; s/^/"/; s/$/"/
27788p
27789b
27790:more2
27791s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27792p
27793g
27794s/.\{148\}//
27795t delim
27796' <conf$$subs.awk | sed '
27797/^[^""]/{
27798  N
27799  s/\n//
27800}
27801' >>$CONFIG_STATUS || ac_write_fail=1
27802rm -f conf$$subs.awk
27803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27804_ACAWK
27805cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27806  for (key in S) S_is_set[key] = 1
27807  FS = ""
27808
27809}
27810{
27811  line = $ 0
27812  nfields = split(line, field, "@")
27813  substed = 0
27814  len = length(field[1])
27815  for (i = 2; i < nfields; i++) {
27816    key = field[i]
27817    keylen = length(key)
27818    if (S_is_set[key]) {
27819      value = S[key]
27820      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27821      len += length(value) + length(field[++i])
27822      substed = 1
27823    } else
27824      len += 1 + keylen
27825  }
27826
27827  print line
27828}
27829
27830_ACAWK
27831_ACEOF
27832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27833if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27834  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27835else
27836  cat
27837fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27838  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27839_ACEOF
27840
27841# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27842# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27843# trailing colons and then remove the whole line if VPATH becomes empty
27844# (actually we leave an empty line to preserve line numbers).
27845if test "x$srcdir" = x.; then
27846  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27847h
27848s///
27849s/^/:/
27850s/[	 ]*$/:/
27851s/:\$(srcdir):/:/g
27852s/:\${srcdir}:/:/g
27853s/:@srcdir@:/:/g
27854s/^:*//
27855s/:*$//
27856x
27857s/\(=[	 ]*\).*/\1/
27858G
27859s/\n//
27860s/^[^=]*=[	 ]*$//
27861}'
27862fi
27863
27864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27865fi # test -n "$CONFIG_FILES"
27866
27867# Set up the scripts for CONFIG_HEADERS section.
27868# No need to generate them if there are no CONFIG_HEADERS.
27869# This happens for instance with `./config.status Makefile'.
27870if test -n "$CONFIG_HEADERS"; then
27871cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27872BEGIN {
27873_ACEOF
27874
27875# Transform confdefs.h into an awk script `defines.awk', embedded as
27876# here-document in config.status, that substitutes the proper values into
27877# config.h.in to produce config.h.
27878
27879# Create a delimiter string that does not exist in confdefs.h, to ease
27880# handling of long lines.
27881ac_delim='%!_!# '
27882for ac_last_try in false false :; do
27883  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27884  if test -z "$ac_tt"; then
27885    break
27886  elif $ac_last_try; then
27887    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27888  else
27889    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27890  fi
27891done
27892
27893# For the awk script, D is an array of macro values keyed by name,
27894# likewise P contains macro parameters if any.  Preserve backslash
27895# newline sequences.
27896
27897ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27898sed -n '
27899s/.\{148\}/&'"$ac_delim"'/g
27900t rset
27901:rset
27902s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27903t def
27904d
27905:def
27906s/\\$//
27907t bsnl
27908s/["\\]/\\&/g
27909s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27910D["\1"]=" \3"/p
27911s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27912d
27913:bsnl
27914s/["\\]/\\&/g
27915s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27916D["\1"]=" \3\\\\\\n"\\/p
27917t cont
27918s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27919t cont
27920d
27921:cont
27922n
27923s/.\{148\}/&'"$ac_delim"'/g
27924t clear
27925:clear
27926s/\\$//
27927t bsnlc
27928s/["\\]/\\&/g; s/^/"/; s/$/"/p
27929d
27930:bsnlc
27931s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27932b cont
27933' <confdefs.h | sed '
27934s/'"$ac_delim"'/"\\\
27935"/g' >>$CONFIG_STATUS || ac_write_fail=1
27936
27937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27938  for (key in D) D_is_set[key] = 1
27939  FS = ""
27940}
27941/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27942  line = \$ 0
27943  split(line, arg, " ")
27944  if (arg[1] == "#") {
27945    defundef = arg[2]
27946    mac1 = arg[3]
27947  } else {
27948    defundef = substr(arg[1], 2)
27949    mac1 = arg[2]
27950  }
27951  split(mac1, mac2, "(") #)
27952  macro = mac2[1]
27953  prefix = substr(line, 1, index(line, defundef) - 1)
27954  if (D_is_set[macro]) {
27955    # Preserve the white space surrounding the "#".
27956    print prefix "define", macro P[macro] D[macro]
27957    next
27958  } else {
27959    # Replace #undef with comments.  This is necessary, for example,
27960    # in the case of _POSIX_SOURCE, which is predefined and required
27961    # on some systems where configure will not decide to define it.
27962    if (defundef == "undef") {
27963      print "/*", prefix defundef, macro, "*/"
27964      next
27965    }
27966  }
27967}
27968{ print }
27969_ACAWK
27970_ACEOF
27971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27972  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27973fi # test -n "$CONFIG_HEADERS"
27974
27975
27976eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27977shift
27978for ac_tag
27979do
27980  case $ac_tag in
27981  :[FHLC]) ac_mode=$ac_tag; continue;;
27982  esac
27983  case $ac_mode$ac_tag in
27984  :[FHL]*:*);;
27985  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27986  :[FH]-) ac_tag=-:-;;
27987  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27988  esac
27989  ac_save_IFS=$IFS
27990  IFS=:
27991  set x $ac_tag
27992  IFS=$ac_save_IFS
27993  shift
27994  ac_file=$1
27995  shift
27996
27997  case $ac_mode in
27998  :L) ac_source=$1;;
27999  :[FH])
28000    ac_file_inputs=
28001    for ac_f
28002    do
28003      case $ac_f in
28004      -) ac_f="$ac_tmp/stdin";;
28005      *) # Look for the file first in the build tree, then in the source tree
28006	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
28007	 # because $ac_f cannot contain `:'.
28008	 test -f "$ac_f" ||
28009	   case $ac_f in
28010	   [\\/$]*) false;;
28011	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28012	   esac ||
28013	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28014      esac
28015      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28016      as_fn_append ac_file_inputs " '$ac_f'"
28017    done
28018
28019    # Let's still pretend it is `configure' which instantiates (i.e., don't
28020    # use $as_me), people would be surprised to read:
28021    #    /* config.h.  Generated by config.status.  */
28022    configure_input='Generated from '`
28023	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28024	`' by configure.'
28025    if test x"$ac_file" != x-; then
28026      configure_input="$ac_file.  $configure_input"
28027      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28028$as_echo "$as_me: creating $ac_file" >&6;}
28029    fi
28030    # Neutralize special characters interpreted by sed in replacement strings.
28031    case $configure_input in #(
28032    *\&* | *\|* | *\\* )
28033       ac_sed_conf_input=`$as_echo "$configure_input" |
28034       sed 's/[\\\\&|]/\\\\&/g'`;; #(
28035    *) ac_sed_conf_input=$configure_input;;
28036    esac
28037
28038    case $ac_tag in
28039    *:-:* | *:-) cat >"$ac_tmp/stdin" \
28040      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28041    esac
28042    ;;
28043  esac
28044
28045  ac_dir=`$as_dirname -- "$ac_file" ||
28046$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28047	 X"$ac_file" : 'X\(//\)[^/]' \| \
28048	 X"$ac_file" : 'X\(//\)$' \| \
28049	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28050$as_echo X"$ac_file" |
28051    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28052	    s//\1/
28053	    q
28054	  }
28055	  /^X\(\/\/\)[^/].*/{
28056	    s//\1/
28057	    q
28058	  }
28059	  /^X\(\/\/\)$/{
28060	    s//\1/
28061	    q
28062	  }
28063	  /^X\(\/\).*/{
28064	    s//\1/
28065	    q
28066	  }
28067	  s/.*/./; q'`
28068  as_dir="$ac_dir"; as_fn_mkdir_p
28069  ac_builddir=.
28070
28071case "$ac_dir" in
28072.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28073*)
28074  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28075  # A ".." for each directory in $ac_dir_suffix.
28076  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28077  case $ac_top_builddir_sub in
28078  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28079  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28080  esac ;;
28081esac
28082ac_abs_top_builddir=$ac_pwd
28083ac_abs_builddir=$ac_pwd$ac_dir_suffix
28084# for backward compatibility:
28085ac_top_builddir=$ac_top_build_prefix
28086
28087case $srcdir in
28088  .)  # We are building in place.
28089    ac_srcdir=.
28090    ac_top_srcdir=$ac_top_builddir_sub
28091    ac_abs_top_srcdir=$ac_pwd ;;
28092  [\\/]* | ?:[\\/]* )  # Absolute name.
28093    ac_srcdir=$srcdir$ac_dir_suffix;
28094    ac_top_srcdir=$srcdir
28095    ac_abs_top_srcdir=$srcdir ;;
28096  *) # Relative name.
28097    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28098    ac_top_srcdir=$ac_top_build_prefix$srcdir
28099    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28100esac
28101ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28102
28103
28104  case $ac_mode in
28105  :F)
28106  #
28107  # CONFIG_FILE
28108  #
28109
28110  case $INSTALL in
28111  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28112  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28113  esac
28114  ac_MKDIR_P=$MKDIR_P
28115  case $MKDIR_P in
28116  [\\/$]* | ?:[\\/]* ) ;;
28117  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28118  esac
28119_ACEOF
28120
28121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28122# If the template does not know about datarootdir, expand it.
28123# FIXME: This hack should be removed a few years after 2.60.
28124ac_datarootdir_hack=; ac_datarootdir_seen=
28125ac_sed_dataroot='
28126/datarootdir/ {
28127  p
28128  q
28129}
28130/@datadir@/p
28131/@docdir@/p
28132/@infodir@/p
28133/@localedir@/p
28134/@mandir@/p'
28135case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28136*datarootdir*) ac_datarootdir_seen=yes;;
28137*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28139$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28140_ACEOF
28141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28142  ac_datarootdir_hack='
28143  s&@datadir@&$datadir&g
28144  s&@docdir@&$docdir&g
28145  s&@infodir@&$infodir&g
28146  s&@localedir@&$localedir&g
28147  s&@mandir@&$mandir&g
28148  s&\\\${datarootdir}&$datarootdir&g' ;;
28149esac
28150_ACEOF
28151
28152# Neutralize VPATH when `$srcdir' = `.'.
28153# Shell code in configure.ac might set extrasub.
28154# FIXME: do we really want to maintain this feature?
28155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28156ac_sed_extra="$ac_vpsub
28157$extrasub
28158_ACEOF
28159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28160:t
28161/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28162s|@configure_input@|$ac_sed_conf_input|;t t
28163s&@top_builddir@&$ac_top_builddir_sub&;t t
28164s&@top_build_prefix@&$ac_top_build_prefix&;t t
28165s&@srcdir@&$ac_srcdir&;t t
28166s&@abs_srcdir@&$ac_abs_srcdir&;t t
28167s&@top_srcdir@&$ac_top_srcdir&;t t
28168s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28169s&@builddir@&$ac_builddir&;t t
28170s&@abs_builddir@&$ac_abs_builddir&;t t
28171s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28172s&@INSTALL@&$ac_INSTALL&;t t
28173s&@MKDIR_P@&$ac_MKDIR_P&;t t
28174$ac_datarootdir_hack
28175"
28176eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28177  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28178
28179test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28180  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28181  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
28182      "$ac_tmp/out"`; test -z "$ac_out"; } &&
28183  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28184which seems to be undefined.  Please make sure it is defined" >&5
28185$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28186which seems to be undefined.  Please make sure it is defined" >&2;}
28187
28188  rm -f "$ac_tmp/stdin"
28189  case $ac_file in
28190  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28191  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28192  esac \
28193  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28194 ;;
28195  :H)
28196  #
28197  # CONFIG_HEADER
28198  #
28199  if test x"$ac_file" != x-; then
28200    {
28201      $as_echo "/* $configure_input  */" \
28202      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28203    } >"$ac_tmp/config.h" \
28204      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28205    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28206      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28207$as_echo "$as_me: $ac_file is unchanged" >&6;}
28208    else
28209      rm -f "$ac_file"
28210      mv "$ac_tmp/config.h" "$ac_file" \
28211	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
28212    fi
28213  else
28214    $as_echo "/* $configure_input  */" \
28215      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28216      || as_fn_error $? "could not create -" "$LINENO" 5
28217  fi
28218# Compute "$ac_file"'s index in $config_headers.
28219_am_arg="$ac_file"
28220_am_stamp_count=1
28221for _am_header in $config_headers :; do
28222  case $_am_header in
28223    $_am_arg | $_am_arg:* )
28224      break ;;
28225    * )
28226      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28227  esac
28228done
28229echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28230$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28231	 X"$_am_arg" : 'X\(//\)[^/]' \| \
28232	 X"$_am_arg" : 'X\(//\)$' \| \
28233	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28234$as_echo X"$_am_arg" |
28235    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28236	    s//\1/
28237	    q
28238	  }
28239	  /^X\(\/\/\)[^/].*/{
28240	    s//\1/
28241	    q
28242	  }
28243	  /^X\(\/\/\)$/{
28244	    s//\1/
28245	    q
28246	  }
28247	  /^X\(\/\).*/{
28248	    s//\1/
28249	    q
28250	  }
28251	  s/.*/./; q'`/stamp-h$_am_stamp_count
28252 ;;
28253
28254  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28255$as_echo "$as_me: executing $ac_file commands" >&6;}
28256 ;;
28257  esac
28258
28259
28260  case $ac_file$ac_mode in
28261    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28262  # Older Autoconf quotes --file arguments for eval, but not when files
28263  # are listed without --file.  Let's play safe and only enable the eval
28264  # if we detect the quoting.
28265  # TODO: see whether this extra hack can be removed once we start
28266  # requiring Autoconf 2.70 or later.
28267  case $CONFIG_FILES in #(
28268  *\'*) :
28269    eval set x "$CONFIG_FILES" ;; #(
28270  *) :
28271    set x $CONFIG_FILES ;; #(
28272  *) :
28273     ;;
28274esac
28275  shift
28276  # Used to flag and report bootstrapping failures.
28277  am_rc=0
28278  for am_mf
28279  do
28280    # Strip MF so we end up with the name of the file.
28281    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28282    # Check whether this is an Automake generated Makefile which includes
28283    # dependency-tracking related rules and includes.
28284    # Grep'ing the whole file directly is not great: AIX grep has a line
28285    # limit of 2048, but all sed's we know have understand at least 4000.
28286    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28287      || continue
28288    am_dirpart=`$as_dirname -- "$am_mf" ||
28289$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28290	 X"$am_mf" : 'X\(//\)[^/]' \| \
28291	 X"$am_mf" : 'X\(//\)$' \| \
28292	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28293$as_echo X"$am_mf" |
28294    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28295	    s//\1/
28296	    q
28297	  }
28298	  /^X\(\/\/\)[^/].*/{
28299	    s//\1/
28300	    q
28301	  }
28302	  /^X\(\/\/\)$/{
28303	    s//\1/
28304	    q
28305	  }
28306	  /^X\(\/\).*/{
28307	    s//\1/
28308	    q
28309	  }
28310	  s/.*/./; q'`
28311    am_filepart=`$as_basename -- "$am_mf" ||
28312$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28313	 X"$am_mf" : 'X\(//\)$' \| \
28314	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28315$as_echo X/"$am_mf" |
28316    sed '/^.*\/\([^/][^/]*\)\/*$/{
28317	    s//\1/
28318	    q
28319	  }
28320	  /^X\/\(\/\/\)$/{
28321	    s//\1/
28322	    q
28323	  }
28324	  /^X\/\(\/\).*/{
28325	    s//\1/
28326	    q
28327	  }
28328	  s/.*/./; q'`
28329    { echo "$as_me:$LINENO: cd "$am_dirpart" \
28330      && sed -e '/# am--include-marker/d' "$am_filepart" \
28331        | $MAKE -f - am--depfiles" >&5
28332   (cd "$am_dirpart" \
28333      && sed -e '/# am--include-marker/d' "$am_filepart" \
28334        | $MAKE -f - am--depfiles) >&5 2>&5
28335   ac_status=$?
28336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337   (exit $ac_status); } || am_rc=$?
28338  done
28339  if test $am_rc -ne 0; then
28340    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28342as_fn_error $? "Something went wrong bootstrapping makefile fragments
28343    for automatic dependency tracking.  Try re-running configure with the
28344    '--disable-dependency-tracking' option to at least be able to build
28345    the package (albeit without support for automatic dependency tracking).
28346See \`config.log' for more details" "$LINENO" 5; }
28347  fi
28348  { am_dirpart=; unset am_dirpart;}
28349  { am_filepart=; unset am_filepart;}
28350  { am_mf=; unset am_mf;}
28351  { am_rc=; unset am_rc;}
28352  rm -f conftest-deps.mk
28353}
28354 ;;
28355    "libtool":C)
28356
28357    # See if we are running on zsh, and set the options which allow our
28358    # commands through without removal of \ escapes.
28359    if test -n "${ZSH_VERSION+set}" ; then
28360      setopt NO_GLOB_SUBST
28361    fi
28362
28363    cfgfile="${ofile}T"
28364    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28365    $RM "$cfgfile"
28366
28367    cat <<_LT_EOF >> "$cfgfile"
28368#! $SHELL
28369
28370# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28371# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28372# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28373# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28374#
28375#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28376#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28377#                 Foundation, Inc.
28378#   Written by Gordon Matzigkeit, 1996
28379#
28380#   This file is part of GNU Libtool.
28381#
28382# GNU Libtool is free software; you can redistribute it and/or
28383# modify it under the terms of the GNU General Public License as
28384# published by the Free Software Foundation; either version 2 of
28385# the License, or (at your option) any later version.
28386#
28387# As a special exception to the GNU General Public License,
28388# if you distribute this file as part of a program or library that
28389# is built using GNU Libtool, you may include this file under the
28390# same distribution terms that you use for the rest of that program.
28391#
28392# GNU Libtool is distributed in the hope that it will be useful,
28393# but WITHOUT ANY WARRANTY; without even the implied warranty of
28394# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28395# GNU General Public License for more details.
28396#
28397# You should have received a copy of the GNU General Public License
28398# along with GNU Libtool; see the file COPYING.  If not, a copy
28399# can be downloaded from https://www.gnu.org/licenses/gpl.html, or
28400# obtained by writing to the Free Software Foundation, Inc.,
28401# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28402
28403
28404# The names of the tagged configurations supported by this script.
28405available_tags="CXX RC "
28406
28407# ### BEGIN LIBTOOL CONFIG
28408
28409# Which release of libtool.m4 was used?
28410macro_version=$macro_version
28411macro_revision=$macro_revision
28412
28413# Assembler program.
28414AS=$lt_AS
28415
28416# DLL creation program.
28417DLLTOOL=$lt_DLLTOOL
28418
28419# Object dumper program.
28420OBJDUMP=$lt_OBJDUMP
28421
28422# Whether or not to build static libraries.
28423build_old_libs=$enable_static
28424
28425# Whether or not to build shared libraries.
28426build_libtool_libs=$enable_shared
28427
28428# What type of objects to build.
28429pic_mode=$pic_mode
28430
28431# Whether or not to optimize for fast installation.
28432fast_install=$enable_fast_install
28433
28434# Shell to use when invoking shell scripts.
28435SHELL=$lt_SHELL
28436
28437# An echo program that protects backslashes.
28438ECHO=$lt_ECHO
28439
28440# The PATH separator for the build system.
28441PATH_SEPARATOR=$lt_PATH_SEPARATOR
28442
28443# The host system.
28444host_alias=$host_alias
28445host=$host
28446host_os=$host_os
28447
28448# The build system.
28449build_alias=$build_alias
28450build=$build
28451build_os=$build_os
28452
28453# A sed program that does not truncate output.
28454SED=$lt_SED
28455
28456# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28457Xsed="\$SED -e 1s/^X//"
28458
28459# A grep program that handles long lines.
28460GREP=$lt_GREP
28461
28462# An ERE matcher.
28463EGREP=$lt_EGREP
28464
28465# A literal string matcher.
28466FGREP=$lt_FGREP
28467
28468# A BSD- or MS-compatible name lister.
28469NM=$lt_NM
28470
28471# Whether we need soft or hard links.
28472LN_S=$lt_LN_S
28473
28474# What is the maximum length of a command?
28475max_cmd_len=$max_cmd_len
28476
28477# Object file suffix (normally "o").
28478objext=$ac_objext
28479
28480# Executable file suffix (normally "").
28481exeext=$exeext
28482
28483# whether the shell understands "unset".
28484lt_unset=$lt_unset
28485
28486# turn spaces into newlines.
28487SP2NL=$lt_lt_SP2NL
28488
28489# turn newlines into spaces.
28490NL2SP=$lt_lt_NL2SP
28491
28492# convert \$build file names to \$host format.
28493to_host_file_cmd=$lt_cv_to_host_file_cmd
28494
28495# convert \$build files to toolchain format.
28496to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28497
28498# Method to check whether dependent libraries are shared objects.
28499deplibs_check_method=$lt_deplibs_check_method
28500
28501# Command to use when deplibs_check_method = "file_magic".
28502file_magic_cmd=$lt_file_magic_cmd
28503
28504# How to find potential files when deplibs_check_method = "file_magic".
28505file_magic_glob=$lt_file_magic_glob
28506
28507# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28508want_nocaseglob=$lt_want_nocaseglob
28509
28510# Command to associate shared and link libraries.
28511sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28512
28513# The archiver.
28514AR=$lt_AR
28515
28516# Flags to create an archive.
28517AR_FLAGS=$lt_AR_FLAGS
28518
28519# How to feed a file listing to the archiver.
28520archiver_list_spec=$lt_archiver_list_spec
28521
28522# A symbol stripping program.
28523STRIP=$lt_STRIP
28524
28525# Commands used to install an old-style archive.
28526RANLIB=$lt_RANLIB
28527old_postinstall_cmds=$lt_old_postinstall_cmds
28528old_postuninstall_cmds=$lt_old_postuninstall_cmds
28529
28530# Whether to use a lock for old archive extraction.
28531lock_old_archive_extraction=$lock_old_archive_extraction
28532
28533# A C compiler.
28534LTCC=$lt_CC
28535
28536# LTCC compiler flags.
28537LTCFLAGS=$lt_CFLAGS
28538
28539# Take the output of nm and produce a listing of raw symbols and C names.
28540global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28541
28542# Transform the output of nm in a proper C declaration.
28543global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28544
28545# Transform the output of nm in a C name address pair.
28546global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28547
28548# Transform the output of nm in a C name address pair when lib prefix is needed.
28549global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28550
28551# Specify filename containing input files for \$NM.
28552nm_file_list_spec=$lt_nm_file_list_spec
28553
28554# The root where to search for dependent libraries,and in which our libraries should be installed.
28555lt_sysroot=$lt_sysroot
28556
28557# The name of the directory that contains temporary libtool files.
28558objdir=$objdir
28559
28560# Used to examine libraries when file_magic_cmd begins with "file".
28561MAGIC_CMD=$MAGIC_CMD
28562
28563# Must we lock files when doing compilation?
28564need_locks=$lt_need_locks
28565
28566# Manifest tool.
28567MANIFEST_TOOL=$lt_MANIFEST_TOOL
28568
28569# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28570DSYMUTIL=$lt_DSYMUTIL
28571
28572# Tool to change global to local symbols on Mac OS X.
28573NMEDIT=$lt_NMEDIT
28574
28575# Tool to manipulate fat objects and archives on Mac OS X.
28576LIPO=$lt_LIPO
28577
28578# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28579OTOOL=$lt_OTOOL
28580
28581# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28582OTOOL64=$lt_OTOOL64
28583
28584# Old archive suffix (normally "a").
28585libext=$libext
28586
28587# Shared library suffix (normally ".so").
28588shrext_cmds=$lt_shrext_cmds
28589
28590# The commands to extract the exported symbol list from a shared archive.
28591extract_expsyms_cmds=$lt_extract_expsyms_cmds
28592
28593# Variables whose values should be saved in libtool wrapper scripts and
28594# restored at link time.
28595variables_saved_for_relink=$lt_variables_saved_for_relink
28596
28597# Do we need the "lib" prefix for modules?
28598need_lib_prefix=$need_lib_prefix
28599
28600# Do we need a version for libraries?
28601need_version=$need_version
28602
28603# Library versioning type.
28604version_type=$version_type
28605
28606# Shared library runtime path variable.
28607runpath_var=$runpath_var
28608
28609# Shared library path variable.
28610shlibpath_var=$shlibpath_var
28611
28612# Is shlibpath searched before the hard-coded library search path?
28613shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28614
28615# Format of library name prefix.
28616libname_spec=$lt_libname_spec
28617
28618# List of archive names.  First name is the real one, the rest are links.
28619# The last name is the one that the linker finds with -lNAME
28620library_names_spec=$lt_library_names_spec
28621
28622# The coded name of the library, if different from the real name.
28623soname_spec=$lt_soname_spec
28624
28625# Permission mode override for installation of shared libraries.
28626install_override_mode=$lt_install_override_mode
28627
28628# Command to use after installation of a shared archive.
28629postinstall_cmds=$lt_postinstall_cmds
28630
28631# Command to use after uninstallation of a shared archive.
28632postuninstall_cmds=$lt_postuninstall_cmds
28633
28634# Commands used to finish a libtool library installation in a directory.
28635finish_cmds=$lt_finish_cmds
28636
28637# As "finish_cmds", except a single script fragment to be evaled but
28638# not shown.
28639finish_eval=$lt_finish_eval
28640
28641# Whether we should hardcode library paths into libraries.
28642hardcode_into_libs=$hardcode_into_libs
28643
28644# Compile-time system search path for libraries.
28645sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28646
28647# Run-time system search path for libraries.
28648sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28649
28650# Whether dlopen is supported.
28651dlopen_support=$enable_dlopen
28652
28653# Whether dlopen of programs is supported.
28654dlopen_self=$enable_dlopen_self
28655
28656# Whether dlopen of statically linked programs is supported.
28657dlopen_self_static=$enable_dlopen_self_static
28658
28659# Commands to strip libraries.
28660old_striplib=$lt_old_striplib
28661striplib=$lt_striplib
28662
28663
28664# The linker used to build libraries.
28665LD=$lt_LD
28666
28667# How to create reloadable object files.
28668reload_flag=$lt_reload_flag
28669reload_cmds=$lt_reload_cmds
28670
28671# Commands used to build an old-style archive.
28672old_archive_cmds=$lt_old_archive_cmds
28673
28674# A language specific compiler.
28675CC=$lt_compiler
28676
28677# Is the compiler the GNU compiler?
28678with_gcc=$GCC
28679
28680# Compiler flag to turn off builtin functions.
28681no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28682
28683# Additional compiler flags for building library objects.
28684pic_flag=$lt_lt_prog_compiler_pic
28685
28686# How to pass a linker flag through the compiler.
28687wl=$lt_lt_prog_compiler_wl
28688
28689# Compiler flag to prevent dynamic linking.
28690link_static_flag=$lt_lt_prog_compiler_static
28691
28692# Does compiler simultaneously support -c and -o options?
28693compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28694
28695# Whether or not to add -lc for building shared libraries.
28696build_libtool_need_lc=$archive_cmds_need_lc
28697
28698# Whether or not to disallow shared libs when runtime libs are static.
28699allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28700
28701# Compiler flag to allow reflexive dlopens.
28702export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28703
28704# Compiler flag to generate shared objects directly from archives.
28705whole_archive_flag_spec=$lt_whole_archive_flag_spec
28706
28707# Whether the compiler copes with passing no objects directly.
28708compiler_needs_object=$lt_compiler_needs_object
28709
28710# Create an old-style archive from a shared archive.
28711old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28712
28713# Create a temporary old-style archive to link instead of a shared archive.
28714old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28715
28716# Commands used to build a shared archive.
28717archive_cmds=$lt_archive_cmds
28718archive_expsym_cmds=$lt_archive_expsym_cmds
28719
28720# Commands used to build a loadable module if different from building
28721# a shared archive.
28722module_cmds=$lt_module_cmds
28723module_expsym_cmds=$lt_module_expsym_cmds
28724
28725# Whether we are building with GNU ld or not.
28726with_gnu_ld=$lt_with_gnu_ld
28727
28728# Flag that allows shared libraries with undefined symbols to be built.
28729allow_undefined_flag=$lt_allow_undefined_flag
28730
28731# Flag that enforces no undefined symbols.
28732no_undefined_flag=$lt_no_undefined_flag
28733
28734# Flag to hardcode \$libdir into a binary during linking.
28735# This must work even if \$libdir does not exist
28736hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28737
28738# Whether we need a single "-rpath" flag with a separated argument.
28739hardcode_libdir_separator=$lt_hardcode_libdir_separator
28740
28741# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28742# DIR into the resulting binary.
28743hardcode_direct=$hardcode_direct
28744
28745# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28746# DIR into the resulting binary and the resulting library dependency is
28747# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28748# library is relocated.
28749hardcode_direct_absolute=$hardcode_direct_absolute
28750
28751# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28752# into the resulting binary.
28753hardcode_minus_L=$hardcode_minus_L
28754
28755# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28756# into the resulting binary.
28757hardcode_shlibpath_var=$hardcode_shlibpath_var
28758
28759# Set to "yes" if building a shared library automatically hardcodes DIR
28760# into the library and all subsequent libraries and executables linked
28761# against it.
28762hardcode_automatic=$hardcode_automatic
28763
28764# Set to yes if linker adds runtime paths of dependent libraries
28765# to runtime path list.
28766inherit_rpath=$inherit_rpath
28767
28768# Whether libtool must link a program against all its dependency libraries.
28769link_all_deplibs=$link_all_deplibs
28770
28771# Set to "yes" if exported symbols are required.
28772always_export_symbols=$always_export_symbols
28773
28774# The commands to list exported symbols.
28775export_symbols_cmds=$lt_export_symbols_cmds
28776
28777# Symbols that should not be listed in the preloaded symbols.
28778exclude_expsyms=$lt_exclude_expsyms
28779
28780# Symbols that must always be exported.
28781include_expsyms=$lt_include_expsyms
28782
28783# Commands necessary for linking programs (against libraries) with templates.
28784prelink_cmds=$lt_prelink_cmds
28785
28786# Commands necessary for finishing linking programs.
28787postlink_cmds=$lt_postlink_cmds
28788
28789# Specify filename containing input files.
28790file_list_spec=$lt_file_list_spec
28791
28792# How to hardcode a shared library path into an executable.
28793hardcode_action=$hardcode_action
28794
28795# The directories searched by this compiler when creating a shared library.
28796compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28797
28798# Dependencies to place before and after the objects being linked to
28799# create a shared library.
28800predep_objects=$lt_predep_objects
28801postdep_objects=$lt_postdep_objects
28802predeps=$lt_predeps
28803postdeps=$lt_postdeps
28804
28805# The library search path used internally by the compiler when linking
28806# a shared library.
28807compiler_lib_search_path=$lt_compiler_lib_search_path
28808
28809# ### END LIBTOOL CONFIG
28810
28811_LT_EOF
28812
28813  case $host_os in
28814  aix3*)
28815    cat <<\_LT_EOF >> "$cfgfile"
28816# AIX sometimes has problems with the GCC collect2 program.  For some
28817# reason, if we set the COLLECT_NAMES environment variable, the problems
28818# vanish in a puff of smoke.
28819if test "X${COLLECT_NAMES+set}" != Xset; then
28820  COLLECT_NAMES=
28821  export COLLECT_NAMES
28822fi
28823_LT_EOF
28824    ;;
28825  esac
28826
28827
28828ltmain="$ac_aux_dir/ltmain.sh"
28829
28830
28831  # We use sed instead of cat because bash on DJGPP gets confused if
28832  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28833  # text mode, it properly converts lines to CR/LF.  This bash problem
28834  # is reportedly fixed, but why not run on old versions too?
28835  sed '$q' "$ltmain" >> "$cfgfile" \
28836     || (rm -f "$cfgfile"; exit 1)
28837
28838  if test x"$xsi_shell" = xyes; then
28839  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28840func_dirname ()\
28841{\
28842\    case ${1} in\
28843\      */*) func_dirname_result="${1%/*}${2}" ;;\
28844\      *  ) func_dirname_result="${3}" ;;\
28845\    esac\
28846} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28847  && mv -f "$cfgfile.tmp" "$cfgfile" \
28848    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28849test 0 -eq $? || _lt_function_replace_fail=:
28850
28851
28852  sed -e '/^func_basename ()$/,/^} # func_basename /c\
28853func_basename ()\
28854{\
28855\    func_basename_result="${1##*/}"\
28856} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28857  && mv -f "$cfgfile.tmp" "$cfgfile" \
28858    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28859test 0 -eq $? || _lt_function_replace_fail=:
28860
28861
28862  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28863func_dirname_and_basename ()\
28864{\
28865\    case ${1} in\
28866\      */*) func_dirname_result="${1%/*}${2}" ;;\
28867\      *  ) func_dirname_result="${3}" ;;\
28868\    esac\
28869\    func_basename_result="${1##*/}"\
28870} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28871  && mv -f "$cfgfile.tmp" "$cfgfile" \
28872    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28873test 0 -eq $? || _lt_function_replace_fail=:
28874
28875
28876  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28877func_stripname ()\
28878{\
28879\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28880\    # positional parameters, so assign one to ordinary parameter first.\
28881\    func_stripname_result=${3}\
28882\    func_stripname_result=${func_stripname_result#"${1}"}\
28883\    func_stripname_result=${func_stripname_result%"${2}"}\
28884} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28885  && mv -f "$cfgfile.tmp" "$cfgfile" \
28886    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28887test 0 -eq $? || _lt_function_replace_fail=:
28888
28889
28890  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28891func_split_long_opt ()\
28892{\
28893\    func_split_long_opt_name=${1%%=*}\
28894\    func_split_long_opt_arg=${1#*=}\
28895} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28896  && mv -f "$cfgfile.tmp" "$cfgfile" \
28897    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28898test 0 -eq $? || _lt_function_replace_fail=:
28899
28900
28901  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28902func_split_short_opt ()\
28903{\
28904\    func_split_short_opt_arg=${1#??}\
28905\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28906} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28907  && mv -f "$cfgfile.tmp" "$cfgfile" \
28908    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28909test 0 -eq $? || _lt_function_replace_fail=:
28910
28911
28912  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28913func_lo2o ()\
28914{\
28915\    case ${1} in\
28916\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28917\      *)    func_lo2o_result=${1} ;;\
28918\    esac\
28919} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28920  && mv -f "$cfgfile.tmp" "$cfgfile" \
28921    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28922test 0 -eq $? || _lt_function_replace_fail=:
28923
28924
28925  sed -e '/^func_xform ()$/,/^} # func_xform /c\
28926func_xform ()\
28927{\
28928    func_xform_result=${1%.*}.lo\
28929} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28930  && mv -f "$cfgfile.tmp" "$cfgfile" \
28931    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28932test 0 -eq $? || _lt_function_replace_fail=:
28933
28934
28935  sed -e '/^func_arith ()$/,/^} # func_arith /c\
28936func_arith ()\
28937{\
28938    func_arith_result=$(( $* ))\
28939} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28940  && mv -f "$cfgfile.tmp" "$cfgfile" \
28941    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28942test 0 -eq $? || _lt_function_replace_fail=:
28943
28944
28945  sed -e '/^func_len ()$/,/^} # func_len /c\
28946func_len ()\
28947{\
28948    func_len_result=${#1}\
28949} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28950  && mv -f "$cfgfile.tmp" "$cfgfile" \
28951    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28952test 0 -eq $? || _lt_function_replace_fail=:
28953
28954fi
28955
28956if test x"$lt_shell_append" = xyes; then
28957  sed -e '/^func_append ()$/,/^} # func_append /c\
28958func_append ()\
28959{\
28960    eval "${1}+=\\${2}"\
28961} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28962  && mv -f "$cfgfile.tmp" "$cfgfile" \
28963    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28964test 0 -eq $? || _lt_function_replace_fail=:
28965
28966
28967  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28968func_append_quoted ()\
28969{\
28970\    func_quote_for_eval "${2}"\
28971\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28972} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28973  && mv -f "$cfgfile.tmp" "$cfgfile" \
28974    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28975test 0 -eq $? || _lt_function_replace_fail=:
28976
28977
28978  # Save a `func_append' function call where possible by direct use of '+='
28979  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28980    && mv -f "$cfgfile.tmp" "$cfgfile" \
28981      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28982  test 0 -eq $? || _lt_function_replace_fail=:
28983else
28984  # Save a `func_append' function call even when '+=' is not available
28985  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28986    && mv -f "$cfgfile.tmp" "$cfgfile" \
28987      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28988  test 0 -eq $? || _lt_function_replace_fail=:
28989fi
28990
28991if test x"$_lt_function_replace_fail" = x":"; then
28992  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28993$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28994fi
28995
28996
28997   mv -f "$cfgfile" "$ofile" ||
28998    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28999  chmod +x "$ofile"
29000
29001
29002    cat <<_LT_EOF >> "$ofile"
29003
29004# ### BEGIN LIBTOOL TAG CONFIG: CXX
29005
29006# The linker used to build libraries.
29007LD=$lt_LD_CXX
29008
29009# How to create reloadable object files.
29010reload_flag=$lt_reload_flag_CXX
29011reload_cmds=$lt_reload_cmds_CXX
29012
29013# Commands used to build an old-style archive.
29014old_archive_cmds=$lt_old_archive_cmds_CXX
29015
29016# A language specific compiler.
29017CC=$lt_compiler_CXX
29018
29019# Is the compiler the GNU compiler?
29020with_gcc=$GCC_CXX
29021
29022# Compiler flag to turn off builtin functions.
29023no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29024
29025# Additional compiler flags for building library objects.
29026pic_flag=$lt_lt_prog_compiler_pic_CXX
29027
29028# How to pass a linker flag through the compiler.
29029wl=$lt_lt_prog_compiler_wl_CXX
29030
29031# Compiler flag to prevent dynamic linking.
29032link_static_flag=$lt_lt_prog_compiler_static_CXX
29033
29034# Does compiler simultaneously support -c and -o options?
29035compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29036
29037# Whether or not to add -lc for building shared libraries.
29038build_libtool_need_lc=$archive_cmds_need_lc_CXX
29039
29040# Whether or not to disallow shared libs when runtime libs are static.
29041allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29042
29043# Compiler flag to allow reflexive dlopens.
29044export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29045
29046# Compiler flag to generate shared objects directly from archives.
29047whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29048
29049# Whether the compiler copes with passing no objects directly.
29050compiler_needs_object=$lt_compiler_needs_object_CXX
29051
29052# Create an old-style archive from a shared archive.
29053old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29054
29055# Create a temporary old-style archive to link instead of a shared archive.
29056old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29057
29058# Commands used to build a shared archive.
29059archive_cmds=$lt_archive_cmds_CXX
29060archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29061
29062# Commands used to build a loadable module if different from building
29063# a shared archive.
29064module_cmds=$lt_module_cmds_CXX
29065module_expsym_cmds=$lt_module_expsym_cmds_CXX
29066
29067# Whether we are building with GNU ld or not.
29068with_gnu_ld=$lt_with_gnu_ld_CXX
29069
29070# Flag that allows shared libraries with undefined symbols to be built.
29071allow_undefined_flag=$lt_allow_undefined_flag_CXX
29072
29073# Flag that enforces no undefined symbols.
29074no_undefined_flag=$lt_no_undefined_flag_CXX
29075
29076# Flag to hardcode \$libdir into a binary during linking.
29077# This must work even if \$libdir does not exist
29078hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29079
29080# Whether we need a single "-rpath" flag with a separated argument.
29081hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29082
29083# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29084# DIR into the resulting binary.
29085hardcode_direct=$hardcode_direct_CXX
29086
29087# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29088# DIR into the resulting binary and the resulting library dependency is
29089# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29090# library is relocated.
29091hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29092
29093# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29094# into the resulting binary.
29095hardcode_minus_L=$hardcode_minus_L_CXX
29096
29097# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29098# into the resulting binary.
29099hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29100
29101# Set to "yes" if building a shared library automatically hardcodes DIR
29102# into the library and all subsequent libraries and executables linked
29103# against it.
29104hardcode_automatic=$hardcode_automatic_CXX
29105
29106# Set to yes if linker adds runtime paths of dependent libraries
29107# to runtime path list.
29108inherit_rpath=$inherit_rpath_CXX
29109
29110# Whether libtool must link a program against all its dependency libraries.
29111link_all_deplibs=$link_all_deplibs_CXX
29112
29113# Set to "yes" if exported symbols are required.
29114always_export_symbols=$always_export_symbols_CXX
29115
29116# The commands to list exported symbols.
29117export_symbols_cmds=$lt_export_symbols_cmds_CXX
29118
29119# Symbols that should not be listed in the preloaded symbols.
29120exclude_expsyms=$lt_exclude_expsyms_CXX
29121
29122# Symbols that must always be exported.
29123include_expsyms=$lt_include_expsyms_CXX
29124
29125# Commands necessary for linking programs (against libraries) with templates.
29126prelink_cmds=$lt_prelink_cmds_CXX
29127
29128# Commands necessary for finishing linking programs.
29129postlink_cmds=$lt_postlink_cmds_CXX
29130
29131# Specify filename containing input files.
29132file_list_spec=$lt_file_list_spec_CXX
29133
29134# How to hardcode a shared library path into an executable.
29135hardcode_action=$hardcode_action_CXX
29136
29137# The directories searched by this compiler when creating a shared library.
29138compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29139
29140# Dependencies to place before and after the objects being linked to
29141# create a shared library.
29142predep_objects=$lt_predep_objects_CXX
29143postdep_objects=$lt_postdep_objects_CXX
29144predeps=$lt_predeps_CXX
29145postdeps=$lt_postdeps_CXX
29146
29147# The library search path used internally by the compiler when linking
29148# a shared library.
29149compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29150
29151# ### END LIBTOOL TAG CONFIG: CXX
29152_LT_EOF
29153
29154
29155    cat <<_LT_EOF >> "$ofile"
29156
29157# ### BEGIN LIBTOOL TAG CONFIG: RC
29158
29159# The linker used to build libraries.
29160LD=$lt_LD_RC
29161
29162# How to create reloadable object files.
29163reload_flag=$lt_reload_flag_RC
29164reload_cmds=$lt_reload_cmds_RC
29165
29166# Commands used to build an old-style archive.
29167old_archive_cmds=$lt_old_archive_cmds_RC
29168
29169# A language specific compiler.
29170CC=$lt_compiler_RC
29171
29172# Is the compiler the GNU compiler?
29173with_gcc=$GCC_RC
29174
29175# Compiler flag to turn off builtin functions.
29176no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29177
29178# Additional compiler flags for building library objects.
29179pic_flag=$lt_lt_prog_compiler_pic_RC
29180
29181# How to pass a linker flag through the compiler.
29182wl=$lt_lt_prog_compiler_wl_RC
29183
29184# Compiler flag to prevent dynamic linking.
29185link_static_flag=$lt_lt_prog_compiler_static_RC
29186
29187# Does compiler simultaneously support -c and -o options?
29188compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
29189
29190# Whether or not to add -lc for building shared libraries.
29191build_libtool_need_lc=$archive_cmds_need_lc_RC
29192
29193# Whether or not to disallow shared libs when runtime libs are static.
29194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
29195
29196# Compiler flag to allow reflexive dlopens.
29197export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29198
29199# Compiler flag to generate shared objects directly from archives.
29200whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29201
29202# Whether the compiler copes with passing no objects directly.
29203compiler_needs_object=$lt_compiler_needs_object_RC
29204
29205# Create an old-style archive from a shared archive.
29206old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29207
29208# Create a temporary old-style archive to link instead of a shared archive.
29209old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29210
29211# Commands used to build a shared archive.
29212archive_cmds=$lt_archive_cmds_RC
29213archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29214
29215# Commands used to build a loadable module if different from building
29216# a shared archive.
29217module_cmds=$lt_module_cmds_RC
29218module_expsym_cmds=$lt_module_expsym_cmds_RC
29219
29220# Whether we are building with GNU ld or not.
29221with_gnu_ld=$lt_with_gnu_ld_RC
29222
29223# Flag that allows shared libraries with undefined symbols to be built.
29224allow_undefined_flag=$lt_allow_undefined_flag_RC
29225
29226# Flag that enforces no undefined symbols.
29227no_undefined_flag=$lt_no_undefined_flag_RC
29228
29229# Flag to hardcode \$libdir into a binary during linking.
29230# This must work even if \$libdir does not exist
29231hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29232
29233# Whether we need a single "-rpath" flag with a separated argument.
29234hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29235
29236# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29237# DIR into the resulting binary.
29238hardcode_direct=$hardcode_direct_RC
29239
29240# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29241# DIR into the resulting binary and the resulting library dependency is
29242# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29243# library is relocated.
29244hardcode_direct_absolute=$hardcode_direct_absolute_RC
29245
29246# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29247# into the resulting binary.
29248hardcode_minus_L=$hardcode_minus_L_RC
29249
29250# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29251# into the resulting binary.
29252hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29253
29254# Set to "yes" if building a shared library automatically hardcodes DIR
29255# into the library and all subsequent libraries and executables linked
29256# against it.
29257hardcode_automatic=$hardcode_automatic_RC
29258
29259# Set to yes if linker adds runtime paths of dependent libraries
29260# to runtime path list.
29261inherit_rpath=$inherit_rpath_RC
29262
29263# Whether libtool must link a program against all its dependency libraries.
29264link_all_deplibs=$link_all_deplibs_RC
29265
29266# Set to "yes" if exported symbols are required.
29267always_export_symbols=$always_export_symbols_RC
29268
29269# The commands to list exported symbols.
29270export_symbols_cmds=$lt_export_symbols_cmds_RC
29271
29272# Symbols that should not be listed in the preloaded symbols.
29273exclude_expsyms=$lt_exclude_expsyms_RC
29274
29275# Symbols that must always be exported.
29276include_expsyms=$lt_include_expsyms_RC
29277
29278# Commands necessary for linking programs (against libraries) with templates.
29279prelink_cmds=$lt_prelink_cmds_RC
29280
29281# Commands necessary for finishing linking programs.
29282postlink_cmds=$lt_postlink_cmds_RC
29283
29284# Specify filename containing input files.
29285file_list_spec=$lt_file_list_spec_RC
29286
29287# How to hardcode a shared library path into an executable.
29288hardcode_action=$hardcode_action_RC
29289
29290# The directories searched by this compiler when creating a shared library.
29291compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
29292
29293# Dependencies to place before and after the objects being linked to
29294# create a shared library.
29295predep_objects=$lt_predep_objects_RC
29296postdep_objects=$lt_postdep_objects_RC
29297predeps=$lt_predeps_RC
29298postdeps=$lt_postdeps_RC
29299
29300# The library search path used internally by the compiler when linking
29301# a shared library.
29302compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29303
29304# ### END LIBTOOL TAG CONFIG: RC
29305_LT_EOF
29306
29307 ;;
29308    "src/gpgme-config":F) chmod +x src/gpgme-config ;;
29309    "lang/python/setup.py":F) chmod a+x lang/python/setup.py ;;
29310
29311  esac
29312done # for ac_tag
29313
29314
29315as_fn_exit 0
29316_ACEOF
29317ac_clean_files=$ac_clean_files_save
29318
29319test $ac_write_fail = 0 ||
29320  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29321
29322
29323# configure is writing to config.log, and then calls config.status.
29324# config.status does its own redirection, appending to config.log.
29325# Unfortunately, on DOS this fails, as config.log is still kept open
29326# by configure, so config.status won't be able to write to it; its
29327# output is simply discarded.  So we exec the FD to /dev/null,
29328# effectively closing config.log, so it can be properly (re)opened and
29329# appended to by config.status.  When coming back to configure, we
29330# need to make the FD available again.
29331if test "$no_create" != yes; then
29332  ac_cs_success=:
29333  ac_config_status_args=
29334  test "$silent" = yes &&
29335    ac_config_status_args="$ac_config_status_args --quiet"
29336  exec 5>/dev/null
29337  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29338  exec 5>>config.log
29339  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29340  # would make configure fail if this is the last instruction.
29341  $ac_cs_success || as_fn_exit 1
29342fi
29343if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29345$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29346fi
29347
29348
29349echo "
29350        GPGME v${VERSION} has been configured as follows:
29351
29352        Revision:          bb988077  (48024)
29353        Platform:          $host
29354
29355        UI Server:         $uiserver
29356        FD Passing:        $use_descriptor_passing
29357
29358        Language bindings: ${enabled_languages_v:-$enabled_languages}
29359"
29360if test "x${gpg_config_script_warn}" != x; then
29361cat <<G10EOF
29362        Mismatches between the target platform and the to
29363        be used libraries have been been detected for:
29364         ${gpg_config_script_warn}
29365        Please check above for warning messages.
29366
29367G10EOF
29368fi
29369