Imported Upstream version 1.15.0
[platform/upstream/gpgme.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.15.0.
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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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   }
81 fi
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.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104      ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export 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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -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
201 test \$(( 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
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
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
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
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
244 fi; }
245 IFS=$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.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $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
267 exit 255
268 fi
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
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_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.
316 as_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.
326 as_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.
374 as_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.
384 if (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   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # 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.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # 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.
419 as_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
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_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.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_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
511 ECHO_C= ECHO_N= ECHO_T=
512 case `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';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (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
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_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.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 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.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='gpgme'
592 PACKAGE_TARNAME='gpgme'
593 PACKAGE_VERSION='1.15.0'
594 PACKAGE_STRING='gpgme 1.15.0'
595 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/gpgme.h.in"
599 # Factoring default headers for most tests.
600 ac_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
635 ac_header_list=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 emacs_local_vars_end
639 emacs_local_vars_read_only
640 emacs_local_vars_begin
641 LTLIBOBJS
642 GPGME_CONFIG_AVAIL_LANG
643 GPGME_CONFIG_HOST
644 GPGME_CONFIG_CFLAGS
645 GPGME_CONFIG_LIBS
646 GPGME_CONFIG_API_VERSION
647 HAVE_UISERVER_FALSE
648 HAVE_UISERVER_TRUE
649 USE_DESCRIPTOR_PASSING_FALSE
650 USE_DESCRIPTOR_PASSING_TRUE
651 LIBASSUAN_LIBS
652 LIBASSUAN_CFLAGS
653 LIBASSUAN_CONFIG
654 GPG_ERROR_MT_LIBS
655 GPG_ERROR_MT_CFLAGS
656 GPG_ERROR_LIBS
657 GPG_ERROR_CFLAGS
658 GPGRT_CONFIG
659 GPG_ERROR_CONFIG
660 GLIBC21
661 LIBOBJS
662 API__SSIZE_T
663 API__OFF_T
664 INSERT__TYPEDEFS_FOR_GPGME_H
665 NEED__FILE_OFFSET_BITS
666 RUN_G13_TESTS_FALSE
667 RUN_G13_TESTS_TRUE
668 RUN_GPGSM_TESTS_FALSE
669 RUN_GPGSM_TESTS_TRUE
670 RUN_GPG_TESTS_FALSE
671 RUN_GPG_TESTS_TRUE
672 RUN_GPGCONF_TESTS_FALSE
673 RUN_GPGCONF_TESTS_TRUE
674 BUILD_TIMESTAMP
675 BUILD_FILEVERSION
676 BUILD_VERSION
677 BUILD_REVISION
678 ENABLED_LANGUAGES
679 PYTHONS
680 PYTHON_EXTRA_LDFLAGS
681 PYTHON_EXTRA_LIBS
682 PYTHON_SITE_PKG
683 PYTHON_LDFLAGS
684 PYTHON_CPPFLAGS
685 pkgpyexecdir
686 pyexecdir
687 pkgpythondir
688 pythondir
689 PYTHON_PLATFORM
690 PYTHON_EXEC_PREFIX
691 PYTHON_PREFIX
692 PYTHON_VERSION
693 PYTHON
694 SWIG_LIB
695 SWIG
696 HAVE_DOT
697 HAVE_DOXYGEN_FALSE
698 HAVE_DOXYGEN_TRUE
699 GRAPHVIZ
700 DOXYGEN
701 QTCHOOSER
702 MOC2
703 MOC
704 GPGME_QTTEST_LIBS
705 GPGME_QTTEST_CFLAGS
706 GPGME_QT_LIBS
707 GPGME_QT_CFLAGS
708 HAVE_CXX11
709 BUILD_W32_GLIB_FALSE
710 BUILD_W32_GLIB_TRUE
711 HAVE_MACOS_SYSTEM_FALSE
712 HAVE_MACOS_SYSTEM_TRUE
713 HAVE_ANDROID_SYSTEM_FALSE
714 HAVE_ANDROID_SYSTEM_TRUE
715 HAVE_W64_SYSTEM_FALSE
716 HAVE_W64_SYSTEM_TRUE
717 HAVE_W32_SYSTEM_FALSE
718 HAVE_W32_SYSTEM_TRUE
719 HAVE_DOSISH_SYSTEM_FALSE
720 HAVE_DOSISH_SYSTEM_TRUE
721 GLIB_MKENUMS
722 GOBJECT_QUERY
723 GLIB_GENMARSHAL
724 GLIB_LIBS
725 GLIB_CFLAGS
726 PKG_CONFIG
727 HAVE_LD_VERSION_SCRIPT_FALSE
728 HAVE_LD_VERSION_SCRIPT_TRUE
729 RC
730 CXXCPP
731 OTOOL64
732 OTOOL
733 LIPO
734 NMEDIT
735 DSYMUTIL
736 MANIFEST_TOOL
737 RANLIB
738 ac_ct_AR
739 AR
740 LN_S
741 NM
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 SED
747 LIBTOOL
748 OBJDUMP
749 DLLTOOL
750 AS
751 CC_FOR_BUILD
752 VERSION_NUMBER
753 VERSION_MICRO
754 VERSION_MINOR
755 VERSION_MAJOR
756 GITLOG_TO_CHANGELOG
757 am__fastdepCXX_FALSE
758 am__fastdepCXX_TRUE
759 CXXDEPMODE
760 ac_ct_CXX
761 CXXFLAGS
762 CXX
763 LDADD_FOR_TESTS_KLUDGE
764 EGREP
765 GREP
766 CPP
767 am__fastdepCC_FALSE
768 am__fastdepCC_TRUE
769 CCDEPMODE
770 am__nodep
771 AMDEPBACKSLASH
772 AMDEP_FALSE
773 AMDEP_TRUE
774 am__include
775 DEPDIR
776 OBJEXT
777 EXEEXT
778 ac_ct_CC
779 CPPFLAGS
780 LDFLAGS
781 CFLAGS
782 CC
783 SYSROOT
784 host_os
785 host_vendor
786 host_cpu
787 host
788 build_os
789 build_vendor
790 build_cpu
791 build
792 MAINT
793 MAINTAINER_MODE_FALSE
794 MAINTAINER_MODE_TRUE
795 AM_BACKSLASH
796 AM_DEFAULT_VERBOSITY
797 AM_DEFAULT_V
798 AM_V
799 am__untar
800 am__tar
801 AMTAR
802 am__leading_dot
803 SET_MAKE
804 AWK
805 mkdir_p
806 MKDIR_P
807 INSTALL_STRIP_PROGRAM
808 STRIP
809 install_sh
810 MAKEINFO
811 AUTOHEADER
812 AUTOMAKE
813 AUTOCONF
814 ACLOCAL
815 VERSION
816 PACKAGE
817 CYGPATH_W
818 am__isrc
819 INSTALL_DATA
820 INSTALL_SCRIPT
821 INSTALL_PROGRAM
822 LIBQGPGME_LT_REVISION
823 LIBQGPGME_LT_AGE
824 LIBQGPGME_LT_CURRENT
825 LIBGPGMEPP_LT_REVISION
826 LIBGPGMEPP_LT_AGE
827 LIBGPGMEPP_LT_CURRENT
828 LIBGPGME_LT_REVISION
829 LIBGPGME_LT_AGE
830 LIBGPGME_LT_CURRENT
831 target_alias
832 host_alias
833 build_alias
834 LIBS
835 ECHO_T
836 ECHO_N
837 ECHO_C
838 DEFS
839 mandir
840 localedir
841 libdir
842 psdir
843 pdfdir
844 dvidir
845 htmldir
846 infodir
847 docdir
848 oldincludedir
849 includedir
850 runstatedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL
870 am__quote'
871 ac_subst_files=''
872 ac_user_opts='
873 enable_option_checking
874 enable_silent_rules
875 enable_maintainer_mode
876 enable_dependency_tracking
877 enable_static
878 enable_shared
879 with_pic
880 enable_fast_install
881 with_gnu_ld
882 with_sysroot
883 enable_libtool_lock
884 enable_glibtest
885 enable_w32_glib
886 enable_fixed_path
887 enable_languages
888 enable_build_timestamp
889 enable_gpgconf_test
890 enable_gpg_test
891 enable_gpgsm_test
892 enable_g13_test
893 enable_largefile
894 with_libgpg_error_prefix
895 with_gpg_error_prefix
896 with_libassuan_prefix
897 enable_fd_passing
898 enable_linux_getdents
899 '
900       ac_precious_vars='build_alias
901 host_alias
902 target_alias
903 SYSROOT
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 CXX
911 CXXFLAGS
912 CCC
913 CC_FOR_BUILD
914 CXXCPP
915 PKG_CONFIG
916 GPGME_QT_CFLAGS
917 GPGME_QT_LIBS
918 GPGME_QTTEST_CFLAGS
919 GPGME_QTTEST_LIBS
920 PYTHON
921 PYTHON_VERSION'
922
923
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_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.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 runstatedir='${localstatedir}/run'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
972
973 ac_prev=
974 ac_dashdash=
975 for ac_option
976 do
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'
1318 Try \`$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
1340 done
1341
1342 if test -n "$ac_prev"; then
1343   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344   as_fn_error $? "missing argument to $ac_option"
1345 fi
1346
1347 if 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
1353 fi
1354
1355 # Check all directory arguments for consistency.
1356 for 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
1360 do
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"
1374 done
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.
1379 build=$build_alias
1380 host=$host_alias
1381 target=$target_alias
1382
1383 # FIXME: To remove some day.
1384 if 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
1390 fi
1391
1392 ac_tool_prefix=
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395 test "$silent" = yes && exec 6>/dev/null
1396
1397
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401   as_fn_error $? "working directory cannot be determined"
1402 test "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.
1407 if 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
1437 else
1438   ac_srcdir_defaulted=no
1439 fi
1440 if 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"
1443 fi
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
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.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for 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}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if 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.0 to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
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
1492 Installation 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
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine 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
1530 Program 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
1535 System 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
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542   case $ac_init_help in
1543      short | recursive ) echo "Configuration of gpgme 1.15.0:";;
1544    esac
1545   cat <<\_ACEOF
1546
1547 Optional 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
1583 Optional 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
1597 Some 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
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1629
1630 Report bugs to <https://bugs.gnupg.org>.
1631 _ACEOF
1632 ac_status=$?
1633 fi
1634
1635 if 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
1643 case "$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 ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1658
1659 case $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 ;;
1672 esac
1673 ac_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
1688 fi
1689
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692   cat <<\_ACEOF
1693 gpgme configure 1.15.0
1694 generated by GNU Autoconf 2.69
1695
1696 Copyright (C) 2012 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700   exit
1701 fi
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.
1710 ac_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"
1715 case "(($ac_try" in
1716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717   *) ac_try_echo=$ac_try;;
1718 esac
1719 eval 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
1734 else
1735   $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738         ac_retval=1
1739 fi
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.
1748 ac_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"
1752 case "(($ac_try" in
1753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754   *) ac_try_echo=$ac_try;;
1755 esac
1756 eval 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
1771 else
1772   $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775     ac_retval=1
1776 fi
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.
1787 ac_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; }
1793 if eval \${$3+:} false; then :
1794   $as_echo_n "(cached) " >&6
1795 fi
1796 eval ac_res=\$$3
1797                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 else
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; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h.  */
1805 $4
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809   ac_header_compiler=yes
1810 else
1811   ac_header_compiler=no
1812 fi
1813 rm -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; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h.  */
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_cpp "$LINENO"; then :
1825   ac_header_preproc=yes
1826 else
1827   ac_header_preproc=no
1828 fi
1829 rm -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?
1834 case $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     ;;
1857 esac
1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861   $as_echo_n "(cached) " >&6
1862 else
1863   eval "$3=\$ac_header_compiler"
1864 fi
1865 eval ac_res=\$$3
1866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 fi
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.
1877 ac_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"
1881 case "(($ac_try" in
1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883   *) ac_try_echo=$ac_try;;
1884 esac
1885 eval 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;;
1894 esac
1895 eval 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
1902 else
1903   $as_echo "$as_me: program exited with status $ac_status" >&5
1904        $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907        ac_retval=$ac_status
1908 fi
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.
1919 ac_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; }
1924 if eval \${$3+:} false; then :
1925   $as_echo_n "(cached) " >&6
1926 else
1927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h.  */
1929 $4
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933   eval "$3=yes"
1934 else
1935   eval "$3=no"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval 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.
1949 ac_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"
1954 case "(($ac_try" in
1955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956   *) ac_try_echo=$ac_try;;
1957 esac
1958 eval 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
1976 else
1977   $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980         ac_retval=1
1981 fi
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.
1995 ac_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"
2000 case "(($ac_try" in
2001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002   *) ac_try_echo=$ac_try;;
2003 esac
2004 eval 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
2019 else
2020   $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023         ac_retval=1
2024 fi
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
2033 ac_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; }
2038 if eval \${$3+:} false; then :
2039   $as_echo_n "(cached) " >&6
2040 else
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
2064 extern "C"
2065 #endif
2066 char $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
2071 choke me
2072 #endif
2073
2074 int
2075 main ()
2076 {
2077 return $2 ();
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_link "$LINENO"; then :
2083   eval "$3=yes"
2084 else
2085   eval "$3=no"
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext \
2088     conftest$ac_exeext conftest.$ac_ext
2089 fi
2090 eval 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.
2100 ac_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"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval 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
2123 else
2124   $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127     ac_retval=1
2128 fi
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.
2137 ac_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"
2142 case "(($ac_try" in
2143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144   *) ac_try_echo=$ac_try;;
2145 esac
2146 eval 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
2164 else
2165   $as_echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168         ac_retval=1
2169 fi
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
2185 ac_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.
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h.  */
2192 $4
2193 int
2194 main ()
2195 {
2196 static int test_array [1 - 2 * !(($2) >= 0)];
2197 test_array [0] = 0;
2198 return test_array [0];
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if 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
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 test_array [0] = 0;
2215 return test_array [0];
2216
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222   ac_hi=$ac_mid; break
2223 else
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
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232   done
2233 else
2234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h.  */
2236 $4
2237 int
2238 main ()
2239 {
2240 static int test_array [1 - 2 * !(($2) < 0)];
2241 test_array [0] = 0;
2242 return test_array [0];
2243
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 if 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
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2258 test_array [0] = 0;
2259 return test_array [0];
2260
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266   ac_lo=$ac_mid; break
2267 else
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
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276   done
2277 else
2278   ac_lo= ac_hi=
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 # Binary search between lo and hi bounds.
2284 while 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
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2293 test_array [0] = 0;
2294 return test_array [0];
2295
2296   ;
2297   return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301   ac_hi=$ac_mid
2302 else
2303   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 done
2307 case $ac_lo in #((
2308 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2309 '') ac_retval=1 ;;
2310 esac
2311   else
2312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h.  */
2314 $4
2315 static long int longval () { return $2; }
2316 static unsigned long int ulongval () { return $2; }
2317 #include <stdio.h>
2318 #include <stdlib.h>
2319 int
2320 main ()
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
2348 if ac_fn_c_try_run "$LINENO"; then :
2349   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2350 else
2351   ac_retval=1
2352 fi
2353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2354   conftest.$ac_objext conftest.beam conftest.$ac_ext
2355 rm -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.
2367 ac_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; }
2372 if eval \${$3+:} false; then :
2373   $as_echo_n "(cached) " >&6
2374 else
2375   eval "$3=no"
2376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h.  */
2378 $4
2379 int
2380 main ()
2381 {
2382 if (sizeof ($2))
2383          return 0;
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h.  */
2391 $4
2392 int
2393 main ()
2394 {
2395 if (sizeof (($2)))
2396             return 0;
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 if ac_fn_c_try_compile "$LINENO"; then :
2402
2403 else
2404   eval "$3=yes"
2405 fi
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 fi
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 fi
2410 eval 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.
2421 ac_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; }
2428 if eval \${$3+:} false; then :
2429   $as_echo_n "(cached) " >&6
2430 else
2431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h.  */
2433 $4
2434 int
2435 main ()
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
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450   eval "$3=yes"
2451 else
2452   eval "$3=no"
2453 fi
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 fi
2456 eval 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.
2467 ac_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; }
2472 if eval \${$4+:} false; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h.  */
2477 $5
2478 int
2479 main ()
2480 {
2481 static $2 ac_aggr;
2482 if (ac_aggr.$3)
2483 return 0;
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489   eval "$4=yes"
2490 else
2491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h.  */
2493 $5
2494 int
2495 main ()
2496 {
2497 static $2 ac_aggr;
2498 if (sizeof ac_aggr.$3)
2499 return 0;
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505   eval "$4=yes"
2506 else
2507   eval "$4=no"
2508 fi
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 fi
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 fi
2513 eval 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
2519 cat >config.log <<_ACEOF
2520 This file contains any messages produced by compilers while
2521 running configure, to aid debugging if configure makes a mistake.
2522
2523 It was created by gpgme $as_me 1.15.0, which was
2524 generated by GNU Autoconf 2.69.  Invocation command line was
2525
2526   $ $0 $@
2527
2528 _ACEOF
2529 exec 5>>config.log
2530 {
2531 cat <<_ASUNAME
2532 ## --------- ##
2533 ## Platform. ##
2534 ## --------- ##
2535
2536 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2537 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2538 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2539 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2540 uname -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
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558   IFS=$as_save_IFS
2559   test -z "$as_dir" && as_dir=.
2560     $as_echo "PATH: $as_dir"
2561   done
2562 IFS=$as_save_IFS
2563
2564 } >&5
2565
2566 cat >&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.
2581 ac_configure_args=
2582 ac_configure_args0=
2583 ac_configure_args1=
2584 ac_must_keep_next=false
2585 for ac_pass in 1 2
2586 do
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
2620 done
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.
2629 trap '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
2716 for ac_signal in 1 2 13 15; do
2717   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2718 done
2719 ac_signal=0
2720
2721 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2722 rm -f -r conftest* confdefs.h
2723
2724 $as_echo "/* confdefs.h */" > confdefs.h
2725
2726 # Predefined preprocessor variables.
2727
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE_NAME "$PACKAGE_NAME"
2730 _ACEOF
2731
2732 cat >>confdefs.h <<_ACEOF
2733 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2734 _ACEOF
2735
2736 cat >>confdefs.h <<_ACEOF
2737 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2738 _ACEOF
2739
2740 cat >>confdefs.h <<_ACEOF
2741 #define PACKAGE_STRING "$PACKAGE_STRING"
2742 _ACEOF
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2746 _ACEOF
2747
2748 cat >>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.
2755 ac_site_file1=NONE
2756 ac_site_file2=NONE
2757 if 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
2764 elif test "x$prefix" != xNONE; then
2765   ac_site_file1=$prefix/share/config.site
2766   ac_site_file2=$prefix/etc/config.site
2767 else
2768   ac_site_file1=$ac_default_prefix/share/config.site
2769   ac_site_file2=$ac_default_prefix/etc/config.site
2770 fi
2771 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2772 do
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;}
2781 as_fn_error $? "failed to load site script $ac_site_file
2782 See \`config.log' for more details" "$LINENO" 5; }
2783   fi
2784 done
2785
2786 if 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
2797 else
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
2801 fi
2802
2803 as_fn_append ac_header_list " locale.h"
2804 as_fn_append ac_header_list " sys/select.h"
2805 as_fn_append ac_header_list " sys/uio.h"
2806 as_fn_append ac_header_list " argp.h"
2807 as_fn_append ac_header_list " stdint.h"
2808 as_fn_append ac_header_list " unistd.h"
2809 as_fn_append ac_header_list " sys/time.h"
2810 as_fn_append ac_header_list " sys/types.h"
2811 as_fn_append ac_header_list " sys/stat.h"
2812 # Check that the precious variables saved in the cache have kept the same
2813 # value.
2814 ac_cache_corrupted=false
2815 for 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
2861 done
2862 if $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
2868 fi
2869 ## -------------------- ##
2870 ## Main body of script. ##
2871 ## -------------------- ##
2872
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_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 #
2887 LIBGPGME_LT_CURRENT=35
2888 LIBGPGME_LT_AGE=24
2889 LIBGPGME_LT_REVISION=0
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
2894 LIBGPGMEPP_LT_CURRENT=18
2895 LIBGPGMEPP_LT_AGE=12
2896 LIBGPGMEPP_LT_REVISION=0
2897
2898 LIBQGPGME_LT_CURRENT=12
2899 LIBQGPGME_LT_AGE=5
2900 LIBQGPGME_LT_REVISION=0
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.
2916 GPGME_CONFIG_API_VERSION=1
2917 ##############################################
2918
2919 NEED_GPG_ERROR_VERSION=1.36
2920 NEED_LIBASSUAN_API=2
2921 NEED_LIBASSUAN_VERSION=2.4.2
2922
2923
2924 VERSION_MAJOR=1
2925 VERSION_MINOR=15
2926 VERSION_MICRO=0
2927
2928 ac_aux_dir=
2929 for 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
2943 done
2944 if 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
2946 fi
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.
2952 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2953 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2954 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2955
2956
2957
2958
2959 ac_config_headers="$ac_config_headers conf/config.h"
2960
2961 am__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; }
2979 if test -z "$INSTALL"; then
2980 if ${ac_cv_path_install+:} false; then :
2981   $as_echo_n "(cached) " >&6
2982 else
2983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     # Account for people who put trailing slashes in PATH elements.
2989 case $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     ;;
3027 esac
3028
3029   done
3030 IFS=$as_save_IFS
3031
3032 rm -rf conftest.one conftest.two conftest.dir
3033
3034 fi
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
3044 fi
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.
3050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3051
3052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3053
3054 test -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.
3060 am_lf='
3061 '
3062 case `pwd` in
3063   *[\\\"\#\$\&\'\`$am_lf]*)
3064     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3065 esac
3066 case $srcdir in
3067   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3068     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3069 esac
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).
3076 if (
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    )
3104 then
3105    # Ok.
3106    :
3107 else
3108    as_fn_error $? "newly created file is older than distributed files!
3109 Check your system clock" "$LINENO" 5
3110 fi
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.
3115 am_sleep_pid=
3116 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3117   ( sleep 1 ) &
3118   am_sleep_pid=$!
3119 fi
3120
3121 rm -f conftest.file
3122
3123 test "$program_prefix" != NONE &&
3124   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3125 # Use a double $ so make ignores it.
3126 test "$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.
3130 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3131 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3132
3133 # Expand $ac_aux_dir to an absolute path.
3134 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3135
3136 if 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
3143 fi
3144 # Use eval to expand $SHELL
3145 if eval "$MISSING --is-lightweight"; then
3146   am_missing_run="$MISSING "
3147 else
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;}
3151 fi
3152
3153 if 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
3160 fi
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.
3166 if 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.
3169 set 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; }
3172 if ${ac_cv_prog_STRIP+:} false; then :
3173   $as_echo_n "(cached) " >&6
3174 else
3175   if test -n "$STRIP"; then
3176   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
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
3189 done
3190   done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 STRIP=$ac_cv_prog_STRIP
3196 if test -n "$STRIP"; then
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3198 $as_echo "$STRIP" >&6; }
3199 else
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205 fi
3206 if 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.
3209 set 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; }
3212 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3213   $as_echo_n "(cached) " >&6
3214 else
3215   if test -n "$ac_ct_STRIP"; then
3216   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
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
3229 done
3230   done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3236 if 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; }
3239 else
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244   if test "x$ac_ct_STRIP" = x; then
3245     STRIP=":"
3246   else
3247     case $cross_compiling:$ac_tool_warned in
3248 yes:)
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;}
3251 ac_tool_warned=yes ;;
3252 esac
3253     STRIP=$ac_ct_STRIP
3254   fi
3255 else
3256   STRIP="$ac_cv_prog_STRIP"
3257 fi
3258
3259 fi
3260 INSTALL_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; }
3264 if test -z "$MKDIR_P"; then
3265   if ${ac_cv_path_mkdir+:} false; then :
3266   $as_echo_n "(cached) " >&6
3267 else
3268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3270 do
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
3286 IFS=$as_save_IFS
3287
3288 fi
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
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3302 $as_echo "$MKDIR_P" >&6; }
3303
3304 for ac_prog in gawk mawk nawk awk
3305 do
3306   # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set 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; }
3310 if ${ac_cv_prog_AWK+:} false; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   if test -n "$AWK"; then
3314   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
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
3327 done
3328   done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 AWK=$ac_cv_prog_AWK
3334 if test -n "$AWK"; then
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3336 $as_echo "$AWK" >&6; }
3337 else
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343   test -n "$AWK" && break
3344 done
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; }
3348 set x ${MAKE-make}
3349 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3350 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3351   $as_echo_n "(cached) " >&6
3352 else
3353   cat >conftest.make <<\_ACEOF
3354 SHELL = /bin/sh
3355 all:
3356         @echo '@@@%%%=$(MAKE)=@@@%%%'
3357 _ACEOF
3358 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3359 case `${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;;
3364 esac
3365 rm -f conftest.make
3366 fi
3367 if 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=
3371 else
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374   SET_MAKE="MAKE=${MAKE-make}"
3375 fi
3376
3377 rm -rf .tst 2>/dev/null
3378 mkdir .tst 2>/dev/null
3379 if test -d .tst; then
3380   am__leading_dot=.
3381 else
3382   am__leading_dot=_
3383 fi
3384 rmdir .tst 2>/dev/null
3385
3386 # Check whether --enable-silent-rules was given.
3387 if test "${enable_silent_rules+set}" = set; then :
3388   enableval=$enable_silent_rules;
3389 fi
3390
3391 case $enable_silent_rules in # (((
3392   yes) AM_DEFAULT_VERBOSITY=0;;
3393    no) AM_DEFAULT_VERBOSITY=1;;
3394     *) AM_DEFAULT_VERBOSITY=1;;
3395 esac
3396 am_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; }
3399 if ${am_cv_make_support_nested_variables+:} false; then :
3400   $as_echo_n "(cached) " >&6
3401 else
3402   if $as_echo 'TRUE=$(BAR$(V))
3403 BAR0=false
3404 BAR1=true
3405 V=1
3406 am__doit:
3407         @$(TRUE)
3408 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3409   am_cv_make_support_nested_variables=yes
3410 else
3411   am_cv_make_support_nested_variables=no
3412 fi
3413 fi
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; }
3416 if test $am_cv_make_support_nested_variables = yes; then
3417     AM_V='$(V)'
3418   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3419 else
3420   AM_V=$AM_DEFAULT_VERBOSITY
3421   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3422 fi
3423 AM_BACKSLASH='\'
3424
3425 if 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
3433 fi
3434
3435 # test whether we have cygpath
3436 if 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
3442 fi
3443
3444
3445 # Define the identity of the package.
3446  PACKAGE='gpgme'
3447  VERSION='1.15.0'
3448
3449
3450 cat >>confdefs.h <<_ACEOF
3451 #define PACKAGE "$PACKAGE"
3452 _ACEOF
3453
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define VERSION "$VERSION"
3457 _ACEOF
3458
3459 # Some tools Automake needs.
3460
3461 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3462
3463
3464 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3465
3466
3467 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3468
3469
3470 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3471
3472
3473 MAKEINFO=${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>
3479 mkdir_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 ...
3485 AMTAR='$${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
3491 am__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.
3506 if rm -f && rm -fr && rm -rf; then : OK; else
3507   cat >&2 <<'END'
3508 Oops!
3509
3510 Your 'rm' program seems unable to run without file operands specified
3511 on the command line, even when the '-f' option is present.  This is contrary
3512 to the behaviour of most rm programs out there, and not conforming with
3513 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3514
3515 Please tell bug-automake@gnu.org about your system, including the value
3516 of your $PATH and any error possibly output before this message.  This
3517 can help us improve future automake versions.
3518
3519 END
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'
3526 Aborting the configuration process, to ensure you take notice of the issue.
3527
3528 You can download and install GNU coreutils to get an 'rm' implementation
3529 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3530
3531 If you want to complete the configuration process using your problematic
3532 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3533 to "yes", and re-run configure.
3534
3535 END
3536     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3537   fi
3538 fi
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.
3544 if test "${enable_maintainer_mode+set}" = set; then :
3545   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3546 else
3547   USE_MAINTAINER_MODE=no
3548 fi
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='#'
3555 else
3556   MAINTAINER_MODE_TRUE='#'
3557   MAINTAINER_MODE_FALSE=
3558 fi
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; }
3569 if ${ac_cv_build+:} false; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   ac_build_alias=$build_alias
3573 test "x$ac_build_alias" = x &&
3574   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3575 test "x$ac_build_alias" = x &&
3576   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3577 ac_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
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3582 $as_echo "$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3584 *-*-*) ;;
3585 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3586 esac
3587 build=$ac_cv_build
3588 ac_save_IFS=$IFS; IFS='-'
3589 set x $ac_cv_build
3590 shift
3591 build_cpu=$1
3592 build_vendor=$2
3593 shift; shift
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3596 build_os=$*
3597 IFS=$ac_save_IFS
3598 case $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; }
3603 if ${ac_cv_host+:} false; then :
3604   $as_echo_n "(cached) " >&6
3605 else
3606   if test "x$host_alias" = x; then
3607   ac_cv_host=$ac_cv_build
3608 else
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
3611 fi
3612
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3615 $as_echo "$ac_cv_host" >&6; }
3616 case $ac_cv_host in
3617 *-*-*) ;;
3618 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3619 esac
3620 host=$ac_cv_host
3621 ac_save_IFS=$IFS; IFS='-'
3622 set x $ac_cv_host
3623 shift
3624 host_cpu=$1
3625 host_vendor=$2
3626 shift; shift
3627 # Remember, the first character of IFS is used to create $*,
3628 # except with old shells:
3629 host_os=$*
3630 IFS=$ac_save_IFS
3631 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3632
3633
3634 # Check whether --enable-silent-rules was given.
3635 if test "${enable_silent_rules+set}" = set; then :
3636   enableval=$enable_silent_rules;
3637 fi
3638
3639 case $enable_silent_rules in # (((
3640   yes) AM_DEFAULT_VERBOSITY=0;;
3641    no) AM_DEFAULT_VERBOSITY=1;;
3642     *) AM_DEFAULT_VERBOSITY=1;;
3643 esac
3644 am_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; }
3647 if ${am_cv_make_support_nested_variables+:} false; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   if $as_echo 'TRUE=$(BAR$(V))
3651 BAR0=false
3652 BAR1=true
3653 V=1
3654 am__doit:
3655         @$(TRUE)
3656 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3657   am_cv_make_support_nested_variables=yes
3658 else
3659   am_cv_make_support_nested_variables=no
3660 fi
3661 fi
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; }
3664 if test $am_cv_make_support_nested_variables = yes; then
3665     AM_V='$(V)'
3666   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3667 else
3668   AM_V=$AM_DEFAULT_VERBOSITY
3669   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3670 fi
3671 AM_BACKSLASH='\'
3672
3673
3674
3675 # Enable GNU extensions on systems that have them.
3676 DEPDIR="${am__leading_dot}deps"
3677
3678 ac_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; }
3682 cat > confinc.mk << 'END'
3683 am__doit:
3684         @echo this is the am__doit target >confinc.out
3685 .PHONY: am__doit
3686 END
3687 am__include="#"
3688 am__quote=
3689 # BSD make does it like this.
3690 echo '.include "confinc.mk" # ignored' > confmf.BSD
3691 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3692 echo 'include confinc.mk # ignored' > confmf.GNU
3693 _am_result=no
3694 for 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='' ;;
3707 esac ;; #(
3708   *) :
3709      ;;
3710 esac
3711   if test "$am__include" != "#"; then
3712     _am_result="yes ($s style)"
3713     break
3714   fi
3715 done
3716 rm -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.
3721 if test "${enable_dependency_tracking+set}" = set; then :
3722   enableval=$enable_dependency_tracking;
3723 fi
3724
3725 if test "x$enable_dependency_tracking" != xno; then
3726   am_depcomp="$ac_aux_dir/depcomp"
3727   AMDEPBACKSLASH='\'
3728   am__nodep='_no'
3729 fi
3730  if test "x$enable_dependency_tracking" != xno; then
3731   AMDEP_TRUE=
3732   AMDEP_FALSE='#'
3733 else
3734   AMDEP_TRUE='#'
3735   AMDEP_FALSE=
3736 fi
3737
3738
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 if 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.
3746 set 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; }
3749 if ${ac_cv_prog_CC+:} false; then :
3750   $as_echo_n "(cached) " >&6
3751 else
3752   if test -n "$CC"; then
3753   ac_cv_prog_CC="$CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
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
3766 done
3767   done
3768 IFS=$as_save_IFS
3769
3770 fi
3771 fi
3772 CC=$ac_cv_prog_CC
3773 if test -n "$CC"; then
3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3776 else
3777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 fi
3780
3781
3782 fi
3783 if 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.
3786 set 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; }
3789 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   if test -n "$ac_ct_CC"; then
3793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
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
3806 done
3807   done
3808 IFS=$as_save_IFS
3809
3810 fi
3811 fi
3812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813 if 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; }
3816 else
3817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3819 fi
3820
3821   if test "x$ac_ct_CC" = x; then
3822     CC=""
3823   else
3824     case $cross_compiling:$ac_tool_warned in
3825 yes:)
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;}
3828 ac_tool_warned=yes ;;
3829 esac
3830     CC=$ac_ct_CC
3831   fi
3832 else
3833   CC="$ac_cv_prog_CC"
3834 fi
3835
3836 if 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.
3839 set 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; }
3842 if ${ac_cv_prog_CC+:} false; then :
3843   $as_echo_n "(cached) " >&6
3844 else
3845   if test -n "$CC"; then
3846   ac_cv_prog_CC="$CC" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
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
3859 done
3860   done
3861 IFS=$as_save_IFS
3862
3863 fi
3864 fi
3865 CC=$ac_cv_prog_CC
3866 if test -n "$CC"; then
3867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3868 $as_echo "$CC" >&6; }
3869 else
3870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3872 fi
3873
3874
3875   fi
3876 fi
3877 if test -z "$CC"; then
3878   # Extract the first word of "cc", so it can be a program name with args.
3879 set 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; }
3882 if ${ac_cv_prog_CC+:} false; then :
3883   $as_echo_n "(cached) " >&6
3884 else
3885   if test -n "$CC"; then
3886   ac_cv_prog_CC="$CC" # Let the user override the test.
3887 else
3888   ac_prog_rejected=no
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
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
3904 done
3905   done
3906 IFS=$as_save_IFS
3907
3908 if 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
3919 fi
3920 fi
3921 fi
3922 CC=$ac_cv_prog_CC
3923 if test -n "$CC"; then
3924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3926 else
3927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3929 fi
3930
3931
3932 fi
3933 if 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.
3938 set 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; }
3941 if ${ac_cv_prog_CC+:} false; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   if test -n "$CC"; then
3945   ac_cv_prog_CC="$CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
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
3958 done
3959   done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 CC=$ac_cv_prog_CC
3965 if test -n "$CC"; then
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 $as_echo "$CC" >&6; }
3968 else
3969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 fi
3972
3973
3974     test -n "$CC" && break
3975   done
3976 fi
3977 if test -z "$CC"; then
3978   ac_ct_CC=$CC
3979   for ac_prog in cl.exe
3980 do
3981   # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set 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; }
3985 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   if test -n "$ac_ct_CC"; then
3989   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
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
4002 done
4003   done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4009 if 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; }
4012 else
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018   test -n "$ac_ct_CC" && break
4019 done
4020
4021   if test "x$ac_ct_CC" = x; then
4022     CC=""
4023   else
4024     case $cross_compiling:$ac_tool_warned in
4025 yes:)
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;}
4028 ac_tool_warned=yes ;;
4029 esac
4030     CC=$ac_ct_CC
4031   fi
4032 fi
4033
4034 fi
4035
4036
4037 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "no acceptable C compiler found in \$PATH
4040 See \`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
4044 set X $ac_compile
4045 ac_compiler=$2
4046 for ac_option in --version -v -V -qversion; do
4047   { { ac_try="$ac_compiler $ac_option >&5"
4048 case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval 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; }
4065 done
4066
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069
4070 int
4071 main ()
4072 {
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 ac_clean_files_save=$ac_clean_files
4079 ac_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; }
4085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4086
4087 # The possible output files:
4088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4089
4090 ac_rmfiles=
4091 for ac_file in $ac_files
4092 do
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
4097 done
4098 rm -f $ac_rmfiles
4099
4100 if { { ac_try="$ac_link_default"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval 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.
4116 for ac_file in $ac_files ''
4117 do
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
4140 done
4141 test "$ac_cv_exeext" = no && ac_cv_exeext=
4142
4143 else
4144   ac_file=''
4145 fi
4146 if 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
4150 sed '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;}
4154 as_fn_error 77 "C compiler cannot create executables
4155 See \`config.log' for more details" "$LINENO" 5; }
4156 else
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4158 $as_echo "yes" >&6; }
4159 fi
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; }
4164 ac_exeext=$ac_cv_exeext
4165
4166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4167 ac_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; }
4170 if { { ac_try="$ac_link"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval 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'.
4185 for 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
4193 done
4194 else
4195   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4198 See \`config.log' for more details" "$LINENO" 5; }
4199 fi
4200 rm -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
4204 rm -f conftest.$ac_ext
4205 EXEEXT=$ac_cv_exeext
4206 ac_exeext=$EXEEXT
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h.  */
4209 #include <stdio.h>
4210 int
4211 main ()
4212 {
4213 FILE *f = fopen ("conftest.out", "w");
4214  return ferror (f) || fclose (f) != 0;
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 ac_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; }
4225 if test "$cross_compiling" != yes; then
4226   { { ac_try="$ac_link"
4227 case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval 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;;
4241 esac
4242 eval 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;}
4255 as_fn_error $? "cannot run C compiled programs.
4256 If you meant to cross compile, use \`--host'.
4257 See \`config.log' for more details" "$LINENO" 5; }
4258     fi
4259   fi
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4262 $as_echo "$cross_compiling" >&6; }
4263
4264 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4265 ac_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; }
4268 if ${ac_cv_objext+:} false; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.o conftest.obj
4283 if { { ac_try="$ac_compile"
4284 case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval 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
4301 done
4302 else
4303   $as_echo "$as_me: failed program was:" >&5
4304 sed '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;}
4308 as_fn_error $? "cannot compute suffix of object files: cannot compile
4309 See \`config.log' for more details" "$LINENO" 5; }
4310 fi
4311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314 $as_echo "$ac_cv_objext" >&6; }
4315 OBJEXT=$ac_cv_objext
4316 ac_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; }
4319 if ${ac_cv_c_compiler_gnu+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328 #ifndef __GNUC__
4329        choke me
4330 #endif
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337   ac_compiler_gnu=yes
4338 else
4339   ac_compiler_gnu=no
4340 fi
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4343
4344 fi
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347 if test $ac_compiler_gnu = yes; then
4348   GCC=yes
4349 else
4350   GCC=
4351 fi
4352 ac_test_CFLAGS=${CFLAGS+set}
4353 ac_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; }
4356 if ${ac_cv_prog_cc_g+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
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
4366 int
4367 main ()
4368 {
4369
4370   ;
4371   return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375   ac_cv_prog_cc_g=yes
4376 else
4377   CFLAGS=""
4378       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380
4381 int
4382 main ()
4383 {
4384
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390
4391 else
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
4397 int
4398 main ()
4399 {
4400
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406   ac_cv_prog_cc_g=yes
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 fi
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413    ac_c_werror_flag=$ac_save_c_werror_flag
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416 $as_echo "$ac_cv_prog_cc_g" >&6; }
4417 if test "$ac_test_CFLAGS" = set; then
4418   CFLAGS=$ac_save_CFLAGS
4419 elif 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
4425 else
4426   if test "$GCC" = yes; then
4427     CFLAGS="-O2"
4428   else
4429     CFLAGS=
4430   fi
4431 fi
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; }
4434 if ${ac_cv_prog_cc_c89+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   ac_cv_prog_cc_c89=no
4438 ac_save_CC=$CC
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h.  */
4441 #include <stdarg.h>
4442 #include <stdio.h>
4443 struct stat;
4444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4445 struct buf { int x; };
4446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4447 static char *e (p, i)
4448      char **p;
4449      int i;
4450 {
4451   return p[i];
4452 }
4453 static 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.  */
4470 int 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'
4475 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4476
4477 int test (int i, double x);
4478 struct s1 {int (*f) (int a);};
4479 struct s2 {int (*f) (double a);};
4480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4481 int argc;
4482 char **argv;
4483 int
4484 main ()
4485 {
4486 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4492         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4493 do
4494   CC="$ac_save_CC $ac_arg"
4495   if ac_fn_c_try_compile "$LINENO"; then :
4496   ac_cv_prog_cc_c89=$ac_arg
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext
4499   test "x$ac_cv_prog_cc_c89" != "xno" && break
4500 done
4501 rm -f conftest.$ac_ext
4502 CC=$ac_save_CC
4503
4504 fi
4505 # AC_CACHE_VAL
4506 case "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; } ;;
4517 esac
4518 if test "x$ac_cv_prog_cc_c89" != xno; then :
4519
4520 fi
4521
4522 ac_ext=c
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_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; }
4535 if ${am_cv_prog_cc_c_o+:} false; then :
4536   $as_echo_n "(cached) " >&6
4537 else
4538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540
4541 int
4542 main ()
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
4569 fi
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; }
4572 if 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"
4579 fi
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586
4587 depcc="$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; }
4591 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
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
4695 else
4696   am_cv_CC_dependencies_compiler_type=none
4697 fi
4698
4699 fi
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; }
4702 CCDEPMODE=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='#'
4709 else
4710   am__fastdepCC_TRUE='#'
4711   am__fastdepCC_FALSE=
4712 fi
4713
4714
4715
4716 ac_ext=c
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_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.
4724 if test -n "$CPP" && test -d "$CPP"; then
4725   CPP=
4726 fi
4727 if test -z "$CPP"; then
4728   if ${ac_cv_prog_CPP+:} false; then :
4729   $as_echo_n "(cached) " >&6
4730 else
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
4735 for ac_c_preproc_warn_flag in '' yes
4736 do
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
4752 if ac_fn_c_try_cpp "$LINENO"; then :
4753
4754 else
4755   # Broken: fails on valid input.
4756 continue
4757 fi
4758 rm -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
4766 if ac_fn_c_try_cpp "$LINENO"; then :
4767   # Broken: success on invalid input.
4768 continue
4769 else
4770   # Passes both tests.
4771 ac_preproc_ok=:
4772 break
4773 fi
4774 rm -f conftest.err conftest.i conftest.$ac_ext
4775
4776 done
4777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778 rm -f conftest.i conftest.err conftest.$ac_ext
4779 if $ac_preproc_ok; then :
4780   break
4781 fi
4782
4783     done
4784     ac_cv_prog_CPP=$CPP
4785
4786 fi
4787   CPP=$ac_cv_prog_CPP
4788 else
4789   ac_cv_prog_CPP=$CPP
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4792 $as_echo "$CPP" >&6; }
4793 ac_preproc_ok=false
4794 for ac_c_preproc_warn_flag in '' yes
4795 do
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
4811 if ac_fn_c_try_cpp "$LINENO"; then :
4812
4813 else
4814   # Broken: fails on valid input.
4815 continue
4816 fi
4817 rm -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
4825 if ac_fn_c_try_cpp "$LINENO"; then :
4826   # Broken: success on invalid input.
4827 continue
4828 else
4829   # Passes both tests.
4830 ac_preproc_ok=:
4831 break
4832 fi
4833 rm -f conftest.err conftest.i conftest.$ac_ext
4834
4835 done
4836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837 rm -f conftest.i conftest.err conftest.$ac_ext
4838 if $ac_preproc_ok; then :
4839
4840 else
4841   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4844 See \`config.log' for more details" "$LINENO" 5; }
4845 fi
4846
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_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; }
4856 if ${ac_cv_path_GREP+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
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
4863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4864 do
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
4873 case `"$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;;
4897 esac
4898
4899       $ac_path_GREP_found && break 3
4900     done
4901   done
4902   done
4903 IFS=$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
4907 else
4908   ac_cv_path_GREP=$GREP
4909 fi
4910
4911 fi
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; }
4919 if ${ac_cv_path_EGREP+:} false; then :
4920   $as_echo_n "(cached) " >&6
4921 else
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
4929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4930 do
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
4939 case `"$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;;
4963 esac
4964
4965       $ac_path_EGREP_found && break 3
4966     done
4967   done
4968   done
4969 IFS=$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
4973 else
4974   ac_cv_path_EGREP=$EGREP
4975 fi
4976
4977    fi
4978 fi
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; }
4986 if ${ac_cv_header_stdc+:} false; then :
4987   $as_echo_n "(cached) " >&6
4988 else
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
4996 int
4997 main ()
4998 {
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005   ac_cv_header_stdc=yes
5006 else
5007   ac_cv_header_stdc=no
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010
5011 if 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
5018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019   $EGREP "memchr" >/dev/null 2>&1; then :
5020
5021 else
5022   ac_cv_header_stdc=no
5023 fi
5024 rm -f conftest*
5025
5026 fi
5027
5028 if 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
5035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5036   $EGREP "free" >/dev/null 2>&1; then :
5037
5038 else
5039   ac_cv_header_stdc=no
5040 fi
5041 rm -f conftest*
5042
5043 fi
5044
5045 if 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   :
5049 else
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)))
5066 int
5067 main ()
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
5077 if ac_fn_c_try_run "$LINENO"; then :
5078
5079 else
5080   ac_cv_header_stdc=no
5081 fi
5082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5083   conftest.$ac_objext conftest.beam conftest.$ac_ext
5084 fi
5085
5086 fi
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5089 $as_echo "$ac_cv_header_stdc" >&6; }
5090 if test $ac_cv_header_stdc = yes; then
5091
5092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5093
5094 fi
5095
5096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5097 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5098                   inttypes.h stdint.h unistd.h
5099 do :
5100   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5101 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5102 "
5103 if 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
5108 fi
5109
5110 done
5111
5112
5113
5114   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5115 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5116   MINIX=yes
5117 else
5118   MINIX=
5119 fi
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; }
5137 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h.  */
5142
5143 #         define __EXTENSIONS__ 1
5144           $ac_includes_default
5145 int
5146 main ()
5147 {
5148
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154   ac_cv_safe_to_define___extensions__=yes
5155 else
5156   ac_cv_safe_to_define___extensions__=no
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 fi
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
5176 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5177 case $host in
5178   *-*-linux*)
5179     if test -n "$LD_LIBRARY_PATH"; then
5180       saved_LDFLAGS="$LDFLAGS"
5181       LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5182       LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5183       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5184 $as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5185       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h.  */
5187
5188 int main (void) { return 0; }
5189
5190 _ACEOF
5191 if ac_fn_c_try_link "$LINENO"; then :
5192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5193 $as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5194 else
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197        LDADD_FOR_TESTS_KLUDGE=""
5198
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext \
5201     conftest$ac_exeext conftest.$ac_ext
5202       LDFLAGS="$saved_LDFLAGS"
5203     fi
5204     ;;
5205 esac
5206
5207
5208
5209
5210 ac_ext=c
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215 if test -n "$ac_tool_prefix"; then
5216   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_CC+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   if test -n "$CC"; then
5224   ac_cv_prog_CC="$CC" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231     for ac_exec_ext in '' $ac_executable_extensions; do
5232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235     break 2
5236   fi
5237 done
5238   done
5239 IFS=$as_save_IFS
5240
5241 fi
5242 fi
5243 CC=$ac_cv_prog_CC
5244 if test -n "$CC"; then
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5246 $as_echo "$CC" >&6; }
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252
5253 fi
5254 if test -z "$ac_cv_prog_CC"; then
5255   ac_ct_CC=$CC
5256   # Extract the first word of "gcc", so it can be a program name with args.
5257 set dummy gcc; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5261   $as_echo_n "(cached) " >&6
5262 else
5263   if test -n "$ac_ct_CC"; then
5264   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269   IFS=$as_save_IFS
5270   test -z "$as_dir" && as_dir=.
5271     for ac_exec_ext in '' $ac_executable_extensions; do
5272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273     ac_cv_prog_ac_ct_CC="gcc"
5274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275     break 2
5276   fi
5277 done
5278   done
5279 IFS=$as_save_IFS
5280
5281 fi
5282 fi
5283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5284 if test -n "$ac_ct_CC"; then
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5286 $as_echo "$ac_ct_CC" >&6; }
5287 else
5288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5290 fi
5291
5292   if test "x$ac_ct_CC" = x; then
5293     CC=""
5294   else
5295     case $cross_compiling:$ac_tool_warned in
5296 yes:)
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5300 esac
5301     CC=$ac_ct_CC
5302   fi
5303 else
5304   CC="$ac_cv_prog_CC"
5305 fi
5306
5307 if test -z "$CC"; then
5308           if test -n "$ac_tool_prefix"; then
5309     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5310 set dummy ${ac_tool_prefix}cc; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_prog_CC+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   if test -n "$CC"; then
5317   ac_cv_prog_CC="$CC" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322   IFS=$as_save_IFS
5323   test -z "$as_dir" && as_dir=.
5324     for ac_exec_ext in '' $ac_executable_extensions; do
5325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326     ac_cv_prog_CC="${ac_tool_prefix}cc"
5327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328     break 2
5329   fi
5330 done
5331   done
5332 IFS=$as_save_IFS
5333
5334 fi
5335 fi
5336 CC=$ac_cv_prog_CC
5337 if test -n "$CC"; then
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5339 $as_echo "$CC" >&6; }
5340 else
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344
5345
5346   fi
5347 fi
5348 if test -z "$CC"; then
5349   # Extract the first word of "cc", so it can be a program name with args.
5350 set dummy cc; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_CC+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   if test -n "$CC"; then
5357   ac_cv_prog_CC="$CC" # Let the user override the test.
5358 else
5359   ac_prog_rejected=no
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5368        ac_prog_rejected=yes
5369        continue
5370      fi
5371     ac_cv_prog_CC="cc"
5372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373     break 2
5374   fi
5375 done
5376   done
5377 IFS=$as_save_IFS
5378
5379 if test $ac_prog_rejected = yes; then
5380   # We found a bogon in the path, so make sure we never use it.
5381   set dummy $ac_cv_prog_CC
5382   shift
5383   if test $# != 0; then
5384     # We chose a different compiler from the bogus one.
5385     # However, it has the same basename, so the bogon will be chosen
5386     # first if we set CC to just the basename; use the full file name.
5387     shift
5388     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5389   fi
5390 fi
5391 fi
5392 fi
5393 CC=$ac_cv_prog_CC
5394 if test -n "$CC"; then
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5396 $as_echo "$CC" >&6; }
5397 else
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5400 fi
5401
5402
5403 fi
5404 if test -z "$CC"; then
5405   if test -n "$ac_tool_prefix"; then
5406   for ac_prog in cl.exe
5407   do
5408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_CC+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   if test -n "$CC"; then
5416   ac_cv_prog_CC="$CC" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423     for ac_exec_ext in '' $ac_executable_extensions; do
5424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430   done
5431 IFS=$as_save_IFS
5432
5433 fi
5434 fi
5435 CC=$ac_cv_prog_CC
5436 if test -n "$CC"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5438 $as_echo "$CC" >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443
5444
5445     test -n "$CC" && break
5446   done
5447 fi
5448 if test -z "$CC"; then
5449   ac_ct_CC=$CC
5450   for ac_prog in cl.exe
5451 do
5452   # Extract the first word of "$ac_prog", so it can be a program name with args.
5453 set dummy $ac_prog; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   if test -n "$ac_ct_CC"; then
5460   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469     ac_cv_prog_ac_ct_CC="$ac_prog"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5480 if test -n "$ac_ct_CC"; then
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5482 $as_echo "$ac_ct_CC" >&6; }
5483 else
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488
5489   test -n "$ac_ct_CC" && break
5490 done
5491
5492   if test "x$ac_ct_CC" = x; then
5493     CC=""
5494   else
5495     case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501     CC=$ac_ct_CC
5502   fi
5503 fi
5504
5505 fi
5506
5507
5508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5510 as_fn_error $? "no acceptable C compiler found in \$PATH
5511 See \`config.log' for more details" "$LINENO" 5; }
5512
5513 # Provide some information about the compiler.
5514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5515 set X $ac_compile
5516 ac_compiler=$2
5517 for ac_option in --version -v -V -qversion; do
5518   { { ac_try="$ac_compiler $ac_option >&5"
5519 case "(($ac_try" in
5520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521   *) ac_try_echo=$ac_try;;
5522 esac
5523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5524 $as_echo "$ac_try_echo"; } >&5
5525   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5526   ac_status=$?
5527   if test -s conftest.err; then
5528     sed '10a\
5529 ... rest of stderr output deleted ...
5530          10q' conftest.err >conftest.er1
5531     cat conftest.er1 >&5
5532   fi
5533   rm -f conftest.er1 conftest.err
5534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5535   test $ac_status = 0; }
5536 done
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5540 if ${ac_cv_c_compiler_gnu+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h.  */
5545
5546 int
5547 main ()
5548 {
5549 #ifndef __GNUC__
5550        choke me
5551 #endif
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558   ac_compiler_gnu=yes
5559 else
5560   ac_compiler_gnu=no
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5564
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5568 if test $ac_compiler_gnu = yes; then
5569   GCC=yes
5570 else
5571   GCC=
5572 fi
5573 ac_test_CFLAGS=${CFLAGS+set}
5574 ac_save_CFLAGS=$CFLAGS
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5577 if ${ac_cv_prog_cc_g+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   ac_save_c_werror_flag=$ac_c_werror_flag
5581    ac_c_werror_flag=yes
5582    ac_cv_prog_cc_g=no
5583    CFLAGS="-g"
5584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h.  */
5586
5587 int
5588 main ()
5589 {
5590
5591   ;
5592   return 0;
5593 }
5594 _ACEOF
5595 if ac_fn_c_try_compile "$LINENO"; then :
5596   ac_cv_prog_cc_g=yes
5597 else
5598   CFLAGS=""
5599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h.  */
5601
5602 int
5603 main ()
5604 {
5605
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611
5612 else
5613   ac_c_werror_flag=$ac_save_c_werror_flag
5614          CFLAGS="-g"
5615          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h.  */
5617
5618 int
5619 main ()
5620 {
5621
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627   ac_cv_prog_cc_g=yes
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634    ac_c_werror_flag=$ac_save_c_werror_flag
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5637 $as_echo "$ac_cv_prog_cc_g" >&6; }
5638 if test "$ac_test_CFLAGS" = set; then
5639   CFLAGS=$ac_save_CFLAGS
5640 elif test $ac_cv_prog_cc_g = yes; then
5641   if test "$GCC" = yes; then
5642     CFLAGS="-g -O2"
5643   else
5644     CFLAGS="-g"
5645   fi
5646 else
5647   if test "$GCC" = yes; then
5648     CFLAGS="-O2"
5649   else
5650     CFLAGS=
5651   fi
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5655 if ${ac_cv_prog_cc_c89+:} false; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   ac_cv_prog_cc_c89=no
5659 ac_save_CC=$CC
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h.  */
5662 #include <stdarg.h>
5663 #include <stdio.h>
5664 struct stat;
5665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5666 struct buf { int x; };
5667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5668 static char *e (p, i)
5669      char **p;
5670      int i;
5671 {
5672   return p[i];
5673 }
5674 static char *f (char * (*g) (char **, int), char **p, ...)
5675 {
5676   char *s;
5677   va_list v;
5678   va_start (v,p);
5679   s = g (p, va_arg (v,int));
5680   va_end (v);
5681   return s;
5682 }
5683
5684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5685    function prototypes and stuff, but not '\xHH' hex character constants.
5686    These don't provoke an error unfortunately, instead are silently treated
5687    as 'x'.  The following induces an error, until -std is added to get
5688    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5689    array size at least.  It's necessary to write '\x00'==0 to get something
5690    that's true only with -std.  */
5691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5692
5693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5694    inside strings and character constants.  */
5695 #define FOO(x) 'x'
5696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5697
5698 int test (int i, double x);
5699 struct s1 {int (*f) (int a);};
5700 struct s2 {int (*f) (double a);};
5701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5702 int argc;
5703 char **argv;
5704 int
5705 main ()
5706 {
5707 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5708   ;
5709   return 0;
5710 }
5711 _ACEOF
5712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5713         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5714 do
5715   CC="$ac_save_CC $ac_arg"
5716   if ac_fn_c_try_compile "$LINENO"; then :
5717   ac_cv_prog_cc_c89=$ac_arg
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext
5720   test "x$ac_cv_prog_cc_c89" != "xno" && break
5721 done
5722 rm -f conftest.$ac_ext
5723 CC=$ac_save_CC
5724
5725 fi
5726 # AC_CACHE_VAL
5727 case "x$ac_cv_prog_cc_c89" in
5728   x)
5729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5730 $as_echo "none needed" >&6; } ;;
5731   xno)
5732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5733 $as_echo "unsupported" >&6; } ;;
5734   *)
5735     CC="$CC $ac_cv_prog_cc_c89"
5736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5738 esac
5739 if test "x$ac_cv_prog_cc_c89" != xno; then :
5740
5741 fi
5742
5743 ac_ext=c
5744 ac_cpp='$CPP $CPPFLAGS'
5745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748
5749 ac_ext=c
5750 ac_cpp='$CPP $CPPFLAGS'
5751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5755 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5756 if ${am_cv_prog_cc_c_o+:} false; then :
5757   $as_echo_n "(cached) " >&6
5758 else
5759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h.  */
5761
5762 int
5763 main ()
5764 {
5765
5766   ;
5767   return 0;
5768 }
5769 _ACEOF
5770   # Make sure it works both with $CC and with simple cc.
5771   # Following AC_PROG_CC_C_O, we do the test twice because some
5772   # compilers refuse to overwrite an existing .o file with -o,
5773   # though they will create one.
5774   am_cv_prog_cc_c_o=yes
5775   for am_i in 1 2; do
5776     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5777    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5778    ac_status=$?
5779    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780    (exit $ac_status); } \
5781          && test -f conftest2.$ac_objext; then
5782       : OK
5783     else
5784       am_cv_prog_cc_c_o=no
5785       break
5786     fi
5787   done
5788   rm -f core conftest*
5789   unset am_i
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5792 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5793 if test "$am_cv_prog_cc_c_o" != yes; then
5794    # Losing compiler, so override with the script.
5795    # FIXME: It is wrong to rewrite CC.
5796    # But if we don't then we get into trouble of one sort or another.
5797    # A longer-term fix would be to have automake use am__CC in this case,
5798    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5799    CC="$am_aux_dir/compile $CC"
5800 fi
5801 ac_ext=c
5802 ac_cpp='$CPP $CPPFLAGS'
5803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806
5807
5808 depcc="$CC"   am_compiler_list=
5809
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5811 $as_echo_n "checking dependency style of $depcc... " >&6; }
5812 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5813   $as_echo_n "(cached) " >&6
5814 else
5815   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5816   # We make a subdir and do the tests there.  Otherwise we can end up
5817   # making bogus files that we don't know about and never remove.  For
5818   # instance it was reported that on HP-UX the gcc test will end up
5819   # making a dummy file named 'D' -- because '-MD' means "put the output
5820   # in D".
5821   rm -rf conftest.dir
5822   mkdir conftest.dir
5823   # Copy depcomp to subdir because otherwise we won't find it if we're
5824   # using a relative directory.
5825   cp "$am_depcomp" conftest.dir
5826   cd conftest.dir
5827   # We will build objects and dependencies in a subdirectory because
5828   # it helps to detect inapplicable dependency modes.  For instance
5829   # both Tru64's cc and ICC support -MD to output dependencies as a
5830   # side effect of compilation, but ICC will put the dependencies in
5831   # the current directory while Tru64 will put them in the object
5832   # directory.
5833   mkdir sub
5834
5835   am_cv_CC_dependencies_compiler_type=none
5836   if test "$am_compiler_list" = ""; then
5837      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5838   fi
5839   am__universal=false
5840   case " $depcc " in #(
5841      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5842      esac
5843
5844   for depmode in $am_compiler_list; do
5845     # Setup a source with many dependencies, because some compilers
5846     # like to wrap large dependency lists on column 80 (with \), and
5847     # we should not choose a depcomp mode which is confused by this.
5848     #
5849     # We need to recreate these files for each test, as the compiler may
5850     # overwrite some of them when testing with obscure command lines.
5851     # This happens at least with the AIX C compiler.
5852     : > sub/conftest.c
5853     for i in 1 2 3 4 5 6; do
5854       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5855       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5856       # Solaris 10 /bin/sh.
5857       echo '/* dummy */' > sub/conftst$i.h
5858     done
5859     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5860
5861     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5862     # mode.  It turns out that the SunPro C++ compiler does not properly
5863     # handle '-M -o', and we need to detect this.  Also, some Intel
5864     # versions had trouble with output in subdirs.
5865     am__obj=sub/conftest.${OBJEXT-o}
5866     am__minus_obj="-o $am__obj"
5867     case $depmode in
5868     gcc)
5869       # This depmode causes a compiler race in universal mode.
5870       test "$am__universal" = false || continue
5871       ;;
5872     nosideeffect)
5873       # After this tag, mechanisms are not by side-effect, so they'll
5874       # only be used when explicitly requested.
5875       if test "x$enable_dependency_tracking" = xyes; then
5876         continue
5877       else
5878         break
5879       fi
5880       ;;
5881     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5882       # This compiler won't grok '-c -o', but also, the minuso test has
5883       # not run yet.  These depmodes are late enough in the game, and
5884       # so weak that their functioning should not be impacted.
5885       am__obj=conftest.${OBJEXT-o}
5886       am__minus_obj=
5887       ;;
5888     none) break ;;
5889     esac
5890     if depmode=$depmode \
5891        source=sub/conftest.c object=$am__obj \
5892        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5893        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5894          >/dev/null 2>conftest.err &&
5895        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5896        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5897        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5898        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5899       # icc doesn't choke on unknown options, it will just issue warnings
5900       # or remarks (even with -Werror).  So we grep stderr for any message
5901       # that says an option was ignored or not supported.
5902       # When given -MP, icc 7.0 and 7.1 complain thusly:
5903       #   icc: Command line warning: ignoring option '-M'; no argument required
5904       # The diagnosis changed in icc 8.0:
5905       #   icc: Command line remark: option '-MP' not supported
5906       if (grep 'ignoring option' conftest.err ||
5907           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5908         am_cv_CC_dependencies_compiler_type=$depmode
5909         break
5910       fi
5911     fi
5912   done
5913
5914   cd ..
5915   rm -rf conftest.dir
5916 else
5917   am_cv_CC_dependencies_compiler_type=none
5918 fi
5919
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5922 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5923 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5924
5925  if
5926   test "x$enable_dependency_tracking" != xno \
5927   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5928   am__fastdepCC_TRUE=
5929   am__fastdepCC_FALSE='#'
5930 else
5931   am__fastdepCC_TRUE='#'
5932   am__fastdepCC_FALSE=
5933 fi
5934
5935
5936 ac_ext=c
5937 ac_cpp='$CPP $CPPFLAGS'
5938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5942 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5943 # On Suns, sometimes $CPP names a directory.
5944 if test -n "$CPP" && test -d "$CPP"; then
5945   CPP=
5946 fi
5947 if test -z "$CPP"; then
5948   if ${ac_cv_prog_CPP+:} false; then :
5949   $as_echo_n "(cached) " >&6
5950 else
5951       # Double quotes because CPP needs to be expanded
5952     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5953     do
5954       ac_preproc_ok=false
5955 for ac_c_preproc_warn_flag in '' yes
5956 do
5957   # Use a header file that comes with gcc, so configuring glibc
5958   # with a fresh cross-compiler works.
5959   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5960   # <limits.h> exists even on freestanding compilers.
5961   # On the NeXT, cc -E runs the code through the compiler's parser,
5962   # not just through cpp. "Syntax error" is here to catch this case.
5963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h.  */
5965 #ifdef __STDC__
5966 # include <limits.h>
5967 #else
5968 # include <assert.h>
5969 #endif
5970                      Syntax error
5971 _ACEOF
5972 if ac_fn_c_try_cpp "$LINENO"; then :
5973
5974 else
5975   # Broken: fails on valid input.
5976 continue
5977 fi
5978 rm -f conftest.err conftest.i conftest.$ac_ext
5979
5980   # OK, works on sane cases.  Now check whether nonexistent headers
5981   # can be detected and how.
5982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h.  */
5984 #include <ac_nonexistent.h>
5985 _ACEOF
5986 if ac_fn_c_try_cpp "$LINENO"; then :
5987   # Broken: success on invalid input.
5988 continue
5989 else
5990   # Passes both tests.
5991 ac_preproc_ok=:
5992 break
5993 fi
5994 rm -f conftest.err conftest.i conftest.$ac_ext
5995
5996 done
5997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5998 rm -f conftest.i conftest.err conftest.$ac_ext
5999 if $ac_preproc_ok; then :
6000   break
6001 fi
6002
6003     done
6004     ac_cv_prog_CPP=$CPP
6005
6006 fi
6007   CPP=$ac_cv_prog_CPP
6008 else
6009   ac_cv_prog_CPP=$CPP
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6012 $as_echo "$CPP" >&6; }
6013 ac_preproc_ok=false
6014 for ac_c_preproc_warn_flag in '' yes
6015 do
6016   # Use a header file that comes with gcc, so configuring glibc
6017   # with a fresh cross-compiler works.
6018   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6019   # <limits.h> exists even on freestanding compilers.
6020   # On the NeXT, cc -E runs the code through the compiler's parser,
6021   # not just through cpp. "Syntax error" is here to catch this case.
6022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h.  */
6024 #ifdef __STDC__
6025 # include <limits.h>
6026 #else
6027 # include <assert.h>
6028 #endif
6029                      Syntax error
6030 _ACEOF
6031 if ac_fn_c_try_cpp "$LINENO"; then :
6032
6033 else
6034   # Broken: fails on valid input.
6035 continue
6036 fi
6037 rm -f conftest.err conftest.i conftest.$ac_ext
6038
6039   # OK, works on sane cases.  Now check whether nonexistent headers
6040   # can be detected and how.
6041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h.  */
6043 #include <ac_nonexistent.h>
6044 _ACEOF
6045 if ac_fn_c_try_cpp "$LINENO"; then :
6046   # Broken: success on invalid input.
6047 continue
6048 else
6049   # Passes both tests.
6050 ac_preproc_ok=:
6051 break
6052 fi
6053 rm -f conftest.err conftest.i conftest.$ac_ext
6054
6055 done
6056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6057 rm -f conftest.i conftest.err conftest.$ac_ext
6058 if $ac_preproc_ok; then :
6059
6060 else
6061   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6063 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6064 See \`config.log' for more details" "$LINENO" 5; }
6065 fi
6066
6067 ac_ext=c
6068 ac_cpp='$CPP $CPPFLAGS'
6069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6072
6073 ac_ext=cpp
6074 ac_cpp='$CXXCPP $CPPFLAGS'
6075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6078 if test -z "$CXX"; then
6079   if test -n "$CCC"; then
6080     CXX=$CCC
6081   else
6082     if test -n "$ac_tool_prefix"; then
6083   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6084   do
6085     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_CXX+:} false; then :
6090   $as_echo_n "(cached) " >&6
6091 else
6092   if test -n "$CXX"; then
6093   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098   IFS=$as_save_IFS
6099   test -z "$as_dir" && as_dir=.
6100     for ac_exec_ext in '' $ac_executable_extensions; do
6101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104     break 2
6105   fi
6106 done
6107   done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 CXX=$ac_cv_prog_CXX
6113 if test -n "$CXX"; then
6114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6115 $as_echo "$CXX" >&6; }
6116 else
6117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6119 fi
6120
6121
6122     test -n "$CXX" && break
6123   done
6124 fi
6125 if test -z "$CXX"; then
6126   ac_ct_CXX=$CXX
6127   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6128 do
6129   # Extract the first word of "$ac_prog", so it can be a program name with args.
6130 set dummy $ac_prog; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6134   $as_echo_n "(cached) " >&6
6135 else
6136   if test -n "$ac_ct_CXX"; then
6137   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144     for ac_exec_ext in '' $ac_executable_extensions; do
6145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146     ac_cv_prog_ac_ct_CXX="$ac_prog"
6147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151   done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6157 if test -n "$ac_ct_CXX"; then
6158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6159 $as_echo "$ac_ct_CXX" >&6; }
6160 else
6161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6163 fi
6164
6165
6166   test -n "$ac_ct_CXX" && break
6167 done
6168
6169   if test "x$ac_ct_CXX" = x; then
6170     CXX="g++"
6171   else
6172     case $cross_compiling:$ac_tool_warned in
6173 yes:)
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6177 esac
6178     CXX=$ac_ct_CXX
6179   fi
6180 fi
6181
6182   fi
6183 fi
6184 # Provide some information about the compiler.
6185 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6186 set X $ac_compile
6187 ac_compiler=$2
6188 for ac_option in --version -v -V -qversion; do
6189   { { ac_try="$ac_compiler $ac_option >&5"
6190 case "(($ac_try" in
6191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192   *) ac_try_echo=$ac_try;;
6193 esac
6194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6195 $as_echo "$ac_try_echo"; } >&5
6196   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6197   ac_status=$?
6198   if test -s conftest.err; then
6199     sed '10a\
6200 ... rest of stderr output deleted ...
6201          10q' conftest.err >conftest.er1
6202     cat conftest.er1 >&5
6203   fi
6204   rm -f conftest.er1 conftest.err
6205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6206   test $ac_status = 0; }
6207 done
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6210 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6211 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6212   $as_echo_n "(cached) " >&6
6213 else
6214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h.  */
6216
6217 int
6218 main ()
6219 {
6220 #ifndef __GNUC__
6221        choke me
6222 #endif
6223
6224   ;
6225   return 0;
6226 }
6227 _ACEOF
6228 if ac_fn_cxx_try_compile "$LINENO"; then :
6229   ac_compiler_gnu=yes
6230 else
6231   ac_compiler_gnu=no
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6235
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6238 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6239 if test $ac_compiler_gnu = yes; then
6240   GXX=yes
6241 else
6242   GXX=
6243 fi
6244 ac_test_CXXFLAGS=${CXXFLAGS+set}
6245 ac_save_CXXFLAGS=$CXXFLAGS
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6247 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6248 if ${ac_cv_prog_cxx_g+:} false; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6252    ac_cxx_werror_flag=yes
6253    ac_cv_prog_cxx_g=no
6254    CXXFLAGS="-g"
6255    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h.  */
6257
6258 int
6259 main ()
6260 {
6261
6262   ;
6263   return 0;
6264 }
6265 _ACEOF
6266 if ac_fn_cxx_try_compile "$LINENO"; then :
6267   ac_cv_prog_cxx_g=yes
6268 else
6269   CXXFLAGS=""
6270       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h.  */
6272
6273 int
6274 main ()
6275 {
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_cxx_try_compile "$LINENO"; then :
6282
6283 else
6284   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6285          CXXFLAGS="-g"
6286          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h.  */
6288
6289 int
6290 main ()
6291 {
6292
6293   ;
6294   return 0;
6295 }
6296 _ACEOF
6297 if ac_fn_cxx_try_compile "$LINENO"; then :
6298   ac_cv_prog_cxx_g=yes
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6308 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6309 if test "$ac_test_CXXFLAGS" = set; then
6310   CXXFLAGS=$ac_save_CXXFLAGS
6311 elif test $ac_cv_prog_cxx_g = yes; then
6312   if test "$GXX" = yes; then
6313     CXXFLAGS="-g -O2"
6314   else
6315     CXXFLAGS="-g"
6316   fi
6317 else
6318   if test "$GXX" = yes; then
6319     CXXFLAGS="-O2"
6320   else
6321     CXXFLAGS=
6322   fi
6323 fi
6324 ac_ext=c
6325 ac_cpp='$CPP $CPPFLAGS'
6326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6329
6330 depcc="$CXX"  am_compiler_list=
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6333 $as_echo_n "checking dependency style of $depcc... " >&6; }
6334 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6338   # We make a subdir and do the tests there.  Otherwise we can end up
6339   # making bogus files that we don't know about and never remove.  For
6340   # instance it was reported that on HP-UX the gcc test will end up
6341   # making a dummy file named 'D' -- because '-MD' means "put the output
6342   # in D".
6343   rm -rf conftest.dir
6344   mkdir conftest.dir
6345   # Copy depcomp to subdir because otherwise we won't find it if we're
6346   # using a relative directory.
6347   cp "$am_depcomp" conftest.dir
6348   cd conftest.dir
6349   # We will build objects and dependencies in a subdirectory because
6350   # it helps to detect inapplicable dependency modes.  For instance
6351   # both Tru64's cc and ICC support -MD to output dependencies as a
6352   # side effect of compilation, but ICC will put the dependencies in
6353   # the current directory while Tru64 will put them in the object
6354   # directory.
6355   mkdir sub
6356
6357   am_cv_CXX_dependencies_compiler_type=none
6358   if test "$am_compiler_list" = ""; then
6359      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6360   fi
6361   am__universal=false
6362   case " $depcc " in #(
6363      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6364      esac
6365
6366   for depmode in $am_compiler_list; do
6367     # Setup a source with many dependencies, because some compilers
6368     # like to wrap large dependency lists on column 80 (with \), and
6369     # we should not choose a depcomp mode which is confused by this.
6370     #
6371     # We need to recreate these files for each test, as the compiler may
6372     # overwrite some of them when testing with obscure command lines.
6373     # This happens at least with the AIX C compiler.
6374     : > sub/conftest.c
6375     for i in 1 2 3 4 5 6; do
6376       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6377       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6378       # Solaris 10 /bin/sh.
6379       echo '/* dummy */' > sub/conftst$i.h
6380     done
6381     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6382
6383     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6384     # mode.  It turns out that the SunPro C++ compiler does not properly
6385     # handle '-M -o', and we need to detect this.  Also, some Intel
6386     # versions had trouble with output in subdirs.
6387     am__obj=sub/conftest.${OBJEXT-o}
6388     am__minus_obj="-o $am__obj"
6389     case $depmode in
6390     gcc)
6391       # This depmode causes a compiler race in universal mode.
6392       test "$am__universal" = false || continue
6393       ;;
6394     nosideeffect)
6395       # After this tag, mechanisms are not by side-effect, so they'll
6396       # only be used when explicitly requested.
6397       if test "x$enable_dependency_tracking" = xyes; then
6398         continue
6399       else
6400         break
6401       fi
6402       ;;
6403     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6404       # This compiler won't grok '-c -o', but also, the minuso test has
6405       # not run yet.  These depmodes are late enough in the game, and
6406       # so weak that their functioning should not be impacted.
6407       am__obj=conftest.${OBJEXT-o}
6408       am__minus_obj=
6409       ;;
6410     none) break ;;
6411     esac
6412     if depmode=$depmode \
6413        source=sub/conftest.c object=$am__obj \
6414        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6415        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6416          >/dev/null 2>conftest.err &&
6417        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6418        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6419        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6420        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6421       # icc doesn't choke on unknown options, it will just issue warnings
6422       # or remarks (even with -Werror).  So we grep stderr for any message
6423       # that says an option was ignored or not supported.
6424       # When given -MP, icc 7.0 and 7.1 complain thusly:
6425       #   icc: Command line warning: ignoring option '-M'; no argument required
6426       # The diagnosis changed in icc 8.0:
6427       #   icc: Command line remark: option '-MP' not supported
6428       if (grep 'ignoring option' conftest.err ||
6429           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6430         am_cv_CXX_dependencies_compiler_type=$depmode
6431         break
6432       fi
6433     fi
6434   done
6435
6436   cd ..
6437   rm -rf conftest.dir
6438 else
6439   am_cv_CXX_dependencies_compiler_type=none
6440 fi
6441
6442 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6444 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6445 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6446
6447  if
6448   test "x$enable_dependency_tracking" != xno \
6449   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6450   am__fastdepCXX_TRUE=
6451   am__fastdepCXX_FALSE='#'
6452 else
6453   am__fastdepCXX_TRUE='#'
6454   am__fastdepCXX_FALSE=
6455 fi
6456
6457
6458
6459 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6460 for ac_prog in gitlog-to-changelog
6461 do
6462   # Extract the first word of "$ac_prog", so it can be a program name with args.
6463 set dummy $ac_prog; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6467   $as_echo_n "(cached) " >&6
6468 else
6469   if test -n "$GITLOG_TO_CHANGELOG"; then
6470   ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475   IFS=$as_save_IFS
6476   test -z "$as_dir" && as_dir=.
6477     for ac_exec_ext in '' $ac_executable_extensions; do
6478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6479     ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481     break 2
6482   fi
6483 done
6484   done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6490 if test -n "$GITLOG_TO_CHANGELOG"; then
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6492 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6493 else
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6496 fi
6497
6498
6499   test -n "$GITLOG_TO_CHANGELOG" && break
6500 done
6501 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6502
6503
6504
6505
6506
6507
6508 VERSION_NUMBER=0x010f00
6509
6510
6511 # We need to compile and run a program on the build machine.  A
6512 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
6513 # the AC archive is broken for autoconf 2.57.  Given that there is no
6514 # newer version of that macro, we assume that it is also broken for
6515 # autoconf 2.61 and thus we use a simple but usually sufficient
6516 # approach.
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
6518 $as_echo_n "checking for cc for build... " >&6; }
6519 if test "$cross_compiling" = "yes"; then
6520   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
6521 else
6522   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
6523 fi
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6525 $as_echo "$CC_FOR_BUILD" >&6; }
6526
6527
6528
6529 # Don't default to build static libs.
6530
6531 case `pwd` in
6532   *\ * | *\     *)
6533     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6534 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6535 esac
6536
6537
6538
6539 macro_version='2.4.2'
6540 macro_revision='1.3337'
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554 ltmain="$ac_aux_dir/ltmain.sh"
6555
6556 # Backslashify metacharacters that are still active within
6557 # double-quoted strings.
6558 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6559
6560 # Same as above, but do not quote variable references.
6561 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6562
6563 # Sed substitution to delay expansion of an escaped shell variable in a
6564 # double_quote_subst'ed string.
6565 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6566
6567 # Sed substitution to delay expansion of an escaped single quote.
6568 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6569
6570 # Sed substitution to avoid accidental globbing in evaled expressions
6571 no_glob_subst='s/\*/\\\*/g'
6572
6573 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6574 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6575 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6576
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6578 $as_echo_n "checking how to print strings... " >&6; }
6579 # Test print first, because it will be a builtin if present.
6580 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6581    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6582   ECHO='print -r --'
6583 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6584   ECHO='printf %s\n'
6585 else
6586   # Use this function as a fallback that always works.
6587   func_fallback_echo ()
6588   {
6589     eval 'cat <<_LTECHO_EOF
6590 $1
6591 _LTECHO_EOF'
6592   }
6593   ECHO='func_fallback_echo'
6594 fi
6595
6596 # func_echo_all arg...
6597 # Invoke $ECHO with all args, space-separated.
6598 func_echo_all ()
6599 {
6600     $ECHO ""
6601 }
6602
6603 case "$ECHO" in
6604   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6605 $as_echo "printf" >&6; } ;;
6606   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6607 $as_echo "print -r" >&6; } ;;
6608   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6609 $as_echo "cat" >&6; } ;;
6610 esac
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6626 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6627 if ${ac_cv_path_SED+:} false; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6631      for ac_i in 1 2 3 4 5 6 7; do
6632        ac_script="$ac_script$as_nl$ac_script"
6633      done
6634      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6635      { ac_script=; unset ac_script;}
6636      if test -z "$SED"; then
6637   ac_path_SED_found=false
6638   # Loop through the user's path and test for each of PROGNAME-LIST
6639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644     for ac_prog in sed gsed; do
6645     for ac_exec_ext in '' $ac_executable_extensions; do
6646       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6647       as_fn_executable_p "$ac_path_SED" || continue
6648 # Check for GNU ac_path_SED and select it if it is found.
6649   # Check for GNU $ac_path_SED
6650 case `"$ac_path_SED" --version 2>&1` in
6651 *GNU*)
6652   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6653 *)
6654   ac_count=0
6655   $as_echo_n 0123456789 >"conftest.in"
6656   while :
6657   do
6658     cat "conftest.in" "conftest.in" >"conftest.tmp"
6659     mv "conftest.tmp" "conftest.in"
6660     cp "conftest.in" "conftest.nl"
6661     $as_echo '' >> "conftest.nl"
6662     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6663     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6664     as_fn_arith $ac_count + 1 && ac_count=$as_val
6665     if test $ac_count -gt ${ac_path_SED_max-0}; then
6666       # Best one so far, save it but keep looking for a better one
6667       ac_cv_path_SED="$ac_path_SED"
6668       ac_path_SED_max=$ac_count
6669     fi
6670     # 10*(2^10) chars as input seems more than enough
6671     test $ac_count -gt 10 && break
6672   done
6673   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6674 esac
6675
6676       $ac_path_SED_found && break 3
6677     done
6678   done
6679   done
6680 IFS=$as_save_IFS
6681   if test -z "$ac_cv_path_SED"; then
6682     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6683   fi
6684 else
6685   ac_cv_path_SED=$SED
6686 fi
6687
6688 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6690 $as_echo "$ac_cv_path_SED" >&6; }
6691  SED="$ac_cv_path_SED"
6692   rm -f conftest.sed
6693
6694 test -z "$SED" && SED=sed
6695 Xsed="$SED -e 1s/^X//"
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6708 $as_echo_n "checking for fgrep... " >&6; }
6709 if ${ac_cv_path_FGREP+:} false; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6713    then ac_cv_path_FGREP="$GREP -F"
6714    else
6715      if test -z "$FGREP"; then
6716   ac_path_FGREP_found=false
6717   # Loop through the user's path and test for each of PROGNAME-LIST
6718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723     for ac_prog in fgrep; do
6724     for ac_exec_ext in '' $ac_executable_extensions; do
6725       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6726       as_fn_executable_p "$ac_path_FGREP" || continue
6727 # Check for GNU ac_path_FGREP and select it if it is found.
6728   # Check for GNU $ac_path_FGREP
6729 case `"$ac_path_FGREP" --version 2>&1` in
6730 *GNU*)
6731   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6732 *)
6733   ac_count=0
6734   $as_echo_n 0123456789 >"conftest.in"
6735   while :
6736   do
6737     cat "conftest.in" "conftest.in" >"conftest.tmp"
6738     mv "conftest.tmp" "conftest.in"
6739     cp "conftest.in" "conftest.nl"
6740     $as_echo 'FGREP' >> "conftest.nl"
6741     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6742     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6743     as_fn_arith $ac_count + 1 && ac_count=$as_val
6744     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6745       # Best one so far, save it but keep looking for a better one
6746       ac_cv_path_FGREP="$ac_path_FGREP"
6747       ac_path_FGREP_max=$ac_count
6748     fi
6749     # 10*(2^10) chars as input seems more than enough
6750     test $ac_count -gt 10 && break
6751   done
6752   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6753 esac
6754
6755       $ac_path_FGREP_found && break 3
6756     done
6757   done
6758   done
6759 IFS=$as_save_IFS
6760   if test -z "$ac_cv_path_FGREP"; then
6761     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6762   fi
6763 else
6764   ac_cv_path_FGREP=$FGREP
6765 fi
6766
6767    fi
6768 fi
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6770 $as_echo "$ac_cv_path_FGREP" >&6; }
6771  FGREP="$ac_cv_path_FGREP"
6772
6773
6774 test -z "$GREP" && GREP=grep
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794 # Check whether --with-gnu-ld was given.
6795 if test "${with_gnu_ld+set}" = set; then :
6796   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6797 else
6798   with_gnu_ld=no
6799 fi
6800
6801 ac_prog=ld
6802 if test "$GCC" = yes; then
6803   # Check if gcc -print-prog-name=ld gives a path.
6804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6805 $as_echo_n "checking for ld used by $CC... " >&6; }
6806   case $host in
6807   *-*-mingw*)
6808     # gcc leaves a trailing carriage return which upsets mingw
6809     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6810   *)
6811     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6812   esac
6813   case $ac_prog in
6814     # Accept absolute paths.
6815     [\\/]* | ?:[\\/]*)
6816       re_direlt='/[^/][^/]*/\.\./'
6817       # Canonicalize the pathname of ld
6818       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6819       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6820         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6821       done
6822       test -z "$LD" && LD="$ac_prog"
6823       ;;
6824   "")
6825     # If it fails, then pretend we aren't using GCC.
6826     ac_prog=ld
6827     ;;
6828   *)
6829     # If it is relative, then search for the first ld in PATH.
6830     with_gnu_ld=unknown
6831     ;;
6832   esac
6833 elif test "$with_gnu_ld" = yes; then
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6835 $as_echo_n "checking for GNU ld... " >&6; }
6836 else
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6838 $as_echo_n "checking for non-GNU ld... " >&6; }
6839 fi
6840 if ${lt_cv_path_LD+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   if test -z "$LD"; then
6844   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6845   for ac_dir in $PATH; do
6846     IFS="$lt_save_ifs"
6847     test -z "$ac_dir" && ac_dir=.
6848     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6849       lt_cv_path_LD="$ac_dir/$ac_prog"
6850       # Check to see if the program is GNU ld.  I'd rather use --version,
6851       # but apparently some variants of GNU ld only accept -v.
6852       # Break only if it was the GNU/non-GNU ld that we prefer.
6853       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6854       *GNU* | *'with BFD'*)
6855         test "$with_gnu_ld" != no && break
6856         ;;
6857       *)
6858         test "$with_gnu_ld" != yes && break
6859         ;;
6860       esac
6861     fi
6862   done
6863   IFS="$lt_save_ifs"
6864 else
6865   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6866 fi
6867 fi
6868
6869 LD="$lt_cv_path_LD"
6870 if test -n "$LD"; then
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6872 $as_echo "$LD" >&6; }
6873 else
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6876 fi
6877 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6879 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6880 if ${lt_cv_prog_gnu_ld+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6884 case `$LD -v 2>&1 </dev/null` in
6885 *GNU* | *'with BFD'*)
6886   lt_cv_prog_gnu_ld=yes
6887   ;;
6888 *)
6889   lt_cv_prog_gnu_ld=no
6890   ;;
6891 esac
6892 fi
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6894 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6895 with_gnu_ld=$lt_cv_prog_gnu_ld
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6906 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6907 if ${lt_cv_path_NM+:} false; then :
6908   $as_echo_n "(cached) " >&6
6909 else
6910   if test -n "$NM"; then
6911   # Let the user override the test.
6912   lt_cv_path_NM="$NM"
6913 else
6914   lt_nm_to_check="${ac_tool_prefix}nm"
6915   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6916     lt_nm_to_check="$lt_nm_to_check nm"
6917   fi
6918   for lt_tmp_nm in $lt_nm_to_check; do
6919     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6920     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6921       IFS="$lt_save_ifs"
6922       test -z "$ac_dir" && ac_dir=.
6923       tmp_nm="$ac_dir/$lt_tmp_nm"
6924       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6925         # Check to see if the nm accepts a BSD-compat flag.
6926         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6927         #   nm: unknown option "B" ignored
6928         # Tru64's nm complains that /dev/null is an invalid object file
6929         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6930         */dev/null* | *'Invalid file or object type'*)
6931           lt_cv_path_NM="$tmp_nm -B"
6932           break
6933           ;;
6934         *)
6935           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6936           */dev/null*)
6937             lt_cv_path_NM="$tmp_nm -p"
6938             break
6939             ;;
6940           *)
6941             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6942             continue # so that we can try to find one that supports BSD flags
6943             ;;
6944           esac
6945           ;;
6946         esac
6947       fi
6948     done
6949     IFS="$lt_save_ifs"
6950   done
6951   : ${lt_cv_path_NM=no}
6952 fi
6953 fi
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6955 $as_echo "$lt_cv_path_NM" >&6; }
6956 if test "$lt_cv_path_NM" != "no"; then
6957   NM="$lt_cv_path_NM"
6958 else
6959   # Didn't find any BSD compatible name lister, look for dumpbin.
6960   if test -n "$DUMPBIN"; then :
6961     # Let the user override the test.
6962   else
6963     if test -n "$ac_tool_prefix"; then
6964   for ac_prog in dumpbin "link -dump"
6965   do
6966     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_DUMPBIN+:} false; then :
6971   $as_echo_n "(cached) " >&6
6972 else
6973   if test -n "$DUMPBIN"; then
6974   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 DUMPBIN=$ac_cv_prog_DUMPBIN
6994 if test -n "$DUMPBIN"; then
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6996 $as_echo "$DUMPBIN" >&6; }
6997 else
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002
7003     test -n "$DUMPBIN" && break
7004   done
7005 fi
7006 if test -z "$DUMPBIN"; then
7007   ac_ct_DUMPBIN=$DUMPBIN
7008   for ac_prog in dumpbin "link -dump"
7009 do
7010   # Extract the first word of "$ac_prog", so it can be a program name with args.
7011 set dummy $ac_prog; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   if test -n "$ac_ct_DUMPBIN"; then
7018   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023   IFS=$as_save_IFS
7024   test -z "$as_dir" && as_dir=.
7025     for ac_exec_ext in '' $ac_executable_extensions; do
7026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029     break 2
7030   fi
7031 done
7032   done
7033 IFS=$as_save_IFS
7034
7035 fi
7036 fi
7037 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7038 if test -n "$ac_ct_DUMPBIN"; then
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7040 $as_echo "$ac_ct_DUMPBIN" >&6; }
7041 else
7042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046
7047   test -n "$ac_ct_DUMPBIN" && break
7048 done
7049
7050   if test "x$ac_ct_DUMPBIN" = x; then
7051     DUMPBIN=":"
7052   else
7053     case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7058 esac
7059     DUMPBIN=$ac_ct_DUMPBIN
7060   fi
7061 fi
7062
7063     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7064     *COFF*)
7065       DUMPBIN="$DUMPBIN -symbols"
7066       ;;
7067     *)
7068       DUMPBIN=:
7069       ;;
7070     esac
7071   fi
7072
7073   if test "$DUMPBIN" != ":"; then
7074     NM="$DUMPBIN"
7075   fi
7076 fi
7077 test -z "$NM" && NM=nm
7078
7079
7080
7081
7082
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7085 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7086 if ${lt_cv_nm_interface+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   lt_cv_nm_interface="BSD nm"
7090   echo "int some_variable = 0;" > conftest.$ac_ext
7091   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7092   (eval "$ac_compile" 2>conftest.err)
7093   cat conftest.err >&5
7094   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7095   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7096   cat conftest.err >&5
7097   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7098   cat conftest.out >&5
7099   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7100     lt_cv_nm_interface="MS dumpbin"
7101   fi
7102   rm -f conftest*
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7105 $as_echo "$lt_cv_nm_interface" >&6; }
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7108 $as_echo_n "checking whether ln -s works... " >&6; }
7109 LN_S=$as_ln_s
7110 if test "$LN_S" = "ln -s"; then
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7112 $as_echo "yes" >&6; }
7113 else
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7115 $as_echo "no, using $LN_S" >&6; }
7116 fi
7117
7118 # find the maximum length of command line arguments
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7120 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7121 if ${lt_cv_sys_max_cmd_len+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124     i=0
7125   teststring="ABCD"
7126
7127   case $build_os in
7128   msdosdjgpp*)
7129     # On DJGPP, this test can blow up pretty badly due to problems in libc
7130     # (any single argument exceeding 2000 bytes causes a buffer overrun
7131     # during glob expansion).  Even if it were fixed, the result of this
7132     # check would be larger than it should be.
7133     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7134     ;;
7135
7136   gnu*)
7137     # Under GNU Hurd, this test is not required because there is
7138     # no limit to the length of command line arguments.
7139     # Libtool will interpret -1 as no limit whatsoever
7140     lt_cv_sys_max_cmd_len=-1;
7141     ;;
7142
7143   cygwin* | mingw* | cegcc*)
7144     # On Win9x/ME, this test blows up -- it succeeds, but takes
7145     # about 5 minutes as the teststring grows exponentially.
7146     # Worse, since 9x/ME are not pre-emptively multitasking,
7147     # you end up with a "frozen" computer, even though with patience
7148     # the test eventually succeeds (with a max line length of 256k).
7149     # Instead, let's just punt: use the minimum linelength reported by
7150     # all of the supported platforms: 8192 (on NT/2K/XP).
7151     lt_cv_sys_max_cmd_len=8192;
7152     ;;
7153
7154   mint*)
7155     # On MiNT this can take a long time and run out of memory.
7156     lt_cv_sys_max_cmd_len=8192;
7157     ;;
7158
7159   amigaos*)
7160     # On AmigaOS with pdksh, this test takes hours, literally.
7161     # So we just punt and use a minimum line length of 8192.
7162     lt_cv_sys_max_cmd_len=8192;
7163     ;;
7164
7165   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7166     # This has been around since 386BSD, at least.  Likely further.
7167     if test -x /sbin/sysctl; then
7168       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7169     elif test -x /usr/sbin/sysctl; then
7170       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7171     else
7172       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7173     fi
7174     # And add a safety zone
7175     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7176     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7177     ;;
7178
7179   interix*)
7180     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7181     lt_cv_sys_max_cmd_len=196608
7182     ;;
7183
7184   os2*)
7185     # The test takes a long time on OS/2.
7186     lt_cv_sys_max_cmd_len=8192
7187     ;;
7188
7189   osf*)
7190     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7191     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7192     # nice to cause kernel panics so lets avoid the loop below.
7193     # First set a reasonable default.
7194     lt_cv_sys_max_cmd_len=16384
7195     #
7196     if test -x /sbin/sysconfig; then
7197       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7198         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7199       esac
7200     fi
7201     ;;
7202   sco3.2v5*)
7203     lt_cv_sys_max_cmd_len=102400
7204     ;;
7205   sysv5* | sco5v6* | sysv4.2uw2*)
7206     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7207     if test -n "$kargmax"; then
7208       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7209     else
7210       lt_cv_sys_max_cmd_len=32768
7211     fi
7212     ;;
7213   *)
7214     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7215     if test -n "$lt_cv_sys_max_cmd_len"; then
7216       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7217       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7218     else
7219       # Make teststring a little bigger before we do anything with it.
7220       # a 1K string should be a reasonable start.
7221       for i in 1 2 3 4 5 6 7 8 ; do
7222         teststring=$teststring$teststring
7223       done
7224       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7225       # If test is not a shell built-in, we'll probably end up computing a
7226       # maximum length that is only half of the actual maximum length, but
7227       # we can't tell.
7228       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7229                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7230               test $i != 17 # 1/2 MB should be enough
7231       do
7232         i=`expr $i + 1`
7233         teststring=$teststring$teststring
7234       done
7235       # Only check the string length outside the loop.
7236       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7237       teststring=
7238       # Add a significant safety factor because C++ compilers can tack on
7239       # massive amounts of additional arguments before passing them to the
7240       # linker.  It appears as though 1/2 is a usable value.
7241       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7242     fi
7243     ;;
7244   esac
7245
7246 fi
7247
7248 if test -n $lt_cv_sys_max_cmd_len ; then
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7250 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7251 else
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7253 $as_echo "none" >&6; }
7254 fi
7255 max_cmd_len=$lt_cv_sys_max_cmd_len
7256
7257
7258
7259
7260
7261
7262 : ${CP="cp -f"}
7263 : ${MV="mv -f"}
7264 : ${RM="rm -f"}
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7267 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7268 # Try some XSI features
7269 xsi_shell=no
7270 ( _lt_dummy="a/b/c"
7271   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7272       = c,a/b,b/c, \
7273     && eval 'test $(( 1 + 1 )) -eq 2 \
7274     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7275   && xsi_shell=yes
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7277 $as_echo "$xsi_shell" >&6; }
7278
7279
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7281 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7282 lt_shell_append=no
7283 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7284     >/dev/null 2>&1 \
7285   && lt_shell_append=yes
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7287 $as_echo "$lt_shell_append" >&6; }
7288
7289
7290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7291   lt_unset=unset
7292 else
7293   lt_unset=false
7294 fi
7295
7296
7297
7298
7299
7300 # test EBCDIC or ASCII
7301 case `echo X|tr X '\101'` in
7302  A) # ASCII based system
7303     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7304   lt_SP2NL='tr \040 \012'
7305   lt_NL2SP='tr \015\012 \040\040'
7306   ;;
7307  *) # EBCDIC based system
7308   lt_SP2NL='tr \100 \n'
7309   lt_NL2SP='tr \r\n \100\100'
7310   ;;
7311 esac
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7322 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7323 if ${lt_cv_to_host_file_cmd+:} false; then :
7324   $as_echo_n "(cached) " >&6
7325 else
7326   case $host in
7327   *-*-mingw* )
7328     case $build in
7329       *-*-mingw* ) # actually msys
7330         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7331         ;;
7332       *-*-cygwin* )
7333         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7334         ;;
7335       * ) # otherwise, assume *nix
7336         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7337         ;;
7338     esac
7339     ;;
7340   *-*-cygwin* )
7341     case $build in
7342       *-*-mingw* ) # actually msys
7343         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7344         ;;
7345       *-*-cygwin* )
7346         lt_cv_to_host_file_cmd=func_convert_file_noop
7347         ;;
7348       * ) # otherwise, assume *nix
7349         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7350         ;;
7351     esac
7352     ;;
7353   * ) # unhandled hosts (and "normal" native builds)
7354     lt_cv_to_host_file_cmd=func_convert_file_noop
7355     ;;
7356 esac
7357
7358 fi
7359
7360 to_host_file_cmd=$lt_cv_to_host_file_cmd
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7362 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7363
7364
7365
7366
7367
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7369 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7370 if ${lt_cv_to_tool_file_cmd+:} false; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   #assume ordinary cross tools, or native build.
7374 lt_cv_to_tool_file_cmd=func_convert_file_noop
7375 case $host in
7376   *-*-mingw* )
7377     case $build in
7378       *-*-mingw* ) # actually msys
7379         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7380         ;;
7381     esac
7382     ;;
7383 esac
7384
7385 fi
7386
7387 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7389 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7390
7391
7392
7393
7394
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7396 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7397 if ${lt_cv_ld_reload_flag+:} false; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   lt_cv_ld_reload_flag='-r'
7401 fi
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7403 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7404 reload_flag=$lt_cv_ld_reload_flag
7405 case $reload_flag in
7406 "" | " "*) ;;
7407 *) reload_flag=" $reload_flag" ;;
7408 esac
7409 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7410 case $host_os in
7411   cygwin* | mingw* | pw32* | cegcc*)
7412     if test "$GCC" != yes; then
7413       reload_cmds=false
7414     fi
7415     ;;
7416   darwin*)
7417     if test "$GCC" = yes; then
7418       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7419     else
7420       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7421     fi
7422     ;;
7423 esac
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433 if test -n "$ac_tool_prefix"; then
7434   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7435 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_OBJDUMP+:} false; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   if test -n "$OBJDUMP"; then
7442   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449     for ac_exec_ext in '' $ac_executable_extensions; do
7450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456   done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 OBJDUMP=$ac_cv_prog_OBJDUMP
7462 if test -n "$OBJDUMP"; then
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7464 $as_echo "$OBJDUMP" >&6; }
7465 else
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470
7471 fi
7472 if test -z "$ac_cv_prog_OBJDUMP"; then
7473   ac_ct_OBJDUMP=$OBJDUMP
7474   # Extract the first word of "objdump", so it can be a program name with args.
7475 set dummy objdump; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$ac_ct_OBJDUMP"; then
7482   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7502 if test -n "$ac_ct_OBJDUMP"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7504 $as_echo "$ac_ct_OBJDUMP" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510   if test "x$ac_ct_OBJDUMP" = x; then
7511     OBJDUMP="false"
7512   else
7513     case $cross_compiling:$ac_tool_warned in
7514 yes:)
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517 ac_tool_warned=yes ;;
7518 esac
7519     OBJDUMP=$ac_ct_OBJDUMP
7520   fi
7521 else
7522   OBJDUMP="$ac_cv_prog_OBJDUMP"
7523 fi
7524
7525 test -z "$OBJDUMP" && OBJDUMP=objdump
7526
7527
7528
7529
7530
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7533 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7534 if ${lt_cv_deplibs_check_method+:} false; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   lt_cv_file_magic_cmd='$MAGIC_CMD'
7538 lt_cv_file_magic_test_file=
7539 lt_cv_deplibs_check_method='unknown'
7540 # Need to set the preceding variable on all platforms that support
7541 # interlibrary dependencies.
7542 # 'none' -- dependencies not supported.
7543 # `unknown' -- same as none, but documents that we really don't know.
7544 # 'pass_all' -- all dependencies passed with no checks.
7545 # 'test_compile' -- check by making test program.
7546 # 'file_magic [[regex]]' -- check by looking for files in library path
7547 # which responds to the $file_magic_cmd with a given extended regex.
7548 # If you have `file' or equivalent on your system and you're not sure
7549 # whether `pass_all' will *always* work, you probably want this one.
7550
7551 case $host_os in
7552 aix[4-9]*)
7553   lt_cv_deplibs_check_method=pass_all
7554   ;;
7555
7556 beos*)
7557   lt_cv_deplibs_check_method=pass_all
7558   ;;
7559
7560 bsdi[45]*)
7561   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7562   lt_cv_file_magic_cmd='/usr/bin/file -L'
7563   lt_cv_file_magic_test_file=/shlib/libc.so
7564   ;;
7565
7566 cygwin*)
7567   # func_win32_libid is a shell function defined in ltmain.sh
7568   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7569   lt_cv_file_magic_cmd='func_win32_libid'
7570   ;;
7571
7572 mingw* | pw32*)
7573   # Base MSYS/MinGW do not provide the 'file' command needed by
7574   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7575   # unless we find 'file', for example because we are cross-compiling.
7576   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7577   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7578     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7579     lt_cv_file_magic_cmd='func_win32_libid'
7580   else
7581     # Keep this pattern in sync with the one in func_win32_libid.
7582     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7583     lt_cv_file_magic_cmd='$OBJDUMP -f'
7584   fi
7585   ;;
7586
7587 cegcc*)
7588   # use the weaker test based on 'objdump'. See mingw*.
7589   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7590   lt_cv_file_magic_cmd='$OBJDUMP -f'
7591   ;;
7592
7593 darwin* | rhapsody*)
7594   lt_cv_deplibs_check_method=pass_all
7595   ;;
7596
7597 freebsd* | dragonfly*)
7598   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7599     case $host_cpu in
7600     i*86 )
7601       # Not sure whether the presence of OpenBSD here was a mistake.
7602       # Let's accept both of them until this is cleared up.
7603       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7604       lt_cv_file_magic_cmd=/usr/bin/file
7605       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7606       ;;
7607     esac
7608   else
7609     lt_cv_deplibs_check_method=pass_all
7610   fi
7611   ;;
7612
7613 gnu*)
7614   lt_cv_deplibs_check_method=pass_all
7615   ;;
7616
7617 haiku*)
7618   lt_cv_deplibs_check_method=pass_all
7619   ;;
7620
7621 hpux10.20* | hpux11*)
7622   lt_cv_file_magic_cmd=/usr/bin/file
7623   case $host_cpu in
7624   ia64*)
7625     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7626     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7627     ;;
7628   hppa*64*)
7629     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]'
7630     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7631     ;;
7632   *)
7633     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7634     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7635     ;;
7636   esac
7637   ;;
7638
7639 interix[3-9]*)
7640   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7641   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7642   ;;
7643
7644 irix5* | irix6* | nonstopux*)
7645   case $LD in
7646   *-32|*"-32 ") libmagic=32-bit;;
7647   *-n32|*"-n32 ") libmagic=N32;;
7648   *-64|*"-64 ") libmagic=64-bit;;
7649   *) libmagic=never-match;;
7650   esac
7651   lt_cv_deplibs_check_method=pass_all
7652   ;;
7653
7654 # This must be glibc/ELF.
7655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7656   lt_cv_deplibs_check_method=pass_all
7657   ;;
7658
7659 netbsd* | netbsdelf*-gnu)
7660   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7662   else
7663     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7664   fi
7665   ;;
7666
7667 newos6*)
7668   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7669   lt_cv_file_magic_cmd=/usr/bin/file
7670   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7671   ;;
7672
7673 *nto* | *qnx*)
7674   lt_cv_deplibs_check_method=pass_all
7675   ;;
7676
7677 openbsd*)
7678   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7679     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7680   else
7681     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7682   fi
7683   ;;
7684
7685 osf3* | osf4* | osf5*)
7686   lt_cv_deplibs_check_method=pass_all
7687   ;;
7688
7689 rdos*)
7690   lt_cv_deplibs_check_method=pass_all
7691   ;;
7692
7693 solaris*)
7694   lt_cv_deplibs_check_method=pass_all
7695   ;;
7696
7697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7698   lt_cv_deplibs_check_method=pass_all
7699   ;;
7700
7701 sysv4 | sysv4.3*)
7702   case $host_vendor in
7703   motorola)
7704     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]'
7705     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7706     ;;
7707   ncr)
7708     lt_cv_deplibs_check_method=pass_all
7709     ;;
7710   sequent)
7711     lt_cv_file_magic_cmd='/bin/file'
7712     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7713     ;;
7714   sni)
7715     lt_cv_file_magic_cmd='/bin/file'
7716     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7717     lt_cv_file_magic_test_file=/lib/libc.so
7718     ;;
7719   siemens)
7720     lt_cv_deplibs_check_method=pass_all
7721     ;;
7722   pc)
7723     lt_cv_deplibs_check_method=pass_all
7724     ;;
7725   esac
7726   ;;
7727
7728 tpf*)
7729   lt_cv_deplibs_check_method=pass_all
7730   ;;
7731 esac
7732
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7735 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7736
7737 file_magic_glob=
7738 want_nocaseglob=no
7739 if test "$build" = "$host"; then
7740   case $host_os in
7741   mingw* | pw32*)
7742     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7743       want_nocaseglob=yes
7744     else
7745       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7746     fi
7747     ;;
7748   esac
7749 fi
7750
7751 file_magic_cmd=$lt_cv_file_magic_cmd
7752 deplibs_check_method=$lt_cv_deplibs_check_method
7753 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776 if test -n "$ac_tool_prefix"; then
7777   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7778 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_DLLTOOL+:} false; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784   if test -n "$DLLTOOL"; then
7785   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790   IFS=$as_save_IFS
7791   test -z "$as_dir" && as_dir=.
7792     for ac_exec_ext in '' $ac_executable_extensions; do
7793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796     break 2
7797   fi
7798 done
7799   done
7800 IFS=$as_save_IFS
7801
7802 fi
7803 fi
7804 DLLTOOL=$ac_cv_prog_DLLTOOL
7805 if test -n "$DLLTOOL"; then
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7807 $as_echo "$DLLTOOL" >&6; }
7808 else
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7811 fi
7812
7813
7814 fi
7815 if test -z "$ac_cv_prog_DLLTOOL"; then
7816   ac_ct_DLLTOOL=$DLLTOOL
7817   # Extract the first word of "dlltool", so it can be a program name with args.
7818 set dummy dlltool; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7822   $as_echo_n "(cached) " >&6
7823 else
7824   if test -n "$ac_ct_DLLTOOL"; then
7825   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830   IFS=$as_save_IFS
7831   test -z "$as_dir" && as_dir=.
7832     for ac_exec_ext in '' $ac_executable_extensions; do
7833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836     break 2
7837   fi
7838 done
7839   done
7840 IFS=$as_save_IFS
7841
7842 fi
7843 fi
7844 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7845 if test -n "$ac_ct_DLLTOOL"; then
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7847 $as_echo "$ac_ct_DLLTOOL" >&6; }
7848 else
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 fi
7852
7853   if test "x$ac_ct_DLLTOOL" = x; then
7854     DLLTOOL="false"
7855   else
7856     case $cross_compiling:$ac_tool_warned in
7857 yes:)
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned=yes ;;
7861 esac
7862     DLLTOOL=$ac_ct_DLLTOOL
7863   fi
7864 else
7865   DLLTOOL="$ac_cv_prog_DLLTOOL"
7866 fi
7867
7868 test -z "$DLLTOOL" && DLLTOOL=dlltool
7869
7870
7871
7872
7873
7874
7875
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7877 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7878 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   lt_cv_sharedlib_from_linklib_cmd='unknown'
7882
7883 case $host_os in
7884 cygwin* | mingw* | pw32* | cegcc*)
7885   # two different shell functions defined in ltmain.sh
7886   # decide which to use based on capabilities of $DLLTOOL
7887   case `$DLLTOOL --help 2>&1` in
7888   *--identify-strict*)
7889     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7890     ;;
7891   *)
7892     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7893     ;;
7894   esac
7895   ;;
7896 *)
7897   # fallback: assume linklib IS sharedlib
7898   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7899   ;;
7900 esac
7901
7902 fi
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7904 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7905 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7906 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7907
7908
7909
7910
7911
7912
7913
7914 if test -n "$ac_tool_prefix"; then
7915   for ac_prog in ar
7916   do
7917     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_prog_AR+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   if test -n "$AR"; then
7925   ac_cv_prog_AR="$AR" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930   IFS=$as_save_IFS
7931   test -z "$as_dir" && as_dir=.
7932     for ac_exec_ext in '' $ac_executable_extensions; do
7933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936     break 2
7937   fi
7938 done
7939   done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 AR=$ac_cv_prog_AR
7945 if test -n "$AR"; then
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7947 $as_echo "$AR" >&6; }
7948 else
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952
7953
7954     test -n "$AR" && break
7955   done
7956 fi
7957 if test -z "$AR"; then
7958   ac_ct_AR=$AR
7959   for ac_prog in ar
7960 do
7961   # Extract the first word of "$ac_prog", so it can be a program name with args.
7962 set dummy $ac_prog; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7966   $as_echo_n "(cached) " >&6
7967 else
7968   if test -n "$ac_ct_AR"; then
7969   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974   IFS=$as_save_IFS
7975   test -z "$as_dir" && as_dir=.
7976     for ac_exec_ext in '' $ac_executable_extensions; do
7977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978     ac_cv_prog_ac_ct_AR="$ac_prog"
7979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980     break 2
7981   fi
7982 done
7983   done
7984 IFS=$as_save_IFS
7985
7986 fi
7987 fi
7988 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7989 if test -n "$ac_ct_AR"; then
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7991 $as_echo "$ac_ct_AR" >&6; }
7992 else
7993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7995 fi
7996
7997
7998   test -n "$ac_ct_AR" && break
7999 done
8000
8001   if test "x$ac_ct_AR" = x; then
8002     AR="false"
8003   else
8004     case $cross_compiling:$ac_tool_warned in
8005 yes:)
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8008 ac_tool_warned=yes ;;
8009 esac
8010     AR=$ac_ct_AR
8011   fi
8012 fi
8013
8014 : ${AR=ar}
8015 : ${AR_FLAGS=cru}
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8028 $as_echo_n "checking for archiver @FILE support... " >&6; }
8029 if ${lt_cv_ar_at_file+:} false; then :
8030   $as_echo_n "(cached) " >&6
8031 else
8032   lt_cv_ar_at_file=no
8033    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h.  */
8035
8036 int
8037 main ()
8038 {
8039
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 if ac_fn_c_try_compile "$LINENO"; then :
8045   echo conftest.$ac_objext > conftest.lst
8046       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8047       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8048   (eval $lt_ar_try) 2>&5
8049   ac_status=$?
8050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051   test $ac_status = 0; }
8052       if test "$ac_status" -eq 0; then
8053         # Ensure the archiver fails upon bogus file names.
8054         rm -f conftest.$ac_objext libconftest.a
8055         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8056   (eval $lt_ar_try) 2>&5
8057   ac_status=$?
8058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059   test $ac_status = 0; }
8060         if test "$ac_status" -ne 0; then
8061           lt_cv_ar_at_file=@
8062         fi
8063       fi
8064       rm -f conftest.* libconftest.a
8065
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068
8069 fi
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8071 $as_echo "$lt_cv_ar_at_file" >&6; }
8072
8073 if test "x$lt_cv_ar_at_file" = xno; then
8074   archiver_list_spec=
8075 else
8076   archiver_list_spec=$lt_cv_ar_at_file
8077 fi
8078
8079
8080
8081
8082
8083
8084
8085 if test -n "$ac_tool_prefix"; then
8086   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8087 set dummy ${ac_tool_prefix}strip; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_STRIP+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   if test -n "$STRIP"; then
8094   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099   IFS=$as_save_IFS
8100   test -z "$as_dir" && as_dir=.
8101     for ac_exec_ext in '' $ac_executable_extensions; do
8102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105     break 2
8106   fi
8107 done
8108   done
8109 IFS=$as_save_IFS
8110
8111 fi
8112 fi
8113 STRIP=$ac_cv_prog_STRIP
8114 if test -n "$STRIP"; then
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8116 $as_echo "$STRIP" >&6; }
8117 else
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 fi
8124 if test -z "$ac_cv_prog_STRIP"; then
8125   ac_ct_STRIP=$STRIP
8126   # Extract the first word of "strip", so it can be a program name with args.
8127 set dummy strip; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   if test -n "$ac_ct_STRIP"; then
8134   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139   IFS=$as_save_IFS
8140   test -z "$as_dir" && as_dir=.
8141     for ac_exec_ext in '' $ac_executable_extensions; do
8142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143     ac_cv_prog_ac_ct_STRIP="strip"
8144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145     break 2
8146   fi
8147 done
8148   done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8154 if test -n "$ac_ct_STRIP"; then
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8156 $as_echo "$ac_ct_STRIP" >&6; }
8157 else
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162   if test "x$ac_ct_STRIP" = x; then
8163     STRIP=":"
8164   else
8165     case $cross_compiling:$ac_tool_warned in
8166 yes:)
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169 ac_tool_warned=yes ;;
8170 esac
8171     STRIP=$ac_ct_STRIP
8172   fi
8173 else
8174   STRIP="$ac_cv_prog_STRIP"
8175 fi
8176
8177 test -z "$STRIP" && STRIP=:
8178
8179
8180
8181
8182
8183
8184 if test -n "$ac_tool_prefix"; then
8185   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188 $as_echo_n "checking for $ac_word... " >&6; }
8189 if ${ac_cv_prog_RANLIB+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   if test -n "$RANLIB"; then
8193   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8194 else
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8197 do
8198   IFS=$as_save_IFS
8199   test -z "$as_dir" && as_dir=.
8200     for ac_exec_ext in '' $ac_executable_extensions; do
8201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204     break 2
8205   fi
8206 done
8207   done
8208 IFS=$as_save_IFS
8209
8210 fi
8211 fi
8212 RANLIB=$ac_cv_prog_RANLIB
8213 if test -n "$RANLIB"; then
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8215 $as_echo "$RANLIB" >&6; }
8216 else
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8219 fi
8220
8221
8222 fi
8223 if test -z "$ac_cv_prog_RANLIB"; then
8224   ac_ct_RANLIB=$RANLIB
8225   # Extract the first word of "ranlib", so it can be a program name with args.
8226 set dummy ranlib; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   if test -n "$ac_ct_RANLIB"; then
8233   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238   IFS=$as_save_IFS
8239   test -z "$as_dir" && as_dir=.
8240     for ac_exec_ext in '' $ac_executable_extensions; do
8241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242     ac_cv_prog_ac_ct_RANLIB="ranlib"
8243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244     break 2
8245   fi
8246 done
8247   done
8248 IFS=$as_save_IFS
8249
8250 fi
8251 fi
8252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8253 if test -n "$ac_ct_RANLIB"; then
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8255 $as_echo "$ac_ct_RANLIB" >&6; }
8256 else
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260
8261   if test "x$ac_ct_RANLIB" = x; then
8262     RANLIB=":"
8263   else
8264     case $cross_compiling:$ac_tool_warned in
8265 yes:)
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268 ac_tool_warned=yes ;;
8269 esac
8270     RANLIB=$ac_ct_RANLIB
8271   fi
8272 else
8273   RANLIB="$ac_cv_prog_RANLIB"
8274 fi
8275
8276 test -z "$RANLIB" && RANLIB=:
8277
8278
8279
8280
8281
8282
8283 # Determine commands to create old-style static archives.
8284 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8285 old_postinstall_cmds='chmod 644 $oldlib'
8286 old_postuninstall_cmds=
8287
8288 if test -n "$RANLIB"; then
8289   case $host_os in
8290   openbsd*)
8291     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8292     ;;
8293   *)
8294     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8295     ;;
8296   esac
8297   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8298 fi
8299
8300 case $host_os in
8301   darwin*)
8302     lock_old_archive_extraction=yes ;;
8303   *)
8304     lock_old_archive_extraction=no ;;
8305 esac
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
8345 # If no C compiler was specified, use CC.
8346 LTCC=${LTCC-"$CC"}
8347
8348 # If no C compiler flags were specified, use CFLAGS.
8349 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8350
8351 # Allow CC to be a program name with arguments.
8352 compiler=$CC
8353
8354
8355 # Check for command to grab the raw symbol name followed by C symbol from nm.
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8357 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8358 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361
8362 # These are sane defaults that work on at least a few old systems.
8363 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8364
8365 # Character class describing NM global symbol codes.
8366 symcode='[BCDEGRST]'
8367
8368 # Regexp to match symbols that can be accessed directly from C.
8369 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8370
8371 # Define system-specific variables.
8372 case $host_os in
8373 aix*)
8374   symcode='[BCDT]'
8375   ;;
8376 cygwin* | mingw* | pw32* | cegcc*)
8377   symcode='[ABCDGISTW]'
8378   ;;
8379 hpux*)
8380   if test "$host_cpu" = ia64; then
8381     symcode='[ABCDEGRST]'
8382   fi
8383   ;;
8384 irix* | nonstopux*)
8385   symcode='[BCDEGRST]'
8386   ;;
8387 osf*)
8388   symcode='[BCDEGQRST]'
8389   ;;
8390 solaris*)
8391   symcode='[BDRT]'
8392   ;;
8393 sco3.2v5*)
8394   symcode='[DT]'
8395   ;;
8396 sysv4.2uw2*)
8397   symcode='[DT]'
8398   ;;
8399 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8400   symcode='[ABDT]'
8401   ;;
8402 sysv4)
8403   symcode='[DFNSTU]'
8404   ;;
8405 esac
8406
8407 # If we're using GNU nm, then use its standard symbol codes.
8408 case `$NM -V 2>&1` in
8409 *GNU* | *'with BFD'*)
8410   symcode='[ABCDGIRSTW]' ;;
8411 esac
8412
8413 # Transform an extracted symbol line into a proper C declaration.
8414 # Some systems (esp. on ia64) link data and code symbols differently,
8415 # so use this general approach.
8416 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8417
8418 # Transform an extracted symbol line into symbol name and symbol address
8419 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8420 lt_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'"
8421
8422 # Handle CRLF in mingw tool chain
8423 opt_cr=
8424 case $build_os in
8425 mingw*)
8426   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8427   ;;
8428 esac
8429
8430 # Try without a prefix underscore, then with it.
8431 for ac_symprfx in "" "_"; do
8432
8433   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8434   symxfrm="\\1 $ac_symprfx\\2 \\2"
8435
8436   # Write the raw and C identifiers.
8437   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8438     # Fake it for dumpbin and say T for any non-static function
8439     # and D for any global variable.
8440     # Also find C++ and __fastcall symbols from MSVC++,
8441     # which start with @ or ?.
8442     lt_cv_sys_global_symbol_pipe="$AWK '"\
8443 "     {last_section=section; section=\$ 3};"\
8444 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8445 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8446 "     \$ 0!~/External *\|/{next};"\
8447 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8448 "     {if(hide[section]) next};"\
8449 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8450 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8451 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8452 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8453 "     ' prfx=^$ac_symprfx"
8454   else
8455     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8456   fi
8457   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8458
8459   # Check to see that the pipe works correctly.
8460   pipe_works=no
8461
8462   rm -f conftest*
8463   cat > conftest.$ac_ext <<_LT_EOF
8464 #ifdef __cplusplus
8465 extern "C" {
8466 #endif
8467 char nm_test_var;
8468 void nm_test_func(void);
8469 void nm_test_func(void){}
8470 #ifdef __cplusplus
8471 }
8472 #endif
8473 int main(){nm_test_var='a';nm_test_func();return(0);}
8474 _LT_EOF
8475
8476   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8477   (eval $ac_compile) 2>&5
8478   ac_status=$?
8479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8480   test $ac_status = 0; }; then
8481     # Now try to grab the symbols.
8482     nlist=conftest.nm
8483     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8484   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8485   ac_status=$?
8486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8487   test $ac_status = 0; } && test -s "$nlist"; then
8488       # Try sorting and uniquifying the output.
8489       if sort "$nlist" | uniq > "$nlist"T; then
8490         mv -f "$nlist"T "$nlist"
8491       else
8492         rm -f "$nlist"T
8493       fi
8494
8495       # Make sure that we snagged all the symbols we need.
8496       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8497         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8498           cat <<_LT_EOF > conftest.$ac_ext
8499 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8500 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8501 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8502    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8503 # define LT_DLSYM_CONST
8504 #elif defined(__osf__)
8505 /* This system does not cope well with relocations in const data.  */
8506 # define LT_DLSYM_CONST
8507 #else
8508 # define LT_DLSYM_CONST const
8509 #endif
8510
8511 #ifdef __cplusplus
8512 extern "C" {
8513 #endif
8514
8515 _LT_EOF
8516           # Now generate the symbol file.
8517           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8518
8519           cat <<_LT_EOF >> conftest.$ac_ext
8520
8521 /* The mapping between symbol names and symbols.  */
8522 LT_DLSYM_CONST struct {
8523   const char *name;
8524   void       *address;
8525 }
8526 lt__PROGRAM__LTX_preloaded_symbols[] =
8527 {
8528   { "@PROGRAM@", (void *) 0 },
8529 _LT_EOF
8530           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8531           cat <<\_LT_EOF >> conftest.$ac_ext
8532   {0, (void *) 0}
8533 };
8534
8535 /* This works around a problem in FreeBSD linker */
8536 #ifdef FREEBSD_WORKAROUND
8537 static const void *lt_preloaded_setup() {
8538   return lt__PROGRAM__LTX_preloaded_symbols;
8539 }
8540 #endif
8541
8542 #ifdef __cplusplus
8543 }
8544 #endif
8545 _LT_EOF
8546           # Now try linking the two files.
8547           mv conftest.$ac_objext conftstm.$ac_objext
8548           lt_globsym_save_LIBS=$LIBS
8549           lt_globsym_save_CFLAGS=$CFLAGS
8550           LIBS="conftstm.$ac_objext"
8551           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8552           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8553   (eval $ac_link) 2>&5
8554   ac_status=$?
8555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8556   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8557             pipe_works=yes
8558           fi
8559           LIBS=$lt_globsym_save_LIBS
8560           CFLAGS=$lt_globsym_save_CFLAGS
8561         else
8562           echo "cannot find nm_test_func in $nlist" >&5
8563         fi
8564       else
8565         echo "cannot find nm_test_var in $nlist" >&5
8566       fi
8567     else
8568       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8569     fi
8570   else
8571     echo "$progname: failed program was:" >&5
8572     cat conftest.$ac_ext >&5
8573   fi
8574   rm -rf conftest* conftst*
8575
8576   # Do not use the global_symbol_pipe unless it works.
8577   if test "$pipe_works" = yes; then
8578     break
8579   else
8580     lt_cv_sys_global_symbol_pipe=
8581   fi
8582 done
8583
8584 fi
8585
8586 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8587   lt_cv_sys_global_symbol_to_cdecl=
8588 fi
8589 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8591 $as_echo "failed" >&6; }
8592 else
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8594 $as_echo "ok" >&6; }
8595 fi
8596
8597 # Response file support.
8598 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8599   nm_file_list_spec='@'
8600 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8601   nm_file_list_spec='@'
8602 fi
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
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8631 $as_echo_n "checking for sysroot... " >&6; }
8632
8633 # Check whether --with-sysroot was given.
8634 if test "${with_sysroot+set}" = set; then :
8635   withval=$with_sysroot;
8636 else
8637   with_sysroot=no
8638 fi
8639
8640
8641 lt_sysroot=
8642 case ${with_sysroot} in #(
8643  yes)
8644    if test "$GCC" = yes; then
8645      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8646    fi
8647    ;; #(
8648  /*)
8649    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8650    ;; #(
8651  no|'')
8652    ;; #(
8653  *)
8654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8655 $as_echo "${with_sysroot}" >&6; }
8656    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8657    ;;
8658 esac
8659
8660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8661 $as_echo "${lt_sysroot:-no}" >&6; }
8662
8663
8664
8665
8666
8667 # Check whether --enable-libtool-lock was given.
8668 if test "${enable_libtool_lock+set}" = set; then :
8669   enableval=$enable_libtool_lock;
8670 fi
8671
8672 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8673
8674 # Some flags need to be propagated to the compiler or linker for good
8675 # libtool support.
8676 case $host in
8677 ia64-*-hpux*)
8678   # Find out which ABI we are using.
8679   echo 'int i;' > conftest.$ac_ext
8680   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8681   (eval $ac_compile) 2>&5
8682   ac_status=$?
8683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8684   test $ac_status = 0; }; then
8685     case `/usr/bin/file conftest.$ac_objext` in
8686       *ELF-32*)
8687         HPUX_IA64_MODE="32"
8688         ;;
8689       *ELF-64*)
8690         HPUX_IA64_MODE="64"
8691         ;;
8692     esac
8693   fi
8694   rm -rf conftest*
8695   ;;
8696 *-*-irix6*)
8697   # Find out which ABI we are using.
8698   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8699   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8700   (eval $ac_compile) 2>&5
8701   ac_status=$?
8702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8703   test $ac_status = 0; }; then
8704     if test "$lt_cv_prog_gnu_ld" = yes; then
8705       case `/usr/bin/file conftest.$ac_objext` in
8706         *32-bit*)
8707           LD="${LD-ld} -melf32bsmip"
8708           ;;
8709         *N32*)
8710           LD="${LD-ld} -melf32bmipn32"
8711           ;;
8712         *64-bit*)
8713           LD="${LD-ld} -melf64bmip"
8714         ;;
8715       esac
8716     else
8717       case `/usr/bin/file conftest.$ac_objext` in
8718         *32-bit*)
8719           LD="${LD-ld} -32"
8720           ;;
8721         *N32*)
8722           LD="${LD-ld} -n32"
8723           ;;
8724         *64-bit*)
8725           LD="${LD-ld} -64"
8726           ;;
8727       esac
8728     fi
8729   fi
8730   rm -rf conftest*
8731   ;;
8732
8733 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8734 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8735   # Find out which ABI we are using.
8736   echo 'int i;' > conftest.$ac_ext
8737   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8738   (eval $ac_compile) 2>&5
8739   ac_status=$?
8740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8741   test $ac_status = 0; }; then
8742     case `/usr/bin/file conftest.o` in
8743       *32-bit*)
8744         case $host in
8745           x86_64-*kfreebsd*-gnu)
8746             LD="${LD-ld} -m elf_i386_fbsd"
8747             ;;
8748           x86_64-*linux*)
8749             LD="${LD-ld} -m elf_i386"
8750             ;;
8751           ppc64-*linux*|powerpc64-*linux*)
8752             LD="${LD-ld} -m elf32ppclinux"
8753             ;;
8754           s390x-*linux*)
8755             LD="${LD-ld} -m elf_s390"
8756             ;;
8757           sparc64-*linux*)
8758             LD="${LD-ld} -m elf32_sparc"
8759             ;;
8760         esac
8761         ;;
8762       *64-bit*)
8763         case $host in
8764           x86_64-*kfreebsd*-gnu)
8765             LD="${LD-ld} -m elf_x86_64_fbsd"
8766             ;;
8767           x86_64-*linux*)
8768             LD="${LD-ld} -m elf_x86_64"
8769             ;;
8770           ppc*-*linux*|powerpc*-*linux*)
8771             LD="${LD-ld} -m elf64ppc"
8772             ;;
8773           s390*-*linux*|s390*-*tpf*)
8774             LD="${LD-ld} -m elf64_s390"
8775             ;;
8776           sparc*-*linux*)
8777             LD="${LD-ld} -m elf64_sparc"
8778             ;;
8779         esac
8780         ;;
8781     esac
8782   fi
8783   rm -rf conftest*
8784   ;;
8785
8786 *-*-sco3.2v5*)
8787   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8788   SAVE_CFLAGS="$CFLAGS"
8789   CFLAGS="$CFLAGS -belf"
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8791 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8792 if ${lt_cv_cc_needs_belf+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   ac_ext=c
8796 ac_cpp='$CPP $CPPFLAGS'
8797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8800
8801      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h.  */
8803
8804 int
8805 main ()
8806 {
8807
8808   ;
8809   return 0;
8810 }
8811 _ACEOF
8812 if ac_fn_c_try_link "$LINENO"; then :
8813   lt_cv_cc_needs_belf=yes
8814 else
8815   lt_cv_cc_needs_belf=no
8816 fi
8817 rm -f core conftest.err conftest.$ac_objext \
8818     conftest$ac_exeext conftest.$ac_ext
8819      ac_ext=c
8820 ac_cpp='$CPP $CPPFLAGS'
8821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8824
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8827 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8828   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8829     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8830     CFLAGS="$SAVE_CFLAGS"
8831   fi
8832   ;;
8833 *-*solaris*)
8834   # Find out which ABI we are using.
8835   echo 'int i;' > conftest.$ac_ext
8836   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8837   (eval $ac_compile) 2>&5
8838   ac_status=$?
8839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8840   test $ac_status = 0; }; then
8841     case `/usr/bin/file conftest.o` in
8842     *64-bit*)
8843       case $lt_cv_prog_gnu_ld in
8844       yes*)
8845         case $host in
8846         i?86-*-solaris*)
8847           LD="${LD-ld} -m elf_x86_64"
8848           ;;
8849         sparc*-*-solaris*)
8850           LD="${LD-ld} -m elf64_sparc"
8851           ;;
8852         esac
8853         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8854         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8855           LD="${LD-ld}_sol2"
8856         fi
8857         ;;
8858       *)
8859         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8860           LD="${LD-ld} -64"
8861         fi
8862         ;;
8863       esac
8864       ;;
8865     esac
8866   fi
8867   rm -rf conftest*
8868   ;;
8869 esac
8870
8871 need_locks="$enable_libtool_lock"
8872
8873 if test -n "$ac_tool_prefix"; then
8874   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8875 set dummy ${ac_tool_prefix}mt; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8879   $as_echo_n "(cached) " >&6
8880 else
8881   if test -n "$MANIFEST_TOOL"; then
8882   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8886 do
8887   IFS=$as_save_IFS
8888   test -z "$as_dir" && as_dir=.
8889     for ac_exec_ext in '' $ac_executable_extensions; do
8890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8891     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893     break 2
8894   fi
8895 done
8896   done
8897 IFS=$as_save_IFS
8898
8899 fi
8900 fi
8901 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8902 if test -n "$MANIFEST_TOOL"; then
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8904 $as_echo "$MANIFEST_TOOL" >&6; }
8905 else
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8908 fi
8909
8910
8911 fi
8912 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8913   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8914   # Extract the first word of "mt", so it can be a program name with args.
8915 set dummy mt; ac_word=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917 $as_echo_n "checking for $ac_word... " >&6; }
8918 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8919   $as_echo_n "(cached) " >&6
8920 else
8921   if test -n "$ac_ct_MANIFEST_TOOL"; then
8922   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8923 else
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 for as_dir in $PATH
8926 do
8927   IFS=$as_save_IFS
8928   test -z "$as_dir" && as_dir=.
8929     for ac_exec_ext in '' $ac_executable_extensions; do
8930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933     break 2
8934   fi
8935 done
8936   done
8937 IFS=$as_save_IFS
8938
8939 fi
8940 fi
8941 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8942 if test -n "$ac_ct_MANIFEST_TOOL"; then
8943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8944 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8945 else
8946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8948 fi
8949
8950   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8951     MANIFEST_TOOL=":"
8952   else
8953     case $cross_compiling:$ac_tool_warned in
8954 yes:)
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8957 ac_tool_warned=yes ;;
8958 esac
8959     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8960   fi
8961 else
8962   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8963 fi
8964
8965 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8967 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8968 if ${lt_cv_path_mainfest_tool+:} false; then :
8969   $as_echo_n "(cached) " >&6
8970 else
8971   lt_cv_path_mainfest_tool=no
8972   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8973   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8974   cat conftest.err >&5
8975   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8976     lt_cv_path_mainfest_tool=yes
8977   fi
8978   rm -f conftest*
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8981 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8982 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8983   MANIFEST_TOOL=:
8984 fi
8985
8986
8987
8988
8989
8990
8991   case $host_os in
8992     rhapsody* | darwin*)
8993     if test -n "$ac_tool_prefix"; then
8994   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8995 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   if test -n "$DSYMUTIL"; then
9002   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007   IFS=$as_save_IFS
9008   test -z "$as_dir" && as_dir=.
9009     for ac_exec_ext in '' $ac_executable_extensions; do
9010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013     break 2
9014   fi
9015 done
9016   done
9017 IFS=$as_save_IFS
9018
9019 fi
9020 fi
9021 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9022 if test -n "$DSYMUTIL"; then
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9024 $as_echo "$DSYMUTIL" >&6; }
9025 else
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030
9031 fi
9032 if test -z "$ac_cv_prog_DSYMUTIL"; then
9033   ac_ct_DSYMUTIL=$DSYMUTIL
9034   # Extract the first word of "dsymutil", so it can be a program name with args.
9035 set dummy dsymutil; ac_word=$2
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9039   $as_echo_n "(cached) " >&6
9040 else
9041   if test -n "$ac_ct_DSYMUTIL"; then
9042   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9043 else
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9046 do
9047   IFS=$as_save_IFS
9048   test -z "$as_dir" && as_dir=.
9049     for ac_exec_ext in '' $ac_executable_extensions; do
9050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053     break 2
9054   fi
9055 done
9056   done
9057 IFS=$as_save_IFS
9058
9059 fi
9060 fi
9061 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9062 if test -n "$ac_ct_DSYMUTIL"; then
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9064 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9065 else
9066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9068 fi
9069
9070   if test "x$ac_ct_DSYMUTIL" = x; then
9071     DSYMUTIL=":"
9072   else
9073     case $cross_compiling:$ac_tool_warned in
9074 yes:)
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9077 ac_tool_warned=yes ;;
9078 esac
9079     DSYMUTIL=$ac_ct_DSYMUTIL
9080   fi
9081 else
9082   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9083 fi
9084
9085     if test -n "$ac_tool_prefix"; then
9086   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9087 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_prog_NMEDIT+:} false; then :
9091   $as_echo_n "(cached) " >&6
9092 else
9093   if test -n "$NMEDIT"; then
9094   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9095 else
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9098 do
9099   IFS=$as_save_IFS
9100   test -z "$as_dir" && as_dir=.
9101     for ac_exec_ext in '' $ac_executable_extensions; do
9102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105     break 2
9106   fi
9107 done
9108   done
9109 IFS=$as_save_IFS
9110
9111 fi
9112 fi
9113 NMEDIT=$ac_cv_prog_NMEDIT
9114 if test -n "$NMEDIT"; then
9115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9116 $as_echo "$NMEDIT" >&6; }
9117 else
9118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120 fi
9121
9122
9123 fi
9124 if test -z "$ac_cv_prog_NMEDIT"; then
9125   ac_ct_NMEDIT=$NMEDIT
9126   # Extract the first word of "nmedit", so it can be a program name with args.
9127 set dummy nmedit; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9131   $as_echo_n "(cached) " >&6
9132 else
9133   if test -n "$ac_ct_NMEDIT"; then
9134   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9135 else
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9138 do
9139   IFS=$as_save_IFS
9140   test -z "$as_dir" && as_dir=.
9141     for ac_exec_ext in '' $ac_executable_extensions; do
9142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145     break 2
9146   fi
9147 done
9148   done
9149 IFS=$as_save_IFS
9150
9151 fi
9152 fi
9153 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9154 if test -n "$ac_ct_NMEDIT"; then
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9156 $as_echo "$ac_ct_NMEDIT" >&6; }
9157 else
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161
9162   if test "x$ac_ct_NMEDIT" = x; then
9163     NMEDIT=":"
9164   else
9165     case $cross_compiling:$ac_tool_warned in
9166 yes:)
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9169 ac_tool_warned=yes ;;
9170 esac
9171     NMEDIT=$ac_ct_NMEDIT
9172   fi
9173 else
9174   NMEDIT="$ac_cv_prog_NMEDIT"
9175 fi
9176
9177     if test -n "$ac_tool_prefix"; then
9178   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9179 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if ${ac_cv_prog_LIPO+:} false; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   if test -n "$LIPO"; then
9186   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191   IFS=$as_save_IFS
9192   test -z "$as_dir" && as_dir=.
9193     for ac_exec_ext in '' $ac_executable_extensions; do
9194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197     break 2
9198   fi
9199 done
9200   done
9201 IFS=$as_save_IFS
9202
9203 fi
9204 fi
9205 LIPO=$ac_cv_prog_LIPO
9206 if test -n "$LIPO"; then
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9208 $as_echo "$LIPO" >&6; }
9209 else
9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9212 fi
9213
9214
9215 fi
9216 if test -z "$ac_cv_prog_LIPO"; then
9217   ac_ct_LIPO=$LIPO
9218   # Extract the first word of "lipo", so it can be a program name with args.
9219 set dummy lipo; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9223   $as_echo_n "(cached) " >&6
9224 else
9225   if test -n "$ac_ct_LIPO"; then
9226   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231   IFS=$as_save_IFS
9232   test -z "$as_dir" && as_dir=.
9233     for ac_exec_ext in '' $ac_executable_extensions; do
9234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9235     ac_cv_prog_ac_ct_LIPO="lipo"
9236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237     break 2
9238   fi
9239 done
9240   done
9241 IFS=$as_save_IFS
9242
9243 fi
9244 fi
9245 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9246 if test -n "$ac_ct_LIPO"; then
9247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9248 $as_echo "$ac_ct_LIPO" >&6; }
9249 else
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9252 fi
9253
9254   if test "x$ac_ct_LIPO" = x; then
9255     LIPO=":"
9256   else
9257     case $cross_compiling:$ac_tool_warned in
9258 yes:)
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9261 ac_tool_warned=yes ;;
9262 esac
9263     LIPO=$ac_ct_LIPO
9264   fi
9265 else
9266   LIPO="$ac_cv_prog_LIPO"
9267 fi
9268
9269     if test -n "$ac_tool_prefix"; then
9270   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9271 set dummy ${ac_tool_prefix}otool; ac_word=$2
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9273 $as_echo_n "checking for $ac_word... " >&6; }
9274 if ${ac_cv_prog_OTOOL+:} false; then :
9275   $as_echo_n "(cached) " >&6
9276 else
9277   if test -n "$OTOOL"; then
9278   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9279 else
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $PATH
9282 do
9283   IFS=$as_save_IFS
9284   test -z "$as_dir" && as_dir=.
9285     for ac_exec_ext in '' $ac_executable_extensions; do
9286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289     break 2
9290   fi
9291 done
9292   done
9293 IFS=$as_save_IFS
9294
9295 fi
9296 fi
9297 OTOOL=$ac_cv_prog_OTOOL
9298 if test -n "$OTOOL"; then
9299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9300 $as_echo "$OTOOL" >&6; }
9301 else
9302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9304 fi
9305
9306
9307 fi
9308 if test -z "$ac_cv_prog_OTOOL"; then
9309   ac_ct_OTOOL=$OTOOL
9310   # Extract the first word of "otool", so it can be a program name with args.
9311 set dummy otool; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   if test -n "$ac_ct_OTOOL"; then
9318   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9319 else
9320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321 for as_dir in $PATH
9322 do
9323   IFS=$as_save_IFS
9324   test -z "$as_dir" && as_dir=.
9325     for ac_exec_ext in '' $ac_executable_extensions; do
9326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9327     ac_cv_prog_ac_ct_OTOOL="otool"
9328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329     break 2
9330   fi
9331 done
9332   done
9333 IFS=$as_save_IFS
9334
9335 fi
9336 fi
9337 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9338 if test -n "$ac_ct_OTOOL"; then
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9340 $as_echo "$ac_ct_OTOOL" >&6; }
9341 else
9342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9344 fi
9345
9346   if test "x$ac_ct_OTOOL" = x; then
9347     OTOOL=":"
9348   else
9349     case $cross_compiling:$ac_tool_warned in
9350 yes:)
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9353 ac_tool_warned=yes ;;
9354 esac
9355     OTOOL=$ac_ct_OTOOL
9356   fi
9357 else
9358   OTOOL="$ac_cv_prog_OTOOL"
9359 fi
9360
9361     if test -n "$ac_tool_prefix"; then
9362   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9363 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if ${ac_cv_prog_OTOOL64+:} false; then :
9367   $as_echo_n "(cached) " >&6
9368 else
9369   if test -n "$OTOOL64"; then
9370   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9371 else
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9374 do
9375   IFS=$as_save_IFS
9376   test -z "$as_dir" && as_dir=.
9377     for ac_exec_ext in '' $ac_executable_extensions; do
9378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9379     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381     break 2
9382   fi
9383 done
9384   done
9385 IFS=$as_save_IFS
9386
9387 fi
9388 fi
9389 OTOOL64=$ac_cv_prog_OTOOL64
9390 if test -n "$OTOOL64"; then
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9392 $as_echo "$OTOOL64" >&6; }
9393 else
9394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 $as_echo "no" >&6; }
9396 fi
9397
9398
9399 fi
9400 if test -z "$ac_cv_prog_OTOOL64"; then
9401   ac_ct_OTOOL64=$OTOOL64
9402   # Extract the first word of "otool64", so it can be a program name with args.
9403 set dummy otool64; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   if test -n "$ac_ct_OTOOL64"; then
9410   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9411 else
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413 for as_dir in $PATH
9414 do
9415   IFS=$as_save_IFS
9416   test -z "$as_dir" && as_dir=.
9417     for ac_exec_ext in '' $ac_executable_extensions; do
9418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9419     ac_cv_prog_ac_ct_OTOOL64="otool64"
9420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9421     break 2
9422   fi
9423 done
9424   done
9425 IFS=$as_save_IFS
9426
9427 fi
9428 fi
9429 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9430 if test -n "$ac_ct_OTOOL64"; then
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9432 $as_echo "$ac_ct_OTOOL64" >&6; }
9433 else
9434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9436 fi
9437
9438   if test "x$ac_ct_OTOOL64" = x; then
9439     OTOOL64=":"
9440   else
9441     case $cross_compiling:$ac_tool_warned in
9442 yes:)
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9445 ac_tool_warned=yes ;;
9446 esac
9447     OTOOL64=$ac_ct_OTOOL64
9448   fi
9449 else
9450   OTOOL64="$ac_cv_prog_OTOOL64"
9451 fi
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9480 $as_echo_n "checking for -single_module linker flag... " >&6; }
9481 if ${lt_cv_apple_cc_single_mod+:} false; then :
9482   $as_echo_n "(cached) " >&6
9483 else
9484   lt_cv_apple_cc_single_mod=no
9485       if test -z "${LT_MULTI_MODULE}"; then
9486         # By default we will add the -single_module flag. You can override
9487         # by either setting the environment variable LT_MULTI_MODULE
9488         # non-empty at configure time, or by adding -multi_module to the
9489         # link flags.
9490         rm -rf libconftest.dylib*
9491         echo "int foo(void){return 1;}" > conftest.c
9492         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9493 -dynamiclib -Wl,-single_module conftest.c" >&5
9494         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9495           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9496         _lt_result=$?
9497         # If there is a non-empty error log, and "single_module"
9498         # appears in it, assume the flag caused a linker warning
9499         if test -s conftest.err && $GREP single_module conftest.err; then
9500           cat conftest.err >&5
9501         # Otherwise, if the output was created with a 0 exit code from
9502         # the compiler, it worked.
9503         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9504           lt_cv_apple_cc_single_mod=yes
9505         else
9506           cat conftest.err >&5
9507         fi
9508         rm -rf libconftest.dylib*
9509         rm -f conftest.*
9510       fi
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9513 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9514
9515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9516 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9517 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9518   $as_echo_n "(cached) " >&6
9519 else
9520   lt_cv_ld_exported_symbols_list=no
9521       save_LDFLAGS=$LDFLAGS
9522       echo "_main" > conftest.sym
9523       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9524       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h.  */
9526
9527 int
9528 main ()
9529 {
9530
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536   lt_cv_ld_exported_symbols_list=yes
9537 else
9538   lt_cv_ld_exported_symbols_list=no
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext \
9541     conftest$ac_exeext conftest.$ac_ext
9542         LDFLAGS="$save_LDFLAGS"
9543
9544 fi
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9546 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9547
9548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9549 $as_echo_n "checking for -force_load linker flag... " >&6; }
9550 if ${lt_cv_ld_force_load+:} false; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553   lt_cv_ld_force_load=no
9554       cat > conftest.c << _LT_EOF
9555 int forced_loaded() { return 2;}
9556 _LT_EOF
9557       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9558       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9559       echo "$AR cru libconftest.a conftest.o" >&5
9560       $AR cru libconftest.a conftest.o 2>&5
9561       echo "$RANLIB libconftest.a" >&5
9562       $RANLIB libconftest.a 2>&5
9563       cat > conftest.c << _LT_EOF
9564 int main() { return 0;}
9565 _LT_EOF
9566       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9567       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9568       _lt_result=$?
9569       if test -s conftest.err && $GREP force_load conftest.err; then
9570         cat conftest.err >&5
9571       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9572         lt_cv_ld_force_load=yes
9573       else
9574         cat conftest.err >&5
9575       fi
9576         rm -f conftest.err libconftest.a conftest conftest.c
9577         rm -rf conftest.dSYM
9578
9579 fi
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9581 $as_echo "$lt_cv_ld_force_load" >&6; }
9582     case $host_os in
9583     rhapsody* | darwin1.[012])
9584       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9585     darwin1.*)
9586       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9587     darwin*) # darwin 5.x on
9588       # if running on 10.5 or later, the deployment target defaults
9589       # to the OS version, if on x86, and 10.4, the deployment
9590       # target defaults to 10.4. Don't you love it?
9591       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9592         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9593           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9594         10.[012]*)
9595           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9596         10.*)
9597           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9598       esac
9599     ;;
9600   esac
9601     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9602       _lt_dar_single_mod='$single_module'
9603     fi
9604     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9605       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9606     else
9607       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9608     fi
9609     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9610       _lt_dsymutil='~$DSYMUTIL $lib || :'
9611     else
9612       _lt_dsymutil=
9613     fi
9614     ;;
9615   esac
9616
9617 for ac_header in dlfcn.h
9618 do :
9619   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9620 "
9621 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9622   cat >>confdefs.h <<_ACEOF
9623 #define HAVE_DLFCN_H 1
9624 _ACEOF
9625
9626 fi
9627
9628 done
9629
9630
9631
9632
9633 func_stripname_cnf ()
9634 {
9635   case ${2} in
9636   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9637   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9638   esac
9639 } # func_stripname_cnf
9640
9641
9642
9643
9644
9645 # Set options
9646 enable_win32_dll=yes
9647
9648 case $host in
9649 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9650   if test -n "$ac_tool_prefix"; then
9651   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9652 set dummy ${ac_tool_prefix}as; ac_word=$2
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9654 $as_echo_n "checking for $ac_word... " >&6; }
9655 if ${ac_cv_prog_AS+:} false; then :
9656   $as_echo_n "(cached) " >&6
9657 else
9658   if test -n "$AS"; then
9659   ac_cv_prog_AS="$AS" # Let the user override the test.
9660 else
9661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662 for as_dir in $PATH
9663 do
9664   IFS=$as_save_IFS
9665   test -z "$as_dir" && as_dir=.
9666     for ac_exec_ext in '' $ac_executable_extensions; do
9667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9668     ac_cv_prog_AS="${ac_tool_prefix}as"
9669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9670     break 2
9671   fi
9672 done
9673   done
9674 IFS=$as_save_IFS
9675
9676 fi
9677 fi
9678 AS=$ac_cv_prog_AS
9679 if test -n "$AS"; then
9680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9681 $as_echo "$AS" >&6; }
9682 else
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9685 fi
9686
9687
9688 fi
9689 if test -z "$ac_cv_prog_AS"; then
9690   ac_ct_AS=$AS
9691   # Extract the first word of "as", so it can be a program name with args.
9692 set dummy as; ac_word=$2
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694 $as_echo_n "checking for $ac_word... " >&6; }
9695 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9696   $as_echo_n "(cached) " >&6
9697 else
9698   if test -n "$ac_ct_AS"; then
9699   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9700 else
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9703 do
9704   IFS=$as_save_IFS
9705   test -z "$as_dir" && as_dir=.
9706     for ac_exec_ext in '' $ac_executable_extensions; do
9707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9708     ac_cv_prog_ac_ct_AS="as"
9709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710     break 2
9711   fi
9712 done
9713   done
9714 IFS=$as_save_IFS
9715
9716 fi
9717 fi
9718 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9719 if test -n "$ac_ct_AS"; then
9720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9721 $as_echo "$ac_ct_AS" >&6; }
9722 else
9723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9725 fi
9726
9727   if test "x$ac_ct_AS" = x; then
9728     AS="false"
9729   else
9730     case $cross_compiling:$ac_tool_warned in
9731 yes:)
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9734 ac_tool_warned=yes ;;
9735 esac
9736     AS=$ac_ct_AS
9737   fi
9738 else
9739   AS="$ac_cv_prog_AS"
9740 fi
9741
9742   if test -n "$ac_tool_prefix"; then
9743   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9744 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if ${ac_cv_prog_DLLTOOL+:} false; then :
9748   $as_echo_n "(cached) " >&6
9749 else
9750   if test -n "$DLLTOOL"; then
9751   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9752 else
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9755 do
9756   IFS=$as_save_IFS
9757   test -z "$as_dir" && as_dir=.
9758     for ac_exec_ext in '' $ac_executable_extensions; do
9759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9760     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762     break 2
9763   fi
9764 done
9765   done
9766 IFS=$as_save_IFS
9767
9768 fi
9769 fi
9770 DLLTOOL=$ac_cv_prog_DLLTOOL
9771 if test -n "$DLLTOOL"; then
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9773 $as_echo "$DLLTOOL" >&6; }
9774 else
9775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9777 fi
9778
9779
9780 fi
9781 if test -z "$ac_cv_prog_DLLTOOL"; then
9782   ac_ct_DLLTOOL=$DLLTOOL
9783   # Extract the first word of "dlltool", so it can be a program name with args.
9784 set dummy dlltool; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9788   $as_echo_n "(cached) " >&6
9789 else
9790   if test -n "$ac_ct_DLLTOOL"; then
9791   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9792 else
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in $PATH
9795 do
9796   IFS=$as_save_IFS
9797   test -z "$as_dir" && as_dir=.
9798     for ac_exec_ext in '' $ac_executable_extensions; do
9799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9800     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9802     break 2
9803   fi
9804 done
9805   done
9806 IFS=$as_save_IFS
9807
9808 fi
9809 fi
9810 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9811 if test -n "$ac_ct_DLLTOOL"; then
9812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9813 $as_echo "$ac_ct_DLLTOOL" >&6; }
9814 else
9815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816 $as_echo "no" >&6; }
9817 fi
9818
9819   if test "x$ac_ct_DLLTOOL" = x; then
9820     DLLTOOL="false"
9821   else
9822     case $cross_compiling:$ac_tool_warned in
9823 yes:)
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9826 ac_tool_warned=yes ;;
9827 esac
9828     DLLTOOL=$ac_ct_DLLTOOL
9829   fi
9830 else
9831   DLLTOOL="$ac_cv_prog_DLLTOOL"
9832 fi
9833
9834   if test -n "$ac_tool_prefix"; then
9835   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9836 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_prog_OBJDUMP+:} false; then :
9840   $as_echo_n "(cached) " >&6
9841 else
9842   if test -n "$OBJDUMP"; then
9843   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9844 else
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9847 do
9848   IFS=$as_save_IFS
9849   test -z "$as_dir" && as_dir=.
9850     for ac_exec_ext in '' $ac_executable_extensions; do
9851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854     break 2
9855   fi
9856 done
9857   done
9858 IFS=$as_save_IFS
9859
9860 fi
9861 fi
9862 OBJDUMP=$ac_cv_prog_OBJDUMP
9863 if test -n "$OBJDUMP"; then
9864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9865 $as_echo "$OBJDUMP" >&6; }
9866 else
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9869 fi
9870
9871
9872 fi
9873 if test -z "$ac_cv_prog_OBJDUMP"; then
9874   ac_ct_OBJDUMP=$OBJDUMP
9875   # Extract the first word of "objdump", so it can be a program name with args.
9876 set dummy objdump; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9880   $as_echo_n "(cached) " >&6
9881 else
9882   if test -n "$ac_ct_OBJDUMP"; then
9883   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888   IFS=$as_save_IFS
9889   test -z "$as_dir" && as_dir=.
9890     for ac_exec_ext in '' $ac_executable_extensions; do
9891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894     break 2
9895   fi
9896 done
9897   done
9898 IFS=$as_save_IFS
9899
9900 fi
9901 fi
9902 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9903 if test -n "$ac_ct_OBJDUMP"; then
9904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9905 $as_echo "$ac_ct_OBJDUMP" >&6; }
9906 else
9907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9909 fi
9910
9911   if test "x$ac_ct_OBJDUMP" = x; then
9912     OBJDUMP="false"
9913   else
9914     case $cross_compiling:$ac_tool_warned in
9915 yes:)
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9918 ac_tool_warned=yes ;;
9919 esac
9920     OBJDUMP=$ac_ct_OBJDUMP
9921   fi
9922 else
9923   OBJDUMP="$ac_cv_prog_OBJDUMP"
9924 fi
9925
9926   ;;
9927 esac
9928
9929 test -z "$AS" && AS=as
9930
9931
9932
9933
9934
9935 test -z "$DLLTOOL" && DLLTOOL=dlltool
9936
9937
9938
9939
9940
9941 test -z "$OBJDUMP" && OBJDUMP=objdump
9942
9943
9944
9945
9946 # Check whether --enable-static was given.
9947 if test "${enable_static+set}" = set; then :
9948   enableval=$enable_static; p=${PACKAGE-default}
9949     case $enableval in
9950     yes) enable_static=yes ;;
9951     no) enable_static=no ;;
9952     *)
9953      enable_static=no
9954       # Look at the argument we got.  We use all the common list separators.
9955       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9956       for pkg in $enableval; do
9957         IFS="$lt_save_ifs"
9958         if test "X$pkg" = "X$p"; then
9959           enable_static=yes
9960         fi
9961       done
9962       IFS="$lt_save_ifs"
9963       ;;
9964     esac
9965 else
9966   enable_static=no
9967 fi
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978         enable_dlopen=no
9979
9980
9981
9982             # Check whether --enable-shared was given.
9983 if test "${enable_shared+set}" = set; then :
9984   enableval=$enable_shared; p=${PACKAGE-default}
9985     case $enableval in
9986     yes) enable_shared=yes ;;
9987     no) enable_shared=no ;;
9988     *)
9989       enable_shared=no
9990       # Look at the argument we got.  We use all the common list separators.
9991       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9992       for pkg in $enableval; do
9993         IFS="$lt_save_ifs"
9994         if test "X$pkg" = "X$p"; then
9995           enable_shared=yes
9996         fi
9997       done
9998       IFS="$lt_save_ifs"
9999       ;;
10000     esac
10001 else
10002   enable_shared=yes
10003 fi
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015 # Check whether --with-pic was given.
10016 if test "${with_pic+set}" = set; then :
10017   withval=$with_pic; lt_p=${PACKAGE-default}
10018     case $withval in
10019     yes|no) pic_mode=$withval ;;
10020     *)
10021       pic_mode=default
10022       # Look at the argument we got.  We use all the common list separators.
10023       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10024       for lt_pkg in $withval; do
10025         IFS="$lt_save_ifs"
10026         if test "X$lt_pkg" = "X$lt_p"; then
10027           pic_mode=yes
10028         fi
10029       done
10030       IFS="$lt_save_ifs"
10031       ;;
10032     esac
10033 else
10034   pic_mode=default
10035 fi
10036
10037
10038 test -z "$pic_mode" && pic_mode=default
10039
10040
10041
10042
10043
10044
10045
10046   # Check whether --enable-fast-install was given.
10047 if test "${enable_fast_install+set}" = set; then :
10048   enableval=$enable_fast_install; p=${PACKAGE-default}
10049     case $enableval in
10050     yes) enable_fast_install=yes ;;
10051     no) enable_fast_install=no ;;
10052     *)
10053       enable_fast_install=no
10054       # Look at the argument we got.  We use all the common list separators.
10055       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10056       for pkg in $enableval; do
10057         IFS="$lt_save_ifs"
10058         if test "X$pkg" = "X$p"; then
10059           enable_fast_install=yes
10060         fi
10061       done
10062       IFS="$lt_save_ifs"
10063       ;;
10064     esac
10065 else
10066   enable_fast_install=yes
10067 fi
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079 # This can be used to rebuild libtool when needed
10080 LIBTOOL_DEPS="$ltmain"
10081
10082 # Always use our own libtool.
10083 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10084
10085
10086
10087
10088
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 test -z "$LN_S" && LN_S="ln -s"
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129 if test -n "${ZSH_VERSION+set}" ; then
10130    setopt NO_GLOB_SUBST
10131 fi
10132
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10134 $as_echo_n "checking for objdir... " >&6; }
10135 if ${lt_cv_objdir+:} false; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   rm -f .libs 2>/dev/null
10139 mkdir .libs 2>/dev/null
10140 if test -d .libs; then
10141   lt_cv_objdir=.libs
10142 else
10143   # MS-DOS does not allow filenames that begin with a dot.
10144   lt_cv_objdir=_libs
10145 fi
10146 rmdir .libs 2>/dev/null
10147 fi
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10149 $as_echo "$lt_cv_objdir" >&6; }
10150 objdir=$lt_cv_objdir
10151
10152
10153
10154
10155
10156 cat >>confdefs.h <<_ACEOF
10157 #define LT_OBJDIR "$lt_cv_objdir/"
10158 _ACEOF
10159
10160
10161
10162
10163 case $host_os in
10164 aix3*)
10165   # AIX sometimes has problems with the GCC collect2 program.  For some
10166   # reason, if we set the COLLECT_NAMES environment variable, the problems
10167   # vanish in a puff of smoke.
10168   if test "X${COLLECT_NAMES+set}" != Xset; then
10169     COLLECT_NAMES=
10170     export COLLECT_NAMES
10171   fi
10172   ;;
10173 esac
10174
10175 # Global variables:
10176 ofile=libtool
10177 can_build_shared=yes
10178
10179 # All known linkers require a `.a' archive for static linking (except MSVC,
10180 # which needs '.lib').
10181 libext=a
10182
10183 with_gnu_ld="$lt_cv_prog_gnu_ld"
10184
10185 old_CC="$CC"
10186 old_CFLAGS="$CFLAGS"
10187
10188 # Set sane defaults for various variables
10189 test -z "$CC" && CC=cc
10190 test -z "$LTCC" && LTCC=$CC
10191 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10192 test -z "$LD" && LD=ld
10193 test -z "$ac_objext" && ac_objext=o
10194
10195 for cc_temp in $compiler""; do
10196   case $cc_temp in
10197     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10198     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10199     \-*) ;;
10200     *) break;;
10201   esac
10202 done
10203 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10204
10205
10206 # Only perform the check for file, if the check method requires it
10207 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10208 case $deplibs_check_method in
10209 file_magic*)
10210   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10212 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10213 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   case $MAGIC_CMD in
10217 [\\/*] |  ?:[\\/]*)
10218   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10219   ;;
10220 *)
10221   lt_save_MAGIC_CMD="$MAGIC_CMD"
10222   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10223   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10224   for ac_dir in $ac_dummy; do
10225     IFS="$lt_save_ifs"
10226     test -z "$ac_dir" && ac_dir=.
10227     if test -f $ac_dir/${ac_tool_prefix}file; then
10228       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10229       if test -n "$file_magic_test_file"; then
10230         case $deplibs_check_method in
10231         "file_magic "*)
10232           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10233           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10234           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10235             $EGREP "$file_magic_regex" > /dev/null; then
10236             :
10237           else
10238             cat <<_LT_EOF 1>&2
10239
10240 *** Warning: the command libtool uses to detect shared libraries,
10241 *** $file_magic_cmd, produces output that libtool cannot recognize.
10242 *** The result is that libtool may fail to recognize shared libraries
10243 *** as such.  This will affect the creation of libtool libraries that
10244 *** depend on shared libraries, but programs linked with such libtool
10245 *** libraries will work regardless of this problem.  Nevertheless, you
10246 *** may want to report the problem to your system manager and/or to
10247 *** bug-libtool@gnu.org
10248
10249 _LT_EOF
10250           fi ;;
10251         esac
10252       fi
10253       break
10254     fi
10255   done
10256   IFS="$lt_save_ifs"
10257   MAGIC_CMD="$lt_save_MAGIC_CMD"
10258   ;;
10259 esac
10260 fi
10261
10262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10263 if test -n "$MAGIC_CMD"; then
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10265 $as_echo "$MAGIC_CMD" >&6; }
10266 else
10267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10269 fi
10270
10271
10272
10273
10274
10275 if test -z "$lt_cv_path_MAGIC_CMD"; then
10276   if test -n "$ac_tool_prefix"; then
10277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10278 $as_echo_n "checking for file... " >&6; }
10279 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10280   $as_echo_n "(cached) " >&6
10281 else
10282   case $MAGIC_CMD in
10283 [\\/*] |  ?:[\\/]*)
10284   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10285   ;;
10286 *)
10287   lt_save_MAGIC_CMD="$MAGIC_CMD"
10288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10289   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10290   for ac_dir in $ac_dummy; do
10291     IFS="$lt_save_ifs"
10292     test -z "$ac_dir" && ac_dir=.
10293     if test -f $ac_dir/file; then
10294       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10295       if test -n "$file_magic_test_file"; then
10296         case $deplibs_check_method in
10297         "file_magic "*)
10298           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10299           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10300           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10301             $EGREP "$file_magic_regex" > /dev/null; then
10302             :
10303           else
10304             cat <<_LT_EOF 1>&2
10305
10306 *** Warning: the command libtool uses to detect shared libraries,
10307 *** $file_magic_cmd, produces output that libtool cannot recognize.
10308 *** The result is that libtool may fail to recognize shared libraries
10309 *** as such.  This will affect the creation of libtool libraries that
10310 *** depend on shared libraries, but programs linked with such libtool
10311 *** libraries will work regardless of this problem.  Nevertheless, you
10312 *** may want to report the problem to your system manager and/or to
10313 *** bug-libtool@gnu.org
10314
10315 _LT_EOF
10316           fi ;;
10317         esac
10318       fi
10319       break
10320     fi
10321   done
10322   IFS="$lt_save_ifs"
10323   MAGIC_CMD="$lt_save_MAGIC_CMD"
10324   ;;
10325 esac
10326 fi
10327
10328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10329 if test -n "$MAGIC_CMD"; then
10330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10331 $as_echo "$MAGIC_CMD" >&6; }
10332 else
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10335 fi
10336
10337
10338   else
10339     MAGIC_CMD=:
10340   fi
10341 fi
10342
10343   fi
10344   ;;
10345 esac
10346
10347 # Use C for the default configuration in the libtool script
10348
10349 lt_save_CC="$CC"
10350 ac_ext=c
10351 ac_cpp='$CPP $CPPFLAGS'
10352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10355
10356
10357 # Source file extension for C test sources.
10358 ac_ext=c
10359
10360 # Object file extension for compiled C test sources.
10361 objext=o
10362 objext=$objext
10363
10364 # Code to be used in simple compile tests
10365 lt_simple_compile_test_code="int some_variable = 0;"
10366
10367 # Code to be used in simple link tests
10368 lt_simple_link_test_code='int main(){return(0);}'
10369
10370
10371
10372
10373
10374
10375
10376 # If no C compiler was specified, use CC.
10377 LTCC=${LTCC-"$CC"}
10378
10379 # If no C compiler flags were specified, use CFLAGS.
10380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10381
10382 # Allow CC to be a program name with arguments.
10383 compiler=$CC
10384
10385 # Save the default compiler, since it gets overwritten when the other
10386 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10387 compiler_DEFAULT=$CC
10388
10389 # save warnings/boilerplate of simple test code
10390 ac_outfile=conftest.$ac_objext
10391 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10392 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10393 _lt_compiler_boilerplate=`cat conftest.err`
10394 $RM conftest*
10395
10396 ac_outfile=conftest.$ac_objext
10397 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10398 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10399 _lt_linker_boilerplate=`cat conftest.err`
10400 $RM -r conftest*
10401
10402
10403 ## CAVEAT EMPTOR:
10404 ## There is no encapsulation within the following macros, do not change
10405 ## the running order or otherwise move them around unless you know exactly
10406 ## what you are doing...
10407 if test -n "$compiler"; then
10408
10409 lt_prog_compiler_no_builtin_flag=
10410
10411 if test "$GCC" = yes; then
10412   case $cc_basename in
10413   nvcc*)
10414     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10415   *)
10416     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10417   esac
10418
10419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10420 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10421 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10422   $as_echo_n "(cached) " >&6
10423 else
10424   lt_cv_prog_compiler_rtti_exceptions=no
10425    ac_outfile=conftest.$ac_objext
10426    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10427    lt_compiler_flag="-fno-rtti -fno-exceptions"
10428    # Insert the option either (1) after the last *FLAGS variable, or
10429    # (2) before a word containing "conftest.", or (3) at the end.
10430    # Note that $ac_compile itself does not contain backslashes and begins
10431    # with a dollar sign (not a hyphen), so the echo should work correctly.
10432    # The option is referenced via a variable to avoid confusing sed.
10433    lt_compile=`echo "$ac_compile" | $SED \
10434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10436    -e 's:$: $lt_compiler_flag:'`
10437    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10438    (eval "$lt_compile" 2>conftest.err)
10439    ac_status=$?
10440    cat conftest.err >&5
10441    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442    if (exit $ac_status) && test -s "$ac_outfile"; then
10443      # The compiler can only warn and ignore the option if not recognized
10444      # So say no if there are warnings other than the usual output.
10445      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10446      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10447      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10448        lt_cv_prog_compiler_rtti_exceptions=yes
10449      fi
10450    fi
10451    $RM conftest*
10452
10453 fi
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10455 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10456
10457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10458     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10459 else
10460     :
10461 fi
10462
10463 fi
10464
10465
10466
10467
10468
10469
10470   lt_prog_compiler_wl=
10471 lt_prog_compiler_pic=
10472 lt_prog_compiler_static=
10473
10474
10475   if test "$GCC" = yes; then
10476     lt_prog_compiler_wl='-Wl,'
10477     lt_prog_compiler_static='-static'
10478
10479     case $host_os in
10480       aix*)
10481       # All AIX code is PIC.
10482       if test "$host_cpu" = ia64; then
10483         # AIX 5 now supports IA64 processor
10484         lt_prog_compiler_static='-Bstatic'
10485       fi
10486       ;;
10487
10488     amigaos*)
10489       case $host_cpu in
10490       powerpc)
10491             # see comment about AmigaOS4 .so support
10492             lt_prog_compiler_pic='-fPIC'
10493         ;;
10494       m68k)
10495             # FIXME: we need at least 68020 code to build shared libraries, but
10496             # adding the `-m68020' flag to GCC prevents building anything better,
10497             # like `-m68040'.
10498             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10499         ;;
10500       esac
10501       ;;
10502
10503     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10504       # PIC is the default for these OSes.
10505       ;;
10506
10507     mingw* | cygwin* | pw32* | os2* | cegcc*)
10508       # This hack is so that the source file can tell whether it is being
10509       # built for inclusion in a dll (and should export symbols for example).
10510       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10511       # (--disable-auto-import) libraries
10512       lt_prog_compiler_pic='-DDLL_EXPORT'
10513       ;;
10514
10515     darwin* | rhapsody*)
10516       # PIC is the default on this platform
10517       # Common symbols not allowed in MH_DYLIB files
10518       lt_prog_compiler_pic='-fno-common'
10519       ;;
10520
10521     haiku*)
10522       # PIC is the default for Haiku.
10523       # The "-static" flag exists, but is broken.
10524       lt_prog_compiler_static=
10525       ;;
10526
10527     hpux*)
10528       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10529       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10530       # sets the default TLS model and affects inlining.
10531       case $host_cpu in
10532       hppa*64*)
10533         # +Z the default
10534         ;;
10535       *)
10536         lt_prog_compiler_pic='-fPIC'
10537         ;;
10538       esac
10539       ;;
10540
10541     interix[3-9]*)
10542       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10543       # Instead, we relocate shared libraries at runtime.
10544       ;;
10545
10546     msdosdjgpp*)
10547       # Just because we use GCC doesn't mean we suddenly get shared libraries
10548       # on systems that don't support them.
10549       lt_prog_compiler_can_build_shared=no
10550       enable_shared=no
10551       ;;
10552
10553     *nto* | *qnx*)
10554       # QNX uses GNU C++, but need to define -shared option too, otherwise
10555       # it will coredump.
10556       lt_prog_compiler_pic='-fPIC -shared'
10557       ;;
10558
10559     sysv4*MP*)
10560       if test -d /usr/nec; then
10561         lt_prog_compiler_pic=-Kconform_pic
10562       fi
10563       ;;
10564
10565     *)
10566       lt_prog_compiler_pic='-fPIC'
10567       ;;
10568     esac
10569
10570     case $cc_basename in
10571     nvcc*) # Cuda Compiler Driver 2.2
10572       lt_prog_compiler_wl='-Xlinker '
10573       if test -n "$lt_prog_compiler_pic"; then
10574         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10575       fi
10576       ;;
10577     esac
10578   else
10579     # PORTME Check for flag to pass linker flags through the system compiler.
10580     case $host_os in
10581     aix*)
10582       lt_prog_compiler_wl='-Wl,'
10583       if test "$host_cpu" = ia64; then
10584         # AIX 5 now supports IA64 processor
10585         lt_prog_compiler_static='-Bstatic'
10586       else
10587         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10588       fi
10589       ;;
10590
10591     mingw* | cygwin* | pw32* | os2* | cegcc*)
10592       # This hack is so that the source file can tell whether it is being
10593       # built for inclusion in a dll (and should export symbols for example).
10594       lt_prog_compiler_pic='-DDLL_EXPORT'
10595       ;;
10596
10597     hpux9* | hpux10* | hpux11*)
10598       lt_prog_compiler_wl='-Wl,'
10599       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10600       # not for PA HP-UX.
10601       case $host_cpu in
10602       hppa*64*|ia64*)
10603         # +Z the default
10604         ;;
10605       *)
10606         lt_prog_compiler_pic='+Z'
10607         ;;
10608       esac
10609       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10610       lt_prog_compiler_static='${wl}-a ${wl}archive'
10611       ;;
10612
10613     irix5* | irix6* | nonstopux*)
10614       lt_prog_compiler_wl='-Wl,'
10615       # PIC (with -KPIC) is the default.
10616       lt_prog_compiler_static='-non_shared'
10617       ;;
10618
10619     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10620       case $cc_basename in
10621       # old Intel for x86_64 which still supported -KPIC.
10622       ecc*)
10623         lt_prog_compiler_wl='-Wl,'
10624         lt_prog_compiler_pic='-KPIC'
10625         lt_prog_compiler_static='-static'
10626         ;;
10627       # icc used to be incompatible with GCC.
10628       # ICC 10 doesn't accept -KPIC any more.
10629       icc* | ifort*)
10630         lt_prog_compiler_wl='-Wl,'
10631         lt_prog_compiler_pic='-fPIC'
10632         lt_prog_compiler_static='-static'
10633         ;;
10634       # Lahey Fortran 8.1.
10635       lf95*)
10636         lt_prog_compiler_wl='-Wl,'
10637         lt_prog_compiler_pic='--shared'
10638         lt_prog_compiler_static='--static'
10639         ;;
10640       nagfor*)
10641         # NAG Fortran compiler
10642         lt_prog_compiler_wl='-Wl,-Wl,,'
10643         lt_prog_compiler_pic='-PIC'
10644         lt_prog_compiler_static='-Bstatic'
10645         ;;
10646       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10647         # Portland Group compilers (*not* the Pentium gcc compiler,
10648         # which looks to be a dead project)
10649         lt_prog_compiler_wl='-Wl,'
10650         lt_prog_compiler_pic='-fpic'
10651         lt_prog_compiler_static='-Bstatic'
10652         ;;
10653       ccc*)
10654         lt_prog_compiler_wl='-Wl,'
10655         # All Alpha code is PIC.
10656         lt_prog_compiler_static='-non_shared'
10657         ;;
10658       xl* | bgxl* | bgf* | mpixl*)
10659         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10660         lt_prog_compiler_wl='-Wl,'
10661         lt_prog_compiler_pic='-qpic'
10662         lt_prog_compiler_static='-qstaticlink'
10663         ;;
10664       *)
10665         case `$CC -V 2>&1 | sed 5q` in
10666         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10667           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10668           lt_prog_compiler_pic='-KPIC'
10669           lt_prog_compiler_static='-Bstatic'
10670           lt_prog_compiler_wl=''
10671           ;;
10672         *Sun\ F* | *Sun*Fortran*)
10673           lt_prog_compiler_pic='-KPIC'
10674           lt_prog_compiler_static='-Bstatic'
10675           lt_prog_compiler_wl='-Qoption ld '
10676           ;;
10677         *Sun\ C*)
10678           # Sun C 5.9
10679           lt_prog_compiler_pic='-KPIC'
10680           lt_prog_compiler_static='-Bstatic'
10681           lt_prog_compiler_wl='-Wl,'
10682           ;;
10683         *Intel*\ [CF]*Compiler*)
10684           lt_prog_compiler_wl='-Wl,'
10685           lt_prog_compiler_pic='-fPIC'
10686           lt_prog_compiler_static='-static'
10687           ;;
10688         *Portland\ Group*)
10689           lt_prog_compiler_wl='-Wl,'
10690           lt_prog_compiler_pic='-fpic'
10691           lt_prog_compiler_static='-Bstatic'
10692           ;;
10693         esac
10694         ;;
10695       esac
10696       ;;
10697
10698     newsos6)
10699       lt_prog_compiler_pic='-KPIC'
10700       lt_prog_compiler_static='-Bstatic'
10701       ;;
10702
10703     *nto* | *qnx*)
10704       # QNX uses GNU C++, but need to define -shared option too, otherwise
10705       # it will coredump.
10706       lt_prog_compiler_pic='-fPIC -shared'
10707       ;;
10708
10709     osf3* | osf4* | osf5*)
10710       lt_prog_compiler_wl='-Wl,'
10711       # All OSF/1 code is PIC.
10712       lt_prog_compiler_static='-non_shared'
10713       ;;
10714
10715     rdos*)
10716       lt_prog_compiler_static='-non_shared'
10717       ;;
10718
10719     solaris*)
10720       lt_prog_compiler_pic='-KPIC'
10721       lt_prog_compiler_static='-Bstatic'
10722       case $cc_basename in
10723       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10724         lt_prog_compiler_wl='-Qoption ld ';;
10725       *)
10726         lt_prog_compiler_wl='-Wl,';;
10727       esac
10728       ;;
10729
10730     sunos4*)
10731       lt_prog_compiler_wl='-Qoption ld '
10732       lt_prog_compiler_pic='-PIC'
10733       lt_prog_compiler_static='-Bstatic'
10734       ;;
10735
10736     sysv4 | sysv4.2uw2* | sysv4.3*)
10737       lt_prog_compiler_wl='-Wl,'
10738       lt_prog_compiler_pic='-KPIC'
10739       lt_prog_compiler_static='-Bstatic'
10740       ;;
10741
10742     sysv4*MP*)
10743       if test -d /usr/nec ;then
10744         lt_prog_compiler_pic='-Kconform_pic'
10745         lt_prog_compiler_static='-Bstatic'
10746       fi
10747       ;;
10748
10749     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10750       lt_prog_compiler_wl='-Wl,'
10751       lt_prog_compiler_pic='-KPIC'
10752       lt_prog_compiler_static='-Bstatic'
10753       ;;
10754
10755     unicos*)
10756       lt_prog_compiler_wl='-Wl,'
10757       lt_prog_compiler_can_build_shared=no
10758       ;;
10759
10760     uts4*)
10761       lt_prog_compiler_pic='-pic'
10762       lt_prog_compiler_static='-Bstatic'
10763       ;;
10764
10765     *)
10766       lt_prog_compiler_can_build_shared=no
10767       ;;
10768     esac
10769   fi
10770
10771 case $host_os in
10772   # For platforms which do not support PIC, -DPIC is meaningless:
10773   *djgpp*)
10774     lt_prog_compiler_pic=
10775     ;;
10776   *)
10777     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10778     ;;
10779 esac
10780
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10782 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10783 if ${lt_cv_prog_compiler_pic+:} false; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10787 fi
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10789 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10790 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10791
10792 #
10793 # Check to make sure the PIC flag actually works.
10794 #
10795 if test -n "$lt_prog_compiler_pic"; then
10796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10797 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10798 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10799   $as_echo_n "(cached) " >&6
10800 else
10801   lt_cv_prog_compiler_pic_works=no
10802    ac_outfile=conftest.$ac_objext
10803    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10804    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10805    # Insert the option either (1) after the last *FLAGS variable, or
10806    # (2) before a word containing "conftest.", or (3) at the end.
10807    # Note that $ac_compile itself does not contain backslashes and begins
10808    # with a dollar sign (not a hyphen), so the echo should work correctly.
10809    # The option is referenced via a variable to avoid confusing sed.
10810    lt_compile=`echo "$ac_compile" | $SED \
10811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10813    -e 's:$: $lt_compiler_flag:'`
10814    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10815    (eval "$lt_compile" 2>conftest.err)
10816    ac_status=$?
10817    cat conftest.err >&5
10818    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819    if (exit $ac_status) && test -s "$ac_outfile"; then
10820      # The compiler can only warn and ignore the option if not recognized
10821      # So say no if there are warnings other than the usual output.
10822      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10823      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10824      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10825        lt_cv_prog_compiler_pic_works=yes
10826      fi
10827    fi
10828    $RM conftest*
10829
10830 fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10832 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10833
10834 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10835     case $lt_prog_compiler_pic in
10836      "" | " "*) ;;
10837      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10838      esac
10839 else
10840     lt_prog_compiler_pic=
10841      lt_prog_compiler_can_build_shared=no
10842 fi
10843
10844 fi
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856 #
10857 # Check to make sure the static flag actually works.
10858 #
10859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10861 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10862 if ${lt_cv_prog_compiler_static_works+:} false; then :
10863   $as_echo_n "(cached) " >&6
10864 else
10865   lt_cv_prog_compiler_static_works=no
10866    save_LDFLAGS="$LDFLAGS"
10867    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10868    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10869    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10870      # The linker can only warn and ignore the option if not recognized
10871      # So say no if there are warnings
10872      if test -s conftest.err; then
10873        # Append any errors to the config.log.
10874        cat conftest.err 1>&5
10875        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10876        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10877        if diff conftest.exp conftest.er2 >/dev/null; then
10878          lt_cv_prog_compiler_static_works=yes
10879        fi
10880      else
10881        lt_cv_prog_compiler_static_works=yes
10882      fi
10883    fi
10884    $RM -r conftest*
10885    LDFLAGS="$save_LDFLAGS"
10886
10887 fi
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10889 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10890
10891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10892     :
10893 else
10894     lt_prog_compiler_static=
10895 fi
10896
10897
10898
10899
10900
10901
10902
10903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10905 if ${lt_cv_prog_compiler_c_o+:} false; then :
10906   $as_echo_n "(cached) " >&6
10907 else
10908   lt_cv_prog_compiler_c_o=no
10909    $RM -r conftest 2>/dev/null
10910    mkdir conftest
10911    cd conftest
10912    mkdir out
10913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10914
10915    lt_compiler_flag="-o out/conftest2.$ac_objext"
10916    # Insert the option either (1) after the last *FLAGS variable, or
10917    # (2) before a word containing "conftest.", or (3) at the end.
10918    # Note that $ac_compile itself does not contain backslashes and begins
10919    # with a dollar sign (not a hyphen), so the echo should work correctly.
10920    lt_compile=`echo "$ac_compile" | $SED \
10921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10923    -e 's:$: $lt_compiler_flag:'`
10924    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10925    (eval "$lt_compile" 2>out/conftest.err)
10926    ac_status=$?
10927    cat out/conftest.err >&5
10928    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10930    then
10931      # The compiler can only warn and ignore the option if not recognized
10932      # So say no if there are warnings
10933      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10934      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10935      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10936        lt_cv_prog_compiler_c_o=yes
10937      fi
10938    fi
10939    chmod u+w . 2>&5
10940    $RM conftest*
10941    # SGI C++ compiler will create directory out/ii_files/ for
10942    # template instantiation
10943    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10944    $RM out/* && rmdir out
10945    cd ..
10946    $RM -r conftest
10947    $RM conftest*
10948
10949 fi
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10952
10953
10954
10955
10956
10957
10958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10960 if ${lt_cv_prog_compiler_c_o+:} false; then :
10961   $as_echo_n "(cached) " >&6
10962 else
10963   lt_cv_prog_compiler_c_o=no
10964    $RM -r conftest 2>/dev/null
10965    mkdir conftest
10966    cd conftest
10967    mkdir out
10968    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10969
10970    lt_compiler_flag="-o out/conftest2.$ac_objext"
10971    # Insert the option either (1) after the last *FLAGS variable, or
10972    # (2) before a word containing "conftest.", or (3) at the end.
10973    # Note that $ac_compile itself does not contain backslashes and begins
10974    # with a dollar sign (not a hyphen), so the echo should work correctly.
10975    lt_compile=`echo "$ac_compile" | $SED \
10976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10978    -e 's:$: $lt_compiler_flag:'`
10979    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10980    (eval "$lt_compile" 2>out/conftest.err)
10981    ac_status=$?
10982    cat out/conftest.err >&5
10983    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10985    then
10986      # The compiler can only warn and ignore the option if not recognized
10987      # So say no if there are warnings
10988      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10989      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10990      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10991        lt_cv_prog_compiler_c_o=yes
10992      fi
10993    fi
10994    chmod u+w . 2>&5
10995    $RM conftest*
10996    # SGI C++ compiler will create directory out/ii_files/ for
10997    # template instantiation
10998    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10999    $RM out/* && rmdir out
11000    cd ..
11001    $RM -r conftest
11002    $RM conftest*
11003
11004 fi
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11007
11008
11009
11010
11011 hard_links="nottested"
11012 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11013   # do not overwrite the value of need_locks provided by the user
11014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11015 $as_echo_n "checking if we can lock with hard links... " >&6; }
11016   hard_links=yes
11017   $RM conftest*
11018   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11019   touch conftest.a
11020   ln conftest.a conftest.b 2>&5 || hard_links=no
11021   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11023 $as_echo "$hard_links" >&6; }
11024   if test "$hard_links" = no; then
11025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11026 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11027     need_locks=warn
11028   fi
11029 else
11030   need_locks=no
11031 fi
11032
11033
11034
11035
11036
11037
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11039 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11040
11041   runpath_var=
11042   allow_undefined_flag=
11043   always_export_symbols=no
11044   archive_cmds=
11045   archive_expsym_cmds=
11046   compiler_needs_object=no
11047   enable_shared_with_static_runtimes=no
11048   export_dynamic_flag_spec=
11049   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11050   hardcode_automatic=no
11051   hardcode_direct=no
11052   hardcode_direct_absolute=no
11053   hardcode_libdir_flag_spec=
11054   hardcode_libdir_separator=
11055   hardcode_minus_L=no
11056   hardcode_shlibpath_var=unsupported
11057   inherit_rpath=no
11058   link_all_deplibs=unknown
11059   module_cmds=
11060   module_expsym_cmds=
11061   old_archive_from_new_cmds=
11062   old_archive_from_expsyms_cmds=
11063   thread_safe_flag_spec=
11064   whole_archive_flag_spec=
11065   # include_expsyms should be a list of space-separated symbols to be *always*
11066   # included in the symbol list
11067   include_expsyms=
11068   # exclude_expsyms can be an extended regexp of symbols to exclude
11069   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11070   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11071   # as well as any symbol that contains `d'.
11072   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11073   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11074   # platforms (ab)use it in PIC code, but their linkers get confused if
11075   # the symbol is explicitly referenced.  Since portable code cannot
11076   # rely on this symbol name, it's probably fine to never include it in
11077   # preloaded symbol tables.
11078   # Exclude shared library initialization/finalization symbols.
11079   extract_expsyms_cmds=
11080
11081   case $host_os in
11082   cygwin* | mingw* | pw32* | cegcc*)
11083     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11084     # When not using gcc, we currently assume that we are using
11085     # Microsoft Visual C++.
11086     if test "$GCC" != yes; then
11087       with_gnu_ld=no
11088     fi
11089     ;;
11090   interix*)
11091     # we just hope/assume this is gcc and not c89 (= MSVC++)
11092     with_gnu_ld=yes
11093     ;;
11094   openbsd*)
11095     with_gnu_ld=no
11096     ;;
11097   linux* | k*bsd*-gnu | gnu*)
11098     link_all_deplibs=no
11099     ;;
11100   esac
11101
11102   ld_shlibs=yes
11103
11104   # On some targets, GNU ld is compatible enough with the native linker
11105   # that we're better off using the native interface for both.
11106   lt_use_gnu_ld_interface=no
11107   if test "$with_gnu_ld" = yes; then
11108     case $host_os in
11109       aix*)
11110         # The AIX port of GNU ld has always aspired to compatibility
11111         # with the native linker.  However, as the warning in the GNU ld
11112         # block says, versions before 2.19.5* couldn't really create working
11113         # shared libraries, regardless of the interface used.
11114         case `$LD -v 2>&1` in
11115           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11116           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11117           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11118           *)
11119             lt_use_gnu_ld_interface=yes
11120             ;;
11121         esac
11122         ;;
11123       *)
11124         lt_use_gnu_ld_interface=yes
11125         ;;
11126     esac
11127   fi
11128
11129   if test "$lt_use_gnu_ld_interface" = yes; then
11130     # If archive_cmds runs LD, not CC, wlarc should be empty
11131     wlarc='${wl}'
11132
11133     # Set some defaults for GNU ld with shared library support. These
11134     # are reset later if shared libraries are not supported. Putting them
11135     # here allows them to be overridden if necessary.
11136     runpath_var=LD_RUN_PATH
11137     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11138     export_dynamic_flag_spec='${wl}--export-dynamic'
11139     # ancient GNU ld didn't support --whole-archive et. al.
11140     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11141       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11142     else
11143       whole_archive_flag_spec=
11144     fi
11145     supports_anon_versioning=no
11146     case `$LD -v 2>&1` in
11147       *GNU\ gold*) supports_anon_versioning=yes ;;
11148       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11149       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11150       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11151       *\ 2.11.*) ;; # other 2.11 versions
11152       *) supports_anon_versioning=yes ;;
11153     esac
11154
11155     # See if GNU ld supports shared libraries.
11156     case $host_os in
11157     aix[3-9]*)
11158       # On AIX/PPC, the GNU linker is very broken
11159       if test "$host_cpu" != ia64; then
11160         ld_shlibs=no
11161         cat <<_LT_EOF 1>&2
11162
11163 *** Warning: the GNU linker, at least up to release 2.19, is reported
11164 *** to be unable to reliably create shared libraries on AIX.
11165 *** Therefore, libtool is disabling shared libraries support.  If you
11166 *** really care for shared libraries, you may want to install binutils
11167 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11168 *** You will then need to restart the configuration process.
11169
11170 _LT_EOF
11171       fi
11172       ;;
11173
11174     amigaos*)
11175       case $host_cpu in
11176       powerpc)
11177             # see comment about AmigaOS4 .so support
11178             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11179             archive_expsym_cmds=''
11180         ;;
11181       m68k)
11182             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)'
11183             hardcode_libdir_flag_spec='-L$libdir'
11184             hardcode_minus_L=yes
11185         ;;
11186       esac
11187       ;;
11188
11189     beos*)
11190       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11191         allow_undefined_flag=unsupported
11192         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11193         # support --undefined.  This deserves some investigation.  FIXME
11194         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11195       else
11196         ld_shlibs=no
11197       fi
11198       ;;
11199
11200     cygwin* | mingw* | pw32* | cegcc*)
11201       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11202       # as there is no search path for DLLs.
11203       hardcode_libdir_flag_spec='-L$libdir'
11204       export_dynamic_flag_spec='${wl}--export-all-symbols'
11205       allow_undefined_flag=unsupported
11206       always_export_symbols=no
11207       enable_shared_with_static_runtimes=yes
11208       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'
11209       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11210
11211       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11212         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11213         # If the export-symbols file already is a .def file (1st line
11214         # is EXPORTS), use it as is; otherwise, prepend...
11215         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11216           cp $export_symbols $output_objdir/$soname.def;
11217         else
11218           echo EXPORTS > $output_objdir/$soname.def;
11219           cat $export_symbols >> $output_objdir/$soname.def;
11220         fi~
11221         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11222       else
11223         ld_shlibs=no
11224       fi
11225       ;;
11226
11227     haiku*)
11228       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229       link_all_deplibs=yes
11230       ;;
11231
11232     interix[3-9]*)
11233       hardcode_direct=no
11234       hardcode_shlibpath_var=no
11235       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11236       export_dynamic_flag_spec='${wl}-E'
11237       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11238       # Instead, shared libraries are loaded at an image base (0x10000000 by
11239       # default) and relocated if they conflict, which is a slow very memory
11240       # consuming and fragmenting process.  To avoid this, we pick a random,
11241       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11242       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11243       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11244       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'
11245       ;;
11246
11247     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11248       tmp_diet=no
11249       if test "$host_os" = linux-dietlibc; then
11250         case $cc_basename in
11251           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11252         esac
11253       fi
11254       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11255          && test "$tmp_diet" = no
11256       then
11257         tmp_addflag=' $pic_flag'
11258         tmp_sharedflag='-shared'
11259         case $cc_basename,$host_cpu in
11260         pgcc*)                          # Portland Group C compiler
11261           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'
11262           tmp_addflag=' $pic_flag'
11263           ;;
11264         pgf77* | pgf90* | pgf95* | pgfortran*)
11265                                         # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
11268         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11269           tmp_addflag=' -i_dynamic' ;;
11270         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11271           tmp_addflag=' -i_dynamic -nofor_main' ;;
11272         ifc* | ifort*)                  # Intel Fortran compiler
11273           tmp_addflag=' -nofor_main' ;;
11274         lf95*)                          # Lahey Fortran 8.1
11275           whole_archive_flag_spec=
11276           tmp_sharedflag='--shared' ;;
11277         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11278           tmp_sharedflag='-qmkshrobj'
11279           tmp_addflag= ;;
11280         nvcc*)  # Cuda Compiler Driver 2.2
11281           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'
11282           compiler_needs_object=yes
11283           ;;
11284         esac
11285         case `$CC -V 2>&1 | sed 5q` in
11286         *Sun\ C*)                       # Sun C 5.9
11287           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'
11288           compiler_needs_object=yes
11289           tmp_sharedflag='-G' ;;
11290         *Sun\ F*)                       # Sun Fortran 8.3
11291           tmp_sharedflag='-G' ;;
11292         esac
11293         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11294
11295         if test "x$supports_anon_versioning" = xyes; then
11296           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11297             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11298             echo "local: *; };" >> $output_objdir/$libname.ver~
11299             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11300         fi
11301
11302         case $cc_basename in
11303         xlf* | bgf* | bgxlf* | mpixlf*)
11304           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11305           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11306           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11307           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11308           if test "x$supports_anon_versioning" = xyes; then
11309             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11310               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11311               echo "local: *; };" >> $output_objdir/$libname.ver~
11312               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11313           fi
11314           ;;
11315         esac
11316       else
11317         ld_shlibs=no
11318       fi
11319       ;;
11320
11321     netbsd* | netbsdelf*-gnu)
11322       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11323         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11324         wlarc=
11325       else
11326         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11327         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11328       fi
11329       ;;
11330
11331     solaris*)
11332       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11333         ld_shlibs=no
11334         cat <<_LT_EOF 1>&2
11335
11336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11337 *** create shared libraries on Solaris systems.  Therefore, libtool
11338 *** is disabling shared libraries support.  We urge you to upgrade GNU
11339 *** binutils to release 2.9.1 or newer.  Another option is to modify
11340 *** your PATH or compiler configuration so that the native linker is
11341 *** used, and then restart.
11342
11343 _LT_EOF
11344       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11345         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11346         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11347       else
11348         ld_shlibs=no
11349       fi
11350       ;;
11351
11352     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11353       case `$LD -v 2>&1` in
11354         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11355         ld_shlibs=no
11356         cat <<_LT_EOF 1>&2
11357
11358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11359 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11360 *** is disabling shared libraries support.  We urge you to upgrade GNU
11361 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11362 *** your PATH or compiler configuration so that the native linker is
11363 *** used, and then restart.
11364
11365 _LT_EOF
11366         ;;
11367         *)
11368           # For security reasons, it is highly recommended that you always
11369           # use absolute paths for naming shared libraries, and exclude the
11370           # DT_RUNPATH tag from executables and libraries.  But doing so
11371           # requires that you compile everything twice, which is a pain.
11372           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11373             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11374             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11375             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11376           else
11377             ld_shlibs=no
11378           fi
11379         ;;
11380       esac
11381       ;;
11382
11383     sunos4*)
11384       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11385       wlarc=
11386       hardcode_direct=yes
11387       hardcode_shlibpath_var=no
11388       ;;
11389
11390     *)
11391       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11392         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11393         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11394       else
11395         ld_shlibs=no
11396       fi
11397       ;;
11398     esac
11399
11400     if test "$ld_shlibs" = no; then
11401       runpath_var=
11402       hardcode_libdir_flag_spec=
11403       export_dynamic_flag_spec=
11404       whole_archive_flag_spec=
11405     fi
11406   else
11407     # PORTME fill in a description of your system's linker (not GNU ld)
11408     case $host_os in
11409     aix3*)
11410       allow_undefined_flag=unsupported
11411       always_export_symbols=yes
11412       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'
11413       # Note: this linker hardcodes the directories in LIBPATH if there
11414       # are no directories specified by -L.
11415       hardcode_minus_L=yes
11416       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11417         # Neither direct hardcoding nor static linking is supported with a
11418         # broken collect2.
11419         hardcode_direct=unsupported
11420       fi
11421       ;;
11422
11423     aix[4-9]*)
11424       if test "$host_cpu" = ia64; then
11425         # On IA64, the linker does run time linking by default, so we don't
11426         # have to do anything special.
11427         aix_use_runtimelinking=no
11428         exp_sym_flag='-Bexport'
11429         no_entry_flag=""
11430       else
11431         # If we're using GNU nm, then we don't want the "-C" option.
11432         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11433         # Also, AIX nm treats weak defined symbols like other global
11434         # defined symbols, whereas GNU nm marks them as "W".
11435         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11436           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'
11437         else
11438           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'
11439         fi
11440         aix_use_runtimelinking=no
11441
11442         # Test if we are trying to use run time linking or normal
11443         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11444         # need to do runtime linking.
11445         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11446           for ld_flag in $LDFLAGS; do
11447           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11448             aix_use_runtimelinking=yes
11449             break
11450           fi
11451           done
11452           ;;
11453         esac
11454
11455         exp_sym_flag='-bexport'
11456         no_entry_flag='-bnoentry'
11457       fi
11458
11459       # When large executables or shared objects are built, AIX ld can
11460       # have problems creating the table of contents.  If linking a library
11461       # or program results in "error TOC overflow" add -mminimal-toc to
11462       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11463       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11464
11465       archive_cmds=''
11466       hardcode_direct=yes
11467       hardcode_direct_absolute=yes
11468       hardcode_libdir_separator=':'
11469       link_all_deplibs=yes
11470       file_list_spec='${wl}-f,'
11471
11472       if test "$GCC" = yes; then
11473         case $host_os in aix4.[012]|aix4.[012].*)
11474         # We only want to do this on AIX 4.2 and lower, the check
11475         # below for broken collect2 doesn't work under 4.3+
11476           collect2name=`${CC} -print-prog-name=collect2`
11477           if test -f "$collect2name" &&
11478            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11479           then
11480           # We have reworked collect2
11481           :
11482           else
11483           # We have old collect2
11484           hardcode_direct=unsupported
11485           # It fails to find uninstalled libraries when the uninstalled
11486           # path is not listed in the libpath.  Setting hardcode_minus_L
11487           # to unsupported forces relinking
11488           hardcode_minus_L=yes
11489           hardcode_libdir_flag_spec='-L$libdir'
11490           hardcode_libdir_separator=
11491           fi
11492           ;;
11493         esac
11494         shared_flag='-shared'
11495         if test "$aix_use_runtimelinking" = yes; then
11496           shared_flag="$shared_flag "'${wl}-G'
11497         fi
11498         link_all_deplibs=no
11499       else
11500         # not using gcc
11501         if test "$host_cpu" = ia64; then
11502         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11503         # chokes on -Wl,-G. The following line is correct:
11504           shared_flag='-G'
11505         else
11506           if test "$aix_use_runtimelinking" = yes; then
11507             shared_flag='${wl}-G'
11508           else
11509             shared_flag='${wl}-bM:SRE'
11510           fi
11511         fi
11512       fi
11513
11514       export_dynamic_flag_spec='${wl}-bexpall'
11515       # It seems that -bexpall does not export symbols beginning with
11516       # underscore (_), so it is better to generate a list of symbols to export.
11517       always_export_symbols=yes
11518       if test "$aix_use_runtimelinking" = yes; then
11519         # Warning - without using the other runtime loading flags (-brtl),
11520         # -berok will link without error, but may produce a broken library.
11521         allow_undefined_flag='-berok'
11522         # Determine the default libpath from the value encoded in an
11523         # empty executable.
11524         if test "${lt_cv_aix_libpath+set}" = set; then
11525   aix_libpath=$lt_cv_aix_libpath
11526 else
11527   if ${lt_cv_aix_libpath_+:} false; then :
11528   $as_echo_n "(cached) " >&6
11529 else
11530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h.  */
11532
11533 int
11534 main ()
11535 {
11536
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542
11543   lt_aix_libpath_sed='
11544       /Import File Strings/,/^$/ {
11545           /^0/ {
11546               s/^0  *\([^ ]*\) *$/\1/
11547               p
11548           }
11549       }'
11550   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11551   # Check for a 64-bit object if we didn't find anything.
11552   if test -z "$lt_cv_aix_libpath_"; then
11553     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11554   fi
11555 fi
11556 rm -f core conftest.err conftest.$ac_objext \
11557     conftest$ac_exeext conftest.$ac_ext
11558   if test -z "$lt_cv_aix_libpath_"; then
11559     lt_cv_aix_libpath_="/usr/lib:/lib"
11560   fi
11561
11562 fi
11563
11564   aix_libpath=$lt_cv_aix_libpath_
11565 fi
11566
11567         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11568         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"
11569       else
11570         if test "$host_cpu" = ia64; then
11571           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11572           allow_undefined_flag="-z nodefs"
11573           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"
11574         else
11575          # Determine the default libpath from the value encoded in an
11576          # empty executable.
11577          if test "${lt_cv_aix_libpath+set}" = set; then
11578   aix_libpath=$lt_cv_aix_libpath
11579 else
11580   if ${lt_cv_aix_libpath_+:} false; then :
11581   $as_echo_n "(cached) " >&6
11582 else
11583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h.  */
11585
11586 int
11587 main ()
11588 {
11589
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595
11596   lt_aix_libpath_sed='
11597       /Import File Strings/,/^$/ {
11598           /^0/ {
11599               s/^0  *\([^ ]*\) *$/\1/
11600               p
11601           }
11602       }'
11603   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11604   # Check for a 64-bit object if we didn't find anything.
11605   if test -z "$lt_cv_aix_libpath_"; then
11606     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11607   fi
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext \
11610     conftest$ac_exeext conftest.$ac_ext
11611   if test -z "$lt_cv_aix_libpath_"; then
11612     lt_cv_aix_libpath_="/usr/lib:/lib"
11613   fi
11614
11615 fi
11616
11617   aix_libpath=$lt_cv_aix_libpath_
11618 fi
11619
11620          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11621           # Warning - without using the other run time loading flags,
11622           # -berok will link without error, but may produce a broken library.
11623           no_undefined_flag=' ${wl}-bernotok'
11624           allow_undefined_flag=' ${wl}-berok'
11625           if test "$with_gnu_ld" = yes; then
11626             # We only use this code for GNU lds that support --whole-archive.
11627             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11628           else
11629             # Exported symbols can be pulled into shared objects from archives
11630             whole_archive_flag_spec='$convenience'
11631           fi
11632           archive_cmds_need_lc=yes
11633           # This is similar to how AIX traditionally builds its shared libraries.
11634           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'
11635         fi
11636       fi
11637       ;;
11638
11639     amigaos*)
11640       case $host_cpu in
11641       powerpc)
11642             # see comment about AmigaOS4 .so support
11643             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11644             archive_expsym_cmds=''
11645         ;;
11646       m68k)
11647             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)'
11648             hardcode_libdir_flag_spec='-L$libdir'
11649             hardcode_minus_L=yes
11650         ;;
11651       esac
11652       ;;
11653
11654     bsdi[45]*)
11655       export_dynamic_flag_spec=-rdynamic
11656       ;;
11657
11658     cygwin* | mingw* | pw32* | cegcc*)
11659       # When not using gcc, we currently assume that we are using
11660       # Microsoft Visual C++.
11661       # hardcode_libdir_flag_spec is actually meaningless, as there is
11662       # no search path for DLLs.
11663       case $cc_basename in
11664       cl*)
11665         # Native MSVC
11666         hardcode_libdir_flag_spec=' '
11667         allow_undefined_flag=unsupported
11668         always_export_symbols=yes
11669         file_list_spec='@'
11670         # Tell ltmain to make .lib files, not .a files.
11671         libext=lib
11672         # Tell ltmain to make .dll files, not .so files.
11673         shrext_cmds=".dll"
11674         # FIXME: Setting linknames here is a bad hack.
11675         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11676         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11677             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11678           else
11679             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11680           fi~
11681           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11682           linknames='
11683         # The linker will not automatically build a static lib if we build a DLL.
11684         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11685         enable_shared_with_static_runtimes=yes
11686         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11687         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11688         # Don't use ranlib
11689         old_postinstall_cmds='chmod 644 $oldlib'
11690         postlink_cmds='lt_outputfile="@OUTPUT@"~
11691           lt_tool_outputfile="@TOOL_OUTPUT@"~
11692           case $lt_outputfile in
11693             *.exe|*.EXE) ;;
11694             *)
11695               lt_outputfile="$lt_outputfile.exe"
11696               lt_tool_outputfile="$lt_tool_outputfile.exe"
11697               ;;
11698           esac~
11699           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11700             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11701             $RM "$lt_outputfile.manifest";
11702           fi'
11703         ;;
11704       *)
11705         # Assume MSVC wrapper
11706         hardcode_libdir_flag_spec=' '
11707         allow_undefined_flag=unsupported
11708         # Tell ltmain to make .lib files, not .a files.
11709         libext=lib
11710         # Tell ltmain to make .dll files, not .so files.
11711         shrext_cmds=".dll"
11712         # FIXME: Setting linknames here is a bad hack.
11713         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11714         # The linker will automatically build a .lib file if we build a DLL.
11715         old_archive_from_new_cmds='true'
11716         # FIXME: Should let the user specify the lib program.
11717         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11718         enable_shared_with_static_runtimes=yes
11719         ;;
11720       esac
11721       ;;
11722
11723     darwin* | rhapsody*)
11724
11725
11726   archive_cmds_need_lc=no
11727   hardcode_direct=no
11728   hardcode_automatic=yes
11729   hardcode_shlibpath_var=unsupported
11730   if test "$lt_cv_ld_force_load" = "yes"; then
11731     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\"`'
11732
11733   else
11734     whole_archive_flag_spec=''
11735   fi
11736   link_all_deplibs=yes
11737   allow_undefined_flag="$_lt_dar_allow_undefined"
11738   case $cc_basename in
11739      ifort*) _lt_dar_can_shared=yes ;;
11740      *) _lt_dar_can_shared=$GCC ;;
11741   esac
11742   if test "$_lt_dar_can_shared" = "yes"; then
11743     output_verbose_link_cmd=func_echo_all
11744     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11745     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11746     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}"
11747     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}"
11748
11749   else
11750   ld_shlibs=no
11751   fi
11752
11753       ;;
11754
11755     dgux*)
11756       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11757       hardcode_libdir_flag_spec='-L$libdir'
11758       hardcode_shlibpath_var=no
11759       ;;
11760
11761     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11762     # support.  Future versions do this automatically, but an explicit c++rt0.o
11763     # does not break anything, and helps significantly (at the cost of a little
11764     # extra space).
11765     freebsd2.2*)
11766       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11767       hardcode_libdir_flag_spec='-R$libdir'
11768       hardcode_direct=yes
11769       hardcode_shlibpath_var=no
11770       ;;
11771
11772     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11773     freebsd2.*)
11774       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11775       hardcode_direct=yes
11776       hardcode_minus_L=yes
11777       hardcode_shlibpath_var=no
11778       ;;
11779
11780     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11781     freebsd* | dragonfly*)
11782       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11783       hardcode_libdir_flag_spec='-R$libdir'
11784       hardcode_direct=yes
11785       hardcode_shlibpath_var=no
11786       ;;
11787
11788     hpux9*)
11789       if test "$GCC" = yes; then
11790         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'
11791       else
11792         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'
11793       fi
11794       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11795       hardcode_libdir_separator=:
11796       hardcode_direct=yes
11797
11798       # hardcode_minus_L: Not really in the search PATH,
11799       # but as the default location of the library.
11800       hardcode_minus_L=yes
11801       export_dynamic_flag_spec='${wl}-E'
11802       ;;
11803
11804     hpux10*)
11805       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11806         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11807       else
11808         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11809       fi
11810       if test "$with_gnu_ld" = no; then
11811         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11812         hardcode_libdir_separator=:
11813         hardcode_direct=yes
11814         hardcode_direct_absolute=yes
11815         export_dynamic_flag_spec='${wl}-E'
11816         # hardcode_minus_L: Not really in the search PATH,
11817         # but as the default location of the library.
11818         hardcode_minus_L=yes
11819       fi
11820       ;;
11821
11822     hpux11*)
11823       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11824         case $host_cpu in
11825         hppa*64*)
11826           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11827           ;;
11828         ia64*)
11829           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11830           ;;
11831         *)
11832           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11833           ;;
11834         esac
11835       else
11836         case $host_cpu in
11837         hppa*64*)
11838           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11839           ;;
11840         ia64*)
11841           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11842           ;;
11843         *)
11844
11845           # Older versions of the 11.00 compiler do not understand -b yet
11846           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11847           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11848 $as_echo_n "checking if $CC understands -b... " >&6; }
11849 if ${lt_cv_prog_compiler__b+:} false; then :
11850   $as_echo_n "(cached) " >&6
11851 else
11852   lt_cv_prog_compiler__b=no
11853    save_LDFLAGS="$LDFLAGS"
11854    LDFLAGS="$LDFLAGS -b"
11855    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11856    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11857      # The linker can only warn and ignore the option if not recognized
11858      # So say no if there are warnings
11859      if test -s conftest.err; then
11860        # Append any errors to the config.log.
11861        cat conftest.err 1>&5
11862        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11863        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11864        if diff conftest.exp conftest.er2 >/dev/null; then
11865          lt_cv_prog_compiler__b=yes
11866        fi
11867      else
11868        lt_cv_prog_compiler__b=yes
11869      fi
11870    fi
11871    $RM -r conftest*
11872    LDFLAGS="$save_LDFLAGS"
11873
11874 fi
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11876 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11877
11878 if test x"$lt_cv_prog_compiler__b" = xyes; then
11879     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11880 else
11881     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11882 fi
11883
11884           ;;
11885         esac
11886       fi
11887       if test "$with_gnu_ld" = no; then
11888         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11889         hardcode_libdir_separator=:
11890
11891         case $host_cpu in
11892         hppa*64*|ia64*)
11893           hardcode_direct=no
11894           hardcode_shlibpath_var=no
11895           ;;
11896         *)
11897           hardcode_direct=yes
11898           hardcode_direct_absolute=yes
11899           export_dynamic_flag_spec='${wl}-E'
11900
11901           # hardcode_minus_L: Not really in the search PATH,
11902           # but as the default location of the library.
11903           hardcode_minus_L=yes
11904           ;;
11905         esac
11906       fi
11907       ;;
11908
11909     irix5* | irix6* | nonstopux*)
11910       if test "$GCC" = yes; then
11911         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'
11912         # Try to use the -exported_symbol ld option, if it does not
11913         # work, assume that -exports_file does not work either and
11914         # implicitly export all symbols.
11915         # This should be the same for all languages, so no per-tag cache variable.
11916         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11917 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11918 if ${lt_cv_irix_exported_symbol+:} false; then :
11919   $as_echo_n "(cached) " >&6
11920 else
11921   save_LDFLAGS="$LDFLAGS"
11922            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11923            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h.  */
11925 int foo (void) { return 0; }
11926 _ACEOF
11927 if ac_fn_c_try_link "$LINENO"; then :
11928   lt_cv_irix_exported_symbol=yes
11929 else
11930   lt_cv_irix_exported_symbol=no
11931 fi
11932 rm -f core conftest.err conftest.$ac_objext \
11933     conftest$ac_exeext conftest.$ac_ext
11934            LDFLAGS="$save_LDFLAGS"
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11937 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11938         if test "$lt_cv_irix_exported_symbol" = yes; then
11939           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'
11940         fi
11941       else
11942         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'
11943         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'
11944       fi
11945       archive_cmds_need_lc='no'
11946       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11947       hardcode_libdir_separator=:
11948       inherit_rpath=yes
11949       link_all_deplibs=yes
11950       ;;
11951
11952     netbsd* | netbsdelf*-gnu)
11953       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11954         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11955       else
11956         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11957       fi
11958       hardcode_libdir_flag_spec='-R$libdir'
11959       hardcode_direct=yes
11960       hardcode_shlibpath_var=no
11961       ;;
11962
11963     newsos6)
11964       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11965       hardcode_direct=yes
11966       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11967       hardcode_libdir_separator=:
11968       hardcode_shlibpath_var=no
11969       ;;
11970
11971     *nto* | *qnx*)
11972       ;;
11973
11974     openbsd*)
11975       if test -f /usr/libexec/ld.so; then
11976         hardcode_direct=yes
11977         hardcode_shlibpath_var=no
11978         hardcode_direct_absolute=yes
11979         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11980           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11981           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11982           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11983           export_dynamic_flag_spec='${wl}-E'
11984         else
11985           case $host_os in
11986            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11987              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11988              hardcode_libdir_flag_spec='-R$libdir'
11989              ;;
11990            *)
11991              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11992              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11993              ;;
11994           esac
11995         fi
11996       else
11997         ld_shlibs=no
11998       fi
11999       ;;
12000
12001     os2*)
12002       hardcode_libdir_flag_spec='-L$libdir'
12003       hardcode_minus_L=yes
12004       allow_undefined_flag=unsupported
12005       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'
12006       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12007       ;;
12008
12009     osf3*)
12010       if test "$GCC" = yes; then
12011         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12012         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'
12013       else
12014         allow_undefined_flag=' -expect_unresolved \*'
12015         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'
12016       fi
12017       archive_cmds_need_lc='no'
12018       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12019       hardcode_libdir_separator=:
12020       ;;
12021
12022     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12023       if test "$GCC" = yes; then
12024         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12025         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'
12026         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12027       else
12028         allow_undefined_flag=' -expect_unresolved \*'
12029         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'
12030         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~
12031         $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'
12032
12033         # Both c and cxx compiler support -rpath directly
12034         hardcode_libdir_flag_spec='-rpath $libdir'
12035       fi
12036       archive_cmds_need_lc='no'
12037       hardcode_libdir_separator=:
12038       ;;
12039
12040     solaris*)
12041       no_undefined_flag=' -z defs'
12042       if test "$GCC" = yes; then
12043         wlarc='${wl}'
12044         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12045         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12046           $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'
12047       else
12048         case `$CC -V 2>&1` in
12049         *"Compilers 5.0"*)
12050           wlarc=''
12051           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12053           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12054           ;;
12055         *)
12056           wlarc='${wl}'
12057           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12058           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12059           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12060           ;;
12061         esac
12062       fi
12063       hardcode_libdir_flag_spec='-R$libdir'
12064       hardcode_shlibpath_var=no
12065       case $host_os in
12066       solaris2.[0-5] | solaris2.[0-5].*) ;;
12067       *)
12068         # The compiler driver will combine and reorder linker options,
12069         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12070         # but is careful enough not to reorder.
12071         # Supported since Solaris 2.6 (maybe 2.5.1?)
12072         if test "$GCC" = yes; then
12073           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12074         else
12075           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12076         fi
12077         ;;
12078       esac
12079       link_all_deplibs=yes
12080       ;;
12081
12082     sunos4*)
12083       if test "x$host_vendor" = xsequent; then
12084         # Use $CC to link under sequent, because it throws in some extra .o
12085         # files that make .init and .fini sections work.
12086         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12087       else
12088         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12089       fi
12090       hardcode_libdir_flag_spec='-L$libdir'
12091       hardcode_direct=yes
12092       hardcode_minus_L=yes
12093       hardcode_shlibpath_var=no
12094       ;;
12095
12096     sysv4)
12097       case $host_vendor in
12098         sni)
12099           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12100           hardcode_direct=yes # is this really true???
12101         ;;
12102         siemens)
12103           ## LD is ld it makes a PLAMLIB
12104           ## CC just makes a GrossModule.
12105           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12106           reload_cmds='$CC -r -o $output$reload_objs'
12107           hardcode_direct=no
12108         ;;
12109         motorola)
12110           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12111           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12112         ;;
12113       esac
12114       runpath_var='LD_RUN_PATH'
12115       hardcode_shlibpath_var=no
12116       ;;
12117
12118     sysv4.3*)
12119       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12120       hardcode_shlibpath_var=no
12121       export_dynamic_flag_spec='-Bexport'
12122       ;;
12123
12124     sysv4*MP*)
12125       if test -d /usr/nec; then
12126         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12127         hardcode_shlibpath_var=no
12128         runpath_var=LD_RUN_PATH
12129         hardcode_runpath_var=yes
12130         ld_shlibs=yes
12131       fi
12132       ;;
12133
12134     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12135       no_undefined_flag='${wl}-z,text'
12136       archive_cmds_need_lc=no
12137       hardcode_shlibpath_var=no
12138       runpath_var='LD_RUN_PATH'
12139
12140       if test "$GCC" = yes; then
12141         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143       else
12144         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12146       fi
12147       ;;
12148
12149     sysv5* | sco3.2v5* | sco5v6*)
12150       # Note: We can NOT use -z defs as we might desire, because we do not
12151       # link with -lc, and that would cause any symbols used from libc to
12152       # always be unresolved, which means just about no library would
12153       # ever link correctly.  If we're not using GNU ld we use -z text
12154       # though, which does catch some bad symbols but isn't as heavy-handed
12155       # as -z defs.
12156       no_undefined_flag='${wl}-z,text'
12157       allow_undefined_flag='${wl}-z,nodefs'
12158       archive_cmds_need_lc=no
12159       hardcode_shlibpath_var=no
12160       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12161       hardcode_libdir_separator=':'
12162       link_all_deplibs=yes
12163       export_dynamic_flag_spec='${wl}-Bexport'
12164       runpath_var='LD_RUN_PATH'
12165
12166       if test "$GCC" = yes; then
12167         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12168         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12169       else
12170         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12172       fi
12173       ;;
12174
12175     uts4*)
12176       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12177       hardcode_libdir_flag_spec='-L$libdir'
12178       hardcode_shlibpath_var=no
12179       ;;
12180
12181     *)
12182       ld_shlibs=no
12183       ;;
12184     esac
12185
12186     if test x$host_vendor = xsni; then
12187       case $host in
12188       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12189         export_dynamic_flag_spec='${wl}-Blargedynsym'
12190         ;;
12191       esac
12192     fi
12193   fi
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12196 $as_echo "$ld_shlibs" >&6; }
12197 test "$ld_shlibs" = no && can_build_shared=no
12198
12199 with_gnu_ld=$with_gnu_ld
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215 #
12216 # Do we need to explicitly link libc?
12217 #
12218 case "x$archive_cmds_need_lc" in
12219 x|xyes)
12220   # Assume -lc should be added
12221   archive_cmds_need_lc=yes
12222
12223   if test "$enable_shared" = yes && test "$GCC" = yes; then
12224     case $archive_cmds in
12225     *'~'*)
12226       # FIXME: we may have to deal with multi-command sequences.
12227       ;;
12228     '$CC '*)
12229       # Test whether the compiler implicitly links with -lc since on some
12230       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12231       # to ld, don't add -lc before -lgcc.
12232       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12234 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12235   $as_echo_n "(cached) " >&6
12236 else
12237   $RM conftest*
12238         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12239
12240         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12241   (eval $ac_compile) 2>&5
12242   ac_status=$?
12243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244   test $ac_status = 0; } 2>conftest.err; then
12245           soname=conftest
12246           lib=conftest
12247           libobjs=conftest.$ac_objext
12248           deplibs=
12249           wl=$lt_prog_compiler_wl
12250           pic_flag=$lt_prog_compiler_pic
12251           compiler_flags=-v
12252           linker_flags=-v
12253           verstring=
12254           output_objdir=.
12255           libname=conftest
12256           lt_save_allow_undefined_flag=$allow_undefined_flag
12257           allow_undefined_flag=
12258           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12259   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12260   ac_status=$?
12261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262   test $ac_status = 0; }
12263           then
12264             lt_cv_archive_cmds_need_lc=no
12265           else
12266             lt_cv_archive_cmds_need_lc=yes
12267           fi
12268           allow_undefined_flag=$lt_save_allow_undefined_flag
12269         else
12270           cat conftest.err 1>&5
12271         fi
12272         $RM conftest*
12273
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12276 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12277       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12278       ;;
12279     esac
12280   fi
12281   ;;
12282 esac
12283
12284
12285
12286
12287
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12436 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12437
12438 if test "$GCC" = yes; then
12439   case $host_os in
12440     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12441     *) lt_awk_arg="/^libraries:/" ;;
12442   esac
12443   case $host_os in
12444     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12445     *) lt_sed_strip_eq="s,=/,/,g" ;;
12446   esac
12447   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12448   case $lt_search_path_spec in
12449   *\;*)
12450     # if the path contains ";" then we assume it to be the separator
12451     # otherwise default to the standard path separator (i.e. ":") - it is
12452     # assumed that no part of a normal pathname contains ";" but that should
12453     # okay in the real world where ";" in dirpaths is itself problematic.
12454     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12455     ;;
12456   *)
12457     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12458     ;;
12459   esac
12460   # Ok, now we have the path, separated by spaces, we can step through it
12461   # and add multilib dir if necessary.
12462   lt_tmp_lt_search_path_spec=
12463   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12464   for lt_sys_path in $lt_search_path_spec; do
12465     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12466       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12467     else
12468       test -d "$lt_sys_path" && \
12469         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12470     fi
12471   done
12472   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12473 BEGIN {RS=" "; FS="/|\n";} {
12474   lt_foo="";
12475   lt_count=0;
12476   for (lt_i = NF; lt_i > 0; lt_i--) {
12477     if ($lt_i != "" && $lt_i != ".") {
12478       if ($lt_i == "..") {
12479         lt_count++;
12480       } else {
12481         if (lt_count == 0) {
12482           lt_foo="/" $lt_i lt_foo;
12483         } else {
12484           lt_count--;
12485         }
12486       }
12487     }
12488   }
12489   if (lt_foo != "") { lt_freq[lt_foo]++; }
12490   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12491 }'`
12492   # AWK program above erroneously prepends '/' to C:/dos/paths
12493   # for these hosts.
12494   case $host_os in
12495     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12496       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12497   esac
12498   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12499 else
12500   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12501 fi
12502 library_names_spec=
12503 libname_spec='lib$name'
12504 soname_spec=
12505 shrext_cmds=".so"
12506 postinstall_cmds=
12507 postuninstall_cmds=
12508 finish_cmds=
12509 finish_eval=
12510 shlibpath_var=
12511 shlibpath_overrides_runpath=unknown
12512 version_type=none
12513 dynamic_linker="$host_os ld.so"
12514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12515 need_lib_prefix=unknown
12516 hardcode_into_libs=no
12517
12518 # when you set need_version to no, make sure it does not cause -set_version
12519 # flags to be left without arguments
12520 need_version=unknown
12521
12522 case $host_os in
12523 aix3*)
12524   version_type=linux # correct to gnu/linux during the next big refactor
12525   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12526   shlibpath_var=LIBPATH
12527
12528   # AIX 3 has no versioning support, so we append a major version to the name.
12529   soname_spec='${libname}${release}${shared_ext}$major'
12530   ;;
12531
12532 aix[4-9]*)
12533   version_type=linux # correct to gnu/linux during the next big refactor
12534   need_lib_prefix=no
12535   need_version=no
12536   hardcode_into_libs=yes
12537   if test "$host_cpu" = ia64; then
12538     # AIX 5 supports IA64
12539     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12540     shlibpath_var=LD_LIBRARY_PATH
12541   else
12542     # With GCC up to 2.95.x, collect2 would create an import file
12543     # for dependence libraries.  The import file would start with
12544     # the line `#! .'.  This would cause the generated library to
12545     # depend on `.', always an invalid library.  This was fixed in
12546     # development snapshots of GCC prior to 3.0.
12547     case $host_os in
12548       aix4 | aix4.[01] | aix4.[01].*)
12549       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12550            echo ' yes '
12551            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12552         :
12553       else
12554         can_build_shared=no
12555       fi
12556       ;;
12557     esac
12558     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12559     # soname into executable. Probably we can add versioning support to
12560     # collect2, so additional links can be useful in future.
12561     if test "$aix_use_runtimelinking" = yes; then
12562       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12563       # instead of lib<name>.a to let people know that these are not
12564       # typical AIX shared libraries.
12565       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12566     else
12567       # We preserve .a as extension for shared libraries through AIX4.2
12568       # and later when we are not doing run time linking.
12569       library_names_spec='${libname}${release}.a $libname.a'
12570       soname_spec='${libname}${release}${shared_ext}$major'
12571     fi
12572     shlibpath_var=LIBPATH
12573   fi
12574   ;;
12575
12576 amigaos*)
12577   case $host_cpu in
12578   powerpc)
12579     # Since July 2007 AmigaOS4 officially supports .so libraries.
12580     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12582     ;;
12583   m68k)
12584     library_names_spec='$libname.ixlibrary $libname.a'
12585     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12586     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'
12587     ;;
12588   esac
12589   ;;
12590
12591 beos*)
12592   library_names_spec='${libname}${shared_ext}'
12593   dynamic_linker="$host_os ld.so"
12594   shlibpath_var=LIBRARY_PATH
12595   ;;
12596
12597 bsdi[45]*)
12598   version_type=linux # correct to gnu/linux during the next big refactor
12599   need_version=no
12600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601   soname_spec='${libname}${release}${shared_ext}$major'
12602   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12603   shlibpath_var=LD_LIBRARY_PATH
12604   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12605   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12606   # the default ld.so.conf also contains /usr/contrib/lib and
12607   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12608   # libtool to hard-code these into programs
12609   ;;
12610
12611 cygwin* | mingw* | pw32* | cegcc*)
12612   version_type=windows
12613   shrext_cmds=".dll"
12614   need_version=no
12615   need_lib_prefix=no
12616
12617   case $GCC,$cc_basename in
12618   yes,*)
12619     # gcc
12620     library_names_spec='$libname.dll.a'
12621     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12622     postinstall_cmds='base_file=`basename \${file}`~
12623       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12624       dldir=$destdir/`dirname \$dlpath`~
12625       test -d \$dldir || mkdir -p \$dldir~
12626       $install_prog $dir/$dlname \$dldir/$dlname~
12627       chmod a+x \$dldir/$dlname~
12628       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12629         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12630       fi'
12631     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12632       dlpath=$dir/\$dldll~
12633        $RM \$dlpath'
12634     shlibpath_overrides_runpath=yes
12635
12636     case $host_os in
12637     cygwin*)
12638       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12639       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12640
12641       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12642       ;;
12643     mingw* | cegcc*)
12644       # MinGW DLLs use traditional 'lib' prefix
12645       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12646       ;;
12647     pw32*)
12648       # pw32 DLLs use 'pw' prefix rather than 'lib'
12649       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12650       ;;
12651     esac
12652     dynamic_linker='Win32 ld.exe'
12653     ;;
12654
12655   *,cl*)
12656     # Native MSVC
12657     libname_spec='$name'
12658     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12659     library_names_spec='${libname}.dll.lib'
12660
12661     case $build_os in
12662     mingw*)
12663       sys_lib_search_path_spec=
12664       lt_save_ifs=$IFS
12665       IFS=';'
12666       for lt_path in $LIB
12667       do
12668         IFS=$lt_save_ifs
12669         # Let DOS variable expansion print the short 8.3 style file name.
12670         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12671         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12672       done
12673       IFS=$lt_save_ifs
12674       # Convert to MSYS style.
12675       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12676       ;;
12677     cygwin*)
12678       # Convert to unix form, then to dos form, then back to unix form
12679       # but this time dos style (no spaces!) so that the unix form looks
12680       # like /cygdrive/c/PROGRA~1:/cygdr...
12681       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12682       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12683       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12684       ;;
12685     *)
12686       sys_lib_search_path_spec="$LIB"
12687       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12688         # It is most probably a Windows format PATH.
12689         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12690       else
12691         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12692       fi
12693       # FIXME: find the short name or the path components, as spaces are
12694       # common. (e.g. "Program Files" -> "PROGRA~1")
12695       ;;
12696     esac
12697
12698     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12699     postinstall_cmds='base_file=`basename \${file}`~
12700       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12701       dldir=$destdir/`dirname \$dlpath`~
12702       test -d \$dldir || mkdir -p \$dldir~
12703       $install_prog $dir/$dlname \$dldir/$dlname'
12704     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12705       dlpath=$dir/\$dldll~
12706        $RM \$dlpath'
12707     shlibpath_overrides_runpath=yes
12708     dynamic_linker='Win32 link.exe'
12709     ;;
12710
12711   *)
12712     # Assume MSVC wrapper
12713     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12714     dynamic_linker='Win32 ld.exe'
12715     ;;
12716   esac
12717   # FIXME: first we should search . and the directory the executable is in
12718   shlibpath_var=PATH
12719   ;;
12720
12721 darwin* | rhapsody*)
12722   dynamic_linker="$host_os dyld"
12723   version_type=darwin
12724   need_lib_prefix=no
12725   need_version=no
12726   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12727   soname_spec='${libname}${release}${major}$shared_ext'
12728   shlibpath_overrides_runpath=yes
12729   shlibpath_var=DYLD_LIBRARY_PATH
12730   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12731
12732   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12733   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12734   ;;
12735
12736 dgux*)
12737   version_type=linux # correct to gnu/linux during the next big refactor
12738   need_lib_prefix=no
12739   need_version=no
12740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12741   soname_spec='${libname}${release}${shared_ext}$major'
12742   shlibpath_var=LD_LIBRARY_PATH
12743   ;;
12744
12745 freebsd* | dragonfly*)
12746   # DragonFly does not have aout.  When/if they implement a new
12747   # versioning mechanism, adjust this.
12748   if test -x /usr/bin/objformat; then
12749     objformat=`/usr/bin/objformat`
12750   else
12751     case $host_os in
12752     freebsd[23].*) objformat=aout ;;
12753     *) objformat=elf ;;
12754     esac
12755   fi
12756   version_type=freebsd-$objformat
12757   case $version_type in
12758     freebsd-elf*)
12759       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12760       need_version=no
12761       need_lib_prefix=no
12762       ;;
12763     freebsd-*)
12764       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12765       need_version=yes
12766       ;;
12767   esac
12768   shlibpath_var=LD_LIBRARY_PATH
12769   case $host_os in
12770   freebsd2.*)
12771     shlibpath_overrides_runpath=yes
12772     ;;
12773   freebsd3.[01]* | freebsdelf3.[01]*)
12774     shlibpath_overrides_runpath=yes
12775     hardcode_into_libs=yes
12776     ;;
12777   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12778   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12779     shlibpath_overrides_runpath=no
12780     hardcode_into_libs=yes
12781     ;;
12782   *) # from 4.6 on, and DragonFly
12783     shlibpath_overrides_runpath=yes
12784     hardcode_into_libs=yes
12785     ;;
12786   esac
12787   ;;
12788
12789 gnu*)
12790   version_type=linux # correct to gnu/linux during the next big refactor
12791   need_lib_prefix=no
12792   need_version=no
12793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12794   soname_spec='${libname}${release}${shared_ext}$major'
12795   shlibpath_var=LD_LIBRARY_PATH
12796   shlibpath_overrides_runpath=no
12797   hardcode_into_libs=yes
12798   ;;
12799
12800 haiku*)
12801   version_type=linux # correct to gnu/linux during the next big refactor
12802   need_lib_prefix=no
12803   need_version=no
12804   dynamic_linker="$host_os runtime_loader"
12805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12806   soname_spec='${libname}${release}${shared_ext}$major'
12807   shlibpath_var=LIBRARY_PATH
12808   shlibpath_overrides_runpath=yes
12809   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12810   hardcode_into_libs=yes
12811   ;;
12812
12813 hpux9* | hpux10* | hpux11*)
12814   # Give a soname corresponding to the major version so that dld.sl refuses to
12815   # link against other versions.
12816   version_type=sunos
12817   need_lib_prefix=no
12818   need_version=no
12819   case $host_cpu in
12820   ia64*)
12821     shrext_cmds='.so'
12822     hardcode_into_libs=yes
12823     dynamic_linker="$host_os dld.so"
12824     shlibpath_var=LD_LIBRARY_PATH
12825     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12827     soname_spec='${libname}${release}${shared_ext}$major'
12828     if test "X$HPUX_IA64_MODE" = X32; then
12829       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12830     else
12831       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12832     fi
12833     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12834     ;;
12835   hppa*64*)
12836     shrext_cmds='.sl'
12837     hardcode_into_libs=yes
12838     dynamic_linker="$host_os dld.sl"
12839     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12840     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842     soname_spec='${libname}${release}${shared_ext}$major'
12843     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12844     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12845     ;;
12846   *)
12847     shrext_cmds='.sl'
12848     dynamic_linker="$host_os dld.sl"
12849     shlibpath_var=SHLIB_PATH
12850     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12852     soname_spec='${libname}${release}${shared_ext}$major'
12853     ;;
12854   esac
12855   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12856   postinstall_cmds='chmod 555 $lib'
12857   # or fails outright, so override atomically:
12858   install_override_mode=555
12859   ;;
12860
12861 interix[3-9]*)
12862   version_type=linux # correct to gnu/linux during the next big refactor
12863   need_lib_prefix=no
12864   need_version=no
12865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12866   soname_spec='${libname}${release}${shared_ext}$major'
12867   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12868   shlibpath_var=LD_LIBRARY_PATH
12869   shlibpath_overrides_runpath=no
12870   hardcode_into_libs=yes
12871   ;;
12872
12873 irix5* | irix6* | nonstopux*)
12874   case $host_os in
12875     nonstopux*) version_type=nonstopux ;;
12876     *)
12877         if test "$lt_cv_prog_gnu_ld" = yes; then
12878                 version_type=linux # correct to gnu/linux during the next big refactor
12879         else
12880                 version_type=irix
12881         fi ;;
12882   esac
12883   need_lib_prefix=no
12884   need_version=no
12885   soname_spec='${libname}${release}${shared_ext}$major'
12886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12887   case $host_os in
12888   irix5* | nonstopux*)
12889     libsuff= shlibsuff=
12890     ;;
12891   *)
12892     case $LD in # libtool.m4 will add one of these switches to LD
12893     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12894       libsuff= shlibsuff= libmagic=32-bit;;
12895     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12896       libsuff=32 shlibsuff=N32 libmagic=N32;;
12897     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12898       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12899     *) libsuff= shlibsuff= libmagic=never-match;;
12900     esac
12901     ;;
12902   esac
12903   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12904   shlibpath_overrides_runpath=no
12905   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12906   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12907   hardcode_into_libs=yes
12908   ;;
12909
12910 # No shared lib support for Linux oldld, aout, or coff.
12911 linux*oldld* | linux*aout* | linux*coff*)
12912   dynamic_linker=no
12913   ;;
12914
12915 # This must be glibc/ELF.
12916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12917   version_type=linux # correct to gnu/linux during the next big refactor
12918   need_lib_prefix=no
12919   need_version=no
12920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921   soname_spec='${libname}${release}${shared_ext}$major'
12922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12923   shlibpath_var=LD_LIBRARY_PATH
12924   shlibpath_overrides_runpath=no
12925
12926   # Some binutils ld are patched to set DT_RUNPATH
12927   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12928   $as_echo_n "(cached) " >&6
12929 else
12930   lt_cv_shlibpath_overrides_runpath=no
12931     save_LDFLAGS=$LDFLAGS
12932     save_libdir=$libdir
12933     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12934          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h.  */
12937
12938 int
12939 main ()
12940 {
12941
12942   ;
12943   return 0;
12944 }
12945 _ACEOF
12946 if ac_fn_c_try_link "$LINENO"; then :
12947   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12948   lt_cv_shlibpath_overrides_runpath=yes
12949 fi
12950 fi
12951 rm -f core conftest.err conftest.$ac_objext \
12952     conftest$ac_exeext conftest.$ac_ext
12953     LDFLAGS=$save_LDFLAGS
12954     libdir=$save_libdir
12955
12956 fi
12957
12958   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12959
12960   # This implies no fast_install, which is unacceptable.
12961   # Some rework will be needed to allow for fast_install
12962   # before this can be enabled.
12963   hardcode_into_libs=yes
12964
12965   # Append ld.so.conf contents to the search path
12966   if test -f /etc/ld.so.conf; then
12967     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' ' '`
12968     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12969   fi
12970
12971   # We used to test for /lib/ld.so.1 and disable shared libraries on
12972   # powerpc, because MkLinux only supported shared libraries with the
12973   # GNU dynamic linker.  Since this was broken with cross compilers,
12974   # most powerpc-linux boxes support dynamic linking these days and
12975   # people can always --disable-shared, the test was removed, and we
12976   # assume the GNU/Linux dynamic linker is in use.
12977   dynamic_linker='GNU/Linux ld.so'
12978   ;;
12979
12980 netbsdelf*-gnu)
12981   version_type=linux
12982   need_lib_prefix=no
12983   need_version=no
12984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12985   soname_spec='${libname}${release}${shared_ext}$major'
12986   shlibpath_var=LD_LIBRARY_PATH
12987   shlibpath_overrides_runpath=no
12988   hardcode_into_libs=yes
12989   dynamic_linker='NetBSD ld.elf_so'
12990   ;;
12991
12992 netbsd*)
12993   version_type=sunos
12994   need_lib_prefix=no
12995   need_version=no
12996   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12998     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12999     dynamic_linker='NetBSD (a.out) ld.so'
13000   else
13001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13002     soname_spec='${libname}${release}${shared_ext}$major'
13003     dynamic_linker='NetBSD ld.elf_so'
13004   fi
13005   shlibpath_var=LD_LIBRARY_PATH
13006   shlibpath_overrides_runpath=yes
13007   hardcode_into_libs=yes
13008   ;;
13009
13010 newsos6)
13011   version_type=linux # correct to gnu/linux during the next big refactor
13012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013   shlibpath_var=LD_LIBRARY_PATH
13014   shlibpath_overrides_runpath=yes
13015   ;;
13016
13017 *nto* | *qnx*)
13018   version_type=qnx
13019   need_lib_prefix=no
13020   need_version=no
13021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022   soname_spec='${libname}${release}${shared_ext}$major'
13023   shlibpath_var=LD_LIBRARY_PATH
13024   shlibpath_overrides_runpath=no
13025   hardcode_into_libs=yes
13026   dynamic_linker='ldqnx.so'
13027   ;;
13028
13029 openbsd*)
13030   version_type=sunos
13031   sys_lib_dlsearch_path_spec="/usr/lib"
13032   need_lib_prefix=no
13033   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13034   case $host_os in
13035     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13036     *)                          need_version=no  ;;
13037   esac
13038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13039   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13040   shlibpath_var=LD_LIBRARY_PATH
13041   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13042     case $host_os in
13043       openbsd2.[89] | openbsd2.[89].*)
13044         shlibpath_overrides_runpath=no
13045         ;;
13046       *)
13047         shlibpath_overrides_runpath=yes
13048         ;;
13049       esac
13050   else
13051     shlibpath_overrides_runpath=yes
13052   fi
13053   ;;
13054
13055 os2*)
13056   libname_spec='$name'
13057   shrext_cmds=".dll"
13058   need_lib_prefix=no
13059   library_names_spec='$libname${shared_ext} $libname.a'
13060   dynamic_linker='OS/2 ld.exe'
13061   shlibpath_var=LIBPATH
13062   ;;
13063
13064 osf3* | osf4* | osf5*)
13065   version_type=osf
13066   need_lib_prefix=no
13067   need_version=no
13068   soname_spec='${libname}${release}${shared_ext}$major'
13069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070   shlibpath_var=LD_LIBRARY_PATH
13071   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13072   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13073   ;;
13074
13075 rdos*)
13076   dynamic_linker=no
13077   ;;
13078
13079 solaris*)
13080   version_type=linux # correct to gnu/linux during the next big refactor
13081   need_lib_prefix=no
13082   need_version=no
13083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084   soname_spec='${libname}${release}${shared_ext}$major'
13085   shlibpath_var=LD_LIBRARY_PATH
13086   shlibpath_overrides_runpath=yes
13087   hardcode_into_libs=yes
13088   # ldd complains unless libraries are executable
13089   postinstall_cmds='chmod +x $lib'
13090   ;;
13091
13092 sunos4*)
13093   version_type=sunos
13094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13095   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13096   shlibpath_var=LD_LIBRARY_PATH
13097   shlibpath_overrides_runpath=yes
13098   if test "$with_gnu_ld" = yes; then
13099     need_lib_prefix=no
13100   fi
13101   need_version=yes
13102   ;;
13103
13104 sysv4 | sysv4.3*)
13105   version_type=linux # correct to gnu/linux during the next big refactor
13106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13107   soname_spec='${libname}${release}${shared_ext}$major'
13108   shlibpath_var=LD_LIBRARY_PATH
13109   case $host_vendor in
13110     sni)
13111       shlibpath_overrides_runpath=no
13112       need_lib_prefix=no
13113       runpath_var=LD_RUN_PATH
13114       ;;
13115     siemens)
13116       need_lib_prefix=no
13117       ;;
13118     motorola)
13119       need_lib_prefix=no
13120       need_version=no
13121       shlibpath_overrides_runpath=no
13122       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13123       ;;
13124   esac
13125   ;;
13126
13127 sysv4*MP*)
13128   if test -d /usr/nec ;then
13129     version_type=linux # correct to gnu/linux during the next big refactor
13130     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13131     soname_spec='$libname${shared_ext}.$major'
13132     shlibpath_var=LD_LIBRARY_PATH
13133   fi
13134   ;;
13135
13136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13137   version_type=freebsd-elf
13138   need_lib_prefix=no
13139   need_version=no
13140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13141   soname_spec='${libname}${release}${shared_ext}$major'
13142   shlibpath_var=LD_LIBRARY_PATH
13143   shlibpath_overrides_runpath=yes
13144   hardcode_into_libs=yes
13145   if test "$with_gnu_ld" = yes; then
13146     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13147   else
13148     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13149     case $host_os in
13150       sco3.2v5*)
13151         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13152         ;;
13153     esac
13154   fi
13155   sys_lib_dlsearch_path_spec='/usr/lib'
13156   ;;
13157
13158 tpf*)
13159   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13160   version_type=linux # correct to gnu/linux during the next big refactor
13161   need_lib_prefix=no
13162   need_version=no
13163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13164   shlibpath_var=LD_LIBRARY_PATH
13165   shlibpath_overrides_runpath=no
13166   hardcode_into_libs=yes
13167   ;;
13168
13169 uts4*)
13170   version_type=linux # correct to gnu/linux during the next big refactor
13171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172   soname_spec='${libname}${release}${shared_ext}$major'
13173   shlibpath_var=LD_LIBRARY_PATH
13174   ;;
13175
13176 *)
13177   dynamic_linker=no
13178   ;;
13179 esac
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13181 $as_echo "$dynamic_linker" >&6; }
13182 test "$dynamic_linker" = no && can_build_shared=no
13183
13184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13185 if test "$GCC" = yes; then
13186   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13187 fi
13188
13189 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13190   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13191 fi
13192 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13193   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13194 fi
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13288 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13289 hardcode_action=
13290 if test -n "$hardcode_libdir_flag_spec" ||
13291    test -n "$runpath_var" ||
13292    test "X$hardcode_automatic" = "Xyes" ; then
13293
13294   # We can hardcode non-existent directories.
13295   if test "$hardcode_direct" != no &&
13296      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13297      # have to relink, otherwise we might link with an installed library
13298      # when we should be linking with a yet-to-be-installed one
13299      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13300      test "$hardcode_minus_L" != no; then
13301     # Linking always hardcodes the temporary library directory.
13302     hardcode_action=relink
13303   else
13304     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13305     hardcode_action=immediate
13306   fi
13307 else
13308   # We cannot hardcode anything, or else we can only hardcode existing
13309   # directories.
13310   hardcode_action=unsupported
13311 fi
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13313 $as_echo "$hardcode_action" >&6; }
13314
13315 if test "$hardcode_action" = relink ||
13316    test "$inherit_rpath" = yes; then
13317   # Fast installation is not supported
13318   enable_fast_install=no
13319 elif test "$shlibpath_overrides_runpath" = yes ||
13320      test "$enable_shared" = no; then
13321   # Fast installation is not necessary
13322   enable_fast_install=needless
13323 fi
13324
13325
13326
13327
13328
13329
13330   if test "x$enable_dlopen" != xyes; then
13331   enable_dlopen=unknown
13332   enable_dlopen_self=unknown
13333   enable_dlopen_self_static=unknown
13334 else
13335   lt_cv_dlopen=no
13336   lt_cv_dlopen_libs=
13337
13338   case $host_os in
13339   beos*)
13340     lt_cv_dlopen="load_add_on"
13341     lt_cv_dlopen_libs=
13342     lt_cv_dlopen_self=yes
13343     ;;
13344
13345   mingw* | pw32* | cegcc*)
13346     lt_cv_dlopen="LoadLibrary"
13347     lt_cv_dlopen_libs=
13348     ;;
13349
13350   cygwin*)
13351     lt_cv_dlopen="dlopen"
13352     lt_cv_dlopen_libs=
13353     ;;
13354
13355   darwin*)
13356   # if libdl is installed we need to link against it
13357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13358 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13359 if ${ac_cv_lib_dl_dlopen+:} false; then :
13360   $as_echo_n "(cached) " >&6
13361 else
13362   ac_check_lib_save_LIBS=$LIBS
13363 LIBS="-ldl  $LIBS"
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h.  */
13366
13367 /* Override any GCC internal prototype to avoid an error.
13368    Use char because int might match the return type of a GCC
13369    builtin and then its argument prototype would still apply.  */
13370 #ifdef __cplusplus
13371 extern "C"
13372 #endif
13373 char dlopen ();
13374 int
13375 main ()
13376 {
13377 return dlopen ();
13378   ;
13379   return 0;
13380 }
13381 _ACEOF
13382 if ac_fn_c_try_link "$LINENO"; then :
13383   ac_cv_lib_dl_dlopen=yes
13384 else
13385   ac_cv_lib_dl_dlopen=no
13386 fi
13387 rm -f core conftest.err conftest.$ac_objext \
13388     conftest$ac_exeext conftest.$ac_ext
13389 LIBS=$ac_check_lib_save_LIBS
13390 fi
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13392 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13393 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13394   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13395 else
13396
13397     lt_cv_dlopen="dyld"
13398     lt_cv_dlopen_libs=
13399     lt_cv_dlopen_self=yes
13400
13401 fi
13402
13403     ;;
13404
13405   *)
13406     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13407 if test "x$ac_cv_func_shl_load" = xyes; then :
13408   lt_cv_dlopen="shl_load"
13409 else
13410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13411 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13412 if ${ac_cv_lib_dld_shl_load+:} false; then :
13413   $as_echo_n "(cached) " >&6
13414 else
13415   ac_check_lib_save_LIBS=$LIBS
13416 LIBS="-ldld  $LIBS"
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h.  */
13419
13420 /* Override any GCC internal prototype to avoid an error.
13421    Use char because int might match the return type of a GCC
13422    builtin and then its argument prototype would still apply.  */
13423 #ifdef __cplusplus
13424 extern "C"
13425 #endif
13426 char shl_load ();
13427 int
13428 main ()
13429 {
13430 return shl_load ();
13431   ;
13432   return 0;
13433 }
13434 _ACEOF
13435 if ac_fn_c_try_link "$LINENO"; then :
13436   ac_cv_lib_dld_shl_load=yes
13437 else
13438   ac_cv_lib_dld_shl_load=no
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext \
13441     conftest$ac_exeext conftest.$ac_ext
13442 LIBS=$ac_check_lib_save_LIBS
13443 fi
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13445 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13446 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13447   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13448 else
13449   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13450 if test "x$ac_cv_func_dlopen" = xyes; then :
13451   lt_cv_dlopen="dlopen"
13452 else
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13454 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13455 if ${ac_cv_lib_dl_dlopen+:} false; then :
13456   $as_echo_n "(cached) " >&6
13457 else
13458   ac_check_lib_save_LIBS=$LIBS
13459 LIBS="-ldl  $LIBS"
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h.  */
13462
13463 /* Override any GCC internal prototype to avoid an error.
13464    Use char because int might match the return type of a GCC
13465    builtin and then its argument prototype would still apply.  */
13466 #ifdef __cplusplus
13467 extern "C"
13468 #endif
13469 char dlopen ();
13470 int
13471 main ()
13472 {
13473 return dlopen ();
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 if ac_fn_c_try_link "$LINENO"; then :
13479   ac_cv_lib_dl_dlopen=yes
13480 else
13481   ac_cv_lib_dl_dlopen=no
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext \
13484     conftest$ac_exeext conftest.$ac_ext
13485 LIBS=$ac_check_lib_save_LIBS
13486 fi
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13488 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13489 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13490   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13491 else
13492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13493 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13494 if ${ac_cv_lib_svld_dlopen+:} false; then :
13495   $as_echo_n "(cached) " >&6
13496 else
13497   ac_check_lib_save_LIBS=$LIBS
13498 LIBS="-lsvld  $LIBS"
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h.  */
13501
13502 /* Override any GCC internal prototype to avoid an error.
13503    Use char because int might match the return type of a GCC
13504    builtin and then its argument prototype would still apply.  */
13505 #ifdef __cplusplus
13506 extern "C"
13507 #endif
13508 char dlopen ();
13509 int
13510 main ()
13511 {
13512 return dlopen ();
13513   ;
13514   return 0;
13515 }
13516 _ACEOF
13517 if ac_fn_c_try_link "$LINENO"; then :
13518   ac_cv_lib_svld_dlopen=yes
13519 else
13520   ac_cv_lib_svld_dlopen=no
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext \
13523     conftest$ac_exeext conftest.$ac_ext
13524 LIBS=$ac_check_lib_save_LIBS
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13527 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13528 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13529   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13530 else
13531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13532 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13533 if ${ac_cv_lib_dld_dld_link+:} false; then :
13534   $as_echo_n "(cached) " >&6
13535 else
13536   ac_check_lib_save_LIBS=$LIBS
13537 LIBS="-ldld  $LIBS"
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h.  */
13540
13541 /* Override any GCC internal prototype to avoid an error.
13542    Use char because int might match the return type of a GCC
13543    builtin and then its argument prototype would still apply.  */
13544 #ifdef __cplusplus
13545 extern "C"
13546 #endif
13547 char dld_link ();
13548 int
13549 main ()
13550 {
13551 return dld_link ();
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 if ac_fn_c_try_link "$LINENO"; then :
13557   ac_cv_lib_dld_dld_link=yes
13558 else
13559   ac_cv_lib_dld_dld_link=no
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext \
13562     conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13564 fi
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13566 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13567 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13568   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13569 fi
13570
13571
13572 fi
13573
13574
13575 fi
13576
13577
13578 fi
13579
13580
13581 fi
13582
13583
13584 fi
13585
13586     ;;
13587   esac
13588
13589   if test "x$lt_cv_dlopen" != xno; then
13590     enable_dlopen=yes
13591   else
13592     enable_dlopen=no
13593   fi
13594
13595   case $lt_cv_dlopen in
13596   dlopen)
13597     save_CPPFLAGS="$CPPFLAGS"
13598     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13599
13600     save_LDFLAGS="$LDFLAGS"
13601     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13602
13603     save_LIBS="$LIBS"
13604     LIBS="$lt_cv_dlopen_libs $LIBS"
13605
13606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13607 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13608 if ${lt_cv_dlopen_self+:} false; then :
13609   $as_echo_n "(cached) " >&6
13610 else
13611           if test "$cross_compiling" = yes; then :
13612   lt_cv_dlopen_self=cross
13613 else
13614   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13615   lt_status=$lt_dlunknown
13616   cat > conftest.$ac_ext <<_LT_EOF
13617 #line $LINENO "configure"
13618 #include "confdefs.h"
13619
13620 #if HAVE_DLFCN_H
13621 #include <dlfcn.h>
13622 #endif
13623
13624 #include <stdio.h>
13625
13626 #ifdef RTLD_GLOBAL
13627 #  define LT_DLGLOBAL           RTLD_GLOBAL
13628 #else
13629 #  ifdef DL_GLOBAL
13630 #    define LT_DLGLOBAL         DL_GLOBAL
13631 #  else
13632 #    define LT_DLGLOBAL         0
13633 #  endif
13634 #endif
13635
13636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13637    find out it does not work in some platform. */
13638 #ifndef LT_DLLAZY_OR_NOW
13639 #  ifdef RTLD_LAZY
13640 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13641 #  else
13642 #    ifdef DL_LAZY
13643 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13644 #    else
13645 #      ifdef RTLD_NOW
13646 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13647 #      else
13648 #        ifdef DL_NOW
13649 #          define LT_DLLAZY_OR_NOW      DL_NOW
13650 #        else
13651 #          define LT_DLLAZY_OR_NOW      0
13652 #        endif
13653 #      endif
13654 #    endif
13655 #  endif
13656 #endif
13657
13658 /* When -fvisbility=hidden is used, assume the code has been annotated
13659    correspondingly for the symbols needed.  */
13660 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13661 int fnord () __attribute__((visibility("default")));
13662 #endif
13663
13664 int fnord () { return 42; }
13665 int main ()
13666 {
13667   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13668   int status = $lt_dlunknown;
13669
13670   if (self)
13671     {
13672       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13673       else
13674         {
13675           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13676           else puts (dlerror ());
13677         }
13678       /* dlclose (self); */
13679     }
13680   else
13681     puts (dlerror ());
13682
13683   return status;
13684 }
13685 _LT_EOF
13686   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13687   (eval $ac_link) 2>&5
13688   ac_status=$?
13689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13690   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13691     (./conftest; exit; ) >&5 2>/dev/null
13692     lt_status=$?
13693     case x$lt_status in
13694       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13695       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13696       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13697     esac
13698   else :
13699     # compilation failed
13700     lt_cv_dlopen_self=no
13701   fi
13702 fi
13703 rm -fr conftest*
13704
13705
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13708 $as_echo "$lt_cv_dlopen_self" >&6; }
13709
13710     if test "x$lt_cv_dlopen_self" = xyes; then
13711       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13712       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13713 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13714 if ${lt_cv_dlopen_self_static+:} false; then :
13715   $as_echo_n "(cached) " >&6
13716 else
13717           if test "$cross_compiling" = yes; then :
13718   lt_cv_dlopen_self_static=cross
13719 else
13720   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13721   lt_status=$lt_dlunknown
13722   cat > conftest.$ac_ext <<_LT_EOF
13723 #line $LINENO "configure"
13724 #include "confdefs.h"
13725
13726 #if HAVE_DLFCN_H
13727 #include <dlfcn.h>
13728 #endif
13729
13730 #include <stdio.h>
13731
13732 #ifdef RTLD_GLOBAL
13733 #  define LT_DLGLOBAL           RTLD_GLOBAL
13734 #else
13735 #  ifdef DL_GLOBAL
13736 #    define LT_DLGLOBAL         DL_GLOBAL
13737 #  else
13738 #    define LT_DLGLOBAL         0
13739 #  endif
13740 #endif
13741
13742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13743    find out it does not work in some platform. */
13744 #ifndef LT_DLLAZY_OR_NOW
13745 #  ifdef RTLD_LAZY
13746 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13747 #  else
13748 #    ifdef DL_LAZY
13749 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13750 #    else
13751 #      ifdef RTLD_NOW
13752 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13753 #      else
13754 #        ifdef DL_NOW
13755 #          define LT_DLLAZY_OR_NOW      DL_NOW
13756 #        else
13757 #          define LT_DLLAZY_OR_NOW      0
13758 #        endif
13759 #      endif
13760 #    endif
13761 #  endif
13762 #endif
13763
13764 /* When -fvisbility=hidden is used, assume the code has been annotated
13765    correspondingly for the symbols needed.  */
13766 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13767 int fnord () __attribute__((visibility("default")));
13768 #endif
13769
13770 int fnord () { return 42; }
13771 int main ()
13772 {
13773   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13774   int status = $lt_dlunknown;
13775
13776   if (self)
13777     {
13778       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13779       else
13780         {
13781           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13782           else puts (dlerror ());
13783         }
13784       /* dlclose (self); */
13785     }
13786   else
13787     puts (dlerror ());
13788
13789   return status;
13790 }
13791 _LT_EOF
13792   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13793   (eval $ac_link) 2>&5
13794   ac_status=$?
13795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13796   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13797     (./conftest; exit; ) >&5 2>/dev/null
13798     lt_status=$?
13799     case x$lt_status in
13800       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13801       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13802       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13803     esac
13804   else :
13805     # compilation failed
13806     lt_cv_dlopen_self_static=no
13807   fi
13808 fi
13809 rm -fr conftest*
13810
13811
13812 fi
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13814 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13815     fi
13816
13817     CPPFLAGS="$save_CPPFLAGS"
13818     LDFLAGS="$save_LDFLAGS"
13819     LIBS="$save_LIBS"
13820     ;;
13821   esac
13822
13823   case $lt_cv_dlopen_self in
13824   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13825   *) enable_dlopen_self=unknown ;;
13826   esac
13827
13828   case $lt_cv_dlopen_self_static in
13829   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13830   *) enable_dlopen_self_static=unknown ;;
13831   esac
13832 fi
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850 striplib=
13851 old_striplib=
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13853 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13854 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13855   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13856   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13858 $as_echo "yes" >&6; }
13859 else
13860 # FIXME - insert some real tests, host_os isn't really good enough
13861   case $host_os in
13862   darwin*)
13863     if test -n "$STRIP" ; then
13864       striplib="$STRIP -x"
13865       old_striplib="$STRIP -S"
13866       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13867 $as_echo "yes" >&6; }
13868     else
13869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870 $as_echo "no" >&6; }
13871     fi
13872     ;;
13873   *)
13874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13876     ;;
13877   esac
13878 fi
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891   # Report which library types will actually be built
13892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13893 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13895 $as_echo "$can_build_shared" >&6; }
13896
13897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13898 $as_echo_n "checking whether to build shared libraries... " >&6; }
13899   test "$can_build_shared" = "no" && enable_shared=no
13900
13901   # On AIX, shared libraries and static libraries use the same namespace, and
13902   # are all built from PIC.
13903   case $host_os in
13904   aix3*)
13905     test "$enable_shared" = yes && enable_static=no
13906     if test -n "$RANLIB"; then
13907       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13908       postinstall_cmds='$RANLIB $lib'
13909     fi
13910     ;;
13911
13912   aix[4-9]*)
13913     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13914       test "$enable_shared" = yes && enable_static=no
13915     fi
13916     ;;
13917   esac
13918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13919 $as_echo "$enable_shared" >&6; }
13920
13921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13922 $as_echo_n "checking whether to build static libraries... " >&6; }
13923   # Make sure either enable_shared or enable_static is yes.
13924   test "$enable_shared" = yes || enable_static=yes
13925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13926 $as_echo "$enable_static" >&6; }
13927
13928
13929
13930
13931 fi
13932 ac_ext=c
13933 ac_cpp='$CPP $CPPFLAGS'
13934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13937
13938 CC="$lt_save_CC"
13939
13940       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13941     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13942     (test "X$CXX" != "Xg++"))) ; then
13943   ac_ext=cpp
13944 ac_cpp='$CXXCPP $CPPFLAGS'
13945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13949 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13950 if test -z "$CXXCPP"; then
13951   if ${ac_cv_prog_CXXCPP+:} false; then :
13952   $as_echo_n "(cached) " >&6
13953 else
13954       # Double quotes because CXXCPP needs to be expanded
13955     for CXXCPP in "$CXX -E" "/lib/cpp"
13956     do
13957       ac_preproc_ok=false
13958 for ac_cxx_preproc_warn_flag in '' yes
13959 do
13960   # Use a header file that comes with gcc, so configuring glibc
13961   # with a fresh cross-compiler works.
13962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13963   # <limits.h> exists even on freestanding compilers.
13964   # On the NeXT, cc -E runs the code through the compiler's parser,
13965   # not just through cpp. "Syntax error" is here to catch this case.
13966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h.  */
13968 #ifdef __STDC__
13969 # include <limits.h>
13970 #else
13971 # include <assert.h>
13972 #endif
13973                      Syntax error
13974 _ACEOF
13975 if ac_fn_cxx_try_cpp "$LINENO"; then :
13976
13977 else
13978   # Broken: fails on valid input.
13979 continue
13980 fi
13981 rm -f conftest.err conftest.i conftest.$ac_ext
13982
13983   # OK, works on sane cases.  Now check whether nonexistent headers
13984   # can be detected and how.
13985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h.  */
13987 #include <ac_nonexistent.h>
13988 _ACEOF
13989 if ac_fn_cxx_try_cpp "$LINENO"; then :
13990   # Broken: success on invalid input.
13991 continue
13992 else
13993   # Passes both tests.
13994 ac_preproc_ok=:
13995 break
13996 fi
13997 rm -f conftest.err conftest.i conftest.$ac_ext
13998
13999 done
14000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14001 rm -f conftest.i conftest.err conftest.$ac_ext
14002 if $ac_preproc_ok; then :
14003   break
14004 fi
14005
14006     done
14007     ac_cv_prog_CXXCPP=$CXXCPP
14008
14009 fi
14010   CXXCPP=$ac_cv_prog_CXXCPP
14011 else
14012   ac_cv_prog_CXXCPP=$CXXCPP
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14015 $as_echo "$CXXCPP" >&6; }
14016 ac_preproc_ok=false
14017 for ac_cxx_preproc_warn_flag in '' yes
14018 do
14019   # Use a header file that comes with gcc, so configuring glibc
14020   # with a fresh cross-compiler works.
14021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14022   # <limits.h> exists even on freestanding compilers.
14023   # On the NeXT, cc -E runs the code through the compiler's parser,
14024   # not just through cpp. "Syntax error" is here to catch this case.
14025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h.  */
14027 #ifdef __STDC__
14028 # include <limits.h>
14029 #else
14030 # include <assert.h>
14031 #endif
14032                      Syntax error
14033 _ACEOF
14034 if ac_fn_cxx_try_cpp "$LINENO"; then :
14035
14036 else
14037   # Broken: fails on valid input.
14038 continue
14039 fi
14040 rm -f conftest.err conftest.i conftest.$ac_ext
14041
14042   # OK, works on sane cases.  Now check whether nonexistent headers
14043   # can be detected and how.
14044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h.  */
14046 #include <ac_nonexistent.h>
14047 _ACEOF
14048 if ac_fn_cxx_try_cpp "$LINENO"; then :
14049   # Broken: success on invalid input.
14050 continue
14051 else
14052   # Passes both tests.
14053 ac_preproc_ok=:
14054 break
14055 fi
14056 rm -f conftest.err conftest.i conftest.$ac_ext
14057
14058 done
14059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14060 rm -f conftest.i conftest.err conftest.$ac_ext
14061 if $ac_preproc_ok; then :
14062
14063 else
14064   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14066 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14067 See \`config.log' for more details" "$LINENO" 5; }
14068 fi
14069
14070 ac_ext=c
14071 ac_cpp='$CPP $CPPFLAGS'
14072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14075
14076 else
14077   _lt_caught_CXX_error=yes
14078 fi
14079
14080 ac_ext=cpp
14081 ac_cpp='$CXXCPP $CPPFLAGS'
14082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14085
14086 archive_cmds_need_lc_CXX=no
14087 allow_undefined_flag_CXX=
14088 always_export_symbols_CXX=no
14089 archive_expsym_cmds_CXX=
14090 compiler_needs_object_CXX=no
14091 export_dynamic_flag_spec_CXX=
14092 hardcode_direct_CXX=no
14093 hardcode_direct_absolute_CXX=no
14094 hardcode_libdir_flag_spec_CXX=
14095 hardcode_libdir_separator_CXX=
14096 hardcode_minus_L_CXX=no
14097 hardcode_shlibpath_var_CXX=unsupported
14098 hardcode_automatic_CXX=no
14099 inherit_rpath_CXX=no
14100 module_cmds_CXX=
14101 module_expsym_cmds_CXX=
14102 link_all_deplibs_CXX=unknown
14103 old_archive_cmds_CXX=$old_archive_cmds
14104 reload_flag_CXX=$reload_flag
14105 reload_cmds_CXX=$reload_cmds
14106 no_undefined_flag_CXX=
14107 whole_archive_flag_spec_CXX=
14108 enable_shared_with_static_runtimes_CXX=no
14109
14110 # Source file extension for C++ test sources.
14111 ac_ext=cpp
14112
14113 # Object file extension for compiled C++ test sources.
14114 objext=o
14115 objext_CXX=$objext
14116
14117 # No sense in running all these tests if we already determined that
14118 # the CXX compiler isn't working.  Some variables (like enable_shared)
14119 # are currently assumed to apply to all compilers on this platform,
14120 # and will be corrupted by setting them based on a non-working compiler.
14121 if test "$_lt_caught_CXX_error" != yes; then
14122   # Code to be used in simple compile tests
14123   lt_simple_compile_test_code="int some_variable = 0;"
14124
14125   # Code to be used in simple link tests
14126   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14127
14128   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14129
14130
14131
14132
14133
14134
14135 # If no C compiler was specified, use CC.
14136 LTCC=${LTCC-"$CC"}
14137
14138 # If no C compiler flags were specified, use CFLAGS.
14139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14140
14141 # Allow CC to be a program name with arguments.
14142 compiler=$CC
14143
14144
14145   # save warnings/boilerplate of simple test code
14146   ac_outfile=conftest.$ac_objext
14147 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14148 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14149 _lt_compiler_boilerplate=`cat conftest.err`
14150 $RM conftest*
14151
14152   ac_outfile=conftest.$ac_objext
14153 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14154 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14155 _lt_linker_boilerplate=`cat conftest.err`
14156 $RM -r conftest*
14157
14158
14159   # Allow CC to be a program name with arguments.
14160   lt_save_CC=$CC
14161   lt_save_CFLAGS=$CFLAGS
14162   lt_save_LD=$LD
14163   lt_save_GCC=$GCC
14164   GCC=$GXX
14165   lt_save_with_gnu_ld=$with_gnu_ld
14166   lt_save_path_LD=$lt_cv_path_LD
14167   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14168     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14169   else
14170     $as_unset lt_cv_prog_gnu_ld
14171   fi
14172   if test -n "${lt_cv_path_LDCXX+set}"; then
14173     lt_cv_path_LD=$lt_cv_path_LDCXX
14174   else
14175     $as_unset lt_cv_path_LD
14176   fi
14177   test -z "${LDCXX+set}" || LD=$LDCXX
14178   CC=${CXX-"c++"}
14179   CFLAGS=$CXXFLAGS
14180   compiler=$CC
14181   compiler_CXX=$CC
14182   for cc_temp in $compiler""; do
14183   case $cc_temp in
14184     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14185     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14186     \-*) ;;
14187     *) break;;
14188   esac
14189 done
14190 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14191
14192
14193   if test -n "$compiler"; then
14194     # We don't want -fno-exception when compiling C++ code, so set the
14195     # no_builtin_flag separately
14196     if test "$GXX" = yes; then
14197       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14198     else
14199       lt_prog_compiler_no_builtin_flag_CXX=
14200     fi
14201
14202     if test "$GXX" = yes; then
14203       # Set up default GNU C++ configuration
14204
14205
14206
14207 # Check whether --with-gnu-ld was given.
14208 if test "${with_gnu_ld+set}" = set; then :
14209   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14210 else
14211   with_gnu_ld=no
14212 fi
14213
14214 ac_prog=ld
14215 if test "$GCC" = yes; then
14216   # Check if gcc -print-prog-name=ld gives a path.
14217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14218 $as_echo_n "checking for ld used by $CC... " >&6; }
14219   case $host in
14220   *-*-mingw*)
14221     # gcc leaves a trailing carriage return which upsets mingw
14222     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14223   *)
14224     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14225   esac
14226   case $ac_prog in
14227     # Accept absolute paths.
14228     [\\/]* | ?:[\\/]*)
14229       re_direlt='/[^/][^/]*/\.\./'
14230       # Canonicalize the pathname of ld
14231       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14232       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14233         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14234       done
14235       test -z "$LD" && LD="$ac_prog"
14236       ;;
14237   "")
14238     # If it fails, then pretend we aren't using GCC.
14239     ac_prog=ld
14240     ;;
14241   *)
14242     # If it is relative, then search for the first ld in PATH.
14243     with_gnu_ld=unknown
14244     ;;
14245   esac
14246 elif test "$with_gnu_ld" = yes; then
14247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14248 $as_echo_n "checking for GNU ld... " >&6; }
14249 else
14250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14251 $as_echo_n "checking for non-GNU ld... " >&6; }
14252 fi
14253 if ${lt_cv_path_LD+:} false; then :
14254   $as_echo_n "(cached) " >&6
14255 else
14256   if test -z "$LD"; then
14257   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14258   for ac_dir in $PATH; do
14259     IFS="$lt_save_ifs"
14260     test -z "$ac_dir" && ac_dir=.
14261     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14262       lt_cv_path_LD="$ac_dir/$ac_prog"
14263       # Check to see if the program is GNU ld.  I'd rather use --version,
14264       # but apparently some variants of GNU ld only accept -v.
14265       # Break only if it was the GNU/non-GNU ld that we prefer.
14266       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14267       *GNU* | *'with BFD'*)
14268         test "$with_gnu_ld" != no && break
14269         ;;
14270       *)
14271         test "$with_gnu_ld" != yes && break
14272         ;;
14273       esac
14274     fi
14275   done
14276   IFS="$lt_save_ifs"
14277 else
14278   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14279 fi
14280 fi
14281
14282 LD="$lt_cv_path_LD"
14283 if test -n "$LD"; then
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14285 $as_echo "$LD" >&6; }
14286 else
14287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 $as_echo "no" >&6; }
14289 fi
14290 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14292 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14293 if ${lt_cv_prog_gnu_ld+:} false; then :
14294   $as_echo_n "(cached) " >&6
14295 else
14296   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14297 case `$LD -v 2>&1 </dev/null` in
14298 *GNU* | *'with BFD'*)
14299   lt_cv_prog_gnu_ld=yes
14300   ;;
14301 *)
14302   lt_cv_prog_gnu_ld=no
14303   ;;
14304 esac
14305 fi
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14307 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14308 with_gnu_ld=$lt_cv_prog_gnu_ld
14309
14310
14311
14312
14313
14314
14315
14316       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14317       # archiving commands below assume that GNU ld is being used.
14318       if test "$with_gnu_ld" = yes; then
14319         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320         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'
14321
14322         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14323         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14324
14325         # If archive_cmds runs LD, not CC, wlarc should be empty
14326         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14327         #     investigate it a little bit more. (MM)
14328         wlarc='${wl}'
14329
14330         # ancient GNU ld didn't support --whole-archive et. al.
14331         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14332           $GREP 'no-whole-archive' > /dev/null; then
14333           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14334         else
14335           whole_archive_flag_spec_CXX=
14336         fi
14337       else
14338         with_gnu_ld=no
14339         wlarc=
14340
14341         # A generic and very simple default shared library creation
14342         # command for GNU C++ for the case where it uses the native
14343         # linker, instead of GNU ld.  If possible, this setting should
14344         # overridden to take advantage of the native linker features on
14345         # the platform it is being used on.
14346         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14347       fi
14348
14349       # Commands to make compiler produce verbose output that lists
14350       # what "hidden" libraries, object files and flags are used when
14351       # linking a shared library.
14352       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14353
14354     else
14355       GXX=no
14356       with_gnu_ld=no
14357       wlarc=
14358     fi
14359
14360     # PORTME: fill in a description of your system's C++ link characteristics
14361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14362 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14363     ld_shlibs_CXX=yes
14364     case $host_os in
14365       aix3*)
14366         # FIXME: insert proper C++ library support
14367         ld_shlibs_CXX=no
14368         ;;
14369       aix[4-9]*)
14370         if test "$host_cpu" = ia64; then
14371           # On IA64, the linker does run time linking by default, so we don't
14372           # have to do anything special.
14373           aix_use_runtimelinking=no
14374           exp_sym_flag='-Bexport'
14375           no_entry_flag=""
14376         else
14377           aix_use_runtimelinking=no
14378
14379           # Test if we are trying to use run time linking or normal
14380           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14381           # need to do runtime linking.
14382           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14383             for ld_flag in $LDFLAGS; do
14384               case $ld_flag in
14385               *-brtl*)
14386                 aix_use_runtimelinking=yes
14387                 break
14388                 ;;
14389               esac
14390             done
14391             ;;
14392           esac
14393
14394           exp_sym_flag='-bexport'
14395           no_entry_flag='-bnoentry'
14396         fi
14397
14398         # When large executables or shared objects are built, AIX ld can
14399         # have problems creating the table of contents.  If linking a library
14400         # or program results in "error TOC overflow" add -mminimal-toc to
14401         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14402         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14403
14404         archive_cmds_CXX=''
14405         hardcode_direct_CXX=yes
14406         hardcode_direct_absolute_CXX=yes
14407         hardcode_libdir_separator_CXX=':'
14408         link_all_deplibs_CXX=yes
14409         file_list_spec_CXX='${wl}-f,'
14410
14411         if test "$GXX" = yes; then
14412           case $host_os in aix4.[012]|aix4.[012].*)
14413           # We only want to do this on AIX 4.2 and lower, the check
14414           # below for broken collect2 doesn't work under 4.3+
14415           collect2name=`${CC} -print-prog-name=collect2`
14416           if test -f "$collect2name" &&
14417              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14418           then
14419             # We have reworked collect2
14420             :
14421           else
14422             # We have old collect2
14423             hardcode_direct_CXX=unsupported
14424             # It fails to find uninstalled libraries when the uninstalled
14425             # path is not listed in the libpath.  Setting hardcode_minus_L
14426             # to unsupported forces relinking
14427             hardcode_minus_L_CXX=yes
14428             hardcode_libdir_flag_spec_CXX='-L$libdir'
14429             hardcode_libdir_separator_CXX=
14430           fi
14431           esac
14432           shared_flag='-shared'
14433           if test "$aix_use_runtimelinking" = yes; then
14434             shared_flag="$shared_flag "'${wl}-G'
14435           fi
14436         else
14437           # not using gcc
14438           if test "$host_cpu" = ia64; then
14439           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14440           # chokes on -Wl,-G. The following line is correct:
14441           shared_flag='-G'
14442           else
14443             if test "$aix_use_runtimelinking" = yes; then
14444               shared_flag='${wl}-G'
14445             else
14446               shared_flag='${wl}-bM:SRE'
14447             fi
14448           fi
14449         fi
14450
14451         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14452         # It seems that -bexpall does not export symbols beginning with
14453         # underscore (_), so it is better to generate a list of symbols to
14454         # export.
14455         always_export_symbols_CXX=yes
14456         if test "$aix_use_runtimelinking" = yes; then
14457           # Warning - without using the other runtime loading flags (-brtl),
14458           # -berok will link without error, but may produce a broken library.
14459           allow_undefined_flag_CXX='-berok'
14460           # Determine the default libpath from the value encoded in an empty
14461           # executable.
14462           if test "${lt_cv_aix_libpath+set}" = set; then
14463   aix_libpath=$lt_cv_aix_libpath
14464 else
14465   if ${lt_cv_aix_libpath__CXX+:} false; then :
14466   $as_echo_n "(cached) " >&6
14467 else
14468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h.  */
14470
14471 int
14472 main ()
14473 {
14474
14475   ;
14476   return 0;
14477 }
14478 _ACEOF
14479 if ac_fn_cxx_try_link "$LINENO"; then :
14480
14481   lt_aix_libpath_sed='
14482       /Import File Strings/,/^$/ {
14483           /^0/ {
14484               s/^0  *\([^ ]*\) *$/\1/
14485               p
14486           }
14487       }'
14488   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14489   # Check for a 64-bit object if we didn't find anything.
14490   if test -z "$lt_cv_aix_libpath__CXX"; then
14491     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14492   fi
14493 fi
14494 rm -f core conftest.err conftest.$ac_objext \
14495     conftest$ac_exeext conftest.$ac_ext
14496   if test -z "$lt_cv_aix_libpath__CXX"; then
14497     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14498   fi
14499
14500 fi
14501
14502   aix_libpath=$lt_cv_aix_libpath__CXX
14503 fi
14504
14505           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14506
14507           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"
14508         else
14509           if test "$host_cpu" = ia64; then
14510             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14511             allow_undefined_flag_CXX="-z nodefs"
14512             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"
14513           else
14514             # Determine the default libpath from the value encoded in an
14515             # empty executable.
14516             if test "${lt_cv_aix_libpath+set}" = set; then
14517   aix_libpath=$lt_cv_aix_libpath
14518 else
14519   if ${lt_cv_aix_libpath__CXX+:} false; then :
14520   $as_echo_n "(cached) " >&6
14521 else
14522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h.  */
14524
14525 int
14526 main ()
14527 {
14528
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 if ac_fn_cxx_try_link "$LINENO"; then :
14534
14535   lt_aix_libpath_sed='
14536       /Import File Strings/,/^$/ {
14537           /^0/ {
14538               s/^0  *\([^ ]*\) *$/\1/
14539               p
14540           }
14541       }'
14542   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14543   # Check for a 64-bit object if we didn't find anything.
14544   if test -z "$lt_cv_aix_libpath__CXX"; then
14545     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14546   fi
14547 fi
14548 rm -f core conftest.err conftest.$ac_objext \
14549     conftest$ac_exeext conftest.$ac_ext
14550   if test -z "$lt_cv_aix_libpath__CXX"; then
14551     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14552   fi
14553
14554 fi
14555
14556   aix_libpath=$lt_cv_aix_libpath__CXX
14557 fi
14558
14559             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14560             # Warning - without using the other run time loading flags,
14561             # -berok will link without error, but may produce a broken library.
14562             no_undefined_flag_CXX=' ${wl}-bernotok'
14563             allow_undefined_flag_CXX=' ${wl}-berok'
14564             if test "$with_gnu_ld" = yes; then
14565               # We only use this code for GNU lds that support --whole-archive.
14566               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14567             else
14568               # Exported symbols can be pulled into shared objects from archives
14569               whole_archive_flag_spec_CXX='$convenience'
14570             fi
14571             archive_cmds_need_lc_CXX=yes
14572             # This is similar to how AIX traditionally builds its shared
14573             # libraries.
14574             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'
14575           fi
14576         fi
14577         ;;
14578
14579       beos*)
14580         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14581           allow_undefined_flag_CXX=unsupported
14582           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14583           # support --undefined.  This deserves some investigation.  FIXME
14584           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14585         else
14586           ld_shlibs_CXX=no
14587         fi
14588         ;;
14589
14590       chorus*)
14591         case $cc_basename in
14592           *)
14593           # FIXME: insert proper C++ library support
14594           ld_shlibs_CXX=no
14595           ;;
14596         esac
14597         ;;
14598
14599       cygwin* | mingw* | pw32* | cegcc*)
14600         case $GXX,$cc_basename in
14601         ,cl* | no,cl*)
14602           # Native MSVC
14603           # hardcode_libdir_flag_spec is actually meaningless, as there is
14604           # no search path for DLLs.
14605           hardcode_libdir_flag_spec_CXX=' '
14606           allow_undefined_flag_CXX=unsupported
14607           always_export_symbols_CXX=yes
14608           file_list_spec_CXX='@'
14609           # Tell ltmain to make .lib files, not .a files.
14610           libext=lib
14611           # Tell ltmain to make .dll files, not .so files.
14612           shrext_cmds=".dll"
14613           # FIXME: Setting linknames here is a bad hack.
14614           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14615           archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14616               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14617             else
14618               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14619             fi~
14620             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14621             linknames='
14622           # The linker will not automatically build a static lib if we build a DLL.
14623           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14624           enable_shared_with_static_runtimes_CXX=yes
14625           # Don't use ranlib
14626           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14627           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14628             lt_tool_outputfile="@TOOL_OUTPUT@"~
14629             case $lt_outputfile in
14630               *.exe|*.EXE) ;;
14631               *)
14632                 lt_outputfile="$lt_outputfile.exe"
14633                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14634                 ;;
14635             esac~
14636             func_to_tool_file "$lt_outputfile"~
14637             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14638               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14639               $RM "$lt_outputfile.manifest";
14640             fi'
14641           ;;
14642         *)
14643           # g++
14644           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14645           # as there is no search path for DLLs.
14646           hardcode_libdir_flag_spec_CXX='-L$libdir'
14647           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14648           allow_undefined_flag_CXX=unsupported
14649           always_export_symbols_CXX=no
14650           enable_shared_with_static_runtimes_CXX=yes
14651
14652           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14653             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'
14654             # If the export-symbols file already is a .def file (1st line
14655             # is EXPORTS), use it as is; otherwise, prepend...
14656             archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14657               cp $export_symbols $output_objdir/$soname.def;
14658             else
14659               echo EXPORTS > $output_objdir/$soname.def;
14660               cat $export_symbols >> $output_objdir/$soname.def;
14661             fi~
14662             $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'
14663           else
14664             ld_shlibs_CXX=no
14665           fi
14666           ;;
14667         esac
14668         ;;
14669       darwin* | rhapsody*)
14670
14671
14672   archive_cmds_need_lc_CXX=no
14673   hardcode_direct_CXX=no
14674   hardcode_automatic_CXX=yes
14675   hardcode_shlibpath_var_CXX=unsupported
14676   if test "$lt_cv_ld_force_load" = "yes"; then
14677     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\"`'
14678
14679   else
14680     whole_archive_flag_spec_CXX=''
14681   fi
14682   link_all_deplibs_CXX=yes
14683   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14684   case $cc_basename in
14685      ifort*) _lt_dar_can_shared=yes ;;
14686      *) _lt_dar_can_shared=$GCC ;;
14687   esac
14688   if test "$_lt_dar_can_shared" = "yes"; then
14689     output_verbose_link_cmd=func_echo_all
14690     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}"
14691     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14692     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}"
14693     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}"
14694        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14695       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}"
14696       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}"
14697     fi
14698
14699   else
14700   ld_shlibs_CXX=no
14701   fi
14702
14703         ;;
14704
14705       dgux*)
14706         case $cc_basename in
14707           ec++*)
14708             # FIXME: insert proper C++ library support
14709             ld_shlibs_CXX=no
14710             ;;
14711           ghcx*)
14712             # Green Hills C++ Compiler
14713             # FIXME: insert proper C++ library support
14714             ld_shlibs_CXX=no
14715             ;;
14716           *)
14717             # FIXME: insert proper C++ library support
14718             ld_shlibs_CXX=no
14719             ;;
14720         esac
14721         ;;
14722
14723       freebsd2.*)
14724         # C++ shared libraries reported to be fairly broken before
14725         # switch to ELF
14726         ld_shlibs_CXX=no
14727         ;;
14728
14729       freebsd-elf*)
14730         archive_cmds_need_lc_CXX=no
14731         ;;
14732
14733       freebsd* | dragonfly*)
14734         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14735         # conventions
14736         ld_shlibs_CXX=yes
14737         ;;
14738
14739       gnu*)
14740         ;;
14741
14742       haiku*)
14743         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14744         link_all_deplibs_CXX=yes
14745         ;;
14746
14747       hpux9*)
14748         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14749         hardcode_libdir_separator_CXX=:
14750         export_dynamic_flag_spec_CXX='${wl}-E'
14751         hardcode_direct_CXX=yes
14752         hardcode_minus_L_CXX=yes # Not in the search PATH,
14753                                              # but as the default
14754                                              # location of the library.
14755
14756         case $cc_basename in
14757           CC*)
14758             # FIXME: insert proper C++ library support
14759             ld_shlibs_CXX=no
14760             ;;
14761           aCC*)
14762             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'
14763             # Commands to make compiler produce verbose output that lists
14764             # what "hidden" libraries, object files and flags are used when
14765             # linking a shared library.
14766             #
14767             # There doesn't appear to be a way to prevent this compiler from
14768             # explicitly linking system object files so we need to strip them
14769             # from the output so that they don't get included in the library
14770             # dependencies.
14771             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"'
14772             ;;
14773           *)
14774             if test "$GXX" = yes; then
14775               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'
14776             else
14777               # FIXME: insert proper C++ library support
14778               ld_shlibs_CXX=no
14779             fi
14780             ;;
14781         esac
14782         ;;
14783
14784       hpux10*|hpux11*)
14785         if test $with_gnu_ld = no; then
14786           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14787           hardcode_libdir_separator_CXX=:
14788
14789           case $host_cpu in
14790             hppa*64*|ia64*)
14791               ;;
14792             *)
14793               export_dynamic_flag_spec_CXX='${wl}-E'
14794               ;;
14795           esac
14796         fi
14797         case $host_cpu in
14798           hppa*64*|ia64*)
14799             hardcode_direct_CXX=no
14800             hardcode_shlibpath_var_CXX=no
14801             ;;
14802           *)
14803             hardcode_direct_CXX=yes
14804             hardcode_direct_absolute_CXX=yes
14805             hardcode_minus_L_CXX=yes # Not in the search PATH,
14806                                                  # but as the default
14807                                                  # location of the library.
14808             ;;
14809         esac
14810
14811         case $cc_basename in
14812           CC*)
14813             # FIXME: insert proper C++ library support
14814             ld_shlibs_CXX=no
14815             ;;
14816           aCC*)
14817             case $host_cpu in
14818               hppa*64*)
14819                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14820                 ;;
14821               ia64*)
14822                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14823                 ;;
14824               *)
14825                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14826                 ;;
14827             esac
14828             # Commands to make compiler produce verbose output that lists
14829             # what "hidden" libraries, object files and flags are used when
14830             # linking a shared library.
14831             #
14832             # There doesn't appear to be a way to prevent this compiler from
14833             # explicitly linking system object files so we need to strip them
14834             # from the output so that they don't get included in the library
14835             # dependencies.
14836             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"'
14837             ;;
14838           *)
14839             if test "$GXX" = yes; then
14840               if test $with_gnu_ld = no; then
14841                 case $host_cpu in
14842                   hppa*64*)
14843                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14844                     ;;
14845                   ia64*)
14846                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14847                     ;;
14848                   *)
14849                     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'
14850                     ;;
14851                 esac
14852               fi
14853             else
14854               # FIXME: insert proper C++ library support
14855               ld_shlibs_CXX=no
14856             fi
14857             ;;
14858         esac
14859         ;;
14860
14861       interix[3-9]*)
14862         hardcode_direct_CXX=no
14863         hardcode_shlibpath_var_CXX=no
14864         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14865         export_dynamic_flag_spec_CXX='${wl}-E'
14866         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14867         # Instead, shared libraries are loaded at an image base (0x10000000 by
14868         # default) and relocated if they conflict, which is a slow very memory
14869         # consuming and fragmenting process.  To avoid this, we pick a random,
14870         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14871         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14872         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'
14873         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'
14874         ;;
14875       irix5* | irix6*)
14876         case $cc_basename in
14877           CC*)
14878             # SGI C++
14879             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'
14880
14881             # Archives containing C++ object files must be created using
14882             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14883             # necessary to make sure instantiated templates are included
14884             # in the archive.
14885             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14886             ;;
14887           *)
14888             if test "$GXX" = yes; then
14889               if test "$with_gnu_ld" = no; then
14890                 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'
14891               else
14892                 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'
14893               fi
14894             fi
14895             link_all_deplibs_CXX=yes
14896             ;;
14897         esac
14898         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14899         hardcode_libdir_separator_CXX=:
14900         inherit_rpath_CXX=yes
14901         ;;
14902
14903       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14904         case $cc_basename in
14905           KCC*)
14906             # Kuck and Associates, Inc. (KAI) C++ Compiler
14907
14908             # KCC will only create a shared library if the output file
14909             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14910             # to its proper name (with version) after linking.
14911             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'
14912             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'
14913             # Commands to make compiler produce verbose output that lists
14914             # what "hidden" libraries, object files and flags are used when
14915             # linking a shared library.
14916             #
14917             # There doesn't appear to be a way to prevent this compiler from
14918             # explicitly linking system object files so we need to strip them
14919             # from the output so that they don't get included in the library
14920             # dependencies.
14921             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"'
14922
14923             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14924             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14925
14926             # Archives containing C++ object files must be created using
14927             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14928             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14929             ;;
14930           icpc* | ecpc* )
14931             # Intel C++
14932             with_gnu_ld=yes
14933             # version 8.0 and above of icpc choke on multiply defined symbols
14934             # if we add $predep_objects and $postdep_objects, however 7.1 and
14935             # earlier do not add the objects themselves.
14936             case `$CC -V 2>&1` in
14937               *"Version 7."*)
14938                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939                 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'
14940                 ;;
14941               *)  # Version 8.0 or newer
14942                 tmp_idyn=
14943                 case $host_cpu in
14944                   ia64*) tmp_idyn=' -i_dynamic';;
14945                 esac
14946                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14947                 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'
14948                 ;;
14949             esac
14950             archive_cmds_need_lc_CXX=no
14951             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14952             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14953             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14954             ;;
14955           pgCC* | pgcpp*)
14956             # Portland Group C++ compiler
14957             case `$CC -V` in
14958             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14959               prelink_cmds_CXX='tpldir=Template.dir~
14960                 rm -rf $tpldir~
14961                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14962                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14963               old_archive_cmds_CXX='tpldir=Template.dir~
14964                 rm -rf $tpldir~
14965                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14966                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14967                 $RANLIB $oldlib'
14968               archive_cmds_CXX='tpldir=Template.dir~
14969                 rm -rf $tpldir~
14970                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14971                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14972               archive_expsym_cmds_CXX='tpldir=Template.dir~
14973                 rm -rf $tpldir~
14974                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14975                 $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'
14976               ;;
14977             *) # Version 6 and above use weak symbols
14978               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14979               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'
14980               ;;
14981             esac
14982
14983             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14984             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14985             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'
14986             ;;
14987           cxx*)
14988             # Compaq C++
14989             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14990             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'
14991
14992             runpath_var=LD_RUN_PATH
14993             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14994             hardcode_libdir_separator_CXX=:
14995
14996             # Commands to make compiler produce verbose output that lists
14997             # what "hidden" libraries, object files and flags are used when
14998             # linking a shared library.
14999             #
15000             # There doesn't appear to be a way to prevent this compiler from
15001             # explicitly linking system object files so we need to strip them
15002             # from the output so that they don't get included in the library
15003             # dependencies.
15004             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'
15005             ;;
15006           xl* | mpixl* | bgxl*)
15007             # IBM XL 8.0 on PPC, with GNU ld
15008             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15009             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15010             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011             if test "x$supports_anon_versioning" = xyes; then
15012               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15013                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15014                 echo "local: *; };" >> $output_objdir/$libname.ver~
15015                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15016             fi
15017             ;;
15018           *)
15019             case `$CC -V 2>&1 | sed 5q` in
15020             *Sun\ C*)
15021               # Sun C++ 5.9
15022               no_undefined_flag_CXX=' -zdefs'
15023               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15024               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'
15025               hardcode_libdir_flag_spec_CXX='-R$libdir'
15026               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'
15027               compiler_needs_object_CXX=yes
15028
15029               # Not sure whether something based on
15030               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15031               # would be better.
15032               output_verbose_link_cmd='func_echo_all'
15033
15034               # Archives containing C++ object files must be created using
15035               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15036               # necessary to make sure instantiated templates are included
15037               # in the archive.
15038               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15039               ;;
15040             esac
15041             ;;
15042         esac
15043         ;;
15044
15045       lynxos*)
15046         # FIXME: insert proper C++ library support
15047         ld_shlibs_CXX=no
15048         ;;
15049
15050       m88k*)
15051         # FIXME: insert proper C++ library support
15052         ld_shlibs_CXX=no
15053         ;;
15054
15055       mvs*)
15056         case $cc_basename in
15057           cxx*)
15058             # FIXME: insert proper C++ library support
15059             ld_shlibs_CXX=no
15060             ;;
15061           *)
15062             # FIXME: insert proper C++ library support
15063             ld_shlibs_CXX=no
15064             ;;
15065         esac
15066         ;;
15067
15068       netbsd*)
15069         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15070           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15071           wlarc=
15072           hardcode_libdir_flag_spec_CXX='-R$libdir'
15073           hardcode_direct_CXX=yes
15074           hardcode_shlibpath_var_CXX=no
15075         fi
15076         # Workaround some broken pre-1.5 toolchains
15077         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15078         ;;
15079
15080       *nto* | *qnx*)
15081         ld_shlibs_CXX=yes
15082         ;;
15083
15084       openbsd2*)
15085         # C++ shared libraries are fairly broken
15086         ld_shlibs_CXX=no
15087         ;;
15088
15089       openbsd*)
15090         if test -f /usr/libexec/ld.so; then
15091           hardcode_direct_CXX=yes
15092           hardcode_shlibpath_var_CXX=no
15093           hardcode_direct_absolute_CXX=yes
15094           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15095           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15096           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15097             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15098             export_dynamic_flag_spec_CXX='${wl}-E'
15099             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15100           fi
15101           output_verbose_link_cmd=func_echo_all
15102         else
15103           ld_shlibs_CXX=no
15104         fi
15105         ;;
15106
15107       osf3* | osf4* | osf5*)
15108         case $cc_basename in
15109           KCC*)
15110             # Kuck and Associates, Inc. (KAI) C++ Compiler
15111
15112             # KCC will only create a shared library if the output file
15113             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15114             # to its proper name (with version) after linking.
15115             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'
15116
15117             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15118             hardcode_libdir_separator_CXX=:
15119
15120             # Archives containing C++ object files must be created using
15121             # the KAI C++ compiler.
15122             case $host in
15123               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15124               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15125             esac
15126             ;;
15127           RCC*)
15128             # Rational C++ 2.4.1
15129             # FIXME: insert proper C++ library support
15130             ld_shlibs_CXX=no
15131             ;;
15132           cxx*)
15133             case $host in
15134               osf3*)
15135                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15136                 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'
15137                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15138                 ;;
15139               *)
15140                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15141                 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'
15142                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15143                   echo "-hidden">> $lib.exp~
15144                   $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~
15145                   $RM $lib.exp'
15146                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15147                 ;;
15148             esac
15149
15150             hardcode_libdir_separator_CXX=:
15151
15152             # Commands to make compiler produce verbose output that lists
15153             # what "hidden" libraries, object files and flags are used when
15154             # linking a shared library.
15155             #
15156             # There doesn't appear to be a way to prevent this compiler from
15157             # explicitly linking system object files so we need to strip them
15158             # from the output so that they don't get included in the library
15159             # dependencies.
15160             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"'
15161             ;;
15162           *)
15163             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15164               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15165               case $host in
15166                 osf3*)
15167                   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'
15168                   ;;
15169                 *)
15170                   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'
15171                   ;;
15172               esac
15173
15174               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
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               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15181
15182             else
15183               # FIXME: insert proper C++ library support
15184               ld_shlibs_CXX=no
15185             fi
15186             ;;
15187         esac
15188         ;;
15189
15190       psos*)
15191         # FIXME: insert proper C++ library support
15192         ld_shlibs_CXX=no
15193         ;;
15194
15195       sunos4*)
15196         case $cc_basename in
15197           CC*)
15198             # Sun C++ 4.x
15199             # FIXME: insert proper C++ library support
15200             ld_shlibs_CXX=no
15201             ;;
15202           lcc*)
15203             # Lucid
15204             # FIXME: insert proper C++ library support
15205             ld_shlibs_CXX=no
15206             ;;
15207           *)
15208             # FIXME: insert proper C++ library support
15209             ld_shlibs_CXX=no
15210             ;;
15211         esac
15212         ;;
15213
15214       solaris*)
15215         case $cc_basename in
15216           CC* | sunCC*)
15217             # Sun C++ 4.2, 5.x and Centerline C++
15218             archive_cmds_need_lc_CXX=yes
15219             no_undefined_flag_CXX=' -zdefs'
15220             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15221             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15222               $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'
15223
15224             hardcode_libdir_flag_spec_CXX='-R$libdir'
15225             hardcode_shlibpath_var_CXX=no
15226             case $host_os in
15227               solaris2.[0-5] | solaris2.[0-5].*) ;;
15228               *)
15229                 # The compiler driver will combine and reorder linker options,
15230                 # but understands `-z linker_flag'.
15231                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15232                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15233                 ;;
15234             esac
15235             link_all_deplibs_CXX=yes
15236
15237             output_verbose_link_cmd='func_echo_all'
15238
15239             # Archives containing C++ object files must be created using
15240             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15241             # necessary to make sure instantiated templates are included
15242             # in the archive.
15243             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15244             ;;
15245           gcx*)
15246             # Green Hills C++ Compiler
15247             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15248
15249             # The C++ compiler must be used to create the archive.
15250             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15251             ;;
15252           *)
15253             # GNU C++ compiler with Solaris linker
15254             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15255               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15256               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15257                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15258                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15259                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15260
15261                 # Commands to make compiler produce verbose output that lists
15262                 # what "hidden" libraries, object files and flags are used when
15263                 # linking a shared library.
15264                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15265               else
15266                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15267                 # platform.
15268                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15269                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15270                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15271
15272                 # Commands to make compiler produce verbose output that lists
15273                 # what "hidden" libraries, object files and flags are used when
15274                 # linking a shared library.
15275                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15276               fi
15277
15278               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15279               case $host_os in
15280                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15281                 *)
15282                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15283                   ;;
15284               esac
15285             fi
15286             ;;
15287         esac
15288         ;;
15289
15290     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15291       no_undefined_flag_CXX='${wl}-z,text'
15292       archive_cmds_need_lc_CXX=no
15293       hardcode_shlibpath_var_CXX=no
15294       runpath_var='LD_RUN_PATH'
15295
15296       case $cc_basename in
15297         CC*)
15298           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15299           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15300           ;;
15301         *)
15302           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15303           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15304           ;;
15305       esac
15306       ;;
15307
15308       sysv5* | sco3.2v5* | sco5v6*)
15309         # Note: We can NOT use -z defs as we might desire, because we do not
15310         # link with -lc, and that would cause any symbols used from libc to
15311         # always be unresolved, which means just about no library would
15312         # ever link correctly.  If we're not using GNU ld we use -z text
15313         # though, which does catch some bad symbols but isn't as heavy-handed
15314         # as -z defs.
15315         no_undefined_flag_CXX='${wl}-z,text'
15316         allow_undefined_flag_CXX='${wl}-z,nodefs'
15317         archive_cmds_need_lc_CXX=no
15318         hardcode_shlibpath_var_CXX=no
15319         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15320         hardcode_libdir_separator_CXX=':'
15321         link_all_deplibs_CXX=yes
15322         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15323         runpath_var='LD_RUN_PATH'
15324
15325         case $cc_basename in
15326           CC*)
15327             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15328             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15329             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15330               '"$old_archive_cmds_CXX"
15331             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15332               '"$reload_cmds_CXX"
15333             ;;
15334           *)
15335             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15336             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15337             ;;
15338         esac
15339       ;;
15340
15341       tandem*)
15342         case $cc_basename in
15343           NCC*)
15344             # NonStop-UX NCC 3.20
15345             # FIXME: insert proper C++ library support
15346             ld_shlibs_CXX=no
15347             ;;
15348           *)
15349             # FIXME: insert proper C++ library support
15350             ld_shlibs_CXX=no
15351             ;;
15352         esac
15353         ;;
15354
15355       vxworks*)
15356         # FIXME: insert proper C++ library support
15357         ld_shlibs_CXX=no
15358         ;;
15359
15360       *)
15361         # FIXME: insert proper C++ library support
15362         ld_shlibs_CXX=no
15363         ;;
15364     esac
15365
15366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15367 $as_echo "$ld_shlibs_CXX" >&6; }
15368     test "$ld_shlibs_CXX" = no && can_build_shared=no
15369
15370     GCC_CXX="$GXX"
15371     LD_CXX="$LD"
15372
15373     ## CAVEAT EMPTOR:
15374     ## There is no encapsulation within the following macros, do not change
15375     ## the running order or otherwise move them around unless you know exactly
15376     ## what you are doing...
15377     # Dependencies to place before and after the object being linked:
15378 predep_objects_CXX=
15379 postdep_objects_CXX=
15380 predeps_CXX=
15381 postdeps_CXX=
15382 compiler_lib_search_path_CXX=
15383
15384 cat > conftest.$ac_ext <<_LT_EOF
15385 class Foo
15386 {
15387 public:
15388   Foo (void) { a = 0; }
15389 private:
15390   int a;
15391 };
15392 _LT_EOF
15393
15394
15395 _lt_libdeps_save_CFLAGS=$CFLAGS
15396 case "$CC $CFLAGS " in #(
15397 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15398 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15399 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15400 esac
15401
15402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15403   (eval $ac_compile) 2>&5
15404   ac_status=$?
15405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15406   test $ac_status = 0; }; then
15407   # Parse the compiler output and extract the necessary
15408   # objects, libraries and library flags.
15409
15410   # Sentinel used to keep track of whether or not we are before
15411   # the conftest object file.
15412   pre_test_object_deps_done=no
15413
15414   for p in `eval "$output_verbose_link_cmd"`; do
15415     case ${prev}${p} in
15416
15417     -L* | -R* | -l*)
15418        # Some compilers place space between "-{L,R}" and the path.
15419        # Remove the space.
15420        if test $p = "-L" ||
15421           test $p = "-R"; then
15422          prev=$p
15423          continue
15424        fi
15425
15426        # Expand the sysroot to ease extracting the directories later.
15427        if test -z "$prev"; then
15428          case $p in
15429          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15430          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15431          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15432          esac
15433        fi
15434        case $p in
15435        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15436        esac
15437        if test "$pre_test_object_deps_done" = no; then
15438          case ${prev} in
15439          -L | -R)
15440            # Internal compiler library paths should come after those
15441            # provided the user.  The postdeps already come after the
15442            # user supplied libs so there is no need to process them.
15443            if test -z "$compiler_lib_search_path_CXX"; then
15444              compiler_lib_search_path_CXX="${prev}${p}"
15445            else
15446              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15447            fi
15448            ;;
15449          # The "-l" case would never come before the object being
15450          # linked, so don't bother handling this case.
15451          esac
15452        else
15453          if test -z "$postdeps_CXX"; then
15454            postdeps_CXX="${prev}${p}"
15455          else
15456            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15457          fi
15458        fi
15459        prev=
15460        ;;
15461
15462     *.lto.$objext) ;; # Ignore GCC LTO objects
15463     *.$objext)
15464        # This assumes that the test object file only shows up
15465        # once in the compiler output.
15466        if test "$p" = "conftest.$objext"; then
15467          pre_test_object_deps_done=yes
15468          continue
15469        fi
15470
15471        if test "$pre_test_object_deps_done" = no; then
15472          if test -z "$predep_objects_CXX"; then
15473            predep_objects_CXX="$p"
15474          else
15475            predep_objects_CXX="$predep_objects_CXX $p"
15476          fi
15477        else
15478          if test -z "$postdep_objects_CXX"; then
15479            postdep_objects_CXX="$p"
15480          else
15481            postdep_objects_CXX="$postdep_objects_CXX $p"
15482          fi
15483        fi
15484        ;;
15485
15486     *) ;; # Ignore the rest.
15487
15488     esac
15489   done
15490
15491   # Clean up.
15492   rm -f a.out a.exe
15493 else
15494   echo "libtool.m4: error: problem compiling CXX test program"
15495 fi
15496
15497 $RM -f confest.$objext
15498 CFLAGS=$_lt_libdeps_save_CFLAGS
15499
15500 # PORTME: override above test on systems where it is broken
15501 case $host_os in
15502 interix[3-9]*)
15503   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15504   # hack all around it, let's just trust "g++" to DTRT.
15505   predep_objects_CXX=
15506   postdep_objects_CXX=
15507   postdeps_CXX=
15508   ;;
15509
15510 linux*)
15511   case `$CC -V 2>&1 | sed 5q` in
15512   *Sun\ C*)
15513     # Sun C++ 5.9
15514
15515     # The more standards-conforming stlport4 library is
15516     # incompatible with the Cstd library. Avoid specifying
15517     # it if it's in CXXFLAGS. Ignore libCrun as
15518     # -library=stlport4 depends on it.
15519     case " $CXX $CXXFLAGS " in
15520     *" -library=stlport4 "*)
15521       solaris_use_stlport4=yes
15522       ;;
15523     esac
15524
15525     if test "$solaris_use_stlport4" != yes; then
15526       postdeps_CXX='-library=Cstd -library=Crun'
15527     fi
15528     ;;
15529   esac
15530   ;;
15531
15532 solaris*)
15533   case $cc_basename in
15534   CC* | sunCC*)
15535     # The more standards-conforming stlport4 library is
15536     # incompatible with the Cstd library. Avoid specifying
15537     # it if it's in CXXFLAGS. Ignore libCrun as
15538     # -library=stlport4 depends on it.
15539     case " $CXX $CXXFLAGS " in
15540     *" -library=stlport4 "*)
15541       solaris_use_stlport4=yes
15542       ;;
15543     esac
15544
15545     # Adding this requires a known-good setup of shared libraries for
15546     # Sun compiler versions before 5.6, else PIC objects from an old
15547     # archive will be linked into the output, leading to subtle bugs.
15548     if test "$solaris_use_stlport4" != yes; then
15549       postdeps_CXX='-library=Cstd -library=Crun'
15550     fi
15551     ;;
15552   esac
15553   ;;
15554 esac
15555
15556
15557 case " $postdeps_CXX " in
15558 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15559 esac
15560  compiler_lib_search_dirs_CXX=
15561 if test -n "${compiler_lib_search_path_CXX}"; then
15562  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15563 fi
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595     lt_prog_compiler_wl_CXX=
15596 lt_prog_compiler_pic_CXX=
15597 lt_prog_compiler_static_CXX=
15598
15599
15600   # C++ specific cases for pic, static, wl, etc.
15601   if test "$GXX" = yes; then
15602     lt_prog_compiler_wl_CXX='-Wl,'
15603     lt_prog_compiler_static_CXX='-static'
15604
15605     case $host_os in
15606     aix*)
15607       # All AIX code is PIC.
15608       if test "$host_cpu" = ia64; then
15609         # AIX 5 now supports IA64 processor
15610         lt_prog_compiler_static_CXX='-Bstatic'
15611       fi
15612       ;;
15613
15614     amigaos*)
15615       case $host_cpu in
15616       powerpc)
15617             # see comment about AmigaOS4 .so support
15618             lt_prog_compiler_pic_CXX='-fPIC'
15619         ;;
15620       m68k)
15621             # FIXME: we need at least 68020 code to build shared libraries, but
15622             # adding the `-m68020' flag to GCC prevents building anything better,
15623             # like `-m68040'.
15624             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15625         ;;
15626       esac
15627       ;;
15628
15629     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15630       # PIC is the default for these OSes.
15631       ;;
15632     mingw* | cygwin* | os2* | pw32* | cegcc*)
15633       # This hack is so that the source file can tell whether it is being
15634       # built for inclusion in a dll (and should export symbols for example).
15635       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15636       # (--disable-auto-import) libraries
15637       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15638       ;;
15639     darwin* | rhapsody*)
15640       # PIC is the default on this platform
15641       # Common symbols not allowed in MH_DYLIB files
15642       lt_prog_compiler_pic_CXX='-fno-common'
15643       ;;
15644     *djgpp*)
15645       # DJGPP does not support shared libraries at all
15646       lt_prog_compiler_pic_CXX=
15647       ;;
15648     haiku*)
15649       # PIC is the default for Haiku.
15650       # The "-static" flag exists, but is broken.
15651       lt_prog_compiler_static_CXX=
15652       ;;
15653     interix[3-9]*)
15654       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15655       # Instead, we relocate shared libraries at runtime.
15656       ;;
15657     sysv4*MP*)
15658       if test -d /usr/nec; then
15659         lt_prog_compiler_pic_CXX=-Kconform_pic
15660       fi
15661       ;;
15662     hpux*)
15663       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15664       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15665       # sets the default TLS model and affects inlining.
15666       case $host_cpu in
15667       hppa*64*)
15668         ;;
15669       *)
15670         lt_prog_compiler_pic_CXX='-fPIC'
15671         ;;
15672       esac
15673       ;;
15674     *qnx* | *nto*)
15675       # QNX uses GNU C++, but need to define -shared option too, otherwise
15676       # it will coredump.
15677       lt_prog_compiler_pic_CXX='-fPIC -shared'
15678       ;;
15679     *)
15680       lt_prog_compiler_pic_CXX='-fPIC'
15681       ;;
15682     esac
15683   else
15684     case $host_os in
15685       aix[4-9]*)
15686         # All AIX code is PIC.
15687         if test "$host_cpu" = ia64; then
15688           # AIX 5 now supports IA64 processor
15689           lt_prog_compiler_static_CXX='-Bstatic'
15690         else
15691           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15692         fi
15693         ;;
15694       chorus*)
15695         case $cc_basename in
15696         cxch68*)
15697           # Green Hills C++ Compiler
15698           # _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"
15699           ;;
15700         esac
15701         ;;
15702       mingw* | cygwin* | os2* | pw32* | cegcc*)
15703         # This hack is so that the source file can tell whether it is being
15704         # built for inclusion in a dll (and should export symbols for example).
15705         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15706         ;;
15707       dgux*)
15708         case $cc_basename in
15709           ec++*)
15710             lt_prog_compiler_pic_CXX='-KPIC'
15711             ;;
15712           ghcx*)
15713             # Green Hills C++ Compiler
15714             lt_prog_compiler_pic_CXX='-pic'
15715             ;;
15716           *)
15717             ;;
15718         esac
15719         ;;
15720       freebsd* | dragonfly*)
15721         # FreeBSD uses GNU C++
15722         ;;
15723       hpux9* | hpux10* | hpux11*)
15724         case $cc_basename in
15725           CC*)
15726             lt_prog_compiler_wl_CXX='-Wl,'
15727             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15728             if test "$host_cpu" != ia64; then
15729               lt_prog_compiler_pic_CXX='+Z'
15730             fi
15731             ;;
15732           aCC*)
15733             lt_prog_compiler_wl_CXX='-Wl,'
15734             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15735             case $host_cpu in
15736             hppa*64*|ia64*)
15737               # +Z the default
15738               ;;
15739             *)
15740               lt_prog_compiler_pic_CXX='+Z'
15741               ;;
15742             esac
15743             ;;
15744           *)
15745             ;;
15746         esac
15747         ;;
15748       interix*)
15749         # This is c89, which is MS Visual C++ (no shared libs)
15750         # Anyone wants to do a port?
15751         ;;
15752       irix5* | irix6* | nonstopux*)
15753         case $cc_basename in
15754           CC*)
15755             lt_prog_compiler_wl_CXX='-Wl,'
15756             lt_prog_compiler_static_CXX='-non_shared'
15757             # CC pic flag -KPIC is the default.
15758             ;;
15759           *)
15760             ;;
15761         esac
15762         ;;
15763       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15764         case $cc_basename in
15765           KCC*)
15766             # KAI C++ Compiler
15767             lt_prog_compiler_wl_CXX='--backend -Wl,'
15768             lt_prog_compiler_pic_CXX='-fPIC'
15769             ;;
15770           ecpc* )
15771             # old Intel C++ for x86_64 which still supported -KPIC.
15772             lt_prog_compiler_wl_CXX='-Wl,'
15773             lt_prog_compiler_pic_CXX='-KPIC'
15774             lt_prog_compiler_static_CXX='-static'
15775             ;;
15776           icpc* )
15777             # Intel C++, used to be incompatible with GCC.
15778             # ICC 10 doesn't accept -KPIC any more.
15779             lt_prog_compiler_wl_CXX='-Wl,'
15780             lt_prog_compiler_pic_CXX='-fPIC'
15781             lt_prog_compiler_static_CXX='-static'
15782             ;;
15783           pgCC* | pgcpp*)
15784             # Portland Group C++ compiler
15785             lt_prog_compiler_wl_CXX='-Wl,'
15786             lt_prog_compiler_pic_CXX='-fpic'
15787             lt_prog_compiler_static_CXX='-Bstatic'
15788             ;;
15789           cxx*)
15790             # Compaq C++
15791             # Make sure the PIC flag is empty.  It appears that all Alpha
15792             # Linux and Compaq Tru64 Unix objects are PIC.
15793             lt_prog_compiler_pic_CXX=
15794             lt_prog_compiler_static_CXX='-non_shared'
15795             ;;
15796           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15797             # IBM XL 8.0, 9.0 on PPC and BlueGene
15798             lt_prog_compiler_wl_CXX='-Wl,'
15799             lt_prog_compiler_pic_CXX='-qpic'
15800             lt_prog_compiler_static_CXX='-qstaticlink'
15801             ;;
15802           *)
15803             case `$CC -V 2>&1 | sed 5q` in
15804             *Sun\ C*)
15805               # Sun C++ 5.9
15806               lt_prog_compiler_pic_CXX='-KPIC'
15807               lt_prog_compiler_static_CXX='-Bstatic'
15808               lt_prog_compiler_wl_CXX='-Qoption ld '
15809               ;;
15810             esac
15811             ;;
15812         esac
15813         ;;
15814       lynxos*)
15815         ;;
15816       m88k*)
15817         ;;
15818       mvs*)
15819         case $cc_basename in
15820           cxx*)
15821             lt_prog_compiler_pic_CXX='-W c,exportall'
15822             ;;
15823           *)
15824             ;;
15825         esac
15826         ;;
15827       netbsd* | netbsdelf*-gnu)
15828         ;;
15829       *qnx* | *nto*)
15830         # QNX uses GNU C++, but need to define -shared option too, otherwise
15831         # it will coredump.
15832         lt_prog_compiler_pic_CXX='-fPIC -shared'
15833         ;;
15834       osf3* | osf4* | osf5*)
15835         case $cc_basename in
15836           KCC*)
15837             lt_prog_compiler_wl_CXX='--backend -Wl,'
15838             ;;
15839           RCC*)
15840             # Rational C++ 2.4.1
15841             lt_prog_compiler_pic_CXX='-pic'
15842             ;;
15843           cxx*)
15844             # Digital/Compaq C++
15845             lt_prog_compiler_wl_CXX='-Wl,'
15846             # Make sure the PIC flag is empty.  It appears that all Alpha
15847             # Linux and Compaq Tru64 Unix objects are PIC.
15848             lt_prog_compiler_pic_CXX=
15849             lt_prog_compiler_static_CXX='-non_shared'
15850             ;;
15851           *)
15852             ;;
15853         esac
15854         ;;
15855       psos*)
15856         ;;
15857       solaris*)
15858         case $cc_basename in
15859           CC* | sunCC*)
15860             # Sun C++ 4.2, 5.x and Centerline C++
15861             lt_prog_compiler_pic_CXX='-KPIC'
15862             lt_prog_compiler_static_CXX='-Bstatic'
15863             lt_prog_compiler_wl_CXX='-Qoption ld '
15864             ;;
15865           gcx*)
15866             # Green Hills C++ Compiler
15867             lt_prog_compiler_pic_CXX='-PIC'
15868             ;;
15869           *)
15870             ;;
15871         esac
15872         ;;
15873       sunos4*)
15874         case $cc_basename in
15875           CC*)
15876             # Sun C++ 4.x
15877             lt_prog_compiler_pic_CXX='-pic'
15878             lt_prog_compiler_static_CXX='-Bstatic'
15879             ;;
15880           lcc*)
15881             # Lucid
15882             lt_prog_compiler_pic_CXX='-pic'
15883             ;;
15884           *)
15885             ;;
15886         esac
15887         ;;
15888       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15889         case $cc_basename in
15890           CC*)
15891             lt_prog_compiler_wl_CXX='-Wl,'
15892             lt_prog_compiler_pic_CXX='-KPIC'
15893             lt_prog_compiler_static_CXX='-Bstatic'
15894             ;;
15895         esac
15896         ;;
15897       tandem*)
15898         case $cc_basename in
15899           NCC*)
15900             # NonStop-UX NCC 3.20
15901             lt_prog_compiler_pic_CXX='-KPIC'
15902             ;;
15903           *)
15904             ;;
15905         esac
15906         ;;
15907       vxworks*)
15908         ;;
15909       *)
15910         lt_prog_compiler_can_build_shared_CXX=no
15911         ;;
15912     esac
15913   fi
15914
15915 case $host_os in
15916   # For platforms which do not support PIC, -DPIC is meaningless:
15917   *djgpp*)
15918     lt_prog_compiler_pic_CXX=
15919     ;;
15920   *)
15921     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15922     ;;
15923 esac
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15926 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15927 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15928   $as_echo_n "(cached) " >&6
15929 else
15930   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15931 fi
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15933 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15934 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15935
15936 #
15937 # Check to make sure the PIC flag actually works.
15938 #
15939 if test -n "$lt_prog_compiler_pic_CXX"; then
15940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15942 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15943   $as_echo_n "(cached) " >&6
15944 else
15945   lt_cv_prog_compiler_pic_works_CXX=no
15946    ac_outfile=conftest.$ac_objext
15947    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15948    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15949    # Insert the option either (1) after the last *FLAGS variable, or
15950    # (2) before a word containing "conftest.", or (3) at the end.
15951    # Note that $ac_compile itself does not contain backslashes and begins
15952    # with a dollar sign (not a hyphen), so the echo should work correctly.
15953    # The option is referenced via a variable to avoid confusing sed.
15954    lt_compile=`echo "$ac_compile" | $SED \
15955    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15956    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957    -e 's:$: $lt_compiler_flag:'`
15958    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15959    (eval "$lt_compile" 2>conftest.err)
15960    ac_status=$?
15961    cat conftest.err >&5
15962    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963    if (exit $ac_status) && test -s "$ac_outfile"; then
15964      # The compiler can only warn and ignore the option if not recognized
15965      # So say no if there are warnings other than the usual output.
15966      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15967      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15968      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15969        lt_cv_prog_compiler_pic_works_CXX=yes
15970      fi
15971    fi
15972    $RM conftest*
15973
15974 fi
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15976 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15977
15978 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15979     case $lt_prog_compiler_pic_CXX in
15980      "" | " "*) ;;
15981      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15982      esac
15983 else
15984     lt_prog_compiler_pic_CXX=
15985      lt_prog_compiler_can_build_shared_CXX=no
15986 fi
15987
15988 fi
15989
15990
15991
15992
15993
15994 #
15995 # Check to make sure the static flag actually works.
15996 #
15997 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16000 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16001   $as_echo_n "(cached) " >&6
16002 else
16003   lt_cv_prog_compiler_static_works_CXX=no
16004    save_LDFLAGS="$LDFLAGS"
16005    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16006    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16007    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16008      # The linker can only warn and ignore the option if not recognized
16009      # So say no if there are warnings
16010      if test -s conftest.err; then
16011        # Append any errors to the config.log.
16012        cat conftest.err 1>&5
16013        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16014        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16015        if diff conftest.exp conftest.er2 >/dev/null; then
16016          lt_cv_prog_compiler_static_works_CXX=yes
16017        fi
16018      else
16019        lt_cv_prog_compiler_static_works_CXX=yes
16020      fi
16021    fi
16022    $RM -r conftest*
16023    LDFLAGS="$save_LDFLAGS"
16024
16025 fi
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16027 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16028
16029 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16030     :
16031 else
16032     lt_prog_compiler_static_CXX=
16033 fi
16034
16035
16036
16037
16038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16040 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16041   $as_echo_n "(cached) " >&6
16042 else
16043   lt_cv_prog_compiler_c_o_CXX=no
16044    $RM -r conftest 2>/dev/null
16045    mkdir conftest
16046    cd conftest
16047    mkdir out
16048    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16049
16050    lt_compiler_flag="-o out/conftest2.$ac_objext"
16051    # Insert the option either (1) after the last *FLAGS variable, or
16052    # (2) before a word containing "conftest.", or (3) at the end.
16053    # Note that $ac_compile itself does not contain backslashes and begins
16054    # with a dollar sign (not a hyphen), so the echo should work correctly.
16055    lt_compile=`echo "$ac_compile" | $SED \
16056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16058    -e 's:$: $lt_compiler_flag:'`
16059    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16060    (eval "$lt_compile" 2>out/conftest.err)
16061    ac_status=$?
16062    cat out/conftest.err >&5
16063    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16065    then
16066      # The compiler can only warn and ignore the option if not recognized
16067      # So say no if there are warnings
16068      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16069      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16070      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16071        lt_cv_prog_compiler_c_o_CXX=yes
16072      fi
16073    fi
16074    chmod u+w . 2>&5
16075    $RM conftest*
16076    # SGI C++ compiler will create directory out/ii_files/ for
16077    # template instantiation
16078    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16079    $RM out/* && rmdir out
16080    cd ..
16081    $RM -r conftest
16082    $RM conftest*
16083
16084 fi
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16086 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16087
16088
16089
16090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16091 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16092 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16093   $as_echo_n "(cached) " >&6
16094 else
16095   lt_cv_prog_compiler_c_o_CXX=no
16096    $RM -r conftest 2>/dev/null
16097    mkdir conftest
16098    cd conftest
16099    mkdir out
16100    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16101
16102    lt_compiler_flag="-o out/conftest2.$ac_objext"
16103    # Insert the option either (1) after the last *FLAGS variable, or
16104    # (2) before a word containing "conftest.", or (3) at the end.
16105    # Note that $ac_compile itself does not contain backslashes and begins
16106    # with a dollar sign (not a hyphen), so the echo should work correctly.
16107    lt_compile=`echo "$ac_compile" | $SED \
16108    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16109    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16110    -e 's:$: $lt_compiler_flag:'`
16111    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16112    (eval "$lt_compile" 2>out/conftest.err)
16113    ac_status=$?
16114    cat out/conftest.err >&5
16115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16117    then
16118      # The compiler can only warn and ignore the option if not recognized
16119      # So say no if there are warnings
16120      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16121      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16122      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16123        lt_cv_prog_compiler_c_o_CXX=yes
16124      fi
16125    fi
16126    chmod u+w . 2>&5
16127    $RM conftest*
16128    # SGI C++ compiler will create directory out/ii_files/ for
16129    # template instantiation
16130    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16131    $RM out/* && rmdir out
16132    cd ..
16133    $RM -r conftest
16134    $RM conftest*
16135
16136 fi
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16138 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16139
16140
16141
16142
16143 hard_links="nottested"
16144 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16145   # do not overwrite the value of need_locks provided by the user
16146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16147 $as_echo_n "checking if we can lock with hard links... " >&6; }
16148   hard_links=yes
16149   $RM conftest*
16150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16151   touch conftest.a
16152   ln conftest.a conftest.b 2>&5 || hard_links=no
16153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16155 $as_echo "$hard_links" >&6; }
16156   if test "$hard_links" = no; then
16157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16158 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16159     need_locks=warn
16160   fi
16161 else
16162   need_locks=no
16163 fi
16164
16165
16166
16167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16168 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16169
16170   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16171   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16172   case $host_os in
16173   aix[4-9]*)
16174     # If we're using GNU nm, then we don't want the "-C" option.
16175     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16176     # Also, AIX nm treats weak defined symbols like other global defined
16177     # symbols, whereas GNU nm marks them as "W".
16178     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16179       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'
16180     else
16181       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'
16182     fi
16183     ;;
16184   pw32*)
16185     export_symbols_cmds_CXX="$ltdll_cmds"
16186     ;;
16187   cygwin* | mingw* | cegcc*)
16188     case $cc_basename in
16189     cl*)
16190       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16191       ;;
16192     *)
16193       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'
16194       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16195       ;;
16196     esac
16197     ;;
16198   linux* | k*bsd*-gnu | gnu*)
16199     link_all_deplibs_CXX=no
16200     ;;
16201   *)
16202     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16203     ;;
16204   esac
16205
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16207 $as_echo "$ld_shlibs_CXX" >&6; }
16208 test "$ld_shlibs_CXX" = no && can_build_shared=no
16209
16210 with_gnu_ld_CXX=$with_gnu_ld
16211
16212
16213
16214
16215
16216
16217 #
16218 # Do we need to explicitly link libc?
16219 #
16220 case "x$archive_cmds_need_lc_CXX" in
16221 x|xyes)
16222   # Assume -lc should be added
16223   archive_cmds_need_lc_CXX=yes
16224
16225   if test "$enable_shared" = yes && test "$GCC" = yes; then
16226     case $archive_cmds_CXX in
16227     *'~'*)
16228       # FIXME: we may have to deal with multi-command sequences.
16229       ;;
16230     '$CC '*)
16231       # Test whether the compiler implicitly links with -lc since on some
16232       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16233       # to ld, don't add -lc before -lgcc.
16234       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16235 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16236 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16237   $as_echo_n "(cached) " >&6
16238 else
16239   $RM conftest*
16240         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16241
16242         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16243   (eval $ac_compile) 2>&5
16244   ac_status=$?
16245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16246   test $ac_status = 0; } 2>conftest.err; then
16247           soname=conftest
16248           lib=conftest
16249           libobjs=conftest.$ac_objext
16250           deplibs=
16251           wl=$lt_prog_compiler_wl_CXX
16252           pic_flag=$lt_prog_compiler_pic_CXX
16253           compiler_flags=-v
16254           linker_flags=-v
16255           verstring=
16256           output_objdir=.
16257           libname=conftest
16258           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16259           allow_undefined_flag_CXX=
16260           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16261   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16262   ac_status=$?
16263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16264   test $ac_status = 0; }
16265           then
16266             lt_cv_archive_cmds_need_lc_CXX=no
16267           else
16268             lt_cv_archive_cmds_need_lc_CXX=yes
16269           fi
16270           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16271         else
16272           cat conftest.err 1>&5
16273         fi
16274         $RM conftest*
16275
16276 fi
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16278 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16279       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16280       ;;
16281     esac
16282   fi
16283   ;;
16284 esac
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16348 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16349
16350 library_names_spec=
16351 libname_spec='lib$name'
16352 soname_spec=
16353 shrext_cmds=".so"
16354 postinstall_cmds=
16355 postuninstall_cmds=
16356 finish_cmds=
16357 finish_eval=
16358 shlibpath_var=
16359 shlibpath_overrides_runpath=unknown
16360 version_type=none
16361 dynamic_linker="$host_os ld.so"
16362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16363 need_lib_prefix=unknown
16364 hardcode_into_libs=no
16365
16366 # when you set need_version to no, make sure it does not cause -set_version
16367 # flags to be left without arguments
16368 need_version=unknown
16369
16370 case $host_os in
16371 aix3*)
16372   version_type=linux # correct to gnu/linux during the next big refactor
16373   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16374   shlibpath_var=LIBPATH
16375
16376   # AIX 3 has no versioning support, so we append a major version to the name.
16377   soname_spec='${libname}${release}${shared_ext}$major'
16378   ;;
16379
16380 aix[4-9]*)
16381   version_type=linux # correct to gnu/linux during the next big refactor
16382   need_lib_prefix=no
16383   need_version=no
16384   hardcode_into_libs=yes
16385   if test "$host_cpu" = ia64; then
16386     # AIX 5 supports IA64
16387     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16388     shlibpath_var=LD_LIBRARY_PATH
16389   else
16390     # With GCC up to 2.95.x, collect2 would create an import file
16391     # for dependence libraries.  The import file would start with
16392     # the line `#! .'.  This would cause the generated library to
16393     # depend on `.', always an invalid library.  This was fixed in
16394     # development snapshots of GCC prior to 3.0.
16395     case $host_os in
16396       aix4 | aix4.[01] | aix4.[01].*)
16397       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16398            echo ' yes '
16399            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16400         :
16401       else
16402         can_build_shared=no
16403       fi
16404       ;;
16405     esac
16406     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16407     # soname into executable. Probably we can add versioning support to
16408     # collect2, so additional links can be useful in future.
16409     if test "$aix_use_runtimelinking" = yes; then
16410       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16411       # instead of lib<name>.a to let people know that these are not
16412       # typical AIX shared libraries.
16413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414     else
16415       # We preserve .a as extension for shared libraries through AIX4.2
16416       # and later when we are not doing run time linking.
16417       library_names_spec='${libname}${release}.a $libname.a'
16418       soname_spec='${libname}${release}${shared_ext}$major'
16419     fi
16420     shlibpath_var=LIBPATH
16421   fi
16422   ;;
16423
16424 amigaos*)
16425   case $host_cpu in
16426   powerpc)
16427     # Since July 2007 AmigaOS4 officially supports .so libraries.
16428     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430     ;;
16431   m68k)
16432     library_names_spec='$libname.ixlibrary $libname.a'
16433     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16434     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'
16435     ;;
16436   esac
16437   ;;
16438
16439 beos*)
16440   library_names_spec='${libname}${shared_ext}'
16441   dynamic_linker="$host_os ld.so"
16442   shlibpath_var=LIBRARY_PATH
16443   ;;
16444
16445 bsdi[45]*)
16446   version_type=linux # correct to gnu/linux during the next big refactor
16447   need_version=no
16448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449   soname_spec='${libname}${release}${shared_ext}$major'
16450   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16451   shlibpath_var=LD_LIBRARY_PATH
16452   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16453   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16454   # the default ld.so.conf also contains /usr/contrib/lib and
16455   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16456   # libtool to hard-code these into programs
16457   ;;
16458
16459 cygwin* | mingw* | pw32* | cegcc*)
16460   version_type=windows
16461   shrext_cmds=".dll"
16462   need_version=no
16463   need_lib_prefix=no
16464
16465   case $GCC,$cc_basename in
16466   yes,*)
16467     # gcc
16468     library_names_spec='$libname.dll.a'
16469     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16470     postinstall_cmds='base_file=`basename \${file}`~
16471       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16472       dldir=$destdir/`dirname \$dlpath`~
16473       test -d \$dldir || mkdir -p \$dldir~
16474       $install_prog $dir/$dlname \$dldir/$dlname~
16475       chmod a+x \$dldir/$dlname~
16476       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16477         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16478       fi'
16479     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16480       dlpath=$dir/\$dldll~
16481        $RM \$dlpath'
16482     shlibpath_overrides_runpath=yes
16483
16484     case $host_os in
16485     cygwin*)
16486       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16487       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16488
16489       ;;
16490     mingw* | cegcc*)
16491       # MinGW DLLs use traditional 'lib' prefix
16492       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16493       ;;
16494     pw32*)
16495       # pw32 DLLs use 'pw' prefix rather than 'lib'
16496       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16497       ;;
16498     esac
16499     dynamic_linker='Win32 ld.exe'
16500     ;;
16501
16502   *,cl*)
16503     # Native MSVC
16504     libname_spec='$name'
16505     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16506     library_names_spec='${libname}.dll.lib'
16507
16508     case $build_os in
16509     mingw*)
16510       sys_lib_search_path_spec=
16511       lt_save_ifs=$IFS
16512       IFS=';'
16513       for lt_path in $LIB
16514       do
16515         IFS=$lt_save_ifs
16516         # Let DOS variable expansion print the short 8.3 style file name.
16517         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16518         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16519       done
16520       IFS=$lt_save_ifs
16521       # Convert to MSYS style.
16522       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16523       ;;
16524     cygwin*)
16525       # Convert to unix form, then to dos form, then back to unix form
16526       # but this time dos style (no spaces!) so that the unix form looks
16527       # like /cygdrive/c/PROGRA~1:/cygdr...
16528       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16529       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16530       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16531       ;;
16532     *)
16533       sys_lib_search_path_spec="$LIB"
16534       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16535         # It is most probably a Windows format PATH.
16536         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16537       else
16538         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16539       fi
16540       # FIXME: find the short name or the path components, as spaces are
16541       # common. (e.g. "Program Files" -> "PROGRA~1")
16542       ;;
16543     esac
16544
16545     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16546     postinstall_cmds='base_file=`basename \${file}`~
16547       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16548       dldir=$destdir/`dirname \$dlpath`~
16549       test -d \$dldir || mkdir -p \$dldir~
16550       $install_prog $dir/$dlname \$dldir/$dlname'
16551     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16552       dlpath=$dir/\$dldll~
16553        $RM \$dlpath'
16554     shlibpath_overrides_runpath=yes
16555     dynamic_linker='Win32 link.exe'
16556     ;;
16557
16558   *)
16559     # Assume MSVC wrapper
16560     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16561     dynamic_linker='Win32 ld.exe'
16562     ;;
16563   esac
16564   # FIXME: first we should search . and the directory the executable is in
16565   shlibpath_var=PATH
16566   ;;
16567
16568 darwin* | rhapsody*)
16569   dynamic_linker="$host_os dyld"
16570   version_type=darwin
16571   need_lib_prefix=no
16572   need_version=no
16573   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16574   soname_spec='${libname}${release}${major}$shared_ext'
16575   shlibpath_overrides_runpath=yes
16576   shlibpath_var=DYLD_LIBRARY_PATH
16577   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16578
16579   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16580   ;;
16581
16582 dgux*)
16583   version_type=linux # correct to gnu/linux during the next big refactor
16584   need_lib_prefix=no
16585   need_version=no
16586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16587   soname_spec='${libname}${release}${shared_ext}$major'
16588   shlibpath_var=LD_LIBRARY_PATH
16589   ;;
16590
16591 freebsd* | dragonfly*)
16592   # DragonFly does not have aout.  When/if they implement a new
16593   # versioning mechanism, adjust this.
16594   if test -x /usr/bin/objformat; then
16595     objformat=`/usr/bin/objformat`
16596   else
16597     case $host_os in
16598     freebsd[23].*) objformat=aout ;;
16599     *) objformat=elf ;;
16600     esac
16601   fi
16602   version_type=freebsd-$objformat
16603   case $version_type in
16604     freebsd-elf*)
16605       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16606       need_version=no
16607       need_lib_prefix=no
16608       ;;
16609     freebsd-*)
16610       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16611       need_version=yes
16612       ;;
16613   esac
16614   shlibpath_var=LD_LIBRARY_PATH
16615   case $host_os in
16616   freebsd2.*)
16617     shlibpath_overrides_runpath=yes
16618     ;;
16619   freebsd3.[01]* | freebsdelf3.[01]*)
16620     shlibpath_overrides_runpath=yes
16621     hardcode_into_libs=yes
16622     ;;
16623   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16624   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16625     shlibpath_overrides_runpath=no
16626     hardcode_into_libs=yes
16627     ;;
16628   *) # from 4.6 on, and DragonFly
16629     shlibpath_overrides_runpath=yes
16630     hardcode_into_libs=yes
16631     ;;
16632   esac
16633   ;;
16634
16635 gnu*)
16636   version_type=linux # correct to gnu/linux during the next big refactor
16637   need_lib_prefix=no
16638   need_version=no
16639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16640   soname_spec='${libname}${release}${shared_ext}$major'
16641   shlibpath_var=LD_LIBRARY_PATH
16642   shlibpath_overrides_runpath=no
16643   hardcode_into_libs=yes
16644   ;;
16645
16646 haiku*)
16647   version_type=linux # correct to gnu/linux during the next big refactor
16648   need_lib_prefix=no
16649   need_version=no
16650   dynamic_linker="$host_os runtime_loader"
16651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16652   soname_spec='${libname}${release}${shared_ext}$major'
16653   shlibpath_var=LIBRARY_PATH
16654   shlibpath_overrides_runpath=yes
16655   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16656   hardcode_into_libs=yes
16657   ;;
16658
16659 hpux9* | hpux10* | hpux11*)
16660   # Give a soname corresponding to the major version so that dld.sl refuses to
16661   # link against other versions.
16662   version_type=sunos
16663   need_lib_prefix=no
16664   need_version=no
16665   case $host_cpu in
16666   ia64*)
16667     shrext_cmds='.so'
16668     hardcode_into_libs=yes
16669     dynamic_linker="$host_os dld.so"
16670     shlibpath_var=LD_LIBRARY_PATH
16671     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673     soname_spec='${libname}${release}${shared_ext}$major'
16674     if test "X$HPUX_IA64_MODE" = X32; then
16675       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16676     else
16677       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16678     fi
16679     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16680     ;;
16681   hppa*64*)
16682     shrext_cmds='.sl'
16683     hardcode_into_libs=yes
16684     dynamic_linker="$host_os dld.sl"
16685     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16686     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688     soname_spec='${libname}${release}${shared_ext}$major'
16689     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16690     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16691     ;;
16692   *)
16693     shrext_cmds='.sl'
16694     dynamic_linker="$host_os dld.sl"
16695     shlibpath_var=SHLIB_PATH
16696     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
16700   esac
16701   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16702   postinstall_cmds='chmod 555 $lib'
16703   # or fails outright, so override atomically:
16704   install_override_mode=555
16705   ;;
16706
16707 interix[3-9]*)
16708   version_type=linux # correct to gnu/linux during the next big refactor
16709   need_lib_prefix=no
16710   need_version=no
16711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16712   soname_spec='${libname}${release}${shared_ext}$major'
16713   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16714   shlibpath_var=LD_LIBRARY_PATH
16715   shlibpath_overrides_runpath=no
16716   hardcode_into_libs=yes
16717   ;;
16718
16719 irix5* | irix6* | nonstopux*)
16720   case $host_os in
16721     nonstopux*) version_type=nonstopux ;;
16722     *)
16723         if test "$lt_cv_prog_gnu_ld" = yes; then
16724                 version_type=linux # correct to gnu/linux during the next big refactor
16725         else
16726                 version_type=irix
16727         fi ;;
16728   esac
16729   need_lib_prefix=no
16730   need_version=no
16731   soname_spec='${libname}${release}${shared_ext}$major'
16732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16733   case $host_os in
16734   irix5* | nonstopux*)
16735     libsuff= shlibsuff=
16736     ;;
16737   *)
16738     case $LD in # libtool.m4 will add one of these switches to LD
16739     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16740       libsuff= shlibsuff= libmagic=32-bit;;
16741     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16742       libsuff=32 shlibsuff=N32 libmagic=N32;;
16743     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16744       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16745     *) libsuff= shlibsuff= libmagic=never-match;;
16746     esac
16747     ;;
16748   esac
16749   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16750   shlibpath_overrides_runpath=no
16751   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16752   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16753   hardcode_into_libs=yes
16754   ;;
16755
16756 # No shared lib support for Linux oldld, aout, or coff.
16757 linux*oldld* | linux*aout* | linux*coff*)
16758   dynamic_linker=no
16759   ;;
16760
16761 # This must be glibc/ELF.
16762 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16763   version_type=linux # correct to gnu/linux during the next big refactor
16764   need_lib_prefix=no
16765   need_version=no
16766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767   soname_spec='${libname}${release}${shared_ext}$major'
16768   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16769   shlibpath_var=LD_LIBRARY_PATH
16770   shlibpath_overrides_runpath=no
16771
16772   # Some binutils ld are patched to set DT_RUNPATH
16773   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16774   $as_echo_n "(cached) " >&6
16775 else
16776   lt_cv_shlibpath_overrides_runpath=no
16777     save_LDFLAGS=$LDFLAGS
16778     save_libdir=$libdir
16779     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16780          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h.  */
16783
16784 int
16785 main ()
16786 {
16787
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 if ac_fn_cxx_try_link "$LINENO"; then :
16793   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16794   lt_cv_shlibpath_overrides_runpath=yes
16795 fi
16796 fi
16797 rm -f core conftest.err conftest.$ac_objext \
16798     conftest$ac_exeext conftest.$ac_ext
16799     LDFLAGS=$save_LDFLAGS
16800     libdir=$save_libdir
16801
16802 fi
16803
16804   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16805
16806   # This implies no fast_install, which is unacceptable.
16807   # Some rework will be needed to allow for fast_install
16808   # before this can be enabled.
16809   hardcode_into_libs=yes
16810
16811   # Append ld.so.conf contents to the search path
16812   if test -f /etc/ld.so.conf; then
16813     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' ' '`
16814     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16815   fi
16816
16817   # We used to test for /lib/ld.so.1 and disable shared libraries on
16818   # powerpc, because MkLinux only supported shared libraries with the
16819   # GNU dynamic linker.  Since this was broken with cross compilers,
16820   # most powerpc-linux boxes support dynamic linking these days and
16821   # people can always --disable-shared, the test was removed, and we
16822   # assume the GNU/Linux dynamic linker is in use.
16823   dynamic_linker='GNU/Linux ld.so'
16824   ;;
16825
16826 netbsdelf*-gnu)
16827   version_type=linux
16828   need_lib_prefix=no
16829   need_version=no
16830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16831   soname_spec='${libname}${release}${shared_ext}$major'
16832   shlibpath_var=LD_LIBRARY_PATH
16833   shlibpath_overrides_runpath=no
16834   hardcode_into_libs=yes
16835   dynamic_linker='NetBSD ld.elf_so'
16836   ;;
16837
16838 netbsd*)
16839   version_type=sunos
16840   need_lib_prefix=no
16841   need_version=no
16842   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16844     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16845     dynamic_linker='NetBSD (a.out) ld.so'
16846   else
16847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16848     soname_spec='${libname}${release}${shared_ext}$major'
16849     dynamic_linker='NetBSD ld.elf_so'
16850   fi
16851   shlibpath_var=LD_LIBRARY_PATH
16852   shlibpath_overrides_runpath=yes
16853   hardcode_into_libs=yes
16854   ;;
16855
16856 newsos6)
16857   version_type=linux # correct to gnu/linux during the next big refactor
16858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859   shlibpath_var=LD_LIBRARY_PATH
16860   shlibpath_overrides_runpath=yes
16861   ;;
16862
16863 *nto* | *qnx*)
16864   version_type=qnx
16865   need_lib_prefix=no
16866   need_version=no
16867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868   soname_spec='${libname}${release}${shared_ext}$major'
16869   shlibpath_var=LD_LIBRARY_PATH
16870   shlibpath_overrides_runpath=no
16871   hardcode_into_libs=yes
16872   dynamic_linker='ldqnx.so'
16873   ;;
16874
16875 openbsd*)
16876   version_type=sunos
16877   sys_lib_dlsearch_path_spec="/usr/lib"
16878   need_lib_prefix=no
16879   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16880   case $host_os in
16881     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16882     *)                          need_version=no  ;;
16883   esac
16884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16886   shlibpath_var=LD_LIBRARY_PATH
16887   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16888     case $host_os in
16889       openbsd2.[89] | openbsd2.[89].*)
16890         shlibpath_overrides_runpath=no
16891         ;;
16892       *)
16893         shlibpath_overrides_runpath=yes
16894         ;;
16895       esac
16896   else
16897     shlibpath_overrides_runpath=yes
16898   fi
16899   ;;
16900
16901 os2*)
16902   libname_spec='$name'
16903   shrext_cmds=".dll"
16904   need_lib_prefix=no
16905   library_names_spec='$libname${shared_ext} $libname.a'
16906   dynamic_linker='OS/2 ld.exe'
16907   shlibpath_var=LIBPATH
16908   ;;
16909
16910 osf3* | osf4* | osf5*)
16911   version_type=osf
16912   need_lib_prefix=no
16913   need_version=no
16914   soname_spec='${libname}${release}${shared_ext}$major'
16915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916   shlibpath_var=LD_LIBRARY_PATH
16917   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16918   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16919   ;;
16920
16921 rdos*)
16922   dynamic_linker=no
16923   ;;
16924
16925 solaris*)
16926   version_type=linux # correct to gnu/linux during the next big refactor
16927   need_lib_prefix=no
16928   need_version=no
16929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930   soname_spec='${libname}${release}${shared_ext}$major'
16931   shlibpath_var=LD_LIBRARY_PATH
16932   shlibpath_overrides_runpath=yes
16933   hardcode_into_libs=yes
16934   # ldd complains unless libraries are executable
16935   postinstall_cmds='chmod +x $lib'
16936   ;;
16937
16938 sunos4*)
16939   version_type=sunos
16940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16941   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16942   shlibpath_var=LD_LIBRARY_PATH
16943   shlibpath_overrides_runpath=yes
16944   if test "$with_gnu_ld" = yes; then
16945     need_lib_prefix=no
16946   fi
16947   need_version=yes
16948   ;;
16949
16950 sysv4 | sysv4.3*)
16951   version_type=linux # correct to gnu/linux during the next big refactor
16952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953   soname_spec='${libname}${release}${shared_ext}$major'
16954   shlibpath_var=LD_LIBRARY_PATH
16955   case $host_vendor in
16956     sni)
16957       shlibpath_overrides_runpath=no
16958       need_lib_prefix=no
16959       runpath_var=LD_RUN_PATH
16960       ;;
16961     siemens)
16962       need_lib_prefix=no
16963       ;;
16964     motorola)
16965       need_lib_prefix=no
16966       need_version=no
16967       shlibpath_overrides_runpath=no
16968       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16969       ;;
16970   esac
16971   ;;
16972
16973 sysv4*MP*)
16974   if test -d /usr/nec ;then
16975     version_type=linux # correct to gnu/linux during the next big refactor
16976     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16977     soname_spec='$libname${shared_ext}.$major'
16978     shlibpath_var=LD_LIBRARY_PATH
16979   fi
16980   ;;
16981
16982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16983   version_type=freebsd-elf
16984   need_lib_prefix=no
16985   need_version=no
16986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16987   soname_spec='${libname}${release}${shared_ext}$major'
16988   shlibpath_var=LD_LIBRARY_PATH
16989   shlibpath_overrides_runpath=yes
16990   hardcode_into_libs=yes
16991   if test "$with_gnu_ld" = yes; then
16992     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16993   else
16994     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16995     case $host_os in
16996       sco3.2v5*)
16997         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16998         ;;
16999     esac
17000   fi
17001   sys_lib_dlsearch_path_spec='/usr/lib'
17002   ;;
17003
17004 tpf*)
17005   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17006   version_type=linux # correct to gnu/linux during the next big refactor
17007   need_lib_prefix=no
17008   need_version=no
17009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010   shlibpath_var=LD_LIBRARY_PATH
17011   shlibpath_overrides_runpath=no
17012   hardcode_into_libs=yes
17013   ;;
17014
17015 uts4*)
17016   version_type=linux # correct to gnu/linux during the next big refactor
17017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17018   soname_spec='${libname}${release}${shared_ext}$major'
17019   shlibpath_var=LD_LIBRARY_PATH
17020   ;;
17021
17022 *)
17023   dynamic_linker=no
17024   ;;
17025 esac
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17027 $as_echo "$dynamic_linker" >&6; }
17028 test "$dynamic_linker" = no && can_build_shared=no
17029
17030 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17031 if test "$GCC" = yes; then
17032   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17033 fi
17034
17035 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17036   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17037 fi
17038 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17039   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17040 fi
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17081 hardcode_action_CXX=
17082 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17083    test -n "$runpath_var_CXX" ||
17084    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17085
17086   # We can hardcode non-existent directories.
17087   if test "$hardcode_direct_CXX" != no &&
17088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17089      # have to relink, otherwise we might link with an installed library
17090      # when we should be linking with a yet-to-be-installed one
17091      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17092      test "$hardcode_minus_L_CXX" != no; then
17093     # Linking always hardcodes the temporary library directory.
17094     hardcode_action_CXX=relink
17095   else
17096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17097     hardcode_action_CXX=immediate
17098   fi
17099 else
17100   # We cannot hardcode anything, or else we can only hardcode existing
17101   # directories.
17102   hardcode_action_CXX=unsupported
17103 fi
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17105 $as_echo "$hardcode_action_CXX" >&6; }
17106
17107 if test "$hardcode_action_CXX" = relink ||
17108    test "$inherit_rpath_CXX" = yes; then
17109   # Fast installation is not supported
17110   enable_fast_install=no
17111 elif test "$shlibpath_overrides_runpath" = yes ||
17112      test "$enable_shared" = no; then
17113   # Fast installation is not necessary
17114   enable_fast_install=needless
17115 fi
17116
17117
17118
17119
17120
17121
17122
17123   fi # test -n "$compiler"
17124
17125   CC=$lt_save_CC
17126   CFLAGS=$lt_save_CFLAGS
17127   LDCXX=$LD
17128   LD=$lt_save_LD
17129   GCC=$lt_save_GCC
17130   with_gnu_ld=$lt_save_with_gnu_ld
17131   lt_cv_path_LDCXX=$lt_cv_path_LD
17132   lt_cv_path_LD=$lt_save_path_LD
17133   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17134   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17135 fi # test "$_lt_caught_CXX_error" != yes
17136
17137 ac_ext=c
17138 ac_cpp='$CPP $CPPFLAGS'
17139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157         ac_config_commands="$ac_config_commands libtool"
17158
17159
17160
17161
17162 # Only expand once:
17163
17164
17165 if test -n "$ac_tool_prefix"; then
17166   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17167 set dummy ${ac_tool_prefix}windres; ac_word=$2
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17169 $as_echo_n "checking for $ac_word... " >&6; }
17170 if ${ac_cv_prog_RC+:} false; then :
17171   $as_echo_n "(cached) " >&6
17172 else
17173   if test -n "$RC"; then
17174   ac_cv_prog_RC="$RC" # Let the user override the test.
17175 else
17176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17177 for as_dir in $PATH
17178 do
17179   IFS=$as_save_IFS
17180   test -z "$as_dir" && as_dir=.
17181     for ac_exec_ext in '' $ac_executable_extensions; do
17182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17183     ac_cv_prog_RC="${ac_tool_prefix}windres"
17184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17185     break 2
17186   fi
17187 done
17188   done
17189 IFS=$as_save_IFS
17190
17191 fi
17192 fi
17193 RC=$ac_cv_prog_RC
17194 if test -n "$RC"; then
17195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17196 $as_echo "$RC" >&6; }
17197 else
17198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17199 $as_echo "no" >&6; }
17200 fi
17201
17202
17203 fi
17204 if test -z "$ac_cv_prog_RC"; then
17205   ac_ct_RC=$RC
17206   # Extract the first word of "windres", so it can be a program name with args.
17207 set dummy windres; ac_word=$2
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17209 $as_echo_n "checking for $ac_word... " >&6; }
17210 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17211   $as_echo_n "(cached) " >&6
17212 else
17213   if test -n "$ac_ct_RC"; then
17214   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17215 else
17216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17217 for as_dir in $PATH
17218 do
17219   IFS=$as_save_IFS
17220   test -z "$as_dir" && as_dir=.
17221     for ac_exec_ext in '' $ac_executable_extensions; do
17222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17223     ac_cv_prog_ac_ct_RC="windres"
17224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17225     break 2
17226   fi
17227 done
17228   done
17229 IFS=$as_save_IFS
17230
17231 fi
17232 fi
17233 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17234 if test -n "$ac_ct_RC"; then
17235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17236 $as_echo "$ac_ct_RC" >&6; }
17237 else
17238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239 $as_echo "no" >&6; }
17240 fi
17241
17242   if test "x$ac_ct_RC" = x; then
17243     RC=""
17244   else
17245     case $cross_compiling:$ac_tool_warned in
17246 yes:)
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17249 ac_tool_warned=yes ;;
17250 esac
17251     RC=$ac_ct_RC
17252   fi
17253 else
17254   RC="$ac_cv_prog_RC"
17255 fi
17256
17257
17258
17259
17260 # Source file extension for RC test sources.
17261 ac_ext=rc
17262
17263 # Object file extension for compiled RC test sources.
17264 objext=o
17265 objext_RC=$objext
17266
17267 # Code to be used in simple compile tests
17268 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17269
17270 # Code to be used in simple link tests
17271 lt_simple_link_test_code="$lt_simple_compile_test_code"
17272
17273 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17274
17275
17276
17277
17278
17279
17280 # If no C compiler was specified, use CC.
17281 LTCC=${LTCC-"$CC"}
17282
17283 # If no C compiler flags were specified, use CFLAGS.
17284 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17285
17286 # Allow CC to be a program name with arguments.
17287 compiler=$CC
17288
17289
17290 # save warnings/boilerplate of simple test code
17291 ac_outfile=conftest.$ac_objext
17292 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17293 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17294 _lt_compiler_boilerplate=`cat conftest.err`
17295 $RM conftest*
17296
17297 ac_outfile=conftest.$ac_objext
17298 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17299 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17300 _lt_linker_boilerplate=`cat conftest.err`
17301 $RM -r conftest*
17302
17303
17304 # Allow CC to be a program name with arguments.
17305 lt_save_CC="$CC"
17306 lt_save_CFLAGS=$CFLAGS
17307 lt_save_GCC=$GCC
17308 GCC=
17309 CC=${RC-"windres"}
17310 CFLAGS=
17311 compiler=$CC
17312 compiler_RC=$CC
17313 for cc_temp in $compiler""; do
17314   case $cc_temp in
17315     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17316     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17317     \-*) ;;
17318     *) break;;
17319   esac
17320 done
17321 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17322
17323 lt_cv_prog_compiler_c_o_RC=yes
17324
17325 if test -n "$compiler"; then
17326   :
17327
17328
17329
17330 fi
17331
17332 GCC=$lt_save_GCC
17333 ac_ext=c
17334 ac_cpp='$CPP $CPPFLAGS'
17335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17338
17339 CC=$lt_save_CC
17340 CFLAGS=$lt_save_CFLAGS
17341
17342
17343 # For now we hardcode the use of version scripts.  It would be better
17344 # to write a test for this or even implement this within libtool.
17345 have_ld_version_script=no
17346 case "${host}" in
17347     *-*-linux*)
17348         have_ld_version_script=yes
17349         ;;
17350     *-*-gnu*)
17351         have_ld_version_script=yes
17352         ;;
17353     *-apple-darwin*)
17354
17355 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
17356
17357
17358 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17359
17360         ;;
17361 esac
17362
17363  if test "$have_ld_version_script" = "yes"; then
17364   HAVE_LD_VERSION_SCRIPT_TRUE=
17365   HAVE_LD_VERSION_SCRIPT_FALSE='#'
17366 else
17367   HAVE_LD_VERSION_SCRIPT_TRUE='#'
17368   HAVE_LD_VERSION_SCRIPT_FALSE=
17369 fi
17370
17371
17372 GPG_DEFAULT=no
17373 GPGSM_DEFAULT=no
17374 GPGCONF_DEFAULT=no
17375 G13_DEFAULT=no
17376 component_system=None
17377 have_dosish_system=no
17378 have_android_system=no
17379 have_w32_system=no
17380 have_w64_system=no
17381 have_macos_system=no
17382 build_w32_glib=no
17383 build_w32_qt=no
17384 available_languages="cl cpp python qt"
17385 default_languages="cl cpp python qt"
17386 case "${host}" in
17387     x86_64-*mingw32*)
17388         have_w64_system=yes
17389         ;;
17390     *-linux-androideabi)
17391         have_android_system=yes
17392         ;;
17393     *-apple-darwin*)
17394         have_macos_system=yes
17395         ;;
17396 esac
17397 case "${host}" in
17398     *-mingw32*)
17399         have_dosish_system=yes
17400         have_w32_system=yes
17401         GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17402         GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17403         GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17404         G13_DEFAULT='c:\\gnupg\\g13.exe'
17405         #component_system='COM+'
17406
17407         # Check whether --enable-glibtest was given.
17408 if test "${enable_glibtest+set}" = set; then :
17409   enableval=$enable_glibtest;
17410 else
17411   enable_glibtest=yes
17412 fi
17413
17414
17415   pkg_config_args=glib-2.0
17416   for module in .
17417   do
17418       case "$module" in
17419          gmodule)
17420              pkg_config_args="$pkg_config_args gmodule-2.0"
17421          ;;
17422          gmodule-no-export)
17423              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17424          ;;
17425          gobject)
17426              pkg_config_args="$pkg_config_args gobject-2.0"
17427          ;;
17428          gthread)
17429              pkg_config_args="$pkg_config_args gthread-2.0"
17430          ;;
17431       esac
17432   done
17433
17434   # Extract the first word of "pkg-config", so it can be a program name with args.
17435 set dummy pkg-config; ac_word=$2
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17437 $as_echo_n "checking for $ac_word... " >&6; }
17438 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17439   $as_echo_n "(cached) " >&6
17440 else
17441   case $PKG_CONFIG in
17442   [\\/]* | ?:[\\/]*)
17443   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17444   ;;
17445   *)
17446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17447 for as_dir in $PATH
17448 do
17449   IFS=$as_save_IFS
17450   test -z "$as_dir" && as_dir=.
17451     for ac_exec_ext in '' $ac_executable_extensions; do
17452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17453     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17455     break 2
17456   fi
17457 done
17458   done
17459 IFS=$as_save_IFS
17460
17461   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17462   ;;
17463 esac
17464 fi
17465 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17466 if test -n "$PKG_CONFIG"; then
17467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17468 $as_echo "$PKG_CONFIG" >&6; }
17469 else
17470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17471 $as_echo "no" >&6; }
17472 fi
17473
17474
17475
17476   no_glib=""
17477
17478   if test x$PKG_CONFIG != xno ; then
17479     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17480       :
17481     else
17482       echo *** pkg-config too old; version 0.7 or better required.
17483       no_glib=yes
17484       PKG_CONFIG=no
17485     fi
17486   else
17487     no_glib=yes
17488   fi
17489
17490   min_glib_version=2.0.0
17491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17492 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17493
17494   if test x$PKG_CONFIG != xno ; then
17495     ## don't try to run the test against uninstalled libtool libs
17496     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17497           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17498           enable_glibtest=no
17499     fi
17500
17501     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17502           :
17503     else
17504           no_glib=yes
17505     fi
17506   fi
17507
17508   if test x"$no_glib" = x ; then
17509     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17510     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17511     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17512
17513     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17514     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17515     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17516            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17517     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17518            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17519     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17520            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17521     if test "x$enable_glibtest" = "xyes" ; then
17522       ac_save_CFLAGS="$CFLAGS"
17523       ac_save_LIBS="$LIBS"
17524       CFLAGS="$CFLAGS $GLIB_CFLAGS"
17525       LIBS="$GLIB_LIBS $LIBS"
17526       rm -f conf.glibtest
17527       if test "$cross_compiling" = yes; then :
17528   echo $ac_n "cross compiling; assumed OK... $ac_c"
17529 else
17530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h.  */
17532
17533 #include <glib.h>
17534 #include <stdio.h>
17535 #include <stdlib.h>
17536
17537 int
17538 main ()
17539 {
17540   int major, minor, micro;
17541   char *tmp_version;
17542
17543   system ("touch conf.glibtest");
17544
17545   /* HP/UX 9 (%@#!) writes to sscanf strings */
17546   tmp_version = g_strdup("$min_glib_version");
17547   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17548      printf("%s, bad version string\n", "$min_glib_version");
17549      exit(1);
17550    }
17551
17552   if ((glib_major_version != $glib_config_major_version) ||
17553       (glib_minor_version != $glib_config_minor_version) ||
17554       (glib_micro_version != $glib_config_micro_version))
17555     {
17556       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17557              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17558              glib_major_version, glib_minor_version, glib_micro_version);
17559       printf ("*** was found! If pkg-config was correct, then it is best\n");
17560       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17561       printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
17562       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17563       printf("*** required on your system.\n");
17564       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17565       printf("*** to point to the correct configuration files\n");
17566     }
17567   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17568            (glib_minor_version != GLIB_MINOR_VERSION) ||
17569            (glib_micro_version != GLIB_MICRO_VERSION))
17570     {
17571       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17572              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17573       printf("*** library (version %d.%d.%d)\n",
17574              glib_major_version, glib_minor_version, glib_micro_version);
17575     }
17576   else
17577     {
17578       if ((glib_major_version > major) ||
17579         ((glib_major_version == major) && (glib_minor_version > minor)) ||
17580         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17581       {
17582         return 0;
17583        }
17584      else
17585       {
17586         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17587                glib_major_version, glib_minor_version, glib_micro_version);
17588         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17589                major, minor, micro);
17590         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17591         printf("***\n");
17592         printf("*** If you have already installed a sufficiently new version, this error\n");
17593         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17594         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17595         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17596         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17597         printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
17598         printf("*** so that the correct libraries are found at run-time))\n");
17599       }
17600     }
17601   return 1;
17602 }
17603
17604 _ACEOF
17605 if ac_fn_c_try_run "$LINENO"; then :
17606
17607 else
17608   no_glib=yes
17609 fi
17610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17611   conftest.$ac_objext conftest.beam conftest.$ac_ext
17612 fi
17613
17614        CFLAGS="$ac_save_CFLAGS"
17615        LIBS="$ac_save_LIBS"
17616      fi
17617   fi
17618   if test "x$no_glib" = x ; then
17619      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17620 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17621      :
17622   else
17623      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17624 $as_echo "no" >&6; }
17625      if test "$PKG_CONFIG" = "no" ; then
17626        echo "*** A new enough version of pkg-config was not found."
17627        echo "*** See https://www.freedesktop.org/software/pkgconfig/"
17628      else
17629        if test -f conf.glibtest ; then
17630         :
17631        else
17632           echo "*** Could not run GLIB test program, checking why..."
17633           ac_save_CFLAGS="$CFLAGS"
17634           ac_save_LIBS="$LIBS"
17635           CFLAGS="$CFLAGS $GLIB_CFLAGS"
17636           LIBS="$LIBS $GLIB_LIBS"
17637           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h.  */
17639
17640 #include <glib.h>
17641 #include <stdio.h>
17642
17643 int
17644 main ()
17645 {
17646  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17647   ;
17648   return 0;
17649 }
17650 _ACEOF
17651 if ac_fn_c_try_link "$LINENO"; then :
17652    echo "*** The test program compiled, but did not run. This usually means"
17653           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17654           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17655           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17656           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17657           echo "*** is required on your system"
17658           echo "***"
17659           echo "*** If you have an old version installed, it is best to remove it, although"
17660           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17661 else
17662    echo "*** The test program failed to compile or link. See the file config.log for the"
17663           echo "*** exact error that occurred. This usually means GLIB is incorrectly installed."
17664 fi
17665 rm -f core conftest.err conftest.$ac_objext \
17666     conftest$ac_exeext conftest.$ac_ext
17667           CFLAGS="$ac_save_CFLAGS"
17668           LIBS="$ac_save_LIBS"
17669        fi
17670      fi
17671      GLIB_CFLAGS=""
17672      GLIB_LIBS=""
17673      GLIB_GENMARSHAL=""
17674      GOBJECT_QUERY=""
17675      GLIB_MKENUMS=""
17676      :
17677   fi
17678
17679
17680
17681
17682
17683   rm -f conf.glibtest
17684
17685         # Check whether --enable-w32-glib was given.
17686 if test "${enable_w32_glib+set}" = set; then :
17687   enableval=$enable_w32_glib; build_w32_glib=$enableval
17688 fi
17689
17690        ;;
17691     *)
17692
17693         # XXX: Probably use exec-prefix here?
17694 #       GPG_DEFAULT='/usr/bin/gpg'
17695 #       GPGSM_DEFAULT='/usr/bin/gpgsm'
17696 #       GPGCONF_DEFAULT='/usr/bin/gpgconf'
17697 #       G13_DEFAULT='/usr/bin/g13'
17698         ;;
17699 esac
17700
17701 if test "$have_dosish_system" = yes; then
17702
17703 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17704
17705 fi
17706  if test "$have_dosish_system" = yes; then
17707   HAVE_DOSISH_SYSTEM_TRUE=
17708   HAVE_DOSISH_SYSTEM_FALSE='#'
17709 else
17710   HAVE_DOSISH_SYSTEM_TRUE='#'
17711   HAVE_DOSISH_SYSTEM_FALSE=
17712 fi
17713
17714
17715 if test "$have_w32_system" = yes; then
17716
17717 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17718
17719 fi
17720  if test "$have_w32_system" = yes; then
17721   HAVE_W32_SYSTEM_TRUE=
17722   HAVE_W32_SYSTEM_FALSE='#'
17723 else
17724   HAVE_W32_SYSTEM_TRUE='#'
17725   HAVE_W32_SYSTEM_FALSE=
17726 fi
17727
17728
17729 if test "$have_w64_system" = yes; then
17730
17731 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17732
17733 fi
17734  if test "$have_w64_system" = yes; then
17735   HAVE_W64_SYSTEM_TRUE=
17736   HAVE_W64_SYSTEM_FALSE='#'
17737 else
17738   HAVE_W64_SYSTEM_TRUE='#'
17739   HAVE_W64_SYSTEM_FALSE=
17740 fi
17741
17742
17743 if test "$have_android_system" = yes; then
17744
17745 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17746
17747 fi
17748  if test "$have_android_system" = yes; then
17749   HAVE_ANDROID_SYSTEM_TRUE=
17750   HAVE_ANDROID_SYSTEM_FALSE='#'
17751 else
17752   HAVE_ANDROID_SYSTEM_TRUE='#'
17753   HAVE_ANDROID_SYSTEM_FALSE=
17754 fi
17755
17756
17757 if test "$have_macos_system" = yes; then
17758
17759 $as_echo "#define HAVE_MACOS_SYSTEM 1" >>confdefs.h
17760
17761 fi
17762  if test "$have_macos_system" = yes; then
17763   HAVE_MACOS_SYSTEM_TRUE=
17764   HAVE_MACOS_SYSTEM_FALSE='#'
17765 else
17766   HAVE_MACOS_SYSTEM_TRUE='#'
17767   HAVE_MACOS_SYSTEM_FALSE=
17768 fi
17769
17770
17771  if test "$build_w32_glib" = yes; then
17772   BUILD_W32_GLIB_TRUE=
17773   BUILD_W32_GLIB_FALSE='#'
17774 else
17775   BUILD_W32_GLIB_TRUE='#'
17776   BUILD_W32_GLIB_FALSE=
17777 fi
17778
17779
17780
17781 # Check whether --enable-fixed-path was given.
17782 if test "${enable_fixed_path+set}" = set; then :
17783   enableval=$enable_fixed_path; fixed_search_path="$enableval"
17784 else
17785   fixed_search_path=""
17786 fi
17787
17788 if test x$fixed_search_path != x ; then
17789
17790 cat >>confdefs.h <<_ACEOF
17791 #define FIXED_SEARCH_PATH "$fixed_search_path"
17792 _ACEOF
17793
17794 fi
17795
17796
17797 # Note: You need to declare all possible languages also in
17798 #       lang/Makefile.am's DIST_SUBDIRS.
17799 # Check whether --enable-languages was given.
17800 if test "${enable_languages+set}" = set; then :
17801   enableval=$enable_languages; enabled_languages=`echo $enableval | \
17802                              tr ',:' '  ' | tr 'A-Z' 'a-z' | \
17803                              sed 's/c++/cpp/'`
17804 else
17805   enabled_languages="maybe"
17806 fi
17807
17808 if test "x$enabled_languages" = "x" \
17809    -o "$enabled_languages" = "no"; then
17810    enabled_languages=
17811 fi
17812
17813 # If languages are explicitly set missing requirements
17814 # for the languages are treated as errors otherwise
17815 # there will be a warning.
17816 explicit_languages=1
17817 if test "x$enabled_languages" = "xmaybe"; then
17818     explicit_languages=0
17819     enabled_languages="$default_languages"
17820 fi
17821
17822 for language in $enabled_languages; do
17823
17824 name=$language
17825 list=$available_languages
17826 found=0
17827
17828 for n in $list; do
17829   if test "x$name" = "x$n"; then
17830     found=1
17831   fi
17832 done
17833
17834     if test "$found" = "0"; then
17835        as_fn_error $? "unsupported language binding specified" "$LINENO" 5
17836     fi
17837 done
17838
17839
17840
17841 # Enable C++ 11 if cpp language is requested
17842
17843 name="cpp"
17844 list=$enabled_languages
17845 found=0
17846
17847 for n in $list; do
17848   if test "x$name" = "x$n"; then
17849     found=1
17850   fi
17851 done
17852
17853 if test "$found" = "1"; then
17854           ax_cxx_compile_cxx11_required=false
17855   ac_ext=cpp
17856 ac_cpp='$CXXCPP $CPPFLAGS'
17857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17860   ac_success=no
17861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17862 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17863 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17864   $as_echo_n "(cached) " >&6
17865 else
17866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h.  */
17868
17869
17870 // If the compiler admits that it is not ready for C++11, why torture it?
17871 // Hopefully, this will speed up the test.
17872
17873 #ifndef __cplusplus
17874
17875 #error "This is not a C++ compiler"
17876
17877 #elif __cplusplus < 201103L
17878
17879 #error "This is not a C++11 compiler"
17880
17881 #else
17882
17883 namespace cxx11
17884 {
17885
17886   namespace test_static_assert
17887   {
17888
17889     template <typename T>
17890     struct check
17891     {
17892       static_assert(sizeof(int) <= sizeof(T), "not big enough");
17893     };
17894
17895   }
17896
17897   namespace test_final_override
17898   {
17899
17900     struct Base
17901     {
17902       virtual void f() {}
17903     };
17904
17905     struct Derived : public Base
17906     {
17907       virtual void f() override {}
17908     };
17909
17910   }
17911
17912   namespace test_double_right_angle_brackets
17913   {
17914
17915     template < typename T >
17916     struct check {};
17917
17918     typedef check<void> single_type;
17919     typedef check<check<void>> double_type;
17920     typedef check<check<check<void>>> triple_type;
17921     typedef check<check<check<check<void>>>> quadruple_type;
17922
17923   }
17924
17925   namespace test_decltype
17926   {
17927
17928     int
17929     f()
17930     {
17931       int a = 1;
17932       decltype(a) b = 2;
17933       return a + b;
17934     }
17935
17936   }
17937
17938   namespace test_type_deduction
17939   {
17940
17941     template < typename T1, typename T2 >
17942     struct is_same
17943     {
17944       static const bool value = false;
17945     };
17946
17947     template < typename T >
17948     struct is_same<T, T>
17949     {
17950       static const bool value = true;
17951     };
17952
17953     template < typename T1, typename T2 >
17954     auto
17955     add(T1 a1, T2 a2) -> decltype(a1 + a2)
17956     {
17957       return a1 + a2;
17958     }
17959
17960     int
17961     test(const int c, volatile int v)
17962     {
17963       static_assert(is_same<int, decltype(0)>::value == true, "");
17964       static_assert(is_same<int, decltype(c)>::value == false, "");
17965       static_assert(is_same<int, decltype(v)>::value == false, "");
17966       auto ac = c;
17967       auto av = v;
17968       auto sumi = ac + av + 'x';
17969       auto sumf = ac + av + 1.0;
17970       static_assert(is_same<int, decltype(ac)>::value == true, "");
17971       static_assert(is_same<int, decltype(av)>::value == true, "");
17972       static_assert(is_same<int, decltype(sumi)>::value == true, "");
17973       static_assert(is_same<int, decltype(sumf)>::value == false, "");
17974       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17975       return (sumf > 0.0) ? sumi : add(c, v);
17976     }
17977
17978   }
17979
17980   namespace test_noexcept
17981   {
17982
17983     int f() { return 0; }
17984     int g() noexcept { return 0; }
17985
17986     static_assert(noexcept(f()) == false, "");
17987     static_assert(noexcept(g()) == true, "");
17988
17989   }
17990
17991   namespace test_constexpr
17992   {
17993
17994     template < typename CharT >
17995     unsigned long constexpr
17996     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17997     {
17998       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17999     }
18000
18001     template < typename CharT >
18002     unsigned long constexpr
18003     strlen_c(const CharT *const s) noexcept
18004     {
18005       return strlen_c_r(s, 0UL);
18006     }
18007
18008     static_assert(strlen_c("") == 0UL, "");
18009     static_assert(strlen_c("1") == 1UL, "");
18010     static_assert(strlen_c("example") == 7UL, "");
18011     static_assert(strlen_c("another\0example") == 7UL, "");
18012
18013   }
18014
18015   namespace test_rvalue_references
18016   {
18017
18018     template < int N >
18019     struct answer
18020     {
18021       static constexpr int value = N;
18022     };
18023
18024     answer<1> f(int&)       { return answer<1>(); }
18025     answer<2> f(const int&) { return answer<2>(); }
18026     answer<3> f(int&&)      { return answer<3>(); }
18027
18028     void
18029     test()
18030     {
18031       int i = 0;
18032       const int c = 0;
18033       static_assert(decltype(f(i))::value == 1, "");
18034       static_assert(decltype(f(c))::value == 2, "");
18035       static_assert(decltype(f(0))::value == 3, "");
18036     }
18037
18038   }
18039
18040   namespace test_uniform_initialization
18041   {
18042
18043     struct test
18044     {
18045       static const int zero {};
18046       static const int one {1};
18047     };
18048
18049     static_assert(test::zero == 0, "");
18050     static_assert(test::one == 1, "");
18051
18052   }
18053
18054   namespace test_lambdas
18055   {
18056
18057     void
18058     test1()
18059     {
18060       auto lambda1 = [](){};
18061       auto lambda2 = lambda1;
18062       lambda1();
18063       lambda2();
18064     }
18065
18066     int
18067     test2()
18068     {
18069       auto a = [](int i, int j){ return i + j; }(1, 2);
18070       auto b = []() -> int { return '0'; }();
18071       auto c = [=](){ return a + b; }();
18072       auto d = [&](){ return c; }();
18073       auto e = [a, &b](int x) mutable {
18074         const auto identity = [](int y){ return y; };
18075         for (auto i = 0; i < a; ++i)
18076           a += b--;
18077         return x + identity(a + b);
18078       }(0);
18079       return a + b + c + d + e;
18080     }
18081
18082     int
18083     test3()
18084     {
18085       const auto nullary = [](){ return 0; };
18086       const auto unary = [](int x){ return x; };
18087       using nullary_t = decltype(nullary);
18088       using unary_t = decltype(unary);
18089       const auto higher1st = [](nullary_t f){ return f(); };
18090       const auto higher2nd = [unary](nullary_t f1){
18091         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18092       };
18093       return higher1st(nullary) + higher2nd(nullary)(unary);
18094     }
18095
18096   }
18097
18098   namespace test_variadic_templates
18099   {
18100
18101     template <int...>
18102     struct sum;
18103
18104     template <int N0, int... N1toN>
18105     struct sum<N0, N1toN...>
18106     {
18107       static constexpr auto value = N0 + sum<N1toN...>::value;
18108     };
18109
18110     template <>
18111     struct sum<>
18112     {
18113       static constexpr auto value = 0;
18114     };
18115
18116     static_assert(sum<>::value == 0, "");
18117     static_assert(sum<1>::value == 1, "");
18118     static_assert(sum<23>::value == 23, "");
18119     static_assert(sum<1, 2>::value == 3, "");
18120     static_assert(sum<5, 5, 11>::value == 21, "");
18121     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18122
18123   }
18124
18125   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18126   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18127   // because of this.
18128   namespace test_template_alias_sfinae
18129   {
18130
18131     struct foo {};
18132
18133     template<typename T>
18134     using member = typename T::member_type;
18135
18136     template<typename T>
18137     void func(...) {}
18138
18139     template<typename T>
18140     void func(member<T>*) {}
18141
18142     void test();
18143
18144     void test() { func<foo>(0); }
18145
18146   }
18147
18148 }  // namespace cxx11
18149
18150 #endif  // __cplusplus >= 201103L
18151
18152
18153
18154 _ACEOF
18155 if ac_fn_cxx_try_compile "$LINENO"; then :
18156   ax_cv_cxx_compile_cxx11=yes
18157 else
18158   ax_cv_cxx_compile_cxx11=no
18159 fi
18160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18161 fi
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18163 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18164   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18165     ac_success=yes
18166   fi
18167
18168
18169
18170     if test x$ac_success = xno; then
18171                 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
18172       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18173       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18174 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18175 if eval \${$cachevar+:} false; then :
18176   $as_echo_n "(cached) " >&6
18177 else
18178   ac_save_CXX="$CXX"
18179          CXX="$CXX $switch"
18180          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h.  */
18182
18183
18184 // If the compiler admits that it is not ready for C++11, why torture it?
18185 // Hopefully, this will speed up the test.
18186
18187 #ifndef __cplusplus
18188
18189 #error "This is not a C++ compiler"
18190
18191 #elif __cplusplus < 201103L
18192
18193 #error "This is not a C++11 compiler"
18194
18195 #else
18196
18197 namespace cxx11
18198 {
18199
18200   namespace test_static_assert
18201   {
18202
18203     template <typename T>
18204     struct check
18205     {
18206       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18207     };
18208
18209   }
18210
18211   namespace test_final_override
18212   {
18213
18214     struct Base
18215     {
18216       virtual void f() {}
18217     };
18218
18219     struct Derived : public Base
18220     {
18221       virtual void f() override {}
18222     };
18223
18224   }
18225
18226   namespace test_double_right_angle_brackets
18227   {
18228
18229     template < typename T >
18230     struct check {};
18231
18232     typedef check<void> single_type;
18233     typedef check<check<void>> double_type;
18234     typedef check<check<check<void>>> triple_type;
18235     typedef check<check<check<check<void>>>> quadruple_type;
18236
18237   }
18238
18239   namespace test_decltype
18240   {
18241
18242     int
18243     f()
18244     {
18245       int a = 1;
18246       decltype(a) b = 2;
18247       return a + b;
18248     }
18249
18250   }
18251
18252   namespace test_type_deduction
18253   {
18254
18255     template < typename T1, typename T2 >
18256     struct is_same
18257     {
18258       static const bool value = false;
18259     };
18260
18261     template < typename T >
18262     struct is_same<T, T>
18263     {
18264       static const bool value = true;
18265     };
18266
18267     template < typename T1, typename T2 >
18268     auto
18269     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18270     {
18271       return a1 + a2;
18272     }
18273
18274     int
18275     test(const int c, volatile int v)
18276     {
18277       static_assert(is_same<int, decltype(0)>::value == true, "");
18278       static_assert(is_same<int, decltype(c)>::value == false, "");
18279       static_assert(is_same<int, decltype(v)>::value == false, "");
18280       auto ac = c;
18281       auto av = v;
18282       auto sumi = ac + av + 'x';
18283       auto sumf = ac + av + 1.0;
18284       static_assert(is_same<int, decltype(ac)>::value == true, "");
18285       static_assert(is_same<int, decltype(av)>::value == true, "");
18286       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18287       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18288       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18289       return (sumf > 0.0) ? sumi : add(c, v);
18290     }
18291
18292   }
18293
18294   namespace test_noexcept
18295   {
18296
18297     int f() { return 0; }
18298     int g() noexcept { return 0; }
18299
18300     static_assert(noexcept(f()) == false, "");
18301     static_assert(noexcept(g()) == true, "");
18302
18303   }
18304
18305   namespace test_constexpr
18306   {
18307
18308     template < typename CharT >
18309     unsigned long constexpr
18310     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18311     {
18312       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18313     }
18314
18315     template < typename CharT >
18316     unsigned long constexpr
18317     strlen_c(const CharT *const s) noexcept
18318     {
18319       return strlen_c_r(s, 0UL);
18320     }
18321
18322     static_assert(strlen_c("") == 0UL, "");
18323     static_assert(strlen_c("1") == 1UL, "");
18324     static_assert(strlen_c("example") == 7UL, "");
18325     static_assert(strlen_c("another\0example") == 7UL, "");
18326
18327   }
18328
18329   namespace test_rvalue_references
18330   {
18331
18332     template < int N >
18333     struct answer
18334     {
18335       static constexpr int value = N;
18336     };
18337
18338     answer<1> f(int&)       { return answer<1>(); }
18339     answer<2> f(const int&) { return answer<2>(); }
18340     answer<3> f(int&&)      { return answer<3>(); }
18341
18342     void
18343     test()
18344     {
18345       int i = 0;
18346       const int c = 0;
18347       static_assert(decltype(f(i))::value == 1, "");
18348       static_assert(decltype(f(c))::value == 2, "");
18349       static_assert(decltype(f(0))::value == 3, "");
18350     }
18351
18352   }
18353
18354   namespace test_uniform_initialization
18355   {
18356
18357     struct test
18358     {
18359       static const int zero {};
18360       static const int one {1};
18361     };
18362
18363     static_assert(test::zero == 0, "");
18364     static_assert(test::one == 1, "");
18365
18366   }
18367
18368   namespace test_lambdas
18369   {
18370
18371     void
18372     test1()
18373     {
18374       auto lambda1 = [](){};
18375       auto lambda2 = lambda1;
18376       lambda1();
18377       lambda2();
18378     }
18379
18380     int
18381     test2()
18382     {
18383       auto a = [](int i, int j){ return i + j; }(1, 2);
18384       auto b = []() -> int { return '0'; }();
18385       auto c = [=](){ return a + b; }();
18386       auto d = [&](){ return c; }();
18387       auto e = [a, &b](int x) mutable {
18388         const auto identity = [](int y){ return y; };
18389         for (auto i = 0; i < a; ++i)
18390           a += b--;
18391         return x + identity(a + b);
18392       }(0);
18393       return a + b + c + d + e;
18394     }
18395
18396     int
18397     test3()
18398     {
18399       const auto nullary = [](){ return 0; };
18400       const auto unary = [](int x){ return x; };
18401       using nullary_t = decltype(nullary);
18402       using unary_t = decltype(unary);
18403       const auto higher1st = [](nullary_t f){ return f(); };
18404       const auto higher2nd = [unary](nullary_t f1){
18405         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18406       };
18407       return higher1st(nullary) + higher2nd(nullary)(unary);
18408     }
18409
18410   }
18411
18412   namespace test_variadic_templates
18413   {
18414
18415     template <int...>
18416     struct sum;
18417
18418     template <int N0, int... N1toN>
18419     struct sum<N0, N1toN...>
18420     {
18421       static constexpr auto value = N0 + sum<N1toN...>::value;
18422     };
18423
18424     template <>
18425     struct sum<>
18426     {
18427       static constexpr auto value = 0;
18428     };
18429
18430     static_assert(sum<>::value == 0, "");
18431     static_assert(sum<1>::value == 1, "");
18432     static_assert(sum<23>::value == 23, "");
18433     static_assert(sum<1, 2>::value == 3, "");
18434     static_assert(sum<5, 5, 11>::value == 21, "");
18435     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18436
18437   }
18438
18439   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18440   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18441   // because of this.
18442   namespace test_template_alias_sfinae
18443   {
18444
18445     struct foo {};
18446
18447     template<typename T>
18448     using member = typename T::member_type;
18449
18450     template<typename T>
18451     void func(...) {}
18452
18453     template<typename T>
18454     void func(member<T>*) {}
18455
18456     void test();
18457
18458     void test() { func<foo>(0); }
18459
18460   }
18461
18462 }  // namespace cxx11
18463
18464 #endif  // __cplusplus >= 201103L
18465
18466
18467
18468 _ACEOF
18469 if ac_fn_cxx_try_compile "$LINENO"; then :
18470   eval $cachevar=yes
18471 else
18472   eval $cachevar=no
18473 fi
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18475          CXX="$ac_save_CXX"
18476 fi
18477 eval ac_res=\$$cachevar
18478                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18479 $as_echo "$ac_res" >&6; }
18480       if eval test x\$$cachevar = xyes; then
18481         CXX="$CXX $switch"
18482         CXXCPP="$CXXCPP $switch"
18483         ac_success=yes
18484         break
18485       fi
18486     done
18487   fi
18488   ac_ext=c
18489 ac_cpp='$CPP $CPPFLAGS'
18490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18493
18494   if test x$ax_cxx_compile_cxx11_required = xtrue; then
18495     if test x$ac_success = xno; then
18496       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18497     fi
18498   fi
18499   if test x$ac_success = xno; then
18500     HAVE_CXX11=0
18501     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18502 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18503   else
18504     HAVE_CXX11=1
18505
18506 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18507
18508   fi
18509
18510
18511     if test "$HAVE_CXX11" != "1"; then
18512         if test "$explicit_languages" = "1"; then
18513             as_fn_error $? "
18514 ***
18515 *** A compiler with c++11 support is required for the c++ binding.
18516 ***" "$LINENO" 5
18517         else
18518             enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
18519             enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18520             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18521 ***
18522 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18523 ***" >&5
18524 $as_echo "$as_me: WARNING:
18525 ***
18526 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18527 ***" >&2;}
18528         fi
18529     fi
18530 fi
18531
18532 # Check that if qt is enabled cpp also is enabled
18533
18534 name="qt"
18535 list=$enabled_languages
18536 found=0
18537
18538 for n in $list; do
18539   if test "x$name" = "x$n"; then
18540     found=1
18541   fi
18542 done
18543
18544 if test "$found" = "1"; then
18545     # We need to ensure that in the language order qt comes after cpp
18546     # so we remove qt first and explicitly add it as last list member.
18547     enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18548
18549 name="cpp"
18550 list=$enabled_languages
18551 found=0
18552
18553 for n in $list; do
18554   if test "x$name" = "x$n"; then
18555     found=1
18556   fi
18557 done
18558
18559     if test "$found" = "0"; then
18560         as_fn_error $? "
18561 ***
18562 *** Qt language binding depends on cpp binding.
18563 ***" "$LINENO" 5
18564     fi
18565
18566
18567 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18568         if test -n "$ac_tool_prefix"; then
18569   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18570 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18572 $as_echo_n "checking for $ac_word... " >&6; }
18573 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18574   $as_echo_n "(cached) " >&6
18575 else
18576   case $PKG_CONFIG in
18577   [\\/]* | ?:[\\/]*)
18578   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18579   ;;
18580   *)
18581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18582 for as_dir in $PATH
18583 do
18584   IFS=$as_save_IFS
18585   test -z "$as_dir" && as_dir=.
18586     for ac_exec_ext in '' $ac_executable_extensions; do
18587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18588     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18590     break 2
18591   fi
18592 done
18593   done
18594 IFS=$as_save_IFS
18595
18596   ;;
18597 esac
18598 fi
18599 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18600 if test -n "$PKG_CONFIG"; then
18601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18602 $as_echo "$PKG_CONFIG" >&6; }
18603 else
18604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18605 $as_echo "no" >&6; }
18606 fi
18607
18608
18609 fi
18610 if test -z "$ac_cv_path_PKG_CONFIG"; then
18611   ac_pt_PKG_CONFIG=$PKG_CONFIG
18612   # Extract the first word of "pkg-config", so it can be a program name with args.
18613 set dummy pkg-config; ac_word=$2
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615 $as_echo_n "checking for $ac_word... " >&6; }
18616 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18617   $as_echo_n "(cached) " >&6
18618 else
18619   case $ac_pt_PKG_CONFIG in
18620   [\\/]* | ?:[\\/]*)
18621   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18622   ;;
18623   *)
18624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625 for as_dir in $PATH
18626 do
18627   IFS=$as_save_IFS
18628   test -z "$as_dir" && as_dir=.
18629     for ac_exec_ext in '' $ac_executable_extensions; do
18630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18631     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18633     break 2
18634   fi
18635 done
18636   done
18637 IFS=$as_save_IFS
18638
18639   ;;
18640 esac
18641 fi
18642 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18643 if test -n "$ac_pt_PKG_CONFIG"; then
18644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18645 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18646 else
18647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648 $as_echo "no" >&6; }
18649 fi
18650
18651   if test "x$ac_pt_PKG_CONFIG" = x; then
18652     PKG_CONFIG=""
18653   else
18654     case $cross_compiling:$ac_tool_warned in
18655 yes:)
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18658 ac_tool_warned=yes ;;
18659 esac
18660     PKG_CONFIG=$ac_pt_PKG_CONFIG
18661   fi
18662 else
18663   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18664 fi
18665
18666 fi
18667 if test -n "$PKG_CONFIG"; then
18668         _pkg_min_version=0.9.0
18669         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18670 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18671         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18672                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18673 $as_echo "yes" >&6; }
18674         else
18675                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676 $as_echo "no" >&6; }
18677                 PKG_CONFIG=""
18678         fi
18679
18680 fi
18681
18682   have_qt5_libs="no";
18683
18684
18685 pkg_failed=no
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QT" >&5
18687 $as_echo_n "checking for GPGME_QT... " >&6; }
18688
18689 if test -n "$PKG_CONFIG"; then
18690     if test -n "$GPGME_QT_CFLAGS"; then
18691         pkg_cv_GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS"
18692     else
18693         if test -n "$PKG_CONFIG" && \
18694     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18695   ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18696   ac_status=$?
18697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18698   test $ac_status = 0; }; then
18699   pkg_cv_GPGME_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0" 2>/dev/null`
18700 else
18701   pkg_failed=yes
18702 fi
18703     fi
18704 else
18705         pkg_failed=untried
18706 fi
18707 if test -n "$PKG_CONFIG"; then
18708     if test -n "$GPGME_QT_LIBS"; then
18709         pkg_cv_GPGME_QT_LIBS="$GPGME_QT_LIBS"
18710     else
18711         if test -n "$PKG_CONFIG" && \
18712     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18713   ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18714   ac_status=$?
18715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18716   test $ac_status = 0; }; then
18717   pkg_cv_GPGME_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0" 2>/dev/null`
18718 else
18719   pkg_failed=yes
18720 fi
18721     fi
18722 else
18723         pkg_failed=untried
18724 fi
18725
18726
18727
18728 if test $pkg_failed = yes; then
18729
18730 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18731         _pkg_short_errors_supported=yes
18732 else
18733         _pkg_short_errors_supported=no
18734 fi
18735         if test $_pkg_short_errors_supported = yes; then
18736                 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18737         else
18738                 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18739         fi
18740         # Put the nasty error message in config.log where it belongs
18741         echo "$GPGME_QT_PKG_ERRORS" >&5
18742
18743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18744 $as_echo "no" >&6; }
18745                 have_qt5_libs="no"
18746 elif test $pkg_failed = untried; then
18747         have_qt5_libs="no"
18748 else
18749         GPGME_QT_CFLAGS=$pkg_cv_GPGME_QT_CFLAGS
18750         GPGME_QT_LIBS=$pkg_cv_GPGME_QT_LIBS
18751         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18752 $as_echo "yes" >&6; }
18753         have_qt5_libs="yes"
18754 fi
18755
18756
18757 pkg_failed=no
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QTTEST" >&5
18759 $as_echo_n "checking for GPGME_QTTEST... " >&6; }
18760
18761 if test -n "$PKG_CONFIG"; then
18762     if test -n "$GPGME_QTTEST_CFLAGS"; then
18763         pkg_cv_GPGME_QTTEST_CFLAGS="$GPGME_QTTEST_CFLAGS"
18764     else
18765         if test -n "$PKG_CONFIG" && \
18766     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18767   ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18768   ac_status=$?
18769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18770   test $ac_status = 0; }; then
18771   pkg_cv_GPGME_QTTEST_CFLAGS=`$PKG_CONFIG --cflags "Qt5Test >= 5.0.0" 2>/dev/null`
18772 else
18773   pkg_failed=yes
18774 fi
18775     fi
18776 else
18777         pkg_failed=untried
18778 fi
18779 if test -n "$PKG_CONFIG"; then
18780     if test -n "$GPGME_QTTEST_LIBS"; then
18781         pkg_cv_GPGME_QTTEST_LIBS="$GPGME_QTTEST_LIBS"
18782     else
18783         if test -n "$PKG_CONFIG" && \
18784     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18785   ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18786   ac_status=$?
18787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18788   test $ac_status = 0; }; then
18789   pkg_cv_GPGME_QTTEST_LIBS=`$PKG_CONFIG --libs "Qt5Test >= 5.0.0" 2>/dev/null`
18790 else
18791   pkg_failed=yes
18792 fi
18793     fi
18794 else
18795         pkg_failed=untried
18796 fi
18797
18798
18799
18800 if test $pkg_failed = yes; then
18801
18802 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18803         _pkg_short_errors_supported=yes
18804 else
18805         _pkg_short_errors_supported=no
18806 fi
18807         if test $_pkg_short_errors_supported = yes; then
18808                 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18809         else
18810                 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18811         fi
18812         # Put the nasty error message in config.log where it belongs
18813         echo "$GPGME_QTTEST_PKG_ERRORS" >&5
18814
18815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816 $as_echo "no" >&6; }
18817                 have_qt5test_libs="no"
18818 elif test $pkg_failed = untried; then
18819         have_qt5test_libs="no"
18820 else
18821         GPGME_QTTEST_CFLAGS=$pkg_cv_GPGME_QTTEST_CFLAGS
18822         GPGME_QTTEST_LIBS=$pkg_cv_GPGME_QTTEST_LIBS
18823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18824 $as_echo "yes" >&6; }
18825         have_qt5test_libs="yes"
18826 fi
18827
18828   if ! test "$have_w32_system" = yes; then
18829     if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
18830       GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
18831     fi
18832   fi
18833   if test "$have_qt5_libs" = "yes"; then
18834     if test -n "$ac_tool_prefix"; then
18835   # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18836 set dummy ${ac_tool_prefix}moc; ac_word=$2
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18838 $as_echo_n "checking for $ac_word... " >&6; }
18839 if ${ac_cv_prog_MOC+:} false; then :
18840   $as_echo_n "(cached) " >&6
18841 else
18842   if test -n "$MOC"; then
18843   ac_cv_prog_MOC="$MOC" # Let the user override the test.
18844 else
18845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18846 for as_dir in $PATH
18847 do
18848   IFS=$as_save_IFS
18849   test -z "$as_dir" && as_dir=.
18850     for ac_exec_ext in '' $ac_executable_extensions; do
18851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18852     ac_cv_prog_MOC="${ac_tool_prefix}moc"
18853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18854     break 2
18855   fi
18856 done
18857   done
18858 IFS=$as_save_IFS
18859
18860 fi
18861 fi
18862 MOC=$ac_cv_prog_MOC
18863 if test -n "$MOC"; then
18864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18865 $as_echo "$MOC" >&6; }
18866 else
18867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868 $as_echo "no" >&6; }
18869 fi
18870
18871
18872 fi
18873 if test -z "$ac_cv_prog_MOC"; then
18874   ac_ct_MOC=$MOC
18875   # Extract the first word of "moc", so it can be a program name with args.
18876 set dummy moc; ac_word=$2
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18878 $as_echo_n "checking for $ac_word... " >&6; }
18879 if ${ac_cv_prog_ac_ct_MOC+:} false; then :
18880   $as_echo_n "(cached) " >&6
18881 else
18882   if test -n "$ac_ct_MOC"; then
18883   ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
18884 else
18885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886 for as_dir in $PATH
18887 do
18888   IFS=$as_save_IFS
18889   test -z "$as_dir" && as_dir=.
18890     for ac_exec_ext in '' $ac_executable_extensions; do
18891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18892     ac_cv_prog_ac_ct_MOC="moc"
18893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18894     break 2
18895   fi
18896 done
18897   done
18898 IFS=$as_save_IFS
18899
18900 fi
18901 fi
18902 ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
18903 if test -n "$ac_ct_MOC"; then
18904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
18905 $as_echo "$ac_ct_MOC" >&6; }
18906 else
18907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18908 $as_echo "no" >&6; }
18909 fi
18910
18911   if test "x$ac_ct_MOC" = x; then
18912     MOC=""
18913   else
18914     case $cross_compiling:$ac_tool_warned in
18915 yes:)
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18918 ac_tool_warned=yes ;;
18919 esac
18920     MOC=$ac_ct_MOC
18921   fi
18922 else
18923   MOC="$ac_cv_prog_MOC"
18924 fi
18925
18926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
18927 $as_echo_n "checking moc version... " >&6; }
18928     mocversion=`$MOC -v 2>&1`
18929     mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
18930     if test x"$mocversiongrep" != x"$mocversion"; then
18931       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932 $as_echo "no" >&6; }
18933       # moc was not the qt5 one, try with moc-qt5
18934       if test -n "$ac_tool_prefix"; then
18935   # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
18936 set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18938 $as_echo_n "checking for $ac_word... " >&6; }
18939 if ${ac_cv_prog_MOC2+:} false; then :
18940   $as_echo_n "(cached) " >&6
18941 else
18942   if test -n "$MOC2"; then
18943   ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
18944 else
18945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18946 for as_dir in $PATH
18947 do
18948   IFS=$as_save_IFS
18949   test -z "$as_dir" && as_dir=.
18950     for ac_exec_ext in '' $ac_executable_extensions; do
18951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18952     ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt5"
18953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18954     break 2
18955   fi
18956 done
18957   done
18958 IFS=$as_save_IFS
18959
18960 fi
18961 fi
18962 MOC2=$ac_cv_prog_MOC2
18963 if test -n "$MOC2"; then
18964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
18965 $as_echo "$MOC2" >&6; }
18966 else
18967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18968 $as_echo "no" >&6; }
18969 fi
18970
18971
18972 fi
18973 if test -z "$ac_cv_prog_MOC2"; then
18974   ac_ct_MOC2=$MOC2
18975   # Extract the first word of "moc-qt5", so it can be a program name with args.
18976 set dummy moc-qt5; ac_word=$2
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18978 $as_echo_n "checking for $ac_word... " >&6; }
18979 if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
18980   $as_echo_n "(cached) " >&6
18981 else
18982   if test -n "$ac_ct_MOC2"; then
18983   ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
18984 else
18985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18986 for as_dir in $PATH
18987 do
18988   IFS=$as_save_IFS
18989   test -z "$as_dir" && as_dir=.
18990     for ac_exec_ext in '' $ac_executable_extensions; do
18991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18992     ac_cv_prog_ac_ct_MOC2="moc-qt5"
18993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18994     break 2
18995   fi
18996 done
18997   done
18998 IFS=$as_save_IFS
18999
19000 fi
19001 fi
19002 ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
19003 if test -n "$ac_ct_MOC2"; then
19004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
19005 $as_echo "$ac_ct_MOC2" >&6; }
19006 else
19007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19008 $as_echo "no" >&6; }
19009 fi
19010
19011   if test "x$ac_ct_MOC2" = x; then
19012     MOC2=""
19013   else
19014     case $cross_compiling:$ac_tool_warned in
19015 yes:)
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19018 ac_tool_warned=yes ;;
19019 esac
19020     MOC2=$ac_ct_MOC2
19021   fi
19022 else
19023   MOC2="$ac_cv_prog_MOC2"
19024 fi
19025
19026       mocversion=`$MOC2 -v 2>&1`
19027       mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc-qt5 5|moc 5"`
19028       if test x"$mocversiongrep" != x"$mocversion"; then
19029         if test -n "$ac_tool_prefix"; then
19030   # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
19031 set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19033 $as_echo_n "checking for $ac_word... " >&6; }
19034 if ${ac_cv_prog_QTCHOOSER+:} false; then :
19035   $as_echo_n "(cached) " >&6
19036 else
19037   if test -n "$QTCHOOSER"; then
19038   ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
19039 else
19040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19041 for as_dir in $PATH
19042 do
19043   IFS=$as_save_IFS
19044   test -z "$as_dir" && as_dir=.
19045     for ac_exec_ext in '' $ac_executable_extensions; do
19046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19047     ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
19048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19049     break 2
19050   fi
19051 done
19052   done
19053 IFS=$as_save_IFS
19054
19055 fi
19056 fi
19057 QTCHOOSER=$ac_cv_prog_QTCHOOSER
19058 if test -n "$QTCHOOSER"; then
19059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
19060 $as_echo "$QTCHOOSER" >&6; }
19061 else
19062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19063 $as_echo "no" >&6; }
19064 fi
19065
19066
19067 fi
19068 if test -z "$ac_cv_prog_QTCHOOSER"; then
19069   ac_ct_QTCHOOSER=$QTCHOOSER
19070   # Extract the first word of "qtchooser", so it can be a program name with args.
19071 set dummy qtchooser; ac_word=$2
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19073 $as_echo_n "checking for $ac_word... " >&6; }
19074 if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
19075   $as_echo_n "(cached) " >&6
19076 else
19077   if test -n "$ac_ct_QTCHOOSER"; then
19078   ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
19079 else
19080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19081 for as_dir in $PATH
19082 do
19083   IFS=$as_save_IFS
19084   test -z "$as_dir" && as_dir=.
19085     for ac_exec_ext in '' $ac_executable_extensions; do
19086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19087     ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
19088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19089     break 2
19090   fi
19091 done
19092   done
19093 IFS=$as_save_IFS
19094
19095 fi
19096 fi
19097 ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
19098 if test -n "$ac_ct_QTCHOOSER"; then
19099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
19100 $as_echo "$ac_ct_QTCHOOSER" >&6; }
19101 else
19102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103 $as_echo "no" >&6; }
19104 fi
19105
19106   if test "x$ac_ct_QTCHOOSER" = x; then
19107     QTCHOOSER=""
19108   else
19109     case $cross_compiling:$ac_tool_warned in
19110 yes:)
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19113 ac_tool_warned=yes ;;
19114 esac
19115     QTCHOOSER=$ac_ct_QTCHOOSER
19116   fi
19117 else
19118   QTCHOOSER="$ac_cv_prog_QTCHOOSER"
19119 fi
19120
19121         qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
19122         mocversion=`$qt5tooldir/moc -v 2>&1`
19123         mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
19124         if test x"$mocversiongrep" != x"$mocversion"; then
19125           # no valid moc found
19126           have_qt5_libs="no";
19127         else
19128           MOC=$qt5tooldir/moc
19129         fi
19130       else
19131         MOC=$MOC2
19132       fi
19133     fi
19134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mocversion" >&5
19135 $as_echo "$mocversion" >&6; }
19136                         OLDCPPFLAGS=$CPPFLAGS
19137     CPPFLAGS=$GPGME_QT_CFLAGS
19138     OLDLIBS=$LIBS
19139     LIBS=$GPGME_QT_LIBS
19140     ac_ext=cpp
19141 ac_cpp='$CXXCPP $CPPFLAGS'
19142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19145
19146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple qt program can be built" >&5
19147 $as_echo_n "checking whether a simple qt program can be built... " >&6; }
19148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h.  */
19150
19151     #include <QCoreApplication>
19152     int main (int argc, char **argv) {
19153     QCoreApplication app(argc, argv);
19154     app.exec();
19155     }
19156 _ACEOF
19157 if ac_fn_cxx_try_link "$LINENO"; then :
19158   have_qt5_libs='yes'
19159 else
19160   have_qt5_libs='no'
19161 fi
19162 rm -f core conftest.err conftest.$ac_objext \
19163     conftest$ac_exeext conftest.$ac_ext
19164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt5_libs" >&5
19165 $as_echo "$have_qt5_libs" >&6; }
19166     ac_ext=c
19167 ac_cpp='$CPP $CPPFLAGS'
19168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19171
19172     CPPFLAGS=$OLDCPPFLAGS
19173     LIBS=$OLDLIBS
19174   fi
19175
19176     if test "$have_qt5_libs" != "yes"; then
19177         if test "$explicit_languages" = "1"; then
19178         as_fn_error $? "
19179 ***
19180 *** Qt5 (Qt5Core) is required for Qt binding.
19181 ***" "$LINENO" 5
19182         else
19183            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19184 ***
19185 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19186 ***" >&5
19187 $as_echo "$as_me: WARNING:
19188 ***
19189 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19190 ***" >&2;}
19191         fi
19192     else
19193         enabled_languages=`echo $enabled_languages qt`
19194
19195         for ac_prog in doxygen
19196 do
19197   # Extract the first word of "$ac_prog", so it can be a program name with args.
19198 set dummy $ac_prog; ac_word=$2
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19200 $as_echo_n "checking for $ac_word... " >&6; }
19201 if ${ac_cv_prog_DOXYGEN+:} false; then :
19202   $as_echo_n "(cached) " >&6
19203 else
19204   if test -n "$DOXYGEN"; then
19205   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19206 else
19207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19208 for as_dir in $PATH
19209 do
19210   IFS=$as_save_IFS
19211   test -z "$as_dir" && as_dir=.
19212     for ac_exec_ext in '' $ac_executable_extensions; do
19213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19214     ac_cv_prog_DOXYGEN="$ac_prog"
19215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19216     break 2
19217   fi
19218 done
19219   done
19220 IFS=$as_save_IFS
19221
19222 fi
19223 fi
19224 DOXYGEN=$ac_cv_prog_DOXYGEN
19225 if test -n "$DOXYGEN"; then
19226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19227 $as_echo "$DOXYGEN" >&6; }
19228 else
19229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19231 fi
19232
19233
19234   test -n "$DOXYGEN" && break
19235 done
19236
19237         if test -z "$DOXYGEN";
19238             # This is not highlighted because it's not really important.
19239             then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - Qt binding doc will not be built." >&5
19240 $as_echo "$as_me: WARNING: Doxygen not found - Qt binding doc will not be built." >&2;}
19241         fi
19242         for ac_prog in dot
19243 do
19244   # Extract the first word of "$ac_prog", so it can be a program name with args.
19245 set dummy $ac_prog; ac_word=$2
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19247 $as_echo_n "checking for $ac_word... " >&6; }
19248 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
19249   $as_echo_n "(cached) " >&6
19250 else
19251   if test -n "$GRAPHVIZ"; then
19252   ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
19253 else
19254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19255 for as_dir in $PATH
19256 do
19257   IFS=$as_save_IFS
19258   test -z "$as_dir" && as_dir=.
19259     for ac_exec_ext in '' $ac_executable_extensions; do
19260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19261     ac_cv_prog_GRAPHVIZ="$ac_prog"
19262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19263     break 2
19264   fi
19265 done
19266   done
19267 IFS=$as_save_IFS
19268
19269 fi
19270 fi
19271 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
19272 if test -n "$GRAPHVIZ"; then
19273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
19274 $as_echo "$GRAPHVIZ" >&6; }
19275 else
19276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19277 $as_echo "no" >&6; }
19278 fi
19279
19280
19281   test -n "$GRAPHVIZ" && break
19282 done
19283
19284         if test -z "$GRAPHVIZ";
19285             then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&5
19286 $as_echo "$as_me: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&2;}
19287         fi
19288     fi
19289 fi
19290  if test -n "$DOXYGEN"; then
19291   HAVE_DOXYGEN_TRUE=
19292   HAVE_DOXYGEN_FALSE='#'
19293 else
19294   HAVE_DOXYGEN_TRUE='#'
19295   HAVE_DOXYGEN_FALSE=
19296 fi
19297
19298 if test -n "$GRAPHVIZ"; then
19299     HAVE_DOT="YES"
19300 else
19301     HAVE_DOT="NO"
19302 fi
19303
19304
19305 # Python bindings.
19306
19307 name="python"
19308 list=$enabled_languages
19309 found=0
19310
19311 for n in $list; do
19312   if test "x$name" = "x$n"; then
19313     found=1
19314   fi
19315 done
19316
19317 found_py=$found
19318 if test "$found_py" = "1"; then
19319
19320         # Ubuntu has swig 2.0 as /usr/bin/swig2.0
19321         for ac_prog in swig swig2.0
19322 do
19323   # Extract the first word of "$ac_prog", so it can be a program name with args.
19324 set dummy $ac_prog; ac_word=$2
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19326 $as_echo_n "checking for $ac_word... " >&6; }
19327 if ${ac_cv_path_SWIG+:} false; then :
19328   $as_echo_n "(cached) " >&6
19329 else
19330   case $SWIG in
19331   [\\/]* | ?:[\\/]*)
19332   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19333   ;;
19334   *)
19335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19336 for as_dir in $PATH
19337 do
19338   IFS=$as_save_IFS
19339   test -z "$as_dir" && as_dir=.
19340     for ac_exec_ext in '' $ac_executable_extensions; do
19341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19342     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19344     break 2
19345   fi
19346 done
19347   done
19348 IFS=$as_save_IFS
19349
19350   ;;
19351 esac
19352 fi
19353 SWIG=$ac_cv_path_SWIG
19354 if test -n "$SWIG"; then
19355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19356 $as_echo "$SWIG" >&6; }
19357 else
19358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19359 $as_echo "no" >&6; }
19360 fi
19361
19362
19363   test -n "$SWIG" && break
19364 done
19365
19366         if test -z "$SWIG" ; then
19367                 :
19368         elif test -n "" ; then
19369                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19370 $as_echo_n "checking SWIG version... " >&6; }
19371                 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'`
19372                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19373 $as_echo "$swig_version" >&6; }
19374                 if test -n "$swig_version" ; then
19375                         # Calculate the required version number components
19376                         required=
19377                         required_major=`echo $required | sed 's/[^0-9].*//'`
19378                         if test -z "$required_major" ; then
19379                                 required_major=0
19380                         fi
19381                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19382                         required_minor=`echo $required | sed 's/[^0-9].*//'`
19383                         if test -z "$required_minor" ; then
19384                                 required_minor=0
19385                         fi
19386                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19387                         required_patch=`echo $required | sed 's/[^0-9].*//'`
19388                         if test -z "$required_patch" ; then
19389                                 required_patch=0
19390                         fi
19391                         # Calculate the available version number components
19392                         available=$swig_version
19393                         available_major=`echo $available | sed 's/[^0-9].*//'`
19394                         if test -z "$available_major" ; then
19395                                 available_major=0
19396                         fi
19397                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19398                         available_minor=`echo $available | sed 's/[^0-9].*//'`
19399                         if test -z "$available_minor" ; then
19400                                 available_minor=0
19401                         fi
19402                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19403                         available_patch=`echo $available | sed 's/[^0-9].*//'`
19404                         if test -z "$available_patch" ; then
19405                                 available_patch=0
19406                         fi
19407                         # Convert the version tuple into a single number for easier comparison.
19408                         # Using base 100 should be safe since SWIG internally uses BCD values
19409                         # to encode its version number.
19410                         required_swig_vernum=`expr $required_major \* 10000 \
19411                             \+ $required_minor \* 100 \+ $required_patch`
19412                         available_swig_vernum=`expr $available_major \* 10000 \
19413                             \+ $available_minor \* 100 \+ $available_patch`
19414
19415                         if test $available_swig_vernum -lt $required_swig_vernum; then
19416                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
19417 $as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
19418                                 SWIG=''
19419
19420                         else
19421                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19422 $as_echo_n "checking for SWIG library... " >&6; }
19423                                 SWIG_LIB=`$SWIG -swiglib`
19424                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19425 $as_echo "$SWIG_LIB" >&6; }
19426
19427                         fi
19428                 else
19429                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19430 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19431                         SWIG=''
19432
19433                 fi
19434         fi
19435
19436
19437     if test -z "$SWIG"; then
19438         if test "$explicit_languages" = "1"; then
19439             as_fn_error $? "
19440 ***
19441 *** You need SWIG to build the Python bindings.
19442 ***" "$LINENO" 5
19443         else
19444             enabled_languages=$(echo $enabled_languages | sed 's/python//')
19445         fi
19446     else
19447         # Reset the version collecting vars.
19448         PYTHONS=
19449         PYTHON_VERSIONS=
19450
19451         if test "$found_py" = "1" -o "$found_py3" = "1"; then
19452           # Reset everything, so that we can look for another Python.
19453           unset PYTHON
19454             unset PYTHON_VERSION
19455             unset PYTHON_CPPFLAGS
19456             unset PYTHON_LDFLAGS
19457             unset PYTHON_SITE_PKG
19458             unset PYTHON_EXTRA_LIBS
19459             unset PYTHON_EXTRA_LDFLAGS
19460             unset ac_cv_path_PYTHON
19461             unset am_cv_pathless_PYTHON
19462             unset am_cv_python_version
19463             unset am_cv_python_platform
19464             unset am_cv_python_pythondir
19465             unset am_cv_python_pyexecdir
19466
19467
19468
19469
19470
19471
19472         if test -n "$PYTHON"; then
19473       # If the user set $PYTHON, use it and don't search something else.
19474       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19475 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
19476       prog="import sys
19477 # split strings by '.' and convert to numeric.  Append some zeros
19478 # because we need at least 4 digits for the hex conversion.
19479 # map returns an iterator in Python 3.0 and a list in 2.x
19480 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19481 minverhex = 0
19482 # xrange is not present in Python 3.0 and range returns an iterator
19483 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19484 sys.exit(sys.hexversion < minverhex)"
19485   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19486    ($PYTHON -c "$prog") >&5 2>&5
19487    ac_status=$?
19488    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489    (exit $ac_status); }; then :
19490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19491 $as_echo "yes" >&6; }
19492 else
19493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494 $as_echo "no" >&6; }
19495                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19496 fi
19497       am_display_PYTHON=$PYTHON
19498     else
19499       # Otherwise, try each interpreter until we find one that satisfies
19500       # VERSION.
19501       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19502 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
19503 if ${am_cv_pathless_PYTHON+:} false; then :
19504   $as_echo_n "(cached) " >&6
19505 else
19506
19507         for am_cv_pathless_PYTHON           in python2.7 none; do
19508           test "$am_cv_pathless_PYTHON" = none && break
19509           prog="import sys
19510 # split strings by '.' and convert to numeric.  Append some zeros
19511 # because we need at least 4 digits for the hex conversion.
19512 # map returns an iterator in Python 3.0 and a list in 2.x
19513 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19514 minverhex = 0
19515 # xrange is not present in Python 3.0 and range returns an iterator
19516 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19517 sys.exit(sys.hexversion < minverhex)"
19518   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19519    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19520    ac_status=$?
19521    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522    (exit $ac_status); }; then :
19523   break
19524 fi
19525         done
19526 fi
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19528 $as_echo "$am_cv_pathless_PYTHON" >&6; }
19529       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19530       if test "$am_cv_pathless_PYTHON" = none; then
19531         PYTHON=:
19532       else
19533         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19534 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19536 $as_echo_n "checking for $ac_word... " >&6; }
19537 if ${ac_cv_path_PYTHON+:} false; then :
19538   $as_echo_n "(cached) " >&6
19539 else
19540   case $PYTHON in
19541   [\\/]* | ?:[\\/]*)
19542   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19543   ;;
19544   *)
19545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19546 for as_dir in $PATH
19547 do
19548   IFS=$as_save_IFS
19549   test -z "$as_dir" && as_dir=.
19550     for ac_exec_ext in '' $ac_executable_extensions; do
19551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19552     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19554     break 2
19555   fi
19556 done
19557   done
19558 IFS=$as_save_IFS
19559
19560   ;;
19561 esac
19562 fi
19563 PYTHON=$ac_cv_path_PYTHON
19564 if test -n "$PYTHON"; then
19565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19566 $as_echo "$PYTHON" >&6; }
19567 else
19568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569 $as_echo "no" >&6; }
19570 fi
19571
19572
19573       fi
19574       am_display_PYTHON=$am_cv_pathless_PYTHON
19575     fi
19576
19577
19578   if test "$PYTHON" = :; then
19579       :
19580   else
19581
19582
19583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19584 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19585 if ${am_cv_python_version+:} false; then :
19586   $as_echo_n "(cached) " >&6
19587 else
19588   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19589 fi
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19591 $as_echo "$am_cv_python_version" >&6; }
19592   PYTHON_VERSION=$am_cv_python_version
19593
19594
19595
19596   PYTHON_PREFIX='${prefix}'
19597
19598   PYTHON_EXEC_PREFIX='${exec_prefix}'
19599
19600
19601
19602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19603 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19604 if ${am_cv_python_platform+:} false; then :
19605   $as_echo_n "(cached) " >&6
19606 else
19607   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19608 fi
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19610 $as_echo "$am_cv_python_platform" >&6; }
19611   PYTHON_PLATFORM=$am_cv_python_platform
19612
19613
19614   # Just factor out some code duplication.
19615   am_python_setup_sysconfig="\
19616 import sys
19617 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19618 # with python 3.x.  See automake bug#10227.
19619 try:
19620     import sysconfig
19621 except ImportError:
19622     can_use_sysconfig = 0
19623 else:
19624     can_use_sysconfig = 1
19625 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19626 # <https://github.com/pypa/virtualenv/issues/118>
19627 try:
19628     from platform import python_implementation
19629     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19630         can_use_sysconfig = 0
19631 except ImportError:
19632     pass"
19633
19634
19635             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19636 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19637 if ${am_cv_python_pythondir+:} false; then :
19638   $as_echo_n "(cached) " >&6
19639 else
19640   if test "x$prefix" = xNONE
19641      then
19642        am_py_prefix=$ac_default_prefix
19643      else
19644        am_py_prefix=$prefix
19645      fi
19646      am_cv_python_pythondir=`$PYTHON -c "
19647 $am_python_setup_sysconfig
19648 if can_use_sysconfig:
19649     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19650 else:
19651     from distutils import sysconfig
19652     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19653 sys.stdout.write(sitedir)"`
19654      case $am_cv_python_pythondir in
19655      $am_py_prefix*)
19656        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19657        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19658        ;;
19659      *)
19660        case $am_py_prefix in
19661          /usr|/System*) ;;
19662          *)
19663           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19664           ;;
19665        esac
19666        ;;
19667      esac
19668
19669 fi
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19671 $as_echo "$am_cv_python_pythondir" >&6; }
19672   pythondir=$am_cv_python_pythondir
19673
19674
19675
19676   pkgpythondir=\${pythondir}/$PACKAGE
19677
19678
19679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19680 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19681 if ${am_cv_python_pyexecdir+:} false; then :
19682   $as_echo_n "(cached) " >&6
19683 else
19684   if test "x$exec_prefix" = xNONE
19685      then
19686        am_py_exec_prefix=$am_py_prefix
19687      else
19688        am_py_exec_prefix=$exec_prefix
19689      fi
19690      am_cv_python_pyexecdir=`$PYTHON -c "
19691 $am_python_setup_sysconfig
19692 if can_use_sysconfig:
19693     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
19694 else:
19695     from distutils import sysconfig
19696     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
19697 sys.stdout.write(sitedir)"`
19698      case $am_cv_python_pyexecdir in
19699      $am_py_exec_prefix*)
19700        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19701        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19702        ;;
19703      *)
19704        case $am_py_exec_prefix in
19705          /usr|/System*) ;;
19706          *)
19707            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19708            ;;
19709        esac
19710        ;;
19711      esac
19712
19713 fi
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19715 $as_echo "$am_cv_python_pyexecdir" >&6; }
19716   pyexecdir=$am_cv_python_pyexecdir
19717
19718
19719
19720   pkgpyexecdir=\${pyexecdir}/$PACKAGE
19721
19722
19723
19724
19725         #
19726         # Allow the use of a (user set) custom python version
19727         #
19728
19729
19730         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19731 set dummy python$PYTHON_VERSION; ac_word=$2
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19733 $as_echo_n "checking for $ac_word... " >&6; }
19734 if ${ac_cv_path_PYTHON+:} false; then :
19735   $as_echo_n "(cached) " >&6
19736 else
19737   case $PYTHON in
19738   [\\/]* | ?:[\\/]*)
19739   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19740   ;;
19741   *)
19742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19743 for as_dir in $PATH
19744 do
19745   IFS=$as_save_IFS
19746   test -z "$as_dir" && as_dir=.
19747     for ac_exec_ext in '' $ac_executable_extensions; do
19748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19749     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19751     break 2
19752   fi
19753 done
19754   done
19755 IFS=$as_save_IFS
19756
19757   ;;
19758 esac
19759 fi
19760 PYTHON=$ac_cv_path_PYTHON
19761 if test -n "$PYTHON"; then
19762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19763 $as_echo "$PYTHON" >&6; }
19764 else
19765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19766 $as_echo "no" >&6; }
19767 fi
19768
19769
19770         if test -z "$PYTHON"; then
19771            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19772            PYTHON_VERSION=""
19773         fi
19774
19775         #
19776         # Check for a version of Python >= 2.1.0
19777         #
19778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19779 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
19780         ac_supports_python_ver=`$PYTHON -c "import sys; \
19781                 ver = sys.version.split ()[0]; \
19782                 print (ver >= '2.1.0')"`
19783         if test "$ac_supports_python_ver" != "True"; then
19784                 if test -z "$PYTHON_NOVERSIONCHECK"; then
19785                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19786 $as_echo "no" >&6; }
19787                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19789 as_fn_error $? "
19790 This version of the AC_PYTHON_DEVEL macro
19791 doesn't work properly with versions of Python before
19792 2.1.0. You may need to re-run configure, setting the
19793 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
19794 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19795 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19796 to something else than an empty string.
19797
19798 See \`config.log' for more details" "$LINENO" 5; }
19799                 else
19800                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19801 $as_echo "skip at user request" >&6; }
19802                 fi
19803         else
19804                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19805 $as_echo "yes" >&6; }
19806         fi
19807
19808         #
19809         # if the macro parameter ``version'' is set, honour it
19810         #
19811         if test -n ""; then
19812                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19813 $as_echo_n "checking for a version of Python ... " >&6; }
19814                 ac_supports_python_ver=`$PYTHON -c "import sys; \
19815                         ver = sys.version.split ()[0]; \
19816                         print (ver )"`
19817                 if test "$ac_supports_python_ver" = "True"; then
19818                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19819 $as_echo "yes" >&6; }
19820                 else
19821                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19822 $as_echo "no" >&6; }
19823                         as_fn_error $? "this package requires Python .
19824 If you have it installed, but it isn't the default Python
19825 interpreter in your system path, please pass the PYTHON_VERSION
19826 variable to configure. See \`\`configure --help'' for reference.
19827 " "$LINENO" 5
19828                         PYTHON_VERSION=""
19829                 fi
19830         fi
19831
19832         #
19833         # Check if you have distutils, else fail
19834         #
19835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19836 $as_echo_n "checking for the distutils Python package... " >&6; }
19837         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
19838         if test -z "$ac_distutils_result"; then
19839                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19840 $as_echo "yes" >&6; }
19841         else
19842                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19843 $as_echo "no" >&6; }
19844                 as_fn_error $? "cannot import Python module \"distutils\".
19845 Please check your Python installation. The error was:
19846 $ac_distutils_result" "$LINENO" 5
19847                 PYTHON_VERSION=""
19848         fi
19849
19850         #
19851         # Check for Python include path
19852         #
19853         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19854 $as_echo_n "checking for Python include path... " >&6; }
19855         if test -z "$PYTHON_CPPFLAGS"; then
19856                 python_path=`$PYTHON -c "import distutils.sysconfig; \
19857                         print (distutils.sysconfig.get_python_inc ());"`
19858                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
19859                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
19860                 if test -n "${python_path}"; then
19861                         if test "${plat_python_path}" != "${python_path}"; then
19862                                 python_path="-I$python_path -I$plat_python_path"
19863                         else
19864                                 python_path="-I$python_path"
19865                         fi
19866                 fi
19867                 PYTHON_CPPFLAGS=$python_path
19868         fi
19869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19870 $as_echo "$PYTHON_CPPFLAGS" >&6; }
19871
19872
19873         #
19874         # Check for Python library path
19875         #
19876         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19877 $as_echo_n "checking for Python library path... " >&6; }
19878         if test -z "$PYTHON_LDFLAGS"; then
19879                 # (makes two attempts to ensure we've got a version number
19880                 # from the interpreter)
19881                 ac_python_version=`cat<<EOD | $PYTHON -
19882
19883 # join all versioning strings, on some systems
19884 # major/minor numbers could be in different list elements
19885 from distutils.sysconfig import *
19886 e = get_config_var('VERSION')
19887 if e is not None:
19888         print(e)
19889 EOD`
19890
19891                 if test -z "$ac_python_version"; then
19892                         if test -n "$PYTHON_VERSION"; then
19893                                 ac_python_version=$PYTHON_VERSION
19894                         else
19895                                 ac_python_version=`$PYTHON -c "import sys; \
19896                                         print (sys.version[:3])"`
19897                         fi
19898                 fi
19899
19900                 # Make the versioning information available to the compiler
19901
19902                 # JW: We don't need it and it interferes with the hack
19903                 # to detect multiple Pyhton versions
19904                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
19905                 #                  [If available, contains the Python version number currently in use.])
19906
19907                 # First, the library directory:
19908                 ac_python_libdir=`cat<<EOD | $PYTHON -
19909
19910 # There should be only one
19911 import distutils.sysconfig
19912 e = distutils.sysconfig.get_config_var('LIBDIR')
19913 if e is not None:
19914         print (e)
19915 EOD`
19916
19917                 # Now, for the library:
19918                 ac_python_library=`cat<<EOD | $PYTHON -
19919
19920 import distutils.sysconfig
19921 c = distutils.sysconfig.get_config_vars()
19922 if 'LDVERSION' in c:
19923         print ('python'+c['LDVERSION'])
19924 else:
19925         print ('python'+c['VERSION'])
19926 EOD`
19927
19928                 # This small piece shamelessly adapted from PostgreSQL python macro;
19929                 # credits goes to momjian, I think. I'd like to put the right name
19930                 # in the credits, if someone can point me in the right direction... ?
19931                 #
19932                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19933                 then
19934                         # use the official shared library
19935                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19936                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
19937                 else
19938                         # old way: use libpython from python_configdir
19939                         ac_python_libdir=`$PYTHON -c \
19940                           "from distutils.sysconfig import get_python_lib as f; \
19941                           import os; \
19942                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19943                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
19944                 fi
19945
19946                 if test -z "PYTHON_LDFLAGS"; then
19947                         as_fn_error $? "
19948   Cannot determine location of your Python DSO. Please check it was installed with
19949   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
19950                         " "$LINENO" 5
19951                 fi
19952         fi
19953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19954 $as_echo "$PYTHON_LDFLAGS" >&6; }
19955
19956
19957         #
19958         # Check for site packages
19959         #
19960         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
19961 $as_echo_n "checking for Python site-packages path... " >&6; }
19962         if test -z "$PYTHON_SITE_PKG"; then
19963                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
19964                         print (distutils.sysconfig.get_python_lib(0,0));"`
19965         fi
19966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
19967 $as_echo "$PYTHON_SITE_PKG" >&6; }
19968
19969
19970         #
19971         # libraries which must be linked in when embedding
19972         #
19973         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
19974 $as_echo_n "checking python extra libraries... " >&6; }
19975         if test -z "$PYTHON_EXTRA_LIBS"; then
19976            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
19977                 conf = distutils.sysconfig.get_config_var; \
19978                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
19979         fi
19980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
19981 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
19982
19983
19984         #
19985         # linking flags needed when embedding
19986         #
19987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
19988 $as_echo_n "checking python extra linking flags... " >&6; }
19989         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
19990                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
19991                         conf = distutils.sysconfig.get_config_var; \
19992                         print (conf('LINKFORSHARED'))"`
19993         fi
19994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
19995 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
19996
19997
19998         #
19999         # final check to see if everything compiles alright
20000         #
20001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20002 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20003         # save current global flags
20004         ac_save_LIBS="$LIBS"
20005         ac_save_CPPFLAGS="$CPPFLAGS"
20006         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20007         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20008         ac_ext=c
20009 ac_cpp='$CPP $CPPFLAGS'
20010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20013
20014         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20015 /* end confdefs.h.  */
20016
20017                 #include <Python.h>
20018 int
20019 main ()
20020 {
20021 Py_Initialize();
20022   ;
20023   return 0;
20024 }
20025
20026 _ACEOF
20027 if ac_fn_c_try_link "$LINENO"; then :
20028   pythonexists=yes
20029 else
20030   pythonexists=no
20031 fi
20032 rm -f core conftest.err conftest.$ac_objext \
20033     conftest$ac_exeext conftest.$ac_ext
20034         ac_ext=c
20035 ac_cpp='$CPP $CPPFLAGS'
20036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20039
20040         # turn back to default flags
20041         CPPFLAGS="$ac_save_CPPFLAGS"
20042         LIBS="$ac_save_LIBS"
20043
20044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20045 $as_echo "$pythonexists" >&6; }
20046
20047         if test ! "x$pythonexists" = "xyes"; then
20048            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20049   Could not link test program to Python. Maybe the main Python library has been
20050   installed in some non-standard library path. If so, pass it to configure,
20051   via the LDFLAGS environment variable.
20052   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20053   ============================================================================
20054    You probably have to install the development version of the Python package
20055    for your distribution.  The exact name of this package varies among them.
20056   ============================================================================
20057            " >&5
20058 $as_echo "$as_me: WARNING:
20059   Could not link test program to Python. Maybe the main Python library has been
20060   installed in some non-standard library path. If so, pass it to configure,
20061   via the LDFLAGS environment variable.
20062   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20063   ============================================================================
20064    You probably have to install the development version of the Python package
20065    for your distribution.  The exact name of this package varies among them.
20066   ============================================================================
20067            " >&2;}
20068           PYTHON_VERSION=""
20069         fi
20070
20071         #
20072         # all done!
20073         #
20074
20075                 if test "$PYTHON_VERSION"; then
20076                         PYTHONS="$(echo $PYTHONS $PYTHON)"
20077                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20078                 fi
20079
20080   fi
20081
20082
20083            unset PYTHON
20084             unset PYTHON_VERSION
20085             unset PYTHON_CPPFLAGS
20086             unset PYTHON_LDFLAGS
20087             unset PYTHON_SITE_PKG
20088             unset PYTHON_EXTRA_LIBS
20089             unset PYTHON_EXTRA_LDFLAGS
20090             unset ac_cv_path_PYTHON
20091             unset am_cv_pathless_PYTHON
20092             unset am_cv_python_version
20093             unset am_cv_python_platform
20094             unset am_cv_python_pythondir
20095             unset am_cv_python_pyexecdir
20096
20097
20098
20099
20100
20101
20102         if test -n "$PYTHON"; then
20103       # If the user set $PYTHON, use it and don't search something else.
20104       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
20105 $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
20106       prog="import sys
20107 # split strings by '.' and convert to numeric.  Append some zeros
20108 # because we need at least 4 digits for the hex conversion.
20109 # map returns an iterator in Python 3.0 and a list in 2.x
20110 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20111 minverhex = 0
20112 # xrange is not present in Python 3.0 and range returns an iterator
20113 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20114 sys.exit(sys.hexversion < minverhex)"
20115   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20116    ($PYTHON -c "$prog") >&5 2>&5
20117    ac_status=$?
20118    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119    (exit $ac_status); }; then :
20120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20121 $as_echo "yes" >&6; }
20122 else
20123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124 $as_echo "no" >&6; }
20125                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20126 fi
20127       am_display_PYTHON=$PYTHON
20128     else
20129       # Otherwise, try each interpreter until we find one that satisfies
20130       # VERSION.
20131       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
20132 $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
20133 if ${am_cv_pathless_PYTHON+:} false; then :
20134   $as_echo_n "(cached) " >&6
20135 else
20136
20137         for am_cv_pathless_PYTHON           in python3.4 none; do
20138           test "$am_cv_pathless_PYTHON" = none && break
20139           prog="import sys
20140 # split strings by '.' and convert to numeric.  Append some zeros
20141 # because we need at least 4 digits for the hex conversion.
20142 # map returns an iterator in Python 3.0 and a list in 2.x
20143 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20144 minverhex = 0
20145 # xrange is not present in Python 3.0 and range returns an iterator
20146 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20147 sys.exit(sys.hexversion < minverhex)"
20148   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20149    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20150    ac_status=$?
20151    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152    (exit $ac_status); }; then :
20153   break
20154 fi
20155         done
20156 fi
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20158 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20159       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20160       if test "$am_cv_pathless_PYTHON" = none; then
20161         PYTHON=:
20162       else
20163         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20164 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20166 $as_echo_n "checking for $ac_word... " >&6; }
20167 if ${ac_cv_path_PYTHON+:} false; then :
20168   $as_echo_n "(cached) " >&6
20169 else
20170   case $PYTHON in
20171   [\\/]* | ?:[\\/]*)
20172   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20173   ;;
20174   *)
20175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20176 for as_dir in $PATH
20177 do
20178   IFS=$as_save_IFS
20179   test -z "$as_dir" && as_dir=.
20180     for ac_exec_ext in '' $ac_executable_extensions; do
20181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20182     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20184     break 2
20185   fi
20186 done
20187   done
20188 IFS=$as_save_IFS
20189
20190   ;;
20191 esac
20192 fi
20193 PYTHON=$ac_cv_path_PYTHON
20194 if test -n "$PYTHON"; then
20195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20196 $as_echo "$PYTHON" >&6; }
20197 else
20198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199 $as_echo "no" >&6; }
20200 fi
20201
20202
20203       fi
20204       am_display_PYTHON=$am_cv_pathless_PYTHON
20205     fi
20206
20207
20208   if test "$PYTHON" = :; then
20209       :
20210   else
20211
20212
20213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20214 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20215 if ${am_cv_python_version+:} false; then :
20216   $as_echo_n "(cached) " >&6
20217 else
20218   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20219 fi
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20221 $as_echo "$am_cv_python_version" >&6; }
20222   PYTHON_VERSION=$am_cv_python_version
20223
20224
20225
20226   PYTHON_PREFIX='${prefix}'
20227
20228   PYTHON_EXEC_PREFIX='${exec_prefix}'
20229
20230
20231
20232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20233 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20234 if ${am_cv_python_platform+:} false; then :
20235   $as_echo_n "(cached) " >&6
20236 else
20237   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20238 fi
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20240 $as_echo "$am_cv_python_platform" >&6; }
20241   PYTHON_PLATFORM=$am_cv_python_platform
20242
20243
20244   # Just factor out some code duplication.
20245   am_python_setup_sysconfig="\
20246 import sys
20247 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20248 # with python 3.x.  See automake bug#10227.
20249 try:
20250     import sysconfig
20251 except ImportError:
20252     can_use_sysconfig = 0
20253 else:
20254     can_use_sysconfig = 1
20255 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20256 # <https://github.com/pypa/virtualenv/issues/118>
20257 try:
20258     from platform import python_implementation
20259     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20260         can_use_sysconfig = 0
20261 except ImportError:
20262     pass"
20263
20264
20265             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20266 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20267 if ${am_cv_python_pythondir+:} false; then :
20268   $as_echo_n "(cached) " >&6
20269 else
20270   if test "x$prefix" = xNONE
20271      then
20272        am_py_prefix=$ac_default_prefix
20273      else
20274        am_py_prefix=$prefix
20275      fi
20276      am_cv_python_pythondir=`$PYTHON -c "
20277 $am_python_setup_sysconfig
20278 if can_use_sysconfig:
20279     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20280 else:
20281     from distutils import sysconfig
20282     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20283 sys.stdout.write(sitedir)"`
20284      case $am_cv_python_pythondir in
20285      $am_py_prefix*)
20286        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20287        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20288        ;;
20289      *)
20290        case $am_py_prefix in
20291          /usr|/System*) ;;
20292          *)
20293           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20294           ;;
20295        esac
20296        ;;
20297      esac
20298
20299 fi
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20301 $as_echo "$am_cv_python_pythondir" >&6; }
20302   pythondir=$am_cv_python_pythondir
20303
20304
20305
20306   pkgpythondir=\${pythondir}/$PACKAGE
20307
20308
20309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20310 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20311 if ${am_cv_python_pyexecdir+:} false; then :
20312   $as_echo_n "(cached) " >&6
20313 else
20314   if test "x$exec_prefix" = xNONE
20315      then
20316        am_py_exec_prefix=$am_py_prefix
20317      else
20318        am_py_exec_prefix=$exec_prefix
20319      fi
20320      am_cv_python_pyexecdir=`$PYTHON -c "
20321 $am_python_setup_sysconfig
20322 if can_use_sysconfig:
20323     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20324 else:
20325     from distutils import sysconfig
20326     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20327 sys.stdout.write(sitedir)"`
20328      case $am_cv_python_pyexecdir in
20329      $am_py_exec_prefix*)
20330        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20331        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20332        ;;
20333      *)
20334        case $am_py_exec_prefix in
20335          /usr|/System*) ;;
20336          *)
20337            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20338            ;;
20339        esac
20340        ;;
20341      esac
20342
20343 fi
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20345 $as_echo "$am_cv_python_pyexecdir" >&6; }
20346   pyexecdir=$am_cv_python_pyexecdir
20347
20348
20349
20350   pkgpyexecdir=\${pyexecdir}/$PACKAGE
20351
20352
20353
20354
20355         #
20356         # Allow the use of a (user set) custom python version
20357         #
20358
20359
20360         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20361 set dummy python$PYTHON_VERSION; ac_word=$2
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20363 $as_echo_n "checking for $ac_word... " >&6; }
20364 if ${ac_cv_path_PYTHON+:} false; then :
20365   $as_echo_n "(cached) " >&6
20366 else
20367   case $PYTHON in
20368   [\\/]* | ?:[\\/]*)
20369   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20370   ;;
20371   *)
20372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20373 for as_dir in $PATH
20374 do
20375   IFS=$as_save_IFS
20376   test -z "$as_dir" && as_dir=.
20377     for ac_exec_ext in '' $ac_executable_extensions; do
20378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20379     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20381     break 2
20382   fi
20383 done
20384   done
20385 IFS=$as_save_IFS
20386
20387   ;;
20388 esac
20389 fi
20390 PYTHON=$ac_cv_path_PYTHON
20391 if test -n "$PYTHON"; then
20392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20393 $as_echo "$PYTHON" >&6; }
20394 else
20395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20396 $as_echo "no" >&6; }
20397 fi
20398
20399
20400         if test -z "$PYTHON"; then
20401            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
20402            PYTHON_VERSION=""
20403         fi
20404
20405         #
20406         # Check for a version of Python >= 2.1.0
20407         #
20408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
20409 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20410         ac_supports_python_ver=`$PYTHON -c "import sys; \
20411                 ver = sys.version.split ()[0]; \
20412                 print (ver >= '2.1.0')"`
20413         if test "$ac_supports_python_ver" != "True"; then
20414                 if test -z "$PYTHON_NOVERSIONCHECK"; then
20415                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20416 $as_echo "no" >&6; }
20417                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20419 as_fn_error $? "
20420 This version of the AC_PYTHON_DEVEL macro
20421 doesn't work properly with versions of Python before
20422 2.1.0. You may need to re-run configure, setting the
20423 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20424 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20425 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20426 to something else than an empty string.
20427
20428 See \`config.log' for more details" "$LINENO" 5; }
20429                 else
20430                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
20431 $as_echo "skip at user request" >&6; }
20432                 fi
20433         else
20434                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20435 $as_echo "yes" >&6; }
20436         fi
20437
20438         #
20439         # if the macro parameter ``version'' is set, honour it
20440         #
20441         if test -n ""; then
20442                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
20443 $as_echo_n "checking for a version of Python ... " >&6; }
20444                 ac_supports_python_ver=`$PYTHON -c "import sys; \
20445                         ver = sys.version.split ()[0]; \
20446                         print (ver )"`
20447                 if test "$ac_supports_python_ver" = "True"; then
20448                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20449 $as_echo "yes" >&6; }
20450                 else
20451                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20452 $as_echo "no" >&6; }
20453                         as_fn_error $? "this package requires Python .
20454 If you have it installed, but it isn't the default Python
20455 interpreter in your system path, please pass the PYTHON_VERSION
20456 variable to configure. See \`\`configure --help'' for reference.
20457 " "$LINENO" 5
20458                         PYTHON_VERSION=""
20459                 fi
20460         fi
20461
20462         #
20463         # Check if you have distutils, else fail
20464         #
20465         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
20466 $as_echo_n "checking for the distutils Python package... " >&6; }
20467         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20468         if test -z "$ac_distutils_result"; then
20469                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20470 $as_echo "yes" >&6; }
20471         else
20472                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20473 $as_echo "no" >&6; }
20474                 as_fn_error $? "cannot import Python module \"distutils\".
20475 Please check your Python installation. The error was:
20476 $ac_distutils_result" "$LINENO" 5
20477                 PYTHON_VERSION=""
20478         fi
20479
20480         #
20481         # Check for Python include path
20482         #
20483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20484 $as_echo_n "checking for Python include path... " >&6; }
20485         if test -z "$PYTHON_CPPFLAGS"; then
20486                 python_path=`$PYTHON -c "import distutils.sysconfig; \
20487                         print (distutils.sysconfig.get_python_inc ());"`
20488                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
20489                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
20490                 if test -n "${python_path}"; then
20491                         if test "${plat_python_path}" != "${python_path}"; then
20492                                 python_path="-I$python_path -I$plat_python_path"
20493                         else
20494                                 python_path="-I$python_path"
20495                         fi
20496                 fi
20497                 PYTHON_CPPFLAGS=$python_path
20498         fi
20499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
20500 $as_echo "$PYTHON_CPPFLAGS" >&6; }
20501
20502
20503         #
20504         # Check for Python library path
20505         #
20506         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
20507 $as_echo_n "checking for Python library path... " >&6; }
20508         if test -z "$PYTHON_LDFLAGS"; then
20509                 # (makes two attempts to ensure we've got a version number
20510                 # from the interpreter)
20511                 ac_python_version=`cat<<EOD | $PYTHON -
20512
20513 # join all versioning strings, on some systems
20514 # major/minor numbers could be in different list elements
20515 from distutils.sysconfig import *
20516 e = get_config_var('VERSION')
20517 if e is not None:
20518         print(e)
20519 EOD`
20520
20521                 if test -z "$ac_python_version"; then
20522                         if test -n "$PYTHON_VERSION"; then
20523                                 ac_python_version=$PYTHON_VERSION
20524                         else
20525                                 ac_python_version=`$PYTHON -c "import sys; \
20526                                         print (sys.version[:3])"`
20527                         fi
20528                 fi
20529
20530                 # Make the versioning information available to the compiler
20531
20532                 # JW: We don't need it and it interferes with the hack
20533                 # to detect multiple Pyhton versions
20534                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
20535                 #                  [If available, contains the Python version number currently in use.])
20536
20537                 # First, the library directory:
20538                 ac_python_libdir=`cat<<EOD | $PYTHON -
20539
20540 # There should be only one
20541 import distutils.sysconfig
20542 e = distutils.sysconfig.get_config_var('LIBDIR')
20543 if e is not None:
20544         print (e)
20545 EOD`
20546
20547                 # Now, for the library:
20548                 ac_python_library=`cat<<EOD | $PYTHON -
20549
20550 import distutils.sysconfig
20551 c = distutils.sysconfig.get_config_vars()
20552 if 'LDVERSION' in c:
20553         print ('python'+c['LDVERSION'])
20554 else:
20555         print ('python'+c['VERSION'])
20556 EOD`
20557
20558                 # This small piece shamelessly adapted from PostgreSQL python macro;
20559                 # credits goes to momjian, I think. I'd like to put the right name
20560                 # in the credits, if someone can point me in the right direction... ?
20561                 #
20562                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
20563                 then
20564                         # use the official shared library
20565                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
20566                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
20567                 else
20568                         # old way: use libpython from python_configdir
20569                         ac_python_libdir=`$PYTHON -c \
20570                           "from distutils.sysconfig import get_python_lib as f; \
20571                           import os; \
20572                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
20573                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
20574                 fi
20575
20576                 if test -z "PYTHON_LDFLAGS"; then
20577                         as_fn_error $? "
20578   Cannot determine location of your Python DSO. Please check it was installed with
20579   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
20580                         " "$LINENO" 5
20581                 fi
20582         fi
20583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20584 $as_echo "$PYTHON_LDFLAGS" >&6; }
20585
20586
20587         #
20588         # Check for site packages
20589         #
20590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20591 $as_echo_n "checking for Python site-packages path... " >&6; }
20592         if test -z "$PYTHON_SITE_PKG"; then
20593                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20594                         print (distutils.sysconfig.get_python_lib(0,0));"`
20595         fi
20596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20597 $as_echo "$PYTHON_SITE_PKG" >&6; }
20598
20599
20600         #
20601         # libraries which must be linked in when embedding
20602         #
20603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20604 $as_echo_n "checking python extra libraries... " >&6; }
20605         if test -z "$PYTHON_EXTRA_LIBS"; then
20606            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20607                 conf = distutils.sysconfig.get_config_var; \
20608                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20609         fi
20610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20611 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20612
20613
20614         #
20615         # linking flags needed when embedding
20616         #
20617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20618 $as_echo_n "checking python extra linking flags... " >&6; }
20619         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20620                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20621                         conf = distutils.sysconfig.get_config_var; \
20622                         print (conf('LINKFORSHARED'))"`
20623         fi
20624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20625 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20626
20627
20628         #
20629         # final check to see if everything compiles alright
20630         #
20631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20632 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20633         # save current global flags
20634         ac_save_LIBS="$LIBS"
20635         ac_save_CPPFLAGS="$CPPFLAGS"
20636         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20637         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20638         ac_ext=c
20639 ac_cpp='$CPP $CPPFLAGS'
20640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643
20644         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h.  */
20646
20647                 #include <Python.h>
20648 int
20649 main ()
20650 {
20651 Py_Initialize();
20652   ;
20653   return 0;
20654 }
20655
20656 _ACEOF
20657 if ac_fn_c_try_link "$LINENO"; then :
20658   pythonexists=yes
20659 else
20660   pythonexists=no
20661 fi
20662 rm -f core conftest.err conftest.$ac_objext \
20663     conftest$ac_exeext conftest.$ac_ext
20664         ac_ext=c
20665 ac_cpp='$CPP $CPPFLAGS'
20666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20669
20670         # turn back to default flags
20671         CPPFLAGS="$ac_save_CPPFLAGS"
20672         LIBS="$ac_save_LIBS"
20673
20674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20675 $as_echo "$pythonexists" >&6; }
20676
20677         if test ! "x$pythonexists" = "xyes"; then
20678            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20679   Could not link test program to Python. Maybe the main Python library has been
20680   installed in some non-standard library path. If so, pass it to configure,
20681   via the LDFLAGS environment variable.
20682   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20683   ============================================================================
20684    You probably have to install the development version of the Python package
20685    for your distribution.  The exact name of this package varies among them.
20686   ============================================================================
20687            " >&5
20688 $as_echo "$as_me: WARNING:
20689   Could not link test program to Python. Maybe the main Python library has been
20690   installed in some non-standard library path. If so, pass it to configure,
20691   via the LDFLAGS environment variable.
20692   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20693   ============================================================================
20694    You probably have to install the development version of the Python package
20695    for your distribution.  The exact name of this package varies among them.
20696   ============================================================================
20697            " >&2;}
20698           PYTHON_VERSION=""
20699         fi
20700
20701         #
20702         # all done!
20703         #
20704
20705                 if test "$PYTHON_VERSION"; then
20706                         PYTHONS="$(echo $PYTHONS $PYTHON)"
20707                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20708                 fi
20709
20710   fi
20711
20712
20713            unset PYTHON
20714             unset PYTHON_VERSION
20715             unset PYTHON_CPPFLAGS
20716             unset PYTHON_LDFLAGS
20717             unset PYTHON_SITE_PKG
20718             unset PYTHON_EXTRA_LIBS
20719             unset PYTHON_EXTRA_LDFLAGS
20720             unset ac_cv_path_PYTHON
20721             unset am_cv_pathless_PYTHON
20722             unset am_cv_python_version
20723             unset am_cv_python_platform
20724             unset am_cv_python_pythondir
20725             unset am_cv_python_pyexecdir
20726
20727
20728
20729
20730
20731
20732         if test -n "$PYTHON"; then
20733       # If the user set $PYTHON, use it and don't search something else.
20734       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.5" >&5
20735 $as_echo_n "checking whether $PYTHON version is >= 3.5... " >&6; }
20736       prog="import sys
20737 # split strings by '.' and convert to numeric.  Append some zeros
20738 # because we need at least 4 digits for the hex conversion.
20739 # map returns an iterator in Python 3.0 and a list in 2.x
20740 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20741 minverhex = 0
20742 # xrange is not present in Python 3.0 and range returns an iterator
20743 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20744 sys.exit(sys.hexversion < minverhex)"
20745   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20746    ($PYTHON -c "$prog") >&5 2>&5
20747    ac_status=$?
20748    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749    (exit $ac_status); }; then :
20750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20751 $as_echo "yes" >&6; }
20752 else
20753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20754 $as_echo "no" >&6; }
20755                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20756 fi
20757       am_display_PYTHON=$PYTHON
20758     else
20759       # Otherwise, try each interpreter until we find one that satisfies
20760       # VERSION.
20761       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.5" >&5
20762 $as_echo_n "checking for a Python interpreter with version >= 3.5... " >&6; }
20763 if ${am_cv_pathless_PYTHON+:} false; then :
20764   $as_echo_n "(cached) " >&6
20765 else
20766
20767         for am_cv_pathless_PYTHON           in python3.5 none; do
20768           test "$am_cv_pathless_PYTHON" = none && break
20769           prog="import sys
20770 # split strings by '.' and convert to numeric.  Append some zeros
20771 # because we need at least 4 digits for the hex conversion.
20772 # map returns an iterator in Python 3.0 and a list in 2.x
20773 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20774 minverhex = 0
20775 # xrange is not present in Python 3.0 and range returns an iterator
20776 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20777 sys.exit(sys.hexversion < minverhex)"
20778   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20779    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20780    ac_status=$?
20781    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782    (exit $ac_status); }; then :
20783   break
20784 fi
20785         done
20786 fi
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20788 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20789       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20790       if test "$am_cv_pathless_PYTHON" = none; then
20791         PYTHON=:
20792       else
20793         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20794 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20796 $as_echo_n "checking for $ac_word... " >&6; }
20797 if ${ac_cv_path_PYTHON+:} false; then :
20798   $as_echo_n "(cached) " >&6
20799 else
20800   case $PYTHON in
20801   [\\/]* | ?:[\\/]*)
20802   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20803   ;;
20804   *)
20805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20806 for as_dir in $PATH
20807 do
20808   IFS=$as_save_IFS
20809   test -z "$as_dir" && as_dir=.
20810     for ac_exec_ext in '' $ac_executable_extensions; do
20811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20812     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20814     break 2
20815   fi
20816 done
20817   done
20818 IFS=$as_save_IFS
20819
20820   ;;
20821 esac
20822 fi
20823 PYTHON=$ac_cv_path_PYTHON
20824 if test -n "$PYTHON"; then
20825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20826 $as_echo "$PYTHON" >&6; }
20827 else
20828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20829 $as_echo "no" >&6; }
20830 fi
20831
20832
20833       fi
20834       am_display_PYTHON=$am_cv_pathless_PYTHON
20835     fi
20836
20837
20838   if test "$PYTHON" = :; then
20839       :
20840   else
20841
20842
20843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20844 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20845 if ${am_cv_python_version+:} false; then :
20846   $as_echo_n "(cached) " >&6
20847 else
20848   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20849 fi
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20851 $as_echo "$am_cv_python_version" >&6; }
20852   PYTHON_VERSION=$am_cv_python_version
20853
20854
20855
20856   PYTHON_PREFIX='${prefix}'
20857
20858   PYTHON_EXEC_PREFIX='${exec_prefix}'
20859
20860
20861
20862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20863 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20864 if ${am_cv_python_platform+:} false; then :
20865   $as_echo_n "(cached) " >&6
20866 else
20867   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20868 fi
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20870 $as_echo "$am_cv_python_platform" >&6; }
20871   PYTHON_PLATFORM=$am_cv_python_platform
20872
20873
20874   # Just factor out some code duplication.
20875   am_python_setup_sysconfig="\
20876 import sys
20877 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20878 # with python 3.x.  See automake bug#10227.
20879 try:
20880     import sysconfig
20881 except ImportError:
20882     can_use_sysconfig = 0
20883 else:
20884     can_use_sysconfig = 1
20885 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20886 # <https://github.com/pypa/virtualenv/issues/118>
20887 try:
20888     from platform import python_implementation
20889     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20890         can_use_sysconfig = 0
20891 except ImportError:
20892     pass"
20893
20894
20895             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20896 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20897 if ${am_cv_python_pythondir+:} false; then :
20898   $as_echo_n "(cached) " >&6
20899 else
20900   if test "x$prefix" = xNONE
20901      then
20902        am_py_prefix=$ac_default_prefix
20903      else
20904        am_py_prefix=$prefix
20905      fi
20906      am_cv_python_pythondir=`$PYTHON -c "
20907 $am_python_setup_sysconfig
20908 if can_use_sysconfig:
20909     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20910 else:
20911     from distutils import sysconfig
20912     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20913 sys.stdout.write(sitedir)"`
20914      case $am_cv_python_pythondir in
20915      $am_py_prefix*)
20916        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20917        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20918        ;;
20919      *)
20920        case $am_py_prefix in
20921          /usr|/System*) ;;
20922          *)
20923           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20924           ;;
20925        esac
20926        ;;
20927      esac
20928
20929 fi
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20931 $as_echo "$am_cv_python_pythondir" >&6; }
20932   pythondir=$am_cv_python_pythondir
20933
20934
20935
20936   pkgpythondir=\${pythondir}/$PACKAGE
20937
20938
20939         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20940 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20941 if ${am_cv_python_pyexecdir+:} false; then :
20942   $as_echo_n "(cached) " >&6
20943 else
20944   if test "x$exec_prefix" = xNONE
20945      then
20946        am_py_exec_prefix=$am_py_prefix
20947      else
20948        am_py_exec_prefix=$exec_prefix
20949      fi
20950      am_cv_python_pyexecdir=`$PYTHON -c "
20951 $am_python_setup_sysconfig
20952 if can_use_sysconfig:
20953     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20954 else:
20955     from distutils import sysconfig
20956     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20957 sys.stdout.write(sitedir)"`
20958      case $am_cv_python_pyexecdir in
20959      $am_py_exec_prefix*)
20960        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20961        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20962        ;;
20963      *)
20964        case $am_py_exec_prefix in
20965          /usr|/System*) ;;
20966          *)
20967            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20968            ;;
20969        esac
20970        ;;
20971      esac
20972
20973 fi
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20975 $as_echo "$am_cv_python_pyexecdir" >&6; }
20976   pyexecdir=$am_cv_python_pyexecdir
20977
20978
20979
20980   pkgpyexecdir=\${pyexecdir}/$PACKAGE
20981
20982
20983
20984
20985         #
20986         # Allow the use of a (user set) custom python version
20987         #
20988
20989
20990         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20991 set dummy python$PYTHON_VERSION; ac_word=$2
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20993 $as_echo_n "checking for $ac_word... " >&6; }
20994 if ${ac_cv_path_PYTHON+:} false; then :
20995   $as_echo_n "(cached) " >&6
20996 else
20997   case $PYTHON in
20998   [\\/]* | ?:[\\/]*)
20999   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21000   ;;
21001   *)
21002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21003 for as_dir in $PATH
21004 do
21005   IFS=$as_save_IFS
21006   test -z "$as_dir" && as_dir=.
21007     for ac_exec_ext in '' $ac_executable_extensions; do
21008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21009     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21011     break 2
21012   fi
21013 done
21014   done
21015 IFS=$as_save_IFS
21016
21017   ;;
21018 esac
21019 fi
21020 PYTHON=$ac_cv_path_PYTHON
21021 if test -n "$PYTHON"; then
21022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21023 $as_echo "$PYTHON" >&6; }
21024 else
21025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026 $as_echo "no" >&6; }
21027 fi
21028
21029
21030         if test -z "$PYTHON"; then
21031            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21032            PYTHON_VERSION=""
21033         fi
21034
21035         #
21036         # Check for a version of Python >= 2.1.0
21037         #
21038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21039 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21040         ac_supports_python_ver=`$PYTHON -c "import sys; \
21041                 ver = sys.version.split ()[0]; \
21042                 print (ver >= '2.1.0')"`
21043         if test "$ac_supports_python_ver" != "True"; then
21044                 if test -z "$PYTHON_NOVERSIONCHECK"; then
21045                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21046 $as_echo "no" >&6; }
21047                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21049 as_fn_error $? "
21050 This version of the AC_PYTHON_DEVEL macro
21051 doesn't work properly with versions of Python before
21052 2.1.0. You may need to re-run configure, setting the
21053 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21054 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21055 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21056 to something else than an empty string.
21057
21058 See \`config.log' for more details" "$LINENO" 5; }
21059                 else
21060                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21061 $as_echo "skip at user request" >&6; }
21062                 fi
21063         else
21064                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21065 $as_echo "yes" >&6; }
21066         fi
21067
21068         #
21069         # if the macro parameter ``version'' is set, honour it
21070         #
21071         if test -n ""; then
21072                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21073 $as_echo_n "checking for a version of Python ... " >&6; }
21074                 ac_supports_python_ver=`$PYTHON -c "import sys; \
21075                         ver = sys.version.split ()[0]; \
21076                         print (ver )"`
21077                 if test "$ac_supports_python_ver" = "True"; then
21078                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21079 $as_echo "yes" >&6; }
21080                 else
21081                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21082 $as_echo "no" >&6; }
21083                         as_fn_error $? "this package requires Python .
21084 If you have it installed, but it isn't the default Python
21085 interpreter in your system path, please pass the PYTHON_VERSION
21086 variable to configure. See \`\`configure --help'' for reference.
21087 " "$LINENO" 5
21088                         PYTHON_VERSION=""
21089                 fi
21090         fi
21091
21092         #
21093         # Check if you have distutils, else fail
21094         #
21095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21096 $as_echo_n "checking for the distutils Python package... " >&6; }
21097         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21098         if test -z "$ac_distutils_result"; then
21099                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21100 $as_echo "yes" >&6; }
21101         else
21102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21103 $as_echo "no" >&6; }
21104                 as_fn_error $? "cannot import Python module \"distutils\".
21105 Please check your Python installation. The error was:
21106 $ac_distutils_result" "$LINENO" 5
21107                 PYTHON_VERSION=""
21108         fi
21109
21110         #
21111         # Check for Python include path
21112         #
21113         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21114 $as_echo_n "checking for Python include path... " >&6; }
21115         if test -z "$PYTHON_CPPFLAGS"; then
21116                 python_path=`$PYTHON -c "import distutils.sysconfig; \
21117                         print (distutils.sysconfig.get_python_inc ());"`
21118                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21119                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21120                 if test -n "${python_path}"; then
21121                         if test "${plat_python_path}" != "${python_path}"; then
21122                                 python_path="-I$python_path -I$plat_python_path"
21123                         else
21124                                 python_path="-I$python_path"
21125                         fi
21126                 fi
21127                 PYTHON_CPPFLAGS=$python_path
21128         fi
21129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21130 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21131
21132
21133         #
21134         # Check for Python library path
21135         #
21136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21137 $as_echo_n "checking for Python library path... " >&6; }
21138         if test -z "$PYTHON_LDFLAGS"; then
21139                 # (makes two attempts to ensure we've got a version number
21140                 # from the interpreter)
21141                 ac_python_version=`cat<<EOD | $PYTHON -
21142
21143 # join all versioning strings, on some systems
21144 # major/minor numbers could be in different list elements
21145 from distutils.sysconfig import *
21146 e = get_config_var('VERSION')
21147 if e is not None:
21148         print(e)
21149 EOD`
21150
21151                 if test -z "$ac_python_version"; then
21152                         if test -n "$PYTHON_VERSION"; then
21153                                 ac_python_version=$PYTHON_VERSION
21154                         else
21155                                 ac_python_version=`$PYTHON -c "import sys; \
21156                                         print (sys.version[:3])"`
21157                         fi
21158                 fi
21159
21160                 # Make the versioning information available to the compiler
21161
21162                 # JW: We don't need it and it interferes with the hack
21163                 # to detect multiple Pyhton versions
21164                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21165                 #                  [If available, contains the Python version number currently in use.])
21166
21167                 # First, the library directory:
21168                 ac_python_libdir=`cat<<EOD | $PYTHON -
21169
21170 # There should be only one
21171 import distutils.sysconfig
21172 e = distutils.sysconfig.get_config_var('LIBDIR')
21173 if e is not None:
21174         print (e)
21175 EOD`
21176
21177                 # Now, for the library:
21178                 ac_python_library=`cat<<EOD | $PYTHON -
21179
21180 import distutils.sysconfig
21181 c = distutils.sysconfig.get_config_vars()
21182 if 'LDVERSION' in c:
21183         print ('python'+c['LDVERSION'])
21184 else:
21185         print ('python'+c['VERSION'])
21186 EOD`
21187
21188                 # This small piece shamelessly adapted from PostgreSQL python macro;
21189                 # credits goes to momjian, I think. I'd like to put the right name
21190                 # in the credits, if someone can point me in the right direction... ?
21191                 #
21192                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21193                 then
21194                         # use the official shared library
21195                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21196                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21197                 else
21198                         # old way: use libpython from python_configdir
21199                         ac_python_libdir=`$PYTHON -c \
21200                           "from distutils.sysconfig import get_python_lib as f; \
21201                           import os; \
21202                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21203                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21204                 fi
21205
21206                 if test -z "PYTHON_LDFLAGS"; then
21207                         as_fn_error $? "
21208   Cannot determine location of your Python DSO. Please check it was installed with
21209   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21210                         " "$LINENO" 5
21211                 fi
21212         fi
21213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21214 $as_echo "$PYTHON_LDFLAGS" >&6; }
21215
21216
21217         #
21218         # Check for site packages
21219         #
21220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21221 $as_echo_n "checking for Python site-packages path... " >&6; }
21222         if test -z "$PYTHON_SITE_PKG"; then
21223                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21224                         print (distutils.sysconfig.get_python_lib(0,0));"`
21225         fi
21226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21227 $as_echo "$PYTHON_SITE_PKG" >&6; }
21228
21229
21230         #
21231         # libraries which must be linked in when embedding
21232         #
21233         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21234 $as_echo_n "checking python extra libraries... " >&6; }
21235         if test -z "$PYTHON_EXTRA_LIBS"; then
21236            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21237                 conf = distutils.sysconfig.get_config_var; \
21238                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21239         fi
21240         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21241 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21242
21243
21244         #
21245         # linking flags needed when embedding
21246         #
21247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21248 $as_echo_n "checking python extra linking flags... " >&6; }
21249         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21250                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21251                         conf = distutils.sysconfig.get_config_var; \
21252                         print (conf('LINKFORSHARED'))"`
21253         fi
21254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21255 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21256
21257
21258         #
21259         # final check to see if everything compiles alright
21260         #
21261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21262 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21263         # save current global flags
21264         ac_save_LIBS="$LIBS"
21265         ac_save_CPPFLAGS="$CPPFLAGS"
21266         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21267         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21268         ac_ext=c
21269 ac_cpp='$CPP $CPPFLAGS'
21270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21273
21274         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h.  */
21276
21277                 #include <Python.h>
21278 int
21279 main ()
21280 {
21281 Py_Initialize();
21282   ;
21283   return 0;
21284 }
21285
21286 _ACEOF
21287 if ac_fn_c_try_link "$LINENO"; then :
21288   pythonexists=yes
21289 else
21290   pythonexists=no
21291 fi
21292 rm -f core conftest.err conftest.$ac_objext \
21293     conftest$ac_exeext conftest.$ac_ext
21294         ac_ext=c
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21299
21300         # turn back to default flags
21301         CPPFLAGS="$ac_save_CPPFLAGS"
21302         LIBS="$ac_save_LIBS"
21303
21304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21305 $as_echo "$pythonexists" >&6; }
21306
21307         if test ! "x$pythonexists" = "xyes"; then
21308            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21309   Could not link test program to Python. Maybe the main Python library has been
21310   installed in some non-standard library path. If so, pass it to configure,
21311   via the LDFLAGS environment variable.
21312   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21313   ============================================================================
21314    You probably have to install the development version of the Python package
21315    for your distribution.  The exact name of this package varies among them.
21316   ============================================================================
21317            " >&5
21318 $as_echo "$as_me: WARNING:
21319   Could not link test program to Python. Maybe the main Python library has been
21320   installed in some non-standard library path. If so, pass it to configure,
21321   via the LDFLAGS environment variable.
21322   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21323   ============================================================================
21324    You probably have to install the development version of the Python package
21325    for your distribution.  The exact name of this package varies among them.
21326   ============================================================================
21327            " >&2;}
21328           PYTHON_VERSION=""
21329         fi
21330
21331         #
21332         # all done!
21333         #
21334
21335                 if test "$PYTHON_VERSION"; then
21336                         PYTHONS="$(echo $PYTHONS $PYTHON)"
21337                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
21338                 fi
21339
21340   fi
21341
21342
21343            unset PYTHON
21344             unset PYTHON_VERSION
21345             unset PYTHON_CPPFLAGS
21346             unset PYTHON_LDFLAGS
21347             unset PYTHON_SITE_PKG
21348             unset PYTHON_EXTRA_LIBS
21349             unset PYTHON_EXTRA_LDFLAGS
21350             unset ac_cv_path_PYTHON
21351             unset am_cv_pathless_PYTHON
21352             unset am_cv_python_version
21353             unset am_cv_python_platform
21354             unset am_cv_python_pythondir
21355             unset am_cv_python_pyexecdir
21356
21357
21358
21359
21360
21361
21362         if test -n "$PYTHON"; then
21363       # If the user set $PYTHON, use it and don't search something else.
21364       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
21365 $as_echo_n "checking whether $PYTHON version is >= 3.6... " >&6; }
21366       prog="import sys
21367 # split strings by '.' and convert to numeric.  Append some zeros
21368 # because we need at least 4 digits for the hex conversion.
21369 # map returns an iterator in Python 3.0 and a list in 2.x
21370 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21371 minverhex = 0
21372 # xrange is not present in Python 3.0 and range returns an iterator
21373 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21374 sys.exit(sys.hexversion < minverhex)"
21375   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21376    ($PYTHON -c "$prog") >&5 2>&5
21377    ac_status=$?
21378    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379    (exit $ac_status); }; then :
21380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21381 $as_echo "yes" >&6; }
21382 else
21383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21384 $as_echo "no" >&6; }
21385                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
21386 fi
21387       am_display_PYTHON=$PYTHON
21388     else
21389       # Otherwise, try each interpreter until we find one that satisfies
21390       # VERSION.
21391       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
21392 $as_echo_n "checking for a Python interpreter with version >= 3.6... " >&6; }
21393 if ${am_cv_pathless_PYTHON+:} false; then :
21394   $as_echo_n "(cached) " >&6
21395 else
21396
21397         for am_cv_pathless_PYTHON           in python3.6 none; do
21398           test "$am_cv_pathless_PYTHON" = none && break
21399           prog="import sys
21400 # split strings by '.' and convert to numeric.  Append some zeros
21401 # because we need at least 4 digits for the hex conversion.
21402 # map returns an iterator in Python 3.0 and a list in 2.x
21403 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21404 minverhex = 0
21405 # xrange is not present in Python 3.0 and range returns an iterator
21406 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21407 sys.exit(sys.hexversion < minverhex)"
21408   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21409    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21410    ac_status=$?
21411    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412    (exit $ac_status); }; then :
21413   break
21414 fi
21415         done
21416 fi
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21418 $as_echo "$am_cv_pathless_PYTHON" >&6; }
21419       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21420       if test "$am_cv_pathless_PYTHON" = none; then
21421         PYTHON=:
21422       else
21423         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21424 set dummy $am_cv_pathless_PYTHON; ac_word=$2
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21426 $as_echo_n "checking for $ac_word... " >&6; }
21427 if ${ac_cv_path_PYTHON+:} false; then :
21428   $as_echo_n "(cached) " >&6
21429 else
21430   case $PYTHON in
21431   [\\/]* | ?:[\\/]*)
21432   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21433   ;;
21434   *)
21435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21436 for as_dir in $PATH
21437 do
21438   IFS=$as_save_IFS
21439   test -z "$as_dir" && as_dir=.
21440     for ac_exec_ext in '' $ac_executable_extensions; do
21441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21442     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21444     break 2
21445   fi
21446 done
21447   done
21448 IFS=$as_save_IFS
21449
21450   ;;
21451 esac
21452 fi
21453 PYTHON=$ac_cv_path_PYTHON
21454 if test -n "$PYTHON"; then
21455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21456 $as_echo "$PYTHON" >&6; }
21457 else
21458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21459 $as_echo "no" >&6; }
21460 fi
21461
21462
21463       fi
21464       am_display_PYTHON=$am_cv_pathless_PYTHON
21465     fi
21466
21467
21468   if test "$PYTHON" = :; then
21469       :
21470   else
21471
21472
21473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
21474 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
21475 if ${am_cv_python_version+:} false; then :
21476   $as_echo_n "(cached) " >&6
21477 else
21478   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
21479 fi
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
21481 $as_echo "$am_cv_python_version" >&6; }
21482   PYTHON_VERSION=$am_cv_python_version
21483
21484
21485
21486   PYTHON_PREFIX='${prefix}'
21487
21488   PYTHON_EXEC_PREFIX='${exec_prefix}'
21489
21490
21491
21492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
21493 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
21494 if ${am_cv_python_platform+:} false; then :
21495   $as_echo_n "(cached) " >&6
21496 else
21497   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
21498 fi
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21500 $as_echo "$am_cv_python_platform" >&6; }
21501   PYTHON_PLATFORM=$am_cv_python_platform
21502
21503
21504   # Just factor out some code duplication.
21505   am_python_setup_sysconfig="\
21506 import sys
21507 # Prefer sysconfig over distutils.sysconfig, for better compatibility
21508 # with python 3.x.  See automake bug#10227.
21509 try:
21510     import sysconfig
21511 except ImportError:
21512     can_use_sysconfig = 0
21513 else:
21514     can_use_sysconfig = 1
21515 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
21516 # <https://github.com/pypa/virtualenv/issues/118>
21517 try:
21518     from platform import python_implementation
21519     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
21520         can_use_sysconfig = 0
21521 except ImportError:
21522     pass"
21523
21524
21525             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21526 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21527 if ${am_cv_python_pythondir+:} false; then :
21528   $as_echo_n "(cached) " >&6
21529 else
21530   if test "x$prefix" = xNONE
21531      then
21532        am_py_prefix=$ac_default_prefix
21533      else
21534        am_py_prefix=$prefix
21535      fi
21536      am_cv_python_pythondir=`$PYTHON -c "
21537 $am_python_setup_sysconfig
21538 if can_use_sysconfig:
21539     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
21540 else:
21541     from distutils import sysconfig
21542     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
21543 sys.stdout.write(sitedir)"`
21544      case $am_cv_python_pythondir in
21545      $am_py_prefix*)
21546        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21547        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21548        ;;
21549      *)
21550        case $am_py_prefix in
21551          /usr|/System*) ;;
21552          *)
21553           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
21554           ;;
21555        esac
21556        ;;
21557      esac
21558
21559 fi
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21561 $as_echo "$am_cv_python_pythondir" >&6; }
21562   pythondir=$am_cv_python_pythondir
21563
21564
21565
21566   pkgpythondir=\${pythondir}/$PACKAGE
21567
21568
21569         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21570 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21571 if ${am_cv_python_pyexecdir+:} false; then :
21572   $as_echo_n "(cached) " >&6
21573 else
21574   if test "x$exec_prefix" = xNONE
21575      then
21576        am_py_exec_prefix=$am_py_prefix
21577      else
21578        am_py_exec_prefix=$exec_prefix
21579      fi
21580      am_cv_python_pyexecdir=`$PYTHON -c "
21581 $am_python_setup_sysconfig
21582 if can_use_sysconfig:
21583     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
21584 else:
21585     from distutils import sysconfig
21586     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21587 sys.stdout.write(sitedir)"`
21588      case $am_cv_python_pyexecdir in
21589      $am_py_exec_prefix*)
21590        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21591        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21592        ;;
21593      *)
21594        case $am_py_exec_prefix in
21595          /usr|/System*) ;;
21596          *)
21597            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21598            ;;
21599        esac
21600        ;;
21601      esac
21602
21603 fi
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21605 $as_echo "$am_cv_python_pyexecdir" >&6; }
21606   pyexecdir=$am_cv_python_pyexecdir
21607
21608
21609
21610   pkgpyexecdir=\${pyexecdir}/$PACKAGE
21611
21612
21613
21614
21615         #
21616         # Allow the use of a (user set) custom python version
21617         #
21618
21619
21620         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21621 set dummy python$PYTHON_VERSION; ac_word=$2
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21623 $as_echo_n "checking for $ac_word... " >&6; }
21624 if ${ac_cv_path_PYTHON+:} false; then :
21625   $as_echo_n "(cached) " >&6
21626 else
21627   case $PYTHON in
21628   [\\/]* | ?:[\\/]*)
21629   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21630   ;;
21631   *)
21632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21633 for as_dir in $PATH
21634 do
21635   IFS=$as_save_IFS
21636   test -z "$as_dir" && as_dir=.
21637     for ac_exec_ext in '' $ac_executable_extensions; do
21638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21639     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21641     break 2
21642   fi
21643 done
21644   done
21645 IFS=$as_save_IFS
21646
21647   ;;
21648 esac
21649 fi
21650 PYTHON=$ac_cv_path_PYTHON
21651 if test -n "$PYTHON"; then
21652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21653 $as_echo "$PYTHON" >&6; }
21654 else
21655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21656 $as_echo "no" >&6; }
21657 fi
21658
21659
21660         if test -z "$PYTHON"; then
21661            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21662            PYTHON_VERSION=""
21663         fi
21664
21665         #
21666         # Check for a version of Python >= 2.1.0
21667         #
21668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21669 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21670         ac_supports_python_ver=`$PYTHON -c "import sys; \
21671                 ver = sys.version.split ()[0]; \
21672                 print (ver >= '2.1.0')"`
21673         if test "$ac_supports_python_ver" != "True"; then
21674                 if test -z "$PYTHON_NOVERSIONCHECK"; then
21675                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21676 $as_echo "no" >&6; }
21677                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21679 as_fn_error $? "
21680 This version of the AC_PYTHON_DEVEL macro
21681 doesn't work properly with versions of Python before
21682 2.1.0. You may need to re-run configure, setting the
21683 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21684 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21685 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21686 to something else than an empty string.
21687
21688 See \`config.log' for more details" "$LINENO" 5; }
21689                 else
21690                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21691 $as_echo "skip at user request" >&6; }
21692                 fi
21693         else
21694                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21695 $as_echo "yes" >&6; }
21696         fi
21697
21698         #
21699         # if the macro parameter ``version'' is set, honour it
21700         #
21701         if test -n ""; then
21702                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21703 $as_echo_n "checking for a version of Python ... " >&6; }
21704                 ac_supports_python_ver=`$PYTHON -c "import sys; \
21705                         ver = sys.version.split ()[0]; \
21706                         print (ver )"`
21707                 if test "$ac_supports_python_ver" = "True"; then
21708                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21709 $as_echo "yes" >&6; }
21710                 else
21711                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21712 $as_echo "no" >&6; }
21713                         as_fn_error $? "this package requires Python .
21714 If you have it installed, but it isn't the default Python
21715 interpreter in your system path, please pass the PYTHON_VERSION
21716 variable to configure. See \`\`configure --help'' for reference.
21717 " "$LINENO" 5
21718                         PYTHON_VERSION=""
21719                 fi
21720         fi
21721
21722         #
21723         # Check if you have distutils, else fail
21724         #
21725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21726 $as_echo_n "checking for the distutils Python package... " >&6; }
21727         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21728         if test -z "$ac_distutils_result"; then
21729                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21730 $as_echo "yes" >&6; }
21731         else
21732                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21733 $as_echo "no" >&6; }
21734                 as_fn_error $? "cannot import Python module \"distutils\".
21735 Please check your Python installation. The error was:
21736 $ac_distutils_result" "$LINENO" 5
21737                 PYTHON_VERSION=""
21738         fi
21739
21740         #
21741         # Check for Python include path
21742         #
21743         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21744 $as_echo_n "checking for Python include path... " >&6; }
21745         if test -z "$PYTHON_CPPFLAGS"; then
21746                 python_path=`$PYTHON -c "import distutils.sysconfig; \
21747                         print (distutils.sysconfig.get_python_inc ());"`
21748                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21749                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21750                 if test -n "${python_path}"; then
21751                         if test "${plat_python_path}" != "${python_path}"; then
21752                                 python_path="-I$python_path -I$plat_python_path"
21753                         else
21754                                 python_path="-I$python_path"
21755                         fi
21756                 fi
21757                 PYTHON_CPPFLAGS=$python_path
21758         fi
21759         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21760 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21761
21762
21763         #
21764         # Check for Python library path
21765         #
21766         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21767 $as_echo_n "checking for Python library path... " >&6; }
21768         if test -z "$PYTHON_LDFLAGS"; then
21769                 # (makes two attempts to ensure we've got a version number
21770                 # from the interpreter)
21771                 ac_python_version=`cat<<EOD | $PYTHON -
21772
21773 # join all versioning strings, on some systems
21774 # major/minor numbers could be in different list elements
21775 from distutils.sysconfig import *
21776 e = get_config_var('VERSION')
21777 if e is not None:
21778         print(e)
21779 EOD`
21780
21781                 if test -z "$ac_python_version"; then
21782                         if test -n "$PYTHON_VERSION"; then
21783                                 ac_python_version=$PYTHON_VERSION
21784                         else
21785                                 ac_python_version=`$PYTHON -c "import sys; \
21786                                         print (sys.version[:3])"`
21787                         fi
21788                 fi
21789
21790                 # Make the versioning information available to the compiler
21791
21792                 # JW: We don't need it and it interferes with the hack
21793                 # to detect multiple Pyhton versions
21794                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21795                 #                  [If available, contains the Python version number currently in use.])
21796
21797                 # First, the library directory:
21798                 ac_python_libdir=`cat<<EOD | $PYTHON -
21799
21800 # There should be only one
21801 import distutils.sysconfig
21802 e = distutils.sysconfig.get_config_var('LIBDIR')
21803 if e is not None:
21804         print (e)
21805 EOD`
21806
21807                 # Now, for the library:
21808                 ac_python_library=`cat<<EOD | $PYTHON -
21809
21810 import distutils.sysconfig
21811 c = distutils.sysconfig.get_config_vars()
21812 if 'LDVERSION' in c:
21813         print ('python'+c['LDVERSION'])
21814 else:
21815         print ('python'+c['VERSION'])
21816 EOD`
21817
21818                 # This small piece shamelessly adapted from PostgreSQL python macro;
21819                 # credits goes to momjian, I think. I'd like to put the right name
21820                 # in the credits, if someone can point me in the right direction... ?
21821                 #
21822                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21823                 then
21824                         # use the official shared library
21825                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21826                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21827                 else
21828                         # old way: use libpython from python_configdir
21829                         ac_python_libdir=`$PYTHON -c \
21830                           "from distutils.sysconfig import get_python_lib as f; \
21831                           import os; \
21832                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21833                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21834                 fi
21835
21836                 if test -z "PYTHON_LDFLAGS"; then
21837                         as_fn_error $? "
21838   Cannot determine location of your Python DSO. Please check it was installed with
21839   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21840                         " "$LINENO" 5
21841                 fi
21842         fi
21843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21844 $as_echo "$PYTHON_LDFLAGS" >&6; }
21845
21846
21847         #
21848         # Check for site packages
21849         #
21850         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21851 $as_echo_n "checking for Python site-packages path... " >&6; }
21852         if test -z "$PYTHON_SITE_PKG"; then
21853                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21854                         print (distutils.sysconfig.get_python_lib(0,0));"`
21855         fi
21856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21857 $as_echo "$PYTHON_SITE_PKG" >&6; }
21858
21859
21860         #
21861         # libraries which must be linked in when embedding
21862         #
21863         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21864 $as_echo_n "checking python extra libraries... " >&6; }
21865         if test -z "$PYTHON_EXTRA_LIBS"; then
21866            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21867                 conf = distutils.sysconfig.get_config_var; \
21868                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21869         fi
21870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21871 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21872
21873
21874         #
21875         # linking flags needed when embedding
21876         #
21877         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21878 $as_echo_n "checking python extra linking flags... " >&6; }
21879         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21880                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21881                         conf = distutils.sysconfig.get_config_var; \
21882                         print (conf('LINKFORSHARED'))"`
21883         fi
21884         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21885 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21886
21887
21888         #
21889         # final check to see if everything compiles alright
21890         #
21891         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21892 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21893         # save current global flags
21894         ac_save_LIBS="$LIBS"
21895         ac_save_CPPFLAGS="$CPPFLAGS"
21896         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21897         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21898         ac_ext=c
21899 ac_cpp='$CPP $CPPFLAGS'
21900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21903
21904         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21905 /* end confdefs.h.  */
21906
21907                 #include <Python.h>
21908 int
21909 main ()
21910 {
21911 Py_Initialize();
21912   ;
21913   return 0;
21914 }
21915
21916 _ACEOF
21917 if ac_fn_c_try_link "$LINENO"; then :
21918   pythonexists=yes
21919 else
21920   pythonexists=no
21921 fi
21922 rm -f core conftest.err conftest.$ac_objext \
21923     conftest$ac_exeext conftest.$ac_ext
21924         ac_ext=c
21925 ac_cpp='$CPP $CPPFLAGS'
21926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21929
21930         # turn back to default flags
21931         CPPFLAGS="$ac_save_CPPFLAGS"
21932         LIBS="$ac_save_LIBS"
21933
21934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21935 $as_echo "$pythonexists" >&6; }
21936
21937         if test ! "x$pythonexists" = "xyes"; then
21938            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21939   Could not link test program to Python. Maybe the main Python library has been
21940   installed in some non-standard library path. If so, pass it to configure,
21941   via the LDFLAGS environment variable.
21942   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21943   ============================================================================
21944    You probably have to install the development version of the Python package
21945    for your distribution.  The exact name of this package varies among them.
21946   ============================================================================
21947            " >&5
21948 $as_echo "$as_me: WARNING:
21949   Could not link test program to Python. Maybe the main Python library has been
21950   installed in some non-standard library path. If so, pass it to configure,
21951   via the LDFLAGS environment variable.
21952   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21953   ============================================================================
21954    You probably have to install the development version of the Python package
21955    for your distribution.  The exact name of this package varies among them.
21956   ============================================================================
21957            " >&2;}
21958           PYTHON_VERSION=""
21959         fi
21960
21961         #
21962         # all done!
21963         #
21964
21965                 if test "$PYTHON_VERSION"; then
21966                         PYTHONS="$(echo $PYTHONS $PYTHON)"
21967                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
21968                 fi
21969
21970   fi
21971
21972
21973            unset PYTHON
21974             unset PYTHON_VERSION
21975             unset PYTHON_CPPFLAGS
21976             unset PYTHON_LDFLAGS
21977             unset PYTHON_SITE_PKG
21978             unset PYTHON_EXTRA_LIBS
21979             unset PYTHON_EXTRA_LDFLAGS
21980             unset ac_cv_path_PYTHON
21981             unset am_cv_pathless_PYTHON
21982             unset am_cv_python_version
21983             unset am_cv_python_platform
21984             unset am_cv_python_pythondir
21985             unset am_cv_python_pyexecdir
21986
21987
21988
21989
21990
21991
21992         if test -n "$PYTHON"; then
21993       # If the user set $PYTHON, use it and don't search something else.
21994       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.7" >&5
21995 $as_echo_n "checking whether $PYTHON version is >= 3.7... " >&6; }
21996       prog="import sys
21997 # split strings by '.' and convert to numeric.  Append some zeros
21998 # because we need at least 4 digits for the hex conversion.
21999 # map returns an iterator in Python 3.0 and a list in 2.x
22000 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22001 minverhex = 0
22002 # xrange is not present in Python 3.0 and range returns an iterator
22003 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22004 sys.exit(sys.hexversion < minverhex)"
22005   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22006    ($PYTHON -c "$prog") >&5 2>&5
22007    ac_status=$?
22008    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009    (exit $ac_status); }; then :
22010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22011 $as_echo "yes" >&6; }
22012 else
22013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014 $as_echo "no" >&6; }
22015                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22016 fi
22017       am_display_PYTHON=$PYTHON
22018     else
22019       # Otherwise, try each interpreter until we find one that satisfies
22020       # VERSION.
22021       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.7" >&5
22022 $as_echo_n "checking for a Python interpreter with version >= 3.7... " >&6; }
22023 if ${am_cv_pathless_PYTHON+:} false; then :
22024   $as_echo_n "(cached) " >&6
22025 else
22026
22027         for am_cv_pathless_PYTHON           in python3.7 none; do
22028           test "$am_cv_pathless_PYTHON" = none && break
22029           prog="import sys
22030 # split strings by '.' and convert to numeric.  Append some zeros
22031 # because we need at least 4 digits for the hex conversion.
22032 # map returns an iterator in Python 3.0 and a list in 2.x
22033 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22034 minverhex = 0
22035 # xrange is not present in Python 3.0 and range returns an iterator
22036 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22037 sys.exit(sys.hexversion < minverhex)"
22038   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22039    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22040    ac_status=$?
22041    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042    (exit $ac_status); }; then :
22043   break
22044 fi
22045         done
22046 fi
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22048 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22049       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22050       if test "$am_cv_pathless_PYTHON" = none; then
22051         PYTHON=:
22052       else
22053         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22054 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22056 $as_echo_n "checking for $ac_word... " >&6; }
22057 if ${ac_cv_path_PYTHON+:} false; then :
22058   $as_echo_n "(cached) " >&6
22059 else
22060   case $PYTHON in
22061   [\\/]* | ?:[\\/]*)
22062   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22063   ;;
22064   *)
22065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22066 for as_dir in $PATH
22067 do
22068   IFS=$as_save_IFS
22069   test -z "$as_dir" && as_dir=.
22070     for ac_exec_ext in '' $ac_executable_extensions; do
22071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22072     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22074     break 2
22075   fi
22076 done
22077   done
22078 IFS=$as_save_IFS
22079
22080   ;;
22081 esac
22082 fi
22083 PYTHON=$ac_cv_path_PYTHON
22084 if test -n "$PYTHON"; then
22085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22086 $as_echo "$PYTHON" >&6; }
22087 else
22088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22089 $as_echo "no" >&6; }
22090 fi
22091
22092
22093       fi
22094       am_display_PYTHON=$am_cv_pathless_PYTHON
22095     fi
22096
22097
22098   if test "$PYTHON" = :; then
22099       :
22100   else
22101
22102
22103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22104 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22105 if ${am_cv_python_version+:} false; then :
22106   $as_echo_n "(cached) " >&6
22107 else
22108   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22109 fi
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22111 $as_echo "$am_cv_python_version" >&6; }
22112   PYTHON_VERSION=$am_cv_python_version
22113
22114
22115
22116   PYTHON_PREFIX='${prefix}'
22117
22118   PYTHON_EXEC_PREFIX='${exec_prefix}'
22119
22120
22121
22122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22123 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22124 if ${am_cv_python_platform+:} false; then :
22125   $as_echo_n "(cached) " >&6
22126 else
22127   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22128 fi
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22130 $as_echo "$am_cv_python_platform" >&6; }
22131   PYTHON_PLATFORM=$am_cv_python_platform
22132
22133
22134   # Just factor out some code duplication.
22135   am_python_setup_sysconfig="\
22136 import sys
22137 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22138 # with python 3.x.  See automake bug#10227.
22139 try:
22140     import sysconfig
22141 except ImportError:
22142     can_use_sysconfig = 0
22143 else:
22144     can_use_sysconfig = 1
22145 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22146 # <https://github.com/pypa/virtualenv/issues/118>
22147 try:
22148     from platform import python_implementation
22149     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22150         can_use_sysconfig = 0
22151 except ImportError:
22152     pass"
22153
22154
22155             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22156 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22157 if ${am_cv_python_pythondir+:} false; then :
22158   $as_echo_n "(cached) " >&6
22159 else
22160   if test "x$prefix" = xNONE
22161      then
22162        am_py_prefix=$ac_default_prefix
22163      else
22164        am_py_prefix=$prefix
22165      fi
22166      am_cv_python_pythondir=`$PYTHON -c "
22167 $am_python_setup_sysconfig
22168 if can_use_sysconfig:
22169     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22170 else:
22171     from distutils import sysconfig
22172     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22173 sys.stdout.write(sitedir)"`
22174      case $am_cv_python_pythondir in
22175      $am_py_prefix*)
22176        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22177        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22178        ;;
22179      *)
22180        case $am_py_prefix in
22181          /usr|/System*) ;;
22182          *)
22183           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22184           ;;
22185        esac
22186        ;;
22187      esac
22188
22189 fi
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22191 $as_echo "$am_cv_python_pythondir" >&6; }
22192   pythondir=$am_cv_python_pythondir
22193
22194
22195
22196   pkgpythondir=\${pythondir}/$PACKAGE
22197
22198
22199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22200 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22201 if ${am_cv_python_pyexecdir+:} false; then :
22202   $as_echo_n "(cached) " >&6
22203 else
22204   if test "x$exec_prefix" = xNONE
22205      then
22206        am_py_exec_prefix=$am_py_prefix
22207      else
22208        am_py_exec_prefix=$exec_prefix
22209      fi
22210      am_cv_python_pyexecdir=`$PYTHON -c "
22211 $am_python_setup_sysconfig
22212 if can_use_sysconfig:
22213     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22214 else:
22215     from distutils import sysconfig
22216     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22217 sys.stdout.write(sitedir)"`
22218      case $am_cv_python_pyexecdir in
22219      $am_py_exec_prefix*)
22220        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22221        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22222        ;;
22223      *)
22224        case $am_py_exec_prefix in
22225          /usr|/System*) ;;
22226          *)
22227            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22228            ;;
22229        esac
22230        ;;
22231      esac
22232
22233 fi
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22235 $as_echo "$am_cv_python_pyexecdir" >&6; }
22236   pyexecdir=$am_cv_python_pyexecdir
22237
22238
22239
22240   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22241
22242
22243
22244
22245         #
22246         # Allow the use of a (user set) custom python version
22247         #
22248
22249
22250         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22251 set dummy python$PYTHON_VERSION; ac_word=$2
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22253 $as_echo_n "checking for $ac_word... " >&6; }
22254 if ${ac_cv_path_PYTHON+:} false; then :
22255   $as_echo_n "(cached) " >&6
22256 else
22257   case $PYTHON in
22258   [\\/]* | ?:[\\/]*)
22259   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22260   ;;
22261   *)
22262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22263 for as_dir in $PATH
22264 do
22265   IFS=$as_save_IFS
22266   test -z "$as_dir" && as_dir=.
22267     for ac_exec_ext in '' $ac_executable_extensions; do
22268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22269     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22271     break 2
22272   fi
22273 done
22274   done
22275 IFS=$as_save_IFS
22276
22277   ;;
22278 esac
22279 fi
22280 PYTHON=$ac_cv_path_PYTHON
22281 if test -n "$PYTHON"; then
22282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22283 $as_echo "$PYTHON" >&6; }
22284 else
22285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22286 $as_echo "no" >&6; }
22287 fi
22288
22289
22290         if test -z "$PYTHON"; then
22291            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22292            PYTHON_VERSION=""
22293         fi
22294
22295         #
22296         # Check for a version of Python >= 2.1.0
22297         #
22298         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22299 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22300         ac_supports_python_ver=`$PYTHON -c "import sys; \
22301                 ver = sys.version.split ()[0]; \
22302                 print (ver >= '2.1.0')"`
22303         if test "$ac_supports_python_ver" != "True"; then
22304                 if test -z "$PYTHON_NOVERSIONCHECK"; then
22305                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22306 $as_echo "no" >&6; }
22307                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22309 as_fn_error $? "
22310 This version of the AC_PYTHON_DEVEL macro
22311 doesn't work properly with versions of Python before
22312 2.1.0. You may need to re-run configure, setting the
22313 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22314 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22315 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22316 to something else than an empty string.
22317
22318 See \`config.log' for more details" "$LINENO" 5; }
22319                 else
22320                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22321 $as_echo "skip at user request" >&6; }
22322                 fi
22323         else
22324                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22325 $as_echo "yes" >&6; }
22326         fi
22327
22328         #
22329         # if the macro parameter ``version'' is set, honour it
22330         #
22331         if test -n ""; then
22332                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
22333 $as_echo_n "checking for a version of Python ... " >&6; }
22334                 ac_supports_python_ver=`$PYTHON -c "import sys; \
22335                         ver = sys.version.split ()[0]; \
22336                         print (ver )"`
22337                 if test "$ac_supports_python_ver" = "True"; then
22338                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22339 $as_echo "yes" >&6; }
22340                 else
22341                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22342 $as_echo "no" >&6; }
22343                         as_fn_error $? "this package requires Python .
22344 If you have it installed, but it isn't the default Python
22345 interpreter in your system path, please pass the PYTHON_VERSION
22346 variable to configure. See \`\`configure --help'' for reference.
22347 " "$LINENO" 5
22348                         PYTHON_VERSION=""
22349                 fi
22350         fi
22351
22352         #
22353         # Check if you have distutils, else fail
22354         #
22355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
22356 $as_echo_n "checking for the distutils Python package... " >&6; }
22357         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22358         if test -z "$ac_distutils_result"; then
22359                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22360 $as_echo "yes" >&6; }
22361         else
22362                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22363 $as_echo "no" >&6; }
22364                 as_fn_error $? "cannot import Python module \"distutils\".
22365 Please check your Python installation. The error was:
22366 $ac_distutils_result" "$LINENO" 5
22367                 PYTHON_VERSION=""
22368         fi
22369
22370         #
22371         # Check for Python include path
22372         #
22373         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
22374 $as_echo_n "checking for Python include path... " >&6; }
22375         if test -z "$PYTHON_CPPFLAGS"; then
22376                 python_path=`$PYTHON -c "import distutils.sysconfig; \
22377                         print (distutils.sysconfig.get_python_inc ());"`
22378                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
22379                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
22380                 if test -n "${python_path}"; then
22381                         if test "${plat_python_path}" != "${python_path}"; then
22382                                 python_path="-I$python_path -I$plat_python_path"
22383                         else
22384                                 python_path="-I$python_path"
22385                         fi
22386                 fi
22387                 PYTHON_CPPFLAGS=$python_path
22388         fi
22389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
22390 $as_echo "$PYTHON_CPPFLAGS" >&6; }
22391
22392
22393         #
22394         # Check for Python library path
22395         #
22396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
22397 $as_echo_n "checking for Python library path... " >&6; }
22398         if test -z "$PYTHON_LDFLAGS"; then
22399                 # (makes two attempts to ensure we've got a version number
22400                 # from the interpreter)
22401                 ac_python_version=`cat<<EOD | $PYTHON -
22402
22403 # join all versioning strings, on some systems
22404 # major/minor numbers could be in different list elements
22405 from distutils.sysconfig import *
22406 e = get_config_var('VERSION')
22407 if e is not None:
22408         print(e)
22409 EOD`
22410
22411                 if test -z "$ac_python_version"; then
22412                         if test -n "$PYTHON_VERSION"; then
22413                                 ac_python_version=$PYTHON_VERSION
22414                         else
22415                                 ac_python_version=`$PYTHON -c "import sys; \
22416                                         print (sys.version[:3])"`
22417                         fi
22418                 fi
22419
22420                 # Make the versioning information available to the compiler
22421
22422                 # JW: We don't need it and it interferes with the hack
22423                 # to detect multiple Pyhton versions
22424                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
22425                 #                  [If available, contains the Python version number currently in use.])
22426
22427                 # First, the library directory:
22428                 ac_python_libdir=`cat<<EOD | $PYTHON -
22429
22430 # There should be only one
22431 import distutils.sysconfig
22432 e = distutils.sysconfig.get_config_var('LIBDIR')
22433 if e is not None:
22434         print (e)
22435 EOD`
22436
22437                 # Now, for the library:
22438                 ac_python_library=`cat<<EOD | $PYTHON -
22439
22440 import distutils.sysconfig
22441 c = distutils.sysconfig.get_config_vars()
22442 if 'LDVERSION' in c:
22443         print ('python'+c['LDVERSION'])
22444 else:
22445         print ('python'+c['VERSION'])
22446 EOD`
22447
22448                 # This small piece shamelessly adapted from PostgreSQL python macro;
22449                 # credits goes to momjian, I think. I'd like to put the right name
22450                 # in the credits, if someone can point me in the right direction... ?
22451                 #
22452                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
22453                 then
22454                         # use the official shared library
22455                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
22456                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
22457                 else
22458                         # old way: use libpython from python_configdir
22459                         ac_python_libdir=`$PYTHON -c \
22460                           "from distutils.sysconfig import get_python_lib as f; \
22461                           import os; \
22462                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
22463                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
22464                 fi
22465
22466                 if test -z "PYTHON_LDFLAGS"; then
22467                         as_fn_error $? "
22468   Cannot determine location of your Python DSO. Please check it was installed with
22469   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
22470                         " "$LINENO" 5
22471                 fi
22472         fi
22473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
22474 $as_echo "$PYTHON_LDFLAGS" >&6; }
22475
22476
22477         #
22478         # Check for site packages
22479         #
22480         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
22481 $as_echo_n "checking for Python site-packages path... " >&6; }
22482         if test -z "$PYTHON_SITE_PKG"; then
22483                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
22484                         print (distutils.sysconfig.get_python_lib(0,0));"`
22485         fi
22486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
22487 $as_echo "$PYTHON_SITE_PKG" >&6; }
22488
22489
22490         #
22491         # libraries which must be linked in when embedding
22492         #
22493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
22494 $as_echo_n "checking python extra libraries... " >&6; }
22495         if test -z "$PYTHON_EXTRA_LIBS"; then
22496            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
22497                 conf = distutils.sysconfig.get_config_var; \
22498                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
22499         fi
22500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
22501 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
22502
22503
22504         #
22505         # linking flags needed when embedding
22506         #
22507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
22508 $as_echo_n "checking python extra linking flags... " >&6; }
22509         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
22510                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
22511                         conf = distutils.sysconfig.get_config_var; \
22512                         print (conf('LINKFORSHARED'))"`
22513         fi
22514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
22515 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
22516
22517
22518         #
22519         # final check to see if everything compiles alright
22520         #
22521         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
22522 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
22523         # save current global flags
22524         ac_save_LIBS="$LIBS"
22525         ac_save_CPPFLAGS="$CPPFLAGS"
22526         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
22527         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
22528         ac_ext=c
22529 ac_cpp='$CPP $CPPFLAGS'
22530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22533
22534         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h.  */
22536
22537                 #include <Python.h>
22538 int
22539 main ()
22540 {
22541 Py_Initialize();
22542   ;
22543   return 0;
22544 }
22545
22546 _ACEOF
22547 if ac_fn_c_try_link "$LINENO"; then :
22548   pythonexists=yes
22549 else
22550   pythonexists=no
22551 fi
22552 rm -f core conftest.err conftest.$ac_objext \
22553     conftest$ac_exeext conftest.$ac_ext
22554         ac_ext=c
22555 ac_cpp='$CPP $CPPFLAGS'
22556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22559
22560         # turn back to default flags
22561         CPPFLAGS="$ac_save_CPPFLAGS"
22562         LIBS="$ac_save_LIBS"
22563
22564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
22565 $as_echo "$pythonexists" >&6; }
22566
22567         if test ! "x$pythonexists" = "xyes"; then
22568            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22569   Could not link test program to Python. Maybe the main Python library has been
22570   installed in some non-standard library path. If so, pass it to configure,
22571   via the LDFLAGS environment variable.
22572   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22573   ============================================================================
22574    You probably have to install the development version of the Python package
22575    for your distribution.  The exact name of this package varies among them.
22576   ============================================================================
22577            " >&5
22578 $as_echo "$as_me: WARNING:
22579   Could not link test program to Python. Maybe the main Python library has been
22580   installed in some non-standard library path. If so, pass it to configure,
22581   via the LDFLAGS environment variable.
22582   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22583   ============================================================================
22584    You probably have to install the development version of the Python package
22585    for your distribution.  The exact name of this package varies among them.
22586   ============================================================================
22587            " >&2;}
22588           PYTHON_VERSION=""
22589         fi
22590
22591         #
22592         # all done!
22593         #
22594
22595                 if test "$PYTHON_VERSION"; then
22596                         PYTHONS="$(echo $PYTHONS $PYTHON)"
22597                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22598                 fi
22599
22600   fi
22601
22602
22603            unset PYTHON
22604             unset PYTHON_VERSION
22605             unset PYTHON_CPPFLAGS
22606             unset PYTHON_LDFLAGS
22607             unset PYTHON_SITE_PKG
22608             unset PYTHON_EXTRA_LIBS
22609             unset PYTHON_EXTRA_LDFLAGS
22610             unset ac_cv_path_PYTHON
22611             unset am_cv_pathless_PYTHON
22612             unset am_cv_python_version
22613             unset am_cv_python_platform
22614             unset am_cv_python_pythondir
22615             unset am_cv_python_pyexecdir
22616
22617
22618
22619
22620
22621
22622         if test -n "$PYTHON"; then
22623       # If the user set $PYTHON, use it and don't search something else.
22624       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.8" >&5
22625 $as_echo_n "checking whether $PYTHON version is >= 3.8... " >&6; }
22626       prog="import sys
22627 # split strings by '.' and convert to numeric.  Append some zeros
22628 # because we need at least 4 digits for the hex conversion.
22629 # map returns an iterator in Python 3.0 and a list in 2.x
22630 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22631 minverhex = 0
22632 # xrange is not present in Python 3.0 and range returns an iterator
22633 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22634 sys.exit(sys.hexversion < minverhex)"
22635   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22636    ($PYTHON -c "$prog") >&5 2>&5
22637    ac_status=$?
22638    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639    (exit $ac_status); }; then :
22640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22641 $as_echo "yes" >&6; }
22642 else
22643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22644 $as_echo "no" >&6; }
22645                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22646 fi
22647       am_display_PYTHON=$PYTHON
22648     else
22649       # Otherwise, try each interpreter until we find one that satisfies
22650       # VERSION.
22651       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.8" >&5
22652 $as_echo_n "checking for a Python interpreter with version >= 3.8... " >&6; }
22653 if ${am_cv_pathless_PYTHON+:} false; then :
22654   $as_echo_n "(cached) " >&6
22655 else
22656
22657         for am_cv_pathless_PYTHON           in python3.8 none; do
22658           test "$am_cv_pathless_PYTHON" = none && break
22659           prog="import sys
22660 # split strings by '.' and convert to numeric.  Append some zeros
22661 # because we need at least 4 digits for the hex conversion.
22662 # map returns an iterator in Python 3.0 and a list in 2.x
22663 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22664 minverhex = 0
22665 # xrange is not present in Python 3.0 and range returns an iterator
22666 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22667 sys.exit(sys.hexversion < minverhex)"
22668   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22669    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22670    ac_status=$?
22671    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672    (exit $ac_status); }; then :
22673   break
22674 fi
22675         done
22676 fi
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22678 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22679       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22680       if test "$am_cv_pathless_PYTHON" = none; then
22681         PYTHON=:
22682       else
22683         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22684 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22686 $as_echo_n "checking for $ac_word... " >&6; }
22687 if ${ac_cv_path_PYTHON+:} false; then :
22688   $as_echo_n "(cached) " >&6
22689 else
22690   case $PYTHON in
22691   [\\/]* | ?:[\\/]*)
22692   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22693   ;;
22694   *)
22695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22696 for as_dir in $PATH
22697 do
22698   IFS=$as_save_IFS
22699   test -z "$as_dir" && as_dir=.
22700     for ac_exec_ext in '' $ac_executable_extensions; do
22701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22702     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22704     break 2
22705   fi
22706 done
22707   done
22708 IFS=$as_save_IFS
22709
22710   ;;
22711 esac
22712 fi
22713 PYTHON=$ac_cv_path_PYTHON
22714 if test -n "$PYTHON"; then
22715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22716 $as_echo "$PYTHON" >&6; }
22717 else
22718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22719 $as_echo "no" >&6; }
22720 fi
22721
22722
22723       fi
22724       am_display_PYTHON=$am_cv_pathless_PYTHON
22725     fi
22726
22727
22728   if test "$PYTHON" = :; then
22729       :
22730   else
22731
22732
22733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22734 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22735 if ${am_cv_python_version+:} false; then :
22736   $as_echo_n "(cached) " >&6
22737 else
22738   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22739 fi
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22741 $as_echo "$am_cv_python_version" >&6; }
22742   PYTHON_VERSION=$am_cv_python_version
22743
22744
22745
22746   PYTHON_PREFIX='${prefix}'
22747
22748   PYTHON_EXEC_PREFIX='${exec_prefix}'
22749
22750
22751
22752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22753 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22754 if ${am_cv_python_platform+:} false; then :
22755   $as_echo_n "(cached) " >&6
22756 else
22757   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22758 fi
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22760 $as_echo "$am_cv_python_platform" >&6; }
22761   PYTHON_PLATFORM=$am_cv_python_platform
22762
22763
22764   # Just factor out some code duplication.
22765   am_python_setup_sysconfig="\
22766 import sys
22767 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22768 # with python 3.x.  See automake bug#10227.
22769 try:
22770     import sysconfig
22771 except ImportError:
22772     can_use_sysconfig = 0
22773 else:
22774     can_use_sysconfig = 1
22775 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22776 # <https://github.com/pypa/virtualenv/issues/118>
22777 try:
22778     from platform import python_implementation
22779     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22780         can_use_sysconfig = 0
22781 except ImportError:
22782     pass"
22783
22784
22785             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22786 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22787 if ${am_cv_python_pythondir+:} false; then :
22788   $as_echo_n "(cached) " >&6
22789 else
22790   if test "x$prefix" = xNONE
22791      then
22792        am_py_prefix=$ac_default_prefix
22793      else
22794        am_py_prefix=$prefix
22795      fi
22796      am_cv_python_pythondir=`$PYTHON -c "
22797 $am_python_setup_sysconfig
22798 if can_use_sysconfig:
22799     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22800 else:
22801     from distutils import sysconfig
22802     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22803 sys.stdout.write(sitedir)"`
22804      case $am_cv_python_pythondir in
22805      $am_py_prefix*)
22806        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22807        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22808        ;;
22809      *)
22810        case $am_py_prefix in
22811          /usr|/System*) ;;
22812          *)
22813           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22814           ;;
22815        esac
22816        ;;
22817      esac
22818
22819 fi
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22821 $as_echo "$am_cv_python_pythondir" >&6; }
22822   pythondir=$am_cv_python_pythondir
22823
22824
22825
22826   pkgpythondir=\${pythondir}/$PACKAGE
22827
22828
22829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22830 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22831 if ${am_cv_python_pyexecdir+:} false; then :
22832   $as_echo_n "(cached) " >&6
22833 else
22834   if test "x$exec_prefix" = xNONE
22835      then
22836        am_py_exec_prefix=$am_py_prefix
22837      else
22838        am_py_exec_prefix=$exec_prefix
22839      fi
22840      am_cv_python_pyexecdir=`$PYTHON -c "
22841 $am_python_setup_sysconfig
22842 if can_use_sysconfig:
22843     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22844 else:
22845     from distutils import sysconfig
22846     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22847 sys.stdout.write(sitedir)"`
22848      case $am_cv_python_pyexecdir in
22849      $am_py_exec_prefix*)
22850        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22851        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22852        ;;
22853      *)
22854        case $am_py_exec_prefix in
22855          /usr|/System*) ;;
22856          *)
22857            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22858            ;;
22859        esac
22860        ;;
22861      esac
22862
22863 fi
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22865 $as_echo "$am_cv_python_pyexecdir" >&6; }
22866   pyexecdir=$am_cv_python_pyexecdir
22867
22868
22869
22870   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22871
22872
22873
22874
22875         #
22876         # Allow the use of a (user set) custom python version
22877         #
22878
22879
22880         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22881 set dummy python$PYTHON_VERSION; ac_word=$2
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22883 $as_echo_n "checking for $ac_word... " >&6; }
22884 if ${ac_cv_path_PYTHON+:} false; then :
22885   $as_echo_n "(cached) " >&6
22886 else
22887   case $PYTHON in
22888   [\\/]* | ?:[\\/]*)
22889   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22890   ;;
22891   *)
22892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22893 for as_dir in $PATH
22894 do
22895   IFS=$as_save_IFS
22896   test -z "$as_dir" && as_dir=.
22897     for ac_exec_ext in '' $ac_executable_extensions; do
22898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22899     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22901     break 2
22902   fi
22903 done
22904   done
22905 IFS=$as_save_IFS
22906
22907   ;;
22908 esac
22909 fi
22910 PYTHON=$ac_cv_path_PYTHON
22911 if test -n "$PYTHON"; then
22912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22913 $as_echo "$PYTHON" >&6; }
22914 else
22915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22916 $as_echo "no" >&6; }
22917 fi
22918
22919
22920         if test -z "$PYTHON"; then
22921            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22922            PYTHON_VERSION=""
22923         fi
22924
22925         #
22926         # Check for a version of Python >= 2.1.0
22927         #
22928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22929 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22930         ac_supports_python_ver=`$PYTHON -c "import sys; \
22931                 ver = sys.version.split ()[0]; \
22932                 print (ver >= '2.1.0')"`
22933         if test "$ac_supports_python_ver" != "True"; then
22934                 if test -z "$PYTHON_NOVERSIONCHECK"; then
22935                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22936 $as_echo "no" >&6; }
22937                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22939 as_fn_error $? "
22940 This version of the AC_PYTHON_DEVEL macro
22941 doesn't work properly with versions of Python before
22942 2.1.0. You may need to re-run configure, setting the
22943 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22944 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22945 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22946 to something else than an empty string.
22947
22948 See \`config.log' for more details" "$LINENO" 5; }
22949                 else
22950                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22951 $as_echo "skip at user request" >&6; }
22952                 fi
22953         else
22954                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22955 $as_echo "yes" >&6; }
22956         fi
22957
22958         #
22959         # if the macro parameter ``version'' is set, honour it
22960         #
22961         if test -n ""; then
22962                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
22963 $as_echo_n "checking for a version of Python ... " >&6; }
22964                 ac_supports_python_ver=`$PYTHON -c "import sys; \
22965                         ver = sys.version.split ()[0]; \
22966                         print (ver )"`
22967                 if test "$ac_supports_python_ver" = "True"; then
22968                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22969 $as_echo "yes" >&6; }
22970                 else
22971                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22972 $as_echo "no" >&6; }
22973                         as_fn_error $? "this package requires Python .
22974 If you have it installed, but it isn't the default Python
22975 interpreter in your system path, please pass the PYTHON_VERSION
22976 variable to configure. See \`\`configure --help'' for reference.
22977 " "$LINENO" 5
22978                         PYTHON_VERSION=""
22979                 fi
22980         fi
22981
22982         #
22983         # Check if you have distutils, else fail
22984         #
22985         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
22986 $as_echo_n "checking for the distutils Python package... " >&6; }
22987         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22988         if test -z "$ac_distutils_result"; then
22989                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22990 $as_echo "yes" >&6; }
22991         else
22992                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22993 $as_echo "no" >&6; }
22994                 as_fn_error $? "cannot import Python module \"distutils\".
22995 Please check your Python installation. The error was:
22996 $ac_distutils_result" "$LINENO" 5
22997                 PYTHON_VERSION=""
22998         fi
22999
23000         #
23001         # Check for Python include path
23002         #
23003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23004 $as_echo_n "checking for Python include path... " >&6; }
23005         if test -z "$PYTHON_CPPFLAGS"; then
23006                 python_path=`$PYTHON -c "import distutils.sysconfig; \
23007                         print (distutils.sysconfig.get_python_inc ());"`
23008                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23009                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23010                 if test -n "${python_path}"; then
23011                         if test "${plat_python_path}" != "${python_path}"; then
23012                                 python_path="-I$python_path -I$plat_python_path"
23013                         else
23014                                 python_path="-I$python_path"
23015                         fi
23016                 fi
23017                 PYTHON_CPPFLAGS=$python_path
23018         fi
23019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23020 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23021
23022
23023         #
23024         # Check for Python library path
23025         #
23026         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23027 $as_echo_n "checking for Python library path... " >&6; }
23028         if test -z "$PYTHON_LDFLAGS"; then
23029                 # (makes two attempts to ensure we've got a version number
23030                 # from the interpreter)
23031                 ac_python_version=`cat<<EOD | $PYTHON -
23032
23033 # join all versioning strings, on some systems
23034 # major/minor numbers could be in different list elements
23035 from distutils.sysconfig import *
23036 e = get_config_var('VERSION')
23037 if e is not None:
23038         print(e)
23039 EOD`
23040
23041                 if test -z "$ac_python_version"; then
23042                         if test -n "$PYTHON_VERSION"; then
23043                                 ac_python_version=$PYTHON_VERSION
23044                         else
23045                                 ac_python_version=`$PYTHON -c "import sys; \
23046                                         print (sys.version[:3])"`
23047                         fi
23048                 fi
23049
23050                 # Make the versioning information available to the compiler
23051
23052                 # JW: We don't need it and it interferes with the hack
23053                 # to detect multiple Pyhton versions
23054                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23055                 #                  [If available, contains the Python version number currently in use.])
23056
23057                 # First, the library directory:
23058                 ac_python_libdir=`cat<<EOD | $PYTHON -
23059
23060 # There should be only one
23061 import distutils.sysconfig
23062 e = distutils.sysconfig.get_config_var('LIBDIR')
23063 if e is not None:
23064         print (e)
23065 EOD`
23066
23067                 # Now, for the library:
23068                 ac_python_library=`cat<<EOD | $PYTHON -
23069
23070 import distutils.sysconfig
23071 c = distutils.sysconfig.get_config_vars()
23072 if 'LDVERSION' in c:
23073         print ('python'+c['LDVERSION'])
23074 else:
23075         print ('python'+c['VERSION'])
23076 EOD`
23077
23078                 # This small piece shamelessly adapted from PostgreSQL python macro;
23079                 # credits goes to momjian, I think. I'd like to put the right name
23080                 # in the credits, if someone can point me in the right direction... ?
23081                 #
23082                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23083                 then
23084                         # use the official shared library
23085                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23086                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23087                 else
23088                         # old way: use libpython from python_configdir
23089                         ac_python_libdir=`$PYTHON -c \
23090                           "from distutils.sysconfig import get_python_lib as f; \
23091                           import os; \
23092                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23093                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23094                 fi
23095
23096                 if test -z "PYTHON_LDFLAGS"; then
23097                         as_fn_error $? "
23098   Cannot determine location of your Python DSO. Please check it was installed with
23099   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23100                         " "$LINENO" 5
23101                 fi
23102         fi
23103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23104 $as_echo "$PYTHON_LDFLAGS" >&6; }
23105
23106
23107         #
23108         # Check for site packages
23109         #
23110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23111 $as_echo_n "checking for Python site-packages path... " >&6; }
23112         if test -z "$PYTHON_SITE_PKG"; then
23113                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23114                         print (distutils.sysconfig.get_python_lib(0,0));"`
23115         fi
23116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23117 $as_echo "$PYTHON_SITE_PKG" >&6; }
23118
23119
23120         #
23121         # libraries which must be linked in when embedding
23122         #
23123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23124 $as_echo_n "checking python extra libraries... " >&6; }
23125         if test -z "$PYTHON_EXTRA_LIBS"; then
23126            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23127                 conf = distutils.sysconfig.get_config_var; \
23128                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23129         fi
23130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23131 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23132
23133
23134         #
23135         # linking flags needed when embedding
23136         #
23137         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23138 $as_echo_n "checking python extra linking flags... " >&6; }
23139         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23140                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23141                         conf = distutils.sysconfig.get_config_var; \
23142                         print (conf('LINKFORSHARED'))"`
23143         fi
23144         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23145 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23146
23147
23148         #
23149         # final check to see if everything compiles alright
23150         #
23151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23152 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23153         # save current global flags
23154         ac_save_LIBS="$LIBS"
23155         ac_save_CPPFLAGS="$CPPFLAGS"
23156         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23157         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23158         ac_ext=c
23159 ac_cpp='$CPP $CPPFLAGS'
23160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23163
23164         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h.  */
23166
23167                 #include <Python.h>
23168 int
23169 main ()
23170 {
23171 Py_Initialize();
23172   ;
23173   return 0;
23174 }
23175
23176 _ACEOF
23177 if ac_fn_c_try_link "$LINENO"; then :
23178   pythonexists=yes
23179 else
23180   pythonexists=no
23181 fi
23182 rm -f core conftest.err conftest.$ac_objext \
23183     conftest$ac_exeext conftest.$ac_ext
23184         ac_ext=c
23185 ac_cpp='$CPP $CPPFLAGS'
23186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23189
23190         # turn back to default flags
23191         CPPFLAGS="$ac_save_CPPFLAGS"
23192         LIBS="$ac_save_LIBS"
23193
23194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23195 $as_echo "$pythonexists" >&6; }
23196
23197         if test ! "x$pythonexists" = "xyes"; then
23198            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23199   Could not link test program to Python. Maybe the main Python library has been
23200   installed in some non-standard library path. If so, pass it to configure,
23201   via the LDFLAGS environment variable.
23202   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23203   ============================================================================
23204    You probably have to install the development version of the Python package
23205    for your distribution.  The exact name of this package varies among them.
23206   ============================================================================
23207            " >&5
23208 $as_echo "$as_me: WARNING:
23209   Could not link test program to Python. Maybe the main Python library has been
23210   installed in some non-standard library path. If so, pass it to configure,
23211   via the LDFLAGS environment variable.
23212   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23213   ============================================================================
23214    You probably have to install the development version of the Python package
23215    for your distribution.  The exact name of this package varies among them.
23216   ============================================================================
23217            " >&2;}
23218           PYTHON_VERSION=""
23219         fi
23220
23221         #
23222         # all done!
23223         #
23224
23225                 if test "$PYTHON_VERSION"; then
23226                         PYTHONS="$(echo $PYTHONS $PYTHON)"
23227                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23228                 fi
23229
23230   fi
23231
23232
23233            unset PYTHON
23234             unset PYTHON_VERSION
23235             unset PYTHON_CPPFLAGS
23236             unset PYTHON_LDFLAGS
23237             unset PYTHON_SITE_PKG
23238             unset PYTHON_EXTRA_LIBS
23239             unset PYTHON_EXTRA_LDFLAGS
23240             unset ac_cv_path_PYTHON
23241             unset am_cv_pathless_PYTHON
23242             unset am_cv_python_version
23243             unset am_cv_python_platform
23244             unset am_cv_python_pythondir
23245             unset am_cv_python_pyexecdir
23246
23247
23248
23249
23250
23251
23252         if test -n "$PYTHON"; then
23253       # If the user set $PYTHON, use it and don't search something else.
23254       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.9" >&5
23255 $as_echo_n "checking whether $PYTHON version is >= 3.9... " >&6; }
23256       prog="import sys
23257 # split strings by '.' and convert to numeric.  Append some zeros
23258 # because we need at least 4 digits for the hex conversion.
23259 # map returns an iterator in Python 3.0 and a list in 2.x
23260 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23261 minverhex = 0
23262 # xrange is not present in Python 3.0 and range returns an iterator
23263 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23264 sys.exit(sys.hexversion < minverhex)"
23265   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23266    ($PYTHON -c "$prog") >&5 2>&5
23267    ac_status=$?
23268    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269    (exit $ac_status); }; then :
23270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23271 $as_echo "yes" >&6; }
23272 else
23273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23274 $as_echo "no" >&6; }
23275                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23276 fi
23277       am_display_PYTHON=$PYTHON
23278     else
23279       # Otherwise, try each interpreter until we find one that satisfies
23280       # VERSION.
23281       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.9" >&5
23282 $as_echo_n "checking for a Python interpreter with version >= 3.9... " >&6; }
23283 if ${am_cv_pathless_PYTHON+:} false; then :
23284   $as_echo_n "(cached) " >&6
23285 else
23286
23287         for am_cv_pathless_PYTHON           in python3.9 none; do
23288           test "$am_cv_pathless_PYTHON" = none && break
23289           prog="import sys
23290 # split strings by '.' and convert to numeric.  Append some zeros
23291 # because we need at least 4 digits for the hex conversion.
23292 # map returns an iterator in Python 3.0 and a list in 2.x
23293 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23294 minverhex = 0
23295 # xrange is not present in Python 3.0 and range returns an iterator
23296 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23297 sys.exit(sys.hexversion < minverhex)"
23298   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23299    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23300    ac_status=$?
23301    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302    (exit $ac_status); }; then :
23303   break
23304 fi
23305         done
23306 fi
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23308 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23309       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23310       if test "$am_cv_pathless_PYTHON" = none; then
23311         PYTHON=:
23312       else
23313         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23314 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23316 $as_echo_n "checking for $ac_word... " >&6; }
23317 if ${ac_cv_path_PYTHON+:} false; then :
23318   $as_echo_n "(cached) " >&6
23319 else
23320   case $PYTHON in
23321   [\\/]* | ?:[\\/]*)
23322   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23323   ;;
23324   *)
23325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23326 for as_dir in $PATH
23327 do
23328   IFS=$as_save_IFS
23329   test -z "$as_dir" && as_dir=.
23330     for ac_exec_ext in '' $ac_executable_extensions; do
23331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23332     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23334     break 2
23335   fi
23336 done
23337   done
23338 IFS=$as_save_IFS
23339
23340   ;;
23341 esac
23342 fi
23343 PYTHON=$ac_cv_path_PYTHON
23344 if test -n "$PYTHON"; then
23345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23346 $as_echo "$PYTHON" >&6; }
23347 else
23348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23349 $as_echo "no" >&6; }
23350 fi
23351
23352
23353       fi
23354       am_display_PYTHON=$am_cv_pathless_PYTHON
23355     fi
23356
23357
23358   if test "$PYTHON" = :; then
23359       :
23360   else
23361
23362
23363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23364 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23365 if ${am_cv_python_version+:} false; then :
23366   $as_echo_n "(cached) " >&6
23367 else
23368   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23369 fi
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
23371 $as_echo "$am_cv_python_version" >&6; }
23372   PYTHON_VERSION=$am_cv_python_version
23373
23374
23375
23376   PYTHON_PREFIX='${prefix}'
23377
23378   PYTHON_EXEC_PREFIX='${exec_prefix}'
23379
23380
23381
23382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
23383 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23384 if ${am_cv_python_platform+:} false; then :
23385   $as_echo_n "(cached) " >&6
23386 else
23387   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23388 fi
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
23390 $as_echo "$am_cv_python_platform" >&6; }
23391   PYTHON_PLATFORM=$am_cv_python_platform
23392
23393
23394   # Just factor out some code duplication.
23395   am_python_setup_sysconfig="\
23396 import sys
23397 # Prefer sysconfig over distutils.sysconfig, for better compatibility
23398 # with python 3.x.  See automake bug#10227.
23399 try:
23400     import sysconfig
23401 except ImportError:
23402     can_use_sysconfig = 0
23403 else:
23404     can_use_sysconfig = 1
23405 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
23406 # <https://github.com/pypa/virtualenv/issues/118>
23407 try:
23408     from platform import python_implementation
23409     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
23410         can_use_sysconfig = 0
23411 except ImportError:
23412     pass"
23413
23414
23415             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
23416 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23417 if ${am_cv_python_pythondir+:} false; then :
23418   $as_echo_n "(cached) " >&6
23419 else
23420   if test "x$prefix" = xNONE
23421      then
23422        am_py_prefix=$ac_default_prefix
23423      else
23424        am_py_prefix=$prefix
23425      fi
23426      am_cv_python_pythondir=`$PYTHON -c "
23427 $am_python_setup_sysconfig
23428 if can_use_sysconfig:
23429     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
23430 else:
23431     from distutils import sysconfig
23432     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
23433 sys.stdout.write(sitedir)"`
23434      case $am_cv_python_pythondir in
23435      $am_py_prefix*)
23436        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23437        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23438        ;;
23439      *)
23440        case $am_py_prefix in
23441          /usr|/System*) ;;
23442          *)
23443           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
23444           ;;
23445        esac
23446        ;;
23447      esac
23448
23449 fi
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
23451 $as_echo "$am_cv_python_pythondir" >&6; }
23452   pythondir=$am_cv_python_pythondir
23453
23454
23455
23456   pkgpythondir=\${pythondir}/$PACKAGE
23457
23458
23459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
23460 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23461 if ${am_cv_python_pyexecdir+:} false; then :
23462   $as_echo_n "(cached) " >&6
23463 else
23464   if test "x$exec_prefix" = xNONE
23465      then
23466        am_py_exec_prefix=$am_py_prefix
23467      else
23468        am_py_exec_prefix=$exec_prefix
23469      fi
23470      am_cv_python_pyexecdir=`$PYTHON -c "
23471 $am_python_setup_sysconfig
23472 if can_use_sysconfig:
23473     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
23474 else:
23475     from distutils import sysconfig
23476     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23477 sys.stdout.write(sitedir)"`
23478      case $am_cv_python_pyexecdir in
23479      $am_py_exec_prefix*)
23480        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23481        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23482        ;;
23483      *)
23484        case $am_py_exec_prefix in
23485          /usr|/System*) ;;
23486          *)
23487            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23488            ;;
23489        esac
23490        ;;
23491      esac
23492
23493 fi
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23495 $as_echo "$am_cv_python_pyexecdir" >&6; }
23496   pyexecdir=$am_cv_python_pyexecdir
23497
23498
23499
23500   pkgpyexecdir=\${pyexecdir}/$PACKAGE
23501
23502
23503
23504
23505         #
23506         # Allow the use of a (user set) custom python version
23507         #
23508
23509
23510         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
23511 set dummy python$PYTHON_VERSION; ac_word=$2
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23513 $as_echo_n "checking for $ac_word... " >&6; }
23514 if ${ac_cv_path_PYTHON+:} false; then :
23515   $as_echo_n "(cached) " >&6
23516 else
23517   case $PYTHON in
23518   [\\/]* | ?:[\\/]*)
23519   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23520   ;;
23521   *)
23522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23523 for as_dir in $PATH
23524 do
23525   IFS=$as_save_IFS
23526   test -z "$as_dir" && as_dir=.
23527     for ac_exec_ext in '' $ac_executable_extensions; do
23528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23529     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23531     break 2
23532   fi
23533 done
23534   done
23535 IFS=$as_save_IFS
23536
23537   ;;
23538 esac
23539 fi
23540 PYTHON=$ac_cv_path_PYTHON
23541 if test -n "$PYTHON"; then
23542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23543 $as_echo "$PYTHON" >&6; }
23544 else
23545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23546 $as_echo "no" >&6; }
23547 fi
23548
23549
23550         if test -z "$PYTHON"; then
23551            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
23552            PYTHON_VERSION=""
23553         fi
23554
23555         #
23556         # Check for a version of Python >= 2.1.0
23557         #
23558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
23559 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
23560         ac_supports_python_ver=`$PYTHON -c "import sys; \
23561                 ver = sys.version.split ()[0]; \
23562                 print (ver >= '2.1.0')"`
23563         if test "$ac_supports_python_ver" != "True"; then
23564                 if test -z "$PYTHON_NOVERSIONCHECK"; then
23565                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23566 $as_echo "no" >&6; }
23567                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23569 as_fn_error $? "
23570 This version of the AC_PYTHON_DEVEL macro
23571 doesn't work properly with versions of Python before
23572 2.1.0. You may need to re-run configure, setting the
23573 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
23574 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
23575 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
23576 to something else than an empty string.
23577
23578 See \`config.log' for more details" "$LINENO" 5; }
23579                 else
23580                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
23581 $as_echo "skip at user request" >&6; }
23582                 fi
23583         else
23584                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23585 $as_echo "yes" >&6; }
23586         fi
23587
23588         #
23589         # if the macro parameter ``version'' is set, honour it
23590         #
23591         if test -n ""; then
23592                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23593 $as_echo_n "checking for a version of Python ... " >&6; }
23594                 ac_supports_python_ver=`$PYTHON -c "import sys; \
23595                         ver = sys.version.split ()[0]; \
23596                         print (ver )"`
23597                 if test "$ac_supports_python_ver" = "True"; then
23598                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23599 $as_echo "yes" >&6; }
23600                 else
23601                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23602 $as_echo "no" >&6; }
23603                         as_fn_error $? "this package requires Python .
23604 If you have it installed, but it isn't the default Python
23605 interpreter in your system path, please pass the PYTHON_VERSION
23606 variable to configure. See \`\`configure --help'' for reference.
23607 " "$LINENO" 5
23608                         PYTHON_VERSION=""
23609                 fi
23610         fi
23611
23612         #
23613         # Check if you have distutils, else fail
23614         #
23615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23616 $as_echo_n "checking for the distutils Python package... " >&6; }
23617         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23618         if test -z "$ac_distutils_result"; then
23619                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23620 $as_echo "yes" >&6; }
23621         else
23622                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23623 $as_echo "no" >&6; }
23624                 as_fn_error $? "cannot import Python module \"distutils\".
23625 Please check your Python installation. The error was:
23626 $ac_distutils_result" "$LINENO" 5
23627                 PYTHON_VERSION=""
23628         fi
23629
23630         #
23631         # Check for Python include path
23632         #
23633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23634 $as_echo_n "checking for Python include path... " >&6; }
23635         if test -z "$PYTHON_CPPFLAGS"; then
23636                 python_path=`$PYTHON -c "import distutils.sysconfig; \
23637                         print (distutils.sysconfig.get_python_inc ());"`
23638                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23639                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23640                 if test -n "${python_path}"; then
23641                         if test "${plat_python_path}" != "${python_path}"; then
23642                                 python_path="-I$python_path -I$plat_python_path"
23643                         else
23644                                 python_path="-I$python_path"
23645                         fi
23646                 fi
23647                 PYTHON_CPPFLAGS=$python_path
23648         fi
23649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23650 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23651
23652
23653         #
23654         # Check for Python library path
23655         #
23656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23657 $as_echo_n "checking for Python library path... " >&6; }
23658         if test -z "$PYTHON_LDFLAGS"; then
23659                 # (makes two attempts to ensure we've got a version number
23660                 # from the interpreter)
23661                 ac_python_version=`cat<<EOD | $PYTHON -
23662
23663 # join all versioning strings, on some systems
23664 # major/minor numbers could be in different list elements
23665 from distutils.sysconfig import *
23666 e = get_config_var('VERSION')
23667 if e is not None:
23668         print(e)
23669 EOD`
23670
23671                 if test -z "$ac_python_version"; then
23672                         if test -n "$PYTHON_VERSION"; then
23673                                 ac_python_version=$PYTHON_VERSION
23674                         else
23675                                 ac_python_version=`$PYTHON -c "import sys; \
23676                                         print (sys.version[:3])"`
23677                         fi
23678                 fi
23679
23680                 # Make the versioning information available to the compiler
23681
23682                 # JW: We don't need it and it interferes with the hack
23683                 # to detect multiple Pyhton versions
23684                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23685                 #                  [If available, contains the Python version number currently in use.])
23686
23687                 # First, the library directory:
23688                 ac_python_libdir=`cat<<EOD | $PYTHON -
23689
23690 # There should be only one
23691 import distutils.sysconfig
23692 e = distutils.sysconfig.get_config_var('LIBDIR')
23693 if e is not None:
23694         print (e)
23695 EOD`
23696
23697                 # Now, for the library:
23698                 ac_python_library=`cat<<EOD | $PYTHON -
23699
23700 import distutils.sysconfig
23701 c = distutils.sysconfig.get_config_vars()
23702 if 'LDVERSION' in c:
23703         print ('python'+c['LDVERSION'])
23704 else:
23705         print ('python'+c['VERSION'])
23706 EOD`
23707
23708                 # This small piece shamelessly adapted from PostgreSQL python macro;
23709                 # credits goes to momjian, I think. I'd like to put the right name
23710                 # in the credits, if someone can point me in the right direction... ?
23711                 #
23712                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23713                 then
23714                         # use the official shared library
23715                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23716                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23717                 else
23718                         # old way: use libpython from python_configdir
23719                         ac_python_libdir=`$PYTHON -c \
23720                           "from distutils.sysconfig import get_python_lib as f; \
23721                           import os; \
23722                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23723                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23724                 fi
23725
23726                 if test -z "PYTHON_LDFLAGS"; then
23727                         as_fn_error $? "
23728   Cannot determine location of your Python DSO. Please check it was installed with
23729   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23730                         " "$LINENO" 5
23731                 fi
23732         fi
23733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23734 $as_echo "$PYTHON_LDFLAGS" >&6; }
23735
23736
23737         #
23738         # Check for site packages
23739         #
23740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23741 $as_echo_n "checking for Python site-packages path... " >&6; }
23742         if test -z "$PYTHON_SITE_PKG"; then
23743                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23744                         print (distutils.sysconfig.get_python_lib(0,0));"`
23745         fi
23746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23747 $as_echo "$PYTHON_SITE_PKG" >&6; }
23748
23749
23750         #
23751         # libraries which must be linked in when embedding
23752         #
23753         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23754 $as_echo_n "checking python extra libraries... " >&6; }
23755         if test -z "$PYTHON_EXTRA_LIBS"; then
23756            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23757                 conf = distutils.sysconfig.get_config_var; \
23758                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23759         fi
23760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23761 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23762
23763
23764         #
23765         # linking flags needed when embedding
23766         #
23767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23768 $as_echo_n "checking python extra linking flags... " >&6; }
23769         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23770                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23771                         conf = distutils.sysconfig.get_config_var; \
23772                         print (conf('LINKFORSHARED'))"`
23773         fi
23774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23775 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23776
23777
23778         #
23779         # final check to see if everything compiles alright
23780         #
23781         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23782 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23783         # save current global flags
23784         ac_save_LIBS="$LIBS"
23785         ac_save_CPPFLAGS="$CPPFLAGS"
23786         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23787         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23788         ac_ext=c
23789 ac_cpp='$CPP $CPPFLAGS'
23790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23793
23794         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23795 /* end confdefs.h.  */
23796
23797                 #include <Python.h>
23798 int
23799 main ()
23800 {
23801 Py_Initialize();
23802   ;
23803   return 0;
23804 }
23805
23806 _ACEOF
23807 if ac_fn_c_try_link "$LINENO"; then :
23808   pythonexists=yes
23809 else
23810   pythonexists=no
23811 fi
23812 rm -f core conftest.err conftest.$ac_objext \
23813     conftest$ac_exeext conftest.$ac_ext
23814         ac_ext=c
23815 ac_cpp='$CPP $CPPFLAGS'
23816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23819
23820         # turn back to default flags
23821         CPPFLAGS="$ac_save_CPPFLAGS"
23822         LIBS="$ac_save_LIBS"
23823
23824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23825 $as_echo "$pythonexists" >&6; }
23826
23827         if test ! "x$pythonexists" = "xyes"; then
23828            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23829   Could not link test program to Python. Maybe the main Python library has been
23830   installed in some non-standard library path. If so, pass it to configure,
23831   via the LDFLAGS environment variable.
23832   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23833   ============================================================================
23834    You probably have to install the development version of the Python package
23835    for your distribution.  The exact name of this package varies among them.
23836   ============================================================================
23837            " >&5
23838 $as_echo "$as_me: WARNING:
23839   Could not link test program to Python. Maybe the main Python library has been
23840   installed in some non-standard library path. If so, pass it to configure,
23841   via the LDFLAGS environment variable.
23842   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23843   ============================================================================
23844    You probably have to install the development version of the Python package
23845    for your distribution.  The exact name of this package varies among them.
23846   ============================================================================
23847            " >&2;}
23848           PYTHON_VERSION=""
23849         fi
23850
23851         #
23852         # all done!
23853         #
23854
23855                 if test "$PYTHON_VERSION"; then
23856                         PYTHONS="$(echo $PYTHONS $PYTHON)"
23857                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23858                 fi
23859
23860   fi
23861
23862
23863            unset PYTHON
23864             unset PYTHON_VERSION
23865             unset PYTHON_CPPFLAGS
23866             unset PYTHON_LDFLAGS
23867             unset PYTHON_SITE_PKG
23868             unset PYTHON_EXTRA_LIBS
23869             unset PYTHON_EXTRA_LDFLAGS
23870             unset ac_cv_path_PYTHON
23871             unset am_cv_pathless_PYTHON
23872             unset am_cv_python_version
23873             unset am_cv_python_platform
23874             unset am_cv_python_pythondir
23875             unset am_cv_python_pyexecdir
23876
23877
23878
23879
23880
23881
23882         if test -n "$PYTHON"; then
23883       # If the user set $PYTHON, use it and don't search something else.
23884       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= all" >&5
23885 $as_echo_n "checking whether $PYTHON version is >= all... " >&6; }
23886       prog="import sys
23887 # split strings by '.' and convert to numeric.  Append some zeros
23888 # because we need at least 4 digits for the hex conversion.
23889 # map returns an iterator in Python 3.0 and a list in 2.x
23890 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23891 minverhex = 0
23892 # xrange is not present in Python 3.0 and range returns an iterator
23893 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23894 sys.exit(sys.hexversion < minverhex)"
23895   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23896    ($PYTHON -c "$prog") >&5 2>&5
23897    ac_status=$?
23898    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899    (exit $ac_status); }; then :
23900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23901 $as_echo "yes" >&6; }
23902 else
23903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23904 $as_echo "no" >&6; }
23905                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23906 fi
23907       am_display_PYTHON=$PYTHON
23908     else
23909       # Otherwise, try each interpreter until we find one that satisfies
23910       # VERSION.
23911       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= all" >&5
23912 $as_echo_n "checking for a Python interpreter with version >= all... " >&6; }
23913 if ${am_cv_pathless_PYTHON+:} false; then :
23914   $as_echo_n "(cached) " >&6
23915 else
23916
23917         for am_cv_pathless_PYTHON           in pythonall none; do
23918           test "$am_cv_pathless_PYTHON" = none && break
23919           prog="import sys
23920 # split strings by '.' and convert to numeric.  Append some zeros
23921 # because we need at least 4 digits for the hex conversion.
23922 # map returns an iterator in Python 3.0 and a list in 2.x
23923 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23924 minverhex = 0
23925 # xrange is not present in Python 3.0 and range returns an iterator
23926 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23927 sys.exit(sys.hexversion < minverhex)"
23928   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23929    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23930    ac_status=$?
23931    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932    (exit $ac_status); }; then :
23933   break
23934 fi
23935         done
23936 fi
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23938 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23939       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23940       if test "$am_cv_pathless_PYTHON" = none; then
23941         PYTHON=:
23942       else
23943         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23944 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23946 $as_echo_n "checking for $ac_word... " >&6; }
23947 if ${ac_cv_path_PYTHON+:} false; then :
23948   $as_echo_n "(cached) " >&6
23949 else
23950   case $PYTHON in
23951   [\\/]* | ?:[\\/]*)
23952   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23953   ;;
23954   *)
23955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23956 for as_dir in $PATH
23957 do
23958   IFS=$as_save_IFS
23959   test -z "$as_dir" && as_dir=.
23960     for ac_exec_ext in '' $ac_executable_extensions; do
23961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23962     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23964     break 2
23965   fi
23966 done
23967   done
23968 IFS=$as_save_IFS
23969
23970   ;;
23971 esac
23972 fi
23973 PYTHON=$ac_cv_path_PYTHON
23974 if test -n "$PYTHON"; then
23975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23976 $as_echo "$PYTHON" >&6; }
23977 else
23978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23979 $as_echo "no" >&6; }
23980 fi
23981
23982
23983       fi
23984       am_display_PYTHON=$am_cv_pathless_PYTHON
23985     fi
23986
23987
23988   if test "$PYTHON" = :; then
23989       :
23990   else
23991
23992
23993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23994 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23995 if ${am_cv_python_version+:} false; then :
23996   $as_echo_n "(cached) " >&6
23997 else
23998   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23999 fi
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24001 $as_echo "$am_cv_python_version" >&6; }
24002   PYTHON_VERSION=$am_cv_python_version
24003
24004
24005
24006   PYTHON_PREFIX='${prefix}'
24007
24008   PYTHON_EXEC_PREFIX='${exec_prefix}'
24009
24010
24011
24012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24013 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24014 if ${am_cv_python_platform+:} false; then :
24015   $as_echo_n "(cached) " >&6
24016 else
24017   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24018 fi
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24020 $as_echo "$am_cv_python_platform" >&6; }
24021   PYTHON_PLATFORM=$am_cv_python_platform
24022
24023
24024   # Just factor out some code duplication.
24025   am_python_setup_sysconfig="\
24026 import sys
24027 # Prefer sysconfig over distutils.sysconfig, for better compatibility
24028 # with python 3.x.  See automake bug#10227.
24029 try:
24030     import sysconfig
24031 except ImportError:
24032     can_use_sysconfig = 0
24033 else:
24034     can_use_sysconfig = 1
24035 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24036 # <https://github.com/pypa/virtualenv/issues/118>
24037 try:
24038     from platform import python_implementation
24039     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24040         can_use_sysconfig = 0
24041 except ImportError:
24042     pass"
24043
24044
24045             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24046 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24047 if ${am_cv_python_pythondir+:} false; then :
24048   $as_echo_n "(cached) " >&6
24049 else
24050   if test "x$prefix" = xNONE
24051      then
24052        am_py_prefix=$ac_default_prefix
24053      else
24054        am_py_prefix=$prefix
24055      fi
24056      am_cv_python_pythondir=`$PYTHON -c "
24057 $am_python_setup_sysconfig
24058 if can_use_sysconfig:
24059     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24060 else:
24061     from distutils import sysconfig
24062     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24063 sys.stdout.write(sitedir)"`
24064      case $am_cv_python_pythondir in
24065      $am_py_prefix*)
24066        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24067        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24068        ;;
24069      *)
24070        case $am_py_prefix in
24071          /usr|/System*) ;;
24072          *)
24073           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24074           ;;
24075        esac
24076        ;;
24077      esac
24078
24079 fi
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24081 $as_echo "$am_cv_python_pythondir" >&6; }
24082   pythondir=$am_cv_python_pythondir
24083
24084
24085
24086   pkgpythondir=\${pythondir}/$PACKAGE
24087
24088
24089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24090 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24091 if ${am_cv_python_pyexecdir+:} false; then :
24092   $as_echo_n "(cached) " >&6
24093 else
24094   if test "x$exec_prefix" = xNONE
24095      then
24096        am_py_exec_prefix=$am_py_prefix
24097      else
24098        am_py_exec_prefix=$exec_prefix
24099      fi
24100      am_cv_python_pyexecdir=`$PYTHON -c "
24101 $am_python_setup_sysconfig
24102 if can_use_sysconfig:
24103     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24104 else:
24105     from distutils import sysconfig
24106     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24107 sys.stdout.write(sitedir)"`
24108      case $am_cv_python_pyexecdir in
24109      $am_py_exec_prefix*)
24110        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24111        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24112        ;;
24113      *)
24114        case $am_py_exec_prefix in
24115          /usr|/System*) ;;
24116          *)
24117            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24118            ;;
24119        esac
24120        ;;
24121      esac
24122
24123 fi
24124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24125 $as_echo "$am_cv_python_pyexecdir" >&6; }
24126   pyexecdir=$am_cv_python_pyexecdir
24127
24128
24129
24130   pkgpyexecdir=\${pyexecdir}/$PACKAGE
24131
24132
24133
24134
24135         #
24136         # Allow the use of a (user set) custom python version
24137         #
24138
24139
24140         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
24141 set dummy python$PYTHON_VERSION; ac_word=$2
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24143 $as_echo_n "checking for $ac_word... " >&6; }
24144 if ${ac_cv_path_PYTHON+:} false; then :
24145   $as_echo_n "(cached) " >&6
24146 else
24147   case $PYTHON in
24148   [\\/]* | ?:[\\/]*)
24149   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24150   ;;
24151   *)
24152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24153 for as_dir in $PATH
24154 do
24155   IFS=$as_save_IFS
24156   test -z "$as_dir" && as_dir=.
24157     for ac_exec_ext in '' $ac_executable_extensions; do
24158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24159     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24161     break 2
24162   fi
24163 done
24164   done
24165 IFS=$as_save_IFS
24166
24167   ;;
24168 esac
24169 fi
24170 PYTHON=$ac_cv_path_PYTHON
24171 if test -n "$PYTHON"; then
24172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24173 $as_echo "$PYTHON" >&6; }
24174 else
24175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24176 $as_echo "no" >&6; }
24177 fi
24178
24179
24180         if test -z "$PYTHON"; then
24181            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
24182            PYTHON_VERSION=""
24183         fi
24184
24185         #
24186         # Check for a version of Python >= 2.1.0
24187         #
24188         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
24189 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
24190         ac_supports_python_ver=`$PYTHON -c "import sys; \
24191                 ver = sys.version.split ()[0]; \
24192                 print (ver >= '2.1.0')"`
24193         if test "$ac_supports_python_ver" != "True"; then
24194                 if test -z "$PYTHON_NOVERSIONCHECK"; then
24195                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24196 $as_echo "no" >&6; }
24197                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24199 as_fn_error $? "
24200 This version of the AC_PYTHON_DEVEL macro
24201 doesn't work properly with versions of Python before
24202 2.1.0. You may need to re-run configure, setting the
24203 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
24204 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
24205 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
24206 to something else than an empty string.
24207
24208 See \`config.log' for more details" "$LINENO" 5; }
24209                 else
24210                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
24211 $as_echo "skip at user request" >&6; }
24212                 fi
24213         else
24214                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24215 $as_echo "yes" >&6; }
24216         fi
24217
24218         #
24219         # if the macro parameter ``version'' is set, honour it
24220         #
24221         if test -n ""; then
24222                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
24223 $as_echo_n "checking for a version of Python ... " >&6; }
24224                 ac_supports_python_ver=`$PYTHON -c "import sys; \
24225                         ver = sys.version.split ()[0]; \
24226                         print (ver )"`
24227                 if test "$ac_supports_python_ver" = "True"; then
24228                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24229 $as_echo "yes" >&6; }
24230                 else
24231                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24232 $as_echo "no" >&6; }
24233                         as_fn_error $? "this package requires Python .
24234 If you have it installed, but it isn't the default Python
24235 interpreter in your system path, please pass the PYTHON_VERSION
24236 variable to configure. See \`\`configure --help'' for reference.
24237 " "$LINENO" 5
24238                         PYTHON_VERSION=""
24239                 fi
24240         fi
24241
24242         #
24243         # Check if you have distutils, else fail
24244         #
24245         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
24246 $as_echo_n "checking for the distutils Python package... " >&6; }
24247         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
24248         if test -z "$ac_distutils_result"; then
24249                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24250 $as_echo "yes" >&6; }
24251         else
24252                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24253 $as_echo "no" >&6; }
24254                 as_fn_error $? "cannot import Python module \"distutils\".
24255 Please check your Python installation. The error was:
24256 $ac_distutils_result" "$LINENO" 5
24257                 PYTHON_VERSION=""
24258         fi
24259
24260         #
24261         # Check for Python include path
24262         #
24263         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
24264 $as_echo_n "checking for Python include path... " >&6; }
24265         if test -z "$PYTHON_CPPFLAGS"; then
24266                 python_path=`$PYTHON -c "import distutils.sysconfig; \
24267                         print (distutils.sysconfig.get_python_inc ());"`
24268                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
24269                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
24270                 if test -n "${python_path}"; then
24271                         if test "${plat_python_path}" != "${python_path}"; then
24272                                 python_path="-I$python_path -I$plat_python_path"
24273                         else
24274                                 python_path="-I$python_path"
24275                         fi
24276                 fi
24277                 PYTHON_CPPFLAGS=$python_path
24278         fi
24279         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
24280 $as_echo "$PYTHON_CPPFLAGS" >&6; }
24281
24282
24283         #
24284         # Check for Python library path
24285         #
24286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
24287 $as_echo_n "checking for Python library path... " >&6; }
24288         if test -z "$PYTHON_LDFLAGS"; then
24289                 # (makes two attempts to ensure we've got a version number
24290                 # from the interpreter)
24291                 ac_python_version=`cat<<EOD | $PYTHON -
24292
24293 # join all versioning strings, on some systems
24294 # major/minor numbers could be in different list elements
24295 from distutils.sysconfig import *
24296 e = get_config_var('VERSION')
24297 if e is not None:
24298         print(e)
24299 EOD`
24300
24301                 if test -z "$ac_python_version"; then
24302                         if test -n "$PYTHON_VERSION"; then
24303                                 ac_python_version=$PYTHON_VERSION
24304                         else
24305                                 ac_python_version=`$PYTHON -c "import sys; \
24306                                         print (sys.version[:3])"`
24307                         fi
24308                 fi
24309
24310                 # Make the versioning information available to the compiler
24311
24312                 # JW: We don't need it and it interferes with the hack
24313                 # to detect multiple Pyhton versions
24314                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
24315                 #                  [If available, contains the Python version number currently in use.])
24316
24317                 # First, the library directory:
24318                 ac_python_libdir=`cat<<EOD | $PYTHON -
24319
24320 # There should be only one
24321 import distutils.sysconfig
24322 e = distutils.sysconfig.get_config_var('LIBDIR')
24323 if e is not None:
24324         print (e)
24325 EOD`
24326
24327                 # Now, for the library:
24328                 ac_python_library=`cat<<EOD | $PYTHON -
24329
24330 import distutils.sysconfig
24331 c = distutils.sysconfig.get_config_vars()
24332 if 'LDVERSION' in c:
24333         print ('python'+c['LDVERSION'])
24334 else:
24335         print ('python'+c['VERSION'])
24336 EOD`
24337
24338                 # This small piece shamelessly adapted from PostgreSQL python macro;
24339                 # credits goes to momjian, I think. I'd like to put the right name
24340                 # in the credits, if someone can point me in the right direction... ?
24341                 #
24342                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
24343                 then
24344                         # use the official shared library
24345                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
24346                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
24347                 else
24348                         # old way: use libpython from python_configdir
24349                         ac_python_libdir=`$PYTHON -c \
24350                           "from distutils.sysconfig import get_python_lib as f; \
24351                           import os; \
24352                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
24353                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
24354                 fi
24355
24356                 if test -z "PYTHON_LDFLAGS"; then
24357                         as_fn_error $? "
24358   Cannot determine location of your Python DSO. Please check it was installed with
24359   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
24360                         " "$LINENO" 5
24361                 fi
24362         fi
24363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
24364 $as_echo "$PYTHON_LDFLAGS" >&6; }
24365
24366
24367         #
24368         # Check for site packages
24369         #
24370         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
24371 $as_echo_n "checking for Python site-packages path... " >&6; }
24372         if test -z "$PYTHON_SITE_PKG"; then
24373                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
24374                         print (distutils.sysconfig.get_python_lib(0,0));"`
24375         fi
24376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
24377 $as_echo "$PYTHON_SITE_PKG" >&6; }
24378
24379
24380         #
24381         # libraries which must be linked in when embedding
24382         #
24383         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
24384 $as_echo_n "checking python extra libraries... " >&6; }
24385         if test -z "$PYTHON_EXTRA_LIBS"; then
24386            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
24387                 conf = distutils.sysconfig.get_config_var; \
24388                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
24389         fi
24390         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
24391 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
24392
24393
24394         #
24395         # linking flags needed when embedding
24396         #
24397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
24398 $as_echo_n "checking python extra linking flags... " >&6; }
24399         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
24400                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
24401                         conf = distutils.sysconfig.get_config_var; \
24402                         print (conf('LINKFORSHARED'))"`
24403         fi
24404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
24405 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
24406
24407
24408         #
24409         # final check to see if everything compiles alright
24410         #
24411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
24412 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
24413         # save current global flags
24414         ac_save_LIBS="$LIBS"
24415         ac_save_CPPFLAGS="$CPPFLAGS"
24416         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
24417         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
24418         ac_ext=c
24419 ac_cpp='$CPP $CPPFLAGS'
24420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24423
24424         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425 /* end confdefs.h.  */
24426
24427                 #include <Python.h>
24428 int
24429 main ()
24430 {
24431 Py_Initialize();
24432   ;
24433   return 0;
24434 }
24435
24436 _ACEOF
24437 if ac_fn_c_try_link "$LINENO"; then :
24438   pythonexists=yes
24439 else
24440   pythonexists=no
24441 fi
24442 rm -f core conftest.err conftest.$ac_objext \
24443     conftest$ac_exeext conftest.$ac_ext
24444         ac_ext=c
24445 ac_cpp='$CPP $CPPFLAGS'
24446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24449
24450         # turn back to default flags
24451         CPPFLAGS="$ac_save_CPPFLAGS"
24452         LIBS="$ac_save_LIBS"
24453
24454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
24455 $as_echo "$pythonexists" >&6; }
24456
24457         if test ! "x$pythonexists" = "xyes"; then
24458            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24459   Could not link test program to Python. Maybe the main Python library has been
24460   installed in some non-standard library path. If so, pass it to configure,
24461   via the LDFLAGS environment variable.
24462   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24463   ============================================================================
24464    You probably have to install the development version of the Python package
24465    for your distribution.  The exact name of this package varies among them.
24466   ============================================================================
24467            " >&5
24468 $as_echo "$as_me: WARNING:
24469   Could not link test program to Python. Maybe the main Python library has been
24470   installed in some non-standard library path. If so, pass it to configure,
24471   via the LDFLAGS environment variable.
24472   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24473   ============================================================================
24474    You probably have to install the development version of the Python package
24475    for your distribution.  The exact name of this package varies among them.
24476   ============================================================================
24477            " >&2;}
24478           PYTHON_VERSION=""
24479         fi
24480
24481         #
24482         # all done!
24483         #
24484
24485                 if test "$PYTHON_VERSION"; then
24486                         PYTHONS="$(echo $PYTHONS $PYTHON)"
24487                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
24488                 fi
24489
24490   fi
24491
24492
24493
24494         fi
24495
24496         # Recover some values lost in the second attempt to find Python.
24497         PYTHON="$(echo $PYTHONS | cut -d ' ' -f 1)"
24498         PYTHON_VERSION="$(echo $PYTHON_VERSIONS | cut -d ' ' -f 1)"
24499
24500         # Remove duplicates.
24501         PYTHONS="$(echo $PYTHONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24502         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24503
24504         if test "$PYTHON_VERSIONS"; then
24505            enabled_languages_v=$(echo $enabled_languages | sed -Ee "s/python[23]?/python ($PYTHON_VERSIONS)/")
24506            enabled_languages=$(echo $enabled_languages | sed -Ee "s/python[23]?/python/")
24507         else
24508             if test "$explicit_languages" = "1"; then
24509                 as_fn_error $? "
24510 ***
24511 *** Please install the python development packages.
24512 ***" "$LINENO" 5
24513             else
24514                 enabled_languages=$(echo $enabled_languages | sed 's/python//')
24515             fi
24516         fi
24517
24518         PYTHONS=$PYTHONS
24519
24520     fi
24521 fi
24522
24523 ENABLED_LANGUAGES=$enabled_languages
24524
24525
24526 #
24527 # Provide information about the build.
24528 #
24529 BUILD_REVISION="feea38c8"
24530
24531
24532 cat >>confdefs.h <<_ACEOF
24533 #define BUILD_REVISION "$BUILD_REVISION"
24534 _ACEOF
24535
24536
24537 BUILD_VERSION=`echo "$PACKAGE_VERSION" | sed 's/\([0-9.]*\).*/\1./'`
24538 BUILD_VERSION="${BUILD_VERSION}65258"
24539 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
24540
24541
24542
24543 # Check whether --enable-build-timestamp was given.
24544 if test "${enable_build_timestamp+set}" = set; then :
24545   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
24546         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
24547       else
24548         BUILD_TIMESTAMP="$enableval"
24549       fi
24550 else
24551   BUILD_TIMESTAMP="<none>"
24552 fi
24553
24554
24555
24556 cat >>confdefs.h <<_ACEOF
24557 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
24558 _ACEOF
24559
24560
24561
24562 #
24563 # Options to disable some regression tests
24564 #
24565 run_gpgconf_test="yes"
24566 # Check whether --enable-gpgconf-test was given.
24567 if test "${enable_gpgconf_test+set}" = set; then :
24568   enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
24569 fi
24570
24571  if test "$run_gpgconf_test" = "yes"; then
24572   RUN_GPGCONF_TESTS_TRUE=
24573   RUN_GPGCONF_TESTS_FALSE='#'
24574 else
24575   RUN_GPGCONF_TESTS_TRUE='#'
24576   RUN_GPGCONF_TESTS_FALSE=
24577 fi
24578
24579
24580 run_gpg_test="yes"
24581 # Check whether --enable-gpg-test was given.
24582 if test "${enable_gpg_test+set}" = set; then :
24583   enableval=$enable_gpg_test; run_gpg_test=$enableval
24584 fi
24585
24586  if test "$run_gpg_test" = "yes"; then
24587   RUN_GPG_TESTS_TRUE=
24588   RUN_GPG_TESTS_FALSE='#'
24589 else
24590   RUN_GPG_TESTS_TRUE='#'
24591   RUN_GPG_TESTS_FALSE=
24592 fi
24593
24594
24595 run_gpgsm_test="yes"
24596 # Check whether --enable-gpgsm-test was given.
24597 if test "${enable_gpgsm_test+set}" = set; then :
24598   enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
24599 fi
24600
24601  if test "$run_gpgsm_test" = "yes"; then
24602   RUN_GPGSM_TESTS_TRUE=
24603   RUN_GPGSM_TESTS_FALSE='#'
24604 else
24605   RUN_GPGSM_TESTS_TRUE='#'
24606   RUN_GPGSM_TESTS_FALSE=
24607 fi
24608
24609
24610 run_g13_test="yes"
24611 # Check whether --enable-g13-test was given.
24612 if test "${enable_g13_test+set}" = set; then :
24613   enableval=$enable_g13_test; run_g13_test=$enableval
24614 fi
24615
24616  if test "$run_g13_test" = "yes"; then
24617   RUN_G13_TESTS_TRUE=
24618   RUN_G13_TESTS_FALSE='#'
24619 else
24620   RUN_G13_TESTS_TRUE='#'
24621   RUN_G13_TESTS_FALSE=
24622 fi
24623
24624
24625
24626 # Checks for header files.
24627
24628
24629
24630   for ac_header in $ac_header_list
24631 do :
24632   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24634 "
24635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24636   cat >>confdefs.h <<_ACEOF
24637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24638 _ACEOF
24639
24640 fi
24641
24642 done
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665 # Type checks.
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24667 $as_echo_n "checking for inline... " >&6; }
24668 if ${ac_cv_c_inline+:} false; then :
24669   $as_echo_n "(cached) " >&6
24670 else
24671   ac_cv_c_inline=no
24672 for ac_kw in inline __inline__ __inline; do
24673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24674 /* end confdefs.h.  */
24675 #ifndef __cplusplus
24676 typedef int foo_t;
24677 static $ac_kw foo_t static_foo () {return 0; }
24678 $ac_kw foo_t foo () {return 0; }
24679 #endif
24680
24681 _ACEOF
24682 if ac_fn_c_try_compile "$LINENO"; then :
24683   ac_cv_c_inline=$ac_kw
24684 fi
24685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24686   test "$ac_cv_c_inline" != no && break
24687 done
24688
24689 fi
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24691 $as_echo "$ac_cv_c_inline" >&6; }
24692
24693 case $ac_cv_c_inline in
24694   inline | yes) ;;
24695   *)
24696     case $ac_cv_c_inline in
24697       no) ac_val=;;
24698       *) ac_val=$ac_cv_c_inline;;
24699     esac
24700     cat >>confdefs.h <<_ACEOF
24701 #ifndef __cplusplus
24702 #define inline $ac_val
24703 #endif
24704 _ACEOF
24705     ;;
24706 esac
24707
24708 # The cast to long int works around a bug in the HP C Compiler
24709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24711 # This bug is HP SR number 8606223364.
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
24713 $as_echo_n "checking size of unsigned int... " >&6; }
24714 if ${ac_cv_sizeof_unsigned_int+:} false; then :
24715   $as_echo_n "(cached) " >&6
24716 else
24717   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
24718
24719 else
24720   if test "$ac_cv_type_unsigned_int" = yes; then
24721      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24723 as_fn_error 77 "cannot compute sizeof (unsigned int)
24724 See \`config.log' for more details" "$LINENO" 5; }
24725    else
24726      ac_cv_sizeof_unsigned_int=0
24727    fi
24728 fi
24729
24730 fi
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
24732 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24733
24734
24735
24736 cat >>confdefs.h <<_ACEOF
24737 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24738 _ACEOF
24739
24740
24741 # Check whether --enable-largefile was given.
24742 if test "${enable_largefile+set}" = set; then :
24743   enableval=$enable_largefile;
24744 fi
24745
24746 if test "$enable_largefile" != no; then
24747
24748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24749 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
24750 if ${ac_cv_sys_largefile_CC+:} false; then :
24751   $as_echo_n "(cached) " >&6
24752 else
24753   ac_cv_sys_largefile_CC=no
24754      if test "$GCC" != yes; then
24755        ac_save_CC=$CC
24756        while :; do
24757          # IRIX 6.2 and later do not support large files by default,
24758          # so use the C compiler's -n32 option if that helps.
24759          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24760 /* end confdefs.h.  */
24761 #include <sys/types.h>
24762  /* Check that off_t can represent 2**63 - 1 correctly.
24763     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24764     since some C++ compilers masquerading as C compilers
24765     incorrectly reject 9223372036854775807.  */
24766 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24767   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24768                        && LARGE_OFF_T % 2147483647 == 1)
24769                       ? 1 : -1];
24770 int
24771 main ()
24772 {
24773
24774   ;
24775   return 0;
24776 }
24777 _ACEOF
24778          if ac_fn_c_try_compile "$LINENO"; then :
24779   break
24780 fi
24781 rm -f core conftest.err conftest.$ac_objext
24782          CC="$CC -n32"
24783          if ac_fn_c_try_compile "$LINENO"; then :
24784   ac_cv_sys_largefile_CC=' -n32'; break
24785 fi
24786 rm -f core conftest.err conftest.$ac_objext
24787          break
24788        done
24789        CC=$ac_save_CC
24790        rm -f conftest.$ac_ext
24791     fi
24792 fi
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24794 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
24795   if test "$ac_cv_sys_largefile_CC" != no; then
24796     CC=$CC$ac_cv_sys_largefile_CC
24797   fi
24798
24799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24800 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24801 if ${ac_cv_sys_file_offset_bits+:} false; then :
24802   $as_echo_n "(cached) " >&6
24803 else
24804   while :; do
24805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24806 /* end confdefs.h.  */
24807 #include <sys/types.h>
24808  /* Check that off_t can represent 2**63 - 1 correctly.
24809     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24810     since some C++ compilers masquerading as C compilers
24811     incorrectly reject 9223372036854775807.  */
24812 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24813   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24814                        && LARGE_OFF_T % 2147483647 == 1)
24815                       ? 1 : -1];
24816 int
24817 main ()
24818 {
24819
24820   ;
24821   return 0;
24822 }
24823 _ACEOF
24824 if ac_fn_c_try_compile "$LINENO"; then :
24825   ac_cv_sys_file_offset_bits=no; break
24826 fi
24827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24829 /* end confdefs.h.  */
24830 #define _FILE_OFFSET_BITS 64
24831 #include <sys/types.h>
24832  /* Check that off_t can represent 2**63 - 1 correctly.
24833     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24834     since some C++ compilers masquerading as C compilers
24835     incorrectly reject 9223372036854775807.  */
24836 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24837   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24838                        && LARGE_OFF_T % 2147483647 == 1)
24839                       ? 1 : -1];
24840 int
24841 main ()
24842 {
24843
24844   ;
24845   return 0;
24846 }
24847 _ACEOF
24848 if ac_fn_c_try_compile "$LINENO"; then :
24849   ac_cv_sys_file_offset_bits=64; break
24850 fi
24851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852   ac_cv_sys_file_offset_bits=unknown
24853   break
24854 done
24855 fi
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24857 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24858 case $ac_cv_sys_file_offset_bits in #(
24859   no | unknown) ;;
24860   *)
24861 cat >>confdefs.h <<_ACEOF
24862 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24863 _ACEOF
24864 ;;
24865 esac
24866 rm -rf conftest*
24867   if test $ac_cv_sys_file_offset_bits = unknown; then
24868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24869 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
24870 if ${ac_cv_sys_large_files+:} false; then :
24871   $as_echo_n "(cached) " >&6
24872 else
24873   while :; do
24874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h.  */
24876 #include <sys/types.h>
24877  /* Check that off_t can represent 2**63 - 1 correctly.
24878     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24879     since some C++ compilers masquerading as C compilers
24880     incorrectly reject 9223372036854775807.  */
24881 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24882   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24883                        && LARGE_OFF_T % 2147483647 == 1)
24884                       ? 1 : -1];
24885 int
24886 main ()
24887 {
24888
24889   ;
24890   return 0;
24891 }
24892 _ACEOF
24893 if ac_fn_c_try_compile "$LINENO"; then :
24894   ac_cv_sys_large_files=no; break
24895 fi
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24898 /* end confdefs.h.  */
24899 #define _LARGE_FILES 1
24900 #include <sys/types.h>
24901  /* Check that off_t can represent 2**63 - 1 correctly.
24902     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24903     since some C++ compilers masquerading as C compilers
24904     incorrectly reject 9223372036854775807.  */
24905 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24906   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24907                        && LARGE_OFF_T % 2147483647 == 1)
24908                       ? 1 : -1];
24909 int
24910 main ()
24911 {
24912
24913   ;
24914   return 0;
24915 }
24916 _ACEOF
24917 if ac_fn_c_try_compile "$LINENO"; then :
24918   ac_cv_sys_large_files=1; break
24919 fi
24920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24921   ac_cv_sys_large_files=unknown
24922   break
24923 done
24924 fi
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24926 $as_echo "$ac_cv_sys_large_files" >&6; }
24927 case $ac_cv_sys_large_files in #(
24928   no | unknown) ;;
24929   *)
24930 cat >>confdefs.h <<_ACEOF
24931 #define _LARGE_FILES $ac_cv_sys_large_files
24932 _ACEOF
24933 ;;
24934 esac
24935 rm -rf conftest*
24936   fi
24937
24938
24939 fi
24940
24941 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24942 if test "x$ac_cv_type_off_t" = xyes; then :
24943
24944 else
24945
24946 cat >>confdefs.h <<_ACEOF
24947 #define off_t long int
24948 _ACEOF
24949
24950 fi
24951
24952
24953   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24954 if test "x$ac_cv_type_uintptr_t" = xyes; then :
24955
24956 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24957
24958 else
24959   for ac_type in 'unsigned int' 'unsigned long int' \
24960         'unsigned long long int'; do
24961        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24962 /* end confdefs.h.  */
24963 $ac_includes_default
24964 int
24965 main ()
24966 {
24967 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
24968 test_array [0] = 0;
24969 return test_array [0];
24970
24971   ;
24972   return 0;
24973 }
24974 _ACEOF
24975 if ac_fn_c_try_compile "$LINENO"; then :
24976
24977 cat >>confdefs.h <<_ACEOF
24978 #define uintptr_t $ac_type
24979 _ACEOF
24980
24981           ac_type=
24982 fi
24983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24984        test -z "$ac_type" && break
24985      done
24986 fi
24987
24988
24989
24990 # We require uint64_t
24991 if test "$ac_cv_header_stdint_h" != yes; then
24992    as_fn_error $? "
24993 ***
24994 *** No stdint.h and thus no uint64_t type.  Can't build this library.
24995 ***" "$LINENO" 5
24996 fi
24997
24998
24999 # A simple compile time check in gpgme.h for GNU/Linux systems that
25000 # prevents a file offset bits mismatch between gpgme and the application.
25001 NEED__FILE_OFFSET_BITS=0
25002 if test "$have_w32_system" != yes; then
25003   case "$ac_cv_sys_file_offset_bits" in
25004     "" | no | unknown) ;;
25005     *)
25006     NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
25007     ;;
25008   esac
25009 fi
25010
25011
25012 # Figure out platform dependent typedefs for gpgme.h
25013 if test "$have_w32_system" = yes; then
25014     INSERT__TYPEDEFS_FOR_GPGME_H="
25015 #ifdef _WIN64
25016 # include <stdint.h>
25017   typedef int64_t gpgme_off_t;
25018   typedef int64_t gpgme_ssize_t;
25019 #else /* _WIN32 */
25020   typedef long gpgme_off_t;
25021   typedef long gpgme_ssize_t;
25022 #endif /* _WIN32 */"
25023     API__OFF_T="gpgme_off_t"
25024     API__SSIZE_T="gpgme_ssize_t"
25025 else
25026     INSERT__TYPEDEFS_FOR_GPGME_H="
25027 #include <sys/types.h>
25028 typedef off_t   gpgme_off_t;
25029 typedef ssize_t gpgme_ssize_t;"
25030     API__OFF_T="off_t"
25031     API__SSIZE_T="ssize_t"
25032 fi
25033
25034
25035
25036
25037
25038
25039
25040 # Checks for compiler features.
25041 if test "$GCC" = yes; then
25042     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
25043     CFLAGS="$CFLAGS -Wno-format-y2k"
25044
25045     # If -Wno-missing-field-initializers is supported we can expect a
25046     # a larger set of warning options.
25047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
25048 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
25049     _gcc_cflags_save=$CFLAGS
25050     CFLAGS="-Wno-missing-field-initializers"
25051     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25052 /* end confdefs.h.  */
25053
25054 int
25055 main ()
25056 {
25057
25058   ;
25059   return 0;
25060 }
25061 _ACEOF
25062 if ac_fn_c_try_compile "$LINENO"; then :
25063   _gcc_wopt=yes
25064 else
25065   _gcc_wopt=no
25066 fi
25067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25069 $as_echo "$_gcc_wopt" >&6; }
25070     CFLAGS=$_gcc_cflags_save;
25071     if test x"$_gcc_wopt" = xyes ; then
25072       CFLAGS="$CFLAGS -Wno-missing-field-initializers"
25073       CFLAGS="$CFLAGS -Wno-sign-compare"
25074       CFLAGS="$CFLAGS -Wno-format-zero-length"
25075       CFLAGS="$CFLAGS -Wno-format-truncation"
25076       CFLAGS="$CFLAGS -Wno-sizeof-pointer-div"
25077     fi
25078     if test "$USE_MAINTAINER_MODE" = "yes"; then
25079         if test x"$_gcc_wopt" = xyes ; then
25080           CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
25081           CFLAGS="$CFLAGS -Wwrite-strings"
25082           CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25083         fi
25084         CFLAGS="$CFLAGS -Wformat -Wformat-security"
25085         CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
25086
25087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
25088 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
25089         _gcc_cflags_save=$CFLAGS
25090         CFLAGS="-Wpointer-arith"
25091         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25092 /* end confdefs.h.  */
25093
25094 int
25095 main ()
25096 {
25097
25098   ;
25099   return 0;
25100 }
25101 _ACEOF
25102 if ac_fn_c_try_compile "$LINENO"; then :
25103   _gcc_wopt=yes
25104 else
25105   _gcc_wopt=no
25106 fi
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25109 $as_echo "$_gcc_wopt" >&6; }
25110         CFLAGS=$_gcc_cflags_save;
25111         if test x"$_gcc_wopt" = xyes ; then
25112           CFLAGS="$CFLAGS -Wpointer-arith"
25113         fi
25114     fi
25115     if test "$have_w32_system" = yes; then
25116        CFLAGS="$CFLAGS -mms-bitfields"
25117     fi
25118 fi
25119
25120 # Only used for debugging, so no serious test needed (for actual
25121 # functionality you have to test libc as well, this only tests the
25122 # compiler).
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
25124 $as_echo_n "checking for __thread... " >&6; }
25125 if ${gpgme_cv_tls_works+:} false; then :
25126   $as_echo_n "(cached) " >&6
25127 else
25128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25129 /* end confdefs.h.  */
25130 __thread int foo;
25131 int
25132 main ()
25133 {
25134
25135   ;
25136   return 0;
25137 }
25138 _ACEOF
25139 if ac_fn_c_try_compile "$LINENO"; then :
25140   gpgme_cv_tls_works=yes
25141 else
25142   gpgme_cv_tls_works=no
25143 fi
25144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25145 fi
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
25147 $as_echo "$gpgme_cv_tls_works" >&6; }
25148 if test "$gpgme_cv_tls_works" = yes; then
25149
25150 $as_echo "#define HAVE_TLS 1" >>confdefs.h
25151
25152 fi
25153
25154
25155 # Checks for library functions.
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
25157 $as_echo "$as_me: checking for libraries" >&6;}
25158
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25160 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25161 if ${ac_cv_sys_largefile_source+:} false; then :
25162   $as_echo_n "(cached) " >&6
25163 else
25164   while :; do
25165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25166 /* end confdefs.h.  */
25167 #include <sys/types.h> /* for off_t */
25168      #include <stdio.h>
25169 int
25170 main ()
25171 {
25172 int (*fp) (FILE *, off_t, int) = fseeko;
25173      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25174   ;
25175   return 0;
25176 }
25177 _ACEOF
25178 if ac_fn_c_try_link "$LINENO"; then :
25179   ac_cv_sys_largefile_source=no; break
25180 fi
25181 rm -f core conftest.err conftest.$ac_objext \
25182     conftest$ac_exeext conftest.$ac_ext
25183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25184 /* end confdefs.h.  */
25185 #define _LARGEFILE_SOURCE 1
25186 #include <sys/types.h> /* for off_t */
25187      #include <stdio.h>
25188 int
25189 main ()
25190 {
25191 int (*fp) (FILE *, off_t, int) = fseeko;
25192      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25193   ;
25194   return 0;
25195 }
25196 _ACEOF
25197 if ac_fn_c_try_link "$LINENO"; then :
25198   ac_cv_sys_largefile_source=1; break
25199 fi
25200 rm -f core conftest.err conftest.$ac_objext \
25201     conftest$ac_exeext conftest.$ac_ext
25202   ac_cv_sys_largefile_source=unknown
25203   break
25204 done
25205 fi
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25207 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25208 case $ac_cv_sys_largefile_source in #(
25209   no | unknown) ;;
25210   *)
25211 cat >>confdefs.h <<_ACEOF
25212 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25213 _ACEOF
25214 ;;
25215 esac
25216 rm -rf conftest*
25217
25218 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25219 # in glibc 2.1.3, but that breaks too many other things.
25220 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25221 if test $ac_cv_sys_largefile_source != unknown; then
25222
25223 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
25224
25225 fi
25226
25227
25228 # Try to find a thread-safe version of ttyname().
25229 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
25230 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
25231   ac_have_decl=1
25232 else
25233   ac_have_decl=0
25234 fi
25235
25236 cat >>confdefs.h <<_ACEOF
25237 #define HAVE_DECL_TTYNAME_R $ac_have_decl
25238 _ACEOF
25239
25240
25241   for ac_header in unistd.h
25242 do :
25243   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25244 if test "x$ac_cv_header_unistd_h" = xyes; then :
25245   cat >>confdefs.h <<_ACEOF
25246 #define HAVE_UNISTD_H 1
25247 _ACEOF
25248
25249 fi
25250
25251 done
25252
25253
25254
25255   if test $ac_cv_have_decl_ttyname_r = no; then
25256     HAVE_DECL_TTYNAME_R=0
25257   fi
25258
25259   for ac_func in ttyname_r
25260 do :
25261   ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
25262 if test "x$ac_cv_func_ttyname_r" = xyes; then :
25263   cat >>confdefs.h <<_ACEOF
25264 #define HAVE_TTYNAME_R 1
25265 _ACEOF
25266
25267 fi
25268 done
25269
25270   if test $ac_cv_func_ttyname_r = no; then
25271     HAVE_TTYNAME_R=0
25272     case " $LIBOBJS " in
25273   *" ttyname_r.$ac_objext "* ) ;;
25274   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25275  ;;
25276 esac
25277
25278
25279 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25280
25281   else
25282     HAVE_TTYNAME_R=1
25283             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
25284 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
25285 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
25286   $as_echo_n "(cached) " >&6
25287 else
25288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h.  */
25290 #include <stddef.h>
25291               #include <unistd.h>
25292 int
25293 main ()
25294 {
25295 *ttyname_r (0, NULL, 0);
25296   ;
25297   return 0;
25298 }
25299
25300 _ACEOF
25301 if ac_fn_c_try_compile "$LINENO"; then :
25302   gnupg_cv_func_ttyname_r_posix=no
25303 else
25304   gnupg_cv_func_ttyname_r_posix=yes
25305 fi
25306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25307
25308 fi
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
25310 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
25311     if test $gnupg_cv_func_ttyname_r_posix = no; then
25312       case " $LIBOBJS " in
25313   *" ttyname_r.$ac_objext "* ) ;;
25314   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25315  ;;
25316 esac
25317
25318       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25319
25320     elif test "$have_android_system" = yes; then
25321       # Android has ttyname and ttyname_r but they are only stubs and
25322       # print an annoying warning message.  Thus we need to replace
25323       # ttyname_r with our own dummy function.
25324       case " $LIBOBJS " in
25325   *" ttyname_r.$ac_objext "* ) ;;
25326   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25327  ;;
25328 esac
25329
25330       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25331
25332     else
25333
25334 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
25335
25336
25337       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
25338 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
25339 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
25340   $as_echo_n "(cached) " >&6
25341 else
25342
25343                               case "$host_os" in
25344                       # Guess no on Solaris.
25345             solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25346                       # Guess no on OSF/1.
25347             osf*)     gnupg_cv_func_ttyname_r_works="guessing no" ;;
25348                       # Guess yes otherwise.
25349             *)        gnupg_cv_func_ttyname_r_works="guessing yes" ;;
25350           esac
25351           if test "$cross_compiling" = yes; then :
25352   :
25353 else
25354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h.  */
25356
25357 #include <fcntl.h>
25358 #include <unistd.h>
25359 int
25360 main (void)
25361 {
25362   int result = 0;
25363   int fd;
25364   char buf[31]; /* use any size < 128 here */
25365
25366   fd = open ("/dev/tty", O_RDONLY);
25367   if (fd < 0)
25368     result |= 16;
25369   else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
25370     result |= 17;
25371   else if (ttyname_r (fd, buf, 1) == 0)
25372     result |= 18;
25373   return result;
25374 }
25375 _ACEOF
25376 if ac_fn_c_try_run "$LINENO"; then :
25377   gnupg_cv_func_ttyname_r_works=yes
25378 else
25379   case $? in
25380                17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
25381              esac
25382 fi
25383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25384   conftest.$ac_objext conftest.beam conftest.$ac_ext
25385 fi
25386
25387
25388 fi
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
25390 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
25391       case "$gnupg_cv_func_ttyname_r_works" in
25392         *yes) ;;
25393         *) case " $LIBOBJS " in
25394   *" ttyname_r.$ac_objext "* ) ;;
25395   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25396  ;;
25397 esac
25398
25399            $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25400
25401
25402 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
25403
25404            ;;
25405       esac
25406     fi
25407   fi
25408
25409 if test "$ac_cv_func_ttyname_r" != yes; then
25410   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25411 ***
25412 *** ttyname() is not thread-safe and ttyname_r() does not exist
25413 ***" >&5
25414 $as_echo "$as_me: WARNING:
25415 ***
25416 *** ttyname() is not thread-safe and ttyname_r() does not exist
25417 ***" >&2;}
25418 fi
25419
25420 # Try to find a thread-safe version of getenv().
25421 have_thread_safe_getenv=no
25422
25423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
25424 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
25425 if ${ac_cv_gnu_library_2_1+:} false; then :
25426   $as_echo_n "(cached) " >&6
25427 else
25428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429 /* end confdefs.h.  */
25430
25431 #include <features.h>
25432 #ifdef __GNU_LIBRARY__
25433  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25434   Lucky GNU user
25435  #endif
25436 #endif
25437
25438 _ACEOF
25439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25440   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
25441   ac_cv_gnu_library_2_1=yes
25442 else
25443   ac_cv_gnu_library_2_1=no
25444 fi
25445 rm -f conftest*
25446
25447
25448
25449 fi
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
25451 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
25452
25453     GLIBC21="$ac_cv_gnu_library_2_1"
25454
25455
25456 if test $GLIBC21 = yes -o $have_w32_system = yes; then
25457   have_thread_safe_getenv=yes
25458 fi
25459 if test $have_thread_safe_getenv = yes; then
25460
25461 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
25462
25463 fi
25464 have_getenv_r=no
25465 for ac_func in getenv_r
25466 do :
25467   ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
25468 if test "x$ac_cv_func_getenv_r" = xyes; then :
25469   cat >>confdefs.h <<_ACEOF
25470 #define HAVE_GETENV_R 1
25471 _ACEOF
25472  have_getenv_r=yes
25473 fi
25474 done
25475
25476 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
25477   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25478 ***
25479 *** getenv() is not thread-safe and getenv_r() does not exist
25480 ***" >&5
25481 $as_echo "$as_me: WARNING:
25482 ***
25483 *** getenv() is not thread-safe and getenv_r() does not exist
25484 ***" >&2;}
25485 fi
25486
25487 # For converting time strings to seconds since Epoch, we need the timegm
25488 # function.
25489 for ac_func in timegm
25490 do :
25491   ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25492 if test "x$ac_cv_func_timegm" = xyes; then :
25493   cat >>confdefs.h <<_ACEOF
25494 #define HAVE_TIMEGM 1
25495 _ACEOF
25496
25497 fi
25498 done
25499
25500 if test "$ac_cv_func_timegm" != yes; then
25501   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25502 ***
25503 *** timegm() not available - a non-thread-safe kludge will be used
25504 *** and the TZ variable might be changed at runtime.
25505 ***" >&5
25506 $as_echo "$as_me: WARNING:
25507 ***
25508 *** timegm() not available - a non-thread-safe kludge will be used
25509 *** and the TZ variable might be changed at runtime.
25510 ***" >&2;}
25511 fi
25512
25513 for ac_func in setlocale
25514 do :
25515   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
25516 if test "x$ac_cv_func_setlocale" = xyes; then :
25517   cat >>confdefs.h <<_ACEOF
25518 #define HAVE_SETLOCALE 1
25519 _ACEOF
25520
25521 fi
25522 done
25523
25524
25525 # Checking for libgpg-error.
25526 have_gpg_error=no
25527
25528   gpg_error_config_prefix=""
25529
25530 # Check whether --with-libgpg-error-prefix was given.
25531 if test "${with_libgpg_error_prefix+set}" = set; then :
25532   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
25533 fi
25534
25535
25536
25537 # Check whether --with-gpg-error-prefix was given.
25538 if test "${with_gpg_error_prefix+set}" = set; then :
25539   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
25540 fi
25541
25542
25543   if test x"${GPG_ERROR_CONFIG}" = x ; then
25544      if test x"${gpg_error_config_prefix}" != x ; then
25545         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
25546      else
25547        case "${SYSROOT}" in
25548          /*)
25549            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
25550              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
25551            fi
25552            ;;
25553          '')
25554            ;;
25555           *)
25556            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
25557 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
25558            ;;
25559        esac
25560      fi
25561   fi
25562
25563   # Extract the first word of "gpg-error-config", so it can be a program name with args.
25564 set dummy gpg-error-config; ac_word=$2
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25566 $as_echo_n "checking for $ac_word... " >&6; }
25567 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
25568   $as_echo_n "(cached) " >&6
25569 else
25570   case $GPG_ERROR_CONFIG in
25571   [\\/]* | ?:[\\/]*)
25572   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
25573   ;;
25574   *)
25575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25576 for as_dir in $PATH
25577 do
25578   IFS=$as_save_IFS
25579   test -z "$as_dir" && as_dir=.
25580     for ac_exec_ext in '' $ac_executable_extensions; do
25581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25582     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25584     break 2
25585   fi
25586 done
25587   done
25588 IFS=$as_save_IFS
25589
25590   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
25591   ;;
25592 esac
25593 fi
25594 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
25595 if test -n "$GPG_ERROR_CONFIG"; then
25596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
25597 $as_echo "$GPG_ERROR_CONFIG" >&6; }
25598 else
25599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25600 $as_echo "no" >&6; }
25601 fi
25602
25603
25604   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
25605   ok=no
25606
25607   if test "$prefix" = NONE ; then
25608     prefix_option_expanded=/usr/local
25609   else
25610     prefix_option_expanded="$prefix"
25611   fi
25612   if test "$exec_prefix" = NONE ; then
25613     exec_prefix_option_expanded=$prefix_option_expanded
25614   else
25615     exec_prefix_option_expanded=$(prefix=$prefix_option_expanded eval echo $exec_prefix)
25616   fi
25617   libdir_option_expanded=$(prefix=$prefix_option_expanded exec_prefix=$exec_prefix_option_expanded eval echo $libdir)
25618
25619   if test -f $libdir_option_expanded/pkgconfig/gpg-error.pc; then
25620     gpgrt_libdir=$libdir_option_expanded
25621   else
25622     if crt1_path=$(${CC:-cc} -print-file-name=crt1.o 2>/dev/null); then
25623       if possible_libdir=$(cd ${crt1_path%/*} && pwd 2>/dev/null); then
25624         if test -f $possible_libdir/pkgconfig/gpg-error.pc; then
25625           gpgrt_libdir=$possible_libdir
25626         fi
25627       fi
25628     fi
25629   fi
25630
25631   if test "$GPG_ERROR_CONFIG" = "no" -a -n "$gpgrt_libdir"; then
25632     # Extract the first word of "gpgrt-config", so it can be a program name with args.
25633 set dummy gpgrt-config; ac_word=$2
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25635 $as_echo_n "checking for $ac_word... " >&6; }
25636 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25637   $as_echo_n "(cached) " >&6
25638 else
25639   case $GPGRT_CONFIG in
25640   [\\/]* | ?:[\\/]*)
25641   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25642   ;;
25643   *)
25644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25645 for as_dir in $PATH
25646 do
25647   IFS=$as_save_IFS
25648   test -z "$as_dir" && as_dir=.
25649     for ac_exec_ext in '' $ac_executable_extensions; do
25650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25651     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25653     break 2
25654   fi
25655 done
25656   done
25657 IFS=$as_save_IFS
25658
25659   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25660   ;;
25661 esac
25662 fi
25663 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25664 if test -n "$GPGRT_CONFIG"; then
25665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25666 $as_echo "$GPGRT_CONFIG" >&6; }
25667 else
25668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25669 $as_echo "no" >&6; }
25670 fi
25671
25672
25673     if test "$GPGRT_CONFIG" = "no"; then
25674       unset GPGRT_CONFIG
25675     else
25676       GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25677       if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25678         GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25679         { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25680 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25681         gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
25682       else
25683         unset GPGRT_CONFIG
25684       fi
25685     fi
25686   else
25687     gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
25688   fi
25689   if test "$GPG_ERROR_CONFIG" != "no"; then
25690     req_major=`echo $min_gpg_error_version | \
25691                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
25692     req_minor=`echo $min_gpg_error_version | \
25693                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
25694     major=`echo $gpg_error_config_version | \
25695                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
25696     minor=`echo $gpg_error_config_version | \
25697                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
25698     if test "$major" -gt "$req_major"; then
25699         ok=yes
25700     else
25701         if test "$major" -eq "$req_major"; then
25702             if test "$minor" -ge "$req_minor"; then
25703                ok=yes
25704             fi
25705         fi
25706     fi
25707     if test -z "$GPGRT_CONFIG" -a -n "$gpgrt_libdir"; then
25708       if test "$major" -gt 1 -o "$major" -eq 1 -a "$minor" -ge 33; then
25709         # Extract the first word of "gpgrt-config", so it can be a program name with args.
25710 set dummy gpgrt-config; ac_word=$2
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25712 $as_echo_n "checking for $ac_word... " >&6; }
25713 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25714   $as_echo_n "(cached) " >&6
25715 else
25716   case $GPGRT_CONFIG in
25717   [\\/]* | ?:[\\/]*)
25718   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25719   ;;
25720   *)
25721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25722 for as_dir in $PATH
25723 do
25724   IFS=$as_save_IFS
25725   test -z "$as_dir" && as_dir=.
25726     for ac_exec_ext in '' $ac_executable_extensions; do
25727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25728     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25730     break 2
25731   fi
25732 done
25733   done
25734 IFS=$as_save_IFS
25735
25736   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25737   ;;
25738 esac
25739 fi
25740 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25741 if test -n "$GPGRT_CONFIG"; then
25742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25743 $as_echo "$GPGRT_CONFIG" >&6; }
25744 else
25745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25746 $as_echo "no" >&6; }
25747 fi
25748
25749
25750         if test "$GPGRT_CONFIG" = "no"; then
25751           unset GPGRT_CONFIG
25752         else
25753           GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25754           if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25755             GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25756             { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25757 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25758           else
25759             unset GPGRT_CONFIG
25760           fi
25761         fi
25762       fi
25763     fi
25764   fi
25765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
25766 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
25767   if test $ok = yes; then
25768     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
25769     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
25770     if test -z "$GPGRT_CONFIG"; then
25771       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
25772       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
25773     else
25774       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
25775       GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
25776       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
25777       GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
25778     fi
25779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
25780 $as_echo "yes ($gpg_error_config_version)" >&6; }
25781     have_gpg_error=yes
25782     if test -z "$GPGRT_CONFIG"; then
25783       gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
25784     else
25785       gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
25786     fi
25787     if test x"$gpg_error_config_host" != xnone ; then
25788       if test x"$gpg_error_config_host" != x"$host" ; then
25789   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25790 ***
25791 *** The config script \"$GPG_ERROR_CONFIG\" was
25792 *** built for $gpg_error_config_host and thus may not match the
25793 *** used host $host.
25794 *** You may want to use the configure option --with-libgpg-error-prefix
25795 *** to specify a matching config script or use \$SYSROOT.
25796 ***" >&5
25797 $as_echo "$as_me: WARNING:
25798 ***
25799 *** The config script \"$GPG_ERROR_CONFIG\" was
25800 *** built for $gpg_error_config_host and thus may not match the
25801 *** used host $host.
25802 *** You may want to use the configure option --with-libgpg-error-prefix
25803 *** to specify a matching config script or use \$SYSROOT.
25804 ***" >&2;}
25805         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
25806       fi
25807     fi
25808   else
25809     GPG_ERROR_CFLAGS=""
25810     GPG_ERROR_LIBS=""
25811     GPG_ERROR_MT_CFLAGS=""
25812     GPG_ERROR_MT_LIBS=""
25813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25814 $as_echo "no" >&6; }
25815     have_gpg_error=no
25816   fi
25817
25818
25819
25820
25821
25822
25823 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
25824
25825
25826 # And for libassuan.
25827 have_libassuan=no
25828
25829
25830 # Check whether --with-libassuan-prefix was given.
25831 if test "${with_libassuan_prefix+set}" = set; then :
25832   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
25833 else
25834   libassuan_config_prefix=""
25835 fi
25836
25837   if test x$libassuan_config_prefix != x ; then
25838     if test x${LIBASSUAN_CONFIG+set} != xset ; then
25839       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
25840     fi
25841   fi
25842
25843   use_gpgrt_config=""
25844   if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
25845     if $GPGRT_CONFIG libassuan --exists; then
25846       LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
25847       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
25848 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
25849       use_gpgrt_config=yes
25850     fi
25851   fi
25852   if test -z "$use_gpgrt_config"; then
25853     # Extract the first word of "libassuan-config", so it can be a program name with args.
25854 set dummy libassuan-config; ac_word=$2
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25856 $as_echo_n "checking for $ac_word... " >&6; }
25857 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
25858   $as_echo_n "(cached) " >&6
25859 else
25860   case $LIBASSUAN_CONFIG in
25861   [\\/]* | ?:[\\/]*)
25862   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
25863   ;;
25864   *)
25865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25866 for as_dir in $PATH
25867 do
25868   IFS=$as_save_IFS
25869   test -z "$as_dir" && as_dir=.
25870     for ac_exec_ext in '' $ac_executable_extensions; do
25871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25872     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25874     break 2
25875   fi
25876 done
25877   done
25878 IFS=$as_save_IFS
25879
25880   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
25881   ;;
25882 esac
25883 fi
25884 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
25885 if test -n "$LIBASSUAN_CONFIG"; then
25886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
25887 $as_echo "$LIBASSUAN_CONFIG" >&6; }
25888 else
25889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25890 $as_echo "no" >&6; }
25891 fi
25892
25893
25894   fi
25895
25896   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
25897   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
25898     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
25899     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
25900   else
25901     req_libassuan_api=0
25902     min_libassuan_version="$tmp"
25903   fi
25904
25905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
25906 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
25907   ok=no
25908   if test "$LIBASSUAN_CONFIG" != "no"; then
25909     req_major=`echo $min_libassuan_version | \
25910                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25911     req_minor=`echo $min_libassuan_version | \
25912                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25913     req_micro=`echo $min_libassuan_version | \
25914                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25915
25916     if test -z "$use_gpgrt_config"; then
25917       libassuan_config_version=`$LIBASSUAN_CONFIG --version`
25918     else
25919       libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
25920     fi
25921     major=`echo $libassuan_config_version | \
25922                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
25923     minor=`echo $libassuan_config_version | \
25924                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
25925     micro=`echo $libassuan_config_version | \
25926                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
25927
25928     if test "$major" -gt "$req_major"; then
25929         ok=yes
25930     else
25931         if test "$major" -eq "$req_major"; then
25932             if test "$minor" -gt "$req_minor"; then
25933                ok=yes
25934             else
25935                if test "$minor" -eq "$req_minor"; then
25936                    if test "$micro" -ge "$req_micro"; then
25937                      ok=yes
25938                    fi
25939                fi
25940             fi
25941         fi
25942     fi
25943   fi
25944
25945   if test $ok = yes; then
25946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
25947 $as_echo "yes ($libassuan_config_version)" >&6; }
25948   else
25949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25950 $as_echo "no" >&6; }
25951   fi
25952
25953   if test $ok = yes; then
25954     if test "$req_libassuan_api" -gt 0 ; then
25955       if test -z "$use_gpgrt_config"; then
25956         tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
25957       else
25958         tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
25959       fi
25960       if test "$tmp" -gt 0 ; then
25961         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
25962 $as_echo_n "checking LIBASSUAN API version... " >&6; }
25963         if test "$req_libassuan_api" -eq "$tmp" ; then
25964           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
25965 $as_echo "okay" >&6; }
25966         else
25967           ok=no
25968           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
25969 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
25970         fi
25971       fi
25972     fi
25973   fi
25974
25975   if test $ok = yes; then
25976     if test x"$host" != x ; then
25977       if test -z "$use_gpgrt_config"; then
25978         libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
25979       else
25980         libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
25981       fi
25982       if test x"$libassuan_config_host" != xnone ; then
25983         if test x"$libassuan_config_host" != x"$host" ; then
25984   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25985 ***
25986 *** The config script \"$LIBASSUAN_CONFIG\" was
25987 *** built for $libassuan_config_host and thus may not match the
25988 *** used host $host.
25989 *** You may want to use the configure option --with-libassuan-prefix
25990 *** to specify a matching config script.
25991 ***" >&5
25992 $as_echo "$as_me: WARNING:
25993 ***
25994 *** The config script \"$LIBASSUAN_CONFIG\" was
25995 *** built for $libassuan_config_host and thus may not match the
25996 *** used host $host.
25997 *** You may want to use the configure option --with-libassuan-prefix
25998 *** to specify a matching config script.
25999 ***" >&2;}
26000         fi
26001       fi
26002     fi
26003   fi
26004
26005   if test $ok = yes; then
26006     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
26007     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
26008     have_libassuan=yes
26009   else
26010     LIBASSUAN_CFLAGS=""
26011     LIBASSUAN_LIBS=""
26012     have_libassuan=no
26013   fi
26014
26015
26016
26017 if test "$have_libassuan" = "yes"; then
26018
26019 cat >>confdefs.h <<_ACEOF
26020 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
26021 _ACEOF
26022
26023 fi
26024
26025
26026 #
26027 # Other checks
26028 #
26029
26030 # Check for getgid etc
26031 for ac_func in getgid getegid closefrom
26032 do :
26033   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26034 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26035 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26036   cat >>confdefs.h <<_ACEOF
26037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26038 _ACEOF
26039
26040 fi
26041 done
26042
26043
26044
26045 # Replacement functions.
26046 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
26047 if test "x$ac_cv_func_stpcpy" = xyes; then :
26048   $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
26049
26050 else
26051   case " $LIBOBJS " in
26052   *" stpcpy.$ac_objext "* ) ;;
26053   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
26054  ;;
26055 esac
26056
26057 fi
26058
26059
26060 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
26061 if test "x$ac_cv_func_setenv" = xyes; then :
26062   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
26063
26064 else
26065   case " $LIBOBJS " in
26066   *" setenv.$ac_objext "* ) ;;
26067   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
26068  ;;
26069 esac
26070
26071 fi
26072
26073
26074
26075 # Assuan check for descriptor passing.
26076 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
26077 #include <stdlib.h>
26078 #include <stddef.h>
26079 #include <stdio.h>
26080 #include <sys/types.h>
26081 #include <sys/socket.h>
26082 #include <sys/un.h>
26083 #if HAVE_SYS_UIO_H
26084 #include <sys/uio.h>
26085 #endif
26086 #include <unistd.h>
26087
26088 "
26089 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
26090   supports_descriptor_passing=yes
26091 else
26092   supports_descriptor_passing=no
26093                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26094 ***
26095 *** Data structure for sending ancillary data missing.
26096 *** Descriptor passing won't work.
26097 ***" >&5
26098 $as_echo "$as_me: WARNING:
26099 ***
26100 *** Data structure for sending ancillary data missing.
26101 *** Descriptor passing won't work.
26102 ***" >&2;}
26103 fi
26104
26105
26106 use_descriptor_passing=yes
26107 # Check whether --enable-fd-passing was given.
26108 if test "${enable_fd_passing+set}" = set; then :
26109   enableval=$enable_fd_passing; use_descriptor_passing=$enableval
26110 fi
26111
26112
26113 if test "$supports_descriptor_passing" != "yes"; then
26114   use_descriptor_passing=no
26115 fi
26116
26117 if test "$use_descriptor_passing" = "yes"; then
26118
26119 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
26120
26121 fi
26122
26123  if test "$use_descriptor_passing" = "yes"; then
26124   USE_DESCRIPTOR_PASSING_TRUE=
26125   USE_DESCRIPTOR_PASSING_FALSE='#'
26126 else
26127   USE_DESCRIPTOR_PASSING_TRUE='#'
26128   USE_DESCRIPTOR_PASSING_FALSE=
26129 fi
26130
26131
26132
26133 uiserver=no
26134 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
26135   uiserver=yes
26136 fi
26137 if test "$uiserver" != "no"; then
26138
26139 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
26140
26141 fi
26142  if test "$uiserver" != "no"; then
26143   HAVE_UISERVER_TRUE=
26144   HAVE_UISERVER_FALSE='#'
26145 else
26146   HAVE_UISERVER_TRUE='#'
26147   HAVE_UISERVER_FALSE=
26148 fi
26149
26150
26151
26152 # Option --disable-linux-getdents
26153 #
26154 # By default we use SYS_getdents on Linux to optimize fd closing
26155 # before an exec.  This option allows to switch this optimization off.
26156 use_linux_getdents=yes
26157 # Check whether --enable-linux-getdents was given.
26158 if test "${enable_linux_getdents+set}" = set; then :
26159   enableval=$enable_linux_getdents; use_linux_getdents=$enableval
26160 fi
26161
26162 if test "$use_linux_getdents" = "yes"; then
26163     case "${host}" in
26164         *-*-linux*)
26165
26166 $as_echo "#define USE_LINUX_GETDENTS 1" >>confdefs.h
26167
26168            ;;
26169     esac
26170 fi
26171
26172
26173 #
26174 # Add a few constants to help porting to W32
26175 #
26176
26177
26178
26179
26180
26181 # Substitution used for gpgme-config
26182 GPGME_CONFIG_LIBS="-lgpgme"
26183 GPGME_CONFIG_CFLAGS=""
26184 GPGME_CONFIG_HOST="$host"
26185 GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
26186
26187
26188
26189
26190
26191
26192 # Frob'da Variables
26193 LTLIBOBJS=`echo "$LIBOBJS" |
26194            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
26195
26196
26197 # Some checks for gpgme-tool
26198 # Done at top: AC_CHECK_HEADER([argp.h])
26199 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
26200 "
26201 if test "x$ac_cv_type_error_t" = xyes; then :
26202
26203 cat >>confdefs.h <<_ACEOF
26204 #define HAVE_ERROR_T 1
26205 _ACEOF
26206
26207
26208 else
26209
26210 $as_echo "#define error_t int" >>confdefs.h
26211
26212 fi
26213
26214
26215
26216 # A substitution to set generated files in a Emacs buffer to read-only.
26217 emacs_local_vars_begin='Local Variables:'
26218
26219 emacs_local_vars_read_only='buffer-read-only: t'
26220
26221 emacs_local_vars_end='End:'
26222
26223
26224 # Last check.
26225 die=no
26226 if test "$have_gpg_error" = "no"; then
26227    die=yes
26228    { $as_echo "$as_me:${as_lineno-$LINENO}:
26229 ***
26230 *** You need libgpg-error to build this program.
26231 **  This library is for example available at
26232 ***   https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26233 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26234 ***" >&5
26235 $as_echo "$as_me:
26236 ***
26237 *** You need libgpg-error to build this program.
26238 **  This library is for example available at
26239 ***   https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26240 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26241 ***" >&6;}
26242 fi
26243 if test "$have_libassuan" = "no"; then
26244    die=yes
26245    { $as_echo "$as_me:${as_lineno-$LINENO}:
26246 ***
26247 *** You need libassuan to build this program.
26248 *** This library is for example available at
26249 ***   https://www.gnupg.org/ftp/gcrypt/libassuan/
26250 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26251 ***" >&5
26252 $as_echo "$as_me:
26253 ***
26254 *** You need libassuan to build this program.
26255 *** This library is for example available at
26256 ***   https://www.gnupg.org/ftp/gcrypt/libassuan/
26257 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26258 ***" >&6;}
26259 fi
26260
26261 if test "$die" = "yes"; then
26262     as_fn_error $? "
26263 ***
26264 *** Required libraries not found. Please consult the above messages
26265 *** and install them before running configure again.
26266 ***" "$LINENO" 5
26267 fi
26268
26269
26270 #
26271 # Create config files
26272
26273 ac_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"
26274
26275 ac_config_files="$ac_config_files src/gpgme-config"
26276
26277 ac_config_files="$ac_config_files lang/cpp/Makefile lang/cpp/src/Makefile"
26278
26279 ac_config_files="$ac_config_files lang/cpp/tests/Makefile"
26280
26281 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig-w32.cmake.in"
26282
26283 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig.cmake.in"
26284
26285 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfigVersion.cmake"
26286
26287 ac_config_files="$ac_config_files lang/cpp/src/gpgmepp_version.h"
26288
26289 ac_config_files="$ac_config_files lang/qt/Makefile lang/qt/src/Makefile"
26290
26291 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig-w32.cmake.in"
26292
26293 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig.cmake.in"
26294
26295 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfigVersion.cmake"
26296
26297 ac_config_files="$ac_config_files lang/qt/tests/Makefile"
26298
26299 ac_config_files="$ac_config_files lang/qt/src/qgpgme_version.h"
26300
26301 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
26302
26303 if test -z "$HAVE_DOXYGEN_TRUE"; then :
26304   ac_config_files="$ac_config_files lang/qt/doc/Doxyfile"
26305
26306 fi
26307 ac_config_files="$ac_config_files lang/js/Makefile lang/js/src/Makefile lang/js/BrowserTestExtension/Makefile lang/js/DemoExtension/Makefile"
26308
26309 ac_config_files="$ac_config_files lang/qt/doc/Makefile"
26310
26311 ac_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"
26312
26313 ac_config_files="$ac_config_files lang/python/setup.py"
26314
26315 cat >confcache <<\_ACEOF
26316 # This file is a shell script that caches the results of configure
26317 # tests run on this system so they can be shared between configure
26318 # scripts and configure runs, see configure's option --config-cache.
26319 # It is not useful on other systems.  If it contains results you don't
26320 # want to keep, you may remove or edit it.
26321 #
26322 # config.status only pays attention to the cache file if you give it
26323 # the --recheck option to rerun configure.
26324 #
26325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26327 # following values.
26328
26329 _ACEOF
26330
26331 # The following way of writing the cache mishandles newlines in values,
26332 # but we know of no workaround that is simple, portable, and efficient.
26333 # So, we kill variables containing newlines.
26334 # Ultrix sh set writes to stderr and can't be redirected directly,
26335 # and sets the high bit in the cache file unless we assign to the vars.
26336 (
26337   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26338     eval ac_val=\$$ac_var
26339     case $ac_val in #(
26340     *${as_nl}*)
26341       case $ac_var in #(
26342       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26344       esac
26345       case $ac_var in #(
26346       _ | IFS | as_nl) ;; #(
26347       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26348       *) { eval $ac_var=; unset $ac_var;} ;;
26349       esac ;;
26350     esac
26351   done
26352
26353   (set) 2>&1 |
26354     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26355     *${as_nl}ac_space=\ *)
26356       # `set' does not quote correctly, so add quotes: double-quote
26357       # substitution turns \\\\ into \\, and sed turns \\ into \.
26358       sed -n \
26359         "s/'/'\\\\''/g;
26360           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26361       ;; #(
26362     *)
26363       # `set' quotes correctly as required by POSIX, so do not add quotes.
26364       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26365       ;;
26366     esac |
26367     sort
26368 ) |
26369   sed '
26370      /^ac_cv_env_/b end
26371      t clear
26372      :clear
26373      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26374      t end
26375      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26376      :end' >>confcache
26377 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26378   if test -w "$cache_file"; then
26379     if test "x$cache_file" != "x/dev/null"; then
26380       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26381 $as_echo "$as_me: updating cache $cache_file" >&6;}
26382       if test ! -f "$cache_file" || test -h "$cache_file"; then
26383         cat confcache >"$cache_file"
26384       else
26385         case $cache_file in #(
26386         */* | ?:*)
26387           mv -f confcache "$cache_file"$$ &&
26388           mv -f "$cache_file"$$ "$cache_file" ;; #(
26389         *)
26390           mv -f confcache "$cache_file" ;;
26391         esac
26392       fi
26393     fi
26394   else
26395     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26396 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26397   fi
26398 fi
26399 rm -f confcache
26400
26401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26402 # Let make expand exec_prefix.
26403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26404
26405 DEFS=-DHAVE_CONFIG_H
26406
26407 ac_libobjs=
26408 ac_ltlibobjs=
26409 U=
26410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26411   # 1. Remove the extension, and $U if already installed.
26412   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26413   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26414   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26415   #    will be set to the directory where LIBOBJS objects are built.
26416   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26417   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26418 done
26419 LIBOBJS=$ac_libobjs
26420
26421 LTLIBOBJS=$ac_ltlibobjs
26422
26423
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26425 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26426    if test -n "$am_sleep_pid"; then
26427      # Hide warnings about reused PIDs.
26428      wait $am_sleep_pid 2>/dev/null
26429    fi
26430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26431 $as_echo "done" >&6; }
26432  if test -n "$EXEEXT"; then
26433   am__EXEEXT_TRUE=
26434   am__EXEEXT_FALSE='#'
26435 else
26436   am__EXEEXT_TRUE='#'
26437   am__EXEEXT_FALSE=
26438 fi
26439
26440 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26441   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26443 fi
26444 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26445   as_fn_error $? "conditional \"AMDEP\" was never defined.
26446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26447 fi
26448 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26449   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26451 fi
26452 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26453   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26455 fi
26456 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26457   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26459 fi
26460 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
26461   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
26462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26463 fi
26464 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
26465   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
26466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26467 fi
26468 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
26469   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
26470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26471 fi
26472 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
26473   as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
26474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26475 fi
26476 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
26477   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
26478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26479 fi
26480 if test -z "${HAVE_MACOS_SYSTEM_TRUE}" && test -z "${HAVE_MACOS_SYSTEM_FALSE}"; then
26481   as_fn_error $? "conditional \"HAVE_MACOS_SYSTEM\" was never defined.
26482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26483 fi
26484 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
26485   as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
26486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26487 fi
26488 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26489   as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26491 fi
26492 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
26493   as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
26494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26495 fi
26496 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
26497   as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
26498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26499 fi
26500 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
26501   as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
26502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26503 fi
26504 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
26505   as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
26506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26507 fi
26508 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
26509   as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
26510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26511 fi
26512 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
26513   as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
26514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26515 fi
26516
26517 : "${CONFIG_STATUS=./config.status}"
26518 ac_write_fail=0
26519 ac_clean_files_save=$ac_clean_files
26520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26522 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26523 as_write_fail=0
26524 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26525 #! $SHELL
26526 # Generated by $as_me.
26527 # Run this file to recreate the current configuration.
26528 # Compiler output produced by configure, useful for debugging
26529 # configure, is in config.log if it exists.
26530
26531 debug=false
26532 ac_cs_recheck=false
26533 ac_cs_silent=false
26534
26535 SHELL=\${CONFIG_SHELL-$SHELL}
26536 export SHELL
26537 _ASEOF
26538 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26539 ## -------------------- ##
26540 ## M4sh Initialization. ##
26541 ## -------------------- ##
26542
26543 # Be more Bourne compatible
26544 DUALCASE=1; export DUALCASE # for MKS sh
26545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26546   emulate sh
26547   NULLCMD=:
26548   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26549   # is contrary to our usage.  Disable this feature.
26550   alias -g '${1+"$@"}'='"$@"'
26551   setopt NO_GLOB_SUBST
26552 else
26553   case `(set -o) 2>/dev/null` in #(
26554   *posix*) :
26555     set -o posix ;; #(
26556   *) :
26557      ;;
26558 esac
26559 fi
26560
26561
26562 as_nl='
26563 '
26564 export as_nl
26565 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26566 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26568 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26569 # Prefer a ksh shell builtin over an external printf program on Solaris,
26570 # but without wasting forks for bash or zsh.
26571 if test -z "$BASH_VERSION$ZSH_VERSION" \
26572     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26573   as_echo='print -r --'
26574   as_echo_n='print -rn --'
26575 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26576   as_echo='printf %s\n'
26577   as_echo_n='printf %s'
26578 else
26579   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26580     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26581     as_echo_n='/usr/ucb/echo -n'
26582   else
26583     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26584     as_echo_n_body='eval
26585       arg=$1;
26586       case $arg in #(
26587       *"$as_nl"*)
26588         expr "X$arg" : "X\\(.*\\)$as_nl";
26589         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26590       esac;
26591       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26592     '
26593     export as_echo_n_body
26594     as_echo_n='sh -c $as_echo_n_body as_echo'
26595   fi
26596   export as_echo_body
26597   as_echo='sh -c $as_echo_body as_echo'
26598 fi
26599
26600 # The user is always right.
26601 if test "${PATH_SEPARATOR+set}" != set; then
26602   PATH_SEPARATOR=:
26603   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26604     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26605       PATH_SEPARATOR=';'
26606   }
26607 fi
26608
26609
26610 # IFS
26611 # We need space, tab and new line, in precisely that order.  Quoting is
26612 # there to prevent editors from complaining about space-tab.
26613 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26614 # splitting by setting IFS to empty value.)
26615 IFS=" ""        $as_nl"
26616
26617 # Find who we are.  Look in the path if we contain no directory separator.
26618 as_myself=
26619 case $0 in #((
26620   *[\\/]* ) as_myself=$0 ;;
26621   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26622 for as_dir in $PATH
26623 do
26624   IFS=$as_save_IFS
26625   test -z "$as_dir" && as_dir=.
26626     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26627   done
26628 IFS=$as_save_IFS
26629
26630      ;;
26631 esac
26632 # We did not find ourselves, most probably we were run as `sh COMMAND'
26633 # in which case we are not to be found in the path.
26634 if test "x$as_myself" = x; then
26635   as_myself=$0
26636 fi
26637 if test ! -f "$as_myself"; then
26638   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26639   exit 1
26640 fi
26641
26642 # Unset variables that we do not need and which cause bugs (e.g. in
26643 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26644 # suppresses any "Segmentation fault" message there.  '((' could
26645 # trigger a bug in pdksh 5.2.14.
26646 for as_var in BASH_ENV ENV MAIL MAILPATH
26647 do eval test x\${$as_var+set} = xset \
26648   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26649 done
26650 PS1='$ '
26651 PS2='> '
26652 PS4='+ '
26653
26654 # NLS nuisances.
26655 LC_ALL=C
26656 export LC_ALL
26657 LANGUAGE=C
26658 export LANGUAGE
26659
26660 # CDPATH.
26661 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26662
26663
26664 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26665 # ----------------------------------------
26666 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26667 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26668 # script with STATUS, using 1 if that was 0.
26669 as_fn_error ()
26670 {
26671   as_status=$1; test $as_status -eq 0 && as_status=1
26672   if test "$4"; then
26673     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26674     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26675   fi
26676   $as_echo "$as_me: error: $2" >&2
26677   as_fn_exit $as_status
26678 } # as_fn_error
26679
26680
26681 # as_fn_set_status STATUS
26682 # -----------------------
26683 # Set $? to STATUS, without forking.
26684 as_fn_set_status ()
26685 {
26686   return $1
26687 } # as_fn_set_status
26688
26689 # as_fn_exit STATUS
26690 # -----------------
26691 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26692 as_fn_exit ()
26693 {
26694   set +e
26695   as_fn_set_status $1
26696   exit $1
26697 } # as_fn_exit
26698
26699 # as_fn_unset VAR
26700 # ---------------
26701 # Portably unset VAR.
26702 as_fn_unset ()
26703 {
26704   { eval $1=; unset $1;}
26705 }
26706 as_unset=as_fn_unset
26707 # as_fn_append VAR VALUE
26708 # ----------------------
26709 # Append the text in VALUE to the end of the definition contained in VAR. Take
26710 # advantage of any shell optimizations that allow amortized linear growth over
26711 # repeated appends, instead of the typical quadratic growth present in naive
26712 # implementations.
26713 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26714   eval 'as_fn_append ()
26715   {
26716     eval $1+=\$2
26717   }'
26718 else
26719   as_fn_append ()
26720   {
26721     eval $1=\$$1\$2
26722   }
26723 fi # as_fn_append
26724
26725 # as_fn_arith ARG...
26726 # ------------------
26727 # Perform arithmetic evaluation on the ARGs, and store the result in the
26728 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26729 # must be portable across $(()) and expr.
26730 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26731   eval 'as_fn_arith ()
26732   {
26733     as_val=$(( $* ))
26734   }'
26735 else
26736   as_fn_arith ()
26737   {
26738     as_val=`expr "$@" || test $? -eq 1`
26739   }
26740 fi # as_fn_arith
26741
26742
26743 if expr a : '\(a\)' >/dev/null 2>&1 &&
26744    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26745   as_expr=expr
26746 else
26747   as_expr=false
26748 fi
26749
26750 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26751   as_basename=basename
26752 else
26753   as_basename=false
26754 fi
26755
26756 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26757   as_dirname=dirname
26758 else
26759   as_dirname=false
26760 fi
26761
26762 as_me=`$as_basename -- "$0" ||
26763 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26764          X"$0" : 'X\(//\)$' \| \
26765          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26766 $as_echo X/"$0" |
26767     sed '/^.*\/\([^/][^/]*\)\/*$/{
26768             s//\1/
26769             q
26770           }
26771           /^X\/\(\/\/\)$/{
26772             s//\1/
26773             q
26774           }
26775           /^X\/\(\/\).*/{
26776             s//\1/
26777             q
26778           }
26779           s/.*/./; q'`
26780
26781 # Avoid depending upon Character Ranges.
26782 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26783 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26784 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26785 as_cr_digits='0123456789'
26786 as_cr_alnum=$as_cr_Letters$as_cr_digits
26787
26788 ECHO_C= ECHO_N= ECHO_T=
26789 case `echo -n x` in #(((((
26790 -n*)
26791   case `echo 'xy\c'` in
26792   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26793   xy)  ECHO_C='\c';;
26794   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26795        ECHO_T=' ';;
26796   esac;;
26797 *)
26798   ECHO_N='-n';;
26799 esac
26800
26801 rm -f conf$$ conf$$.exe conf$$.file
26802 if test -d conf$$.dir; then
26803   rm -f conf$$.dir/conf$$.file
26804 else
26805   rm -f conf$$.dir
26806   mkdir conf$$.dir 2>/dev/null
26807 fi
26808 if (echo >conf$$.file) 2>/dev/null; then
26809   if ln -s conf$$.file conf$$ 2>/dev/null; then
26810     as_ln_s='ln -s'
26811     # ... but there are two gotchas:
26812     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26813     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26814     # In both cases, we have to default to `cp -pR'.
26815     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26816       as_ln_s='cp -pR'
26817   elif ln conf$$.file conf$$ 2>/dev/null; then
26818     as_ln_s=ln
26819   else
26820     as_ln_s='cp -pR'
26821   fi
26822 else
26823   as_ln_s='cp -pR'
26824 fi
26825 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26826 rmdir conf$$.dir 2>/dev/null
26827
26828
26829 # as_fn_mkdir_p
26830 # -------------
26831 # Create "$as_dir" as a directory, including parents if necessary.
26832 as_fn_mkdir_p ()
26833 {
26834
26835   case $as_dir in #(
26836   -*) as_dir=./$as_dir;;
26837   esac
26838   test -d "$as_dir" || eval $as_mkdir_p || {
26839     as_dirs=
26840     while :; do
26841       case $as_dir in #(
26842       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26843       *) as_qdir=$as_dir;;
26844       esac
26845       as_dirs="'$as_qdir' $as_dirs"
26846       as_dir=`$as_dirname -- "$as_dir" ||
26847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26848          X"$as_dir" : 'X\(//\)[^/]' \| \
26849          X"$as_dir" : 'X\(//\)$' \| \
26850          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26851 $as_echo X"$as_dir" |
26852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26853             s//\1/
26854             q
26855           }
26856           /^X\(\/\/\)[^/].*/{
26857             s//\1/
26858             q
26859           }
26860           /^X\(\/\/\)$/{
26861             s//\1/
26862             q
26863           }
26864           /^X\(\/\).*/{
26865             s//\1/
26866             q
26867           }
26868           s/.*/./; q'`
26869       test -d "$as_dir" && break
26870     done
26871     test -z "$as_dirs" || eval "mkdir $as_dirs"
26872   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26873
26874
26875 } # as_fn_mkdir_p
26876 if mkdir -p . 2>/dev/null; then
26877   as_mkdir_p='mkdir -p "$as_dir"'
26878 else
26879   test -d ./-p && rmdir ./-p
26880   as_mkdir_p=false
26881 fi
26882
26883
26884 # as_fn_executable_p FILE
26885 # -----------------------
26886 # Test if FILE is an executable regular file.
26887 as_fn_executable_p ()
26888 {
26889   test -f "$1" && test -x "$1"
26890 } # as_fn_executable_p
26891 as_test_x='test -x'
26892 as_executable_p=as_fn_executable_p
26893
26894 # Sed expression to map a string onto a valid CPP name.
26895 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26896
26897 # Sed expression to map a string onto a valid variable name.
26898 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26899
26900
26901 exec 6>&1
26902 ## ----------------------------------- ##
26903 ## Main body of $CONFIG_STATUS script. ##
26904 ## ----------------------------------- ##
26905 _ASEOF
26906 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26907
26908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26909 # Save the log message, to keep $0 and so on meaningful, and to
26910 # report actual input values of CONFIG_FILES etc. instead of their
26911 # values after options handling.
26912 ac_log="
26913 This file was extended by gpgme $as_me 1.15.0, which was
26914 generated by GNU Autoconf 2.69.  Invocation command line was
26915
26916   CONFIG_FILES    = $CONFIG_FILES
26917   CONFIG_HEADERS  = $CONFIG_HEADERS
26918   CONFIG_LINKS    = $CONFIG_LINKS
26919   CONFIG_COMMANDS = $CONFIG_COMMANDS
26920   $ $0 $@
26921
26922 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26923 "
26924
26925 _ACEOF
26926
26927 case $ac_config_files in *"
26928 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26929 esac
26930
26931 case $ac_config_headers in *"
26932 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26933 esac
26934
26935
26936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26937 # Files that config.status was made for.
26938 config_files="$ac_config_files"
26939 config_headers="$ac_config_headers"
26940 config_commands="$ac_config_commands"
26941
26942 _ACEOF
26943
26944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26945 ac_cs_usage="\
26946 \`$as_me' instantiates files and other configuration actions
26947 from templates according to the current configuration.  Unless the files
26948 and actions are specified as TAGs, all are instantiated by default.
26949
26950 Usage: $0 [OPTION]... [TAG]...
26951
26952   -h, --help       print this help, then exit
26953   -V, --version    print version number and configuration settings, then exit
26954       --config     print configuration, then exit
26955   -q, --quiet, --silent
26956                    do not print progress messages
26957   -d, --debug      don't remove temporary files
26958       --recheck    update $as_me by reconfiguring in the same conditions
26959       --file=FILE[:TEMPLATE]
26960                    instantiate the configuration file FILE
26961       --header=FILE[:TEMPLATE]
26962                    instantiate the configuration header FILE
26963
26964 Configuration files:
26965 $config_files
26966
26967 Configuration headers:
26968 $config_headers
26969
26970 Configuration commands:
26971 $config_commands
26972
26973 Report bugs to <https://bugs.gnupg.org>."
26974
26975 _ACEOF
26976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26977 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26978 ac_cs_version="\\
26979 gpgme config.status 1.15.0
26980 configured by $0, generated by GNU Autoconf 2.69,
26981   with options \\"\$ac_cs_config\\"
26982
26983 Copyright (C) 2012 Free Software Foundation, Inc.
26984 This config.status script is free software; the Free Software Foundation
26985 gives unlimited permission to copy, distribute and modify it."
26986
26987 ac_pwd='$ac_pwd'
26988 srcdir='$srcdir'
26989 INSTALL='$INSTALL'
26990 MKDIR_P='$MKDIR_P'
26991 AWK='$AWK'
26992 test -n "\$AWK" || AWK=awk
26993 _ACEOF
26994
26995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26996 # The default lists apply if the user does not specify any file.
26997 ac_need_defaults=:
26998 while test $# != 0
26999 do
27000   case $1 in
27001   --*=?*)
27002     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27003     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27004     ac_shift=:
27005     ;;
27006   --*=)
27007     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27008     ac_optarg=
27009     ac_shift=:
27010     ;;
27011   *)
27012     ac_option=$1
27013     ac_optarg=$2
27014     ac_shift=shift
27015     ;;
27016   esac
27017
27018   case $ac_option in
27019   # Handling of the options.
27020   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27021     ac_cs_recheck=: ;;
27022   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27023     $as_echo "$ac_cs_version"; exit ;;
27024   --config | --confi | --conf | --con | --co | --c )
27025     $as_echo "$ac_cs_config"; exit ;;
27026   --debug | --debu | --deb | --de | --d | -d )
27027     debug=: ;;
27028   --file | --fil | --fi | --f )
27029     $ac_shift
27030     case $ac_optarg in
27031     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27032     '') as_fn_error $? "missing file argument" ;;
27033     esac
27034     as_fn_append CONFIG_FILES " '$ac_optarg'"
27035     ac_need_defaults=false;;
27036   --header | --heade | --head | --hea )
27037     $ac_shift
27038     case $ac_optarg in
27039     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27040     esac
27041     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27042     ac_need_defaults=false;;
27043   --he | --h)
27044     # Conflict between --help and --header
27045     as_fn_error $? "ambiguous option: \`$1'
27046 Try \`$0 --help' for more information.";;
27047   --help | --hel | -h )
27048     $as_echo "$ac_cs_usage"; exit ;;
27049   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27050   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27051     ac_cs_silent=: ;;
27052
27053   # This is an error.
27054   -*) as_fn_error $? "unrecognized option: \`$1'
27055 Try \`$0 --help' for more information." ;;
27056
27057   *) as_fn_append ac_config_targets " $1"
27058      ac_need_defaults=false ;;
27059
27060   esac
27061   shift
27062 done
27063
27064 ac_configure_extra_args=
27065
27066 if $ac_cs_silent; then
27067   exec 6>/dev/null
27068   ac_configure_extra_args="$ac_configure_extra_args --silent"
27069 fi
27070
27071 _ACEOF
27072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27073 if \$ac_cs_recheck; then
27074   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27075   shift
27076   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27077   CONFIG_SHELL='$SHELL'
27078   export CONFIG_SHELL
27079   exec "\$@"
27080 fi
27081
27082 _ACEOF
27083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27084 exec 5>>config.log
27085 {
27086   echo
27087   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27088 ## Running $as_me. ##
27089 _ASBOX
27090   $as_echo "$ac_log"
27091 } >&5
27092
27093 _ACEOF
27094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27095 #
27096 # INIT-COMMANDS
27097 #
27098 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27099
27100
27101 # The HP-UX ksh and POSIX shell print the target directory to stdout
27102 # if CDPATH is set.
27103 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27104
27105 sed_quote_subst='$sed_quote_subst'
27106 double_quote_subst='$double_quote_subst'
27107 delay_variable_subst='$delay_variable_subst'
27108 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27109 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27110 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27111 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27112 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27113 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27114 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27115 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27116 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27117 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27118 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27119 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27120 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27121 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27122 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27123 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27124 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27125 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27126 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27127 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27128 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27129 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27130 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27131 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27132 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27133 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27134 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27135 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27136 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27137 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27138 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27139 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27140 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27141 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27142 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27143 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27144 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27145 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27146 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27147 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27148 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27149 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27150 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27151 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27152 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27153 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27154 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27155 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27156 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27157 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27158 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27159 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27160 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27161 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27162 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27163 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27164 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27165 lt_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"`'
27166 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27167 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27168 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27169 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27170 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27171 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27172 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27173 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27174 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27175 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27176 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27177 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27178 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27179 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27180 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27181 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27182 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27183 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27184 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27185 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27186 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27187 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27188 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27189 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27190 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27191 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27192 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27193 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27194 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27195 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27196 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27197 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27198 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27199 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27200 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27201 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27202 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27203 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27204 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27205 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27206 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27207 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27208 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27209 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27210 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27211 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27212 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27213 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27214 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27215 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27216 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27217 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27218 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27219 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27220 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27221 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27222 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27223 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27224 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27225 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27226 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27227 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27228 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27229 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27230 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27231 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27232 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27233 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27234 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27235 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27236 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27237 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27238 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27239 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27240 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27241 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27242 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27243 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27244 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27245 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27246 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27247 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27248 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27249 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27250 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27251 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27252 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27253 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27254 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27255 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27256 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27257 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27258 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27259 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27260 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27261 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27262 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27263 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27264 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27265 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27266 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27267 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27268 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27269 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27270 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27271 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27272 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27273 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27274 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27275 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27276 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27277 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27278 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27279 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27280 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27281 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27282 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27283 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27284 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27285 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27286 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27287 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27288 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27289 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27290 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27291 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27292 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27293 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27294 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27295 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27296 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27297 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27298 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27299 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27300 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27301 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27302 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27303 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27304 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27305 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27306 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27307 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27308 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27309 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27310 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27311 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27312 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27313 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27314 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27315 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27316 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27317 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27318 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27319 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27320 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27321 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27322 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27323 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27324 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27325 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27326 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27327 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27328 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27329 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27330 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27331 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27332 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27333 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27334 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27335 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27336 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27337 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27338 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27339 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27340 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27341
27342 LTCC='$LTCC'
27343 LTCFLAGS='$LTCFLAGS'
27344 compiler='$compiler_DEFAULT'
27345
27346 # A function that is used when there is no print builtin or printf.
27347 func_fallback_echo ()
27348 {
27349   eval 'cat <<_LTECHO_EOF
27350 \$1
27351 _LTECHO_EOF'
27352 }
27353
27354 # Quote evaled strings.
27355 for var in AS \
27356 DLLTOOL \
27357 OBJDUMP \
27358 SHELL \
27359 ECHO \
27360 PATH_SEPARATOR \
27361 SED \
27362 GREP \
27363 EGREP \
27364 FGREP \
27365 LD \
27366 NM \
27367 LN_S \
27368 lt_SP2NL \
27369 lt_NL2SP \
27370 reload_flag \
27371 deplibs_check_method \
27372 file_magic_cmd \
27373 file_magic_glob \
27374 want_nocaseglob \
27375 sharedlib_from_linklib_cmd \
27376 AR \
27377 AR_FLAGS \
27378 archiver_list_spec \
27379 STRIP \
27380 RANLIB \
27381 CC \
27382 CFLAGS \
27383 compiler \
27384 lt_cv_sys_global_symbol_pipe \
27385 lt_cv_sys_global_symbol_to_cdecl \
27386 lt_cv_sys_global_symbol_to_c_name_address \
27387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27388 nm_file_list_spec \
27389 lt_prog_compiler_no_builtin_flag \
27390 lt_prog_compiler_pic \
27391 lt_prog_compiler_wl \
27392 lt_prog_compiler_static \
27393 lt_cv_prog_compiler_c_o \
27394 need_locks \
27395 MANIFEST_TOOL \
27396 DSYMUTIL \
27397 NMEDIT \
27398 LIPO \
27399 OTOOL \
27400 OTOOL64 \
27401 shrext_cmds \
27402 export_dynamic_flag_spec \
27403 whole_archive_flag_spec \
27404 compiler_needs_object \
27405 with_gnu_ld \
27406 allow_undefined_flag \
27407 no_undefined_flag \
27408 hardcode_libdir_flag_spec \
27409 hardcode_libdir_separator \
27410 exclude_expsyms \
27411 include_expsyms \
27412 file_list_spec \
27413 variables_saved_for_relink \
27414 libname_spec \
27415 library_names_spec \
27416 soname_spec \
27417 install_override_mode \
27418 finish_eval \
27419 old_striplib \
27420 striplib \
27421 compiler_lib_search_dirs \
27422 predep_objects \
27423 postdep_objects \
27424 predeps \
27425 postdeps \
27426 compiler_lib_search_path \
27427 LD_CXX \
27428 LD_RC \
27429 reload_flag_CXX \
27430 reload_flag_RC \
27431 compiler_CXX \
27432 compiler_RC \
27433 lt_prog_compiler_no_builtin_flag_CXX \
27434 lt_prog_compiler_no_builtin_flag_RC \
27435 lt_prog_compiler_pic_CXX \
27436 lt_prog_compiler_pic_RC \
27437 lt_prog_compiler_wl_CXX \
27438 lt_prog_compiler_wl_RC \
27439 lt_prog_compiler_static_CXX \
27440 lt_prog_compiler_static_RC \
27441 lt_cv_prog_compiler_c_o_CXX \
27442 lt_cv_prog_compiler_c_o_RC \
27443 export_dynamic_flag_spec_CXX \
27444 export_dynamic_flag_spec_RC \
27445 whole_archive_flag_spec_CXX \
27446 whole_archive_flag_spec_RC \
27447 compiler_needs_object_CXX \
27448 compiler_needs_object_RC \
27449 with_gnu_ld_CXX \
27450 with_gnu_ld_RC \
27451 allow_undefined_flag_CXX \
27452 allow_undefined_flag_RC \
27453 no_undefined_flag_CXX \
27454 no_undefined_flag_RC \
27455 hardcode_libdir_flag_spec_CXX \
27456 hardcode_libdir_flag_spec_RC \
27457 hardcode_libdir_separator_CXX \
27458 hardcode_libdir_separator_RC \
27459 exclude_expsyms_CXX \
27460 exclude_expsyms_RC \
27461 include_expsyms_CXX \
27462 include_expsyms_RC \
27463 file_list_spec_CXX \
27464 file_list_spec_RC \
27465 compiler_lib_search_dirs_CXX \
27466 compiler_lib_search_dirs_RC \
27467 predep_objects_CXX \
27468 predep_objects_RC \
27469 postdep_objects_CXX \
27470 postdep_objects_RC \
27471 predeps_CXX \
27472 predeps_RC \
27473 postdeps_CXX \
27474 postdeps_RC \
27475 compiler_lib_search_path_CXX \
27476 compiler_lib_search_path_RC; do
27477     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27478     *[\\\\\\\`\\"\\\$]*)
27479       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27480       ;;
27481     *)
27482       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27483       ;;
27484     esac
27485 done
27486
27487 # Double-quote double-evaled strings.
27488 for var in reload_cmds \
27489 old_postinstall_cmds \
27490 old_postuninstall_cmds \
27491 old_archive_cmds \
27492 extract_expsyms_cmds \
27493 old_archive_from_new_cmds \
27494 old_archive_from_expsyms_cmds \
27495 archive_cmds \
27496 archive_expsym_cmds \
27497 module_cmds \
27498 module_expsym_cmds \
27499 export_symbols_cmds \
27500 prelink_cmds \
27501 postlink_cmds \
27502 postinstall_cmds \
27503 postuninstall_cmds \
27504 finish_cmds \
27505 sys_lib_search_path_spec \
27506 sys_lib_dlsearch_path_spec \
27507 reload_cmds_CXX \
27508 reload_cmds_RC \
27509 old_archive_cmds_CXX \
27510 old_archive_cmds_RC \
27511 old_archive_from_new_cmds_CXX \
27512 old_archive_from_new_cmds_RC \
27513 old_archive_from_expsyms_cmds_CXX \
27514 old_archive_from_expsyms_cmds_RC \
27515 archive_cmds_CXX \
27516 archive_cmds_RC \
27517 archive_expsym_cmds_CXX \
27518 archive_expsym_cmds_RC \
27519 module_cmds_CXX \
27520 module_cmds_RC \
27521 module_expsym_cmds_CXX \
27522 module_expsym_cmds_RC \
27523 export_symbols_cmds_CXX \
27524 export_symbols_cmds_RC \
27525 prelink_cmds_CXX \
27526 prelink_cmds_RC \
27527 postlink_cmds_CXX \
27528 postlink_cmds_RC; do
27529     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27530     *[\\\\\\\`\\"\\\$]*)
27531       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27532       ;;
27533     *)
27534       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27535       ;;
27536     esac
27537 done
27538
27539 ac_aux_dir='$ac_aux_dir'
27540 xsi_shell='$xsi_shell'
27541 lt_shell_append='$lt_shell_append'
27542
27543 # See if we are running on zsh, and set the options which allow our
27544 # commands through without removal of \ escapes INIT.
27545 if test -n "\${ZSH_VERSION+set}" ; then
27546    setopt NO_GLOB_SUBST
27547 fi
27548
27549
27550     PACKAGE='$PACKAGE'
27551     VERSION='$VERSION'
27552     TIMESTAMP='$TIMESTAMP'
27553     RM='$RM'
27554     ofile='$ofile'
27555
27556
27557
27558
27559
27560
27561
27562
27563 _ACEOF
27564
27565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27566
27567 # Handling of arguments.
27568 for ac_config_target in $ac_config_targets
27569 do
27570   case $ac_config_target in
27571     "conf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS conf/config.h" ;;
27572     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27573     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27574     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27575     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27576     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27577     "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
27578     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
27579     "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
27580     "tests/json/Makefile") CONFIG_FILES="$CONFIG_FILES tests/json/Makefile" ;;
27581     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27582     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
27583     "src/gpgme.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme.pc" ;;
27584     "src/gpgme-glib.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme-glib.pc" ;;
27585     "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
27586     "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
27587     "lang/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/Makefile" ;;
27588     "lang/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/Makefile" ;;
27589     "lang/cpp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/tests/Makefile" ;;
27590     "lang/cpp/src/GpgmeppConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig-w32.cmake.in" ;;
27591     "lang/cpp/src/GpgmeppConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig.cmake.in" ;;
27592     "lang/cpp/src/GpgmeppConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfigVersion.cmake" ;;
27593     "lang/cpp/src/gpgmepp_version.h") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/gpgmepp_version.h" ;;
27594     "lang/qt/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/Makefile" ;;
27595     "lang/qt/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/src/Makefile" ;;
27596     "lang/qt/src/QGpgmeConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig-w32.cmake.in" ;;
27597     "lang/qt/src/QGpgmeConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig.cmake.in" ;;
27598     "lang/qt/src/QGpgmeConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfigVersion.cmake" ;;
27599     "lang/qt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/tests/Makefile" ;;
27600     "lang/qt/src/qgpgme_version.h") CONFIG_FILES="$CONFIG_FILES lang/qt/src/qgpgme_version.h" ;;
27601     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
27602     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
27603     "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
27604     "lang/qt/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Doxyfile" ;;
27605     "lang/js/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/Makefile" ;;
27606     "lang/js/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/src/Makefile" ;;
27607     "lang/js/BrowserTestExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/BrowserTestExtension/Makefile" ;;
27608     "lang/js/DemoExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/DemoExtension/Makefile" ;;
27609     "lang/qt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Makefile" ;;
27610     "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
27611     "lang/python/version.py") CONFIG_FILES="$CONFIG_FILES lang/python/version.py" ;;
27612     "lang/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/tests/Makefile" ;;
27613     "lang/python/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/src/Makefile" ;;
27614     "lang/python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/examples/Makefile" ;;
27615     "lang/python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/doc/Makefile" ;;
27616     "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
27617
27618   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27619   esac
27620 done
27621
27622
27623 # If the user did not use the arguments to specify the items to instantiate,
27624 # then the envvar interface is used.  Set only those that are not.
27625 # We use the long form for the default assignment because of an extremely
27626 # bizarre bug on SunOS 4.1.3.
27627 if $ac_need_defaults; then
27628   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27629   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27630   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27631 fi
27632
27633 # Have a temporary directory for convenience.  Make it in the build tree
27634 # simply because there is no reason against having it here, and in addition,
27635 # creating and moving files from /tmp can sometimes cause problems.
27636 # Hook for its removal unless debugging.
27637 # Note that there is a small window in which the directory will not be cleaned:
27638 # after its creation but before its name has been assigned to `$tmp'.
27639 $debug ||
27640 {
27641   tmp= ac_tmp=
27642   trap 'exit_status=$?
27643   : "${ac_tmp:=$tmp}"
27644   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27645 ' 0
27646   trap 'as_fn_exit 1' 1 2 13 15
27647 }
27648 # Create a (secure) tmp directory for tmp files.
27649
27650 {
27651   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27652   test -d "$tmp"
27653 }  ||
27654 {
27655   tmp=./conf$$-$RANDOM
27656   (umask 077 && mkdir "$tmp")
27657 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27658 ac_tmp=$tmp
27659
27660 # Set up the scripts for CONFIG_FILES section.
27661 # No need to generate them if there are no CONFIG_FILES.
27662 # This happens for instance with `./config.status config.h'.
27663 if test -n "$CONFIG_FILES"; then
27664
27665
27666 ac_cr=`echo X | tr X '\015'`
27667 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27668 # But we know of no other shell where ac_cr would be empty at this
27669 # point, so we can use a bashism as a fallback.
27670 if test "x$ac_cr" = x; then
27671   eval ac_cr=\$\'\\r\'
27672 fi
27673 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27674 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27675   ac_cs_awk_cr='\\r'
27676 else
27677   ac_cs_awk_cr=$ac_cr
27678 fi
27679
27680 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27681 _ACEOF
27682
27683
27684 {
27685   echo "cat >conf$$subs.awk <<_ACEOF" &&
27686   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27687   echo "_ACEOF"
27688 } >conf$$subs.sh ||
27689   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27690 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27691 ac_delim='%!_!# '
27692 for ac_last_try in false false false false false :; do
27693   . ./conf$$subs.sh ||
27694     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27695
27696   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27697   if test $ac_delim_n = $ac_delim_num; then
27698     break
27699   elif $ac_last_try; then
27700     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27701   else
27702     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27703   fi
27704 done
27705 rm -f conf$$subs.sh
27706
27707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27708 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27709 _ACEOF
27710 sed -n '
27711 h
27712 s/^/S["/; s/!.*/"]=/
27713 p
27714 g
27715 s/^[^!]*!//
27716 :repl
27717 t repl
27718 s/'"$ac_delim"'$//
27719 t delim
27720 :nl
27721 h
27722 s/\(.\{148\}\)..*/\1/
27723 t more1
27724 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27725 p
27726 n
27727 b repl
27728 :more1
27729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27730 p
27731 g
27732 s/.\{148\}//
27733 t nl
27734 :delim
27735 h
27736 s/\(.\{148\}\)..*/\1/
27737 t more2
27738 s/["\\]/\\&/g; s/^/"/; s/$/"/
27739 p
27740 b
27741 :more2
27742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27743 p
27744 g
27745 s/.\{148\}//
27746 t delim
27747 ' <conf$$subs.awk | sed '
27748 /^[^""]/{
27749   N
27750   s/\n//
27751 }
27752 ' >>$CONFIG_STATUS || ac_write_fail=1
27753 rm -f conf$$subs.awk
27754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27755 _ACAWK
27756 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27757   for (key in S) S_is_set[key] = 1
27758   FS = "\a"
27759
27760 }
27761 {
27762   line = $ 0
27763   nfields = split(line, field, "@")
27764   substed = 0
27765   len = length(field[1])
27766   for (i = 2; i < nfields; i++) {
27767     key = field[i]
27768     keylen = length(key)
27769     if (S_is_set[key]) {
27770       value = S[key]
27771       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27772       len += length(value) + length(field[++i])
27773       substed = 1
27774     } else
27775       len += 1 + keylen
27776   }
27777
27778   print line
27779 }
27780
27781 _ACAWK
27782 _ACEOF
27783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27784 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27785   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27786 else
27787   cat
27788 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27789   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27790 _ACEOF
27791
27792 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27793 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27794 # trailing colons and then remove the whole line if VPATH becomes empty
27795 # (actually we leave an empty line to preserve line numbers).
27796 if test "x$srcdir" = x.; then
27797   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27798 h
27799 s///
27800 s/^/:/
27801 s/[      ]*$/:/
27802 s/:\$(srcdir):/:/g
27803 s/:\${srcdir}:/:/g
27804 s/:@srcdir@:/:/g
27805 s/^:*//
27806 s/:*$//
27807 x
27808 s/\(=[   ]*\).*/\1/
27809 G
27810 s/\n//
27811 s/^[^=]*=[       ]*$//
27812 }'
27813 fi
27814
27815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27816 fi # test -n "$CONFIG_FILES"
27817
27818 # Set up the scripts for CONFIG_HEADERS section.
27819 # No need to generate them if there are no CONFIG_HEADERS.
27820 # This happens for instance with `./config.status Makefile'.
27821 if test -n "$CONFIG_HEADERS"; then
27822 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27823 BEGIN {
27824 _ACEOF
27825
27826 # Transform confdefs.h into an awk script `defines.awk', embedded as
27827 # here-document in config.status, that substitutes the proper values into
27828 # config.h.in to produce config.h.
27829
27830 # Create a delimiter string that does not exist in confdefs.h, to ease
27831 # handling of long lines.
27832 ac_delim='%!_!# '
27833 for ac_last_try in false false :; do
27834   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27835   if test -z "$ac_tt"; then
27836     break
27837   elif $ac_last_try; then
27838     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27839   else
27840     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27841   fi
27842 done
27843
27844 # For the awk script, D is an array of macro values keyed by name,
27845 # likewise P contains macro parameters if any.  Preserve backslash
27846 # newline sequences.
27847
27848 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27849 sed -n '
27850 s/.\{148\}/&'"$ac_delim"'/g
27851 t rset
27852 :rset
27853 s/^[     ]*#[    ]*define[       ][      ]*/ /
27854 t def
27855 d
27856 :def
27857 s/\\$//
27858 t bsnl
27859 s/["\\]/\\&/g
27860 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27861 D["\1"]=" \3"/p
27862 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27863 d
27864 :bsnl
27865 s/["\\]/\\&/g
27866 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27867 D["\1"]=" \3\\\\\\n"\\/p
27868 t cont
27869 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27870 t cont
27871 d
27872 :cont
27873 n
27874 s/.\{148\}/&'"$ac_delim"'/g
27875 t clear
27876 :clear
27877 s/\\$//
27878 t bsnlc
27879 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27880 d
27881 :bsnlc
27882 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27883 b cont
27884 ' <confdefs.h | sed '
27885 s/'"$ac_delim"'/"\\\
27886 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27887
27888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27889   for (key in D) D_is_set[key] = 1
27890   FS = "\a"
27891 }
27892 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27893   line = \$ 0
27894   split(line, arg, " ")
27895   if (arg[1] == "#") {
27896     defundef = arg[2]
27897     mac1 = arg[3]
27898   } else {
27899     defundef = substr(arg[1], 2)
27900     mac1 = arg[2]
27901   }
27902   split(mac1, mac2, "(") #)
27903   macro = mac2[1]
27904   prefix = substr(line, 1, index(line, defundef) - 1)
27905   if (D_is_set[macro]) {
27906     # Preserve the white space surrounding the "#".
27907     print prefix "define", macro P[macro] D[macro]
27908     next
27909   } else {
27910     # Replace #undef with comments.  This is necessary, for example,
27911     # in the case of _POSIX_SOURCE, which is predefined and required
27912     # on some systems where configure will not decide to define it.
27913     if (defundef == "undef") {
27914       print "/*", prefix defundef, macro, "*/"
27915       next
27916     }
27917   }
27918 }
27919 { print }
27920 _ACAWK
27921 _ACEOF
27922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27923   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27924 fi # test -n "$CONFIG_HEADERS"
27925
27926
27927 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27928 shift
27929 for ac_tag
27930 do
27931   case $ac_tag in
27932   :[FHLC]) ac_mode=$ac_tag; continue;;
27933   esac
27934   case $ac_mode$ac_tag in
27935   :[FHL]*:*);;
27936   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27937   :[FH]-) ac_tag=-:-;;
27938   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27939   esac
27940   ac_save_IFS=$IFS
27941   IFS=:
27942   set x $ac_tag
27943   IFS=$ac_save_IFS
27944   shift
27945   ac_file=$1
27946   shift
27947
27948   case $ac_mode in
27949   :L) ac_source=$1;;
27950   :[FH])
27951     ac_file_inputs=
27952     for ac_f
27953     do
27954       case $ac_f in
27955       -) ac_f="$ac_tmp/stdin";;
27956       *) # Look for the file first in the build tree, then in the source tree
27957          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27958          # because $ac_f cannot contain `:'.
27959          test -f "$ac_f" ||
27960            case $ac_f in
27961            [\\/$]*) false;;
27962            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27963            esac ||
27964            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27965       esac
27966       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27967       as_fn_append ac_file_inputs " '$ac_f'"
27968     done
27969
27970     # Let's still pretend it is `configure' which instantiates (i.e., don't
27971     # use $as_me), people would be surprised to read:
27972     #    /* config.h.  Generated by config.status.  */
27973     configure_input='Generated from '`
27974           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27975         `' by configure.'
27976     if test x"$ac_file" != x-; then
27977       configure_input="$ac_file.  $configure_input"
27978       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27979 $as_echo "$as_me: creating $ac_file" >&6;}
27980     fi
27981     # Neutralize special characters interpreted by sed in replacement strings.
27982     case $configure_input in #(
27983     *\&* | *\|* | *\\* )
27984        ac_sed_conf_input=`$as_echo "$configure_input" |
27985        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27986     *) ac_sed_conf_input=$configure_input;;
27987     esac
27988
27989     case $ac_tag in
27990     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27991       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27992     esac
27993     ;;
27994   esac
27995
27996   ac_dir=`$as_dirname -- "$ac_file" ||
27997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27998          X"$ac_file" : 'X\(//\)[^/]' \| \
27999          X"$ac_file" : 'X\(//\)$' \| \
28000          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28001 $as_echo X"$ac_file" |
28002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28003             s//\1/
28004             q
28005           }
28006           /^X\(\/\/\)[^/].*/{
28007             s//\1/
28008             q
28009           }
28010           /^X\(\/\/\)$/{
28011             s//\1/
28012             q
28013           }
28014           /^X\(\/\).*/{
28015             s//\1/
28016             q
28017           }
28018           s/.*/./; q'`
28019   as_dir="$ac_dir"; as_fn_mkdir_p
28020   ac_builddir=.
28021
28022 case "$ac_dir" in
28023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28024 *)
28025   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28026   # A ".." for each directory in $ac_dir_suffix.
28027   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28028   case $ac_top_builddir_sub in
28029   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28030   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28031   esac ;;
28032 esac
28033 ac_abs_top_builddir=$ac_pwd
28034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28035 # for backward compatibility:
28036 ac_top_builddir=$ac_top_build_prefix
28037
28038 case $srcdir in
28039   .)  # We are building in place.
28040     ac_srcdir=.
28041     ac_top_srcdir=$ac_top_builddir_sub
28042     ac_abs_top_srcdir=$ac_pwd ;;
28043   [\\/]* | ?:[\\/]* )  # Absolute name.
28044     ac_srcdir=$srcdir$ac_dir_suffix;
28045     ac_top_srcdir=$srcdir
28046     ac_abs_top_srcdir=$srcdir ;;
28047   *) # Relative name.
28048     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28049     ac_top_srcdir=$ac_top_build_prefix$srcdir
28050     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28051 esac
28052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28053
28054
28055   case $ac_mode in
28056   :F)
28057   #
28058   # CONFIG_FILE
28059   #
28060
28061   case $INSTALL in
28062   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28063   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28064   esac
28065   ac_MKDIR_P=$MKDIR_P
28066   case $MKDIR_P in
28067   [\\/$]* | ?:[\\/]* ) ;;
28068   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28069   esac
28070 _ACEOF
28071
28072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28073 # If the template does not know about datarootdir, expand it.
28074 # FIXME: This hack should be removed a few years after 2.60.
28075 ac_datarootdir_hack=; ac_datarootdir_seen=
28076 ac_sed_dataroot='
28077 /datarootdir/ {
28078   p
28079   q
28080 }
28081 /@datadir@/p
28082 /@docdir@/p
28083 /@infodir@/p
28084 /@localedir@/p
28085 /@mandir@/p'
28086 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28087 *datarootdir*) ac_datarootdir_seen=yes;;
28088 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28089   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28090 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28091 _ACEOF
28092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28093   ac_datarootdir_hack='
28094   s&@datadir@&$datadir&g
28095   s&@docdir@&$docdir&g
28096   s&@infodir@&$infodir&g
28097   s&@localedir@&$localedir&g
28098   s&@mandir@&$mandir&g
28099   s&\\\${datarootdir}&$datarootdir&g' ;;
28100 esac
28101 _ACEOF
28102
28103 # Neutralize VPATH when `$srcdir' = `.'.
28104 # Shell code in configure.ac might set extrasub.
28105 # FIXME: do we really want to maintain this feature?
28106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28107 ac_sed_extra="$ac_vpsub
28108 $extrasub
28109 _ACEOF
28110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28111 :t
28112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28113 s|@configure_input@|$ac_sed_conf_input|;t t
28114 s&@top_builddir@&$ac_top_builddir_sub&;t t
28115 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28116 s&@srcdir@&$ac_srcdir&;t t
28117 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28118 s&@top_srcdir@&$ac_top_srcdir&;t t
28119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28120 s&@builddir@&$ac_builddir&;t t
28121 s&@abs_builddir@&$ac_abs_builddir&;t t
28122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28123 s&@INSTALL@&$ac_INSTALL&;t t
28124 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28125 $ac_datarootdir_hack
28126 "
28127 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28128   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28129
28130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28131   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28132   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
28133       "$ac_tmp/out"`; test -z "$ac_out"; } &&
28134   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28135 which seems to be undefined.  Please make sure it is defined" >&5
28136 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28137 which seems to be undefined.  Please make sure it is defined" >&2;}
28138
28139   rm -f "$ac_tmp/stdin"
28140   case $ac_file in
28141   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28142   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28143   esac \
28144   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28145  ;;
28146   :H)
28147   #
28148   # CONFIG_HEADER
28149   #
28150   if test x"$ac_file" != x-; then
28151     {
28152       $as_echo "/* $configure_input  */" \
28153       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28154     } >"$ac_tmp/config.h" \
28155       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28156     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28157       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28158 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28159     else
28160       rm -f "$ac_file"
28161       mv "$ac_tmp/config.h" "$ac_file" \
28162         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28163     fi
28164   else
28165     $as_echo "/* $configure_input  */" \
28166       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28167       || as_fn_error $? "could not create -" "$LINENO" 5
28168   fi
28169 # Compute "$ac_file"'s index in $config_headers.
28170 _am_arg="$ac_file"
28171 _am_stamp_count=1
28172 for _am_header in $config_headers :; do
28173   case $_am_header in
28174     $_am_arg | $_am_arg:* )
28175       break ;;
28176     * )
28177       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28178   esac
28179 done
28180 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28181 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28182          X"$_am_arg" : 'X\(//\)[^/]' \| \
28183          X"$_am_arg" : 'X\(//\)$' \| \
28184          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28185 $as_echo X"$_am_arg" |
28186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28187             s//\1/
28188             q
28189           }
28190           /^X\(\/\/\)[^/].*/{
28191             s//\1/
28192             q
28193           }
28194           /^X\(\/\/\)$/{
28195             s//\1/
28196             q
28197           }
28198           /^X\(\/\).*/{
28199             s//\1/
28200             q
28201           }
28202           s/.*/./; q'`/stamp-h$_am_stamp_count
28203  ;;
28204
28205   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28206 $as_echo "$as_me: executing $ac_file commands" >&6;}
28207  ;;
28208   esac
28209
28210
28211   case $ac_file$ac_mode in
28212     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28213   # Older Autoconf quotes --file arguments for eval, but not when files
28214   # are listed without --file.  Let's play safe and only enable the eval
28215   # if we detect the quoting.
28216   # TODO: see whether this extra hack can be removed once we start
28217   # requiring Autoconf 2.70 or later.
28218   case $CONFIG_FILES in #(
28219   *\'*) :
28220     eval set x "$CONFIG_FILES" ;; #(
28221   *) :
28222     set x $CONFIG_FILES ;; #(
28223   *) :
28224      ;;
28225 esac
28226   shift
28227   # Used to flag and report bootstrapping failures.
28228   am_rc=0
28229   for am_mf
28230   do
28231     # Strip MF so we end up with the name of the file.
28232     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28233     # Check whether this is an Automake generated Makefile which includes
28234     # dependency-tracking related rules and includes.
28235     # Grep'ing the whole file directly is not great: AIX grep has a line
28236     # limit of 2048, but all sed's we know have understand at least 4000.
28237     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28238       || continue
28239     am_dirpart=`$as_dirname -- "$am_mf" ||
28240 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28241          X"$am_mf" : 'X\(//\)[^/]' \| \
28242          X"$am_mf" : 'X\(//\)$' \| \
28243          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28244 $as_echo X"$am_mf" |
28245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28246             s//\1/
28247             q
28248           }
28249           /^X\(\/\/\)[^/].*/{
28250             s//\1/
28251             q
28252           }
28253           /^X\(\/\/\)$/{
28254             s//\1/
28255             q
28256           }
28257           /^X\(\/\).*/{
28258             s//\1/
28259             q
28260           }
28261           s/.*/./; q'`
28262     am_filepart=`$as_basename -- "$am_mf" ||
28263 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28264          X"$am_mf" : 'X\(//\)$' \| \
28265          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28266 $as_echo X/"$am_mf" |
28267     sed '/^.*\/\([^/][^/]*\)\/*$/{
28268             s//\1/
28269             q
28270           }
28271           /^X\/\(\/\/\)$/{
28272             s//\1/
28273             q
28274           }
28275           /^X\/\(\/\).*/{
28276             s//\1/
28277             q
28278           }
28279           s/.*/./; q'`
28280     { echo "$as_me:$LINENO: cd "$am_dirpart" \
28281       && sed -e '/# am--include-marker/d' "$am_filepart" \
28282         | $MAKE -f - am--depfiles" >&5
28283    (cd "$am_dirpart" \
28284       && sed -e '/# am--include-marker/d' "$am_filepart" \
28285         | $MAKE -f - am--depfiles) >&5 2>&5
28286    ac_status=$?
28287    echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288    (exit $ac_status); } || am_rc=$?
28289   done
28290   if test $am_rc -ne 0; then
28291     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28293 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28294     for automatic dependency tracking.  Try re-running configure with the
28295     '--disable-dependency-tracking' option to at least be able to build
28296     the package (albeit without support for automatic dependency tracking).
28297 See \`config.log' for more details" "$LINENO" 5; }
28298   fi
28299   { am_dirpart=; unset am_dirpart;}
28300   { am_filepart=; unset am_filepart;}
28301   { am_mf=; unset am_mf;}
28302   { am_rc=; unset am_rc;}
28303   rm -f conftest-deps.mk
28304 }
28305  ;;
28306     "libtool":C)
28307
28308     # See if we are running on zsh, and set the options which allow our
28309     # commands through without removal of \ escapes.
28310     if test -n "${ZSH_VERSION+set}" ; then
28311       setopt NO_GLOB_SUBST
28312     fi
28313
28314     cfgfile="${ofile}T"
28315     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28316     $RM "$cfgfile"
28317
28318     cat <<_LT_EOF >> "$cfgfile"
28319 #! $SHELL
28320
28321 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28322 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28324 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28325 #
28326 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28327 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28328 #                 Foundation, Inc.
28329 #   Written by Gordon Matzigkeit, 1996
28330 #
28331 #   This file is part of GNU Libtool.
28332 #
28333 # GNU Libtool is free software; you can redistribute it and/or
28334 # modify it under the terms of the GNU General Public License as
28335 # published by the Free Software Foundation; either version 2 of
28336 # the License, or (at your option) any later version.
28337 #
28338 # As a special exception to the GNU General Public License,
28339 # if you distribute this file as part of a program or library that
28340 # is built using GNU Libtool, you may include this file under the
28341 # same distribution terms that you use for the rest of that program.
28342 #
28343 # GNU Libtool is distributed in the hope that it will be useful,
28344 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28345 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28346 # GNU General Public License for more details.
28347 #
28348 # You should have received a copy of the GNU General Public License
28349 # along with GNU Libtool; see the file COPYING.  If not, a copy
28350 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
28351 # obtained by writing to the Free Software Foundation, Inc.,
28352 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28353
28354
28355 # The names of the tagged configurations supported by this script.
28356 available_tags="CXX RC "
28357
28358 # ### BEGIN LIBTOOL CONFIG
28359
28360 # Which release of libtool.m4 was used?
28361 macro_version=$macro_version
28362 macro_revision=$macro_revision
28363
28364 # Assembler program.
28365 AS=$lt_AS
28366
28367 # DLL creation program.
28368 DLLTOOL=$lt_DLLTOOL
28369
28370 # Object dumper program.
28371 OBJDUMP=$lt_OBJDUMP
28372
28373 # Whether or not to build static libraries.
28374 build_old_libs=$enable_static
28375
28376 # Whether or not to build shared libraries.
28377 build_libtool_libs=$enable_shared
28378
28379 # What type of objects to build.
28380 pic_mode=$pic_mode
28381
28382 # Whether or not to optimize for fast installation.
28383 fast_install=$enable_fast_install
28384
28385 # Shell to use when invoking shell scripts.
28386 SHELL=$lt_SHELL
28387
28388 # An echo program that protects backslashes.
28389 ECHO=$lt_ECHO
28390
28391 # The PATH separator for the build system.
28392 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28393
28394 # The host system.
28395 host_alias=$host_alias
28396 host=$host
28397 host_os=$host_os
28398
28399 # The build system.
28400 build_alias=$build_alias
28401 build=$build
28402 build_os=$build_os
28403
28404 # A sed program that does not truncate output.
28405 SED=$lt_SED
28406
28407 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28408 Xsed="\$SED -e 1s/^X//"
28409
28410 # A grep program that handles long lines.
28411 GREP=$lt_GREP
28412
28413 # An ERE matcher.
28414 EGREP=$lt_EGREP
28415
28416 # A literal string matcher.
28417 FGREP=$lt_FGREP
28418
28419 # A BSD- or MS-compatible name lister.
28420 NM=$lt_NM
28421
28422 # Whether we need soft or hard links.
28423 LN_S=$lt_LN_S
28424
28425 # What is the maximum length of a command?
28426 max_cmd_len=$max_cmd_len
28427
28428 # Object file suffix (normally "o").
28429 objext=$ac_objext
28430
28431 # Executable file suffix (normally "").
28432 exeext=$exeext
28433
28434 # whether the shell understands "unset".
28435 lt_unset=$lt_unset
28436
28437 # turn spaces into newlines.
28438 SP2NL=$lt_lt_SP2NL
28439
28440 # turn newlines into spaces.
28441 NL2SP=$lt_lt_NL2SP
28442
28443 # convert \$build file names to \$host format.
28444 to_host_file_cmd=$lt_cv_to_host_file_cmd
28445
28446 # convert \$build files to toolchain format.
28447 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28448
28449 # Method to check whether dependent libraries are shared objects.
28450 deplibs_check_method=$lt_deplibs_check_method
28451
28452 # Command to use when deplibs_check_method = "file_magic".
28453 file_magic_cmd=$lt_file_magic_cmd
28454
28455 # How to find potential files when deplibs_check_method = "file_magic".
28456 file_magic_glob=$lt_file_magic_glob
28457
28458 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28459 want_nocaseglob=$lt_want_nocaseglob
28460
28461 # Command to associate shared and link libraries.
28462 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28463
28464 # The archiver.
28465 AR=$lt_AR
28466
28467 # Flags to create an archive.
28468 AR_FLAGS=$lt_AR_FLAGS
28469
28470 # How to feed a file listing to the archiver.
28471 archiver_list_spec=$lt_archiver_list_spec
28472
28473 # A symbol stripping program.
28474 STRIP=$lt_STRIP
28475
28476 # Commands used to install an old-style archive.
28477 RANLIB=$lt_RANLIB
28478 old_postinstall_cmds=$lt_old_postinstall_cmds
28479 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28480
28481 # Whether to use a lock for old archive extraction.
28482 lock_old_archive_extraction=$lock_old_archive_extraction
28483
28484 # A C compiler.
28485 LTCC=$lt_CC
28486
28487 # LTCC compiler flags.
28488 LTCFLAGS=$lt_CFLAGS
28489
28490 # Take the output of nm and produce a listing of raw symbols and C names.
28491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28492
28493 # Transform the output of nm in a proper C declaration.
28494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28495
28496 # Transform the output of nm in a C name address pair.
28497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28498
28499 # Transform the output of nm in a C name address pair when lib prefix is needed.
28500 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28501
28502 # Specify filename containing input files for \$NM.
28503 nm_file_list_spec=$lt_nm_file_list_spec
28504
28505 # The root where to search for dependent libraries,and in which our libraries should be installed.
28506 lt_sysroot=$lt_sysroot
28507
28508 # The name of the directory that contains temporary libtool files.
28509 objdir=$objdir
28510
28511 # Used to examine libraries when file_magic_cmd begins with "file".
28512 MAGIC_CMD=$MAGIC_CMD
28513
28514 # Must we lock files when doing compilation?
28515 need_locks=$lt_need_locks
28516
28517 # Manifest tool.
28518 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28519
28520 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28521 DSYMUTIL=$lt_DSYMUTIL
28522
28523 # Tool to change global to local symbols on Mac OS X.
28524 NMEDIT=$lt_NMEDIT
28525
28526 # Tool to manipulate fat objects and archives on Mac OS X.
28527 LIPO=$lt_LIPO
28528
28529 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28530 OTOOL=$lt_OTOOL
28531
28532 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28533 OTOOL64=$lt_OTOOL64
28534
28535 # Old archive suffix (normally "a").
28536 libext=$libext
28537
28538 # Shared library suffix (normally ".so").
28539 shrext_cmds=$lt_shrext_cmds
28540
28541 # The commands to extract the exported symbol list from a shared archive.
28542 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28543
28544 # Variables whose values should be saved in libtool wrapper scripts and
28545 # restored at link time.
28546 variables_saved_for_relink=$lt_variables_saved_for_relink
28547
28548 # Do we need the "lib" prefix for modules?
28549 need_lib_prefix=$need_lib_prefix
28550
28551 # Do we need a version for libraries?
28552 need_version=$need_version
28553
28554 # Library versioning type.
28555 version_type=$version_type
28556
28557 # Shared library runtime path variable.
28558 runpath_var=$runpath_var
28559
28560 # Shared library path variable.
28561 shlibpath_var=$shlibpath_var
28562
28563 # Is shlibpath searched before the hard-coded library search path?
28564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28565
28566 # Format of library name prefix.
28567 libname_spec=$lt_libname_spec
28568
28569 # List of archive names.  First name is the real one, the rest are links.
28570 # The last name is the one that the linker finds with -lNAME
28571 library_names_spec=$lt_library_names_spec
28572
28573 # The coded name of the library, if different from the real name.
28574 soname_spec=$lt_soname_spec
28575
28576 # Permission mode override for installation of shared libraries.
28577 install_override_mode=$lt_install_override_mode
28578
28579 # Command to use after installation of a shared archive.
28580 postinstall_cmds=$lt_postinstall_cmds
28581
28582 # Command to use after uninstallation of a shared archive.
28583 postuninstall_cmds=$lt_postuninstall_cmds
28584
28585 # Commands used to finish a libtool library installation in a directory.
28586 finish_cmds=$lt_finish_cmds
28587
28588 # As "finish_cmds", except a single script fragment to be evaled but
28589 # not shown.
28590 finish_eval=$lt_finish_eval
28591
28592 # Whether we should hardcode library paths into libraries.
28593 hardcode_into_libs=$hardcode_into_libs
28594
28595 # Compile-time system search path for libraries.
28596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28597
28598 # Run-time system search path for libraries.
28599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28600
28601 # Whether dlopen is supported.
28602 dlopen_support=$enable_dlopen
28603
28604 # Whether dlopen of programs is supported.
28605 dlopen_self=$enable_dlopen_self
28606
28607 # Whether dlopen of statically linked programs is supported.
28608 dlopen_self_static=$enable_dlopen_self_static
28609
28610 # Commands to strip libraries.
28611 old_striplib=$lt_old_striplib
28612 striplib=$lt_striplib
28613
28614
28615 # The linker used to build libraries.
28616 LD=$lt_LD
28617
28618 # How to create reloadable object files.
28619 reload_flag=$lt_reload_flag
28620 reload_cmds=$lt_reload_cmds
28621
28622 # Commands used to build an old-style archive.
28623 old_archive_cmds=$lt_old_archive_cmds
28624
28625 # A language specific compiler.
28626 CC=$lt_compiler
28627
28628 # Is the compiler the GNU compiler?
28629 with_gcc=$GCC
28630
28631 # Compiler flag to turn off builtin functions.
28632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28633
28634 # Additional compiler flags for building library objects.
28635 pic_flag=$lt_lt_prog_compiler_pic
28636
28637 # How to pass a linker flag through the compiler.
28638 wl=$lt_lt_prog_compiler_wl
28639
28640 # Compiler flag to prevent dynamic linking.
28641 link_static_flag=$lt_lt_prog_compiler_static
28642
28643 # Does compiler simultaneously support -c and -o options?
28644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28645
28646 # Whether or not to add -lc for building shared libraries.
28647 build_libtool_need_lc=$archive_cmds_need_lc
28648
28649 # Whether or not to disallow shared libs when runtime libs are static.
28650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28651
28652 # Compiler flag to allow reflexive dlopens.
28653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28654
28655 # Compiler flag to generate shared objects directly from archives.
28656 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28657
28658 # Whether the compiler copes with passing no objects directly.
28659 compiler_needs_object=$lt_compiler_needs_object
28660
28661 # Create an old-style archive from a shared archive.
28662 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28663
28664 # Create a temporary old-style archive to link instead of a shared archive.
28665 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28666
28667 # Commands used to build a shared archive.
28668 archive_cmds=$lt_archive_cmds
28669 archive_expsym_cmds=$lt_archive_expsym_cmds
28670
28671 # Commands used to build a loadable module if different from building
28672 # a shared archive.
28673 module_cmds=$lt_module_cmds
28674 module_expsym_cmds=$lt_module_expsym_cmds
28675
28676 # Whether we are building with GNU ld or not.
28677 with_gnu_ld=$lt_with_gnu_ld
28678
28679 # Flag that allows shared libraries with undefined symbols to be built.
28680 allow_undefined_flag=$lt_allow_undefined_flag
28681
28682 # Flag that enforces no undefined symbols.
28683 no_undefined_flag=$lt_no_undefined_flag
28684
28685 # Flag to hardcode \$libdir into a binary during linking.
28686 # This must work even if \$libdir does not exist
28687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28688
28689 # Whether we need a single "-rpath" flag with a separated argument.
28690 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28691
28692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28693 # DIR into the resulting binary.
28694 hardcode_direct=$hardcode_direct
28695
28696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28697 # DIR into the resulting binary and the resulting library dependency is
28698 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28699 # library is relocated.
28700 hardcode_direct_absolute=$hardcode_direct_absolute
28701
28702 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28703 # into the resulting binary.
28704 hardcode_minus_L=$hardcode_minus_L
28705
28706 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28707 # into the resulting binary.
28708 hardcode_shlibpath_var=$hardcode_shlibpath_var
28709
28710 # Set to "yes" if building a shared library automatically hardcodes DIR
28711 # into the library and all subsequent libraries and executables linked
28712 # against it.
28713 hardcode_automatic=$hardcode_automatic
28714
28715 # Set to yes if linker adds runtime paths of dependent libraries
28716 # to runtime path list.
28717 inherit_rpath=$inherit_rpath
28718
28719 # Whether libtool must link a program against all its dependency libraries.
28720 link_all_deplibs=$link_all_deplibs
28721
28722 # Set to "yes" if exported symbols are required.
28723 always_export_symbols=$always_export_symbols
28724
28725 # The commands to list exported symbols.
28726 export_symbols_cmds=$lt_export_symbols_cmds
28727
28728 # Symbols that should not be listed in the preloaded symbols.
28729 exclude_expsyms=$lt_exclude_expsyms
28730
28731 # Symbols that must always be exported.
28732 include_expsyms=$lt_include_expsyms
28733
28734 # Commands necessary for linking programs (against libraries) with templates.
28735 prelink_cmds=$lt_prelink_cmds
28736
28737 # Commands necessary for finishing linking programs.
28738 postlink_cmds=$lt_postlink_cmds
28739
28740 # Specify filename containing input files.
28741 file_list_spec=$lt_file_list_spec
28742
28743 # How to hardcode a shared library path into an executable.
28744 hardcode_action=$hardcode_action
28745
28746 # The directories searched by this compiler when creating a shared library.
28747 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28748
28749 # Dependencies to place before and after the objects being linked to
28750 # create a shared library.
28751 predep_objects=$lt_predep_objects
28752 postdep_objects=$lt_postdep_objects
28753 predeps=$lt_predeps
28754 postdeps=$lt_postdeps
28755
28756 # The library search path used internally by the compiler when linking
28757 # a shared library.
28758 compiler_lib_search_path=$lt_compiler_lib_search_path
28759
28760 # ### END LIBTOOL CONFIG
28761
28762 _LT_EOF
28763
28764   case $host_os in
28765   aix3*)
28766     cat <<\_LT_EOF >> "$cfgfile"
28767 # AIX sometimes has problems with the GCC collect2 program.  For some
28768 # reason, if we set the COLLECT_NAMES environment variable, the problems
28769 # vanish in a puff of smoke.
28770 if test "X${COLLECT_NAMES+set}" != Xset; then
28771   COLLECT_NAMES=
28772   export COLLECT_NAMES
28773 fi
28774 _LT_EOF
28775     ;;
28776   esac
28777
28778
28779 ltmain="$ac_aux_dir/ltmain.sh"
28780
28781
28782   # We use sed instead of cat because bash on DJGPP gets confused if
28783   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28784   # text mode, it properly converts lines to CR/LF.  This bash problem
28785   # is reportedly fixed, but why not run on old versions too?
28786   sed '$q' "$ltmain" >> "$cfgfile" \
28787      || (rm -f "$cfgfile"; exit 1)
28788
28789   if test x"$xsi_shell" = xyes; then
28790   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28791 func_dirname ()\
28792 {\
28793 \    case ${1} in\
28794 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28795 \      *  ) func_dirname_result="${3}" ;;\
28796 \    esac\
28797 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28798   && mv -f "$cfgfile.tmp" "$cfgfile" \
28799     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28800 test 0 -eq $? || _lt_function_replace_fail=:
28801
28802
28803   sed -e '/^func_basename ()$/,/^} # func_basename /c\
28804 func_basename ()\
28805 {\
28806 \    func_basename_result="${1##*/}"\
28807 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28808   && mv -f "$cfgfile.tmp" "$cfgfile" \
28809     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28810 test 0 -eq $? || _lt_function_replace_fail=:
28811
28812
28813   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28814 func_dirname_and_basename ()\
28815 {\
28816 \    case ${1} in\
28817 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28818 \      *  ) func_dirname_result="${3}" ;;\
28819 \    esac\
28820 \    func_basename_result="${1##*/}"\
28821 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28822   && mv -f "$cfgfile.tmp" "$cfgfile" \
28823     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28824 test 0 -eq $? || _lt_function_replace_fail=:
28825
28826
28827   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28828 func_stripname ()\
28829 {\
28830 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28831 \    # positional parameters, so assign one to ordinary parameter first.\
28832 \    func_stripname_result=${3}\
28833 \    func_stripname_result=${func_stripname_result#"${1}"}\
28834 \    func_stripname_result=${func_stripname_result%"${2}"}\
28835 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28836   && mv -f "$cfgfile.tmp" "$cfgfile" \
28837     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28838 test 0 -eq $? || _lt_function_replace_fail=:
28839
28840
28841   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28842 func_split_long_opt ()\
28843 {\
28844 \    func_split_long_opt_name=${1%%=*}\
28845 \    func_split_long_opt_arg=${1#*=}\
28846 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28847   && mv -f "$cfgfile.tmp" "$cfgfile" \
28848     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28849 test 0 -eq $? || _lt_function_replace_fail=:
28850
28851
28852   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28853 func_split_short_opt ()\
28854 {\
28855 \    func_split_short_opt_arg=${1#??}\
28856 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28857 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28858   && mv -f "$cfgfile.tmp" "$cfgfile" \
28859     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28860 test 0 -eq $? || _lt_function_replace_fail=:
28861
28862
28863   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28864 func_lo2o ()\
28865 {\
28866 \    case ${1} in\
28867 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28868 \      *)    func_lo2o_result=${1} ;;\
28869 \    esac\
28870 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28871   && mv -f "$cfgfile.tmp" "$cfgfile" \
28872     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28873 test 0 -eq $? || _lt_function_replace_fail=:
28874
28875
28876   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28877 func_xform ()\
28878 {\
28879     func_xform_result=${1%.*}.lo\
28880 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28881   && mv -f "$cfgfile.tmp" "$cfgfile" \
28882     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28883 test 0 -eq $? || _lt_function_replace_fail=:
28884
28885
28886   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28887 func_arith ()\
28888 {\
28889     func_arith_result=$(( $* ))\
28890 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28891   && mv -f "$cfgfile.tmp" "$cfgfile" \
28892     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28893 test 0 -eq $? || _lt_function_replace_fail=:
28894
28895
28896   sed -e '/^func_len ()$/,/^} # func_len /c\
28897 func_len ()\
28898 {\
28899     func_len_result=${#1}\
28900 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28901   && mv -f "$cfgfile.tmp" "$cfgfile" \
28902     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28903 test 0 -eq $? || _lt_function_replace_fail=:
28904
28905 fi
28906
28907 if test x"$lt_shell_append" = xyes; then
28908   sed -e '/^func_append ()$/,/^} # func_append /c\
28909 func_append ()\
28910 {\
28911     eval "${1}+=\\${2}"\
28912 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28913   && mv -f "$cfgfile.tmp" "$cfgfile" \
28914     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28915 test 0 -eq $? || _lt_function_replace_fail=:
28916
28917
28918   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28919 func_append_quoted ()\
28920 {\
28921 \    func_quote_for_eval "${2}"\
28922 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28923 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28924   && mv -f "$cfgfile.tmp" "$cfgfile" \
28925     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28926 test 0 -eq $? || _lt_function_replace_fail=:
28927
28928
28929   # Save a `func_append' function call where possible by direct use of '+='
28930   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28931     && mv -f "$cfgfile.tmp" "$cfgfile" \
28932       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28933   test 0 -eq $? || _lt_function_replace_fail=:
28934 else
28935   # Save a `func_append' function call even when '+=' is not available
28936   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28937     && mv -f "$cfgfile.tmp" "$cfgfile" \
28938       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28939   test 0 -eq $? || _lt_function_replace_fail=:
28940 fi
28941
28942 if test x"$_lt_function_replace_fail" = x":"; then
28943   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28944 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28945 fi
28946
28947
28948    mv -f "$cfgfile" "$ofile" ||
28949     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28950   chmod +x "$ofile"
28951
28952
28953     cat <<_LT_EOF >> "$ofile"
28954
28955 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28956
28957 # The linker used to build libraries.
28958 LD=$lt_LD_CXX
28959
28960 # How to create reloadable object files.
28961 reload_flag=$lt_reload_flag_CXX
28962 reload_cmds=$lt_reload_cmds_CXX
28963
28964 # Commands used to build an old-style archive.
28965 old_archive_cmds=$lt_old_archive_cmds_CXX
28966
28967 # A language specific compiler.
28968 CC=$lt_compiler_CXX
28969
28970 # Is the compiler the GNU compiler?
28971 with_gcc=$GCC_CXX
28972
28973 # Compiler flag to turn off builtin functions.
28974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28975
28976 # Additional compiler flags for building library objects.
28977 pic_flag=$lt_lt_prog_compiler_pic_CXX
28978
28979 # How to pass a linker flag through the compiler.
28980 wl=$lt_lt_prog_compiler_wl_CXX
28981
28982 # Compiler flag to prevent dynamic linking.
28983 link_static_flag=$lt_lt_prog_compiler_static_CXX
28984
28985 # Does compiler simultaneously support -c and -o options?
28986 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28987
28988 # Whether or not to add -lc for building shared libraries.
28989 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28990
28991 # Whether or not to disallow shared libs when runtime libs are static.
28992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28993
28994 # Compiler flag to allow reflexive dlopens.
28995 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28996
28997 # Compiler flag to generate shared objects directly from archives.
28998 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28999
29000 # Whether the compiler copes with passing no objects directly.
29001 compiler_needs_object=$lt_compiler_needs_object_CXX
29002
29003 # Create an old-style archive from a shared archive.
29004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29005
29006 # Create a temporary old-style archive to link instead of a shared archive.
29007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29008
29009 # Commands used to build a shared archive.
29010 archive_cmds=$lt_archive_cmds_CXX
29011 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29012
29013 # Commands used to build a loadable module if different from building
29014 # a shared archive.
29015 module_cmds=$lt_module_cmds_CXX
29016 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29017
29018 # Whether we are building with GNU ld or not.
29019 with_gnu_ld=$lt_with_gnu_ld_CXX
29020
29021 # Flag that allows shared libraries with undefined symbols to be built.
29022 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29023
29024 # Flag that enforces no undefined symbols.
29025 no_undefined_flag=$lt_no_undefined_flag_CXX
29026
29027 # Flag to hardcode \$libdir into a binary during linking.
29028 # This must work even if \$libdir does not exist
29029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29030
29031 # Whether we need a single "-rpath" flag with a separated argument.
29032 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29033
29034 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29035 # DIR into the resulting binary.
29036 hardcode_direct=$hardcode_direct_CXX
29037
29038 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29039 # DIR into the resulting binary and the resulting library dependency is
29040 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29041 # library is relocated.
29042 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29043
29044 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29045 # into the resulting binary.
29046 hardcode_minus_L=$hardcode_minus_L_CXX
29047
29048 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29049 # into the resulting binary.
29050 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29051
29052 # Set to "yes" if building a shared library automatically hardcodes DIR
29053 # into the library and all subsequent libraries and executables linked
29054 # against it.
29055 hardcode_automatic=$hardcode_automatic_CXX
29056
29057 # Set to yes if linker adds runtime paths of dependent libraries
29058 # to runtime path list.
29059 inherit_rpath=$inherit_rpath_CXX
29060
29061 # Whether libtool must link a program against all its dependency libraries.
29062 link_all_deplibs=$link_all_deplibs_CXX
29063
29064 # Set to "yes" if exported symbols are required.
29065 always_export_symbols=$always_export_symbols_CXX
29066
29067 # The commands to list exported symbols.
29068 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29069
29070 # Symbols that should not be listed in the preloaded symbols.
29071 exclude_expsyms=$lt_exclude_expsyms_CXX
29072
29073 # Symbols that must always be exported.
29074 include_expsyms=$lt_include_expsyms_CXX
29075
29076 # Commands necessary for linking programs (against libraries) with templates.
29077 prelink_cmds=$lt_prelink_cmds_CXX
29078
29079 # Commands necessary for finishing linking programs.
29080 postlink_cmds=$lt_postlink_cmds_CXX
29081
29082 # Specify filename containing input files.
29083 file_list_spec=$lt_file_list_spec_CXX
29084
29085 # How to hardcode a shared library path into an executable.
29086 hardcode_action=$hardcode_action_CXX
29087
29088 # The directories searched by this compiler when creating a shared library.
29089 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29090
29091 # Dependencies to place before and after the objects being linked to
29092 # create a shared library.
29093 predep_objects=$lt_predep_objects_CXX
29094 postdep_objects=$lt_postdep_objects_CXX
29095 predeps=$lt_predeps_CXX
29096 postdeps=$lt_postdeps_CXX
29097
29098 # The library search path used internally by the compiler when linking
29099 # a shared library.
29100 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29101
29102 # ### END LIBTOOL TAG CONFIG: CXX
29103 _LT_EOF
29104
29105
29106     cat <<_LT_EOF >> "$ofile"
29107
29108 # ### BEGIN LIBTOOL TAG CONFIG: RC
29109
29110 # The linker used to build libraries.
29111 LD=$lt_LD_RC
29112
29113 # How to create reloadable object files.
29114 reload_flag=$lt_reload_flag_RC
29115 reload_cmds=$lt_reload_cmds_RC
29116
29117 # Commands used to build an old-style archive.
29118 old_archive_cmds=$lt_old_archive_cmds_RC
29119
29120 # A language specific compiler.
29121 CC=$lt_compiler_RC
29122
29123 # Is the compiler the GNU compiler?
29124 with_gcc=$GCC_RC
29125
29126 # Compiler flag to turn off builtin functions.
29127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29128
29129 # Additional compiler flags for building library objects.
29130 pic_flag=$lt_lt_prog_compiler_pic_RC
29131
29132 # How to pass a linker flag through the compiler.
29133 wl=$lt_lt_prog_compiler_wl_RC
29134
29135 # Compiler flag to prevent dynamic linking.
29136 link_static_flag=$lt_lt_prog_compiler_static_RC
29137
29138 # Does compiler simultaneously support -c and -o options?
29139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
29140
29141 # Whether or not to add -lc for building shared libraries.
29142 build_libtool_need_lc=$archive_cmds_need_lc_RC
29143
29144 # Whether or not to disallow shared libs when runtime libs are static.
29145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
29146
29147 # Compiler flag to allow reflexive dlopens.
29148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29149
29150 # Compiler flag to generate shared objects directly from archives.
29151 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29152
29153 # Whether the compiler copes with passing no objects directly.
29154 compiler_needs_object=$lt_compiler_needs_object_RC
29155
29156 # Create an old-style archive from a shared archive.
29157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29158
29159 # Create a temporary old-style archive to link instead of a shared archive.
29160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29161
29162 # Commands used to build a shared archive.
29163 archive_cmds=$lt_archive_cmds_RC
29164 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29165
29166 # Commands used to build a loadable module if different from building
29167 # a shared archive.
29168 module_cmds=$lt_module_cmds_RC
29169 module_expsym_cmds=$lt_module_expsym_cmds_RC
29170
29171 # Whether we are building with GNU ld or not.
29172 with_gnu_ld=$lt_with_gnu_ld_RC
29173
29174 # Flag that allows shared libraries with undefined symbols to be built.
29175 allow_undefined_flag=$lt_allow_undefined_flag_RC
29176
29177 # Flag that enforces no undefined symbols.
29178 no_undefined_flag=$lt_no_undefined_flag_RC
29179
29180 # Flag to hardcode \$libdir into a binary during linking.
29181 # This must work even if \$libdir does not exist
29182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29183
29184 # Whether we need a single "-rpath" flag with a separated argument.
29185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29186
29187 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29188 # DIR into the resulting binary.
29189 hardcode_direct=$hardcode_direct_RC
29190
29191 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29192 # DIR into the resulting binary and the resulting library dependency is
29193 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29194 # library is relocated.
29195 hardcode_direct_absolute=$hardcode_direct_absolute_RC
29196
29197 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29198 # into the resulting binary.
29199 hardcode_minus_L=$hardcode_minus_L_RC
29200
29201 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29202 # into the resulting binary.
29203 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29204
29205 # Set to "yes" if building a shared library automatically hardcodes DIR
29206 # into the library and all subsequent libraries and executables linked
29207 # against it.
29208 hardcode_automatic=$hardcode_automatic_RC
29209
29210 # Set to yes if linker adds runtime paths of dependent libraries
29211 # to runtime path list.
29212 inherit_rpath=$inherit_rpath_RC
29213
29214 # Whether libtool must link a program against all its dependency libraries.
29215 link_all_deplibs=$link_all_deplibs_RC
29216
29217 # Set to "yes" if exported symbols are required.
29218 always_export_symbols=$always_export_symbols_RC
29219
29220 # The commands to list exported symbols.
29221 export_symbols_cmds=$lt_export_symbols_cmds_RC
29222
29223 # Symbols that should not be listed in the preloaded symbols.
29224 exclude_expsyms=$lt_exclude_expsyms_RC
29225
29226 # Symbols that must always be exported.
29227 include_expsyms=$lt_include_expsyms_RC
29228
29229 # Commands necessary for linking programs (against libraries) with templates.
29230 prelink_cmds=$lt_prelink_cmds_RC
29231
29232 # Commands necessary for finishing linking programs.
29233 postlink_cmds=$lt_postlink_cmds_RC
29234
29235 # Specify filename containing input files.
29236 file_list_spec=$lt_file_list_spec_RC
29237
29238 # How to hardcode a shared library path into an executable.
29239 hardcode_action=$hardcode_action_RC
29240
29241 # The directories searched by this compiler when creating a shared library.
29242 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
29243
29244 # Dependencies to place before and after the objects being linked to
29245 # create a shared library.
29246 predep_objects=$lt_predep_objects_RC
29247 postdep_objects=$lt_postdep_objects_RC
29248 predeps=$lt_predeps_RC
29249 postdeps=$lt_postdeps_RC
29250
29251 # The library search path used internally by the compiler when linking
29252 # a shared library.
29253 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29254
29255 # ### END LIBTOOL TAG CONFIG: RC
29256 _LT_EOF
29257
29258  ;;
29259     "src/gpgme-config":F) chmod +x src/gpgme-config ;;
29260     "lang/python/setup.py":F) chmod a+x lang/python/setup.py ;;
29261
29262   esac
29263 done # for ac_tag
29264
29265
29266 as_fn_exit 0
29267 _ACEOF
29268 ac_clean_files=$ac_clean_files_save
29269
29270 test $ac_write_fail = 0 ||
29271   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29272
29273
29274 # configure is writing to config.log, and then calls config.status.
29275 # config.status does its own redirection, appending to config.log.
29276 # Unfortunately, on DOS this fails, as config.log is still kept open
29277 # by configure, so config.status won't be able to write to it; its
29278 # output is simply discarded.  So we exec the FD to /dev/null,
29279 # effectively closing config.log, so it can be properly (re)opened and
29280 # appended to by config.status.  When coming back to configure, we
29281 # need to make the FD available again.
29282 if test "$no_create" != yes; then
29283   ac_cs_success=:
29284   ac_config_status_args=
29285   test "$silent" = yes &&
29286     ac_config_status_args="$ac_config_status_args --quiet"
29287   exec 5>/dev/null
29288   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29289   exec 5>>config.log
29290   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29291   # would make configure fail if this is the last instruction.
29292   $ac_cs_success || as_fn_exit 1
29293 fi
29294 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29295   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29296 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29297 fi
29298
29299
29300 echo "
29301         GPGME v${VERSION} has been configured as follows:
29302
29303         Revision:          feea38c8  (65258)
29304         Platform:          $host
29305
29306         UI Server:         $uiserver
29307         FD Passing:        $use_descriptor_passing
29308
29309         Language bindings: ${enabled_languages_v:-$enabled_languages}
29310 "
29311 if test "x${gpg_config_script_warn}" != x; then
29312 cat <<G10EOF
29313         Mismatches between the target platform and the to
29314         be used libraries have been been detected for:
29315          ${gpg_config_script_warn}
29316         Please check above for warning messages.
29317
29318 G10EOF
29319 fi