Imported Upstream version 1.8.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.8.0.
4 #
5 # Report bugs to <http://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: http://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.8.0'
594 PACKAGE_STRING='gpgme 1.8.0'
595 PACKAGE_BUGREPORT='http://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 GPG_ERROR_CONFIG
659 GLIBC21
660 LIBOBJS
661 API__SSIZE_T
662 API__OFF_T
663 INSERT__TYPEDEFS_FOR_GPGME_H
664 NEED__FILE_OFFSET_BITS
665 RUN_G13_TESTS_FALSE
666 RUN_G13_TESTS_TRUE
667 RUN_GPGSM_TESTS_FALSE
668 RUN_GPGSM_TESTS_TRUE
669 RUN_GPG_TESTS_FALSE
670 RUN_GPG_TESTS_TRUE
671 RUN_GPGCONF_TESTS_FALSE
672 RUN_GPGCONF_TESTS_TRUE
673 BUILD_TIMESTAMP
674 BUILD_FILEVERSION
675 BUILD_REVISION
676 ENABLED_LANGUAGES
677 PYTHON_VERSIONS
678 PYTHONS
679 PYTHON_EXTRA_LDFLAGS
680 PYTHON_EXTRA_LIBS
681 PYTHON_SITE_PKG
682 PYTHON_LDFLAGS
683 PYTHON_CPPFLAGS
684 pkgpyexecdir
685 pyexecdir
686 pkgpythondir
687 pythondir
688 PYTHON_PLATFORM
689 PYTHON_EXEC_PREFIX
690 PYTHON_PREFIX
691 PYTHON_VERSION
692 PYTHON
693 SWIG_LIB
694 SWIG
695 HAVE_DOT
696 HAVE_DOXYGEN_FALSE
697 HAVE_DOXYGEN_TRUE
698 GRAPHVIZ
699 DOXYGEN
700 QTCHOOSER
701 MOC2
702 MOC
703 GPGME_QTTEST_LIBS
704 GPGME_QTTEST_CFLAGS
705 GPGME_QT_LIBS
706 GPGME_QT_CFLAGS
707 HAVE_CXX11
708 BUILD_W32_GLIB_FALSE
709 BUILD_W32_GLIB_TRUE
710 HAVE_ANDROID_SYSTEM_FALSE
711 HAVE_ANDROID_SYSTEM_TRUE
712 HAVE_W32CE_SYSTEM_FALSE
713 HAVE_W32CE_SYSTEM_TRUE
714 HAVE_W64_SYSTEM_FALSE
715 HAVE_W64_SYSTEM_TRUE
716 HAVE_W32_SYSTEM_FALSE
717 HAVE_W32_SYSTEM_TRUE
718 HAVE_DOSISH_SYSTEM_FALSE
719 HAVE_DOSISH_SYSTEM_TRUE
720 GLIB_MKENUMS
721 GOBJECT_QUERY
722 GLIB_GENMARSHAL
723 GLIB_LIBS
724 GLIB_CFLAGS
725 PKG_CONFIG
726 HAVE_LD_VERSION_SCRIPT_FALSE
727 HAVE_LD_VERSION_SCRIPT_TRUE
728 RC
729 CXXCPP
730 OTOOL64
731 OTOOL
732 LIPO
733 NMEDIT
734 DSYMUTIL
735 MANIFEST_TOOL
736 RANLIB
737 ac_ct_AR
738 AR
739 LN_S
740 NM
741 ac_ct_DUMPBIN
742 DUMPBIN
743 LD
744 FGREP
745 SED
746 LIBTOOL
747 OBJDUMP
748 DLLTOOL
749 AS
750 CC_FOR_BUILD
751 VERSION_NUMBER
752 VERSION_MICRO
753 VERSION_MINOR
754 VERSION_MAJOR
755 LIBQGPGME_LT_REVISION
756 LIBQGPGME_LT_AGE
757 LIBQGPGME_LT_CURRENT
758 LIBGPGMEPP_LT_REVISION
759 LIBGPGMEPP_LT_AGE
760 LIBGPGMEPP_LT_CURRENT
761 LIBGPGME_LT_REVISION
762 LIBGPGME_LT_AGE
763 LIBGPGME_LT_CURRENT
764 GITLOG_TO_CHANGELOG
765 am__fastdepCXX_FALSE
766 am__fastdepCXX_TRUE
767 CXXDEPMODE
768 ac_ct_CXX
769 CXXFLAGS
770 CXX
771 EGREP
772 GREP
773 CPP
774 am__fastdepCC_FALSE
775 am__fastdepCC_TRUE
776 CCDEPMODE
777 am__nodep
778 AMDEPBACKSLASH
779 AMDEP_FALSE
780 AMDEP_TRUE
781 am__quote
782 am__include
783 DEPDIR
784 OBJEXT
785 EXEEXT
786 ac_ct_CC
787 CPPFLAGS
788 LDFLAGS
789 CFLAGS
790 CC
791 SYSROOT
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 MAINT
801 MAINTAINER_MODE_FALSE
802 MAINTAINER_MODE_TRUE
803 AM_BACKSLASH
804 AM_DEFAULT_VERBOSITY
805 AM_DEFAULT_V
806 AM_V
807 am__untar
808 am__tar
809 AMTAR
810 am__leading_dot
811 SET_MAKE
812 AWK
813 mkdir_p
814 MKDIR_P
815 INSTALL_STRIP_PROGRAM
816 STRIP
817 install_sh
818 MAKEINFO
819 AUTOHEADER
820 AUTOMAKE
821 AUTOCONF
822 ACLOCAL
823 VERSION
824 PACKAGE
825 CYGPATH_W
826 am__isrc
827 INSTALL_DATA
828 INSTALL_SCRIPT
829 INSTALL_PROGRAM
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_silent_rules
872 enable_maintainer_mode
873 enable_dependency_tracking
874 enable_static
875 enable_shared
876 with_pic
877 enable_fast_install
878 with_gnu_ld
879 with_sysroot
880 enable_libtool_lock
881 enable_glibtest
882 enable_w32_glib
883 enable_fixed_path
884 enable_languages
885 enable_build_timestamp
886 enable_gpgconf_test
887 enable_gpg_test
888 enable_gpgsm_test
889 enable_g13_test
890 enable_largefile
891 with_libgpg_error_prefix
892 with_gpg_error_prefix
893 with_libassuan_prefix
894 enable_fd_passing
895 '
896       ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 SYSROOT
900 CC
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 CPP
906 CXX
907 CXXFLAGS
908 CCC
909 CC_FOR_BUILD
910 CXXCPP
911 PKG_CONFIG
912 GPGME_QT_CFLAGS
913 GPGME_QT_LIBS
914 GPGME_QTTEST_CFLAGS
915 GPGME_QTTEST_LIBS
916 PYTHON
917 PYTHON_VERSION'
918
919
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
941
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
967
968 ac_prev=
969 ac_dashdash=
970 for ac_option
971 do
972   # If the previous option needs an argument, assign it.
973   if test -n "$ac_prev"; then
974     eval $ac_prev=\$ac_option
975     ac_prev=
976     continue
977   fi
978
979   case $ac_option in
980   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981   *=)   ac_optarg= ;;
982   *)    ac_optarg=yes ;;
983   esac
984
985   # Accept the important Cygnus configure options, so we can diagnose typos.
986
987   case $ac_dashdash$ac_option in
988   --)
989     ac_dashdash=yes ;;
990
991   -bindir | --bindir | --bindi | --bind | --bin | --bi)
992     ac_prev=bindir ;;
993   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994     bindir=$ac_optarg ;;
995
996   -build | --build | --buil | --bui | --bu)
997     ac_prev=build_alias ;;
998   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999     build_alias=$ac_optarg ;;
1000
1001   -cache-file | --cache-file | --cache-fil | --cache-fi \
1002   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003     ac_prev=cache_file ;;
1004   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006     cache_file=$ac_optarg ;;
1007
1008   --config-cache | -C)
1009     cache_file=config.cache ;;
1010
1011   -datadir | --datadir | --datadi | --datad)
1012     ac_prev=datadir ;;
1013   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014     datadir=$ac_optarg ;;
1015
1016   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017   | --dataroo | --dataro | --datar)
1018     ac_prev=datarootdir ;;
1019   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021     datarootdir=$ac_optarg ;;
1022
1023   -disable-* | --disable-*)
1024     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027       as_fn_error $? "invalid feature name: $ac_useropt"
1028     ac_useropt_orig=$ac_useropt
1029     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030     case $ac_user_opts in
1031       *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035          ac_unrecognized_sep=', ';;
1036     esac
1037     eval enable_$ac_useropt=no ;;
1038
1039   -docdir | --docdir | --docdi | --doc | --do)
1040     ac_prev=docdir ;;
1041   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042     docdir=$ac_optarg ;;
1043
1044   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045     ac_prev=dvidir ;;
1046   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047     dvidir=$ac_optarg ;;
1048
1049   -enable-* | --enable-*)
1050     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053       as_fn_error $? "invalid feature name: $ac_useropt"
1054     ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057       *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061          ac_unrecognized_sep=', ';;
1062     esac
1063     eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067   | --exec | --exe | --ex)
1068     ac_prev=exec_prefix ;;
1069   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071   | --exec=* | --exe=* | --ex=*)
1072     exec_prefix=$ac_optarg ;;
1073
1074   -gas | --gas | --ga | --g)
1075     # Obsolete; use --with-gas.
1076     with_gas=yes ;;
1077
1078   -help | --help | --hel | --he | -h)
1079     ac_init_help=long ;;
1080   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081     ac_init_help=recursive ;;
1082   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083     ac_init_help=short ;;
1084
1085   -host | --host | --hos | --ho)
1086     ac_prev=host_alias ;;
1087   -host=* | --host=* | --hos=* | --ho=*)
1088     host_alias=$ac_optarg ;;
1089
1090   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091     ac_prev=htmldir ;;
1092   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093   | --ht=*)
1094     htmldir=$ac_optarg ;;
1095
1096   -includedir | --includedir | --includedi | --included | --include \
1097   | --includ | --inclu | --incl | --inc)
1098     ac_prev=includedir ;;
1099   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100   | --includ=* | --inclu=* | --incl=* | --inc=*)
1101     includedir=$ac_optarg ;;
1102
1103   -infodir | --infodir | --infodi | --infod | --info | --inf)
1104     ac_prev=infodir ;;
1105   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106     infodir=$ac_optarg ;;
1107
1108   -libdir | --libdir | --libdi | --libd)
1109     ac_prev=libdir ;;
1110   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111     libdir=$ac_optarg ;;
1112
1113   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114   | --libexe | --libex | --libe)
1115     ac_prev=libexecdir ;;
1116   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117   | --libexe=* | --libex=* | --libe=*)
1118     libexecdir=$ac_optarg ;;
1119
1120   -localedir | --localedir | --localedi | --localed | --locale)
1121     ac_prev=localedir ;;
1122   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123     localedir=$ac_optarg ;;
1124
1125   -localstatedir | --localstatedir | --localstatedi | --localstated \
1126   | --localstate | --localstat | --localsta | --localst | --locals)
1127     ac_prev=localstatedir ;;
1128   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130     localstatedir=$ac_optarg ;;
1131
1132   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133     ac_prev=mandir ;;
1134   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135     mandir=$ac_optarg ;;
1136
1137   -nfp | --nfp | --nf)
1138     # Obsolete; use --without-fp.
1139     with_fp=no ;;
1140
1141   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142   | --no-cr | --no-c | -n)
1143     no_create=yes ;;
1144
1145   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147     no_recursion=yes ;;
1148
1149   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151   | --oldin | --oldi | --old | --ol | --o)
1152     ac_prev=oldincludedir ;;
1153   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156     oldincludedir=$ac_optarg ;;
1157
1158   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159     ac_prev=prefix ;;
1160   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161     prefix=$ac_optarg ;;
1162
1163   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164   | --program-pre | --program-pr | --program-p)
1165     ac_prev=program_prefix ;;
1166   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168     program_prefix=$ac_optarg ;;
1169
1170   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171   | --program-suf | --program-su | --program-s)
1172     ac_prev=program_suffix ;;
1173   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175     program_suffix=$ac_optarg ;;
1176
1177   -program-transform-name | --program-transform-name \
1178   | --program-transform-nam | --program-transform-na \
1179   | --program-transform-n | --program-transform- \
1180   | --program-transform | --program-transfor \
1181   | --program-transfo | --program-transf \
1182   | --program-trans | --program-tran \
1183   | --progr-tra | --program-tr | --program-t)
1184     ac_prev=program_transform_name ;;
1185   -program-transform-name=* | --program-transform-name=* \
1186   | --program-transform-nam=* | --program-transform-na=* \
1187   | --program-transform-n=* | --program-transform-=* \
1188   | --program-transform=* | --program-transfor=* \
1189   | --program-transfo=* | --program-transf=* \
1190   | --program-trans=* | --program-tran=* \
1191   | --progr-tra=* | --program-tr=* | --program-t=*)
1192     program_transform_name=$ac_optarg ;;
1193
1194   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195     ac_prev=pdfdir ;;
1196   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197     pdfdir=$ac_optarg ;;
1198
1199   -psdir | --psdir | --psdi | --psd | --ps)
1200     ac_prev=psdir ;;
1201   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202     psdir=$ac_optarg ;;
1203
1204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205   | -silent | --silent | --silen | --sile | --sil)
1206     silent=yes ;;
1207
1208   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209     ac_prev=sbindir ;;
1210   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211   | --sbi=* | --sb=*)
1212     sbindir=$ac_optarg ;;
1213
1214   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216   | --sharedst | --shareds | --shared | --share | --shar \
1217   | --sha | --sh)
1218     ac_prev=sharedstatedir ;;
1219   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222   | --sha=* | --sh=*)
1223     sharedstatedir=$ac_optarg ;;
1224
1225   -site | --site | --sit)
1226     ac_prev=site ;;
1227   -site=* | --site=* | --sit=*)
1228     site=$ac_optarg ;;
1229
1230   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231     ac_prev=srcdir ;;
1232   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233     srcdir=$ac_optarg ;;
1234
1235   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236   | --syscon | --sysco | --sysc | --sys | --sy)
1237     ac_prev=sysconfdir ;;
1238   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240     sysconfdir=$ac_optarg ;;
1241
1242   -target | --target | --targe | --targ | --tar | --ta | --t)
1243     ac_prev=target_alias ;;
1244   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245     target_alias=$ac_optarg ;;
1246
1247   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248     verbose=yes ;;
1249
1250   -version | --version | --versio | --versi | --vers | -V)
1251     ac_init_version=: ;;
1252
1253   -with-* | --with-*)
1254     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257       as_fn_error $? "invalid package name: $ac_useropt"
1258     ac_useropt_orig=$ac_useropt
1259     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260     case $ac_user_opts in
1261       *"
1262 "with_$ac_useropt"
1263 "*) ;;
1264       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265          ac_unrecognized_sep=', ';;
1266     esac
1267     eval with_$ac_useropt=\$ac_optarg ;;
1268
1269   -without-* | --without-*)
1270     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273       as_fn_error $? "invalid package name: $ac_useropt"
1274     ac_useropt_orig=$ac_useropt
1275     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276     case $ac_user_opts in
1277       *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281          ac_unrecognized_sep=', ';;
1282     esac
1283     eval with_$ac_useropt=no ;;
1284
1285   --x)
1286     # Obsolete; use --with-x.
1287     with_x=yes ;;
1288
1289   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290   | --x-incl | --x-inc | --x-in | --x-i)
1291     ac_prev=x_includes ;;
1292   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294     x_includes=$ac_optarg ;;
1295
1296   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298     ac_prev=x_libraries ;;
1299   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301     x_libraries=$ac_optarg ;;
1302
1303   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1305     ;;
1306
1307   *=*)
1308     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309     # Reject names that are not valid shell variable names.
1310     case $ac_envvar in #(
1311       '' | [0-9]* | *[!_$as_cr_alnum]* )
1312       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313     esac
1314     eval $ac_envvar=\$ac_optarg
1315     export $ac_envvar ;;
1316
1317   *)
1318     # FIXME: should be removed in autoconf 3.0.
1319     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323     ;;
1324
1325   esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330   as_fn_error $? "missing argument to $ac_option"
1331 fi
1332
1333 if test -n "$ac_unrecognized_opts"; then
1334   case $enable_option_checking in
1335     no) ;;
1336     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338   esac
1339 fi
1340
1341 # Check all directory arguments for consistency.
1342 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343                 datadir sysconfdir sharedstatedir localstatedir includedir \
1344                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345                 libdir localedir mandir
1346 do
1347   eval ac_val=\$$ac_var
1348   # Remove trailing slashes.
1349   case $ac_val in
1350     */ )
1351       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352       eval $ac_var=\$ac_val;;
1353   esac
1354   # Be sure to have absolute directory names.
1355   case $ac_val in
1356     [\\/$]* | ?:[\\/]* )  continue;;
1357     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358   esac
1359   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 done
1361
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1368
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371   if test "x$build_alias" = x; then
1372     cross_compiling=maybe
1373   elif test "x$build_alias" != "x$host_alias"; then
1374     cross_compiling=yes
1375   fi
1376 fi
1377
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381 test "$silent" = yes && exec 6>/dev/null
1382
1383
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387   as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389   as_fn_error $? "pwd does not report name of working directory"
1390
1391
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394   ac_srcdir_defaulted=yes
1395   # Try the directory containing this script, then the parent directory.
1396   ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398          X"$as_myself" : 'X\(//\)[^/]' \| \
1399          X"$as_myself" : 'X\(//\)$' \| \
1400          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\/\)[^/].*/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\/\)$/{
1411             s//\1/
1412             q
1413           }
1414           /^X\(\/\).*/{
1415             s//\1/
1416             q
1417           }
1418           s/.*/./; q'`
1419   srcdir=$ac_confdir
1420   if test ! -r "$srcdir/$ac_unique_file"; then
1421     srcdir=..
1422   fi
1423 else
1424   ac_srcdir_defaulted=no
1425 fi
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429 fi
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433         pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436   srcdir=.
1437 fi
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446   eval ac_env_${ac_var}_value=\$${ac_var}
1447   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1450
1451 #
1452 # Report the --help message.
1453 #
1454 if test "$ac_init_help" = "long"; then
1455   # Omit some internal or obsolete options to make the list less imposing.
1456   # This message is too long to be a string in the A/UX 3.1 sh.
1457   cat <<_ACEOF
1458 \`configure' configures gpgme 1.8.0 to adapt to many kinds of systems.
1459
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465 Defaults for the options are specified in brackets.
1466
1467 Configuration:
1468   -h, --help              display this help and exit
1469       --help=short        display options specific to this package
1470       --help=recursive    display the short help of all the included packages
1471   -V, --version           display version information and exit
1472   -q, --quiet, --silent   do not print \`checking ...' messages
1473       --cache-file=FILE   cache test results in FILE [disabled]
1474   -C, --config-cache      alias for \`--cache-file=config.cache'
1475   -n, --no-create         do not create output files
1476       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478 Installation directories:
1479   --prefix=PREFIX         install architecture-independent files in PREFIX
1480                           [$ac_default_prefix]
1481   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                           [PREFIX]
1483
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1488
1489 For better control, use the options below.
1490
1491 Fine tuning of the installation directories:
1492   --bindir=DIR            user executables [EPREFIX/bin]
1493   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1494   --libexecdir=DIR        program executables [EPREFIX/libexec]
1495   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1496   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1497   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1498   --libdir=DIR            object code libraries [EPREFIX/lib]
1499   --includedir=DIR        C header files [PREFIX/include]
1500   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1501   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1502   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1503   --infodir=DIR           info documentation [DATAROOTDIR/info]
1504   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1505   --mandir=DIR            man documentation [DATAROOTDIR/man]
1506   --docdir=DIR            documentation root [DATAROOTDIR/doc/gpgme]
1507   --htmldir=DIR           html documentation [DOCDIR]
1508   --dvidir=DIR            dvi documentation [DOCDIR]
1509   --pdfdir=DIR            pdf documentation [DOCDIR]
1510   --psdir=DIR             ps documentation [DOCDIR]
1511 _ACEOF
1512
1513   cat <<\_ACEOF
1514
1515 Program names:
1516   --program-prefix=PREFIX            prepend PREFIX to installed program names
1517   --program-suffix=SUFFIX            append SUFFIX to installed program names
1518   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1519
1520 System types:
1521   --build=BUILD     configure for building on BUILD [guessed]
1522   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523 _ACEOF
1524 fi
1525
1526 if test -n "$ac_init_help"; then
1527   case $ac_init_help in
1528      short | recursive ) echo "Configuration of gpgme 1.8.0:";;
1529    esac
1530   cat <<\_ACEOF
1531
1532 Optional Features:
1533   --disable-option-checking  ignore unrecognized --enable/--with options
1534   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536   --enable-silent-rules   less verbose build output (undo: "make V=1")
1537   --disable-silent-rules  verbose build output (undo: "make V=0")
1538   --enable-maintainer-mode
1539                           enable make rules and dependencies not useful (and
1540                           sometimes confusing) to the casual installer
1541   --enable-dependency-tracking
1542                           do not reject slow dependency extractors
1543   --disable-dependency-tracking
1544                           speeds up one-time build
1545   --enable-static[=PKGS]  build static libraries [default=no]
1546   --enable-shared[=PKGS]  build shared libraries [default=yes]
1547   --enable-fast-install[=PKGS]
1548                           optimize for fast installation [default=yes]
1549   --disable-libtool-lock  avoid locking (might break parallel builds)
1550   --disable-glibtest      do not try to compile and run a test GLIB program
1551   --enable-w32-glib       build GPGME Glib for W32
1552   --enable-fixed-path=PATH
1553                           locate binaries only via this PATH
1554   --enable-languages=languages
1555                           enable only specific language bindings
1556   --enable-build-timestamp
1557                           set an explicit build timestamp for reproducibility.
1558                           (default is the current time in ISO-8601 format)
1559   --disable-gpgconf-test  disable GPGCONF regression test
1560   --disable-gpg-test      disable GPG regression test
1561   --disable-gpgsm-test    disable GPGSM regression test
1562   --disable-g13-test      disable G13 regression test
1563   --disable-largefile     omit support for large files
1564   --disable-fd-passing    do not use FD passing
1565
1566 Optional Packages:
1567   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1568   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1569   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1570                           both]
1571   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1572   --with-sysroot=DIR Search for dependent libraries within DIR
1573                         (or the compiler's sysroot if not specified).
1574   --with-libgpg-error-prefix=PFX
1575                           prefix where GPG Error is installed (optional)
1576
1577   --with-libassuan-prefix=PFX
1578                           prefix where LIBASSUAN is installed (optional)
1579
1580 Some influential environment variables:
1581   SYSROOT     locate config scripts also below that directory
1582   CC          C compiler command
1583   CFLAGS      C compiler flags
1584   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1585               nonstandard directory <lib dir>
1586   LIBS        libraries to pass to the linker, e.g. -l<library>
1587   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1588               you have headers in a nonstandard directory <include dir>
1589   CPP         C preprocessor
1590   CXX         C++ compiler command
1591   CXXFLAGS    C++ compiler flags
1592   CC_FOR_BUILD
1593               build system C compiler
1594   CXXCPP      C++ preprocessor
1595   PKG_CONFIG  path to pkg-config utility
1596   GPGME_QT_CFLAGS
1597               C compiler flags for GPGME_QT, overriding pkg-config
1598   GPGME_QT_LIBS
1599               linker flags for GPGME_QT, overriding pkg-config
1600   GPGME_QTTEST_CFLAGS
1601               C compiler flags for GPGME_QTTEST, overriding pkg-config
1602   GPGME_QTTEST_LIBS
1603               linker flags for GPGME_QTTEST, overriding pkg-config
1604   PYTHON      the Python interpreter
1605   PYTHON_VERSION
1606               The installed Python version to use, for example '2.3'. This
1607               string will be appended to the Python interpreter canonical
1608               name.
1609
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1612
1613 Report bugs to <http://bugs.gnupg.org>.
1614 _ACEOF
1615 ac_status=$?
1616 fi
1617
1618 if test "$ac_init_help" = "recursive"; then
1619   # If there are subdirs, report their specific --help.
1620   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621     test -d "$ac_dir" ||
1622       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623       continue
1624     ac_builddir=.
1625
1626 case "$ac_dir" in
1627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 *)
1629   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1630   # A ".." for each directory in $ac_dir_suffix.
1631   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632   case $ac_top_builddir_sub in
1633   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635   esac ;;
1636 esac
1637 ac_abs_top_builddir=$ac_pwd
1638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639 # for backward compatibility:
1640 ac_top_builddir=$ac_top_build_prefix
1641
1642 case $srcdir in
1643   .)  # We are building in place.
1644     ac_srcdir=.
1645     ac_top_srcdir=$ac_top_builddir_sub
1646     ac_abs_top_srcdir=$ac_pwd ;;
1647   [\\/]* | ?:[\\/]* )  # Absolute name.
1648     ac_srcdir=$srcdir$ac_dir_suffix;
1649     ac_top_srcdir=$srcdir
1650     ac_abs_top_srcdir=$srcdir ;;
1651   *) # Relative name.
1652     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653     ac_top_srcdir=$ac_top_build_prefix$srcdir
1654     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 esac
1656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657
1658     cd "$ac_dir" || { ac_status=$?; continue; }
1659     # Check for guested configure.
1660     if test -f "$ac_srcdir/configure.gnu"; then
1661       echo &&
1662       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663     elif test -f "$ac_srcdir/configure"; then
1664       echo &&
1665       $SHELL "$ac_srcdir/configure" --help=recursive
1666     else
1667       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668     fi || ac_status=$?
1669     cd "$ac_pwd" || { ac_status=$?; break; }
1670   done
1671 fi
1672
1673 test -n "$ac_init_help" && exit $ac_status
1674 if $ac_init_version; then
1675   cat <<\_ACEOF
1676 gpgme configure 1.8.0
1677 generated by GNU Autoconf 2.69
1678
1679 Copyright (C) 2012 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1682 _ACEOF
1683   exit
1684 fi
1685
1686 ## ------------------------ ##
1687 ## Autoconf initialization. ##
1688 ## ------------------------ ##
1689
1690 # ac_fn_c_try_compile LINENO
1691 # --------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_compile ()
1694 {
1695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696   rm -f conftest.$ac_objext
1697   if { { ac_try="$ac_compile"
1698 case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704   (eval "$ac_compile") 2>conftest.err
1705   ac_status=$?
1706   if test -s conftest.err; then
1707     grep -v '^ *+' conftest.err >conftest.er1
1708     cat conftest.er1 >&5
1709     mv -f conftest.er1 conftest.err
1710   fi
1711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; } && {
1713          test -z "$ac_c_werror_flag" ||
1714          test ! -s conftest.err
1715        } && test -s conftest.$ac_objext; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721         ac_retval=1
1722 fi
1723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724   as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_compile
1727
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737   *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742   ac_status=$?
1743   if test -s conftest.err; then
1744     grep -v '^ *+' conftest.err >conftest.er1
1745     cat conftest.er1 >&5
1746     mv -f conftest.er1 conftest.err
1747   fi
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } > conftest.i && {
1750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751          test ! -s conftest.err
1752        }; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758     ac_retval=1
1759 fi
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761   as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_cpp
1764
1765 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1768 # the include files in INCLUDES and setting the cache variable VAR
1769 # accordingly.
1770 ac_fn_c_check_header_mongrel ()
1771 {
1772   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773   if eval \${$3+:} false; then :
1774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777   $as_echo_n "(cached) " >&6
1778 fi
1779 eval ac_res=\$$3
1780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 else
1783   # Is the header compilable?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1785 $as_echo_n "checking $2 usability... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h.  */
1788 $4
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792   ac_header_compiler=yes
1793 else
1794   ac_header_compiler=no
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1798 $as_echo "$ac_header_compiler" >&6; }
1799
1800 # Is the header present?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1802 $as_echo_n "checking $2 presence... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h.  */
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_cpp "$LINENO"; then :
1808   ac_header_preproc=yes
1809 else
1810   ac_header_preproc=no
1811 fi
1812 rm -f conftest.err conftest.i conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1814 $as_echo "$ac_header_preproc" >&6; }
1815
1816 # So?  What about this header?
1817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1818   yes:no: )
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1820 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823     ;;
1824   no:yes:* )
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1826 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1828 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1830 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1832 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ( $as_echo "## ------------------------------------ ##
1836 ## Report this to http://bugs.gnupg.org ##
1837 ## ------------------------------------ ##"
1838      ) | sed "s/^/$as_me: WARNING:     /" >&2
1839     ;;
1840 esac
1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844   $as_echo_n "(cached) " >&6
1845 else
1846   eval "$3=\$ac_header_compiler"
1847 fi
1848 eval ac_res=\$$3
1849                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 fi
1852   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_header_mongrel
1855
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1860 ac_fn_c_try_run ()
1861 {
1862   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863   if { { ac_try="$ac_link"
1864 case "(($ac_try" in
1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866   *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870   (eval "$ac_link") 2>&5
1871   ac_status=$?
1872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874   { { case "(($ac_try" in
1875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876   *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880   (eval "$ac_try") 2>&5
1881   ac_status=$?
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; }; }; then :
1884   ac_retval=0
1885 else
1886   $as_echo "$as_me: program exited with status $ac_status" >&5
1887        $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890        ac_retval=$ac_status
1891 fi
1892   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894   as_fn_set_status $ac_retval
1895
1896 } # ac_fn_c_try_run
1897
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908   $as_echo_n "(cached) " >&6
1909 else
1910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 $4
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916   eval "$3=yes"
1917 else
1918   eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_header_compile
1928
1929 # ac_fn_cxx_try_compile LINENO
1930 # ----------------------------
1931 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_compile ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   rm -f conftest.$ac_objext
1936   if { { ac_try="$ac_compile"
1937 case "(($ac_try" in
1938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939   *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943   (eval "$ac_compile") 2>conftest.err
1944   ac_status=$?
1945   if test -s conftest.err; then
1946     grep -v '^ *+' conftest.err >conftest.er1
1947     cat conftest.er1 >&5
1948     mv -f conftest.er1 conftest.err
1949   fi
1950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951   test $ac_status = 0; } && {
1952          test -z "$ac_cxx_werror_flag" ||
1953          test ! -s conftest.err
1954        } && test -s conftest.$ac_objext; then :
1955   ac_retval=0
1956 else
1957   $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1959
1960         ac_retval=1
1961 fi
1962   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963   as_fn_set_status $ac_retval
1964
1965 } # ac_fn_cxx_try_compile
1966
1967 # ac_fn_c_try_link LINENO
1968 # -----------------------
1969 # Try to link conftest.$ac_ext, and return whether this succeeded.
1970 ac_fn_c_try_link ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   rm -f conftest.$ac_objext conftest$ac_exeext
1974   if { { ac_try="$ac_link"
1975 case "(($ac_try" in
1976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977   *) ac_try_echo=$ac_try;;
1978 esac
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981   (eval "$ac_link") 2>conftest.err
1982   ac_status=$?
1983   if test -s conftest.err; then
1984     grep -v '^ *+' conftest.err >conftest.er1
1985     cat conftest.er1 >&5
1986     mv -f conftest.er1 conftest.err
1987   fi
1988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989   test $ac_status = 0; } && {
1990          test -z "$ac_c_werror_flag" ||
1991          test ! -s conftest.err
1992        } && test -s conftest$ac_exeext && {
1993          test "$cross_compiling" = yes ||
1994          test -x conftest$ac_exeext
1995        }; then :
1996   ac_retval=0
1997 else
1998   $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2000
2001         ac_retval=1
2002 fi
2003   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2004   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2005   # interfere with the next link command; also delete a directory that is
2006   # left behind by Apple's compiler.  We do this before executing the actions.
2007   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009   as_fn_set_status $ac_retval
2010
2011 } # ac_fn_c_try_link
2012
2013 # ac_fn_c_check_func LINENO FUNC VAR
2014 # ----------------------------------
2015 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2016 ac_fn_c_check_func ()
2017 {
2018   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022   $as_echo_n "(cached) " >&6
2023 else
2024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2028 #define $2 innocuous_$2
2029
2030 /* System header to define __stub macros and hopefully few prototypes,
2031     which can conflict with char $2 (); below.
2032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2033     <limits.h> exists even on freestanding compilers.  */
2034
2035 #ifdef __STDC__
2036 # include <limits.h>
2037 #else
2038 # include <assert.h>
2039 #endif
2040
2041 #undef $2
2042
2043 /* Override any GCC internal prototype to avoid an error.
2044    Use char because int might match the return type of a GCC
2045    builtin and then its argument prototype would still apply.  */
2046 #ifdef __cplusplus
2047 extern "C"
2048 #endif
2049 char $2 ();
2050 /* The GNU C library defines this for functions which it implements
2051     to always fail with ENOSYS.  Some functions are actually named
2052     something starting with __ and the normal name is an alias.  */
2053 #if defined __stub_$2 || defined __stub___$2
2054 choke me
2055 #endif
2056
2057 int
2058 main ()
2059 {
2060 return $2 ();
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_link "$LINENO"; then :
2066   eval "$3=yes"
2067 else
2068   eval "$3=no"
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext \
2071     conftest$ac_exeext conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$3
2074                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_func
2079
2080 # ac_fn_cxx_try_cpp LINENO
2081 # ------------------------
2082 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2083 ac_fn_cxx_try_cpp ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   if { { ac_try="$ac_cpp conftest.$ac_ext"
2087 case "(($ac_try" in
2088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089   *) ac_try_echo=$ac_try;;
2090 esac
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2094   ac_status=$?
2095   if test -s conftest.err; then
2096     grep -v '^ *+' conftest.err >conftest.er1
2097     cat conftest.er1 >&5
2098     mv -f conftest.er1 conftest.err
2099   fi
2100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101   test $ac_status = 0; } > conftest.i && {
2102          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2103          test ! -s conftest.err
2104        }; then :
2105   ac_retval=0
2106 else
2107   $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110     ac_retval=1
2111 fi
2112   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113   as_fn_set_status $ac_retval
2114
2115 } # ac_fn_cxx_try_cpp
2116
2117 # ac_fn_cxx_try_link LINENO
2118 # -------------------------
2119 # Try to link conftest.$ac_ext, and return whether this succeeded.
2120 ac_fn_cxx_try_link ()
2121 {
2122   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123   rm -f conftest.$ac_objext conftest$ac_exeext
2124   if { { ac_try="$ac_link"
2125 case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131   (eval "$ac_link") 2>conftest.err
2132   ac_status=$?
2133   if test -s conftest.err; then
2134     grep -v '^ *+' conftest.err >conftest.er1
2135     cat conftest.er1 >&5
2136     mv -f conftest.er1 conftest.err
2137   fi
2138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139   test $ac_status = 0; } && {
2140          test -z "$ac_cxx_werror_flag" ||
2141          test ! -s conftest.err
2142        } && test -s conftest$ac_exeext && {
2143          test "$cross_compiling" = yes ||
2144          test -x conftest$ac_exeext
2145        }; then :
2146   ac_retval=0
2147 else
2148   $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2150
2151         ac_retval=1
2152 fi
2153   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2154   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2155   # interfere with the next link command; also delete a directory that is
2156   # left behind by Apple's compiler.  We do this before executing the actions.
2157   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2158   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159   as_fn_set_status $ac_retval
2160
2161 } # ac_fn_cxx_try_link
2162
2163 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2164 # --------------------------------------------
2165 # Tries to find the compile-time value of EXPR in a program that includes
2166 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2167 # computed
2168 ac_fn_c_compute_int ()
2169 {
2170   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171   if test "$cross_compiling" = yes; then
2172     # Depending upon the size, compute the lo and hi bounds.
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 int
2177 main ()
2178 {
2179 static int test_array [1 - 2 * !(($2) >= 0)];
2180 test_array [0] = 0;
2181 return test_array [0];
2182
2183   ;
2184   return 0;
2185 }
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188   ac_lo=0 ac_mid=0
2189   while :; do
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) <= $ac_mid)];
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_hi=$ac_mid; break
2206 else
2207   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2208                         if test $ac_lo -le $ac_mid; then
2209                           ac_lo= ac_hi=
2210                           break
2211                         fi
2212                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2213 fi
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215   done
2216 else
2217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $4
2220 int
2221 main ()
2222 {
2223 static int test_array [1 - 2 * !(($2) < 0)];
2224 test_array [0] = 0;
2225 return test_array [0];
2226
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232   ac_hi=-1 ac_mid=-1
2233   while :; do
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) >= $ac_mid)];
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_lo=$ac_mid; break
2250 else
2251   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252                         if test $ac_mid -le $ac_hi; then
2253                           ac_lo= ac_hi=
2254                           break
2255                         fi
2256                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259   done
2260 else
2261   ac_lo= ac_hi=
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 # Binary search between lo and hi bounds.
2267 while test "x$ac_lo" != "x$ac_hi"; do
2268   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h.  */
2271 $4
2272 int
2273 main ()
2274 {
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276 test_array [0] = 0;
2277 return test_array [0];
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284   ac_hi=$ac_mid
2285 else
2286   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 done
2290 case $ac_lo in #((
2291 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2292 '') ac_retval=1 ;;
2293 esac
2294   else
2295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 $4
2298 static long int longval () { return $2; }
2299 static unsigned long int ulongval () { return $2; }
2300 #include <stdio.h>
2301 #include <stdlib.h>
2302 int
2303 main ()
2304 {
2305
2306   FILE *f = fopen ("conftest.val", "w");
2307   if (! f)
2308     return 1;
2309   if (($2) < 0)
2310     {
2311       long int i = longval ();
2312       if (i != ($2))
2313         return 1;
2314       fprintf (f, "%ld", i);
2315     }
2316   else
2317     {
2318       unsigned long int i = ulongval ();
2319       if (i != ($2))
2320         return 1;
2321       fprintf (f, "%lu", i);
2322     }
2323   /* Do not output a trailing newline, as this causes \r\n confusion
2324      on some platforms.  */
2325   return ferror (f) || fclose (f) != 0;
2326
2327   ;
2328   return 0;
2329 }
2330 _ACEOF
2331 if ac_fn_c_try_run "$LINENO"; then :
2332   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2333 else
2334   ac_retval=1
2335 fi
2336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2337   conftest.$ac_objext conftest.beam conftest.$ac_ext
2338 rm -f conftest.val
2339
2340   fi
2341   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342   as_fn_set_status $ac_retval
2343
2344 } # ac_fn_c_compute_int
2345
2346 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2347 # -------------------------------------------
2348 # Tests whether TYPE exists after having included INCLUDES, setting cache
2349 # variable VAR accordingly.
2350 ac_fn_c_check_type ()
2351 {
2352   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if eval \${$3+:} false; then :
2356   $as_echo_n "(cached) " >&6
2357 else
2358   eval "$3=no"
2359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h.  */
2361 $4
2362 int
2363 main ()
2364 {
2365 if (sizeof ($2))
2366          return 0;
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 $4
2375 int
2376 main ()
2377 {
2378 if (sizeof (($2)))
2379             return 0;
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385
2386 else
2387   eval "$3=yes"
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 eval ac_res=\$$3
2394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397
2398 } # ac_fn_c_check_type
2399
2400 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2401 # ---------------------------------------------
2402 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2403 # accordingly.
2404 ac_fn_c_check_decl ()
2405 {
2406   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407   as_decl_name=`echo $2|sed 's/ *(.*//'`
2408   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2410 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2411 if eval \${$3+:} false; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h.  */
2416 $4
2417 int
2418 main ()
2419 {
2420 #ifndef $as_decl_name
2421 #ifdef __cplusplus
2422   (void) $as_decl_use;
2423 #else
2424   (void) $as_decl_name;
2425 #endif
2426 #endif
2427
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433   eval "$3=yes"
2434 else
2435   eval "$3=no"
2436 fi
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 fi
2439 eval ac_res=\$$3
2440                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2443
2444 } # ac_fn_c_check_decl
2445
2446 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2447 # ----------------------------------------------------
2448 # Tries to find if the field MEMBER exists in type AGGR, after including
2449 # INCLUDES, setting cache variable VAR accordingly.
2450 ac_fn_c_check_member ()
2451 {
2452   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2454 $as_echo_n "checking for $2.$3... " >&6; }
2455 if eval \${$4+:} false; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h.  */
2460 $5
2461 int
2462 main ()
2463 {
2464 static $2 ac_aggr;
2465 if (ac_aggr.$3)
2466 return 0;
2467   ;
2468   return 0;
2469 }
2470 _ACEOF
2471 if ac_fn_c_try_compile "$LINENO"; then :
2472   eval "$4=yes"
2473 else
2474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h.  */
2476 $5
2477 int
2478 main ()
2479 {
2480 static $2 ac_aggr;
2481 if (sizeof ac_aggr.$3)
2482 return 0;
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488   eval "$4=yes"
2489 else
2490   eval "$4=no"
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 fi
2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 fi
2496 eval ac_res=\$$4
2497                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498 $as_echo "$ac_res" >&6; }
2499   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2500
2501 } # ac_fn_c_check_member
2502 cat >config.log <<_ACEOF
2503 This file contains any messages produced by compilers while
2504 running configure, to aid debugging if configure makes a mistake.
2505
2506 It was created by gpgme $as_me 1.8.0, which was
2507 generated by GNU Autoconf 2.69.  Invocation command line was
2508
2509   $ $0 $@
2510
2511 _ACEOF
2512 exec 5>>config.log
2513 {
2514 cat <<_ASUNAME
2515 ## --------- ##
2516 ## Platform. ##
2517 ## --------- ##
2518
2519 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2520 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2521 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2522 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2523 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2524
2525 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2526 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2527
2528 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2529 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2530 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2531 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2532 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2533 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2534 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2535
2536 _ASUNAME
2537
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541   IFS=$as_save_IFS
2542   test -z "$as_dir" && as_dir=.
2543     $as_echo "PATH: $as_dir"
2544   done
2545 IFS=$as_save_IFS
2546
2547 } >&5
2548
2549 cat >&5 <<_ACEOF
2550
2551
2552 ## ----------- ##
2553 ## Core tests. ##
2554 ## ----------- ##
2555
2556 _ACEOF
2557
2558
2559 # Keep a trace of the command line.
2560 # Strip out --no-create and --no-recursion so they do not pile up.
2561 # Strip out --silent because we don't want to record it for future runs.
2562 # Also quote any args containing shell meta-characters.
2563 # Make two passes to allow for proper duplicate-argument suppression.
2564 ac_configure_args=
2565 ac_configure_args0=
2566 ac_configure_args1=
2567 ac_must_keep_next=false
2568 for ac_pass in 1 2
2569 do
2570   for ac_arg
2571   do
2572     case $ac_arg in
2573     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2574     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2575     | -silent | --silent | --silen | --sile | --sil)
2576       continue ;;
2577     *\'*)
2578       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2579     esac
2580     case $ac_pass in
2581     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2582     2)
2583       as_fn_append ac_configure_args1 " '$ac_arg'"
2584       if test $ac_must_keep_next = true; then
2585         ac_must_keep_next=false # Got value, back to normal.
2586       else
2587         case $ac_arg in
2588           *=* | --config-cache | -C | -disable-* | --disable-* \
2589           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2590           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2591           | -with-* | --with-* | -without-* | --without-* | --x)
2592             case "$ac_configure_args0 " in
2593               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2594             esac
2595             ;;
2596           -* ) ac_must_keep_next=true ;;
2597         esac
2598       fi
2599       as_fn_append ac_configure_args " '$ac_arg'"
2600       ;;
2601     esac
2602   done
2603 done
2604 { ac_configure_args0=; unset ac_configure_args0;}
2605 { ac_configure_args1=; unset ac_configure_args1;}
2606
2607 # When interrupted or exit'd, cleanup temporary files, and complete
2608 # config.log.  We remove comments because anyway the quotes in there
2609 # would cause problems or look ugly.
2610 # WARNING: Use '\'' to represent an apostrophe within the trap.
2611 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2612 trap 'exit_status=$?
2613   # Save into config.log some information that might help in debugging.
2614   {
2615     echo
2616
2617     $as_echo "## ---------------- ##
2618 ## Cache variables. ##
2619 ## ---------------- ##"
2620     echo
2621     # The following way of writing the cache mishandles newlines in values,
2622 (
2623   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2624     eval ac_val=\$$ac_var
2625     case $ac_val in #(
2626     *${as_nl}*)
2627       case $ac_var in #(
2628       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2630       esac
2631       case $ac_var in #(
2632       _ | IFS | as_nl) ;; #(
2633       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2634       *) { eval $ac_var=; unset $ac_var;} ;;
2635       esac ;;
2636     esac
2637   done
2638   (set) 2>&1 |
2639     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2640     *${as_nl}ac_space=\ *)
2641       sed -n \
2642         "s/'\''/'\''\\\\'\'''\''/g;
2643           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2644       ;; #(
2645     *)
2646       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2647       ;;
2648     esac |
2649     sort
2650 )
2651     echo
2652
2653     $as_echo "## ----------------- ##
2654 ## Output variables. ##
2655 ## ----------------- ##"
2656     echo
2657     for ac_var in $ac_subst_vars
2658     do
2659       eval ac_val=\$$ac_var
2660       case $ac_val in
2661       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2662       esac
2663       $as_echo "$ac_var='\''$ac_val'\''"
2664     done | sort
2665     echo
2666
2667     if test -n "$ac_subst_files"; then
2668       $as_echo "## ------------------- ##
2669 ## File substitutions. ##
2670 ## ------------------- ##"
2671       echo
2672       for ac_var in $ac_subst_files
2673       do
2674         eval ac_val=\$$ac_var
2675         case $ac_val in
2676         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2677         esac
2678         $as_echo "$ac_var='\''$ac_val'\''"
2679       done | sort
2680       echo
2681     fi
2682
2683     if test -s confdefs.h; then
2684       $as_echo "## ----------- ##
2685 ## confdefs.h. ##
2686 ## ----------- ##"
2687       echo
2688       cat confdefs.h
2689       echo
2690     fi
2691     test "$ac_signal" != 0 &&
2692       $as_echo "$as_me: caught signal $ac_signal"
2693     $as_echo "$as_me: exit $exit_status"
2694   } >&5
2695   rm -f core *.core core.conftest.* &&
2696     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2697     exit $exit_status
2698 ' 0
2699 for ac_signal in 1 2 13 15; do
2700   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2701 done
2702 ac_signal=0
2703
2704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2705 rm -f -r conftest* confdefs.h
2706
2707 $as_echo "/* confdefs.h */" > confdefs.h
2708
2709 # Predefined preprocessor variables.
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_NAME "$PACKAGE_NAME"
2713 _ACEOF
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2717 _ACEOF
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2721 _ACEOF
2722
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_STRING "$PACKAGE_STRING"
2725 _ACEOF
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2729 _ACEOF
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE_URL "$PACKAGE_URL"
2733 _ACEOF
2734
2735
2736 # Let the site file select an alternate cache file if it wants to.
2737 # Prefer an explicitly selected file to automatically selected ones.
2738 ac_site_file1=NONE
2739 ac_site_file2=NONE
2740 if test -n "$CONFIG_SITE"; then
2741   # We do not want a PATH search for config.site.
2742   case $CONFIG_SITE in #((
2743     -*)  ac_site_file1=./$CONFIG_SITE;;
2744     */*) ac_site_file1=$CONFIG_SITE;;
2745     *)   ac_site_file1=./$CONFIG_SITE;;
2746   esac
2747 elif test "x$prefix" != xNONE; then
2748   ac_site_file1=$prefix/share/config.site
2749   ac_site_file2=$prefix/etc/config.site
2750 else
2751   ac_site_file1=$ac_default_prefix/share/config.site
2752   ac_site_file2=$ac_default_prefix/etc/config.site
2753 fi
2754 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2755 do
2756   test "x$ac_site_file" = xNONE && continue
2757   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2758     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2759 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2760     sed 's/^/| /' "$ac_site_file" >&5
2761     . "$ac_site_file" \
2762       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $? "failed to load site script $ac_site_file
2765 See \`config.log' for more details" "$LINENO" 5; }
2766   fi
2767 done
2768
2769 if test -r "$cache_file"; then
2770   # Some versions of bash will fail to source /dev/null (special files
2771   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2772   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2773     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2774 $as_echo "$as_me: loading cache $cache_file" >&6;}
2775     case $cache_file in
2776       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2777       *)                      . "./$cache_file";;
2778     esac
2779   fi
2780 else
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2782 $as_echo "$as_me: creating cache $cache_file" >&6;}
2783   >$cache_file
2784 fi
2785
2786 as_fn_append ac_header_list " locale.h"
2787 as_fn_append ac_header_list " sys/select.h"
2788 as_fn_append ac_header_list " sys/uio.h"
2789 as_fn_append ac_header_list " argp.h"
2790 as_fn_append ac_header_list " unistd.h"
2791 as_fn_append ac_header_list " sys/time.h"
2792 as_fn_append ac_header_list " sys/types.h"
2793 as_fn_append ac_header_list " sys/stat.h"
2794 # Check that the precious variables saved in the cache have kept the same
2795 # value.
2796 ac_cache_corrupted=false
2797 for ac_var in $ac_precious_vars; do
2798   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2799   eval ac_new_set=\$ac_env_${ac_var}_set
2800   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2801   eval ac_new_val=\$ac_env_${ac_var}_value
2802   case $ac_old_set,$ac_new_set in
2803     set,)
2804       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2805 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2806       ac_cache_corrupted=: ;;
2807     ,set)
2808       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2809 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2810       ac_cache_corrupted=: ;;
2811     ,);;
2812     *)
2813       if test "x$ac_old_val" != "x$ac_new_val"; then
2814         # differences in whitespace do not lead to failure.
2815         ac_old_val_w=`echo x $ac_old_val`
2816         ac_new_val_w=`echo x $ac_new_val`
2817         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2818           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2819 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2820           ac_cache_corrupted=:
2821         else
2822           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2823 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2824           eval $ac_var=\$ac_old_val
2825         fi
2826         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2827 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2828         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2829 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2830       fi;;
2831   esac
2832   # Pass precious variables to config.status.
2833   if test "$ac_new_set" = set; then
2834     case $ac_new_val in
2835     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2836     *) ac_arg=$ac_var=$ac_new_val ;;
2837     esac
2838     case " $ac_configure_args " in
2839       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2840       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2841     esac
2842   fi
2843 done
2844 if $ac_cache_corrupted; then
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2848 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2849   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2850 fi
2851 ## -------------------- ##
2852 ## Main body of script. ##
2853 ## -------------------- ##
2854
2855 ac_ext=c
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860
2861
2862
2863 # LT Version numbers, remember to change them just *before* a release.
2864 #   (Code changed:                      REVISION++)
2865 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
2866 #   (Interfaces added:                  AGE++)
2867 #   (Interfaces removed/changed:        AGE=0)
2868 #
2869 LIBGPGME_LT_CURRENT=28
2870 LIBGPGME_LT_AGE=17
2871 LIBGPGME_LT_REVISION=0
2872
2873 # If there is an ABI break in gpgmepp or qgpgme also bump the
2874 # version in IMPORTED_LOCATION in the GpgmeppConfig-w32.cmake.in.in
2875
2876 LIBGPGMEPP_LT_CURRENT=9
2877 LIBGPGMEPP_LT_AGE=3
2878 LIBGPGMEPP_LT_REVISION=0
2879
2880 LIBQGPGME_LT_CURRENT=8
2881 LIBQGPGME_LT_AGE=1
2882 LIBQGPGME_LT_REVISION=0
2883
2884 # If the API is changed in an incompatible way: increment the next counter.
2885 GPGME_CONFIG_API_VERSION=1
2886 ##############################################
2887
2888 NEED_GPG_ERROR_VERSION=1.17
2889 NEED_LIBASSUAN_API=2
2890 NEED_LIBASSUAN_VERSION=2.0.2
2891
2892
2893 PACKAGE=$PACKAGE_NAME
2894 VERSION=$PACKAGE_VERSION
2895
2896 VERSION_MAJOR=1
2897 VERSION_MINOR=8
2898 VERSION_MICRO=0
2899
2900 ac_aux_dir=
2901 for ac_dir in build-aux "$srcdir"/build-aux; do
2902   if test -f "$ac_dir/install-sh"; then
2903     ac_aux_dir=$ac_dir
2904     ac_install_sh="$ac_aux_dir/install-sh -c"
2905     break
2906   elif test -f "$ac_dir/install.sh"; then
2907     ac_aux_dir=$ac_dir
2908     ac_install_sh="$ac_aux_dir/install.sh -c"
2909     break
2910   elif test -f "$ac_dir/shtool"; then
2911     ac_aux_dir=$ac_dir
2912     ac_install_sh="$ac_aux_dir/shtool install -c"
2913     break
2914   fi
2915 done
2916 if test -z "$ac_aux_dir"; then
2917   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2918 fi
2919
2920 # These three variables are undocumented and unsupported,
2921 # and are intended to be withdrawn in a future Autoconf release.
2922 # They can cause serious problems if a builder's source tree is in a directory
2923 # whose full name contains unusual characters.
2924 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2925 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2926 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2927
2928
2929
2930
2931 ac_config_headers="$ac_config_headers config.h"
2932
2933 am__api_version='1.14'
2934
2935 # Find a good install program.  We prefer a C program (faster),
2936 # so one script is as good as another.  But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2941 # AIX /bin/install
2942 # AmigaOS /C/install, which installs bootblocks on floppy discs
2943 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2944 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2945 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2946 # OS/2's system install, which has a completely different semantic
2947 # ./install, which can be erroneously created by make from ./install.sh.
2948 # Reject install programs that cannot install multiple files.
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2950 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2951 if test -z "$INSTALL"; then
2952 if ${ac_cv_path_install+:} false; then :
2953   $as_echo_n "(cached) " >&6
2954 else
2955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958   IFS=$as_save_IFS
2959   test -z "$as_dir" && as_dir=.
2960     # Account for people who put trailing slashes in PATH elements.
2961 case $as_dir/ in #((
2962   ./ | .// | /[cC]/* | \
2963   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2964   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2965   /usr/ucb/* ) ;;
2966   *)
2967     # OSF1 and SCO ODT 3.0 have their own names for install.
2968     # Don't use installbsd from OSF since it installs stuff as root
2969     # by default.
2970     for ac_prog in ginstall scoinst install; do
2971       for ac_exec_ext in '' $ac_executable_extensions; do
2972         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2973           if test $ac_prog = install &&
2974             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975             # AIX install.  It has an incompatible calling convention.
2976             :
2977           elif test $ac_prog = install &&
2978             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2979             # program-specific install script used by HP pwplus--don't use.
2980             :
2981           else
2982             rm -rf conftest.one conftest.two conftest.dir
2983             echo one > conftest.one
2984             echo two > conftest.two
2985             mkdir conftest.dir
2986             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2987               test -s conftest.one && test -s conftest.two &&
2988               test -s conftest.dir/conftest.one &&
2989               test -s conftest.dir/conftest.two
2990             then
2991               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2992               break 3
2993             fi
2994           fi
2995         fi
2996       done
2997     done
2998     ;;
2999 esac
3000
3001   done
3002 IFS=$as_save_IFS
3003
3004 rm -rf conftest.one conftest.two conftest.dir
3005
3006 fi
3007   if test "${ac_cv_path_install+set}" = set; then
3008     INSTALL=$ac_cv_path_install
3009   else
3010     # As a last resort, use the slow shell script.  Don't cache a
3011     # value for INSTALL within a source directory, because that will
3012     # break other packages using the cache if that directory is
3013     # removed, or if the value is a relative name.
3014     INSTALL=$ac_install_sh
3015   fi
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3018 $as_echo "$INSTALL" >&6; }
3019
3020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3021 # It thinks the first close brace ends the variable substitution.
3022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3023
3024 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3025
3026 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3027
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3029 $as_echo_n "checking whether build environment is sane... " >&6; }
3030 # Reject unsafe characters in $srcdir or the absolute working directory
3031 # name.  Accept space and tab only in the latter.
3032 am_lf='
3033 '
3034 case `pwd` in
3035   *[\\\"\#\$\&\'\`$am_lf]*)
3036     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3037 esac
3038 case $srcdir in
3039   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3040     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3041 esac
3042
3043 # Do 'set' in a subshell so we don't clobber the current shell's
3044 # arguments.  Must try -L first in case configure is actually a
3045 # symlink; some systems play weird games with the mod time of symlinks
3046 # (eg FreeBSD returns the mod time of the symlink's containing
3047 # directory).
3048 if (
3049    am_has_slept=no
3050    for am_try in 1 2; do
3051      echo "timestamp, slept: $am_has_slept" > conftest.file
3052      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3053      if test "$*" = "X"; then
3054         # -L didn't work.
3055         set X `ls -t "$srcdir/configure" conftest.file`
3056      fi
3057      if test "$*" != "X $srcdir/configure conftest.file" \
3058         && test "$*" != "X conftest.file $srcdir/configure"; then
3059
3060         # If neither matched, then we have a broken ls.  This can happen
3061         # if, for instance, CONFIG_SHELL is bash and it inherits a
3062         # broken ls alias from the environment.  This has actually
3063         # happened.  Such a system could not be considered "sane".
3064         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3065   alias in your environment" "$LINENO" 5
3066      fi
3067      if test "$2" = conftest.file || test $am_try -eq 2; then
3068        break
3069      fi
3070      # Just in case.
3071      sleep 1
3072      am_has_slept=yes
3073    done
3074    test "$2" = conftest.file
3075    )
3076 then
3077    # Ok.
3078    :
3079 else
3080    as_fn_error $? "newly created file is older than distributed files!
3081 Check your system clock" "$LINENO" 5
3082 fi
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3085 # If we didn't sleep, we still need to ensure time stamps of config.status and
3086 # generated files are strictly newer.
3087 am_sleep_pid=
3088 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3089   ( sleep 1 ) &
3090   am_sleep_pid=$!
3091 fi
3092
3093 rm -f conftest.file
3094
3095 test "$program_prefix" != NONE &&
3096   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3097 # Use a double $ so make ignores it.
3098 test "$program_suffix" != NONE &&
3099   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3100 # Double any \ or $.
3101 # By default was `s,x,x', remove it if useless.
3102 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3103 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3104
3105 # Expand $ac_aux_dir to an absolute path.
3106 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3107
3108 if test x"${MISSING+set}" != xset; then
3109   case $am_aux_dir in
3110   *\ * | *\     *)
3111     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3112   *)
3113     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3114   esac
3115 fi
3116 # Use eval to expand $SHELL
3117 if eval "$MISSING --is-lightweight"; then
3118   am_missing_run="$MISSING "
3119 else
3120   am_missing_run=
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3122 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3123 fi
3124
3125 if test x"${install_sh}" != xset; then
3126   case $am_aux_dir in
3127   *\ * | *\     *)
3128     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3129   *)
3130     install_sh="\${SHELL} $am_aux_dir/install-sh"
3131   esac
3132 fi
3133
3134 # Installed binaries are usually stripped using 'strip' when the user
3135 # run "make install-strip".  However 'strip' might not be the right
3136 # tool to use in cross-compilation environments, therefore Automake
3137 # will honor the 'STRIP' environment variable to overrule this program.
3138 if test "$cross_compiling" != no; then
3139   if test -n "$ac_tool_prefix"; then
3140   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}strip; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_STRIP+:} false; then :
3145   $as_echo_n "(cached) " >&6
3146 else
3147   if test -n "$STRIP"; then
3148   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   test -z "$as_dir" && as_dir=.
3155     for ac_exec_ext in '' $ac_executable_extensions; do
3156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162   done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 STRIP=$ac_cv_prog_STRIP
3168 if test -n "$STRIP"; then
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3170 $as_echo "$STRIP" >&6; }
3171 else
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177 fi
3178 if test -z "$ac_cv_prog_STRIP"; then
3179   ac_ct_STRIP=$STRIP
3180   # Extract the first word of "strip", so it can be a program name with args.
3181 set dummy strip; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3185   $as_echo_n "(cached) " >&6
3186 else
3187   if test -n "$ac_ct_STRIP"; then
3188   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195     for ac_exec_ext in '' $ac_executable_extensions; do
3196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197     ac_cv_prog_ac_ct_STRIP="strip"
3198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202   done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3208 if test -n "$ac_ct_STRIP"; then
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3210 $as_echo "$ac_ct_STRIP" >&6; }
3211 else
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216   if test "x$ac_ct_STRIP" = x; then
3217     STRIP=":"
3218   else
3219     case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225     STRIP=$ac_ct_STRIP
3226   fi
3227 else
3228   STRIP="$ac_cv_prog_STRIP"
3229 fi
3230
3231 fi
3232 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3233
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3235 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3236 if test -z "$MKDIR_P"; then
3237   if ${ac_cv_path_mkdir+:} false; then :
3238   $as_echo_n "(cached) " >&6
3239 else
3240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3242 do
3243   IFS=$as_save_IFS
3244   test -z "$as_dir" && as_dir=.
3245     for ac_prog in mkdir gmkdir; do
3246          for ac_exec_ext in '' $ac_executable_extensions; do
3247            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3248            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3249              'mkdir (GNU coreutils) '* | \
3250              'mkdir (coreutils) '* | \
3251              'mkdir (fileutils) '4.1*)
3252                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3253                break 3;;
3254            esac
3255          done
3256        done
3257   done
3258 IFS=$as_save_IFS
3259
3260 fi
3261
3262   test -d ./--version && rmdir ./--version
3263   if test "${ac_cv_path_mkdir+set}" = set; then
3264     MKDIR_P="$ac_cv_path_mkdir -p"
3265   else
3266     # As a last resort, use the slow shell script.  Don't cache a
3267     # value for MKDIR_P within a source directory, because that will
3268     # break other packages using the cache if that directory is
3269     # removed, or if the value is a relative name.
3270     MKDIR_P="$ac_install_sh -d"
3271   fi
3272 fi
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3274 $as_echo "$MKDIR_P" >&6; }
3275
3276 for ac_prog in gawk mawk nawk awk
3277 do
3278   # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_AWK+:} false; then :
3283   $as_echo_n "(cached) " >&6
3284 else
3285   if test -n "$AWK"; then
3286   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293     for ac_exec_ext in '' $ac_executable_extensions; do
3294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295     ac_cv_prog_AWK="$ac_prog"
3296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300   done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 AWK=$ac_cv_prog_AWK
3306 if test -n "$AWK"; then
3307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3308 $as_echo "$AWK" >&6; }
3309 else
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315   test -n "$AWK" && break
3316 done
3317
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3320 set x ${MAKE-make}
3321 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3322 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   cat >conftest.make <<\_ACEOF
3326 SHELL = /bin/sh
3327 all:
3328         @echo '@@@%%%=$(MAKE)=@@@%%%'
3329 _ACEOF
3330 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3331 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3332   *@@@%%%=?*=@@@%%%*)
3333     eval ac_cv_prog_make_${ac_make}_set=yes;;
3334   *)
3335     eval ac_cv_prog_make_${ac_make}_set=no;;
3336 esac
3337 rm -f conftest.make
3338 fi
3339 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3342   SET_MAKE=
3343 else
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346   SET_MAKE="MAKE=${MAKE-make}"
3347 fi
3348
3349 rm -rf .tst 2>/dev/null
3350 mkdir .tst 2>/dev/null
3351 if test -d .tst; then
3352   am__leading_dot=.
3353 else
3354   am__leading_dot=_
3355 fi
3356 rmdir .tst 2>/dev/null
3357
3358 # Check whether --enable-silent-rules was given.
3359 if test "${enable_silent_rules+set}" = set; then :
3360   enableval=$enable_silent_rules;
3361 fi
3362
3363 case $enable_silent_rules in # (((
3364   yes) AM_DEFAULT_VERBOSITY=0;;
3365    no) AM_DEFAULT_VERBOSITY=1;;
3366     *) AM_DEFAULT_VERBOSITY=1;;
3367 esac
3368 am_make=${MAKE-make}
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3370 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3371 if ${am_cv_make_support_nested_variables+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if $as_echo 'TRUE=$(BAR$(V))
3375 BAR0=false
3376 BAR1=true
3377 V=1
3378 am__doit:
3379         @$(TRUE)
3380 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3381   am_cv_make_support_nested_variables=yes
3382 else
3383   am_cv_make_support_nested_variables=no
3384 fi
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3387 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3388 if test $am_cv_make_support_nested_variables = yes; then
3389     AM_V='$(V)'
3390   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3391 else
3392   AM_V=$AM_DEFAULT_VERBOSITY
3393   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3394 fi
3395 AM_BACKSLASH='\'
3396
3397 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3398   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3399   # is not polluted with repeated "-I."
3400   am__isrc=' -I$(srcdir)'
3401   # test to see if srcdir already configured
3402   if test -f $srcdir/config.status; then
3403     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3404   fi
3405 fi
3406
3407 # test whether we have cygpath
3408 if test -z "$CYGPATH_W"; then
3409   if (cygpath --version) >/dev/null 2>/dev/null; then
3410     CYGPATH_W='cygpath -w'
3411   else
3412     CYGPATH_W=echo
3413   fi
3414 fi
3415
3416
3417 # Define the identity of the package.
3418  PACKAGE='gpgme'
3419  VERSION='1.8.0'
3420
3421
3422 cat >>confdefs.h <<_ACEOF
3423 #define PACKAGE "$PACKAGE"
3424 _ACEOF
3425
3426
3427 cat >>confdefs.h <<_ACEOF
3428 #define VERSION "$VERSION"
3429 _ACEOF
3430
3431 # Some tools Automake needs.
3432
3433 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3434
3435
3436 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3437
3438
3439 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3440
3441
3442 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3443
3444
3445 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3446
3447 # For better backward compatibility.  To be removed once Automake 1.9.x
3448 # dies out for good.  For more background, see:
3449 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3450 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3451 mkdir_p='$(MKDIR_P)'
3452
3453 # We need awk for the "check" target.  The system "awk" is bad on
3454 # some platforms.
3455 # Always define AMTAR for backward compatibility.  Yes, it's still used
3456 # in the wild :-(  We should find a proper way to deprecate it ...
3457 AMTAR='$${TAR-tar}'
3458
3459
3460 # We'll loop over all known methods to create a tar archive until one works.
3461 _am_tools='gnutar  pax cpio none'
3462
3463 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3464
3465
3466
3467
3468
3469
3470 # POSIX will say in a future version that running "rm -f" with no argument
3471 # is OK; and we want to be able to make that assumption in our Makefile
3472 # recipes.  So use an aggressive probe to check that the usage we want is
3473 # actually supported "in the wild" to an acceptable degree.
3474 # See automake bug#10828.
3475 # To make any issue more visible, cause the running configure to be aborted
3476 # by default if the 'rm' program in use doesn't match our expectations; the
3477 # user can still override this though.
3478 if rm -f && rm -fr && rm -rf; then : OK; else
3479   cat >&2 <<'END'
3480 Oops!
3481
3482 Your 'rm' program seems unable to run without file operands specified
3483 on the command line, even when the '-f' option is present.  This is contrary
3484 to the behaviour of most rm programs out there, and not conforming with
3485 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3486
3487 Please tell bug-automake@gnu.org about your system, including the value
3488 of your $PATH and any error possibly output before this message.  This
3489 can help us improve future automake versions.
3490
3491 END
3492   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3493     echo 'Configuration will proceed anyway, since you have set the' >&2
3494     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3495     echo >&2
3496   else
3497     cat >&2 <<'END'
3498 Aborting the configuration process, to ensure you take notice of the issue.
3499
3500 You can download and install GNU coreutils to get an 'rm' implementation
3501 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3502
3503 If you want to complete the configuration process using your problematic
3504 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3505 to "yes", and re-run configure.
3506
3507 END
3508     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3509   fi
3510 fi
3511
3512
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3514 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3515     # Check whether --enable-maintainer-mode was given.
3516 if test "${enable_maintainer_mode+set}" = set; then :
3517   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3518 else
3519   USE_MAINTAINER_MODE=no
3520 fi
3521
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3523 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3524    if test $USE_MAINTAINER_MODE = yes; then
3525   MAINTAINER_MODE_TRUE=
3526   MAINTAINER_MODE_FALSE='#'
3527 else
3528   MAINTAINER_MODE_TRUE='#'
3529   MAINTAINER_MODE_FALSE=
3530 fi
3531
3532   MAINT=$MAINTAINER_MODE_TRUE
3533
3534
3535 # Make sure we can run config.sub.
3536 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3537   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3538
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3540 $as_echo_n "checking build system type... " >&6; }
3541 if ${ac_cv_build+:} false; then :
3542   $as_echo_n "(cached) " >&6
3543 else
3544   ac_build_alias=$build_alias
3545 test "x$ac_build_alias" = x &&
3546   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3547 test "x$ac_build_alias" = x &&
3548   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3549 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3550   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3551
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3554 $as_echo "$ac_cv_build" >&6; }
3555 case $ac_cv_build in
3556 *-*-*) ;;
3557 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3558 esac
3559 build=$ac_cv_build
3560 ac_save_IFS=$IFS; IFS='-'
3561 set x $ac_cv_build
3562 shift
3563 build_cpu=$1
3564 build_vendor=$2
3565 shift; shift
3566 # Remember, the first character of IFS is used to create $*,
3567 # except with old shells:
3568 build_os=$*
3569 IFS=$ac_save_IFS
3570 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3571
3572
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3574 $as_echo_n "checking host system type... " >&6; }
3575 if ${ac_cv_host+:} false; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   if test "x$host_alias" = x; then
3579   ac_cv_host=$ac_cv_build
3580 else
3581   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3582     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3583 fi
3584
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3587 $as_echo "$ac_cv_host" >&6; }
3588 case $ac_cv_host in
3589 *-*-*) ;;
3590 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3591 esac
3592 host=$ac_cv_host
3593 ac_save_IFS=$IFS; IFS='-'
3594 set x $ac_cv_host
3595 shift
3596 host_cpu=$1
3597 host_vendor=$2
3598 shift; shift
3599 # Remember, the first character of IFS is used to create $*,
3600 # except with old shells:
3601 host_os=$*
3602 IFS=$ac_save_IFS
3603 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3604
3605
3606 # Check whether --enable-silent-rules was given.
3607 if test "${enable_silent_rules+set}" = set; then :
3608   enableval=$enable_silent_rules;
3609 fi
3610
3611 case $enable_silent_rules in # (((
3612   yes) AM_DEFAULT_VERBOSITY=0;;
3613    no) AM_DEFAULT_VERBOSITY=1;;
3614     *) AM_DEFAULT_VERBOSITY=1;;
3615 esac
3616 am_make=${MAKE-make}
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3618 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3619 if ${am_cv_make_support_nested_variables+:} false; then :
3620   $as_echo_n "(cached) " >&6
3621 else
3622   if $as_echo 'TRUE=$(BAR$(V))
3623 BAR0=false
3624 BAR1=true
3625 V=1
3626 am__doit:
3627         @$(TRUE)
3628 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3629   am_cv_make_support_nested_variables=yes
3630 else
3631   am_cv_make_support_nested_variables=no
3632 fi
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3635 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3636 if test $am_cv_make_support_nested_variables = yes; then
3637     AM_V='$(V)'
3638   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3639 else
3640   AM_V=$AM_DEFAULT_VERBOSITY
3641   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3642 fi
3643 AM_BACKSLASH='\'
3644
3645
3646
3647 # Enable GNU extensions on systems that have them.
3648 DEPDIR="${am__leading_dot}deps"
3649
3650 ac_config_commands="$ac_config_commands depfiles"
3651
3652
3653 am_make=${MAKE-make}
3654 cat > confinc << 'END'
3655 am__doit:
3656         @echo this is the am__doit target
3657 .PHONY: am__doit
3658 END
3659 # If we don't find an include directive, just comment out the code.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3661 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3662 am__include="#"
3663 am__quote=
3664 _am_result=none
3665 # First try GNU make style include.
3666 echo "include confinc" > confmf
3667 # Ignore all kinds of additional output from 'make'.
3668 case `$am_make -s -f confmf 2> /dev/null` in #(
3669 *the\ am__doit\ target*)
3670   am__include=include
3671   am__quote=
3672   _am_result=GNU
3673   ;;
3674 esac
3675 # Now try BSD make style include.
3676 if test "$am__include" = "#"; then
3677    echo '.include "confinc"' > confmf
3678    case `$am_make -s -f confmf 2> /dev/null` in #(
3679    *the\ am__doit\ target*)
3680      am__include=.include
3681      am__quote="\""
3682      _am_result=BSD
3683      ;;
3684    esac
3685 fi
3686
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3689 $as_echo "$_am_result" >&6; }
3690 rm -f confinc confmf
3691
3692 # Check whether --enable-dependency-tracking was given.
3693 if test "${enable_dependency_tracking+set}" = set; then :
3694   enableval=$enable_dependency_tracking;
3695 fi
3696
3697 if test "x$enable_dependency_tracking" != xno; then
3698   am_depcomp="$ac_aux_dir/depcomp"
3699   AMDEPBACKSLASH='\'
3700   am__nodep='_no'
3701 fi
3702  if test "x$enable_dependency_tracking" != xno; then
3703   AMDEP_TRUE=
3704   AMDEP_FALSE='#'
3705 else
3706   AMDEP_TRUE='#'
3707   AMDEP_FALSE=
3708 fi
3709
3710
3711 ac_ext=c
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 if test -n "$ac_tool_prefix"; then
3717   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CC+:} false; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   if test -n "$CC"; then
3725   ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730   IFS=$as_save_IFS
3731   test -z "$as_dir" && as_dir=.
3732     for ac_exec_ext in '' $ac_executable_extensions; do
3733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736     break 2
3737   fi
3738 done
3739   done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 CC=$ac_cv_prog_CC
3745 if test -n "$CC"; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 $as_echo "$CC" >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754 fi
3755 if test -z "$ac_cv_prog_CC"; then
3756   ac_ct_CC=$CC
3757   # Extract the first word of "gcc", so it can be a program name with args.
3758 set dummy gcc; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3762   $as_echo_n "(cached) " >&6
3763 else
3764   if test -n "$ac_ct_CC"; then
3765   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772     for ac_exec_ext in '' $ac_executable_extensions; do
3773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774     ac_cv_prog_ac_ct_CC="gcc"
3775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776     break 2
3777   fi
3778 done
3779   done
3780 IFS=$as_save_IFS
3781
3782 fi
3783 fi
3784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785 if test -n "$ac_ct_CC"; then
3786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787 $as_echo "$ac_ct_CC" >&6; }
3788 else
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3791 fi
3792
3793   if test "x$ac_ct_CC" = x; then
3794     CC=""
3795   else
3796     case $cross_compiling:$ac_tool_warned in
3797 yes:)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800 ac_tool_warned=yes ;;
3801 esac
3802     CC=$ac_ct_CC
3803   fi
3804 else
3805   CC="$ac_cv_prog_CC"
3806 fi
3807
3808 if test -z "$CC"; then
3809           if test -n "$ac_tool_prefix"; then
3810     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}cc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   if test -n "$CC"; then
3818   ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825     for ac_exec_ext in '' $ac_executable_extensions; do
3826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827     ac_cv_prog_CC="${ac_tool_prefix}cc"
3828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832   done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3841 else
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847   fi
3848 fi
3849 if test -z "$CC"; then
3850   # Extract the first word of "cc", so it can be a program name with args.
3851 set dummy cc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_CC+:} false; then :
3855   $as_echo_n "(cached) " >&6
3856 else
3857   if test -n "$CC"; then
3858   ac_cv_prog_CC="$CC" # Let the user override the test.
3859 else
3860   ac_prog_rejected=no
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866     for ac_exec_ext in '' $ac_executable_extensions; do
3867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869        ac_prog_rejected=yes
3870        continue
3871      fi
3872     ac_cv_prog_CC="cc"
3873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874     break 2
3875   fi
3876 done
3877   done
3878 IFS=$as_save_IFS
3879
3880 if test $ac_prog_rejected = yes; then
3881   # We found a bogon in the path, so make sure we never use it.
3882   set dummy $ac_cv_prog_CC
3883   shift
3884   if test $# != 0; then
3885     # We chose a different compiler from the bogus one.
3886     # However, it has the same basename, so the bogon will be chosen
3887     # first if we set CC to just the basename; use the full file name.
3888     shift
3889     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3890   fi
3891 fi
3892 fi
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 $as_echo "$CC" >&6; }
3898 else
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903
3904 fi
3905 if test -z "$CC"; then
3906   if test -n "$ac_tool_prefix"; then
3907   for ac_prog in cl.exe
3908   do
3909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_CC+:} false; then :
3914   $as_echo_n "(cached) " >&6
3915 else
3916   if test -n "$CC"; then
3917   ac_cv_prog_CC="$CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924     for ac_exec_ext in '' $ac_executable_extensions; do
3925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928     break 2
3929   fi
3930 done
3931   done
3932 IFS=$as_save_IFS
3933
3934 fi
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3940 else
3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 fi
3944
3945
3946     test -n "$CC" && break
3947   done
3948 fi
3949 if test -z "$CC"; then
3950   ac_ct_CC=$CC
3951   for ac_prog in cl.exe
3952 do
3953   # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   if test -n "$ac_ct_CC"; then
3961   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968     for ac_exec_ext in '' $ac_executable_extensions; do
3969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970     ac_cv_prog_ac_ct_CC="$ac_prog"
3971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975   done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983 $as_echo "$ac_ct_CC" >&6; }
3984 else
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 fi
3988
3989
3990   test -n "$ac_ct_CC" && break
3991 done
3992
3993   if test "x$ac_ct_CC" = x; then
3994     CC=""
3995   else
3996     case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4001 esac
4002     CC=$ac_ct_CC
4003   fi
4004 fi
4005
4006 fi
4007
4008
4009 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "no acceptable C compiler found in \$PATH
4012 See \`config.log' for more details" "$LINENO" 5; }
4013
4014 # Provide some information about the compiler.
4015 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4016 set X $ac_compile
4017 ac_compiler=$2
4018 for ac_option in --version -v -V -qversion; do
4019   { { ac_try="$ac_compiler $ac_option >&5"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4027   ac_status=$?
4028   if test -s conftest.err; then
4029     sed '10a\
4030 ... rest of stderr output deleted ...
4031          10q' conftest.err >conftest.er1
4032     cat conftest.er1 >&5
4033   fi
4034   rm -f conftest.er1 conftest.err
4035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036   test $ac_status = 0; }
4037 done
4038
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h.  */
4041
4042 int
4043 main ()
4044 {
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 ac_clean_files_save=$ac_clean_files
4051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4052 # Try to create an executable without -o first, disregard a.out.
4053 # It will help us diagnose broken compilers, and finding out an intuition
4054 # of exeext.
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4056 $as_echo_n "checking whether the C compiler works... " >&6; }
4057 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4058
4059 # The possible output files:
4060 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4061
4062 ac_rmfiles=
4063 for ac_file in $ac_files
4064 do
4065   case $ac_file in
4066     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4067     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4068   esac
4069 done
4070 rm -f $ac_rmfiles
4071
4072 if { { ac_try="$ac_link_default"
4073 case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079   (eval "$ac_link_default") 2>&5
4080   ac_status=$?
4081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082   test $ac_status = 0; }; then :
4083   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4085 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4086 # so that the user can short-circuit this test for compilers unknown to
4087 # Autoconf.
4088 for ac_file in $ac_files ''
4089 do
4090   test -f "$ac_file" || continue
4091   case $ac_file in
4092     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4093         ;;
4094     [ab].out )
4095         # We found the default executable, but exeext='' is most
4096         # certainly right.
4097         break;;
4098     *.* )
4099         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4100         then :; else
4101            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4102         fi
4103         # We set ac_cv_exeext here because the later test for it is not
4104         # safe: cross compilers may not add the suffix if given an `-o'
4105         # argument, so we may need to know it at that point already.
4106         # Even if this section looks crufty: it has the advantage of
4107         # actually working.
4108         break;;
4109     * )
4110         break;;
4111   esac
4112 done
4113 test "$ac_cv_exeext" = no && ac_cv_exeext=
4114
4115 else
4116   ac_file=''
4117 fi
4118 if test -z "$ac_file"; then :
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126 as_fn_error 77 "C compiler cannot create executables
4127 See \`config.log' for more details" "$LINENO" 5; }
4128 else
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4130 $as_echo "yes" >&6; }
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4133 $as_echo_n "checking for C compiler default output file name... " >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4135 $as_echo "$ac_file" >&6; }
4136 ac_exeext=$ac_cv_exeext
4137
4138 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4139 ac_clean_files=$ac_clean_files_save
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4141 $as_echo_n "checking for suffix of executables... " >&6; }
4142 if { { ac_try="$ac_link"
4143 case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149   (eval "$ac_link") 2>&5
4150   ac_status=$?
4151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152   test $ac_status = 0; }; then :
4153   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4154 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4155 # work properly (i.e., refer to `conftest.exe'), while it won't with
4156 # `rm'.
4157 for ac_file in conftest.exe conftest conftest.*; do
4158   test -f "$ac_file" || continue
4159   case $ac_file in
4160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4161     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4162           break;;
4163     * ) break;;
4164   esac
4165 done
4166 else
4167   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4169 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4170 See \`config.log' for more details" "$LINENO" 5; }
4171 fi
4172 rm -f conftest conftest$ac_cv_exeext
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4174 $as_echo "$ac_cv_exeext" >&6; }
4175
4176 rm -f conftest.$ac_ext
4177 EXEEXT=$ac_cv_exeext
4178 ac_exeext=$EXEEXT
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h.  */
4181 #include <stdio.h>
4182 int
4183 main ()
4184 {
4185 FILE *f = fopen ("conftest.out", "w");
4186  return ferror (f) || fclose (f) != 0;
4187
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 ac_clean_files="$ac_clean_files conftest.out"
4193 # Check that the compiler produces executables we can run.  If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196 $as_echo_n "checking whether we are cross compiling... " >&6; }
4197 if test "$cross_compiling" != yes; then
4198   { { ac_try="$ac_link"
4199 case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205   (eval "$ac_link") 2>&5
4206   ac_status=$?
4207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208   test $ac_status = 0; }
4209   if { ac_try='./conftest$ac_cv_exeext'
4210   { { case "(($ac_try" in
4211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212   *) ac_try_echo=$ac_try;;
4213 esac
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 $as_echo "$ac_try_echo"; } >&5
4216   (eval "$ac_try") 2>&5
4217   ac_status=$?
4218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219   test $ac_status = 0; }; }; then
4220     cross_compiling=no
4221   else
4222     if test "$cross_compiling" = maybe; then
4223         cross_compiling=yes
4224     else
4225         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error $? "cannot run C compiled programs.
4228 If you meant to cross compile, use \`--host'.
4229 See \`config.log' for more details" "$LINENO" 5; }
4230     fi
4231   fi
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4234 $as_echo "$cross_compiling" >&6; }
4235
4236 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4237 ac_clean_files=$ac_clean_files_save
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4239 $as_echo_n "checking for suffix of object files... " >&6; }
4240 if ${ac_cv_objext+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h.  */
4245
4246 int
4247 main ()
4248 {
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.o conftest.obj
4255 if { { ac_try="$ac_compile"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262   (eval "$ac_compile") 2>&5
4263   ac_status=$?
4264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265   test $ac_status = 0; }; then :
4266   for ac_file in conftest.o conftest.obj conftest.*; do
4267   test -f "$ac_file" || continue;
4268   case $ac_file in
4269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4270     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4271        break;;
4272   esac
4273 done
4274 else
4275   $as_echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $? "cannot compute suffix of object files: cannot compile
4281 See \`config.log' for more details" "$LINENO" 5; }
4282 fi
4283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4286 $as_echo "$ac_cv_objext" >&6; }
4287 OBJEXT=$ac_cv_objext
4288 ac_objext=$OBJEXT
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4290 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4291 if ${ac_cv_c_compiler_gnu+:} false; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300 #ifndef __GNUC__
4301        choke me
4302 #endif
4303
4304   ;
4305   return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309   ac_compiler_gnu=yes
4310 else
4311   ac_compiler_gnu=no
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4318 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4319 if test $ac_compiler_gnu = yes; then
4320   GCC=yes
4321 else
4322   GCC=
4323 fi
4324 ac_test_CFLAGS=${CFLAGS+set}
4325 ac_save_CFLAGS=$CFLAGS
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4327 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4328 if ${ac_cv_prog_cc_g+:} false; then :
4329   $as_echo_n "(cached) " >&6
4330 else
4331   ac_save_c_werror_flag=$ac_c_werror_flag
4332    ac_c_werror_flag=yes
4333    ac_cv_prog_cc_g=no
4334    CFLAGS="-g"
4335    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h.  */
4337
4338 int
4339 main ()
4340 {
4341
4342   ;
4343   return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347   ac_cv_prog_cc_g=yes
4348 else
4349   CFLAGS=""
4350       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352
4353 int
4354 main ()
4355 {
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362
4363 else
4364   ac_c_werror_flag=$ac_save_c_werror_flag
4365          CFLAGS="-g"
4366          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"; then :
4378   ac_cv_prog_cc_g=yes
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385    ac_c_werror_flag=$ac_save_c_werror_flag
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4388 $as_echo "$ac_cv_prog_cc_g" >&6; }
4389 if test "$ac_test_CFLAGS" = set; then
4390   CFLAGS=$ac_save_CFLAGS
4391 elif test $ac_cv_prog_cc_g = yes; then
4392   if test "$GCC" = yes; then
4393     CFLAGS="-g -O2"
4394   else
4395     CFLAGS="-g"
4396   fi
4397 else
4398   if test "$GCC" = yes; then
4399     CFLAGS="-O2"
4400   else
4401     CFLAGS=
4402   fi
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4405 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4406 if ${ac_cv_prog_cc_c89+:} false; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   ac_cv_prog_cc_c89=no
4410 ac_save_CC=$CC
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h.  */
4413 #include <stdarg.h>
4414 #include <stdio.h>
4415 struct stat;
4416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4417 struct buf { int x; };
4418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4419 static char *e (p, i)
4420      char **p;
4421      int i;
4422 {
4423   return p[i];
4424 }
4425 static char *f (char * (*g) (char **, int), char **p, ...)
4426 {
4427   char *s;
4428   va_list v;
4429   va_start (v,p);
4430   s = g (p, va_arg (v,int));
4431   va_end (v);
4432   return s;
4433 }
4434
4435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4436    function prototypes and stuff, but not '\xHH' hex character constants.
4437    These don't provoke an error unfortunately, instead are silently treated
4438    as 'x'.  The following induces an error, until -std is added to get
4439    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4440    array size at least.  It's necessary to write '\x00'==0 to get something
4441    that's true only with -std.  */
4442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4443
4444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4445    inside strings and character constants.  */
4446 #define FOO(x) 'x'
4447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4448
4449 int test (int i, double x);
4450 struct s1 {int (*f) (int a);};
4451 struct s2 {int (*f) (double a);};
4452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4453 int argc;
4454 char **argv;
4455 int
4456 main ()
4457 {
4458 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4464         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4465 do
4466   CC="$ac_save_CC $ac_arg"
4467   if ac_fn_c_try_compile "$LINENO"; then :
4468   ac_cv_prog_cc_c89=$ac_arg
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext
4471   test "x$ac_cv_prog_cc_c89" != "xno" && break
4472 done
4473 rm -f conftest.$ac_ext
4474 CC=$ac_save_CC
4475
4476 fi
4477 # AC_CACHE_VAL
4478 case "x$ac_cv_prog_cc_c89" in
4479   x)
4480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4481 $as_echo "none needed" >&6; } ;;
4482   xno)
4483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4484 $as_echo "unsupported" >&6; } ;;
4485   *)
4486     CC="$CC $ac_cv_prog_cc_c89"
4487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4488 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4489 esac
4490 if test "x$ac_cv_prog_cc_c89" != xno; then :
4491
4492 fi
4493
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4506 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4507 if ${am_cv_prog_cc_c_o+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512
4513 int
4514 main ()
4515 {
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521   # Make sure it works both with $CC and with simple cc.
4522   # Following AC_PROG_CC_C_O, we do the test twice because some
4523   # compilers refuse to overwrite an existing .o file with -o,
4524   # though they will create one.
4525   am_cv_prog_cc_c_o=yes
4526   for am_i in 1 2; do
4527     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4528    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4529    ac_status=$?
4530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531    (exit $ac_status); } \
4532          && test -f conftest2.$ac_objext; then
4533       : OK
4534     else
4535       am_cv_prog_cc_c_o=no
4536       break
4537     fi
4538   done
4539   rm -f core conftest*
4540   unset am_i
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4543 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4544 if test "$am_cv_prog_cc_c_o" != yes; then
4545    # Losing compiler, so override with the script.
4546    # FIXME: It is wrong to rewrite CC.
4547    # But if we don't then we get into trouble of one sort or another.
4548    # A longer-term fix would be to have automake use am__CC in this case,
4549    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4550    CC="$am_aux_dir/compile $CC"
4551 fi
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558
4559 depcc="$CC"   am_compiler_list=
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4562 $as_echo_n "checking dependency style of $depcc... " >&6; }
4563 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4567   # We make a subdir and do the tests there.  Otherwise we can end up
4568   # making bogus files that we don't know about and never remove.  For
4569   # instance it was reported that on HP-UX the gcc test will end up
4570   # making a dummy file named 'D' -- because '-MD' means "put the output
4571   # in D".
4572   rm -rf conftest.dir
4573   mkdir conftest.dir
4574   # Copy depcomp to subdir because otherwise we won't find it if we're
4575   # using a relative directory.
4576   cp "$am_depcomp" conftest.dir
4577   cd conftest.dir
4578   # We will build objects and dependencies in a subdirectory because
4579   # it helps to detect inapplicable dependency modes.  For instance
4580   # both Tru64's cc and ICC support -MD to output dependencies as a
4581   # side effect of compilation, but ICC will put the dependencies in
4582   # the current directory while Tru64 will put them in the object
4583   # directory.
4584   mkdir sub
4585
4586   am_cv_CC_dependencies_compiler_type=none
4587   if test "$am_compiler_list" = ""; then
4588      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4589   fi
4590   am__universal=false
4591   case " $depcc " in #(
4592      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4593      esac
4594
4595   for depmode in $am_compiler_list; do
4596     # Setup a source with many dependencies, because some compilers
4597     # like to wrap large dependency lists on column 80 (with \), and
4598     # we should not choose a depcomp mode which is confused by this.
4599     #
4600     # We need to recreate these files for each test, as the compiler may
4601     # overwrite some of them when testing with obscure command lines.
4602     # This happens at least with the AIX C compiler.
4603     : > sub/conftest.c
4604     for i in 1 2 3 4 5 6; do
4605       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4607       # Solaris 10 /bin/sh.
4608       echo '/* dummy */' > sub/conftst$i.h
4609     done
4610     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4611
4612     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4613     # mode.  It turns out that the SunPro C++ compiler does not properly
4614     # handle '-M -o', and we need to detect this.  Also, some Intel
4615     # versions had trouble with output in subdirs.
4616     am__obj=sub/conftest.${OBJEXT-o}
4617     am__minus_obj="-o $am__obj"
4618     case $depmode in
4619     gcc)
4620       # This depmode causes a compiler race in universal mode.
4621       test "$am__universal" = false || continue
4622       ;;
4623     nosideeffect)
4624       # After this tag, mechanisms are not by side-effect, so they'll
4625       # only be used when explicitly requested.
4626       if test "x$enable_dependency_tracking" = xyes; then
4627         continue
4628       else
4629         break
4630       fi
4631       ;;
4632     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4633       # This compiler won't grok '-c -o', but also, the minuso test has
4634       # not run yet.  These depmodes are late enough in the game, and
4635       # so weak that their functioning should not be impacted.
4636       am__obj=conftest.${OBJEXT-o}
4637       am__minus_obj=
4638       ;;
4639     none) break ;;
4640     esac
4641     if depmode=$depmode \
4642        source=sub/conftest.c object=$am__obj \
4643        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4644        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4645          >/dev/null 2>conftest.err &&
4646        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4647        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4648        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4649        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4650       # icc doesn't choke on unknown options, it will just issue warnings
4651       # or remarks (even with -Werror).  So we grep stderr for any message
4652       # that says an option was ignored or not supported.
4653       # When given -MP, icc 7.0 and 7.1 complain thusly:
4654       #   icc: Command line warning: ignoring option '-M'; no argument required
4655       # The diagnosis changed in icc 8.0:
4656       #   icc: Command line remark: option '-MP' not supported
4657       if (grep 'ignoring option' conftest.err ||
4658           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4659         am_cv_CC_dependencies_compiler_type=$depmode
4660         break
4661       fi
4662     fi
4663   done
4664
4665   cd ..
4666   rm -rf conftest.dir
4667 else
4668   am_cv_CC_dependencies_compiler_type=none
4669 fi
4670
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4673 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4674 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4675
4676  if
4677   test "x$enable_dependency_tracking" != xno \
4678   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4679   am__fastdepCC_TRUE=
4680   am__fastdepCC_FALSE='#'
4681 else
4682   am__fastdepCC_TRUE='#'
4683   am__fastdepCC_FALSE=
4684 fi
4685
4686
4687
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4694 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4695 # On Suns, sometimes $CPP names a directory.
4696 if test -n "$CPP" && test -d "$CPP"; then
4697   CPP=
4698 fi
4699 if test -z "$CPP"; then
4700   if ${ac_cv_prog_CPP+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703       # Double quotes because CPP needs to be expanded
4704     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705     do
4706       ac_preproc_ok=false
4707 for ac_c_preproc_warn_flag in '' yes
4708 do
4709   # Use a header file that comes with gcc, so configuring glibc
4710   # with a fresh cross-compiler works.
4711   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712   # <limits.h> exists even on freestanding compilers.
4713   # On the NeXT, cc -E runs the code through the compiler's parser,
4714   # not just through cpp. "Syntax error" is here to catch this case.
4715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717 #ifdef __STDC__
4718 # include <limits.h>
4719 #else
4720 # include <assert.h>
4721 #endif
4722                      Syntax error
4723 _ACEOF
4724 if ac_fn_c_try_cpp "$LINENO"; then :
4725
4726 else
4727   # Broken: fails on valid input.
4728 continue
4729 fi
4730 rm -f conftest.err conftest.i conftest.$ac_ext
4731
4732   # OK, works on sane cases.  Now check whether nonexistent headers
4733   # can be detected and how.
4734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h.  */
4736 #include <ac_nonexistent.h>
4737 _ACEOF
4738 if ac_fn_c_try_cpp "$LINENO"; then :
4739   # Broken: success on invalid input.
4740 continue
4741 else
4742   # Passes both tests.
4743 ac_preproc_ok=:
4744 break
4745 fi
4746 rm -f conftest.err conftest.i conftest.$ac_ext
4747
4748 done
4749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750 rm -f conftest.i conftest.err conftest.$ac_ext
4751 if $ac_preproc_ok; then :
4752   break
4753 fi
4754
4755     done
4756     ac_cv_prog_CPP=$CPP
4757
4758 fi
4759   CPP=$ac_cv_prog_CPP
4760 else
4761   ac_cv_prog_CPP=$CPP
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4764 $as_echo "$CPP" >&6; }
4765 ac_preproc_ok=false
4766 for ac_c_preproc_warn_flag in '' yes
4767 do
4768   # Use a header file that comes with gcc, so configuring glibc
4769   # with a fresh cross-compiler works.
4770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771   # <limits.h> exists even on freestanding compilers.
4772   # On the NeXT, cc -E runs the code through the compiler's parser,
4773   # not just through cpp. "Syntax error" is here to catch this case.
4774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h.  */
4776 #ifdef __STDC__
4777 # include <limits.h>
4778 #else
4779 # include <assert.h>
4780 #endif
4781                      Syntax error
4782 _ACEOF
4783 if ac_fn_c_try_cpp "$LINENO"; then :
4784
4785 else
4786   # Broken: fails on valid input.
4787 continue
4788 fi
4789 rm -f conftest.err conftest.i conftest.$ac_ext
4790
4791   # OK, works on sane cases.  Now check whether nonexistent headers
4792   # can be detected and how.
4793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795 #include <ac_nonexistent.h>
4796 _ACEOF
4797 if ac_fn_c_try_cpp "$LINENO"; then :
4798   # Broken: success on invalid input.
4799 continue
4800 else
4801   # Passes both tests.
4802 ac_preproc_ok=:
4803 break
4804 fi
4805 rm -f conftest.err conftest.i conftest.$ac_ext
4806
4807 done
4808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4809 rm -f conftest.i conftest.err conftest.$ac_ext
4810 if $ac_preproc_ok; then :
4811
4812 else
4813   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4815 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4816 See \`config.log' for more details" "$LINENO" 5; }
4817 fi
4818
4819 ac_ext=c
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4827 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4828 if ${ac_cv_path_GREP+:} false; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   if test -z "$GREP"; then
4832   ac_path_GREP_found=false
4833   # Loop through the user's path and test for each of PROGNAME-LIST
4834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     for ac_prog in grep ggrep; do
4840     for ac_exec_ext in '' $ac_executable_extensions; do
4841       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4842       as_fn_executable_p "$ac_path_GREP" || continue
4843 # Check for GNU ac_path_GREP and select it if it is found.
4844   # Check for GNU $ac_path_GREP
4845 case `"$ac_path_GREP" --version 2>&1` in
4846 *GNU*)
4847   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4848 *)
4849   ac_count=0
4850   $as_echo_n 0123456789 >"conftest.in"
4851   while :
4852   do
4853     cat "conftest.in" "conftest.in" >"conftest.tmp"
4854     mv "conftest.tmp" "conftest.in"
4855     cp "conftest.in" "conftest.nl"
4856     $as_echo 'GREP' >> "conftest.nl"
4857     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859     as_fn_arith $ac_count + 1 && ac_count=$as_val
4860     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4861       # Best one so far, save it but keep looking for a better one
4862       ac_cv_path_GREP="$ac_path_GREP"
4863       ac_path_GREP_max=$ac_count
4864     fi
4865     # 10*(2^10) chars as input seems more than enough
4866     test $ac_count -gt 10 && break
4867   done
4868   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869 esac
4870
4871       $ac_path_GREP_found && break 3
4872     done
4873   done
4874   done
4875 IFS=$as_save_IFS
4876   if test -z "$ac_cv_path_GREP"; then
4877     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4878   fi
4879 else
4880   ac_cv_path_GREP=$GREP
4881 fi
4882
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4885 $as_echo "$ac_cv_path_GREP" >&6; }
4886  GREP="$ac_cv_path_GREP"
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4890 $as_echo_n "checking for egrep... " >&6; }
4891 if ${ac_cv_path_EGREP+:} false; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4895    then ac_cv_path_EGREP="$GREP -E"
4896    else
4897      if test -z "$EGREP"; then
4898   ac_path_EGREP_found=false
4899   # Loop through the user's path and test for each of PROGNAME-LIST
4900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905     for ac_prog in egrep; do
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4908       as_fn_executable_p "$ac_path_EGREP" || continue
4909 # Check for GNU ac_path_EGREP and select it if it is found.
4910   # Check for GNU $ac_path_EGREP
4911 case `"$ac_path_EGREP" --version 2>&1` in
4912 *GNU*)
4913   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4914 *)
4915   ac_count=0
4916   $as_echo_n 0123456789 >"conftest.in"
4917   while :
4918   do
4919     cat "conftest.in" "conftest.in" >"conftest.tmp"
4920     mv "conftest.tmp" "conftest.in"
4921     cp "conftest.in" "conftest.nl"
4922     $as_echo 'EGREP' >> "conftest.nl"
4923     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925     as_fn_arith $ac_count + 1 && ac_count=$as_val
4926     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4927       # Best one so far, save it but keep looking for a better one
4928       ac_cv_path_EGREP="$ac_path_EGREP"
4929       ac_path_EGREP_max=$ac_count
4930     fi
4931     # 10*(2^10) chars as input seems more than enough
4932     test $ac_count -gt 10 && break
4933   done
4934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937       $ac_path_EGREP_found && break 3
4938     done
4939   done
4940   done
4941 IFS=$as_save_IFS
4942   if test -z "$ac_cv_path_EGREP"; then
4943     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4944   fi
4945 else
4946   ac_cv_path_EGREP=$EGREP
4947 fi
4948
4949    fi
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4952 $as_echo "$ac_cv_path_EGREP" >&6; }
4953  EGREP="$ac_cv_path_EGREP"
4954
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4957 $as_echo_n "checking for ANSI C header files... " >&6; }
4958 if ${ac_cv_header_stdc+:} false; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h.  */
4963 #include <stdlib.h>
4964 #include <stdarg.h>
4965 #include <string.h>
4966 #include <float.h>
4967
4968 int
4969 main ()
4970 {
4971
4972   ;
4973   return 0;
4974 }
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977   ac_cv_header_stdc=yes
4978 else
4979   ac_cv_header_stdc=no
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982
4983 if test $ac_cv_header_stdc = yes; then
4984   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h.  */
4987 #include <string.h>
4988
4989 _ACEOF
4990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4991   $EGREP "memchr" >/dev/null 2>&1; then :
4992
4993 else
4994   ac_cv_header_stdc=no
4995 fi
4996 rm -f conftest*
4997
4998 fi
4999
5000 if test $ac_cv_header_stdc = yes; then
5001   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004 #include <stdlib.h>
5005
5006 _ACEOF
5007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5008   $EGREP "free" >/dev/null 2>&1; then :
5009
5010 else
5011   ac_cv_header_stdc=no
5012 fi
5013 rm -f conftest*
5014
5015 fi
5016
5017 if test $ac_cv_header_stdc = yes; then
5018   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5019   if test "$cross_compiling" = yes; then :
5020   :
5021 else
5022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h.  */
5024 #include <ctype.h>
5025 #include <stdlib.h>
5026 #if ((' ' & 0x0FF) == 0x020)
5027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5029 #else
5030 # define ISLOWER(c) \
5031                    (('a' <= (c) && (c) <= 'i') \
5032                      || ('j' <= (c) && (c) <= 'r') \
5033                      || ('s' <= (c) && (c) <= 'z'))
5034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5035 #endif
5036
5037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5038 int
5039 main ()
5040 {
5041   int i;
5042   for (i = 0; i < 256; i++)
5043     if (XOR (islower (i), ISLOWER (i))
5044         || toupper (i) != TOUPPER (i))
5045       return 2;
5046   return 0;
5047 }
5048 _ACEOF
5049 if ac_fn_c_try_run "$LINENO"; then :
5050
5051 else
5052   ac_cv_header_stdc=no
5053 fi
5054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5055   conftest.$ac_objext conftest.beam conftest.$ac_ext
5056 fi
5057
5058 fi
5059 fi
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5061 $as_echo "$ac_cv_header_stdc" >&6; }
5062 if test $ac_cv_header_stdc = yes; then
5063
5064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5065
5066 fi
5067
5068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5070                   inttypes.h stdint.h unistd.h
5071 do :
5072   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5074 "
5075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5076   cat >>confdefs.h <<_ACEOF
5077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5078 _ACEOF
5079
5080 fi
5081
5082 done
5083
5084
5085
5086   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5087 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5088   MINIX=yes
5089 else
5090   MINIX=
5091 fi
5092
5093
5094   if test "$MINIX" = yes; then
5095
5096 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5097
5098
5099 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5100
5101
5102 $as_echo "#define _MINIX 1" >>confdefs.h
5103
5104   fi
5105
5106
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5108 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5109 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h.  */
5114
5115 #         define __EXTENSIONS__ 1
5116           $ac_includes_default
5117 int
5118 main ()
5119 {
5120
5121   ;
5122   return 0;
5123 }
5124 _ACEOF
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126   ac_cv_safe_to_define___extensions__=yes
5127 else
5128   ac_cv_safe_to_define___extensions__=no
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5133 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5134   test $ac_cv_safe_to_define___extensions__ = yes &&
5135     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5136
5137   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5138
5139   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5140
5141   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5142
5143   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5144
5145
5146
5147
5148
5149
5150 ac_ext=c
5151 ac_cpp='$CPP $CPPFLAGS'
5152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 if test -n "$ac_tool_prefix"; then
5156   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_CC+:} false; then :
5161   $as_echo_n "(cached) " >&6
5162 else
5163   if test -n "$CC"; then
5164   ac_cv_prog_CC="$CC" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171     for ac_exec_ext in '' $ac_executable_extensions; do
5172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175     break 2
5176   fi
5177 done
5178   done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 CC=$ac_cv_prog_CC
5184 if test -n "$CC"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5186 $as_echo "$CC" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193 fi
5194 if test -z "$ac_cv_prog_CC"; then
5195   ac_ct_CC=$CC
5196   # Extract the first word of "gcc", so it can be a program name with args.
5197 set dummy gcc; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   if test -n "$ac_ct_CC"; then
5204   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211     for ac_exec_ext in '' $ac_executable_extensions; do
5212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213     ac_cv_prog_ac_ct_CC="gcc"
5214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215     break 2
5216   fi
5217 done
5218   done
5219 IFS=$as_save_IFS
5220
5221 fi
5222 fi
5223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5224 if test -n "$ac_ct_CC"; then
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5226 $as_echo "$ac_ct_CC" >&6; }
5227 else
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231
5232   if test "x$ac_ct_CC" = x; then
5233     CC=""
5234   else
5235     case $cross_compiling:$ac_tool_warned in
5236 yes:)
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned=yes ;;
5240 esac
5241     CC=$ac_ct_CC
5242   fi
5243 else
5244   CC="$ac_cv_prog_CC"
5245 fi
5246
5247 if test -z "$CC"; then
5248           if test -n "$ac_tool_prefix"; then
5249     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5250 set dummy ${ac_tool_prefix}cc; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_CC+:} false; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   if test -n "$CC"; then
5257   ac_cv_prog_CC="$CC" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     ac_cv_prog_CC="${ac_tool_prefix}cc"
5267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271   done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 CC=$ac_cv_prog_CC
5277 if test -n "$CC"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5279 $as_echo "$CC" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286   fi
5287 fi
5288 if test -z "$CC"; then
5289   # Extract the first word of "cc", so it can be a program name with args.
5290 set dummy cc; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_prog_CC+:} false; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   if test -n "$CC"; then
5297   ac_cv_prog_CC="$CC" # Let the user override the test.
5298 else
5299   ac_prog_rejected=no
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5308        ac_prog_rejected=yes
5309        continue
5310      fi
5311     ac_cv_prog_CC="cc"
5312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313     break 2
5314   fi
5315 done
5316   done
5317 IFS=$as_save_IFS
5318
5319 if test $ac_prog_rejected = yes; then
5320   # We found a bogon in the path, so make sure we never use it.
5321   set dummy $ac_cv_prog_CC
5322   shift
5323   if test $# != 0; then
5324     # We chose a different compiler from the bogus one.
5325     # However, it has the same basename, so the bogon will be chosen
5326     # first if we set CC to just the basename; use the full file name.
5327     shift
5328     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5329   fi
5330 fi
5331 fi
5332 fi
5333 CC=$ac_cv_prog_CC
5334 if test -n "$CC"; then
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5336 $as_echo "$CC" >&6; }
5337 else
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342
5343 fi
5344 if test -z "$CC"; then
5345   if test -n "$ac_tool_prefix"; then
5346   for ac_prog in cl.exe
5347   do
5348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_CC+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   if test -n "$CC"; then
5356   ac_cv_prog_CC="$CC" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363     for ac_exec_ext in '' $ac_executable_extensions; do
5364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370   done
5371 IFS=$as_save_IFS
5372
5373 fi
5374 fi
5375 CC=$ac_cv_prog_CC
5376 if test -n "$CC"; then
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5378 $as_echo "$CC" >&6; }
5379 else
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5383
5384
5385     test -n "$CC" && break
5386   done
5387 fi
5388 if test -z "$CC"; then
5389   ac_ct_CC=$CC
5390   for ac_prog in cl.exe
5391 do
5392   # Extract the first word of "$ac_prog", so it can be a program name with args.
5393 set dummy $ac_prog; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   if test -n "$ac_ct_CC"; then
5400   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407     for ac_exec_ext in '' $ac_executable_extensions; do
5408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409     ac_cv_prog_ac_ct_CC="$ac_prog"
5410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414   done
5415 IFS=$as_save_IFS
5416
5417 fi
5418 fi
5419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5420 if test -n "$ac_ct_CC"; then
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5422 $as_echo "$ac_ct_CC" >&6; }
5423 else
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5426 fi
5427
5428
5429   test -n "$ac_ct_CC" && break
5430 done
5431
5432   if test "x$ac_ct_CC" = x; then
5433     CC=""
5434   else
5435     case $cross_compiling:$ac_tool_warned in
5436 yes:)
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439 ac_tool_warned=yes ;;
5440 esac
5441     CC=$ac_ct_CC
5442   fi
5443 fi
5444
5445 fi
5446
5447
5448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450 as_fn_error $? "no acceptable C compiler found in \$PATH
5451 See \`config.log' for more details" "$LINENO" 5; }
5452
5453 # Provide some information about the compiler.
5454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5455 set X $ac_compile
5456 ac_compiler=$2
5457 for ac_option in --version -v -V -qversion; do
5458   { { ac_try="$ac_compiler $ac_option >&5"
5459 case "(($ac_try" in
5460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461   *) ac_try_echo=$ac_try;;
5462 esac
5463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5464 $as_echo "$ac_try_echo"; } >&5
5465   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5466   ac_status=$?
5467   if test -s conftest.err; then
5468     sed '10a\
5469 ... rest of stderr output deleted ...
5470          10q' conftest.err >conftest.er1
5471     cat conftest.er1 >&5
5472   fi
5473   rm -f conftest.er1 conftest.err
5474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475   test $ac_status = 0; }
5476 done
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5479 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5480 if ${ac_cv_c_compiler_gnu+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h.  */
5485
5486 int
5487 main ()
5488 {
5489 #ifndef __GNUC__
5490        choke me
5491 #endif
5492
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498   ac_compiler_gnu=yes
5499 else
5500   ac_compiler_gnu=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5504
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5507 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5508 if test $ac_compiler_gnu = yes; then
5509   GCC=yes
5510 else
5511   GCC=
5512 fi
5513 ac_test_CFLAGS=${CFLAGS+set}
5514 ac_save_CFLAGS=$CFLAGS
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5516 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5517 if ${ac_cv_prog_cc_g+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   ac_save_c_werror_flag=$ac_c_werror_flag
5521    ac_c_werror_flag=yes
5522    ac_cv_prog_cc_g=no
5523    CFLAGS="-g"
5524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526
5527 int
5528 main ()
5529 {
5530
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 if ac_fn_c_try_compile "$LINENO"; then :
5536   ac_cv_prog_cc_g=yes
5537 else
5538   CFLAGS=""
5539       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h.  */
5541
5542 int
5543 main ()
5544 {
5545
5546   ;
5547   return 0;
5548 }
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551
5552 else
5553   ac_c_werror_flag=$ac_save_c_werror_flag
5554          CFLAGS="-g"
5555          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h.  */
5557
5558 int
5559 main ()
5560 {
5561
5562   ;
5563   return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567   ac_cv_prog_cc_g=yes
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574    ac_c_werror_flag=$ac_save_c_werror_flag
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5577 $as_echo "$ac_cv_prog_cc_g" >&6; }
5578 if test "$ac_test_CFLAGS" = set; then
5579   CFLAGS=$ac_save_CFLAGS
5580 elif test $ac_cv_prog_cc_g = yes; then
5581   if test "$GCC" = yes; then
5582     CFLAGS="-g -O2"
5583   else
5584     CFLAGS="-g"
5585   fi
5586 else
5587   if test "$GCC" = yes; then
5588     CFLAGS="-O2"
5589   else
5590     CFLAGS=
5591   fi
5592 fi
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5595 if ${ac_cv_prog_cc_c89+:} false; then :
5596   $as_echo_n "(cached) " >&6
5597 else
5598   ac_cv_prog_cc_c89=no
5599 ac_save_CC=$CC
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h.  */
5602 #include <stdarg.h>
5603 #include <stdio.h>
5604 struct stat;
5605 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5606 struct buf { int x; };
5607 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5608 static char *e (p, i)
5609      char **p;
5610      int i;
5611 {
5612   return p[i];
5613 }
5614 static char *f (char * (*g) (char **, int), char **p, ...)
5615 {
5616   char *s;
5617   va_list v;
5618   va_start (v,p);
5619   s = g (p, va_arg (v,int));
5620   va_end (v);
5621   return s;
5622 }
5623
5624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5625    function prototypes and stuff, but not '\xHH' hex character constants.
5626    These don't provoke an error unfortunately, instead are silently treated
5627    as 'x'.  The following induces an error, until -std is added to get
5628    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5629    array size at least.  It's necessary to write '\x00'==0 to get something
5630    that's true only with -std.  */
5631 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5632
5633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5634    inside strings and character constants.  */
5635 #define FOO(x) 'x'
5636 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5637
5638 int test (int i, double x);
5639 struct s1 {int (*f) (int a);};
5640 struct s2 {int (*f) (double a);};
5641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5642 int argc;
5643 char **argv;
5644 int
5645 main ()
5646 {
5647 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5653         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5654 do
5655   CC="$ac_save_CC $ac_arg"
5656   if ac_fn_c_try_compile "$LINENO"; then :
5657   ac_cv_prog_cc_c89=$ac_arg
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext
5660   test "x$ac_cv_prog_cc_c89" != "xno" && break
5661 done
5662 rm -f conftest.$ac_ext
5663 CC=$ac_save_CC
5664
5665 fi
5666 # AC_CACHE_VAL
5667 case "x$ac_cv_prog_cc_c89" in
5668   x)
5669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5670 $as_echo "none needed" >&6; } ;;
5671   xno)
5672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5673 $as_echo "unsupported" >&6; } ;;
5674   *)
5675     CC="$CC $ac_cv_prog_cc_c89"
5676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5677 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5678 esac
5679 if test "x$ac_cv_prog_cc_c89" != xno; then :
5680
5681 fi
5682
5683 ac_ext=c
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5688
5689 ac_ext=c
5690 ac_cpp='$CPP $CPPFLAGS'
5691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5695 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5696 if ${am_cv_prog_cc_c_o+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h.  */
5701
5702 int
5703 main ()
5704 {
5705
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710   # Make sure it works both with $CC and with simple cc.
5711   # Following AC_PROG_CC_C_O, we do the test twice because some
5712   # compilers refuse to overwrite an existing .o file with -o,
5713   # though they will create one.
5714   am_cv_prog_cc_c_o=yes
5715   for am_i in 1 2; do
5716     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5717    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5718    ac_status=$?
5719    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720    (exit $ac_status); } \
5721          && test -f conftest2.$ac_objext; then
5722       : OK
5723     else
5724       am_cv_prog_cc_c_o=no
5725       break
5726     fi
5727   done
5728   rm -f core conftest*
5729   unset am_i
5730 fi
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5732 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5733 if test "$am_cv_prog_cc_c_o" != yes; then
5734    # Losing compiler, so override with the script.
5735    # FIXME: It is wrong to rewrite CC.
5736    # But if we don't then we get into trouble of one sort or another.
5737    # A longer-term fix would be to have automake use am__CC in this case,
5738    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5739    CC="$am_aux_dir/compile $CC"
5740 fi
5741 ac_ext=c
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5746
5747
5748 depcc="$CC"   am_compiler_list=
5749
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5751 $as_echo_n "checking dependency style of $depcc... " >&6; }
5752 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5753   $as_echo_n "(cached) " >&6
5754 else
5755   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5756   # We make a subdir and do the tests there.  Otherwise we can end up
5757   # making bogus files that we don't know about and never remove.  For
5758   # instance it was reported that on HP-UX the gcc test will end up
5759   # making a dummy file named 'D' -- because '-MD' means "put the output
5760   # in D".
5761   rm -rf conftest.dir
5762   mkdir conftest.dir
5763   # Copy depcomp to subdir because otherwise we won't find it if we're
5764   # using a relative directory.
5765   cp "$am_depcomp" conftest.dir
5766   cd conftest.dir
5767   # We will build objects and dependencies in a subdirectory because
5768   # it helps to detect inapplicable dependency modes.  For instance
5769   # both Tru64's cc and ICC support -MD to output dependencies as a
5770   # side effect of compilation, but ICC will put the dependencies in
5771   # the current directory while Tru64 will put them in the object
5772   # directory.
5773   mkdir sub
5774
5775   am_cv_CC_dependencies_compiler_type=none
5776   if test "$am_compiler_list" = ""; then
5777      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5778   fi
5779   am__universal=false
5780   case " $depcc " in #(
5781      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5782      esac
5783
5784   for depmode in $am_compiler_list; do
5785     # Setup a source with many dependencies, because some compilers
5786     # like to wrap large dependency lists on column 80 (with \), and
5787     # we should not choose a depcomp mode which is confused by this.
5788     #
5789     # We need to recreate these files for each test, as the compiler may
5790     # overwrite some of them when testing with obscure command lines.
5791     # This happens at least with the AIX C compiler.
5792     : > sub/conftest.c
5793     for i in 1 2 3 4 5 6; do
5794       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5795       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5796       # Solaris 10 /bin/sh.
5797       echo '/* dummy */' > sub/conftst$i.h
5798     done
5799     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5800
5801     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5802     # mode.  It turns out that the SunPro C++ compiler does not properly
5803     # handle '-M -o', and we need to detect this.  Also, some Intel
5804     # versions had trouble with output in subdirs.
5805     am__obj=sub/conftest.${OBJEXT-o}
5806     am__minus_obj="-o $am__obj"
5807     case $depmode in
5808     gcc)
5809       # This depmode causes a compiler race in universal mode.
5810       test "$am__universal" = false || continue
5811       ;;
5812     nosideeffect)
5813       # After this tag, mechanisms are not by side-effect, so they'll
5814       # only be used when explicitly requested.
5815       if test "x$enable_dependency_tracking" = xyes; then
5816         continue
5817       else
5818         break
5819       fi
5820       ;;
5821     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5822       # This compiler won't grok '-c -o', but also, the minuso test has
5823       # not run yet.  These depmodes are late enough in the game, and
5824       # so weak that their functioning should not be impacted.
5825       am__obj=conftest.${OBJEXT-o}
5826       am__minus_obj=
5827       ;;
5828     none) break ;;
5829     esac
5830     if depmode=$depmode \
5831        source=sub/conftest.c object=$am__obj \
5832        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5833        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5834          >/dev/null 2>conftest.err &&
5835        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5836        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5837        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5838        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5839       # icc doesn't choke on unknown options, it will just issue warnings
5840       # or remarks (even with -Werror).  So we grep stderr for any message
5841       # that says an option was ignored or not supported.
5842       # When given -MP, icc 7.0 and 7.1 complain thusly:
5843       #   icc: Command line warning: ignoring option '-M'; no argument required
5844       # The diagnosis changed in icc 8.0:
5845       #   icc: Command line remark: option '-MP' not supported
5846       if (grep 'ignoring option' conftest.err ||
5847           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5848         am_cv_CC_dependencies_compiler_type=$depmode
5849         break
5850       fi
5851     fi
5852   done
5853
5854   cd ..
5855   rm -rf conftest.dir
5856 else
5857   am_cv_CC_dependencies_compiler_type=none
5858 fi
5859
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5862 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5863 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5864
5865  if
5866   test "x$enable_dependency_tracking" != xno \
5867   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5868   am__fastdepCC_TRUE=
5869   am__fastdepCC_FALSE='#'
5870 else
5871   am__fastdepCC_TRUE='#'
5872   am__fastdepCC_FALSE=
5873 fi
5874
5875
5876 ac_ext=cpp
5877 ac_cpp='$CXXCPP $CPPFLAGS'
5878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5881 if test -z "$CXX"; then
5882   if test -n "$CCC"; then
5883     CXX=$CCC
5884   else
5885     if test -n "$ac_tool_prefix"; then
5886   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5887   do
5888     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if ${ac_cv_prog_CXX+:} false; then :
5893   $as_echo_n "(cached) " >&6
5894 else
5895   if test -n "$CXX"; then
5896   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903     for ac_exec_ext in '' $ac_executable_extensions; do
5904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910   done
5911 IFS=$as_save_IFS
5912
5913 fi
5914 fi
5915 CXX=$ac_cv_prog_CXX
5916 if test -n "$CXX"; then
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5918 $as_echo "$CXX" >&6; }
5919 else
5920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5922 fi
5923
5924
5925     test -n "$CXX" && break
5926   done
5927 fi
5928 if test -z "$CXX"; then
5929   ac_ct_CXX=$CXX
5930   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5931 do
5932   # Extract the first word of "$ac_prog", so it can be a program name with args.
5933 set dummy $ac_prog; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   if test -n "$ac_ct_CXX"; then
5940   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947     for ac_exec_ext in '' $ac_executable_extensions; do
5948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949     ac_cv_prog_ac_ct_CXX="$ac_prog"
5950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951     break 2
5952   fi
5953 done
5954   done
5955 IFS=$as_save_IFS
5956
5957 fi
5958 fi
5959 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5960 if test -n "$ac_ct_CXX"; then
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5962 $as_echo "$ac_ct_CXX" >&6; }
5963 else
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967
5968
5969   test -n "$ac_ct_CXX" && break
5970 done
5971
5972   if test "x$ac_ct_CXX" = x; then
5973     CXX="g++"
5974   else
5975     case $cross_compiling:$ac_tool_warned in
5976 yes:)
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979 ac_tool_warned=yes ;;
5980 esac
5981     CXX=$ac_ct_CXX
5982   fi
5983 fi
5984
5985   fi
5986 fi
5987 # Provide some information about the compiler.
5988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5989 set X $ac_compile
5990 ac_compiler=$2
5991 for ac_option in --version -v -V -qversion; do
5992   { { ac_try="$ac_compiler $ac_option >&5"
5993 case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5998 $as_echo "$ac_try_echo"; } >&5
5999   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6000   ac_status=$?
6001   if test -s conftest.err; then
6002     sed '10a\
6003 ... rest of stderr output deleted ...
6004          10q' conftest.err >conftest.er1
6005     cat conftest.er1 >&5
6006   fi
6007   rm -f conftest.er1 conftest.err
6008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6009   test $ac_status = 0; }
6010 done
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6013 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6014 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6015   $as_echo_n "(cached) " >&6
6016 else
6017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h.  */
6019
6020 int
6021 main ()
6022 {
6023 #ifndef __GNUC__
6024        choke me
6025 #endif
6026
6027   ;
6028   return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_cxx_try_compile "$LINENO"; then :
6032   ac_compiler_gnu=yes
6033 else
6034   ac_compiler_gnu=no
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6038
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6041 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6042 if test $ac_compiler_gnu = yes; then
6043   GXX=yes
6044 else
6045   GXX=
6046 fi
6047 ac_test_CXXFLAGS=${CXXFLAGS+set}
6048 ac_save_CXXFLAGS=$CXXFLAGS
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6050 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6051 if ${ac_cv_prog_cxx_g+:} false; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6055    ac_cxx_werror_flag=yes
6056    ac_cv_prog_cxx_g=no
6057    CXXFLAGS="-g"
6058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h.  */
6060
6061 int
6062 main ()
6063 {
6064
6065   ;
6066   return 0;
6067 }
6068 _ACEOF
6069 if ac_fn_cxx_try_compile "$LINENO"; then :
6070   ac_cv_prog_cxx_g=yes
6071 else
6072   CXXFLAGS=""
6073       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h.  */
6075
6076 int
6077 main ()
6078 {
6079
6080   ;
6081   return 0;
6082 }
6083 _ACEOF
6084 if ac_fn_cxx_try_compile "$LINENO"; then :
6085
6086 else
6087   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6088          CXXFLAGS="-g"
6089          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h.  */
6091
6092 int
6093 main ()
6094 {
6095
6096   ;
6097   return 0;
6098 }
6099 _ACEOF
6100 if ac_fn_cxx_try_compile "$LINENO"; then :
6101   ac_cv_prog_cxx_g=yes
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6109 fi
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6111 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6112 if test "$ac_test_CXXFLAGS" = set; then
6113   CXXFLAGS=$ac_save_CXXFLAGS
6114 elif test $ac_cv_prog_cxx_g = yes; then
6115   if test "$GXX" = yes; then
6116     CXXFLAGS="-g -O2"
6117   else
6118     CXXFLAGS="-g"
6119   fi
6120 else
6121   if test "$GXX" = yes; then
6122     CXXFLAGS="-O2"
6123   else
6124     CXXFLAGS=
6125   fi
6126 fi
6127 ac_ext=c
6128 ac_cpp='$CPP $CPPFLAGS'
6129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133 depcc="$CXX"  am_compiler_list=
6134
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6136 $as_echo_n "checking dependency style of $depcc... " >&6; }
6137 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6141   # We make a subdir and do the tests there.  Otherwise we can end up
6142   # making bogus files that we don't know about and never remove.  For
6143   # instance it was reported that on HP-UX the gcc test will end up
6144   # making a dummy file named 'D' -- because '-MD' means "put the output
6145   # in D".
6146   rm -rf conftest.dir
6147   mkdir conftest.dir
6148   # Copy depcomp to subdir because otherwise we won't find it if we're
6149   # using a relative directory.
6150   cp "$am_depcomp" conftest.dir
6151   cd conftest.dir
6152   # We will build objects and dependencies in a subdirectory because
6153   # it helps to detect inapplicable dependency modes.  For instance
6154   # both Tru64's cc and ICC support -MD to output dependencies as a
6155   # side effect of compilation, but ICC will put the dependencies in
6156   # the current directory while Tru64 will put them in the object
6157   # directory.
6158   mkdir sub
6159
6160   am_cv_CXX_dependencies_compiler_type=none
6161   if test "$am_compiler_list" = ""; then
6162      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6163   fi
6164   am__universal=false
6165   case " $depcc " in #(
6166      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6167      esac
6168
6169   for depmode in $am_compiler_list; do
6170     # Setup a source with many dependencies, because some compilers
6171     # like to wrap large dependency lists on column 80 (with \), and
6172     # we should not choose a depcomp mode which is confused by this.
6173     #
6174     # We need to recreate these files for each test, as the compiler may
6175     # overwrite some of them when testing with obscure command lines.
6176     # This happens at least with the AIX C compiler.
6177     : > sub/conftest.c
6178     for i in 1 2 3 4 5 6; do
6179       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6180       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6181       # Solaris 10 /bin/sh.
6182       echo '/* dummy */' > sub/conftst$i.h
6183     done
6184     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6185
6186     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6187     # mode.  It turns out that the SunPro C++ compiler does not properly
6188     # handle '-M -o', and we need to detect this.  Also, some Intel
6189     # versions had trouble with output in subdirs.
6190     am__obj=sub/conftest.${OBJEXT-o}
6191     am__minus_obj="-o $am__obj"
6192     case $depmode in
6193     gcc)
6194       # This depmode causes a compiler race in universal mode.
6195       test "$am__universal" = false || continue
6196       ;;
6197     nosideeffect)
6198       # After this tag, mechanisms are not by side-effect, so they'll
6199       # only be used when explicitly requested.
6200       if test "x$enable_dependency_tracking" = xyes; then
6201         continue
6202       else
6203         break
6204       fi
6205       ;;
6206     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6207       # This compiler won't grok '-c -o', but also, the minuso test has
6208       # not run yet.  These depmodes are late enough in the game, and
6209       # so weak that their functioning should not be impacted.
6210       am__obj=conftest.${OBJEXT-o}
6211       am__minus_obj=
6212       ;;
6213     none) break ;;
6214     esac
6215     if depmode=$depmode \
6216        source=sub/conftest.c object=$am__obj \
6217        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6218        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6219          >/dev/null 2>conftest.err &&
6220        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6221        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6222        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6223        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6224       # icc doesn't choke on unknown options, it will just issue warnings
6225       # or remarks (even with -Werror).  So we grep stderr for any message
6226       # that says an option was ignored or not supported.
6227       # When given -MP, icc 7.0 and 7.1 complain thusly:
6228       #   icc: Command line warning: ignoring option '-M'; no argument required
6229       # The diagnosis changed in icc 8.0:
6230       #   icc: Command line remark: option '-MP' not supported
6231       if (grep 'ignoring option' conftest.err ||
6232           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6233         am_cv_CXX_dependencies_compiler_type=$depmode
6234         break
6235       fi
6236     fi
6237   done
6238
6239   cd ..
6240   rm -rf conftest.dir
6241 else
6242   am_cv_CXX_dependencies_compiler_type=none
6243 fi
6244
6245 fi
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6247 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6248 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6249
6250  if
6251   test "x$enable_dependency_tracking" != xno \
6252   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6253   am__fastdepCXX_TRUE=
6254   am__fastdepCXX_FALSE='#'
6255 else
6256   am__fastdepCXX_TRUE='#'
6257   am__fastdepCXX_FALSE=
6258 fi
6259
6260
6261
6262 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6263 for ac_prog in gitlog-to-changelog
6264 do
6265   # Extract the first word of "$ac_prog", so it can be a program name with args.
6266 set dummy $ac_prog; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6270   $as_echo_n "(cached) " >&6
6271 else
6272   if test -n "$GITLOG_TO_CHANGELOG"; then
6273   ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280     for ac_exec_ext in '' $ac_executable_extensions; do
6281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282     ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284     break 2
6285   fi
6286 done
6287   done
6288 IFS=$as_save_IFS
6289
6290 fi
6291 fi
6292 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6293 if test -n "$GITLOG_TO_CHANGELOG"; then
6294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6295 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6296 else
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299 fi
6300
6301
6302   test -n "$GITLOG_TO_CHANGELOG" && break
6303 done
6304 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323 cat >>confdefs.h <<_ACEOF
6324 #define PACKAGE "$PACKAGE"
6325 _ACEOF
6326
6327
6328 cat >>confdefs.h <<_ACEOF
6329 #define VERSION "$VERSION"
6330 _ACEOF
6331
6332 VERSION_NUMBER=0x010800
6333
6334
6335 # We need to compile and run a program on the build machine.  A
6336 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
6337 # the AC archive is broken for autoconf 2.57.  Given that there is no
6338 # newer version of that macro, we assume that it is also broken for
6339 # autoconf 2.61 and thus we use a simple but usually sufficient
6340 # approach.
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
6342 $as_echo_n "checking for cc for build... " >&6; }
6343 if test "$cross_compiling" = "yes"; then
6344   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
6345 else
6346   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
6347 fi
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6349 $as_echo "$CC_FOR_BUILD" >&6; }
6350
6351
6352
6353 # Don't default to build static libs.
6354
6355 case `pwd` in
6356   *\ * | *\     *)
6357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6358 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6359 esac
6360
6361
6362
6363 macro_version='2.4.2'
6364 macro_revision='1.3337'
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 ltmain="$ac_aux_dir/ltmain.sh"
6379
6380 # Backslashify metacharacters that are still active within
6381 # double-quoted strings.
6382 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6383
6384 # Same as above, but do not quote variable references.
6385 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6386
6387 # Sed substitution to delay expansion of an escaped shell variable in a
6388 # double_quote_subst'ed string.
6389 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6390
6391 # Sed substitution to delay expansion of an escaped single quote.
6392 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6393
6394 # Sed substitution to avoid accidental globbing in evaled expressions
6395 no_glob_subst='s/\*/\\\*/g'
6396
6397 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6398 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6399 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6402 $as_echo_n "checking how to print strings... " >&6; }
6403 # Test print first, because it will be a builtin if present.
6404 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6405    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6406   ECHO='print -r --'
6407 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6408   ECHO='printf %s\n'
6409 else
6410   # Use this function as a fallback that always works.
6411   func_fallback_echo ()
6412   {
6413     eval 'cat <<_LTECHO_EOF
6414 $1
6415 _LTECHO_EOF'
6416   }
6417   ECHO='func_fallback_echo'
6418 fi
6419
6420 # func_echo_all arg...
6421 # Invoke $ECHO with all args, space-separated.
6422 func_echo_all ()
6423 {
6424     $ECHO ""
6425 }
6426
6427 case "$ECHO" in
6428   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6429 $as_echo "printf" >&6; } ;;
6430   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6431 $as_echo "print -r" >&6; } ;;
6432   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6433 $as_echo "cat" >&6; } ;;
6434 esac
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6450 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6451 if ${ac_cv_path_SED+:} false; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6455      for ac_i in 1 2 3 4 5 6 7; do
6456        ac_script="$ac_script$as_nl$ac_script"
6457      done
6458      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6459      { ac_script=; unset ac_script;}
6460      if test -z "$SED"; then
6461   ac_path_SED_found=false
6462   # Loop through the user's path and test for each of PROGNAME-LIST
6463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468     for ac_prog in sed gsed; do
6469     for ac_exec_ext in '' $ac_executable_extensions; do
6470       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6471       as_fn_executable_p "$ac_path_SED" || continue
6472 # Check for GNU ac_path_SED and select it if it is found.
6473   # Check for GNU $ac_path_SED
6474 case `"$ac_path_SED" --version 2>&1` in
6475 *GNU*)
6476   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6477 *)
6478   ac_count=0
6479   $as_echo_n 0123456789 >"conftest.in"
6480   while :
6481   do
6482     cat "conftest.in" "conftest.in" >"conftest.tmp"
6483     mv "conftest.tmp" "conftest.in"
6484     cp "conftest.in" "conftest.nl"
6485     $as_echo '' >> "conftest.nl"
6486     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6487     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6488     as_fn_arith $ac_count + 1 && ac_count=$as_val
6489     if test $ac_count -gt ${ac_path_SED_max-0}; then
6490       # Best one so far, save it but keep looking for a better one
6491       ac_cv_path_SED="$ac_path_SED"
6492       ac_path_SED_max=$ac_count
6493     fi
6494     # 10*(2^10) chars as input seems more than enough
6495     test $ac_count -gt 10 && break
6496   done
6497   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6498 esac
6499
6500       $ac_path_SED_found && break 3
6501     done
6502   done
6503   done
6504 IFS=$as_save_IFS
6505   if test -z "$ac_cv_path_SED"; then
6506     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6507   fi
6508 else
6509   ac_cv_path_SED=$SED
6510 fi
6511
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6514 $as_echo "$ac_cv_path_SED" >&6; }
6515  SED="$ac_cv_path_SED"
6516   rm -f conftest.sed
6517
6518 test -z "$SED" && SED=sed
6519 Xsed="$SED -e 1s/^X//"
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6532 $as_echo_n "checking for fgrep... " >&6; }
6533 if ${ac_cv_path_FGREP+:} false; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6537    then ac_cv_path_FGREP="$GREP -F"
6538    else
6539      if test -z "$FGREP"; then
6540   ac_path_FGREP_found=false
6541   # Loop through the user's path and test for each of PROGNAME-LIST
6542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547     for ac_prog in fgrep; do
6548     for ac_exec_ext in '' $ac_executable_extensions; do
6549       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6550       as_fn_executable_p "$ac_path_FGREP" || continue
6551 # Check for GNU ac_path_FGREP and select it if it is found.
6552   # Check for GNU $ac_path_FGREP
6553 case `"$ac_path_FGREP" --version 2>&1` in
6554 *GNU*)
6555   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6556 *)
6557   ac_count=0
6558   $as_echo_n 0123456789 >"conftest.in"
6559   while :
6560   do
6561     cat "conftest.in" "conftest.in" >"conftest.tmp"
6562     mv "conftest.tmp" "conftest.in"
6563     cp "conftest.in" "conftest.nl"
6564     $as_echo 'FGREP' >> "conftest.nl"
6565     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6566     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6567     as_fn_arith $ac_count + 1 && ac_count=$as_val
6568     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6569       # Best one so far, save it but keep looking for a better one
6570       ac_cv_path_FGREP="$ac_path_FGREP"
6571       ac_path_FGREP_max=$ac_count
6572     fi
6573     # 10*(2^10) chars as input seems more than enough
6574     test $ac_count -gt 10 && break
6575   done
6576   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6577 esac
6578
6579       $ac_path_FGREP_found && break 3
6580     done
6581   done
6582   done
6583 IFS=$as_save_IFS
6584   if test -z "$ac_cv_path_FGREP"; then
6585     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6586   fi
6587 else
6588   ac_cv_path_FGREP=$FGREP
6589 fi
6590
6591    fi
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6594 $as_echo "$ac_cv_path_FGREP" >&6; }
6595  FGREP="$ac_cv_path_FGREP"
6596
6597
6598 test -z "$GREP" && GREP=grep
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 # Check whether --with-gnu-ld was given.
6619 if test "${with_gnu_ld+set}" = set; then :
6620   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6621 else
6622   with_gnu_ld=no
6623 fi
6624
6625 ac_prog=ld
6626 if test "$GCC" = yes; then
6627   # Check if gcc -print-prog-name=ld gives a path.
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6629 $as_echo_n "checking for ld used by $CC... " >&6; }
6630   case $host in
6631   *-*-mingw*)
6632     # gcc leaves a trailing carriage return which upsets mingw
6633     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6634   *)
6635     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6636   esac
6637   case $ac_prog in
6638     # Accept absolute paths.
6639     [\\/]* | ?:[\\/]*)
6640       re_direlt='/[^/][^/]*/\.\./'
6641       # Canonicalize the pathname of ld
6642       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6643       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6644         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6645       done
6646       test -z "$LD" && LD="$ac_prog"
6647       ;;
6648   "")
6649     # If it fails, then pretend we aren't using GCC.
6650     ac_prog=ld
6651     ;;
6652   *)
6653     # If it is relative, then search for the first ld in PATH.
6654     with_gnu_ld=unknown
6655     ;;
6656   esac
6657 elif test "$with_gnu_ld" = yes; then
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6659 $as_echo_n "checking for GNU ld... " >&6; }
6660 else
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6662 $as_echo_n "checking for non-GNU ld... " >&6; }
6663 fi
6664 if ${lt_cv_path_LD+:} false; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   if test -z "$LD"; then
6668   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6669   for ac_dir in $PATH; do
6670     IFS="$lt_save_ifs"
6671     test -z "$ac_dir" && ac_dir=.
6672     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6673       lt_cv_path_LD="$ac_dir/$ac_prog"
6674       # Check to see if the program is GNU ld.  I'd rather use --version,
6675       # but apparently some variants of GNU ld only accept -v.
6676       # Break only if it was the GNU/non-GNU ld that we prefer.
6677       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6678       *GNU* | *'with BFD'*)
6679         test "$with_gnu_ld" != no && break
6680         ;;
6681       *)
6682         test "$with_gnu_ld" != yes && break
6683         ;;
6684       esac
6685     fi
6686   done
6687   IFS="$lt_save_ifs"
6688 else
6689   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6690 fi
6691 fi
6692
6693 LD="$lt_cv_path_LD"
6694 if test -n "$LD"; then
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6696 $as_echo "$LD" >&6; }
6697 else
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6703 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6704 if ${lt_cv_prog_gnu_ld+:} false; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6708 case `$LD -v 2>&1 </dev/null` in
6709 *GNU* | *'with BFD'*)
6710   lt_cv_prog_gnu_ld=yes
6711   ;;
6712 *)
6713   lt_cv_prog_gnu_ld=no
6714   ;;
6715 esac
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6718 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6719 with_gnu_ld=$lt_cv_prog_gnu_ld
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6730 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6731 if ${lt_cv_path_NM+:} false; then :
6732   $as_echo_n "(cached) " >&6
6733 else
6734   if test -n "$NM"; then
6735   # Let the user override the test.
6736   lt_cv_path_NM="$NM"
6737 else
6738   lt_nm_to_check="${ac_tool_prefix}nm"
6739   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6740     lt_nm_to_check="$lt_nm_to_check nm"
6741   fi
6742   for lt_tmp_nm in $lt_nm_to_check; do
6743     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6744     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6745       IFS="$lt_save_ifs"
6746       test -z "$ac_dir" && ac_dir=.
6747       tmp_nm="$ac_dir/$lt_tmp_nm"
6748       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6749         # Check to see if the nm accepts a BSD-compat flag.
6750         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6751         #   nm: unknown option "B" ignored
6752         # Tru64's nm complains that /dev/null is an invalid object file
6753         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6754         */dev/null* | *'Invalid file or object type'*)
6755           lt_cv_path_NM="$tmp_nm -B"
6756           break
6757           ;;
6758         *)
6759           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6760           */dev/null*)
6761             lt_cv_path_NM="$tmp_nm -p"
6762             break
6763             ;;
6764           *)
6765             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6766             continue # so that we can try to find one that supports BSD flags
6767             ;;
6768           esac
6769           ;;
6770         esac
6771       fi
6772     done
6773     IFS="$lt_save_ifs"
6774   done
6775   : ${lt_cv_path_NM=no}
6776 fi
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6779 $as_echo "$lt_cv_path_NM" >&6; }
6780 if test "$lt_cv_path_NM" != "no"; then
6781   NM="$lt_cv_path_NM"
6782 else
6783   # Didn't find any BSD compatible name lister, look for dumpbin.
6784   if test -n "$DUMPBIN"; then :
6785     # Let the user override the test.
6786   else
6787     if test -n "$ac_tool_prefix"; then
6788   for ac_prog in dumpbin "link -dump"
6789   do
6790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_DUMPBIN+:} false; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   if test -n "$DUMPBIN"; then
6798   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805     for ac_exec_ext in '' $ac_executable_extensions; do
6806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812   done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 DUMPBIN=$ac_cv_prog_DUMPBIN
6818 if test -n "$DUMPBIN"; then
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6820 $as_echo "$DUMPBIN" >&6; }
6821 else
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826
6827     test -n "$DUMPBIN" && break
6828   done
6829 fi
6830 if test -z "$DUMPBIN"; then
6831   ac_ct_DUMPBIN=$DUMPBIN
6832   for ac_prog in dumpbin "link -dump"
6833 do
6834   # Extract the first word of "$ac_prog", so it can be a program name with args.
6835 set dummy $ac_prog; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   if test -n "$ac_ct_DUMPBIN"; then
6842   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849     for ac_exec_ext in '' $ac_executable_extensions; do
6850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856   done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6862 if test -n "$ac_ct_DUMPBIN"; then
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6864 $as_echo "$ac_ct_DUMPBIN" >&6; }
6865 else
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870
6871   test -n "$ac_ct_DUMPBIN" && break
6872 done
6873
6874   if test "x$ac_ct_DUMPBIN" = x; then
6875     DUMPBIN=":"
6876   else
6877     case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883     DUMPBIN=$ac_ct_DUMPBIN
6884   fi
6885 fi
6886
6887     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6888     *COFF*)
6889       DUMPBIN="$DUMPBIN -symbols"
6890       ;;
6891     *)
6892       DUMPBIN=:
6893       ;;
6894     esac
6895   fi
6896
6897   if test "$DUMPBIN" != ":"; then
6898     NM="$DUMPBIN"
6899   fi
6900 fi
6901 test -z "$NM" && NM=nm
6902
6903
6904
6905
6906
6907
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6909 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6910 if ${lt_cv_nm_interface+:} false; then :
6911   $as_echo_n "(cached) " >&6
6912 else
6913   lt_cv_nm_interface="BSD nm"
6914   echo "int some_variable = 0;" > conftest.$ac_ext
6915   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6916   (eval "$ac_compile" 2>conftest.err)
6917   cat conftest.err >&5
6918   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6919   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6920   cat conftest.err >&5
6921   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6922   cat conftest.out >&5
6923   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6924     lt_cv_nm_interface="MS dumpbin"
6925   fi
6926   rm -f conftest*
6927 fi
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6929 $as_echo "$lt_cv_nm_interface" >&6; }
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6932 $as_echo_n "checking whether ln -s works... " >&6; }
6933 LN_S=$as_ln_s
6934 if test "$LN_S" = "ln -s"; then
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6936 $as_echo "yes" >&6; }
6937 else
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6939 $as_echo "no, using $LN_S" >&6; }
6940 fi
6941
6942 # find the maximum length of command line arguments
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6944 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6945 if ${lt_cv_sys_max_cmd_len+:} false; then :
6946   $as_echo_n "(cached) " >&6
6947 else
6948     i=0
6949   teststring="ABCD"
6950
6951   case $build_os in
6952   msdosdjgpp*)
6953     # On DJGPP, this test can blow up pretty badly due to problems in libc
6954     # (any single argument exceeding 2000 bytes causes a buffer overrun
6955     # during glob expansion).  Even if it were fixed, the result of this
6956     # check would be larger than it should be.
6957     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6958     ;;
6959
6960   gnu*)
6961     # Under GNU Hurd, this test is not required because there is
6962     # no limit to the length of command line arguments.
6963     # Libtool will interpret -1 as no limit whatsoever
6964     lt_cv_sys_max_cmd_len=-1;
6965     ;;
6966
6967   cygwin* | mingw* | cegcc*)
6968     # On Win9x/ME, this test blows up -- it succeeds, but takes
6969     # about 5 minutes as the teststring grows exponentially.
6970     # Worse, since 9x/ME are not pre-emptively multitasking,
6971     # you end up with a "frozen" computer, even though with patience
6972     # the test eventually succeeds (with a max line length of 256k).
6973     # Instead, let's just punt: use the minimum linelength reported by
6974     # all of the supported platforms: 8192 (on NT/2K/XP).
6975     lt_cv_sys_max_cmd_len=8192;
6976     ;;
6977
6978   mint*)
6979     # On MiNT this can take a long time and run out of memory.
6980     lt_cv_sys_max_cmd_len=8192;
6981     ;;
6982
6983   amigaos*)
6984     # On AmigaOS with pdksh, this test takes hours, literally.
6985     # So we just punt and use a minimum line length of 8192.
6986     lt_cv_sys_max_cmd_len=8192;
6987     ;;
6988
6989   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6990     # This has been around since 386BSD, at least.  Likely further.
6991     if test -x /sbin/sysctl; then
6992       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6993     elif test -x /usr/sbin/sysctl; then
6994       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6995     else
6996       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6997     fi
6998     # And add a safety zone
6999     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7000     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7001     ;;
7002
7003   interix*)
7004     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7005     lt_cv_sys_max_cmd_len=196608
7006     ;;
7007
7008   os2*)
7009     # The test takes a long time on OS/2.
7010     lt_cv_sys_max_cmd_len=8192
7011     ;;
7012
7013   osf*)
7014     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7015     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7016     # nice to cause kernel panics so lets avoid the loop below.
7017     # First set a reasonable default.
7018     lt_cv_sys_max_cmd_len=16384
7019     #
7020     if test -x /sbin/sysconfig; then
7021       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7022         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7023       esac
7024     fi
7025     ;;
7026   sco3.2v5*)
7027     lt_cv_sys_max_cmd_len=102400
7028     ;;
7029   sysv5* | sco5v6* | sysv4.2uw2*)
7030     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7031     if test -n "$kargmax"; then
7032       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7033     else
7034       lt_cv_sys_max_cmd_len=32768
7035     fi
7036     ;;
7037   *)
7038     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7039     if test -n "$lt_cv_sys_max_cmd_len"; then
7040       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7041       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7042     else
7043       # Make teststring a little bigger before we do anything with it.
7044       # a 1K string should be a reasonable start.
7045       for i in 1 2 3 4 5 6 7 8 ; do
7046         teststring=$teststring$teststring
7047       done
7048       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7049       # If test is not a shell built-in, we'll probably end up computing a
7050       # maximum length that is only half of the actual maximum length, but
7051       # we can't tell.
7052       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7053                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7054               test $i != 17 # 1/2 MB should be enough
7055       do
7056         i=`expr $i + 1`
7057         teststring=$teststring$teststring
7058       done
7059       # Only check the string length outside the loop.
7060       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7061       teststring=
7062       # Add a significant safety factor because C++ compilers can tack on
7063       # massive amounts of additional arguments before passing them to the
7064       # linker.  It appears as though 1/2 is a usable value.
7065       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7066     fi
7067     ;;
7068   esac
7069
7070 fi
7071
7072 if test -n $lt_cv_sys_max_cmd_len ; then
7073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7074 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7075 else
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7077 $as_echo "none" >&6; }
7078 fi
7079 max_cmd_len=$lt_cv_sys_max_cmd_len
7080
7081
7082
7083
7084
7085
7086 : ${CP="cp -f"}
7087 : ${MV="mv -f"}
7088 : ${RM="rm -f"}
7089
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7091 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7092 # Try some XSI features
7093 xsi_shell=no
7094 ( _lt_dummy="a/b/c"
7095   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7096       = c,a/b,b/c, \
7097     && eval 'test $(( 1 + 1 )) -eq 2 \
7098     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7099   && xsi_shell=yes
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7101 $as_echo "$xsi_shell" >&6; }
7102
7103
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7105 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7106 lt_shell_append=no
7107 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7108     >/dev/null 2>&1 \
7109   && lt_shell_append=yes
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7111 $as_echo "$lt_shell_append" >&6; }
7112
7113
7114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7115   lt_unset=unset
7116 else
7117   lt_unset=false
7118 fi
7119
7120
7121
7122
7123
7124 # test EBCDIC or ASCII
7125 case `echo X|tr X '\101'` in
7126  A) # ASCII based system
7127     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7128   lt_SP2NL='tr \040 \012'
7129   lt_NL2SP='tr \015\012 \040\040'
7130   ;;
7131  *) # EBCDIC based system
7132   lt_SP2NL='tr \100 \n'
7133   lt_NL2SP='tr \r\n \100\100'
7134   ;;
7135 esac
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7146 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7147 if ${lt_cv_to_host_file_cmd+:} false; then :
7148   $as_echo_n "(cached) " >&6
7149 else
7150   case $host in
7151   *-*-mingw* )
7152     case $build in
7153       *-*-mingw* ) # actually msys
7154         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7155         ;;
7156       *-*-cygwin* )
7157         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7158         ;;
7159       * ) # otherwise, assume *nix
7160         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7161         ;;
7162     esac
7163     ;;
7164   *-*-cygwin* )
7165     case $build in
7166       *-*-mingw* ) # actually msys
7167         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7168         ;;
7169       *-*-cygwin* )
7170         lt_cv_to_host_file_cmd=func_convert_file_noop
7171         ;;
7172       * ) # otherwise, assume *nix
7173         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7174         ;;
7175     esac
7176     ;;
7177   * ) # unhandled hosts (and "normal" native builds)
7178     lt_cv_to_host_file_cmd=func_convert_file_noop
7179     ;;
7180 esac
7181
7182 fi
7183
7184 to_host_file_cmd=$lt_cv_to_host_file_cmd
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7186 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7187
7188
7189
7190
7191
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7193 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7194 if ${lt_cv_to_tool_file_cmd+:} false; then :
7195   $as_echo_n "(cached) " >&6
7196 else
7197   #assume ordinary cross tools, or native build.
7198 lt_cv_to_tool_file_cmd=func_convert_file_noop
7199 case $host in
7200   *-*-mingw* )
7201     case $build in
7202       *-*-mingw* ) # actually msys
7203         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7204         ;;
7205     esac
7206     ;;
7207 esac
7208
7209 fi
7210
7211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7213 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7214
7215
7216
7217
7218
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7220 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7221 if ${lt_cv_ld_reload_flag+:} false; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   lt_cv_ld_reload_flag='-r'
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7227 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7228 reload_flag=$lt_cv_ld_reload_flag
7229 case $reload_flag in
7230 "" | " "*) ;;
7231 *) reload_flag=" $reload_flag" ;;
7232 esac
7233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7234 case $host_os in
7235   cygwin* | mingw* | pw32* | cegcc*)
7236     if test "$GCC" != yes; then
7237       reload_cmds=false
7238     fi
7239     ;;
7240   darwin*)
7241     if test "$GCC" = yes; then
7242       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7243     else
7244       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7245     fi
7246     ;;
7247 esac
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257 if test -n "$ac_tool_prefix"; then
7258   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_OBJDUMP+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   if test -n "$OBJDUMP"; then
7266   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273     for ac_exec_ext in '' $ac_executable_extensions; do
7274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280   done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 OBJDUMP=$ac_cv_prog_OBJDUMP
7286 if test -n "$OBJDUMP"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7288 $as_echo "$OBJDUMP" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294
7295 fi
7296 if test -z "$ac_cv_prog_OBJDUMP"; then
7297   ac_ct_OBJDUMP=$OBJDUMP
7298   # Extract the first word of "objdump", so it can be a program name with args.
7299 set dummy objdump; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   if test -n "$ac_ct_OBJDUMP"; then
7306   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7326 if test -n "$ac_ct_OBJDUMP"; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7328 $as_echo "$ac_ct_OBJDUMP" >&6; }
7329 else
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334   if test "x$ac_ct_OBJDUMP" = x; then
7335     OBJDUMP="false"
7336   else
7337     case $cross_compiling:$ac_tool_warned in
7338 yes:)
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7342 esac
7343     OBJDUMP=$ac_ct_OBJDUMP
7344   fi
7345 else
7346   OBJDUMP="$ac_cv_prog_OBJDUMP"
7347 fi
7348
7349 test -z "$OBJDUMP" && OBJDUMP=objdump
7350
7351
7352
7353
7354
7355
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7357 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7358 if ${lt_cv_deplibs_check_method+:} false; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361   lt_cv_file_magic_cmd='$MAGIC_CMD'
7362 lt_cv_file_magic_test_file=
7363 lt_cv_deplibs_check_method='unknown'
7364 # Need to set the preceding variable on all platforms that support
7365 # interlibrary dependencies.
7366 # 'none' -- dependencies not supported.
7367 # `unknown' -- same as none, but documents that we really don't know.
7368 # 'pass_all' -- all dependencies passed with no checks.
7369 # 'test_compile' -- check by making test program.
7370 # 'file_magic [[regex]]' -- check by looking for files in library path
7371 # which responds to the $file_magic_cmd with a given extended regex.
7372 # If you have `file' or equivalent on your system and you're not sure
7373 # whether `pass_all' will *always* work, you probably want this one.
7374
7375 case $host_os in
7376 aix[4-9]*)
7377   lt_cv_deplibs_check_method=pass_all
7378   ;;
7379
7380 beos*)
7381   lt_cv_deplibs_check_method=pass_all
7382   ;;
7383
7384 bsdi[45]*)
7385   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7386   lt_cv_file_magic_cmd='/usr/bin/file -L'
7387   lt_cv_file_magic_test_file=/shlib/libc.so
7388   ;;
7389
7390 cygwin*)
7391   # func_win32_libid is a shell function defined in ltmain.sh
7392   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7393   lt_cv_file_magic_cmd='func_win32_libid'
7394   ;;
7395
7396 mingw* | pw32*)
7397   # Base MSYS/MinGW do not provide the 'file' command needed by
7398   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7399   # unless we find 'file', for example because we are cross-compiling.
7400   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7401   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7402     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7403     lt_cv_file_magic_cmd='func_win32_libid'
7404   else
7405     # Keep this pattern in sync with the one in func_win32_libid.
7406     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7407     lt_cv_file_magic_cmd='$OBJDUMP -f'
7408   fi
7409   ;;
7410
7411 cegcc*)
7412   # use the weaker test based on 'objdump'. See mingw*.
7413   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7414   lt_cv_file_magic_cmd='$OBJDUMP -f'
7415   ;;
7416
7417 darwin* | rhapsody*)
7418   lt_cv_deplibs_check_method=pass_all
7419   ;;
7420
7421 freebsd* | dragonfly*)
7422   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7423     case $host_cpu in
7424     i*86 )
7425       # Not sure whether the presence of OpenBSD here was a mistake.
7426       # Let's accept both of them until this is cleared up.
7427       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7428       lt_cv_file_magic_cmd=/usr/bin/file
7429       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7430       ;;
7431     esac
7432   else
7433     lt_cv_deplibs_check_method=pass_all
7434   fi
7435   ;;
7436
7437 gnu*)
7438   lt_cv_deplibs_check_method=pass_all
7439   ;;
7440
7441 haiku*)
7442   lt_cv_deplibs_check_method=pass_all
7443   ;;
7444
7445 hpux10.20* | hpux11*)
7446   lt_cv_file_magic_cmd=/usr/bin/file
7447   case $host_cpu in
7448   ia64*)
7449     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7450     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7451     ;;
7452   hppa*64*)
7453     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]'
7454     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7455     ;;
7456   *)
7457     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7458     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7459     ;;
7460   esac
7461   ;;
7462
7463 interix[3-9]*)
7464   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7465   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7466   ;;
7467
7468 irix5* | irix6* | nonstopux*)
7469   case $LD in
7470   *-32|*"-32 ") libmagic=32-bit;;
7471   *-n32|*"-n32 ") libmagic=N32;;
7472   *-64|*"-64 ") libmagic=64-bit;;
7473   *) libmagic=never-match;;
7474   esac
7475   lt_cv_deplibs_check_method=pass_all
7476   ;;
7477
7478 # This must be glibc/ELF.
7479 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7480   lt_cv_deplibs_check_method=pass_all
7481   ;;
7482
7483 netbsd* | netbsdelf*-gnu)
7484   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7485     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7486   else
7487     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7488   fi
7489   ;;
7490
7491 newos6*)
7492   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7493   lt_cv_file_magic_cmd=/usr/bin/file
7494   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7495   ;;
7496
7497 *nto* | *qnx*)
7498   lt_cv_deplibs_check_method=pass_all
7499   ;;
7500
7501 openbsd*)
7502   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7504   else
7505     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7506   fi
7507   ;;
7508
7509 osf3* | osf4* | osf5*)
7510   lt_cv_deplibs_check_method=pass_all
7511   ;;
7512
7513 rdos*)
7514   lt_cv_deplibs_check_method=pass_all
7515   ;;
7516
7517 solaris*)
7518   lt_cv_deplibs_check_method=pass_all
7519   ;;
7520
7521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7522   lt_cv_deplibs_check_method=pass_all
7523   ;;
7524
7525 sysv4 | sysv4.3*)
7526   case $host_vendor in
7527   motorola)
7528     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]'
7529     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7530     ;;
7531   ncr)
7532     lt_cv_deplibs_check_method=pass_all
7533     ;;
7534   sequent)
7535     lt_cv_file_magic_cmd='/bin/file'
7536     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7537     ;;
7538   sni)
7539     lt_cv_file_magic_cmd='/bin/file'
7540     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7541     lt_cv_file_magic_test_file=/lib/libc.so
7542     ;;
7543   siemens)
7544     lt_cv_deplibs_check_method=pass_all
7545     ;;
7546   pc)
7547     lt_cv_deplibs_check_method=pass_all
7548     ;;
7549   esac
7550   ;;
7551
7552 tpf*)
7553   lt_cv_deplibs_check_method=pass_all
7554   ;;
7555 esac
7556
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7559 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7560
7561 file_magic_glob=
7562 want_nocaseglob=no
7563 if test "$build" = "$host"; then
7564   case $host_os in
7565   mingw* | pw32*)
7566     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7567       want_nocaseglob=yes
7568     else
7569       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7570     fi
7571     ;;
7572   esac
7573 fi
7574
7575 file_magic_cmd=$lt_cv_file_magic_cmd
7576 deplibs_check_method=$lt_cv_deplibs_check_method
7577 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600 if test -n "$ac_tool_prefix"; then
7601   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_prog_DLLTOOL+:} false; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   if test -n "$DLLTOOL"; then
7609   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614   IFS=$as_save_IFS
7615   test -z "$as_dir" && as_dir=.
7616     for ac_exec_ext in '' $ac_executable_extensions; do
7617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620     break 2
7621   fi
7622 done
7623   done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 DLLTOOL=$ac_cv_prog_DLLTOOL
7629 if test -n "$DLLTOOL"; then
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7631 $as_echo "$DLLTOOL" >&6; }
7632 else
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 fi
7639 if test -z "$ac_cv_prog_DLLTOOL"; then
7640   ac_ct_DLLTOOL=$DLLTOOL
7641   # Extract the first word of "dlltool", so it can be a program name with args.
7642 set dummy dlltool; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   if test -n "$ac_ct_DLLTOOL"; then
7649   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656     for ac_exec_ext in '' $ac_executable_extensions; do
7657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660     break 2
7661   fi
7662 done
7663   done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7669 if test -n "$ac_ct_DLLTOOL"; then
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7671 $as_echo "$ac_ct_DLLTOOL" >&6; }
7672 else
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676
7677   if test "x$ac_ct_DLLTOOL" = x; then
7678     DLLTOOL="false"
7679   else
7680     case $cross_compiling:$ac_tool_warned in
7681 yes:)
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684 ac_tool_warned=yes ;;
7685 esac
7686     DLLTOOL=$ac_ct_DLLTOOL
7687   fi
7688 else
7689   DLLTOOL="$ac_cv_prog_DLLTOOL"
7690 fi
7691
7692 test -z "$DLLTOOL" && DLLTOOL=dlltool
7693
7694
7695
7696
7697
7698
7699
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7701 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7702 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7703   $as_echo_n "(cached) " >&6
7704 else
7705   lt_cv_sharedlib_from_linklib_cmd='unknown'
7706
7707 case $host_os in
7708 cygwin* | mingw* | pw32* | cegcc*)
7709   # two different shell functions defined in ltmain.sh
7710   # decide which to use based on capabilities of $DLLTOOL
7711   case `$DLLTOOL --help 2>&1` in
7712   *--identify-strict*)
7713     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7714     ;;
7715   *)
7716     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7717     ;;
7718   esac
7719   ;;
7720 *)
7721   # fallback: assume linklib IS sharedlib
7722   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7723   ;;
7724 esac
7725
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7728 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7729 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7730 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7731
7732
7733
7734
7735
7736
7737
7738 if test -n "$ac_tool_prefix"; then
7739   for ac_prog in ar
7740   do
7741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_prog_AR+:} false; then :
7746   $as_echo_n "(cached) " >&6
7747 else
7748   if test -n "$AR"; then
7749   ac_cv_prog_AR="$AR" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754   IFS=$as_save_IFS
7755   test -z "$as_dir" && as_dir=.
7756     for ac_exec_ext in '' $ac_executable_extensions; do
7757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760     break 2
7761   fi
7762 done
7763   done
7764 IFS=$as_save_IFS
7765
7766 fi
7767 fi
7768 AR=$ac_cv_prog_AR
7769 if test -n "$AR"; then
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7771 $as_echo "$AR" >&6; }
7772 else
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7775 fi
7776
7777
7778     test -n "$AR" && break
7779   done
7780 fi
7781 if test -z "$AR"; then
7782   ac_ct_AR=$AR
7783   for ac_prog in ar
7784 do
7785   # Extract the first word of "$ac_prog", so it can be a program name with args.
7786 set dummy $ac_prog; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792   if test -n "$ac_ct_AR"; then
7793   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798   IFS=$as_save_IFS
7799   test -z "$as_dir" && as_dir=.
7800     for ac_exec_ext in '' $ac_executable_extensions; do
7801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802     ac_cv_prog_ac_ct_AR="$ac_prog"
7803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804     break 2
7805   fi
7806 done
7807   done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7813 if test -n "$ac_ct_AR"; then
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7815 $as_echo "$ac_ct_AR" >&6; }
7816 else
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822   test -n "$ac_ct_AR" && break
7823 done
7824
7825   if test "x$ac_ct_AR" = x; then
7826     AR="false"
7827   else
7828     case $cross_compiling:$ac_tool_warned in
7829 yes:)
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832 ac_tool_warned=yes ;;
7833 esac
7834     AR=$ac_ct_AR
7835   fi
7836 fi
7837
7838 : ${AR=ar}
7839 : ${AR_FLAGS=cru}
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7852 $as_echo_n "checking for archiver @FILE support... " >&6; }
7853 if ${lt_cv_ar_at_file+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   lt_cv_ar_at_file=no
7857    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h.  */
7859
7860 int
7861 main ()
7862 {
7863
7864   ;
7865   return 0;
7866 }
7867 _ACEOF
7868 if ac_fn_c_try_compile "$LINENO"; then :
7869   echo conftest.$ac_objext > conftest.lst
7870       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7871       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7872   (eval $lt_ar_try) 2>&5
7873   ac_status=$?
7874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875   test $ac_status = 0; }
7876       if test "$ac_status" -eq 0; then
7877         # Ensure the archiver fails upon bogus file names.
7878         rm -f conftest.$ac_objext libconftest.a
7879         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7880   (eval $lt_ar_try) 2>&5
7881   ac_status=$?
7882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883   test $ac_status = 0; }
7884         if test "$ac_status" -ne 0; then
7885           lt_cv_ar_at_file=@
7886         fi
7887       fi
7888       rm -f conftest.* libconftest.a
7889
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7895 $as_echo "$lt_cv_ar_at_file" >&6; }
7896
7897 if test "x$lt_cv_ar_at_file" = xno; then
7898   archiver_list_spec=
7899 else
7900   archiver_list_spec=$lt_cv_ar_at_file
7901 fi
7902
7903
7904
7905
7906
7907
7908
7909 if test -n "$ac_tool_prefix"; then
7910   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}strip; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_prog_STRIP+:} false; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   if test -n "$STRIP"; then
7918   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925     for ac_exec_ext in '' $ac_executable_extensions; do
7926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932   done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 STRIP=$ac_cv_prog_STRIP
7938 if test -n "$STRIP"; then
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7940 $as_echo "$STRIP" >&6; }
7941 else
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_STRIP"; then
7949   ac_ct_STRIP=$STRIP
7950   # Extract the first word of "strip", so it can be a program name with args.
7951 set dummy strip; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7955   $as_echo_n "(cached) " >&6
7956 else
7957   if test -n "$ac_ct_STRIP"; then
7958   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965     for ac_exec_ext in '' $ac_executable_extensions; do
7966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967     ac_cv_prog_ac_ct_STRIP="strip"
7968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969     break 2
7970   fi
7971 done
7972   done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7978 if test -n "$ac_ct_STRIP"; then
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7980 $as_echo "$ac_ct_STRIP" >&6; }
7981 else
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986   if test "x$ac_ct_STRIP" = x; then
7987     STRIP=":"
7988   else
7989     case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993 ac_tool_warned=yes ;;
7994 esac
7995     STRIP=$ac_ct_STRIP
7996   fi
7997 else
7998   STRIP="$ac_cv_prog_STRIP"
7999 fi
8000
8001 test -z "$STRIP" && STRIP=:
8002
8003
8004
8005
8006
8007
8008 if test -n "$ac_tool_prefix"; then
8009   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_RANLIB+:} false; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   if test -n "$RANLIB"; then
8017   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024     for ac_exec_ext in '' $ac_executable_extensions; do
8025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031   done
8032 IFS=$as_save_IFS
8033
8034 fi
8035 fi
8036 RANLIB=$ac_cv_prog_RANLIB
8037 if test -n "$RANLIB"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8039 $as_echo "$RANLIB" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045
8046 fi
8047 if test -z "$ac_cv_prog_RANLIB"; then
8048   ac_ct_RANLIB=$RANLIB
8049   # Extract the first word of "ranlib", so it can be a program name with args.
8050 set dummy ranlib; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   if test -n "$ac_ct_RANLIB"; then
8057   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064     for ac_exec_ext in '' $ac_executable_extensions; do
8065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066     ac_cv_prog_ac_ct_RANLIB="ranlib"
8067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071   done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8077 if test -n "$ac_ct_RANLIB"; then
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8079 $as_echo "$ac_ct_RANLIB" >&6; }
8080 else
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085   if test "x$ac_ct_RANLIB" = x; then
8086     RANLIB=":"
8087   else
8088     case $cross_compiling:$ac_tool_warned in
8089 yes:)
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8092 ac_tool_warned=yes ;;
8093 esac
8094     RANLIB=$ac_ct_RANLIB
8095   fi
8096 else
8097   RANLIB="$ac_cv_prog_RANLIB"
8098 fi
8099
8100 test -z "$RANLIB" && RANLIB=:
8101
8102
8103
8104
8105
8106
8107 # Determine commands to create old-style static archives.
8108 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8109 old_postinstall_cmds='chmod 644 $oldlib'
8110 old_postuninstall_cmds=
8111
8112 if test -n "$RANLIB"; then
8113   case $host_os in
8114   openbsd*)
8115     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8116     ;;
8117   *)
8118     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8119     ;;
8120   esac
8121   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8122 fi
8123
8124 case $host_os in
8125   darwin*)
8126     lock_old_archive_extraction=yes ;;
8127   *)
8128     lock_old_archive_extraction=no ;;
8129 esac
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169 # If no C compiler was specified, use CC.
8170 LTCC=${LTCC-"$CC"}
8171
8172 # If no C compiler flags were specified, use CFLAGS.
8173 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8174
8175 # Allow CC to be a program name with arguments.
8176 compiler=$CC
8177
8178
8179 # Check for command to grab the raw symbol name followed by C symbol from nm.
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8181 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8182 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8183   $as_echo_n "(cached) " >&6
8184 else
8185
8186 # These are sane defaults that work on at least a few old systems.
8187 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8188
8189 # Character class describing NM global symbol codes.
8190 symcode='[BCDEGRST]'
8191
8192 # Regexp to match symbols that can be accessed directly from C.
8193 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8194
8195 # Define system-specific variables.
8196 case $host_os in
8197 aix*)
8198   symcode='[BCDT]'
8199   ;;
8200 cygwin* | mingw* | pw32* | cegcc*)
8201   symcode='[ABCDGISTW]'
8202   ;;
8203 hpux*)
8204   if test "$host_cpu" = ia64; then
8205     symcode='[ABCDEGRST]'
8206   fi
8207   ;;
8208 irix* | nonstopux*)
8209   symcode='[BCDEGRST]'
8210   ;;
8211 osf*)
8212   symcode='[BCDEGQRST]'
8213   ;;
8214 solaris*)
8215   symcode='[BDRT]'
8216   ;;
8217 sco3.2v5*)
8218   symcode='[DT]'
8219   ;;
8220 sysv4.2uw2*)
8221   symcode='[DT]'
8222   ;;
8223 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8224   symcode='[ABDT]'
8225   ;;
8226 sysv4)
8227   symcode='[DFNSTU]'
8228   ;;
8229 esac
8230
8231 # If we're using GNU nm, then use its standard symbol codes.
8232 case `$NM -V 2>&1` in
8233 *GNU* | *'with BFD'*)
8234   symcode='[ABCDGIRSTW]' ;;
8235 esac
8236
8237 # Transform an extracted symbol line into a proper C declaration.
8238 # Some systems (esp. on ia64) link data and code symbols differently,
8239 # so use this general approach.
8240 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8241
8242 # Transform an extracted symbol line into symbol name and symbol address
8243 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8244 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'"
8245
8246 # Handle CRLF in mingw tool chain
8247 opt_cr=
8248 case $build_os in
8249 mingw*)
8250   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8251   ;;
8252 esac
8253
8254 # Try without a prefix underscore, then with it.
8255 for ac_symprfx in "" "_"; do
8256
8257   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8258   symxfrm="\\1 $ac_symprfx\\2 \\2"
8259
8260   # Write the raw and C identifiers.
8261   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8262     # Fake it for dumpbin and say T for any non-static function
8263     # and D for any global variable.
8264     # Also find C++ and __fastcall symbols from MSVC++,
8265     # which start with @ or ?.
8266     lt_cv_sys_global_symbol_pipe="$AWK '"\
8267 "     {last_section=section; section=\$ 3};"\
8268 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8269 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8270 "     \$ 0!~/External *\|/{next};"\
8271 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8272 "     {if(hide[section]) next};"\
8273 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8274 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8275 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8276 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8277 "     ' prfx=^$ac_symprfx"
8278   else
8279     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8280   fi
8281   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8282
8283   # Check to see that the pipe works correctly.
8284   pipe_works=no
8285
8286   rm -f conftest*
8287   cat > conftest.$ac_ext <<_LT_EOF
8288 #ifdef __cplusplus
8289 extern "C" {
8290 #endif
8291 char nm_test_var;
8292 void nm_test_func(void);
8293 void nm_test_func(void){}
8294 #ifdef __cplusplus
8295 }
8296 #endif
8297 int main(){nm_test_var='a';nm_test_func();return(0);}
8298 _LT_EOF
8299
8300   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8301   (eval $ac_compile) 2>&5
8302   ac_status=$?
8303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8304   test $ac_status = 0; }; then
8305     # Now try to grab the symbols.
8306     nlist=conftest.nm
8307     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8308   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8309   ac_status=$?
8310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8311   test $ac_status = 0; } && test -s "$nlist"; then
8312       # Try sorting and uniquifying the output.
8313       if sort "$nlist" | uniq > "$nlist"T; then
8314         mv -f "$nlist"T "$nlist"
8315       else
8316         rm -f "$nlist"T
8317       fi
8318
8319       # Make sure that we snagged all the symbols we need.
8320       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8321         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8322           cat <<_LT_EOF > conftest.$ac_ext
8323 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8324 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8325 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8326    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8327 # define LT_DLSYM_CONST
8328 #elif defined(__osf__)
8329 /* This system does not cope well with relocations in const data.  */
8330 # define LT_DLSYM_CONST
8331 #else
8332 # define LT_DLSYM_CONST const
8333 #endif
8334
8335 #ifdef __cplusplus
8336 extern "C" {
8337 #endif
8338
8339 _LT_EOF
8340           # Now generate the symbol file.
8341           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8342
8343           cat <<_LT_EOF >> conftest.$ac_ext
8344
8345 /* The mapping between symbol names and symbols.  */
8346 LT_DLSYM_CONST struct {
8347   const char *name;
8348   void       *address;
8349 }
8350 lt__PROGRAM__LTX_preloaded_symbols[] =
8351 {
8352   { "@PROGRAM@", (void *) 0 },
8353 _LT_EOF
8354           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8355           cat <<\_LT_EOF >> conftest.$ac_ext
8356   {0, (void *) 0}
8357 };
8358
8359 /* This works around a problem in FreeBSD linker */
8360 #ifdef FREEBSD_WORKAROUND
8361 static const void *lt_preloaded_setup() {
8362   return lt__PROGRAM__LTX_preloaded_symbols;
8363 }
8364 #endif
8365
8366 #ifdef __cplusplus
8367 }
8368 #endif
8369 _LT_EOF
8370           # Now try linking the two files.
8371           mv conftest.$ac_objext conftstm.$ac_objext
8372           lt_globsym_save_LIBS=$LIBS
8373           lt_globsym_save_CFLAGS=$CFLAGS
8374           LIBS="conftstm.$ac_objext"
8375           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8376           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8377   (eval $ac_link) 2>&5
8378   ac_status=$?
8379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8380   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8381             pipe_works=yes
8382           fi
8383           LIBS=$lt_globsym_save_LIBS
8384           CFLAGS=$lt_globsym_save_CFLAGS
8385         else
8386           echo "cannot find nm_test_func in $nlist" >&5
8387         fi
8388       else
8389         echo "cannot find nm_test_var in $nlist" >&5
8390       fi
8391     else
8392       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8393     fi
8394   else
8395     echo "$progname: failed program was:" >&5
8396     cat conftest.$ac_ext >&5
8397   fi
8398   rm -rf conftest* conftst*
8399
8400   # Do not use the global_symbol_pipe unless it works.
8401   if test "$pipe_works" = yes; then
8402     break
8403   else
8404     lt_cv_sys_global_symbol_pipe=
8405   fi
8406 done
8407
8408 fi
8409
8410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8411   lt_cv_sys_global_symbol_to_cdecl=
8412 fi
8413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8415 $as_echo "failed" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8418 $as_echo "ok" >&6; }
8419 fi
8420
8421 # Response file support.
8422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8423   nm_file_list_spec='@'
8424 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8425   nm_file_list_spec='@'
8426 fi
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8455 $as_echo_n "checking for sysroot... " >&6; }
8456
8457 # Check whether --with-sysroot was given.
8458 if test "${with_sysroot+set}" = set; then :
8459   withval=$with_sysroot;
8460 else
8461   with_sysroot=no
8462 fi
8463
8464
8465 lt_sysroot=
8466 case ${with_sysroot} in #(
8467  yes)
8468    if test "$GCC" = yes; then
8469      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8470    fi
8471    ;; #(
8472  /*)
8473    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8474    ;; #(
8475  no|'')
8476    ;; #(
8477  *)
8478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8479 $as_echo "${with_sysroot}" >&6; }
8480    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8481    ;;
8482 esac
8483
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8485 $as_echo "${lt_sysroot:-no}" >&6; }
8486
8487
8488
8489
8490
8491 # Check whether --enable-libtool-lock was given.
8492 if test "${enable_libtool_lock+set}" = set; then :
8493   enableval=$enable_libtool_lock;
8494 fi
8495
8496 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8497
8498 # Some flags need to be propagated to the compiler or linker for good
8499 # libtool support.
8500 case $host in
8501 ia64-*-hpux*)
8502   # Find out which ABI we are using.
8503   echo 'int i;' > conftest.$ac_ext
8504   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8505   (eval $ac_compile) 2>&5
8506   ac_status=$?
8507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8508   test $ac_status = 0; }; then
8509     case `/usr/bin/file conftest.$ac_objext` in
8510       *ELF-32*)
8511         HPUX_IA64_MODE="32"
8512         ;;
8513       *ELF-64*)
8514         HPUX_IA64_MODE="64"
8515         ;;
8516     esac
8517   fi
8518   rm -rf conftest*
8519   ;;
8520 *-*-irix6*)
8521   # Find out which ABI we are using.
8522   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8523   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8524   (eval $ac_compile) 2>&5
8525   ac_status=$?
8526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8527   test $ac_status = 0; }; then
8528     if test "$lt_cv_prog_gnu_ld" = yes; then
8529       case `/usr/bin/file conftest.$ac_objext` in
8530         *32-bit*)
8531           LD="${LD-ld} -melf32bsmip"
8532           ;;
8533         *N32*)
8534           LD="${LD-ld} -melf32bmipn32"
8535           ;;
8536         *64-bit*)
8537           LD="${LD-ld} -melf64bmip"
8538         ;;
8539       esac
8540     else
8541       case `/usr/bin/file conftest.$ac_objext` in
8542         *32-bit*)
8543           LD="${LD-ld} -32"
8544           ;;
8545         *N32*)
8546           LD="${LD-ld} -n32"
8547           ;;
8548         *64-bit*)
8549           LD="${LD-ld} -64"
8550           ;;
8551       esac
8552     fi
8553   fi
8554   rm -rf conftest*
8555   ;;
8556
8557 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8558 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8559   # Find out which ABI we are using.
8560   echo 'int i;' > conftest.$ac_ext
8561   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8562   (eval $ac_compile) 2>&5
8563   ac_status=$?
8564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8565   test $ac_status = 0; }; then
8566     case `/usr/bin/file conftest.o` in
8567       *32-bit*)
8568         case $host in
8569           x86_64-*kfreebsd*-gnu)
8570             LD="${LD-ld} -m elf_i386_fbsd"
8571             ;;
8572           x86_64-*linux*)
8573             LD="${LD-ld} -m elf_i386"
8574             ;;
8575           ppc64-*linux*|powerpc64-*linux*)
8576             LD="${LD-ld} -m elf32ppclinux"
8577             ;;
8578           s390x-*linux*)
8579             LD="${LD-ld} -m elf_s390"
8580             ;;
8581           sparc64-*linux*)
8582             LD="${LD-ld} -m elf32_sparc"
8583             ;;
8584         esac
8585         ;;
8586       *64-bit*)
8587         case $host in
8588           x86_64-*kfreebsd*-gnu)
8589             LD="${LD-ld} -m elf_x86_64_fbsd"
8590             ;;
8591           x86_64-*linux*)
8592             LD="${LD-ld} -m elf_x86_64"
8593             ;;
8594           ppc*-*linux*|powerpc*-*linux*)
8595             LD="${LD-ld} -m elf64ppc"
8596             ;;
8597           s390*-*linux*|s390*-*tpf*)
8598             LD="${LD-ld} -m elf64_s390"
8599             ;;
8600           sparc*-*linux*)
8601             LD="${LD-ld} -m elf64_sparc"
8602             ;;
8603         esac
8604         ;;
8605     esac
8606   fi
8607   rm -rf conftest*
8608   ;;
8609
8610 *-*-sco3.2v5*)
8611   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8612   SAVE_CFLAGS="$CFLAGS"
8613   CFLAGS="$CFLAGS -belf"
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8615 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8616 if ${lt_cv_cc_needs_belf+:} false; then :
8617   $as_echo_n "(cached) " >&6
8618 else
8619   ac_ext=c
8620 ac_cpp='$CPP $CPPFLAGS'
8621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8624
8625      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h.  */
8627
8628 int
8629 main ()
8630 {
8631
8632   ;
8633   return 0;
8634 }
8635 _ACEOF
8636 if ac_fn_c_try_link "$LINENO"; then :
8637   lt_cv_cc_needs_belf=yes
8638 else
8639   lt_cv_cc_needs_belf=no
8640 fi
8641 rm -f core conftest.err conftest.$ac_objext \
8642     conftest$ac_exeext conftest.$ac_ext
8643      ac_ext=c
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8651 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8652   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8653     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8654     CFLAGS="$SAVE_CFLAGS"
8655   fi
8656   ;;
8657 *-*solaris*)
8658   # Find out which ABI we are using.
8659   echo 'int i;' > conftest.$ac_ext
8660   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8661   (eval $ac_compile) 2>&5
8662   ac_status=$?
8663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8664   test $ac_status = 0; }; then
8665     case `/usr/bin/file conftest.o` in
8666     *64-bit*)
8667       case $lt_cv_prog_gnu_ld in
8668       yes*)
8669         case $host in
8670         i?86-*-solaris*)
8671           LD="${LD-ld} -m elf_x86_64"
8672           ;;
8673         sparc*-*-solaris*)
8674           LD="${LD-ld} -m elf64_sparc"
8675           ;;
8676         esac
8677         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8678         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8679           LD="${LD-ld}_sol2"
8680         fi
8681         ;;
8682       *)
8683         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8684           LD="${LD-ld} -64"
8685         fi
8686         ;;
8687       esac
8688       ;;
8689     esac
8690   fi
8691   rm -rf conftest*
8692   ;;
8693 esac
8694
8695 need_locks="$enable_libtool_lock"
8696
8697 if test -n "$ac_tool_prefix"; then
8698   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8699 set dummy ${ac_tool_prefix}mt; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8703   $as_echo_n "(cached) " >&6
8704 else
8705   if test -n "$MANIFEST_TOOL"; then
8706   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8707 else
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 for as_dir in $PATH
8710 do
8711   IFS=$as_save_IFS
8712   test -z "$as_dir" && as_dir=.
8713     for ac_exec_ext in '' $ac_executable_extensions; do
8714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8715     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717     break 2
8718   fi
8719 done
8720   done
8721 IFS=$as_save_IFS
8722
8723 fi
8724 fi
8725 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8726 if test -n "$MANIFEST_TOOL"; then
8727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8728 $as_echo "$MANIFEST_TOOL" >&6; }
8729 else
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8732 fi
8733
8734
8735 fi
8736 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8737   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8738   # Extract the first word of "mt", so it can be a program name with args.
8739 set dummy mt; ac_word=$2
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741 $as_echo_n "checking for $ac_word... " >&6; }
8742 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8743   $as_echo_n "(cached) " >&6
8744 else
8745   if test -n "$ac_ct_MANIFEST_TOOL"; then
8746   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8747 else
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8750 do
8751   IFS=$as_save_IFS
8752   test -z "$as_dir" && as_dir=.
8753     for ac_exec_ext in '' $ac_executable_extensions; do
8754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8755     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8757     break 2
8758   fi
8759 done
8760   done
8761 IFS=$as_save_IFS
8762
8763 fi
8764 fi
8765 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8766 if test -n "$ac_ct_MANIFEST_TOOL"; then
8767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8768 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8769 else
8770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8772 fi
8773
8774   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8775     MANIFEST_TOOL=":"
8776   else
8777     case $cross_compiling:$ac_tool_warned in
8778 yes:)
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8781 ac_tool_warned=yes ;;
8782 esac
8783     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8784   fi
8785 else
8786   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8787 fi
8788
8789 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8791 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8792 if ${lt_cv_path_mainfest_tool+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   lt_cv_path_mainfest_tool=no
8796   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8797   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8798   cat conftest.err >&5
8799   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8800     lt_cv_path_mainfest_tool=yes
8801   fi
8802   rm -f conftest*
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8805 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8806 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8807   MANIFEST_TOOL=:
8808 fi
8809
8810
8811
8812
8813
8814
8815   case $host_os in
8816     rhapsody* | darwin*)
8817     if test -n "$ac_tool_prefix"; then
8818   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8819 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8823   $as_echo_n "(cached) " >&6
8824 else
8825   if test -n "$DSYMUTIL"; then
8826   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8830 do
8831   IFS=$as_save_IFS
8832   test -z "$as_dir" && as_dir=.
8833     for ac_exec_ext in '' $ac_executable_extensions; do
8834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837     break 2
8838   fi
8839 done
8840   done
8841 IFS=$as_save_IFS
8842
8843 fi
8844 fi
8845 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8846 if test -n "$DSYMUTIL"; then
8847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8848 $as_echo "$DSYMUTIL" >&6; }
8849 else
8850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8852 fi
8853
8854
8855 fi
8856 if test -z "$ac_cv_prog_DSYMUTIL"; then
8857   ac_ct_DSYMUTIL=$DSYMUTIL
8858   # Extract the first word of "dsymutil", so it can be a program name with args.
8859 set dummy dsymutil; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   if test -n "$ac_ct_DSYMUTIL"; then
8866   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871   IFS=$as_save_IFS
8872   test -z "$as_dir" && as_dir=.
8873     for ac_exec_ext in '' $ac_executable_extensions; do
8874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877     break 2
8878   fi
8879 done
8880   done
8881 IFS=$as_save_IFS
8882
8883 fi
8884 fi
8885 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8886 if test -n "$ac_ct_DSYMUTIL"; then
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8888 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8889 else
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8892 fi
8893
8894   if test "x$ac_ct_DSYMUTIL" = x; then
8895     DSYMUTIL=":"
8896   else
8897     case $cross_compiling:$ac_tool_warned in
8898 yes:)
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8901 ac_tool_warned=yes ;;
8902 esac
8903     DSYMUTIL=$ac_ct_DSYMUTIL
8904   fi
8905 else
8906   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8907 fi
8908
8909     if test -n "$ac_tool_prefix"; then
8910   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8911 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if ${ac_cv_prog_NMEDIT+:} false; then :
8915   $as_echo_n "(cached) " >&6
8916 else
8917   if test -n "$NMEDIT"; then
8918   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8919 else
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921 for as_dir in $PATH
8922 do
8923   IFS=$as_save_IFS
8924   test -z "$as_dir" && as_dir=.
8925     for ac_exec_ext in '' $ac_executable_extensions; do
8926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929     break 2
8930   fi
8931 done
8932   done
8933 IFS=$as_save_IFS
8934
8935 fi
8936 fi
8937 NMEDIT=$ac_cv_prog_NMEDIT
8938 if test -n "$NMEDIT"; then
8939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8940 $as_echo "$NMEDIT" >&6; }
8941 else
8942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8944 fi
8945
8946
8947 fi
8948 if test -z "$ac_cv_prog_NMEDIT"; then
8949   ac_ct_NMEDIT=$NMEDIT
8950   # Extract the first word of "nmedit", so it can be a program name with args.
8951 set dummy nmedit; ac_word=$2
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8955   $as_echo_n "(cached) " >&6
8956 else
8957   if test -n "$ac_ct_NMEDIT"; then
8958   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8959 else
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8962 do
8963   IFS=$as_save_IFS
8964   test -z "$as_dir" && as_dir=.
8965     for ac_exec_ext in '' $ac_executable_extensions; do
8966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8967     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8969     break 2
8970   fi
8971 done
8972   done
8973 IFS=$as_save_IFS
8974
8975 fi
8976 fi
8977 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8978 if test -n "$ac_ct_NMEDIT"; then
8979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8980 $as_echo "$ac_ct_NMEDIT" >&6; }
8981 else
8982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8984 fi
8985
8986   if test "x$ac_ct_NMEDIT" = x; then
8987     NMEDIT=":"
8988   else
8989     case $cross_compiling:$ac_tool_warned in
8990 yes:)
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8993 ac_tool_warned=yes ;;
8994 esac
8995     NMEDIT=$ac_ct_NMEDIT
8996   fi
8997 else
8998   NMEDIT="$ac_cv_prog_NMEDIT"
8999 fi
9000
9001     if test -n "$ac_tool_prefix"; then
9002   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9003 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 $as_echo_n "checking for $ac_word... " >&6; }
9006 if ${ac_cv_prog_LIPO+:} false; then :
9007   $as_echo_n "(cached) " >&6
9008 else
9009   if test -n "$LIPO"; then
9010   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9011 else
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 for as_dir in $PATH
9014 do
9015   IFS=$as_save_IFS
9016   test -z "$as_dir" && as_dir=.
9017     for ac_exec_ext in '' $ac_executable_extensions; do
9018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9019     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021     break 2
9022   fi
9023 done
9024   done
9025 IFS=$as_save_IFS
9026
9027 fi
9028 fi
9029 LIPO=$ac_cv_prog_LIPO
9030 if test -n "$LIPO"; then
9031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9032 $as_echo "$LIPO" >&6; }
9033 else
9034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9036 fi
9037
9038
9039 fi
9040 if test -z "$ac_cv_prog_LIPO"; then
9041   ac_ct_LIPO=$LIPO
9042   # Extract the first word of "lipo", so it can be a program name with args.
9043 set dummy lipo; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   if test -n "$ac_ct_LIPO"; then
9050   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055   IFS=$as_save_IFS
9056   test -z "$as_dir" && as_dir=.
9057     for ac_exec_ext in '' $ac_executable_extensions; do
9058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059     ac_cv_prog_ac_ct_LIPO="lipo"
9060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061     break 2
9062   fi
9063 done
9064   done
9065 IFS=$as_save_IFS
9066
9067 fi
9068 fi
9069 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9070 if test -n "$ac_ct_LIPO"; then
9071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9072 $as_echo "$ac_ct_LIPO" >&6; }
9073 else
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9076 fi
9077
9078   if test "x$ac_ct_LIPO" = x; then
9079     LIPO=":"
9080   else
9081     case $cross_compiling:$ac_tool_warned in
9082 yes:)
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9085 ac_tool_warned=yes ;;
9086 esac
9087     LIPO=$ac_ct_LIPO
9088   fi
9089 else
9090   LIPO="$ac_cv_prog_LIPO"
9091 fi
9092
9093     if test -n "$ac_tool_prefix"; then
9094   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9095 set dummy ${ac_tool_prefix}otool; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_prog_OTOOL+:} false; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   if test -n "$OTOOL"; then
9102   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9103 else
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9106 do
9107   IFS=$as_save_IFS
9108   test -z "$as_dir" && as_dir=.
9109     for ac_exec_ext in '' $ac_executable_extensions; do
9110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9111     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113     break 2
9114   fi
9115 done
9116   done
9117 IFS=$as_save_IFS
9118
9119 fi
9120 fi
9121 OTOOL=$ac_cv_prog_OTOOL
9122 if test -n "$OTOOL"; then
9123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9124 $as_echo "$OTOOL" >&6; }
9125 else
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9128 fi
9129
9130
9131 fi
9132 if test -z "$ac_cv_prog_OTOOL"; then
9133   ac_ct_OTOOL=$OTOOL
9134   # Extract the first word of "otool", so it can be a program name with args.
9135 set dummy otool; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   if test -n "$ac_ct_OTOOL"; then
9142   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147   IFS=$as_save_IFS
9148   test -z "$as_dir" && as_dir=.
9149     for ac_exec_ext in '' $ac_executable_extensions; do
9150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151     ac_cv_prog_ac_ct_OTOOL="otool"
9152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153     break 2
9154   fi
9155 done
9156   done
9157 IFS=$as_save_IFS
9158
9159 fi
9160 fi
9161 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9162 if test -n "$ac_ct_OTOOL"; then
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9164 $as_echo "$ac_ct_OTOOL" >&6; }
9165 else
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169
9170   if test "x$ac_ct_OTOOL" = x; then
9171     OTOOL=":"
9172   else
9173     case $cross_compiling:$ac_tool_warned in
9174 yes:)
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9177 ac_tool_warned=yes ;;
9178 esac
9179     OTOOL=$ac_ct_OTOOL
9180   fi
9181 else
9182   OTOOL="$ac_cv_prog_OTOOL"
9183 fi
9184
9185     if test -n "$ac_tool_prefix"; then
9186   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9187 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_prog_OTOOL64+:} false; then :
9191   $as_echo_n "(cached) " >&6
9192 else
9193   if test -n "$OTOOL64"; then
9194   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199   IFS=$as_save_IFS
9200   test -z "$as_dir" && as_dir=.
9201     for ac_exec_ext in '' $ac_executable_extensions; do
9202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205     break 2
9206   fi
9207 done
9208   done
9209 IFS=$as_save_IFS
9210
9211 fi
9212 fi
9213 OTOOL64=$ac_cv_prog_OTOOL64
9214 if test -n "$OTOOL64"; then
9215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9216 $as_echo "$OTOOL64" >&6; }
9217 else
9218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9220 fi
9221
9222
9223 fi
9224 if test -z "$ac_cv_prog_OTOOL64"; then
9225   ac_ct_OTOOL64=$OTOOL64
9226   # Extract the first word of "otool64", so it can be a program name with args.
9227 set dummy otool64; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9231   $as_echo_n "(cached) " >&6
9232 else
9233   if test -n "$ac_ct_OTOOL64"; then
9234   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9235 else
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9238 do
9239   IFS=$as_save_IFS
9240   test -z "$as_dir" && as_dir=.
9241     for ac_exec_ext in '' $ac_executable_extensions; do
9242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243     ac_cv_prog_ac_ct_OTOOL64="otool64"
9244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245     break 2
9246   fi
9247 done
9248   done
9249 IFS=$as_save_IFS
9250
9251 fi
9252 fi
9253 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9254 if test -n "$ac_ct_OTOOL64"; then
9255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9256 $as_echo "$ac_ct_OTOOL64" >&6; }
9257 else
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9260 fi
9261
9262   if test "x$ac_ct_OTOOL64" = x; then
9263     OTOOL64=":"
9264   else
9265     case $cross_compiling:$ac_tool_warned in
9266 yes:)
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9269 ac_tool_warned=yes ;;
9270 esac
9271     OTOOL64=$ac_ct_OTOOL64
9272   fi
9273 else
9274   OTOOL64="$ac_cv_prog_OTOOL64"
9275 fi
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9304 $as_echo_n "checking for -single_module linker flag... " >&6; }
9305 if ${lt_cv_apple_cc_single_mod+:} false; then :
9306   $as_echo_n "(cached) " >&6
9307 else
9308   lt_cv_apple_cc_single_mod=no
9309       if test -z "${LT_MULTI_MODULE}"; then
9310         # By default we will add the -single_module flag. You can override
9311         # by either setting the environment variable LT_MULTI_MODULE
9312         # non-empty at configure time, or by adding -multi_module to the
9313         # link flags.
9314         rm -rf libconftest.dylib*
9315         echo "int foo(void){return 1;}" > conftest.c
9316         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9317 -dynamiclib -Wl,-single_module conftest.c" >&5
9318         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9319           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9320         _lt_result=$?
9321         # If there is a non-empty error log, and "single_module"
9322         # appears in it, assume the flag caused a linker warning
9323         if test -s conftest.err && $GREP single_module conftest.err; then
9324           cat conftest.err >&5
9325         # Otherwise, if the output was created with a 0 exit code from
9326         # the compiler, it worked.
9327         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9328           lt_cv_apple_cc_single_mod=yes
9329         else
9330           cat conftest.err >&5
9331         fi
9332         rm -rf libconftest.dylib*
9333         rm -f conftest.*
9334       fi
9335 fi
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9337 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9338
9339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9340 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9341 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9342   $as_echo_n "(cached) " >&6
9343 else
9344   lt_cv_ld_exported_symbols_list=no
9345       save_LDFLAGS=$LDFLAGS
9346       echo "_main" > conftest.sym
9347       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9348       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h.  */
9350
9351 int
9352 main ()
9353 {
9354
9355   ;
9356   return 0;
9357 }
9358 _ACEOF
9359 if ac_fn_c_try_link "$LINENO"; then :
9360   lt_cv_ld_exported_symbols_list=yes
9361 else
9362   lt_cv_ld_exported_symbols_list=no
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext \
9365     conftest$ac_exeext conftest.$ac_ext
9366         LDFLAGS="$save_LDFLAGS"
9367
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9370 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9371
9372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9373 $as_echo_n "checking for -force_load linker flag... " >&6; }
9374 if ${lt_cv_ld_force_load+:} false; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   lt_cv_ld_force_load=no
9378       cat > conftest.c << _LT_EOF
9379 int forced_loaded() { return 2;}
9380 _LT_EOF
9381       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9382       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9383       echo "$AR cru libconftest.a conftest.o" >&5
9384       $AR cru libconftest.a conftest.o 2>&5
9385       echo "$RANLIB libconftest.a" >&5
9386       $RANLIB libconftest.a 2>&5
9387       cat > conftest.c << _LT_EOF
9388 int main() { return 0;}
9389 _LT_EOF
9390       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9391       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9392       _lt_result=$?
9393       if test -s conftest.err && $GREP force_load conftest.err; then
9394         cat conftest.err >&5
9395       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9396         lt_cv_ld_force_load=yes
9397       else
9398         cat conftest.err >&5
9399       fi
9400         rm -f conftest.err libconftest.a conftest conftest.c
9401         rm -rf conftest.dSYM
9402
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9405 $as_echo "$lt_cv_ld_force_load" >&6; }
9406     case $host_os in
9407     rhapsody* | darwin1.[012])
9408       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9409     darwin1.*)
9410       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9411     darwin*) # darwin 5.x on
9412       # if running on 10.5 or later, the deployment target defaults
9413       # to the OS version, if on x86, and 10.4, the deployment
9414       # target defaults to 10.4. Don't you love it?
9415       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9416         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9417           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9418         10.[012]*)
9419           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9420         10.*)
9421           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9422       esac
9423     ;;
9424   esac
9425     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9426       _lt_dar_single_mod='$single_module'
9427     fi
9428     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9429       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9430     else
9431       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9432     fi
9433     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9434       _lt_dsymutil='~$DSYMUTIL $lib || :'
9435     else
9436       _lt_dsymutil=
9437     fi
9438     ;;
9439   esac
9440
9441 for ac_header in dlfcn.h
9442 do :
9443   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9444 "
9445 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9446   cat >>confdefs.h <<_ACEOF
9447 #define HAVE_DLFCN_H 1
9448 _ACEOF
9449
9450 fi
9451
9452 done
9453
9454
9455
9456
9457 func_stripname_cnf ()
9458 {
9459   case ${2} in
9460   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9461   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9462   esac
9463 } # func_stripname_cnf
9464
9465
9466
9467
9468
9469 # Set options
9470 enable_win32_dll=yes
9471
9472 case $host in
9473 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9474   if test -n "$ac_tool_prefix"; then
9475   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9476 set dummy ${ac_tool_prefix}as; ac_word=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if ${ac_cv_prog_AS+:} false; then :
9480   $as_echo_n "(cached) " >&6
9481 else
9482   if test -n "$AS"; then
9483   ac_cv_prog_AS="$AS" # Let the user override the test.
9484 else
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 for as_dir in $PATH
9487 do
9488   IFS=$as_save_IFS
9489   test -z "$as_dir" && as_dir=.
9490     for ac_exec_ext in '' $ac_executable_extensions; do
9491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9492     ac_cv_prog_AS="${ac_tool_prefix}as"
9493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494     break 2
9495   fi
9496 done
9497   done
9498 IFS=$as_save_IFS
9499
9500 fi
9501 fi
9502 AS=$ac_cv_prog_AS
9503 if test -n "$AS"; then
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9505 $as_echo "$AS" >&6; }
9506 else
9507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9509 fi
9510
9511
9512 fi
9513 if test -z "$ac_cv_prog_AS"; then
9514   ac_ct_AS=$AS
9515   # Extract the first word of "as", so it can be a program name with args.
9516 set dummy as; ac_word=$2
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9520   $as_echo_n "(cached) " >&6
9521 else
9522   if test -n "$ac_ct_AS"; then
9523   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9524 else
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9527 do
9528   IFS=$as_save_IFS
9529   test -z "$as_dir" && as_dir=.
9530     for ac_exec_ext in '' $ac_executable_extensions; do
9531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9532     ac_cv_prog_ac_ct_AS="as"
9533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534     break 2
9535   fi
9536 done
9537   done
9538 IFS=$as_save_IFS
9539
9540 fi
9541 fi
9542 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9543 if test -n "$ac_ct_AS"; then
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9545 $as_echo "$ac_ct_AS" >&6; }
9546 else
9547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9549 fi
9550
9551   if test "x$ac_ct_AS" = x; then
9552     AS="false"
9553   else
9554     case $cross_compiling:$ac_tool_warned in
9555 yes:)
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9558 ac_tool_warned=yes ;;
9559 esac
9560     AS=$ac_ct_AS
9561   fi
9562 else
9563   AS="$ac_cv_prog_AS"
9564 fi
9565
9566   if test -n "$ac_tool_prefix"; then
9567   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9568 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if ${ac_cv_prog_DLLTOOL+:} false; then :
9572   $as_echo_n "(cached) " >&6
9573 else
9574   if test -n "$DLLTOOL"; then
9575   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9576 else
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9579 do
9580   IFS=$as_save_IFS
9581   test -z "$as_dir" && as_dir=.
9582     for ac_exec_ext in '' $ac_executable_extensions; do
9583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586     break 2
9587   fi
9588 done
9589   done
9590 IFS=$as_save_IFS
9591
9592 fi
9593 fi
9594 DLLTOOL=$ac_cv_prog_DLLTOOL
9595 if test -n "$DLLTOOL"; then
9596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9597 $as_echo "$DLLTOOL" >&6; }
9598 else
9599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9601 fi
9602
9603
9604 fi
9605 if test -z "$ac_cv_prog_DLLTOOL"; then
9606   ac_ct_DLLTOOL=$DLLTOOL
9607   # Extract the first word of "dlltool", so it can be a program name with args.
9608 set dummy dlltool; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9612   $as_echo_n "(cached) " >&6
9613 else
9614   if test -n "$ac_ct_DLLTOOL"; then
9615   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9616 else
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 for as_dir in $PATH
9619 do
9620   IFS=$as_save_IFS
9621   test -z "$as_dir" && as_dir=.
9622     for ac_exec_ext in '' $ac_executable_extensions; do
9623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9624     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9626     break 2
9627   fi
9628 done
9629   done
9630 IFS=$as_save_IFS
9631
9632 fi
9633 fi
9634 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9635 if test -n "$ac_ct_DLLTOOL"; then
9636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9637 $as_echo "$ac_ct_DLLTOOL" >&6; }
9638 else
9639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640 $as_echo "no" >&6; }
9641 fi
9642
9643   if test "x$ac_ct_DLLTOOL" = x; then
9644     DLLTOOL="false"
9645   else
9646     case $cross_compiling:$ac_tool_warned in
9647 yes:)
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9650 ac_tool_warned=yes ;;
9651 esac
9652     DLLTOOL=$ac_ct_DLLTOOL
9653   fi
9654 else
9655   DLLTOOL="$ac_cv_prog_DLLTOOL"
9656 fi
9657
9658   if test -n "$ac_tool_prefix"; then
9659   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_prog_OBJDUMP+:} false; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666   if test -n "$OBJDUMP"; then
9667   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9668 else
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9671 do
9672   IFS=$as_save_IFS
9673   test -z "$as_dir" && as_dir=.
9674     for ac_exec_ext in '' $ac_executable_extensions; do
9675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678     break 2
9679   fi
9680 done
9681   done
9682 IFS=$as_save_IFS
9683
9684 fi
9685 fi
9686 OBJDUMP=$ac_cv_prog_OBJDUMP
9687 if test -n "$OBJDUMP"; then
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9689 $as_echo "$OBJDUMP" >&6; }
9690 else
9691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9693 fi
9694
9695
9696 fi
9697 if test -z "$ac_cv_prog_OBJDUMP"; then
9698   ac_ct_OBJDUMP=$OBJDUMP
9699   # Extract the first word of "objdump", so it can be a program name with args.
9700 set dummy objdump; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9704   $as_echo_n "(cached) " >&6
9705 else
9706   if test -n "$ac_ct_OBJDUMP"; then
9707   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9708 else
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712   IFS=$as_save_IFS
9713   test -z "$as_dir" && as_dir=.
9714     for ac_exec_ext in '' $ac_executable_extensions; do
9715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718     break 2
9719   fi
9720 done
9721   done
9722 IFS=$as_save_IFS
9723
9724 fi
9725 fi
9726 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9727 if test -n "$ac_ct_OBJDUMP"; then
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9729 $as_echo "$ac_ct_OBJDUMP" >&6; }
9730 else
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9733 fi
9734
9735   if test "x$ac_ct_OBJDUMP" = x; then
9736     OBJDUMP="false"
9737   else
9738     case $cross_compiling:$ac_tool_warned in
9739 yes:)
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9742 ac_tool_warned=yes ;;
9743 esac
9744     OBJDUMP=$ac_ct_OBJDUMP
9745   fi
9746 else
9747   OBJDUMP="$ac_cv_prog_OBJDUMP"
9748 fi
9749
9750   ;;
9751 esac
9752
9753 test -z "$AS" && AS=as
9754
9755
9756
9757
9758
9759 test -z "$DLLTOOL" && DLLTOOL=dlltool
9760
9761
9762
9763
9764
9765 test -z "$OBJDUMP" && OBJDUMP=objdump
9766
9767
9768
9769
9770 # Check whether --enable-static was given.
9771 if test "${enable_static+set}" = set; then :
9772   enableval=$enable_static; p=${PACKAGE-default}
9773     case $enableval in
9774     yes) enable_static=yes ;;
9775     no) enable_static=no ;;
9776     *)
9777      enable_static=no
9778       # Look at the argument we got.  We use all the common list separators.
9779       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9780       for pkg in $enableval; do
9781         IFS="$lt_save_ifs"
9782         if test "X$pkg" = "X$p"; then
9783           enable_static=yes
9784         fi
9785       done
9786       IFS="$lt_save_ifs"
9787       ;;
9788     esac
9789 else
9790   enable_static=no
9791 fi
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802         enable_dlopen=no
9803
9804
9805
9806             # Check whether --enable-shared was given.
9807 if test "${enable_shared+set}" = set; then :
9808   enableval=$enable_shared; p=${PACKAGE-default}
9809     case $enableval in
9810     yes) enable_shared=yes ;;
9811     no) enable_shared=no ;;
9812     *)
9813       enable_shared=no
9814       # Look at the argument we got.  We use all the common list separators.
9815       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9816       for pkg in $enableval; do
9817         IFS="$lt_save_ifs"
9818         if test "X$pkg" = "X$p"; then
9819           enable_shared=yes
9820         fi
9821       done
9822       IFS="$lt_save_ifs"
9823       ;;
9824     esac
9825 else
9826   enable_shared=yes
9827 fi
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839 # Check whether --with-pic was given.
9840 if test "${with_pic+set}" = set; then :
9841   withval=$with_pic; lt_p=${PACKAGE-default}
9842     case $withval in
9843     yes|no) pic_mode=$withval ;;
9844     *)
9845       pic_mode=default
9846       # Look at the argument we got.  We use all the common list separators.
9847       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9848       for lt_pkg in $withval; do
9849         IFS="$lt_save_ifs"
9850         if test "X$lt_pkg" = "X$lt_p"; then
9851           pic_mode=yes
9852         fi
9853       done
9854       IFS="$lt_save_ifs"
9855       ;;
9856     esac
9857 else
9858   pic_mode=default
9859 fi
9860
9861
9862 test -z "$pic_mode" && pic_mode=default
9863
9864
9865
9866
9867
9868
9869
9870   # Check whether --enable-fast-install was given.
9871 if test "${enable_fast_install+set}" = set; then :
9872   enableval=$enable_fast_install; p=${PACKAGE-default}
9873     case $enableval in
9874     yes) enable_fast_install=yes ;;
9875     no) enable_fast_install=no ;;
9876     *)
9877       enable_fast_install=no
9878       # Look at the argument we got.  We use all the common list separators.
9879       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9880       for pkg in $enableval; do
9881         IFS="$lt_save_ifs"
9882         if test "X$pkg" = "X$p"; then
9883           enable_fast_install=yes
9884         fi
9885       done
9886       IFS="$lt_save_ifs"
9887       ;;
9888     esac
9889 else
9890   enable_fast_install=yes
9891 fi
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903 # This can be used to rebuild libtool when needed
9904 LIBTOOL_DEPS="$ltmain"
9905
9906 # Always use our own libtool.
9907 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938 test -z "$LN_S" && LN_S="ln -s"
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953 if test -n "${ZSH_VERSION+set}" ; then
9954    setopt NO_GLOB_SUBST
9955 fi
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9958 $as_echo_n "checking for objdir... " >&6; }
9959 if ${lt_cv_objdir+:} false; then :
9960   $as_echo_n "(cached) " >&6
9961 else
9962   rm -f .libs 2>/dev/null
9963 mkdir .libs 2>/dev/null
9964 if test -d .libs; then
9965   lt_cv_objdir=.libs
9966 else
9967   # MS-DOS does not allow filenames that begin with a dot.
9968   lt_cv_objdir=_libs
9969 fi
9970 rmdir .libs 2>/dev/null
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9973 $as_echo "$lt_cv_objdir" >&6; }
9974 objdir=$lt_cv_objdir
9975
9976
9977
9978
9979
9980 cat >>confdefs.h <<_ACEOF
9981 #define LT_OBJDIR "$lt_cv_objdir/"
9982 _ACEOF
9983
9984
9985
9986
9987 case $host_os in
9988 aix3*)
9989   # AIX sometimes has problems with the GCC collect2 program.  For some
9990   # reason, if we set the COLLECT_NAMES environment variable, the problems
9991   # vanish in a puff of smoke.
9992   if test "X${COLLECT_NAMES+set}" != Xset; then
9993     COLLECT_NAMES=
9994     export COLLECT_NAMES
9995   fi
9996   ;;
9997 esac
9998
9999 # Global variables:
10000 ofile=libtool
10001 can_build_shared=yes
10002
10003 # All known linkers require a `.a' archive for static linking (except MSVC,
10004 # which needs '.lib').
10005 libext=a
10006
10007 with_gnu_ld="$lt_cv_prog_gnu_ld"
10008
10009 old_CC="$CC"
10010 old_CFLAGS="$CFLAGS"
10011
10012 # Set sane defaults for various variables
10013 test -z "$CC" && CC=cc
10014 test -z "$LTCC" && LTCC=$CC
10015 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10016 test -z "$LD" && LD=ld
10017 test -z "$ac_objext" && ac_objext=o
10018
10019 for cc_temp in $compiler""; do
10020   case $cc_temp in
10021     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10022     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10023     \-*) ;;
10024     *) break;;
10025   esac
10026 done
10027 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10028
10029
10030 # Only perform the check for file, if the check method requires it
10031 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10032 case $deplibs_check_method in
10033 file_magic*)
10034   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10036 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10037 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10038   $as_echo_n "(cached) " >&6
10039 else
10040   case $MAGIC_CMD in
10041 [\\/*] |  ?:[\\/]*)
10042   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10043   ;;
10044 *)
10045   lt_save_MAGIC_CMD="$MAGIC_CMD"
10046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10047   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10048   for ac_dir in $ac_dummy; do
10049     IFS="$lt_save_ifs"
10050     test -z "$ac_dir" && ac_dir=.
10051     if test -f $ac_dir/${ac_tool_prefix}file; then
10052       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10053       if test -n "$file_magic_test_file"; then
10054         case $deplibs_check_method in
10055         "file_magic "*)
10056           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10057           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10058           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10059             $EGREP "$file_magic_regex" > /dev/null; then
10060             :
10061           else
10062             cat <<_LT_EOF 1>&2
10063
10064 *** Warning: the command libtool uses to detect shared libraries,
10065 *** $file_magic_cmd, produces output that libtool cannot recognize.
10066 *** The result is that libtool may fail to recognize shared libraries
10067 *** as such.  This will affect the creation of libtool libraries that
10068 *** depend on shared libraries, but programs linked with such libtool
10069 *** libraries will work regardless of this problem.  Nevertheless, you
10070 *** may want to report the problem to your system manager and/or to
10071 *** bug-libtool@gnu.org
10072
10073 _LT_EOF
10074           fi ;;
10075         esac
10076       fi
10077       break
10078     fi
10079   done
10080   IFS="$lt_save_ifs"
10081   MAGIC_CMD="$lt_save_MAGIC_CMD"
10082   ;;
10083 esac
10084 fi
10085
10086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10087 if test -n "$MAGIC_CMD"; then
10088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10089 $as_echo "$MAGIC_CMD" >&6; }
10090 else
10091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10093 fi
10094
10095
10096
10097
10098
10099 if test -z "$lt_cv_path_MAGIC_CMD"; then
10100   if test -n "$ac_tool_prefix"; then
10101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10102 $as_echo_n "checking for file... " >&6; }
10103 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10104   $as_echo_n "(cached) " >&6
10105 else
10106   case $MAGIC_CMD in
10107 [\\/*] |  ?:[\\/]*)
10108   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10109   ;;
10110 *)
10111   lt_save_MAGIC_CMD="$MAGIC_CMD"
10112   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10113   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10114   for ac_dir in $ac_dummy; do
10115     IFS="$lt_save_ifs"
10116     test -z "$ac_dir" && ac_dir=.
10117     if test -f $ac_dir/file; then
10118       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10119       if test -n "$file_magic_test_file"; then
10120         case $deplibs_check_method in
10121         "file_magic "*)
10122           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10123           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10124           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10125             $EGREP "$file_magic_regex" > /dev/null; then
10126             :
10127           else
10128             cat <<_LT_EOF 1>&2
10129
10130 *** Warning: the command libtool uses to detect shared libraries,
10131 *** $file_magic_cmd, produces output that libtool cannot recognize.
10132 *** The result is that libtool may fail to recognize shared libraries
10133 *** as such.  This will affect the creation of libtool libraries that
10134 *** depend on shared libraries, but programs linked with such libtool
10135 *** libraries will work regardless of this problem.  Nevertheless, you
10136 *** may want to report the problem to your system manager and/or to
10137 *** bug-libtool@gnu.org
10138
10139 _LT_EOF
10140           fi ;;
10141         esac
10142       fi
10143       break
10144     fi
10145   done
10146   IFS="$lt_save_ifs"
10147   MAGIC_CMD="$lt_save_MAGIC_CMD"
10148   ;;
10149 esac
10150 fi
10151
10152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10153 if test -n "$MAGIC_CMD"; then
10154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10155 $as_echo "$MAGIC_CMD" >&6; }
10156 else
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10159 fi
10160
10161
10162   else
10163     MAGIC_CMD=:
10164   fi
10165 fi
10166
10167   fi
10168   ;;
10169 esac
10170
10171 # Use C for the default configuration in the libtool script
10172
10173 lt_save_CC="$CC"
10174 ac_ext=c
10175 ac_cpp='$CPP $CPPFLAGS'
10176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10179
10180
10181 # Source file extension for C test sources.
10182 ac_ext=c
10183
10184 # Object file extension for compiled C test sources.
10185 objext=o
10186 objext=$objext
10187
10188 # Code to be used in simple compile tests
10189 lt_simple_compile_test_code="int some_variable = 0;"
10190
10191 # Code to be used in simple link tests
10192 lt_simple_link_test_code='int main(){return(0);}'
10193
10194
10195
10196
10197
10198
10199
10200 # If no C compiler was specified, use CC.
10201 LTCC=${LTCC-"$CC"}
10202
10203 # If no C compiler flags were specified, use CFLAGS.
10204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10205
10206 # Allow CC to be a program name with arguments.
10207 compiler=$CC
10208
10209 # Save the default compiler, since it gets overwritten when the other
10210 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10211 compiler_DEFAULT=$CC
10212
10213 # save warnings/boilerplate of simple test code
10214 ac_outfile=conftest.$ac_objext
10215 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10216 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10217 _lt_compiler_boilerplate=`cat conftest.err`
10218 $RM conftest*
10219
10220 ac_outfile=conftest.$ac_objext
10221 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10222 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10223 _lt_linker_boilerplate=`cat conftest.err`
10224 $RM -r conftest*
10225
10226
10227 ## CAVEAT EMPTOR:
10228 ## There is no encapsulation within the following macros, do not change
10229 ## the running order or otherwise move them around unless you know exactly
10230 ## what you are doing...
10231 if test -n "$compiler"; then
10232
10233 lt_prog_compiler_no_builtin_flag=
10234
10235 if test "$GCC" = yes; then
10236   case $cc_basename in
10237   nvcc*)
10238     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10239   *)
10240     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10241   esac
10242
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10244 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10245 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10246   $as_echo_n "(cached) " >&6
10247 else
10248   lt_cv_prog_compiler_rtti_exceptions=no
10249    ac_outfile=conftest.$ac_objext
10250    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251    lt_compiler_flag="-fno-rtti -fno-exceptions"
10252    # Insert the option either (1) after the last *FLAGS variable, or
10253    # (2) before a word containing "conftest.", or (3) at the end.
10254    # Note that $ac_compile itself does not contain backslashes and begins
10255    # with a dollar sign (not a hyphen), so the echo should work correctly.
10256    # The option is referenced via a variable to avoid confusing sed.
10257    lt_compile=`echo "$ac_compile" | $SED \
10258    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10260    -e 's:$: $lt_compiler_flag:'`
10261    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10262    (eval "$lt_compile" 2>conftest.err)
10263    ac_status=$?
10264    cat conftest.err >&5
10265    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266    if (exit $ac_status) && test -s "$ac_outfile"; then
10267      # The compiler can only warn and ignore the option if not recognized
10268      # So say no if there are warnings other than the usual output.
10269      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10270      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10271      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10272        lt_cv_prog_compiler_rtti_exceptions=yes
10273      fi
10274    fi
10275    $RM conftest*
10276
10277 fi
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10279 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10280
10281 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10282     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10283 else
10284     :
10285 fi
10286
10287 fi
10288
10289
10290
10291
10292
10293
10294   lt_prog_compiler_wl=
10295 lt_prog_compiler_pic=
10296 lt_prog_compiler_static=
10297
10298
10299   if test "$GCC" = yes; then
10300     lt_prog_compiler_wl='-Wl,'
10301     lt_prog_compiler_static='-static'
10302
10303     case $host_os in
10304       aix*)
10305       # All AIX code is PIC.
10306       if test "$host_cpu" = ia64; then
10307         # AIX 5 now supports IA64 processor
10308         lt_prog_compiler_static='-Bstatic'
10309       fi
10310       ;;
10311
10312     amigaos*)
10313       case $host_cpu in
10314       powerpc)
10315             # see comment about AmigaOS4 .so support
10316             lt_prog_compiler_pic='-fPIC'
10317         ;;
10318       m68k)
10319             # FIXME: we need at least 68020 code to build shared libraries, but
10320             # adding the `-m68020' flag to GCC prevents building anything better,
10321             # like `-m68040'.
10322             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10323         ;;
10324       esac
10325       ;;
10326
10327     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10328       # PIC is the default for these OSes.
10329       ;;
10330
10331     mingw* | cygwin* | pw32* | os2* | cegcc*)
10332       # This hack is so that the source file can tell whether it is being
10333       # built for inclusion in a dll (and should export symbols for example).
10334       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10335       # (--disable-auto-import) libraries
10336       lt_prog_compiler_pic='-DDLL_EXPORT'
10337       ;;
10338
10339     darwin* | rhapsody*)
10340       # PIC is the default on this platform
10341       # Common symbols not allowed in MH_DYLIB files
10342       lt_prog_compiler_pic='-fno-common'
10343       ;;
10344
10345     haiku*)
10346       # PIC is the default for Haiku.
10347       # The "-static" flag exists, but is broken.
10348       lt_prog_compiler_static=
10349       ;;
10350
10351     hpux*)
10352       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10353       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10354       # sets the default TLS model and affects inlining.
10355       case $host_cpu in
10356       hppa*64*)
10357         # +Z the default
10358         ;;
10359       *)
10360         lt_prog_compiler_pic='-fPIC'
10361         ;;
10362       esac
10363       ;;
10364
10365     interix[3-9]*)
10366       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10367       # Instead, we relocate shared libraries at runtime.
10368       ;;
10369
10370     msdosdjgpp*)
10371       # Just because we use GCC doesn't mean we suddenly get shared libraries
10372       # on systems that don't support them.
10373       lt_prog_compiler_can_build_shared=no
10374       enable_shared=no
10375       ;;
10376
10377     *nto* | *qnx*)
10378       # QNX uses GNU C++, but need to define -shared option too, otherwise
10379       # it will coredump.
10380       lt_prog_compiler_pic='-fPIC -shared'
10381       ;;
10382
10383     sysv4*MP*)
10384       if test -d /usr/nec; then
10385         lt_prog_compiler_pic=-Kconform_pic
10386       fi
10387       ;;
10388
10389     *)
10390       lt_prog_compiler_pic='-fPIC'
10391       ;;
10392     esac
10393
10394     case $cc_basename in
10395     nvcc*) # Cuda Compiler Driver 2.2
10396       lt_prog_compiler_wl='-Xlinker '
10397       if test -n "$lt_prog_compiler_pic"; then
10398         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10399       fi
10400       ;;
10401     esac
10402   else
10403     # PORTME Check for flag to pass linker flags through the system compiler.
10404     case $host_os in
10405     aix*)
10406       lt_prog_compiler_wl='-Wl,'
10407       if test "$host_cpu" = ia64; then
10408         # AIX 5 now supports IA64 processor
10409         lt_prog_compiler_static='-Bstatic'
10410       else
10411         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10412       fi
10413       ;;
10414
10415     mingw* | cygwin* | pw32* | os2* | cegcc*)
10416       # This hack is so that the source file can tell whether it is being
10417       # built for inclusion in a dll (and should export symbols for example).
10418       lt_prog_compiler_pic='-DDLL_EXPORT'
10419       ;;
10420
10421     hpux9* | hpux10* | hpux11*)
10422       lt_prog_compiler_wl='-Wl,'
10423       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10424       # not for PA HP-UX.
10425       case $host_cpu in
10426       hppa*64*|ia64*)
10427         # +Z the default
10428         ;;
10429       *)
10430         lt_prog_compiler_pic='+Z'
10431         ;;
10432       esac
10433       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10434       lt_prog_compiler_static='${wl}-a ${wl}archive'
10435       ;;
10436
10437     irix5* | irix6* | nonstopux*)
10438       lt_prog_compiler_wl='-Wl,'
10439       # PIC (with -KPIC) is the default.
10440       lt_prog_compiler_static='-non_shared'
10441       ;;
10442
10443     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10444       case $cc_basename in
10445       # old Intel for x86_64 which still supported -KPIC.
10446       ecc*)
10447         lt_prog_compiler_wl='-Wl,'
10448         lt_prog_compiler_pic='-KPIC'
10449         lt_prog_compiler_static='-static'
10450         ;;
10451       # icc used to be incompatible with GCC.
10452       # ICC 10 doesn't accept -KPIC any more.
10453       icc* | ifort*)
10454         lt_prog_compiler_wl='-Wl,'
10455         lt_prog_compiler_pic='-fPIC'
10456         lt_prog_compiler_static='-static'
10457         ;;
10458       # Lahey Fortran 8.1.
10459       lf95*)
10460         lt_prog_compiler_wl='-Wl,'
10461         lt_prog_compiler_pic='--shared'
10462         lt_prog_compiler_static='--static'
10463         ;;
10464       nagfor*)
10465         # NAG Fortran compiler
10466         lt_prog_compiler_wl='-Wl,-Wl,,'
10467         lt_prog_compiler_pic='-PIC'
10468         lt_prog_compiler_static='-Bstatic'
10469         ;;
10470       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10471         # Portland Group compilers (*not* the Pentium gcc compiler,
10472         # which looks to be a dead project)
10473         lt_prog_compiler_wl='-Wl,'
10474         lt_prog_compiler_pic='-fpic'
10475         lt_prog_compiler_static='-Bstatic'
10476         ;;
10477       ccc*)
10478         lt_prog_compiler_wl='-Wl,'
10479         # All Alpha code is PIC.
10480         lt_prog_compiler_static='-non_shared'
10481         ;;
10482       xl* | bgxl* | bgf* | mpixl*)
10483         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10484         lt_prog_compiler_wl='-Wl,'
10485         lt_prog_compiler_pic='-qpic'
10486         lt_prog_compiler_static='-qstaticlink'
10487         ;;
10488       *)
10489         case `$CC -V 2>&1 | sed 5q` in
10490         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10491           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10492           lt_prog_compiler_pic='-KPIC'
10493           lt_prog_compiler_static='-Bstatic'
10494           lt_prog_compiler_wl=''
10495           ;;
10496         *Sun\ F* | *Sun*Fortran*)
10497           lt_prog_compiler_pic='-KPIC'
10498           lt_prog_compiler_static='-Bstatic'
10499           lt_prog_compiler_wl='-Qoption ld '
10500           ;;
10501         *Sun\ C*)
10502           # Sun C 5.9
10503           lt_prog_compiler_pic='-KPIC'
10504           lt_prog_compiler_static='-Bstatic'
10505           lt_prog_compiler_wl='-Wl,'
10506           ;;
10507         *Intel*\ [CF]*Compiler*)
10508           lt_prog_compiler_wl='-Wl,'
10509           lt_prog_compiler_pic='-fPIC'
10510           lt_prog_compiler_static='-static'
10511           ;;
10512         *Portland\ Group*)
10513           lt_prog_compiler_wl='-Wl,'
10514           lt_prog_compiler_pic='-fpic'
10515           lt_prog_compiler_static='-Bstatic'
10516           ;;
10517         esac
10518         ;;
10519       esac
10520       ;;
10521
10522     newsos6)
10523       lt_prog_compiler_pic='-KPIC'
10524       lt_prog_compiler_static='-Bstatic'
10525       ;;
10526
10527     *nto* | *qnx*)
10528       # QNX uses GNU C++, but need to define -shared option too, otherwise
10529       # it will coredump.
10530       lt_prog_compiler_pic='-fPIC -shared'
10531       ;;
10532
10533     osf3* | osf4* | osf5*)
10534       lt_prog_compiler_wl='-Wl,'
10535       # All OSF/1 code is PIC.
10536       lt_prog_compiler_static='-non_shared'
10537       ;;
10538
10539     rdos*)
10540       lt_prog_compiler_static='-non_shared'
10541       ;;
10542
10543     solaris*)
10544       lt_prog_compiler_pic='-KPIC'
10545       lt_prog_compiler_static='-Bstatic'
10546       case $cc_basename in
10547       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10548         lt_prog_compiler_wl='-Qoption ld ';;
10549       *)
10550         lt_prog_compiler_wl='-Wl,';;
10551       esac
10552       ;;
10553
10554     sunos4*)
10555       lt_prog_compiler_wl='-Qoption ld '
10556       lt_prog_compiler_pic='-PIC'
10557       lt_prog_compiler_static='-Bstatic'
10558       ;;
10559
10560     sysv4 | sysv4.2uw2* | sysv4.3*)
10561       lt_prog_compiler_wl='-Wl,'
10562       lt_prog_compiler_pic='-KPIC'
10563       lt_prog_compiler_static='-Bstatic'
10564       ;;
10565
10566     sysv4*MP*)
10567       if test -d /usr/nec ;then
10568         lt_prog_compiler_pic='-Kconform_pic'
10569         lt_prog_compiler_static='-Bstatic'
10570       fi
10571       ;;
10572
10573     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10574       lt_prog_compiler_wl='-Wl,'
10575       lt_prog_compiler_pic='-KPIC'
10576       lt_prog_compiler_static='-Bstatic'
10577       ;;
10578
10579     unicos*)
10580       lt_prog_compiler_wl='-Wl,'
10581       lt_prog_compiler_can_build_shared=no
10582       ;;
10583
10584     uts4*)
10585       lt_prog_compiler_pic='-pic'
10586       lt_prog_compiler_static='-Bstatic'
10587       ;;
10588
10589     *)
10590       lt_prog_compiler_can_build_shared=no
10591       ;;
10592     esac
10593   fi
10594
10595 case $host_os in
10596   # For platforms which do not support PIC, -DPIC is meaningless:
10597   *djgpp*)
10598     lt_prog_compiler_pic=
10599     ;;
10600   *)
10601     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10602     ;;
10603 esac
10604
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10607 if ${lt_cv_prog_compiler_pic+:} false; then :
10608   $as_echo_n "(cached) " >&6
10609 else
10610   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10611 fi
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10613 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10614 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10615
10616 #
10617 # Check to make sure the PIC flag actually works.
10618 #
10619 if test -n "$lt_prog_compiler_pic"; then
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10621 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10622 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10623   $as_echo_n "(cached) " >&6
10624 else
10625   lt_cv_prog_compiler_pic_works=no
10626    ac_outfile=conftest.$ac_objext
10627    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10628    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10629    # Insert the option either (1) after the last *FLAGS variable, or
10630    # (2) before a word containing "conftest.", or (3) at the end.
10631    # Note that $ac_compile itself does not contain backslashes and begins
10632    # with a dollar sign (not a hyphen), so the echo should work correctly.
10633    # The option is referenced via a variable to avoid confusing sed.
10634    lt_compile=`echo "$ac_compile" | $SED \
10635    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10636    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10637    -e 's:$: $lt_compiler_flag:'`
10638    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10639    (eval "$lt_compile" 2>conftest.err)
10640    ac_status=$?
10641    cat conftest.err >&5
10642    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643    if (exit $ac_status) && test -s "$ac_outfile"; then
10644      # The compiler can only warn and ignore the option if not recognized
10645      # So say no if there are warnings other than the usual output.
10646      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10647      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10648      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10649        lt_cv_prog_compiler_pic_works=yes
10650      fi
10651    fi
10652    $RM conftest*
10653
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10656 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10657
10658 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10659     case $lt_prog_compiler_pic in
10660      "" | " "*) ;;
10661      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10662      esac
10663 else
10664     lt_prog_compiler_pic=
10665      lt_prog_compiler_can_build_shared=no
10666 fi
10667
10668 fi
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680 #
10681 # Check to make sure the static flag actually works.
10682 #
10683 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10685 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10686 if ${lt_cv_prog_compiler_static_works+:} false; then :
10687   $as_echo_n "(cached) " >&6
10688 else
10689   lt_cv_prog_compiler_static_works=no
10690    save_LDFLAGS="$LDFLAGS"
10691    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10692    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10693    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10694      # The linker can only warn and ignore the option if not recognized
10695      # So say no if there are warnings
10696      if test -s conftest.err; then
10697        # Append any errors to the config.log.
10698        cat conftest.err 1>&5
10699        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10700        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10701        if diff conftest.exp conftest.er2 >/dev/null; then
10702          lt_cv_prog_compiler_static_works=yes
10703        fi
10704      else
10705        lt_cv_prog_compiler_static_works=yes
10706      fi
10707    fi
10708    $RM -r conftest*
10709    LDFLAGS="$save_LDFLAGS"
10710
10711 fi
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10713 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10714
10715 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10716     :
10717 else
10718     lt_prog_compiler_static=
10719 fi
10720
10721
10722
10723
10724
10725
10726
10727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10728 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10729 if ${lt_cv_prog_compiler_c_o+:} false; then :
10730   $as_echo_n "(cached) " >&6
10731 else
10732   lt_cv_prog_compiler_c_o=no
10733    $RM -r conftest 2>/dev/null
10734    mkdir conftest
10735    cd conftest
10736    mkdir out
10737    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10738
10739    lt_compiler_flag="-o out/conftest2.$ac_objext"
10740    # Insert the option either (1) after the last *FLAGS variable, or
10741    # (2) before a word containing "conftest.", or (3) at the end.
10742    # Note that $ac_compile itself does not contain backslashes and begins
10743    # with a dollar sign (not a hyphen), so the echo should work correctly.
10744    lt_compile=`echo "$ac_compile" | $SED \
10745    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10746    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10747    -e 's:$: $lt_compiler_flag:'`
10748    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10749    (eval "$lt_compile" 2>out/conftest.err)
10750    ac_status=$?
10751    cat out/conftest.err >&5
10752    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10754    then
10755      # The compiler can only warn and ignore the option if not recognized
10756      # So say no if there are warnings
10757      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10758      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10759      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10760        lt_cv_prog_compiler_c_o=yes
10761      fi
10762    fi
10763    chmod u+w . 2>&5
10764    $RM conftest*
10765    # SGI C++ compiler will create directory out/ii_files/ for
10766    # template instantiation
10767    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10768    $RM out/* && rmdir out
10769    cd ..
10770    $RM -r conftest
10771    $RM conftest*
10772
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10775 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10776
10777
10778
10779
10780
10781
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10783 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10784 if ${lt_cv_prog_compiler_c_o+:} false; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   lt_cv_prog_compiler_c_o=no
10788    $RM -r conftest 2>/dev/null
10789    mkdir conftest
10790    cd conftest
10791    mkdir out
10792    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10793
10794    lt_compiler_flag="-o out/conftest2.$ac_objext"
10795    # Insert the option either (1) after the last *FLAGS variable, or
10796    # (2) before a word containing "conftest.", or (3) at the end.
10797    # Note that $ac_compile itself does not contain backslashes and begins
10798    # with a dollar sign (not a hyphen), so the echo should work correctly.
10799    lt_compile=`echo "$ac_compile" | $SED \
10800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10802    -e 's:$: $lt_compiler_flag:'`
10803    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10804    (eval "$lt_compile" 2>out/conftest.err)
10805    ac_status=$?
10806    cat out/conftest.err >&5
10807    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10809    then
10810      # The compiler can only warn and ignore the option if not recognized
10811      # So say no if there are warnings
10812      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10813      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10814      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10815        lt_cv_prog_compiler_c_o=yes
10816      fi
10817    fi
10818    chmod u+w . 2>&5
10819    $RM conftest*
10820    # SGI C++ compiler will create directory out/ii_files/ for
10821    # template instantiation
10822    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10823    $RM out/* && rmdir out
10824    cd ..
10825    $RM -r conftest
10826    $RM conftest*
10827
10828 fi
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10830 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10831
10832
10833
10834
10835 hard_links="nottested"
10836 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10837   # do not overwrite the value of need_locks provided by the user
10838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10839 $as_echo_n "checking if we can lock with hard links... " >&6; }
10840   hard_links=yes
10841   $RM conftest*
10842   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10843   touch conftest.a
10844   ln conftest.a conftest.b 2>&5 || hard_links=no
10845   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10847 $as_echo "$hard_links" >&6; }
10848   if test "$hard_links" = no; then
10849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10850 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10851     need_locks=warn
10852   fi
10853 else
10854   need_locks=no
10855 fi
10856
10857
10858
10859
10860
10861
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10863 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10864
10865   runpath_var=
10866   allow_undefined_flag=
10867   always_export_symbols=no
10868   archive_cmds=
10869   archive_expsym_cmds=
10870   compiler_needs_object=no
10871   enable_shared_with_static_runtimes=no
10872   export_dynamic_flag_spec=
10873   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10874   hardcode_automatic=no
10875   hardcode_direct=no
10876   hardcode_direct_absolute=no
10877   hardcode_libdir_flag_spec=
10878   hardcode_libdir_separator=
10879   hardcode_minus_L=no
10880   hardcode_shlibpath_var=unsupported
10881   inherit_rpath=no
10882   link_all_deplibs=unknown
10883   module_cmds=
10884   module_expsym_cmds=
10885   old_archive_from_new_cmds=
10886   old_archive_from_expsyms_cmds=
10887   thread_safe_flag_spec=
10888   whole_archive_flag_spec=
10889   # include_expsyms should be a list of space-separated symbols to be *always*
10890   # included in the symbol list
10891   include_expsyms=
10892   # exclude_expsyms can be an extended regexp of symbols to exclude
10893   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10894   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10895   # as well as any symbol that contains `d'.
10896   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10897   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10898   # platforms (ab)use it in PIC code, but their linkers get confused if
10899   # the symbol is explicitly referenced.  Since portable code cannot
10900   # rely on this symbol name, it's probably fine to never include it in
10901   # preloaded symbol tables.
10902   # Exclude shared library initialization/finalization symbols.
10903   extract_expsyms_cmds=
10904
10905   case $host_os in
10906   cygwin* | mingw* | pw32* | cegcc*)
10907     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10908     # When not using gcc, we currently assume that we are using
10909     # Microsoft Visual C++.
10910     if test "$GCC" != yes; then
10911       with_gnu_ld=no
10912     fi
10913     ;;
10914   interix*)
10915     # we just hope/assume this is gcc and not c89 (= MSVC++)
10916     with_gnu_ld=yes
10917     ;;
10918   openbsd*)
10919     with_gnu_ld=no
10920     ;;
10921   linux* | k*bsd*-gnu | gnu*)
10922     link_all_deplibs=no
10923     ;;
10924   esac
10925
10926   ld_shlibs=yes
10927
10928   # On some targets, GNU ld is compatible enough with the native linker
10929   # that we're better off using the native interface for both.
10930   lt_use_gnu_ld_interface=no
10931   if test "$with_gnu_ld" = yes; then
10932     case $host_os in
10933       aix*)
10934         # The AIX port of GNU ld has always aspired to compatibility
10935         # with the native linker.  However, as the warning in the GNU ld
10936         # block says, versions before 2.19.5* couldn't really create working
10937         # shared libraries, regardless of the interface used.
10938         case `$LD -v 2>&1` in
10939           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10940           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10941           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10942           *)
10943             lt_use_gnu_ld_interface=yes
10944             ;;
10945         esac
10946         ;;
10947       *)
10948         lt_use_gnu_ld_interface=yes
10949         ;;
10950     esac
10951   fi
10952
10953   if test "$lt_use_gnu_ld_interface" = yes; then
10954     # If archive_cmds runs LD, not CC, wlarc should be empty
10955     wlarc='${wl}'
10956
10957     # Set some defaults for GNU ld with shared library support. These
10958     # are reset later if shared libraries are not supported. Putting them
10959     # here allows them to be overridden if necessary.
10960     runpath_var=LD_RUN_PATH
10961     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10962     export_dynamic_flag_spec='${wl}--export-dynamic'
10963     # ancient GNU ld didn't support --whole-archive et. al.
10964     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10965       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10966     else
10967       whole_archive_flag_spec=
10968     fi
10969     supports_anon_versioning=no
10970     case `$LD -v 2>&1` in
10971       *GNU\ gold*) supports_anon_versioning=yes ;;
10972       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10973       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10974       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10975       *\ 2.11.*) ;; # other 2.11 versions
10976       *) supports_anon_versioning=yes ;;
10977     esac
10978
10979     # See if GNU ld supports shared libraries.
10980     case $host_os in
10981     aix[3-9]*)
10982       # On AIX/PPC, the GNU linker is very broken
10983       if test "$host_cpu" != ia64; then
10984         ld_shlibs=no
10985         cat <<_LT_EOF 1>&2
10986
10987 *** Warning: the GNU linker, at least up to release 2.19, is reported
10988 *** to be unable to reliably create shared libraries on AIX.
10989 *** Therefore, libtool is disabling shared libraries support.  If you
10990 *** really care for shared libraries, you may want to install binutils
10991 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10992 *** You will then need to restart the configuration process.
10993
10994 _LT_EOF
10995       fi
10996       ;;
10997
10998     amigaos*)
10999       case $host_cpu in
11000       powerpc)
11001             # see comment about AmigaOS4 .so support
11002             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11003             archive_expsym_cmds=''
11004         ;;
11005       m68k)
11006             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)'
11007             hardcode_libdir_flag_spec='-L$libdir'
11008             hardcode_minus_L=yes
11009         ;;
11010       esac
11011       ;;
11012
11013     beos*)
11014       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11015         allow_undefined_flag=unsupported
11016         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11017         # support --undefined.  This deserves some investigation.  FIXME
11018         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11019       else
11020         ld_shlibs=no
11021       fi
11022       ;;
11023
11024     cygwin* | mingw* | pw32* | cegcc*)
11025       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11026       # as there is no search path for DLLs.
11027       hardcode_libdir_flag_spec='-L$libdir'
11028       export_dynamic_flag_spec='${wl}--export-all-symbols'
11029       allow_undefined_flag=unsupported
11030       always_export_symbols=no
11031       enable_shared_with_static_runtimes=yes
11032       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'
11033       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11034
11035       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11036         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11037         # If the export-symbols file already is a .def file (1st line
11038         # is EXPORTS), use it as is; otherwise, prepend...
11039         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11040           cp $export_symbols $output_objdir/$soname.def;
11041         else
11042           echo EXPORTS > $output_objdir/$soname.def;
11043           cat $export_symbols >> $output_objdir/$soname.def;
11044         fi~
11045         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11046       else
11047         ld_shlibs=no
11048       fi
11049       ;;
11050
11051     haiku*)
11052       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11053       link_all_deplibs=yes
11054       ;;
11055
11056     interix[3-9]*)
11057       hardcode_direct=no
11058       hardcode_shlibpath_var=no
11059       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11060       export_dynamic_flag_spec='${wl}-E'
11061       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11062       # Instead, shared libraries are loaded at an image base (0x10000000 by
11063       # default) and relocated if they conflict, which is a slow very memory
11064       # consuming and fragmenting process.  To avoid this, we pick a random,
11065       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11066       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11067       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11068       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'
11069       ;;
11070
11071     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11072       tmp_diet=no
11073       if test "$host_os" = linux-dietlibc; then
11074         case $cc_basename in
11075           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11076         esac
11077       fi
11078       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11079          && test "$tmp_diet" = no
11080       then
11081         tmp_addflag=' $pic_flag'
11082         tmp_sharedflag='-shared'
11083         case $cc_basename,$host_cpu in
11084         pgcc*)                          # Portland Group C compiler
11085           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'
11086           tmp_addflag=' $pic_flag'
11087           ;;
11088         pgf77* | pgf90* | pgf95* | pgfortran*)
11089                                         # Portland Group f77 and f90 compilers
11090           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'
11091           tmp_addflag=' $pic_flag -Mnomain' ;;
11092         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11093           tmp_addflag=' -i_dynamic' ;;
11094         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11095           tmp_addflag=' -i_dynamic -nofor_main' ;;
11096         ifc* | ifort*)                  # Intel Fortran compiler
11097           tmp_addflag=' -nofor_main' ;;
11098         lf95*)                          # Lahey Fortran 8.1
11099           whole_archive_flag_spec=
11100           tmp_sharedflag='--shared' ;;
11101         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11102           tmp_sharedflag='-qmkshrobj'
11103           tmp_addflag= ;;
11104         nvcc*)  # Cuda Compiler Driver 2.2
11105           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'
11106           compiler_needs_object=yes
11107           ;;
11108         esac
11109         case `$CC -V 2>&1 | sed 5q` in
11110         *Sun\ C*)                       # Sun C 5.9
11111           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'
11112           compiler_needs_object=yes
11113           tmp_sharedflag='-G' ;;
11114         *Sun\ F*)                       # Sun Fortran 8.3
11115           tmp_sharedflag='-G' ;;
11116         esac
11117         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11118
11119         if test "x$supports_anon_versioning" = xyes; then
11120           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11121             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11122             echo "local: *; };" >> $output_objdir/$libname.ver~
11123             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11124         fi
11125
11126         case $cc_basename in
11127         xlf* | bgf* | bgxlf* | mpixlf*)
11128           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11129           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11130           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11131           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11132           if test "x$supports_anon_versioning" = xyes; then
11133             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11134               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11135               echo "local: *; };" >> $output_objdir/$libname.ver~
11136               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11137           fi
11138           ;;
11139         esac
11140       else
11141         ld_shlibs=no
11142       fi
11143       ;;
11144
11145     netbsd* | netbsdelf*-gnu)
11146       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11147         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11148         wlarc=
11149       else
11150         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11151         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11152       fi
11153       ;;
11154
11155     solaris*)
11156       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11157         ld_shlibs=no
11158         cat <<_LT_EOF 1>&2
11159
11160 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11161 *** create shared libraries on Solaris systems.  Therefore, libtool
11162 *** is disabling shared libraries support.  We urge you to upgrade GNU
11163 *** binutils to release 2.9.1 or newer.  Another option is to modify
11164 *** your PATH or compiler configuration so that the native linker is
11165 *** used, and then restart.
11166
11167 _LT_EOF
11168       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11169         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11170         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11171       else
11172         ld_shlibs=no
11173       fi
11174       ;;
11175
11176     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11177       case `$LD -v 2>&1` in
11178         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11179         ld_shlibs=no
11180         cat <<_LT_EOF 1>&2
11181
11182 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11183 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11184 *** is disabling shared libraries support.  We urge you to upgrade GNU
11185 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11186 *** your PATH or compiler configuration so that the native linker is
11187 *** used, and then restart.
11188
11189 _LT_EOF
11190         ;;
11191         *)
11192           # For security reasons, it is highly recommended that you always
11193           # use absolute paths for naming shared libraries, and exclude the
11194           # DT_RUNPATH tag from executables and libraries.  But doing so
11195           # requires that you compile everything twice, which is a pain.
11196           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11197             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11198             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11199             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11200           else
11201             ld_shlibs=no
11202           fi
11203         ;;
11204       esac
11205       ;;
11206
11207     sunos4*)
11208       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11209       wlarc=
11210       hardcode_direct=yes
11211       hardcode_shlibpath_var=no
11212       ;;
11213
11214     *)
11215       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11216         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11217         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11218       else
11219         ld_shlibs=no
11220       fi
11221       ;;
11222     esac
11223
11224     if test "$ld_shlibs" = no; then
11225       runpath_var=
11226       hardcode_libdir_flag_spec=
11227       export_dynamic_flag_spec=
11228       whole_archive_flag_spec=
11229     fi
11230   else
11231     # PORTME fill in a description of your system's linker (not GNU ld)
11232     case $host_os in
11233     aix3*)
11234       allow_undefined_flag=unsupported
11235       always_export_symbols=yes
11236       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'
11237       # Note: this linker hardcodes the directories in LIBPATH if there
11238       # are no directories specified by -L.
11239       hardcode_minus_L=yes
11240       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11241         # Neither direct hardcoding nor static linking is supported with a
11242         # broken collect2.
11243         hardcode_direct=unsupported
11244       fi
11245       ;;
11246
11247     aix[4-9]*)
11248       if test "$host_cpu" = ia64; then
11249         # On IA64, the linker does run time linking by default, so we don't
11250         # have to do anything special.
11251         aix_use_runtimelinking=no
11252         exp_sym_flag='-Bexport'
11253         no_entry_flag=""
11254       else
11255         # If we're using GNU nm, then we don't want the "-C" option.
11256         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11257         # Also, AIX nm treats weak defined symbols like other global
11258         # defined symbols, whereas GNU nm marks them as "W".
11259         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11260           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'
11261         else
11262           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'
11263         fi
11264         aix_use_runtimelinking=no
11265
11266         # Test if we are trying to use run time linking or normal
11267         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11268         # need to do runtime linking.
11269         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11270           for ld_flag in $LDFLAGS; do
11271           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11272             aix_use_runtimelinking=yes
11273             break
11274           fi
11275           done
11276           ;;
11277         esac
11278
11279         exp_sym_flag='-bexport'
11280         no_entry_flag='-bnoentry'
11281       fi
11282
11283       # When large executables or shared objects are built, AIX ld can
11284       # have problems creating the table of contents.  If linking a library
11285       # or program results in "error TOC overflow" add -mminimal-toc to
11286       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11287       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11288
11289       archive_cmds=''
11290       hardcode_direct=yes
11291       hardcode_direct_absolute=yes
11292       hardcode_libdir_separator=':'
11293       link_all_deplibs=yes
11294       file_list_spec='${wl}-f,'
11295
11296       if test "$GCC" = yes; then
11297         case $host_os in aix4.[012]|aix4.[012].*)
11298         # We only want to do this on AIX 4.2 and lower, the check
11299         # below for broken collect2 doesn't work under 4.3+
11300           collect2name=`${CC} -print-prog-name=collect2`
11301           if test -f "$collect2name" &&
11302            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11303           then
11304           # We have reworked collect2
11305           :
11306           else
11307           # We have old collect2
11308           hardcode_direct=unsupported
11309           # It fails to find uninstalled libraries when the uninstalled
11310           # path is not listed in the libpath.  Setting hardcode_minus_L
11311           # to unsupported forces relinking
11312           hardcode_minus_L=yes
11313           hardcode_libdir_flag_spec='-L$libdir'
11314           hardcode_libdir_separator=
11315           fi
11316           ;;
11317         esac
11318         shared_flag='-shared'
11319         if test "$aix_use_runtimelinking" = yes; then
11320           shared_flag="$shared_flag "'${wl}-G'
11321         fi
11322         link_all_deplibs=no
11323       else
11324         # not using gcc
11325         if test "$host_cpu" = ia64; then
11326         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11327         # chokes on -Wl,-G. The following line is correct:
11328           shared_flag='-G'
11329         else
11330           if test "$aix_use_runtimelinking" = yes; then
11331             shared_flag='${wl}-G'
11332           else
11333             shared_flag='${wl}-bM:SRE'
11334           fi
11335         fi
11336       fi
11337
11338       export_dynamic_flag_spec='${wl}-bexpall'
11339       # It seems that -bexpall does not export symbols beginning with
11340       # underscore (_), so it is better to generate a list of symbols to export.
11341       always_export_symbols=yes
11342       if test "$aix_use_runtimelinking" = yes; then
11343         # Warning - without using the other runtime loading flags (-brtl),
11344         # -berok will link without error, but may produce a broken library.
11345         allow_undefined_flag='-berok'
11346         # Determine the default libpath from the value encoded in an
11347         # empty executable.
11348         if test "${lt_cv_aix_libpath+set}" = set; then
11349   aix_libpath=$lt_cv_aix_libpath
11350 else
11351   if ${lt_cv_aix_libpath_+:} false; then :
11352   $as_echo_n "(cached) " >&6
11353 else
11354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h.  */
11356
11357 int
11358 main ()
11359 {
11360
11361   ;
11362   return 0;
11363 }
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366
11367   lt_aix_libpath_sed='
11368       /Import File Strings/,/^$/ {
11369           /^0/ {
11370               s/^0  *\([^ ]*\) *$/\1/
11371               p
11372           }
11373       }'
11374   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11375   # Check for a 64-bit object if we didn't find anything.
11376   if test -z "$lt_cv_aix_libpath_"; then
11377     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11378   fi
11379 fi
11380 rm -f core conftest.err conftest.$ac_objext \
11381     conftest$ac_exeext conftest.$ac_ext
11382   if test -z "$lt_cv_aix_libpath_"; then
11383     lt_cv_aix_libpath_="/usr/lib:/lib"
11384   fi
11385
11386 fi
11387
11388   aix_libpath=$lt_cv_aix_libpath_
11389 fi
11390
11391         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11392         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"
11393       else
11394         if test "$host_cpu" = ia64; then
11395           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11396           allow_undefined_flag="-z nodefs"
11397           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"
11398         else
11399          # Determine the default libpath from the value encoded in an
11400          # empty executable.
11401          if test "${lt_cv_aix_libpath+set}" = set; then
11402   aix_libpath=$lt_cv_aix_libpath
11403 else
11404   if ${lt_cv_aix_libpath_+:} false; then :
11405   $as_echo_n "(cached) " >&6
11406 else
11407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h.  */
11409
11410 int
11411 main ()
11412 {
11413
11414   ;
11415   return 0;
11416 }
11417 _ACEOF
11418 if ac_fn_c_try_link "$LINENO"; then :
11419
11420   lt_aix_libpath_sed='
11421       /Import File Strings/,/^$/ {
11422           /^0/ {
11423               s/^0  *\([^ ]*\) *$/\1/
11424               p
11425           }
11426       }'
11427   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11428   # Check for a 64-bit object if we didn't find anything.
11429   if test -z "$lt_cv_aix_libpath_"; then
11430     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11431   fi
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext \
11434     conftest$ac_exeext conftest.$ac_ext
11435   if test -z "$lt_cv_aix_libpath_"; then
11436     lt_cv_aix_libpath_="/usr/lib:/lib"
11437   fi
11438
11439 fi
11440
11441   aix_libpath=$lt_cv_aix_libpath_
11442 fi
11443
11444          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11445           # Warning - without using the other run time loading flags,
11446           # -berok will link without error, but may produce a broken library.
11447           no_undefined_flag=' ${wl}-bernotok'
11448           allow_undefined_flag=' ${wl}-berok'
11449           if test "$with_gnu_ld" = yes; then
11450             # We only use this code for GNU lds that support --whole-archive.
11451             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11452           else
11453             # Exported symbols can be pulled into shared objects from archives
11454             whole_archive_flag_spec='$convenience'
11455           fi
11456           archive_cmds_need_lc=yes
11457           # This is similar to how AIX traditionally builds its shared libraries.
11458           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'
11459         fi
11460       fi
11461       ;;
11462
11463     amigaos*)
11464       case $host_cpu in
11465       powerpc)
11466             # see comment about AmigaOS4 .so support
11467             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11468             archive_expsym_cmds=''
11469         ;;
11470       m68k)
11471             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)'
11472             hardcode_libdir_flag_spec='-L$libdir'
11473             hardcode_minus_L=yes
11474         ;;
11475       esac
11476       ;;
11477
11478     bsdi[45]*)
11479       export_dynamic_flag_spec=-rdynamic
11480       ;;
11481
11482     cygwin* | mingw* | pw32* | cegcc*)
11483       # When not using gcc, we currently assume that we are using
11484       # Microsoft Visual C++.
11485       # hardcode_libdir_flag_spec is actually meaningless, as there is
11486       # no search path for DLLs.
11487       case $cc_basename in
11488       cl*)
11489         # Native MSVC
11490         hardcode_libdir_flag_spec=' '
11491         allow_undefined_flag=unsupported
11492         always_export_symbols=yes
11493         file_list_spec='@'
11494         # Tell ltmain to make .lib files, not .a files.
11495         libext=lib
11496         # Tell ltmain to make .dll files, not .so files.
11497         shrext_cmds=".dll"
11498         # FIXME: Setting linknames here is a bad hack.
11499         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11500         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11501             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11502           else
11503             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11504           fi~
11505           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11506           linknames='
11507         # The linker will not automatically build a static lib if we build a DLL.
11508         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11509         enable_shared_with_static_runtimes=yes
11510         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11511         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11512         # Don't use ranlib
11513         old_postinstall_cmds='chmod 644 $oldlib'
11514         postlink_cmds='lt_outputfile="@OUTPUT@"~
11515           lt_tool_outputfile="@TOOL_OUTPUT@"~
11516           case $lt_outputfile in
11517             *.exe|*.EXE) ;;
11518             *)
11519               lt_outputfile="$lt_outputfile.exe"
11520               lt_tool_outputfile="$lt_tool_outputfile.exe"
11521               ;;
11522           esac~
11523           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11524             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11525             $RM "$lt_outputfile.manifest";
11526           fi'
11527         ;;
11528       *)
11529         # Assume MSVC wrapper
11530         hardcode_libdir_flag_spec=' '
11531         allow_undefined_flag=unsupported
11532         # Tell ltmain to make .lib files, not .a files.
11533         libext=lib
11534         # Tell ltmain to make .dll files, not .so files.
11535         shrext_cmds=".dll"
11536         # FIXME: Setting linknames here is a bad hack.
11537         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11538         # The linker will automatically build a .lib file if we build a DLL.
11539         old_archive_from_new_cmds='true'
11540         # FIXME: Should let the user specify the lib program.
11541         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11542         enable_shared_with_static_runtimes=yes
11543         ;;
11544       esac
11545       ;;
11546
11547     darwin* | rhapsody*)
11548
11549
11550   archive_cmds_need_lc=no
11551   hardcode_direct=no
11552   hardcode_automatic=yes
11553   hardcode_shlibpath_var=unsupported
11554   if test "$lt_cv_ld_force_load" = "yes"; then
11555     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\"`'
11556
11557   else
11558     whole_archive_flag_spec=''
11559   fi
11560   link_all_deplibs=yes
11561   allow_undefined_flag="$_lt_dar_allow_undefined"
11562   case $cc_basename in
11563      ifort*) _lt_dar_can_shared=yes ;;
11564      *) _lt_dar_can_shared=$GCC ;;
11565   esac
11566   if test "$_lt_dar_can_shared" = "yes"; then
11567     output_verbose_link_cmd=func_echo_all
11568     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11569     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11570     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}"
11571     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}"
11572
11573   else
11574   ld_shlibs=no
11575   fi
11576
11577       ;;
11578
11579     dgux*)
11580       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11581       hardcode_libdir_flag_spec='-L$libdir'
11582       hardcode_shlibpath_var=no
11583       ;;
11584
11585     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11586     # support.  Future versions do this automatically, but an explicit c++rt0.o
11587     # does not break anything, and helps significantly (at the cost of a little
11588     # extra space).
11589     freebsd2.2*)
11590       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11591       hardcode_libdir_flag_spec='-R$libdir'
11592       hardcode_direct=yes
11593       hardcode_shlibpath_var=no
11594       ;;
11595
11596     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11597     freebsd2.*)
11598       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11599       hardcode_direct=yes
11600       hardcode_minus_L=yes
11601       hardcode_shlibpath_var=no
11602       ;;
11603
11604     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11605     freebsd* | dragonfly*)
11606       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11607       hardcode_libdir_flag_spec='-R$libdir'
11608       hardcode_direct=yes
11609       hardcode_shlibpath_var=no
11610       ;;
11611
11612     hpux9*)
11613       if test "$GCC" = yes; then
11614         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'
11615       else
11616         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'
11617       fi
11618       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11619       hardcode_libdir_separator=:
11620       hardcode_direct=yes
11621
11622       # hardcode_minus_L: Not really in the search PATH,
11623       # but as the default location of the library.
11624       hardcode_minus_L=yes
11625       export_dynamic_flag_spec='${wl}-E'
11626       ;;
11627
11628     hpux10*)
11629       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11630         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11631       else
11632         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11633       fi
11634       if test "$with_gnu_ld" = no; then
11635         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11636         hardcode_libdir_separator=:
11637         hardcode_direct=yes
11638         hardcode_direct_absolute=yes
11639         export_dynamic_flag_spec='${wl}-E'
11640         # hardcode_minus_L: Not really in the search PATH,
11641         # but as the default location of the library.
11642         hardcode_minus_L=yes
11643       fi
11644       ;;
11645
11646     hpux11*)
11647       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11648         case $host_cpu in
11649         hppa*64*)
11650           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11651           ;;
11652         ia64*)
11653           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11654           ;;
11655         *)
11656           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11657           ;;
11658         esac
11659       else
11660         case $host_cpu in
11661         hppa*64*)
11662           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11663           ;;
11664         ia64*)
11665           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11666           ;;
11667         *)
11668
11669           # Older versions of the 11.00 compiler do not understand -b yet
11670           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11671           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11672 $as_echo_n "checking if $CC understands -b... " >&6; }
11673 if ${lt_cv_prog_compiler__b+:} false; then :
11674   $as_echo_n "(cached) " >&6
11675 else
11676   lt_cv_prog_compiler__b=no
11677    save_LDFLAGS="$LDFLAGS"
11678    LDFLAGS="$LDFLAGS -b"
11679    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11680    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11681      # The linker can only warn and ignore the option if not recognized
11682      # So say no if there are warnings
11683      if test -s conftest.err; then
11684        # Append any errors to the config.log.
11685        cat conftest.err 1>&5
11686        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11687        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11688        if diff conftest.exp conftest.er2 >/dev/null; then
11689          lt_cv_prog_compiler__b=yes
11690        fi
11691      else
11692        lt_cv_prog_compiler__b=yes
11693      fi
11694    fi
11695    $RM -r conftest*
11696    LDFLAGS="$save_LDFLAGS"
11697
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11700 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11701
11702 if test x"$lt_cv_prog_compiler__b" = xyes; then
11703     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11704 else
11705     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11706 fi
11707
11708           ;;
11709         esac
11710       fi
11711       if test "$with_gnu_ld" = no; then
11712         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11713         hardcode_libdir_separator=:
11714
11715         case $host_cpu in
11716         hppa*64*|ia64*)
11717           hardcode_direct=no
11718           hardcode_shlibpath_var=no
11719           ;;
11720         *)
11721           hardcode_direct=yes
11722           hardcode_direct_absolute=yes
11723           export_dynamic_flag_spec='${wl}-E'
11724
11725           # hardcode_minus_L: Not really in the search PATH,
11726           # but as the default location of the library.
11727           hardcode_minus_L=yes
11728           ;;
11729         esac
11730       fi
11731       ;;
11732
11733     irix5* | irix6* | nonstopux*)
11734       if test "$GCC" = yes; then
11735         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'
11736         # Try to use the -exported_symbol ld option, if it does not
11737         # work, assume that -exports_file does not work either and
11738         # implicitly export all symbols.
11739         # This should be the same for all languages, so no per-tag cache variable.
11740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11741 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11742 if ${lt_cv_irix_exported_symbol+:} false; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745   save_LDFLAGS="$LDFLAGS"
11746            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11747            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h.  */
11749 int foo (void) { return 0; }
11750 _ACEOF
11751 if ac_fn_c_try_link "$LINENO"; then :
11752   lt_cv_irix_exported_symbol=yes
11753 else
11754   lt_cv_irix_exported_symbol=no
11755 fi
11756 rm -f core conftest.err conftest.$ac_objext \
11757     conftest$ac_exeext conftest.$ac_ext
11758            LDFLAGS="$save_LDFLAGS"
11759 fi
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11761 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11762         if test "$lt_cv_irix_exported_symbol" = yes; then
11763           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'
11764         fi
11765       else
11766         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'
11767         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'
11768       fi
11769       archive_cmds_need_lc='no'
11770       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11771       hardcode_libdir_separator=:
11772       inherit_rpath=yes
11773       link_all_deplibs=yes
11774       ;;
11775
11776     netbsd* | netbsdelf*-gnu)
11777       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11778         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11779       else
11780         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11781       fi
11782       hardcode_libdir_flag_spec='-R$libdir'
11783       hardcode_direct=yes
11784       hardcode_shlibpath_var=no
11785       ;;
11786
11787     newsos6)
11788       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11789       hardcode_direct=yes
11790       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11791       hardcode_libdir_separator=:
11792       hardcode_shlibpath_var=no
11793       ;;
11794
11795     *nto* | *qnx*)
11796       ;;
11797
11798     openbsd*)
11799       if test -f /usr/libexec/ld.so; then
11800         hardcode_direct=yes
11801         hardcode_shlibpath_var=no
11802         hardcode_direct_absolute=yes
11803         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11804           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11805           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11806           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11807           export_dynamic_flag_spec='${wl}-E'
11808         else
11809           case $host_os in
11810            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11811              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11812              hardcode_libdir_flag_spec='-R$libdir'
11813              ;;
11814            *)
11815              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11816              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11817              ;;
11818           esac
11819         fi
11820       else
11821         ld_shlibs=no
11822       fi
11823       ;;
11824
11825     os2*)
11826       hardcode_libdir_flag_spec='-L$libdir'
11827       hardcode_minus_L=yes
11828       allow_undefined_flag=unsupported
11829       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'
11830       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11831       ;;
11832
11833     osf3*)
11834       if test "$GCC" = yes; then
11835         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11836         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'
11837       else
11838         allow_undefined_flag=' -expect_unresolved \*'
11839         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'
11840       fi
11841       archive_cmds_need_lc='no'
11842       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11843       hardcode_libdir_separator=:
11844       ;;
11845
11846     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11847       if test "$GCC" = yes; then
11848         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11849         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'
11850         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11851       else
11852         allow_undefined_flag=' -expect_unresolved \*'
11853         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'
11854         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~
11855         $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'
11856
11857         # Both c and cxx compiler support -rpath directly
11858         hardcode_libdir_flag_spec='-rpath $libdir'
11859       fi
11860       archive_cmds_need_lc='no'
11861       hardcode_libdir_separator=:
11862       ;;
11863
11864     solaris*)
11865       no_undefined_flag=' -z defs'
11866       if test "$GCC" = yes; then
11867         wlarc='${wl}'
11868         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11869         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11870           $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'
11871       else
11872         case `$CC -V 2>&1` in
11873         *"Compilers 5.0"*)
11874           wlarc=''
11875           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11876           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11877           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11878           ;;
11879         *)
11880           wlarc='${wl}'
11881           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11882           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11883           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11884           ;;
11885         esac
11886       fi
11887       hardcode_libdir_flag_spec='-R$libdir'
11888       hardcode_shlibpath_var=no
11889       case $host_os in
11890       solaris2.[0-5] | solaris2.[0-5].*) ;;
11891       *)
11892         # The compiler driver will combine and reorder linker options,
11893         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11894         # but is careful enough not to reorder.
11895         # Supported since Solaris 2.6 (maybe 2.5.1?)
11896         if test "$GCC" = yes; then
11897           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11898         else
11899           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11900         fi
11901         ;;
11902       esac
11903       link_all_deplibs=yes
11904       ;;
11905
11906     sunos4*)
11907       if test "x$host_vendor" = xsequent; then
11908         # Use $CC to link under sequent, because it throws in some extra .o
11909         # files that make .init and .fini sections work.
11910         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11911       else
11912         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11913       fi
11914       hardcode_libdir_flag_spec='-L$libdir'
11915       hardcode_direct=yes
11916       hardcode_minus_L=yes
11917       hardcode_shlibpath_var=no
11918       ;;
11919
11920     sysv4)
11921       case $host_vendor in
11922         sni)
11923           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11924           hardcode_direct=yes # is this really true???
11925         ;;
11926         siemens)
11927           ## LD is ld it makes a PLAMLIB
11928           ## CC just makes a GrossModule.
11929           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11930           reload_cmds='$CC -r -o $output$reload_objs'
11931           hardcode_direct=no
11932         ;;
11933         motorola)
11934           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11935           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11936         ;;
11937       esac
11938       runpath_var='LD_RUN_PATH'
11939       hardcode_shlibpath_var=no
11940       ;;
11941
11942     sysv4.3*)
11943       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11944       hardcode_shlibpath_var=no
11945       export_dynamic_flag_spec='-Bexport'
11946       ;;
11947
11948     sysv4*MP*)
11949       if test -d /usr/nec; then
11950         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11951         hardcode_shlibpath_var=no
11952         runpath_var=LD_RUN_PATH
11953         hardcode_runpath_var=yes
11954         ld_shlibs=yes
11955       fi
11956       ;;
11957
11958     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11959       no_undefined_flag='${wl}-z,text'
11960       archive_cmds_need_lc=no
11961       hardcode_shlibpath_var=no
11962       runpath_var='LD_RUN_PATH'
11963
11964       if test "$GCC" = yes; then
11965         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11966         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11967       else
11968         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11970       fi
11971       ;;
11972
11973     sysv5* | sco3.2v5* | sco5v6*)
11974       # Note: We can NOT use -z defs as we might desire, because we do not
11975       # link with -lc, and that would cause any symbols used from libc to
11976       # always be unresolved, which means just about no library would
11977       # ever link correctly.  If we're not using GNU ld we use -z text
11978       # though, which does catch some bad symbols but isn't as heavy-handed
11979       # as -z defs.
11980       no_undefined_flag='${wl}-z,text'
11981       allow_undefined_flag='${wl}-z,nodefs'
11982       archive_cmds_need_lc=no
11983       hardcode_shlibpath_var=no
11984       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11985       hardcode_libdir_separator=':'
11986       link_all_deplibs=yes
11987       export_dynamic_flag_spec='${wl}-Bexport'
11988       runpath_var='LD_RUN_PATH'
11989
11990       if test "$GCC" = yes; then
11991         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11993       else
11994         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11995         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11996       fi
11997       ;;
11998
11999     uts4*)
12000       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12001       hardcode_libdir_flag_spec='-L$libdir'
12002       hardcode_shlibpath_var=no
12003       ;;
12004
12005     *)
12006       ld_shlibs=no
12007       ;;
12008     esac
12009
12010     if test x$host_vendor = xsni; then
12011       case $host in
12012       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12013         export_dynamic_flag_spec='${wl}-Blargedynsym'
12014         ;;
12015       esac
12016     fi
12017   fi
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12020 $as_echo "$ld_shlibs" >&6; }
12021 test "$ld_shlibs" = no && can_build_shared=no
12022
12023 with_gnu_ld=$with_gnu_ld
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039 #
12040 # Do we need to explicitly link libc?
12041 #
12042 case "x$archive_cmds_need_lc" in
12043 x|xyes)
12044   # Assume -lc should be added
12045   archive_cmds_need_lc=yes
12046
12047   if test "$enable_shared" = yes && test "$GCC" = yes; then
12048     case $archive_cmds in
12049     *'~'*)
12050       # FIXME: we may have to deal with multi-command sequences.
12051       ;;
12052     '$CC '*)
12053       # Test whether the compiler implicitly links with -lc since on some
12054       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12055       # to ld, don't add -lc before -lgcc.
12056       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12057 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12058 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12059   $as_echo_n "(cached) " >&6
12060 else
12061   $RM conftest*
12062         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12063
12064         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12065   (eval $ac_compile) 2>&5
12066   ac_status=$?
12067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12068   test $ac_status = 0; } 2>conftest.err; then
12069           soname=conftest
12070           lib=conftest
12071           libobjs=conftest.$ac_objext
12072           deplibs=
12073           wl=$lt_prog_compiler_wl
12074           pic_flag=$lt_prog_compiler_pic
12075           compiler_flags=-v
12076           linker_flags=-v
12077           verstring=
12078           output_objdir=.
12079           libname=conftest
12080           lt_save_allow_undefined_flag=$allow_undefined_flag
12081           allow_undefined_flag=
12082           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12083   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12084   ac_status=$?
12085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12086   test $ac_status = 0; }
12087           then
12088             lt_cv_archive_cmds_need_lc=no
12089           else
12090             lt_cv_archive_cmds_need_lc=yes
12091           fi
12092           allow_undefined_flag=$lt_save_allow_undefined_flag
12093         else
12094           cat conftest.err 1>&5
12095         fi
12096         $RM conftest*
12097
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12100 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12101       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12102       ;;
12103     esac
12104   fi
12105   ;;
12106 esac
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12260 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12261
12262 if test "$GCC" = yes; then
12263   case $host_os in
12264     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12265     *) lt_awk_arg="/^libraries:/" ;;
12266   esac
12267   case $host_os in
12268     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12269     *) lt_sed_strip_eq="s,=/,/,g" ;;
12270   esac
12271   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12272   case $lt_search_path_spec in
12273   *\;*)
12274     # if the path contains ";" then we assume it to be the separator
12275     # otherwise default to the standard path separator (i.e. ":") - it is
12276     # assumed that no part of a normal pathname contains ";" but that should
12277     # okay in the real world where ";" in dirpaths is itself problematic.
12278     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12279     ;;
12280   *)
12281     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12282     ;;
12283   esac
12284   # Ok, now we have the path, separated by spaces, we can step through it
12285   # and add multilib dir if necessary.
12286   lt_tmp_lt_search_path_spec=
12287   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12288   for lt_sys_path in $lt_search_path_spec; do
12289     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12290       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12291     else
12292       test -d "$lt_sys_path" && \
12293         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12294     fi
12295   done
12296   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12297 BEGIN {RS=" "; FS="/|\n";} {
12298   lt_foo="";
12299   lt_count=0;
12300   for (lt_i = NF; lt_i > 0; lt_i--) {
12301     if ($lt_i != "" && $lt_i != ".") {
12302       if ($lt_i == "..") {
12303         lt_count++;
12304       } else {
12305         if (lt_count == 0) {
12306           lt_foo="/" $lt_i lt_foo;
12307         } else {
12308           lt_count--;
12309         }
12310       }
12311     }
12312   }
12313   if (lt_foo != "") { lt_freq[lt_foo]++; }
12314   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12315 }'`
12316   # AWK program above erroneously prepends '/' to C:/dos/paths
12317   # for these hosts.
12318   case $host_os in
12319     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12320       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12321   esac
12322   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12323 else
12324   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12325 fi
12326 library_names_spec=
12327 libname_spec='lib$name'
12328 soname_spec=
12329 shrext_cmds=".so"
12330 postinstall_cmds=
12331 postuninstall_cmds=
12332 finish_cmds=
12333 finish_eval=
12334 shlibpath_var=
12335 shlibpath_overrides_runpath=unknown
12336 version_type=none
12337 dynamic_linker="$host_os ld.so"
12338 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12339 need_lib_prefix=unknown
12340 hardcode_into_libs=no
12341
12342 # when you set need_version to no, make sure it does not cause -set_version
12343 # flags to be left without arguments
12344 need_version=unknown
12345
12346 case $host_os in
12347 aix3*)
12348   version_type=linux # correct to gnu/linux during the next big refactor
12349   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12350   shlibpath_var=LIBPATH
12351
12352   # AIX 3 has no versioning support, so we append a major version to the name.
12353   soname_spec='${libname}${release}${shared_ext}$major'
12354   ;;
12355
12356 aix[4-9]*)
12357   version_type=linux # correct to gnu/linux during the next big refactor
12358   need_lib_prefix=no
12359   need_version=no
12360   hardcode_into_libs=yes
12361   if test "$host_cpu" = ia64; then
12362     # AIX 5 supports IA64
12363     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12364     shlibpath_var=LD_LIBRARY_PATH
12365   else
12366     # With GCC up to 2.95.x, collect2 would create an import file
12367     # for dependence libraries.  The import file would start with
12368     # the line `#! .'.  This would cause the generated library to
12369     # depend on `.', always an invalid library.  This was fixed in
12370     # development snapshots of GCC prior to 3.0.
12371     case $host_os in
12372       aix4 | aix4.[01] | aix4.[01].*)
12373       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12374            echo ' yes '
12375            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12376         :
12377       else
12378         can_build_shared=no
12379       fi
12380       ;;
12381     esac
12382     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12383     # soname into executable. Probably we can add versioning support to
12384     # collect2, so additional links can be useful in future.
12385     if test "$aix_use_runtimelinking" = yes; then
12386       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12387       # instead of lib<name>.a to let people know that these are not
12388       # typical AIX shared libraries.
12389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390     else
12391       # We preserve .a as extension for shared libraries through AIX4.2
12392       # and later when we are not doing run time linking.
12393       library_names_spec='${libname}${release}.a $libname.a'
12394       soname_spec='${libname}${release}${shared_ext}$major'
12395     fi
12396     shlibpath_var=LIBPATH
12397   fi
12398   ;;
12399
12400 amigaos*)
12401   case $host_cpu in
12402   powerpc)
12403     # Since July 2007 AmigaOS4 officially supports .so libraries.
12404     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406     ;;
12407   m68k)
12408     library_names_spec='$libname.ixlibrary $libname.a'
12409     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12410     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'
12411     ;;
12412   esac
12413   ;;
12414
12415 beos*)
12416   library_names_spec='${libname}${shared_ext}'
12417   dynamic_linker="$host_os ld.so"
12418   shlibpath_var=LIBRARY_PATH
12419   ;;
12420
12421 bsdi[45]*)
12422   version_type=linux # correct to gnu/linux during the next big refactor
12423   need_version=no
12424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425   soname_spec='${libname}${release}${shared_ext}$major'
12426   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12427   shlibpath_var=LD_LIBRARY_PATH
12428   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12429   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12430   # the default ld.so.conf also contains /usr/contrib/lib and
12431   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12432   # libtool to hard-code these into programs
12433   ;;
12434
12435 cygwin* | mingw* | pw32* | cegcc*)
12436   version_type=windows
12437   shrext_cmds=".dll"
12438   need_version=no
12439   need_lib_prefix=no
12440
12441   case $GCC,$cc_basename in
12442   yes,*)
12443     # gcc
12444     library_names_spec='$libname.dll.a'
12445     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12446     postinstall_cmds='base_file=`basename \${file}`~
12447       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12448       dldir=$destdir/`dirname \$dlpath`~
12449       test -d \$dldir || mkdir -p \$dldir~
12450       $install_prog $dir/$dlname \$dldir/$dlname~
12451       chmod a+x \$dldir/$dlname~
12452       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12453         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12454       fi'
12455     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12456       dlpath=$dir/\$dldll~
12457        $RM \$dlpath'
12458     shlibpath_overrides_runpath=yes
12459
12460     case $host_os in
12461     cygwin*)
12462       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12463       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12464
12465       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12466       ;;
12467     mingw* | cegcc*)
12468       # MinGW DLLs use traditional 'lib' prefix
12469       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12470       ;;
12471     pw32*)
12472       # pw32 DLLs use 'pw' prefix rather than 'lib'
12473       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12474       ;;
12475     esac
12476     dynamic_linker='Win32 ld.exe'
12477     ;;
12478
12479   *,cl*)
12480     # Native MSVC
12481     libname_spec='$name'
12482     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12483     library_names_spec='${libname}.dll.lib'
12484
12485     case $build_os in
12486     mingw*)
12487       sys_lib_search_path_spec=
12488       lt_save_ifs=$IFS
12489       IFS=';'
12490       for lt_path in $LIB
12491       do
12492         IFS=$lt_save_ifs
12493         # Let DOS variable expansion print the short 8.3 style file name.
12494         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12495         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12496       done
12497       IFS=$lt_save_ifs
12498       # Convert to MSYS style.
12499       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12500       ;;
12501     cygwin*)
12502       # Convert to unix form, then to dos form, then back to unix form
12503       # but this time dos style (no spaces!) so that the unix form looks
12504       # like /cygdrive/c/PROGRA~1:/cygdr...
12505       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12506       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12507       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12508       ;;
12509     *)
12510       sys_lib_search_path_spec="$LIB"
12511       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12512         # It is most probably a Windows format PATH.
12513         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12514       else
12515         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12516       fi
12517       # FIXME: find the short name or the path components, as spaces are
12518       # common. (e.g. "Program Files" -> "PROGRA~1")
12519       ;;
12520     esac
12521
12522     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12523     postinstall_cmds='base_file=`basename \${file}`~
12524       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12525       dldir=$destdir/`dirname \$dlpath`~
12526       test -d \$dldir || mkdir -p \$dldir~
12527       $install_prog $dir/$dlname \$dldir/$dlname'
12528     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12529       dlpath=$dir/\$dldll~
12530        $RM \$dlpath'
12531     shlibpath_overrides_runpath=yes
12532     dynamic_linker='Win32 link.exe'
12533     ;;
12534
12535   *)
12536     # Assume MSVC wrapper
12537     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12538     dynamic_linker='Win32 ld.exe'
12539     ;;
12540   esac
12541   # FIXME: first we should search . and the directory the executable is in
12542   shlibpath_var=PATH
12543   ;;
12544
12545 darwin* | rhapsody*)
12546   dynamic_linker="$host_os dyld"
12547   version_type=darwin
12548   need_lib_prefix=no
12549   need_version=no
12550   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12551   soname_spec='${libname}${release}${major}$shared_ext'
12552   shlibpath_overrides_runpath=yes
12553   shlibpath_var=DYLD_LIBRARY_PATH
12554   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12555
12556   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12557   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12558   ;;
12559
12560 dgux*)
12561   version_type=linux # correct to gnu/linux during the next big refactor
12562   need_lib_prefix=no
12563   need_version=no
12564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12565   soname_spec='${libname}${release}${shared_ext}$major'
12566   shlibpath_var=LD_LIBRARY_PATH
12567   ;;
12568
12569 freebsd* | dragonfly*)
12570   # DragonFly does not have aout.  When/if they implement a new
12571   # versioning mechanism, adjust this.
12572   if test -x /usr/bin/objformat; then
12573     objformat=`/usr/bin/objformat`
12574   else
12575     case $host_os in
12576     freebsd[23].*) objformat=aout ;;
12577     *) objformat=elf ;;
12578     esac
12579   fi
12580   version_type=freebsd-$objformat
12581   case $version_type in
12582     freebsd-elf*)
12583       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12584       need_version=no
12585       need_lib_prefix=no
12586       ;;
12587     freebsd-*)
12588       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12589       need_version=yes
12590       ;;
12591   esac
12592   shlibpath_var=LD_LIBRARY_PATH
12593   case $host_os in
12594   freebsd2.*)
12595     shlibpath_overrides_runpath=yes
12596     ;;
12597   freebsd3.[01]* | freebsdelf3.[01]*)
12598     shlibpath_overrides_runpath=yes
12599     hardcode_into_libs=yes
12600     ;;
12601   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12602   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12603     shlibpath_overrides_runpath=no
12604     hardcode_into_libs=yes
12605     ;;
12606   *) # from 4.6 on, and DragonFly
12607     shlibpath_overrides_runpath=yes
12608     hardcode_into_libs=yes
12609     ;;
12610   esac
12611   ;;
12612
12613 gnu*)
12614   version_type=linux # correct to gnu/linux during the next big refactor
12615   need_lib_prefix=no
12616   need_version=no
12617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12618   soname_spec='${libname}${release}${shared_ext}$major'
12619   shlibpath_var=LD_LIBRARY_PATH
12620   shlibpath_overrides_runpath=no
12621   hardcode_into_libs=yes
12622   ;;
12623
12624 haiku*)
12625   version_type=linux # correct to gnu/linux during the next big refactor
12626   need_lib_prefix=no
12627   need_version=no
12628   dynamic_linker="$host_os runtime_loader"
12629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12630   soname_spec='${libname}${release}${shared_ext}$major'
12631   shlibpath_var=LIBRARY_PATH
12632   shlibpath_overrides_runpath=yes
12633   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12634   hardcode_into_libs=yes
12635   ;;
12636
12637 hpux9* | hpux10* | hpux11*)
12638   # Give a soname corresponding to the major version so that dld.sl refuses to
12639   # link against other versions.
12640   version_type=sunos
12641   need_lib_prefix=no
12642   need_version=no
12643   case $host_cpu in
12644   ia64*)
12645     shrext_cmds='.so'
12646     hardcode_into_libs=yes
12647     dynamic_linker="$host_os dld.so"
12648     shlibpath_var=LD_LIBRARY_PATH
12649     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12651     soname_spec='${libname}${release}${shared_ext}$major'
12652     if test "X$HPUX_IA64_MODE" = X32; then
12653       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12654     else
12655       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12656     fi
12657     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12658     ;;
12659   hppa*64*)
12660     shrext_cmds='.sl'
12661     hardcode_into_libs=yes
12662     dynamic_linker="$host_os dld.sl"
12663     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12664     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666     soname_spec='${libname}${release}${shared_ext}$major'
12667     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12668     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12669     ;;
12670   *)
12671     shrext_cmds='.sl'
12672     dynamic_linker="$host_os dld.sl"
12673     shlibpath_var=SHLIB_PATH
12674     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12676     soname_spec='${libname}${release}${shared_ext}$major'
12677     ;;
12678   esac
12679   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12680   postinstall_cmds='chmod 555 $lib'
12681   # or fails outright, so override atomically:
12682   install_override_mode=555
12683   ;;
12684
12685 interix[3-9]*)
12686   version_type=linux # correct to gnu/linux during the next big refactor
12687   need_lib_prefix=no
12688   need_version=no
12689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12690   soname_spec='${libname}${release}${shared_ext}$major'
12691   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12692   shlibpath_var=LD_LIBRARY_PATH
12693   shlibpath_overrides_runpath=no
12694   hardcode_into_libs=yes
12695   ;;
12696
12697 irix5* | irix6* | nonstopux*)
12698   case $host_os in
12699     nonstopux*) version_type=nonstopux ;;
12700     *)
12701         if test "$lt_cv_prog_gnu_ld" = yes; then
12702                 version_type=linux # correct to gnu/linux during the next big refactor
12703         else
12704                 version_type=irix
12705         fi ;;
12706   esac
12707   need_lib_prefix=no
12708   need_version=no
12709   soname_spec='${libname}${release}${shared_ext}$major'
12710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12711   case $host_os in
12712   irix5* | nonstopux*)
12713     libsuff= shlibsuff=
12714     ;;
12715   *)
12716     case $LD in # libtool.m4 will add one of these switches to LD
12717     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12718       libsuff= shlibsuff= libmagic=32-bit;;
12719     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12720       libsuff=32 shlibsuff=N32 libmagic=N32;;
12721     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12722       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12723     *) libsuff= shlibsuff= libmagic=never-match;;
12724     esac
12725     ;;
12726   esac
12727   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12728   shlibpath_overrides_runpath=no
12729   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12730   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12731   hardcode_into_libs=yes
12732   ;;
12733
12734 # No shared lib support for Linux oldld, aout, or coff.
12735 linux*oldld* | linux*aout* | linux*coff*)
12736   dynamic_linker=no
12737   ;;
12738
12739 # This must be glibc/ELF.
12740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12741   version_type=linux # correct to gnu/linux during the next big refactor
12742   need_lib_prefix=no
12743   need_version=no
12744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12745   soname_spec='${libname}${release}${shared_ext}$major'
12746   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12747   shlibpath_var=LD_LIBRARY_PATH
12748   shlibpath_overrides_runpath=no
12749
12750   # Some binutils ld are patched to set DT_RUNPATH
12751   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12752   $as_echo_n "(cached) " >&6
12753 else
12754   lt_cv_shlibpath_overrides_runpath=no
12755     save_LDFLAGS=$LDFLAGS
12756     save_libdir=$libdir
12757     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12758          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761
12762 int
12763 main ()
12764 {
12765
12766   ;
12767   return 0;
12768 }
12769 _ACEOF
12770 if ac_fn_c_try_link "$LINENO"; then :
12771   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12772   lt_cv_shlibpath_overrides_runpath=yes
12773 fi
12774 fi
12775 rm -f core conftest.err conftest.$ac_objext \
12776     conftest$ac_exeext conftest.$ac_ext
12777     LDFLAGS=$save_LDFLAGS
12778     libdir=$save_libdir
12779
12780 fi
12781
12782   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12783
12784   # This implies no fast_install, which is unacceptable.
12785   # Some rework will be needed to allow for fast_install
12786   # before this can be enabled.
12787   hardcode_into_libs=yes
12788
12789   # Append ld.so.conf contents to the search path
12790   if test -f /etc/ld.so.conf; then
12791     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' ' '`
12792     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12793   fi
12794
12795   # We used to test for /lib/ld.so.1 and disable shared libraries on
12796   # powerpc, because MkLinux only supported shared libraries with the
12797   # GNU dynamic linker.  Since this was broken with cross compilers,
12798   # most powerpc-linux boxes support dynamic linking these days and
12799   # people can always --disable-shared, the test was removed, and we
12800   # assume the GNU/Linux dynamic linker is in use.
12801   dynamic_linker='GNU/Linux ld.so'
12802   ;;
12803
12804 netbsdelf*-gnu)
12805   version_type=linux
12806   need_lib_prefix=no
12807   need_version=no
12808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12809   soname_spec='${libname}${release}${shared_ext}$major'
12810   shlibpath_var=LD_LIBRARY_PATH
12811   shlibpath_overrides_runpath=no
12812   hardcode_into_libs=yes
12813   dynamic_linker='NetBSD ld.elf_so'
12814   ;;
12815
12816 netbsd*)
12817   version_type=sunos
12818   need_lib_prefix=no
12819   need_version=no
12820   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12822     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12823     dynamic_linker='NetBSD (a.out) ld.so'
12824   else
12825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12826     soname_spec='${libname}${release}${shared_ext}$major'
12827     dynamic_linker='NetBSD ld.elf_so'
12828   fi
12829   shlibpath_var=LD_LIBRARY_PATH
12830   shlibpath_overrides_runpath=yes
12831   hardcode_into_libs=yes
12832   ;;
12833
12834 newsos6)
12835   version_type=linux # correct to gnu/linux during the next big refactor
12836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12837   shlibpath_var=LD_LIBRARY_PATH
12838   shlibpath_overrides_runpath=yes
12839   ;;
12840
12841 *nto* | *qnx*)
12842   version_type=qnx
12843   need_lib_prefix=no
12844   need_version=no
12845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12846   soname_spec='${libname}${release}${shared_ext}$major'
12847   shlibpath_var=LD_LIBRARY_PATH
12848   shlibpath_overrides_runpath=no
12849   hardcode_into_libs=yes
12850   dynamic_linker='ldqnx.so'
12851   ;;
12852
12853 openbsd*)
12854   version_type=sunos
12855   sys_lib_dlsearch_path_spec="/usr/lib"
12856   need_lib_prefix=no
12857   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12858   case $host_os in
12859     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12860     *)                          need_version=no  ;;
12861   esac
12862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12863   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12864   shlibpath_var=LD_LIBRARY_PATH
12865   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12866     case $host_os in
12867       openbsd2.[89] | openbsd2.[89].*)
12868         shlibpath_overrides_runpath=no
12869         ;;
12870       *)
12871         shlibpath_overrides_runpath=yes
12872         ;;
12873       esac
12874   else
12875     shlibpath_overrides_runpath=yes
12876   fi
12877   ;;
12878
12879 os2*)
12880   libname_spec='$name'
12881   shrext_cmds=".dll"
12882   need_lib_prefix=no
12883   library_names_spec='$libname${shared_ext} $libname.a'
12884   dynamic_linker='OS/2 ld.exe'
12885   shlibpath_var=LIBPATH
12886   ;;
12887
12888 osf3* | osf4* | osf5*)
12889   version_type=osf
12890   need_lib_prefix=no
12891   need_version=no
12892   soname_spec='${libname}${release}${shared_ext}$major'
12893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12894   shlibpath_var=LD_LIBRARY_PATH
12895   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12896   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12897   ;;
12898
12899 rdos*)
12900   dynamic_linker=no
12901   ;;
12902
12903 solaris*)
12904   version_type=linux # correct to gnu/linux during the next big refactor
12905   need_lib_prefix=no
12906   need_version=no
12907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908   soname_spec='${libname}${release}${shared_ext}$major'
12909   shlibpath_var=LD_LIBRARY_PATH
12910   shlibpath_overrides_runpath=yes
12911   hardcode_into_libs=yes
12912   # ldd complains unless libraries are executable
12913   postinstall_cmds='chmod +x $lib'
12914   ;;
12915
12916 sunos4*)
12917   version_type=sunos
12918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12919   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12920   shlibpath_var=LD_LIBRARY_PATH
12921   shlibpath_overrides_runpath=yes
12922   if test "$with_gnu_ld" = yes; then
12923     need_lib_prefix=no
12924   fi
12925   need_version=yes
12926   ;;
12927
12928 sysv4 | sysv4.3*)
12929   version_type=linux # correct to gnu/linux during the next big refactor
12930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931   soname_spec='${libname}${release}${shared_ext}$major'
12932   shlibpath_var=LD_LIBRARY_PATH
12933   case $host_vendor in
12934     sni)
12935       shlibpath_overrides_runpath=no
12936       need_lib_prefix=no
12937       runpath_var=LD_RUN_PATH
12938       ;;
12939     siemens)
12940       need_lib_prefix=no
12941       ;;
12942     motorola)
12943       need_lib_prefix=no
12944       need_version=no
12945       shlibpath_overrides_runpath=no
12946       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12947       ;;
12948   esac
12949   ;;
12950
12951 sysv4*MP*)
12952   if test -d /usr/nec ;then
12953     version_type=linux # correct to gnu/linux during the next big refactor
12954     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12955     soname_spec='$libname${shared_ext}.$major'
12956     shlibpath_var=LD_LIBRARY_PATH
12957   fi
12958   ;;
12959
12960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12961   version_type=freebsd-elf
12962   need_lib_prefix=no
12963   need_version=no
12964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12965   soname_spec='${libname}${release}${shared_ext}$major'
12966   shlibpath_var=LD_LIBRARY_PATH
12967   shlibpath_overrides_runpath=yes
12968   hardcode_into_libs=yes
12969   if test "$with_gnu_ld" = yes; then
12970     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12971   else
12972     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12973     case $host_os in
12974       sco3.2v5*)
12975         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12976         ;;
12977     esac
12978   fi
12979   sys_lib_dlsearch_path_spec='/usr/lib'
12980   ;;
12981
12982 tpf*)
12983   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12984   version_type=linux # correct to gnu/linux during the next big refactor
12985   need_lib_prefix=no
12986   need_version=no
12987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988   shlibpath_var=LD_LIBRARY_PATH
12989   shlibpath_overrides_runpath=no
12990   hardcode_into_libs=yes
12991   ;;
12992
12993 uts4*)
12994   version_type=linux # correct to gnu/linux during the next big refactor
12995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996   soname_spec='${libname}${release}${shared_ext}$major'
12997   shlibpath_var=LD_LIBRARY_PATH
12998   ;;
12999
13000 *)
13001   dynamic_linker=no
13002   ;;
13003 esac
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13005 $as_echo "$dynamic_linker" >&6; }
13006 test "$dynamic_linker" = no && can_build_shared=no
13007
13008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13009 if test "$GCC" = yes; then
13010   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13011 fi
13012
13013 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13014   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13015 fi
13016 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13017   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13018 fi
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13112 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13113 hardcode_action=
13114 if test -n "$hardcode_libdir_flag_spec" ||
13115    test -n "$runpath_var" ||
13116    test "X$hardcode_automatic" = "Xyes" ; then
13117
13118   # We can hardcode non-existent directories.
13119   if test "$hardcode_direct" != no &&
13120      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13121      # have to relink, otherwise we might link with an installed library
13122      # when we should be linking with a yet-to-be-installed one
13123      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13124      test "$hardcode_minus_L" != no; then
13125     # Linking always hardcodes the temporary library directory.
13126     hardcode_action=relink
13127   else
13128     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13129     hardcode_action=immediate
13130   fi
13131 else
13132   # We cannot hardcode anything, or else we can only hardcode existing
13133   # directories.
13134   hardcode_action=unsupported
13135 fi
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13137 $as_echo "$hardcode_action" >&6; }
13138
13139 if test "$hardcode_action" = relink ||
13140    test "$inherit_rpath" = yes; then
13141   # Fast installation is not supported
13142   enable_fast_install=no
13143 elif test "$shlibpath_overrides_runpath" = yes ||
13144      test "$enable_shared" = no; then
13145   # Fast installation is not necessary
13146   enable_fast_install=needless
13147 fi
13148
13149
13150
13151
13152
13153
13154   if test "x$enable_dlopen" != xyes; then
13155   enable_dlopen=unknown
13156   enable_dlopen_self=unknown
13157   enable_dlopen_self_static=unknown
13158 else
13159   lt_cv_dlopen=no
13160   lt_cv_dlopen_libs=
13161
13162   case $host_os in
13163   beos*)
13164     lt_cv_dlopen="load_add_on"
13165     lt_cv_dlopen_libs=
13166     lt_cv_dlopen_self=yes
13167     ;;
13168
13169   mingw* | pw32* | cegcc*)
13170     lt_cv_dlopen="LoadLibrary"
13171     lt_cv_dlopen_libs=
13172     ;;
13173
13174   cygwin*)
13175     lt_cv_dlopen="dlopen"
13176     lt_cv_dlopen_libs=
13177     ;;
13178
13179   darwin*)
13180   # if libdl is installed we need to link against it
13181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13182 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13183 if ${ac_cv_lib_dl_dlopen+:} false; then :
13184   $as_echo_n "(cached) " >&6
13185 else
13186   ac_check_lib_save_LIBS=$LIBS
13187 LIBS="-ldl  $LIBS"
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h.  */
13190
13191 /* Override any GCC internal prototype to avoid an error.
13192    Use char because int might match the return type of a GCC
13193    builtin and then its argument prototype would still apply.  */
13194 #ifdef __cplusplus
13195 extern "C"
13196 #endif
13197 char dlopen ();
13198 int
13199 main ()
13200 {
13201 return dlopen ();
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 if ac_fn_c_try_link "$LINENO"; then :
13207   ac_cv_lib_dl_dlopen=yes
13208 else
13209   ac_cv_lib_dl_dlopen=no
13210 fi
13211 rm -f core conftest.err conftest.$ac_objext \
13212     conftest$ac_exeext conftest.$ac_ext
13213 LIBS=$ac_check_lib_save_LIBS
13214 fi
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13216 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13217 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13218   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13219 else
13220
13221     lt_cv_dlopen="dyld"
13222     lt_cv_dlopen_libs=
13223     lt_cv_dlopen_self=yes
13224
13225 fi
13226
13227     ;;
13228
13229   *)
13230     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13231 if test "x$ac_cv_func_shl_load" = xyes; then :
13232   lt_cv_dlopen="shl_load"
13233 else
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13235 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13236 if ${ac_cv_lib_dld_shl_load+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-ldld  $LIBS"
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h.  */
13243
13244 /* Override any GCC internal prototype to avoid an error.
13245    Use char because int might match the return type of a GCC
13246    builtin and then its argument prototype would still apply.  */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char shl_load ();
13251 int
13252 main ()
13253 {
13254 return shl_load ();
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_link "$LINENO"; then :
13260   ac_cv_lib_dld_shl_load=yes
13261 else
13262   ac_cv_lib_dld_shl_load=no
13263 fi
13264 rm -f core conftest.err conftest.$ac_objext \
13265     conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13269 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13270 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13271   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13272 else
13273   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13274 if test "x$ac_cv_func_dlopen" = xyes; then :
13275   lt_cv_dlopen="dlopen"
13276 else
13277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13279 if ${ac_cv_lib_dl_dlopen+:} false; then :
13280   $as_echo_n "(cached) " >&6
13281 else
13282   ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-ldl  $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h.  */
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288    Use char because int might match the return type of a GCC
13289    builtin and then its argument prototype would still apply.  */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char dlopen ();
13294 int
13295 main ()
13296 {
13297 return dlopen ();
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303   ac_cv_lib_dl_dlopen=yes
13304 else
13305   ac_cv_lib_dl_dlopen=no
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext \
13308     conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13312 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13313 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13314   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13315 else
13316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13317 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13318 if ${ac_cv_lib_svld_dlopen+:} false; then :
13319   $as_echo_n "(cached) " >&6
13320 else
13321   ac_check_lib_save_LIBS=$LIBS
13322 LIBS="-lsvld  $LIBS"
13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h.  */
13325
13326 /* Override any GCC internal prototype to avoid an error.
13327    Use char because int might match the return type of a GCC
13328    builtin and then its argument prototype would still apply.  */
13329 #ifdef __cplusplus
13330 extern "C"
13331 #endif
13332 char dlopen ();
13333 int
13334 main ()
13335 {
13336 return dlopen ();
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_c_try_link "$LINENO"; then :
13342   ac_cv_lib_svld_dlopen=yes
13343 else
13344   ac_cv_lib_svld_dlopen=no
13345 fi
13346 rm -f core conftest.err conftest.$ac_objext \
13347     conftest$ac_exeext conftest.$ac_ext
13348 LIBS=$ac_check_lib_save_LIBS
13349 fi
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13351 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13352 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13353   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13354 else
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13356 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13357 if ${ac_cv_lib_dld_dld_link+:} false; then :
13358   $as_echo_n "(cached) " >&6
13359 else
13360   ac_check_lib_save_LIBS=$LIBS
13361 LIBS="-ldld  $LIBS"
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h.  */
13364
13365 /* Override any GCC internal prototype to avoid an error.
13366    Use char because int might match the return type of a GCC
13367    builtin and then its argument prototype would still apply.  */
13368 #ifdef __cplusplus
13369 extern "C"
13370 #endif
13371 char dld_link ();
13372 int
13373 main ()
13374 {
13375 return dld_link ();
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 if ac_fn_c_try_link "$LINENO"; then :
13381   ac_cv_lib_dld_dld_link=yes
13382 else
13383   ac_cv_lib_dld_dld_link=no
13384 fi
13385 rm -f core conftest.err conftest.$ac_objext \
13386     conftest$ac_exeext conftest.$ac_ext
13387 LIBS=$ac_check_lib_save_LIBS
13388 fi
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13390 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13391 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13392   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13393 fi
13394
13395
13396 fi
13397
13398
13399 fi
13400
13401
13402 fi
13403
13404
13405 fi
13406
13407
13408 fi
13409
13410     ;;
13411   esac
13412
13413   if test "x$lt_cv_dlopen" != xno; then
13414     enable_dlopen=yes
13415   else
13416     enable_dlopen=no
13417   fi
13418
13419   case $lt_cv_dlopen in
13420   dlopen)
13421     save_CPPFLAGS="$CPPFLAGS"
13422     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13423
13424     save_LDFLAGS="$LDFLAGS"
13425     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13426
13427     save_LIBS="$LIBS"
13428     LIBS="$lt_cv_dlopen_libs $LIBS"
13429
13430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13431 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13432 if ${lt_cv_dlopen_self+:} false; then :
13433   $as_echo_n "(cached) " >&6
13434 else
13435           if test "$cross_compiling" = yes; then :
13436   lt_cv_dlopen_self=cross
13437 else
13438   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13439   lt_status=$lt_dlunknown
13440   cat > conftest.$ac_ext <<_LT_EOF
13441 #line $LINENO "configure"
13442 #include "confdefs.h"
13443
13444 #if HAVE_DLFCN_H
13445 #include <dlfcn.h>
13446 #endif
13447
13448 #include <stdio.h>
13449
13450 #ifdef RTLD_GLOBAL
13451 #  define LT_DLGLOBAL           RTLD_GLOBAL
13452 #else
13453 #  ifdef DL_GLOBAL
13454 #    define LT_DLGLOBAL         DL_GLOBAL
13455 #  else
13456 #    define LT_DLGLOBAL         0
13457 #  endif
13458 #endif
13459
13460 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13461    find out it does not work in some platform. */
13462 #ifndef LT_DLLAZY_OR_NOW
13463 #  ifdef RTLD_LAZY
13464 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13465 #  else
13466 #    ifdef DL_LAZY
13467 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13468 #    else
13469 #      ifdef RTLD_NOW
13470 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13471 #      else
13472 #        ifdef DL_NOW
13473 #          define LT_DLLAZY_OR_NOW      DL_NOW
13474 #        else
13475 #          define LT_DLLAZY_OR_NOW      0
13476 #        endif
13477 #      endif
13478 #    endif
13479 #  endif
13480 #endif
13481
13482 /* When -fvisbility=hidden is used, assume the code has been annotated
13483    correspondingly for the symbols needed.  */
13484 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13485 int fnord () __attribute__((visibility("default")));
13486 #endif
13487
13488 int fnord () { return 42; }
13489 int main ()
13490 {
13491   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13492   int status = $lt_dlunknown;
13493
13494   if (self)
13495     {
13496       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13497       else
13498         {
13499           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13500           else puts (dlerror ());
13501         }
13502       /* dlclose (self); */
13503     }
13504   else
13505     puts (dlerror ());
13506
13507   return status;
13508 }
13509 _LT_EOF
13510   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13511   (eval $ac_link) 2>&5
13512   ac_status=$?
13513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13514   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13515     (./conftest; exit; ) >&5 2>/dev/null
13516     lt_status=$?
13517     case x$lt_status in
13518       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13519       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13520       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13521     esac
13522   else :
13523     # compilation failed
13524     lt_cv_dlopen_self=no
13525   fi
13526 fi
13527 rm -fr conftest*
13528
13529
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13532 $as_echo "$lt_cv_dlopen_self" >&6; }
13533
13534     if test "x$lt_cv_dlopen_self" = xyes; then
13535       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13536       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13537 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13538 if ${lt_cv_dlopen_self_static+:} false; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541           if test "$cross_compiling" = yes; then :
13542   lt_cv_dlopen_self_static=cross
13543 else
13544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13545   lt_status=$lt_dlunknown
13546   cat > conftest.$ac_ext <<_LT_EOF
13547 #line $LINENO "configure"
13548 #include "confdefs.h"
13549
13550 #if HAVE_DLFCN_H
13551 #include <dlfcn.h>
13552 #endif
13553
13554 #include <stdio.h>
13555
13556 #ifdef RTLD_GLOBAL
13557 #  define LT_DLGLOBAL           RTLD_GLOBAL
13558 #else
13559 #  ifdef DL_GLOBAL
13560 #    define LT_DLGLOBAL         DL_GLOBAL
13561 #  else
13562 #    define LT_DLGLOBAL         0
13563 #  endif
13564 #endif
13565
13566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13567    find out it does not work in some platform. */
13568 #ifndef LT_DLLAZY_OR_NOW
13569 #  ifdef RTLD_LAZY
13570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13571 #  else
13572 #    ifdef DL_LAZY
13573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13574 #    else
13575 #      ifdef RTLD_NOW
13576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13577 #      else
13578 #        ifdef DL_NOW
13579 #          define LT_DLLAZY_OR_NOW      DL_NOW
13580 #        else
13581 #          define LT_DLLAZY_OR_NOW      0
13582 #        endif
13583 #      endif
13584 #    endif
13585 #  endif
13586 #endif
13587
13588 /* When -fvisbility=hidden is used, assume the code has been annotated
13589    correspondingly for the symbols needed.  */
13590 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13591 int fnord () __attribute__((visibility("default")));
13592 #endif
13593
13594 int fnord () { return 42; }
13595 int main ()
13596 {
13597   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13598   int status = $lt_dlunknown;
13599
13600   if (self)
13601     {
13602       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13603       else
13604         {
13605           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13606           else puts (dlerror ());
13607         }
13608       /* dlclose (self); */
13609     }
13610   else
13611     puts (dlerror ());
13612
13613   return status;
13614 }
13615 _LT_EOF
13616   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13617   (eval $ac_link) 2>&5
13618   ac_status=$?
13619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13620   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13621     (./conftest; exit; ) >&5 2>/dev/null
13622     lt_status=$?
13623     case x$lt_status in
13624       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13625       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13626       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13627     esac
13628   else :
13629     # compilation failed
13630     lt_cv_dlopen_self_static=no
13631   fi
13632 fi
13633 rm -fr conftest*
13634
13635
13636 fi
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13638 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13639     fi
13640
13641     CPPFLAGS="$save_CPPFLAGS"
13642     LDFLAGS="$save_LDFLAGS"
13643     LIBS="$save_LIBS"
13644     ;;
13645   esac
13646
13647   case $lt_cv_dlopen_self in
13648   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13649   *) enable_dlopen_self=unknown ;;
13650   esac
13651
13652   case $lt_cv_dlopen_self_static in
13653   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13654   *) enable_dlopen_self_static=unknown ;;
13655   esac
13656 fi
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674 striplib=
13675 old_striplib=
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13677 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13678 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13679   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13680   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13682 $as_echo "yes" >&6; }
13683 else
13684 # FIXME - insert some real tests, host_os isn't really good enough
13685   case $host_os in
13686   darwin*)
13687     if test -n "$STRIP" ; then
13688       striplib="$STRIP -x"
13689       old_striplib="$STRIP -S"
13690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13691 $as_echo "yes" >&6; }
13692     else
13693       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694 $as_echo "no" >&6; }
13695     fi
13696     ;;
13697   *)
13698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13700     ;;
13701   esac
13702 fi
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715   # Report which library types will actually be built
13716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13717 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13719 $as_echo "$can_build_shared" >&6; }
13720
13721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13722 $as_echo_n "checking whether to build shared libraries... " >&6; }
13723   test "$can_build_shared" = "no" && enable_shared=no
13724
13725   # On AIX, shared libraries and static libraries use the same namespace, and
13726   # are all built from PIC.
13727   case $host_os in
13728   aix3*)
13729     test "$enable_shared" = yes && enable_static=no
13730     if test -n "$RANLIB"; then
13731       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13732       postinstall_cmds='$RANLIB $lib'
13733     fi
13734     ;;
13735
13736   aix[4-9]*)
13737     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13738       test "$enable_shared" = yes && enable_static=no
13739     fi
13740     ;;
13741   esac
13742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13743 $as_echo "$enable_shared" >&6; }
13744
13745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13746 $as_echo_n "checking whether to build static libraries... " >&6; }
13747   # Make sure either enable_shared or enable_static is yes.
13748   test "$enable_shared" = yes || enable_static=yes
13749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13750 $as_echo "$enable_static" >&6; }
13751
13752
13753
13754
13755 fi
13756 ac_ext=c
13757 ac_cpp='$CPP $CPPFLAGS'
13758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13761
13762 CC="$lt_save_CC"
13763
13764       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13765     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13766     (test "X$CXX" != "Xg++"))) ; then
13767   ac_ext=cpp
13768 ac_cpp='$CXXCPP $CPPFLAGS'
13769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13773 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13774 if test -z "$CXXCPP"; then
13775   if ${ac_cv_prog_CXXCPP+:} false; then :
13776   $as_echo_n "(cached) " >&6
13777 else
13778       # Double quotes because CXXCPP needs to be expanded
13779     for CXXCPP in "$CXX -E" "/lib/cpp"
13780     do
13781       ac_preproc_ok=false
13782 for ac_cxx_preproc_warn_flag in '' yes
13783 do
13784   # Use a header file that comes with gcc, so configuring glibc
13785   # with a fresh cross-compiler works.
13786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13787   # <limits.h> exists even on freestanding compilers.
13788   # On the NeXT, cc -E runs the code through the compiler's parser,
13789   # not just through cpp. "Syntax error" is here to catch this case.
13790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h.  */
13792 #ifdef __STDC__
13793 # include <limits.h>
13794 #else
13795 # include <assert.h>
13796 #endif
13797                      Syntax error
13798 _ACEOF
13799 if ac_fn_cxx_try_cpp "$LINENO"; then :
13800
13801 else
13802   # Broken: fails on valid input.
13803 continue
13804 fi
13805 rm -f conftest.err conftest.i conftest.$ac_ext
13806
13807   # OK, works on sane cases.  Now check whether nonexistent headers
13808   # can be detected and how.
13809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h.  */
13811 #include <ac_nonexistent.h>
13812 _ACEOF
13813 if ac_fn_cxx_try_cpp "$LINENO"; then :
13814   # Broken: success on invalid input.
13815 continue
13816 else
13817   # Passes both tests.
13818 ac_preproc_ok=:
13819 break
13820 fi
13821 rm -f conftest.err conftest.i conftest.$ac_ext
13822
13823 done
13824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13825 rm -f conftest.i conftest.err conftest.$ac_ext
13826 if $ac_preproc_ok; then :
13827   break
13828 fi
13829
13830     done
13831     ac_cv_prog_CXXCPP=$CXXCPP
13832
13833 fi
13834   CXXCPP=$ac_cv_prog_CXXCPP
13835 else
13836   ac_cv_prog_CXXCPP=$CXXCPP
13837 fi
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13839 $as_echo "$CXXCPP" >&6; }
13840 ac_preproc_ok=false
13841 for ac_cxx_preproc_warn_flag in '' yes
13842 do
13843   # Use a header file that comes with gcc, so configuring glibc
13844   # with a fresh cross-compiler works.
13845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13846   # <limits.h> exists even on freestanding compilers.
13847   # On the NeXT, cc -E runs the code through the compiler's parser,
13848   # not just through cpp. "Syntax error" is here to catch this case.
13849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h.  */
13851 #ifdef __STDC__
13852 # include <limits.h>
13853 #else
13854 # include <assert.h>
13855 #endif
13856                      Syntax error
13857 _ACEOF
13858 if ac_fn_cxx_try_cpp "$LINENO"; then :
13859
13860 else
13861   # Broken: fails on valid input.
13862 continue
13863 fi
13864 rm -f conftest.err conftest.i conftest.$ac_ext
13865
13866   # OK, works on sane cases.  Now check whether nonexistent headers
13867   # can be detected and how.
13868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h.  */
13870 #include <ac_nonexistent.h>
13871 _ACEOF
13872 if ac_fn_cxx_try_cpp "$LINENO"; then :
13873   # Broken: success on invalid input.
13874 continue
13875 else
13876   # Passes both tests.
13877 ac_preproc_ok=:
13878 break
13879 fi
13880 rm -f conftest.err conftest.i conftest.$ac_ext
13881
13882 done
13883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13884 rm -f conftest.i conftest.err conftest.$ac_ext
13885 if $ac_preproc_ok; then :
13886
13887 else
13888   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13890 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13891 See \`config.log' for more details" "$LINENO" 5; }
13892 fi
13893
13894 ac_ext=c
13895 ac_cpp='$CPP $CPPFLAGS'
13896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13899
13900 else
13901   _lt_caught_CXX_error=yes
13902 fi
13903
13904 ac_ext=cpp
13905 ac_cpp='$CXXCPP $CPPFLAGS'
13906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13909
13910 archive_cmds_need_lc_CXX=no
13911 allow_undefined_flag_CXX=
13912 always_export_symbols_CXX=no
13913 archive_expsym_cmds_CXX=
13914 compiler_needs_object_CXX=no
13915 export_dynamic_flag_spec_CXX=
13916 hardcode_direct_CXX=no
13917 hardcode_direct_absolute_CXX=no
13918 hardcode_libdir_flag_spec_CXX=
13919 hardcode_libdir_separator_CXX=
13920 hardcode_minus_L_CXX=no
13921 hardcode_shlibpath_var_CXX=unsupported
13922 hardcode_automatic_CXX=no
13923 inherit_rpath_CXX=no
13924 module_cmds_CXX=
13925 module_expsym_cmds_CXX=
13926 link_all_deplibs_CXX=unknown
13927 old_archive_cmds_CXX=$old_archive_cmds
13928 reload_flag_CXX=$reload_flag
13929 reload_cmds_CXX=$reload_cmds
13930 no_undefined_flag_CXX=
13931 whole_archive_flag_spec_CXX=
13932 enable_shared_with_static_runtimes_CXX=no
13933
13934 # Source file extension for C++ test sources.
13935 ac_ext=cpp
13936
13937 # Object file extension for compiled C++ test sources.
13938 objext=o
13939 objext_CXX=$objext
13940
13941 # No sense in running all these tests if we already determined that
13942 # the CXX compiler isn't working.  Some variables (like enable_shared)
13943 # are currently assumed to apply to all compilers on this platform,
13944 # and will be corrupted by setting them based on a non-working compiler.
13945 if test "$_lt_caught_CXX_error" != yes; then
13946   # Code to be used in simple compile tests
13947   lt_simple_compile_test_code="int some_variable = 0;"
13948
13949   # Code to be used in simple link tests
13950   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13951
13952   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13953
13954
13955
13956
13957
13958
13959 # If no C compiler was specified, use CC.
13960 LTCC=${LTCC-"$CC"}
13961
13962 # If no C compiler flags were specified, use CFLAGS.
13963 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13964
13965 # Allow CC to be a program name with arguments.
13966 compiler=$CC
13967
13968
13969   # save warnings/boilerplate of simple test code
13970   ac_outfile=conftest.$ac_objext
13971 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13972 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13973 _lt_compiler_boilerplate=`cat conftest.err`
13974 $RM conftest*
13975
13976   ac_outfile=conftest.$ac_objext
13977 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13978 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13979 _lt_linker_boilerplate=`cat conftest.err`
13980 $RM -r conftest*
13981
13982
13983   # Allow CC to be a program name with arguments.
13984   lt_save_CC=$CC
13985   lt_save_CFLAGS=$CFLAGS
13986   lt_save_LD=$LD
13987   lt_save_GCC=$GCC
13988   GCC=$GXX
13989   lt_save_with_gnu_ld=$with_gnu_ld
13990   lt_save_path_LD=$lt_cv_path_LD
13991   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13992     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13993   else
13994     $as_unset lt_cv_prog_gnu_ld
13995   fi
13996   if test -n "${lt_cv_path_LDCXX+set}"; then
13997     lt_cv_path_LD=$lt_cv_path_LDCXX
13998   else
13999     $as_unset lt_cv_path_LD
14000   fi
14001   test -z "${LDCXX+set}" || LD=$LDCXX
14002   CC=${CXX-"c++"}
14003   CFLAGS=$CXXFLAGS
14004   compiler=$CC
14005   compiler_CXX=$CC
14006   for cc_temp in $compiler""; do
14007   case $cc_temp in
14008     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14009     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14010     \-*) ;;
14011     *) break;;
14012   esac
14013 done
14014 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14015
14016
14017   if test -n "$compiler"; then
14018     # We don't want -fno-exception when compiling C++ code, so set the
14019     # no_builtin_flag separately
14020     if test "$GXX" = yes; then
14021       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14022     else
14023       lt_prog_compiler_no_builtin_flag_CXX=
14024     fi
14025
14026     if test "$GXX" = yes; then
14027       # Set up default GNU C++ configuration
14028
14029
14030
14031 # Check whether --with-gnu-ld was given.
14032 if test "${with_gnu_ld+set}" = set; then :
14033   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14034 else
14035   with_gnu_ld=no
14036 fi
14037
14038 ac_prog=ld
14039 if test "$GCC" = yes; then
14040   # Check if gcc -print-prog-name=ld gives a path.
14041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14042 $as_echo_n "checking for ld used by $CC... " >&6; }
14043   case $host in
14044   *-*-mingw*)
14045     # gcc leaves a trailing carriage return which upsets mingw
14046     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14047   *)
14048     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14049   esac
14050   case $ac_prog in
14051     # Accept absolute paths.
14052     [\\/]* | ?:[\\/]*)
14053       re_direlt='/[^/][^/]*/\.\./'
14054       # Canonicalize the pathname of ld
14055       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14056       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14057         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14058       done
14059       test -z "$LD" && LD="$ac_prog"
14060       ;;
14061   "")
14062     # If it fails, then pretend we aren't using GCC.
14063     ac_prog=ld
14064     ;;
14065   *)
14066     # If it is relative, then search for the first ld in PATH.
14067     with_gnu_ld=unknown
14068     ;;
14069   esac
14070 elif test "$with_gnu_ld" = yes; then
14071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14072 $as_echo_n "checking for GNU ld... " >&6; }
14073 else
14074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14075 $as_echo_n "checking for non-GNU ld... " >&6; }
14076 fi
14077 if ${lt_cv_path_LD+:} false; then :
14078   $as_echo_n "(cached) " >&6
14079 else
14080   if test -z "$LD"; then
14081   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14082   for ac_dir in $PATH; do
14083     IFS="$lt_save_ifs"
14084     test -z "$ac_dir" && ac_dir=.
14085     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14086       lt_cv_path_LD="$ac_dir/$ac_prog"
14087       # Check to see if the program is GNU ld.  I'd rather use --version,
14088       # but apparently some variants of GNU ld only accept -v.
14089       # Break only if it was the GNU/non-GNU ld that we prefer.
14090       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14091       *GNU* | *'with BFD'*)
14092         test "$with_gnu_ld" != no && break
14093         ;;
14094       *)
14095         test "$with_gnu_ld" != yes && break
14096         ;;
14097       esac
14098     fi
14099   done
14100   IFS="$lt_save_ifs"
14101 else
14102   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14103 fi
14104 fi
14105
14106 LD="$lt_cv_path_LD"
14107 if test -n "$LD"; then
14108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14109 $as_echo "$LD" >&6; }
14110 else
14111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 $as_echo "no" >&6; }
14113 fi
14114 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14116 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14117 if ${lt_cv_prog_gnu_ld+:} false; then :
14118   $as_echo_n "(cached) " >&6
14119 else
14120   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14121 case `$LD -v 2>&1 </dev/null` in
14122 *GNU* | *'with BFD'*)
14123   lt_cv_prog_gnu_ld=yes
14124   ;;
14125 *)
14126   lt_cv_prog_gnu_ld=no
14127   ;;
14128 esac
14129 fi
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14131 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14132 with_gnu_ld=$lt_cv_prog_gnu_ld
14133
14134
14135
14136
14137
14138
14139
14140       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14141       # archiving commands below assume that GNU ld is being used.
14142       if test "$with_gnu_ld" = yes; then
14143         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14144         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'
14145
14146         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14147         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14148
14149         # If archive_cmds runs LD, not CC, wlarc should be empty
14150         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14151         #     investigate it a little bit more. (MM)
14152         wlarc='${wl}'
14153
14154         # ancient GNU ld didn't support --whole-archive et. al.
14155         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14156           $GREP 'no-whole-archive' > /dev/null; then
14157           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14158         else
14159           whole_archive_flag_spec_CXX=
14160         fi
14161       else
14162         with_gnu_ld=no
14163         wlarc=
14164
14165         # A generic and very simple default shared library creation
14166         # command for GNU C++ for the case where it uses the native
14167         # linker, instead of GNU ld.  If possible, this setting should
14168         # overridden to take advantage of the native linker features on
14169         # the platform it is being used on.
14170         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14171       fi
14172
14173       # Commands to make compiler produce verbose output that lists
14174       # what "hidden" libraries, object files and flags are used when
14175       # linking a shared library.
14176       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14177
14178     else
14179       GXX=no
14180       with_gnu_ld=no
14181       wlarc=
14182     fi
14183
14184     # PORTME: fill in a description of your system's C++ link characteristics
14185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14186 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14187     ld_shlibs_CXX=yes
14188     case $host_os in
14189       aix3*)
14190         # FIXME: insert proper C++ library support
14191         ld_shlibs_CXX=no
14192         ;;
14193       aix[4-9]*)
14194         if test "$host_cpu" = ia64; then
14195           # On IA64, the linker does run time linking by default, so we don't
14196           # have to do anything special.
14197           aix_use_runtimelinking=no
14198           exp_sym_flag='-Bexport'
14199           no_entry_flag=""
14200         else
14201           aix_use_runtimelinking=no
14202
14203           # Test if we are trying to use run time linking or normal
14204           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14205           # need to do runtime linking.
14206           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14207             for ld_flag in $LDFLAGS; do
14208               case $ld_flag in
14209               *-brtl*)
14210                 aix_use_runtimelinking=yes
14211                 break
14212                 ;;
14213               esac
14214             done
14215             ;;
14216           esac
14217
14218           exp_sym_flag='-bexport'
14219           no_entry_flag='-bnoentry'
14220         fi
14221
14222         # When large executables or shared objects are built, AIX ld can
14223         # have problems creating the table of contents.  If linking a library
14224         # or program results in "error TOC overflow" add -mminimal-toc to
14225         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14226         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14227
14228         archive_cmds_CXX=''
14229         hardcode_direct_CXX=yes
14230         hardcode_direct_absolute_CXX=yes
14231         hardcode_libdir_separator_CXX=':'
14232         link_all_deplibs_CXX=yes
14233         file_list_spec_CXX='${wl}-f,'
14234
14235         if test "$GXX" = yes; then
14236           case $host_os in aix4.[012]|aix4.[012].*)
14237           # We only want to do this on AIX 4.2 and lower, the check
14238           # below for broken collect2 doesn't work under 4.3+
14239           collect2name=`${CC} -print-prog-name=collect2`
14240           if test -f "$collect2name" &&
14241              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14242           then
14243             # We have reworked collect2
14244             :
14245           else
14246             # We have old collect2
14247             hardcode_direct_CXX=unsupported
14248             # It fails to find uninstalled libraries when the uninstalled
14249             # path is not listed in the libpath.  Setting hardcode_minus_L
14250             # to unsupported forces relinking
14251             hardcode_minus_L_CXX=yes
14252             hardcode_libdir_flag_spec_CXX='-L$libdir'
14253             hardcode_libdir_separator_CXX=
14254           fi
14255           esac
14256           shared_flag='-shared'
14257           if test "$aix_use_runtimelinking" = yes; then
14258             shared_flag="$shared_flag "'${wl}-G'
14259           fi
14260         else
14261           # not using gcc
14262           if test "$host_cpu" = ia64; then
14263           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14264           # chokes on -Wl,-G. The following line is correct:
14265           shared_flag='-G'
14266           else
14267             if test "$aix_use_runtimelinking" = yes; then
14268               shared_flag='${wl}-G'
14269             else
14270               shared_flag='${wl}-bM:SRE'
14271             fi
14272           fi
14273         fi
14274
14275         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14276         # It seems that -bexpall does not export symbols beginning with
14277         # underscore (_), so it is better to generate a list of symbols to
14278         # export.
14279         always_export_symbols_CXX=yes
14280         if test "$aix_use_runtimelinking" = yes; then
14281           # Warning - without using the other runtime loading flags (-brtl),
14282           # -berok will link without error, but may produce a broken library.
14283           allow_undefined_flag_CXX='-berok'
14284           # Determine the default libpath from the value encoded in an empty
14285           # executable.
14286           if test "${lt_cv_aix_libpath+set}" = set; then
14287   aix_libpath=$lt_cv_aix_libpath
14288 else
14289   if ${lt_cv_aix_libpath__CXX+:} false; then :
14290   $as_echo_n "(cached) " >&6
14291 else
14292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h.  */
14294
14295 int
14296 main ()
14297 {
14298
14299   ;
14300   return 0;
14301 }
14302 _ACEOF
14303 if ac_fn_cxx_try_link "$LINENO"; then :
14304
14305   lt_aix_libpath_sed='
14306       /Import File Strings/,/^$/ {
14307           /^0/ {
14308               s/^0  *\([^ ]*\) *$/\1/
14309               p
14310           }
14311       }'
14312   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14313   # Check for a 64-bit object if we didn't find anything.
14314   if test -z "$lt_cv_aix_libpath__CXX"; then
14315     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14316   fi
14317 fi
14318 rm -f core conftest.err conftest.$ac_objext \
14319     conftest$ac_exeext conftest.$ac_ext
14320   if test -z "$lt_cv_aix_libpath__CXX"; then
14321     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14322   fi
14323
14324 fi
14325
14326   aix_libpath=$lt_cv_aix_libpath__CXX
14327 fi
14328
14329           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14330
14331           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"
14332         else
14333           if test "$host_cpu" = ia64; then
14334             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14335             allow_undefined_flag_CXX="-z nodefs"
14336             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"
14337           else
14338             # Determine the default libpath from the value encoded in an
14339             # empty executable.
14340             if test "${lt_cv_aix_libpath+set}" = set; then
14341   aix_libpath=$lt_cv_aix_libpath
14342 else
14343   if ${lt_cv_aix_libpath__CXX+:} false; then :
14344   $as_echo_n "(cached) " >&6
14345 else
14346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h.  */
14348
14349 int
14350 main ()
14351 {
14352
14353   ;
14354   return 0;
14355 }
14356 _ACEOF
14357 if ac_fn_cxx_try_link "$LINENO"; then :
14358
14359   lt_aix_libpath_sed='
14360       /Import File Strings/,/^$/ {
14361           /^0/ {
14362               s/^0  *\([^ ]*\) *$/\1/
14363               p
14364           }
14365       }'
14366   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14367   # Check for a 64-bit object if we didn't find anything.
14368   if test -z "$lt_cv_aix_libpath__CXX"; then
14369     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14370   fi
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext \
14373     conftest$ac_exeext conftest.$ac_ext
14374   if test -z "$lt_cv_aix_libpath__CXX"; then
14375     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14376   fi
14377
14378 fi
14379
14380   aix_libpath=$lt_cv_aix_libpath__CXX
14381 fi
14382
14383             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14384             # Warning - without using the other run time loading flags,
14385             # -berok will link without error, but may produce a broken library.
14386             no_undefined_flag_CXX=' ${wl}-bernotok'
14387             allow_undefined_flag_CXX=' ${wl}-berok'
14388             if test "$with_gnu_ld" = yes; then
14389               # We only use this code for GNU lds that support --whole-archive.
14390               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14391             else
14392               # Exported symbols can be pulled into shared objects from archives
14393               whole_archive_flag_spec_CXX='$convenience'
14394             fi
14395             archive_cmds_need_lc_CXX=yes
14396             # This is similar to how AIX traditionally builds its shared
14397             # libraries.
14398             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'
14399           fi
14400         fi
14401         ;;
14402
14403       beos*)
14404         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14405           allow_undefined_flag_CXX=unsupported
14406           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14407           # support --undefined.  This deserves some investigation.  FIXME
14408           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14409         else
14410           ld_shlibs_CXX=no
14411         fi
14412         ;;
14413
14414       chorus*)
14415         case $cc_basename in
14416           *)
14417           # FIXME: insert proper C++ library support
14418           ld_shlibs_CXX=no
14419           ;;
14420         esac
14421         ;;
14422
14423       cygwin* | mingw* | pw32* | cegcc*)
14424         case $GXX,$cc_basename in
14425         ,cl* | no,cl*)
14426           # Native MSVC
14427           # hardcode_libdir_flag_spec is actually meaningless, as there is
14428           # no search path for DLLs.
14429           hardcode_libdir_flag_spec_CXX=' '
14430           allow_undefined_flag_CXX=unsupported
14431           always_export_symbols_CXX=yes
14432           file_list_spec_CXX='@'
14433           # Tell ltmain to make .lib files, not .a files.
14434           libext=lib
14435           # Tell ltmain to make .dll files, not .so files.
14436           shrext_cmds=".dll"
14437           # FIXME: Setting linknames here is a bad hack.
14438           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14439           archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14440               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14441             else
14442               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14443             fi~
14444             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14445             linknames='
14446           # The linker will not automatically build a static lib if we build a DLL.
14447           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14448           enable_shared_with_static_runtimes_CXX=yes
14449           # Don't use ranlib
14450           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14451           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14452             lt_tool_outputfile="@TOOL_OUTPUT@"~
14453             case $lt_outputfile in
14454               *.exe|*.EXE) ;;
14455               *)
14456                 lt_outputfile="$lt_outputfile.exe"
14457                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14458                 ;;
14459             esac~
14460             func_to_tool_file "$lt_outputfile"~
14461             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14462               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14463               $RM "$lt_outputfile.manifest";
14464             fi'
14465           ;;
14466         *)
14467           # g++
14468           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14469           # as there is no search path for DLLs.
14470           hardcode_libdir_flag_spec_CXX='-L$libdir'
14471           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14472           allow_undefined_flag_CXX=unsupported
14473           always_export_symbols_CXX=no
14474           enable_shared_with_static_runtimes_CXX=yes
14475
14476           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14477             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'
14478             # If the export-symbols file already is a .def file (1st line
14479             # is EXPORTS), use it as is; otherwise, prepend...
14480             archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14481               cp $export_symbols $output_objdir/$soname.def;
14482             else
14483               echo EXPORTS > $output_objdir/$soname.def;
14484               cat $export_symbols >> $output_objdir/$soname.def;
14485             fi~
14486             $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'
14487           else
14488             ld_shlibs_CXX=no
14489           fi
14490           ;;
14491         esac
14492         ;;
14493       darwin* | rhapsody*)
14494
14495
14496   archive_cmds_need_lc_CXX=no
14497   hardcode_direct_CXX=no
14498   hardcode_automatic_CXX=yes
14499   hardcode_shlibpath_var_CXX=unsupported
14500   if test "$lt_cv_ld_force_load" = "yes"; then
14501     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\"`'
14502
14503   else
14504     whole_archive_flag_spec_CXX=''
14505   fi
14506   link_all_deplibs_CXX=yes
14507   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14508   case $cc_basename in
14509      ifort*) _lt_dar_can_shared=yes ;;
14510      *) _lt_dar_can_shared=$GCC ;;
14511   esac
14512   if test "$_lt_dar_can_shared" = "yes"; then
14513     output_verbose_link_cmd=func_echo_all
14514     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}"
14515     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14516     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}"
14517     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}"
14518        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14519       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}"
14520       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}"
14521     fi
14522
14523   else
14524   ld_shlibs_CXX=no
14525   fi
14526
14527         ;;
14528
14529       dgux*)
14530         case $cc_basename in
14531           ec++*)
14532             # FIXME: insert proper C++ library support
14533             ld_shlibs_CXX=no
14534             ;;
14535           ghcx*)
14536             # Green Hills C++ Compiler
14537             # FIXME: insert proper C++ library support
14538             ld_shlibs_CXX=no
14539             ;;
14540           *)
14541             # FIXME: insert proper C++ library support
14542             ld_shlibs_CXX=no
14543             ;;
14544         esac
14545         ;;
14546
14547       freebsd2.*)
14548         # C++ shared libraries reported to be fairly broken before
14549         # switch to ELF
14550         ld_shlibs_CXX=no
14551         ;;
14552
14553       freebsd-elf*)
14554         archive_cmds_need_lc_CXX=no
14555         ;;
14556
14557       freebsd* | dragonfly*)
14558         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14559         # conventions
14560         ld_shlibs_CXX=yes
14561         ;;
14562
14563       gnu*)
14564         ;;
14565
14566       haiku*)
14567         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14568         link_all_deplibs_CXX=yes
14569         ;;
14570
14571       hpux9*)
14572         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14573         hardcode_libdir_separator_CXX=:
14574         export_dynamic_flag_spec_CXX='${wl}-E'
14575         hardcode_direct_CXX=yes
14576         hardcode_minus_L_CXX=yes # Not in the search PATH,
14577                                              # but as the default
14578                                              # location of the library.
14579
14580         case $cc_basename in
14581           CC*)
14582             # FIXME: insert proper C++ library support
14583             ld_shlibs_CXX=no
14584             ;;
14585           aCC*)
14586             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'
14587             # Commands to make compiler produce verbose output that lists
14588             # what "hidden" libraries, object files and flags are used when
14589             # linking a shared library.
14590             #
14591             # There doesn't appear to be a way to prevent this compiler from
14592             # explicitly linking system object files so we need to strip them
14593             # from the output so that they don't get included in the library
14594             # dependencies.
14595             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"'
14596             ;;
14597           *)
14598             if test "$GXX" = yes; then
14599               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'
14600             else
14601               # FIXME: insert proper C++ library support
14602               ld_shlibs_CXX=no
14603             fi
14604             ;;
14605         esac
14606         ;;
14607
14608       hpux10*|hpux11*)
14609         if test $with_gnu_ld = no; then
14610           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14611           hardcode_libdir_separator_CXX=:
14612
14613           case $host_cpu in
14614             hppa*64*|ia64*)
14615               ;;
14616             *)
14617               export_dynamic_flag_spec_CXX='${wl}-E'
14618               ;;
14619           esac
14620         fi
14621         case $host_cpu in
14622           hppa*64*|ia64*)
14623             hardcode_direct_CXX=no
14624             hardcode_shlibpath_var_CXX=no
14625             ;;
14626           *)
14627             hardcode_direct_CXX=yes
14628             hardcode_direct_absolute_CXX=yes
14629             hardcode_minus_L_CXX=yes # Not in the search PATH,
14630                                                  # but as the default
14631                                                  # location of the library.
14632             ;;
14633         esac
14634
14635         case $cc_basename in
14636           CC*)
14637             # FIXME: insert proper C++ library support
14638             ld_shlibs_CXX=no
14639             ;;
14640           aCC*)
14641             case $host_cpu in
14642               hppa*64*)
14643                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14644                 ;;
14645               ia64*)
14646                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14647                 ;;
14648               *)
14649                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14650                 ;;
14651             esac
14652             # Commands to make compiler produce verbose output that lists
14653             # what "hidden" libraries, object files and flags are used when
14654             # linking a shared library.
14655             #
14656             # There doesn't appear to be a way to prevent this compiler from
14657             # explicitly linking system object files so we need to strip them
14658             # from the output so that they don't get included in the library
14659             # dependencies.
14660             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"'
14661             ;;
14662           *)
14663             if test "$GXX" = yes; then
14664               if test $with_gnu_ld = no; then
14665                 case $host_cpu in
14666                   hppa*64*)
14667                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14668                     ;;
14669                   ia64*)
14670                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14671                     ;;
14672                   *)
14673                     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'
14674                     ;;
14675                 esac
14676               fi
14677             else
14678               # FIXME: insert proper C++ library support
14679               ld_shlibs_CXX=no
14680             fi
14681             ;;
14682         esac
14683         ;;
14684
14685       interix[3-9]*)
14686         hardcode_direct_CXX=no
14687         hardcode_shlibpath_var_CXX=no
14688         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14689         export_dynamic_flag_spec_CXX='${wl}-E'
14690         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14691         # Instead, shared libraries are loaded at an image base (0x10000000 by
14692         # default) and relocated if they conflict, which is a slow very memory
14693         # consuming and fragmenting process.  To avoid this, we pick a random,
14694         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14695         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14696         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'
14697         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'
14698         ;;
14699       irix5* | irix6*)
14700         case $cc_basename in
14701           CC*)
14702             # SGI C++
14703             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'
14704
14705             # Archives containing C++ object files must be created using
14706             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14707             # necessary to make sure instantiated templates are included
14708             # in the archive.
14709             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14710             ;;
14711           *)
14712             if test "$GXX" = yes; then
14713               if test "$with_gnu_ld" = no; then
14714                 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'
14715               else
14716                 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'
14717               fi
14718             fi
14719             link_all_deplibs_CXX=yes
14720             ;;
14721         esac
14722         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14723         hardcode_libdir_separator_CXX=:
14724         inherit_rpath_CXX=yes
14725         ;;
14726
14727       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14728         case $cc_basename in
14729           KCC*)
14730             # Kuck and Associates, Inc. (KAI) C++ Compiler
14731
14732             # KCC will only create a shared library if the output file
14733             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14734             # to its proper name (with version) after linking.
14735             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'
14736             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'
14737             # Commands to make compiler produce verbose output that lists
14738             # what "hidden" libraries, object files and flags are used when
14739             # linking a shared library.
14740             #
14741             # There doesn't appear to be a way to prevent this compiler from
14742             # explicitly linking system object files so we need to strip them
14743             # from the output so that they don't get included in the library
14744             # dependencies.
14745             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"'
14746
14747             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14748             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14749
14750             # Archives containing C++ object files must be created using
14751             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14752             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14753             ;;
14754           icpc* | ecpc* )
14755             # Intel C++
14756             with_gnu_ld=yes
14757             # version 8.0 and above of icpc choke on multiply defined symbols
14758             # if we add $predep_objects and $postdep_objects, however 7.1 and
14759             # earlier do not add the objects themselves.
14760             case `$CC -V 2>&1` in
14761               *"Version 7."*)
14762                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763                 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'
14764                 ;;
14765               *)  # Version 8.0 or newer
14766                 tmp_idyn=
14767                 case $host_cpu in
14768                   ia64*) tmp_idyn=' -i_dynamic';;
14769                 esac
14770                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14771                 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'
14772                 ;;
14773             esac
14774             archive_cmds_need_lc_CXX=no
14775             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14776             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14777             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14778             ;;
14779           pgCC* | pgcpp*)
14780             # Portland Group C++ compiler
14781             case `$CC -V` in
14782             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14783               prelink_cmds_CXX='tpldir=Template.dir~
14784                 rm -rf $tpldir~
14785                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14786                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14787               old_archive_cmds_CXX='tpldir=Template.dir~
14788                 rm -rf $tpldir~
14789                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14790                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14791                 $RANLIB $oldlib'
14792               archive_cmds_CXX='tpldir=Template.dir~
14793                 rm -rf $tpldir~
14794                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14795                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14796               archive_expsym_cmds_CXX='tpldir=Template.dir~
14797                 rm -rf $tpldir~
14798                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14799                 $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'
14800               ;;
14801             *) # Version 6 and above use weak symbols
14802               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14803               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'
14804               ;;
14805             esac
14806
14807             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14808             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14809             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'
14810             ;;
14811           cxx*)
14812             # Compaq C++
14813             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14814             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'
14815
14816             runpath_var=LD_RUN_PATH
14817             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14818             hardcode_libdir_separator_CXX=:
14819
14820             # Commands to make compiler produce verbose output that lists
14821             # what "hidden" libraries, object files and flags are used when
14822             # linking a shared library.
14823             #
14824             # There doesn't appear to be a way to prevent this compiler from
14825             # explicitly linking system object files so we need to strip them
14826             # from the output so that they don't get included in the library
14827             # dependencies.
14828             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'
14829             ;;
14830           xl* | mpixl* | bgxl*)
14831             # IBM XL 8.0 on PPC, with GNU ld
14832             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14833             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14834             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835             if test "x$supports_anon_versioning" = xyes; then
14836               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14837                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14838                 echo "local: *; };" >> $output_objdir/$libname.ver~
14839                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14840             fi
14841             ;;
14842           *)
14843             case `$CC -V 2>&1 | sed 5q` in
14844             *Sun\ C*)
14845               # Sun C++ 5.9
14846               no_undefined_flag_CXX=' -zdefs'
14847               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14848               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'
14849               hardcode_libdir_flag_spec_CXX='-R$libdir'
14850               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'
14851               compiler_needs_object_CXX=yes
14852
14853               # Not sure whether something based on
14854               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14855               # would be better.
14856               output_verbose_link_cmd='func_echo_all'
14857
14858               # Archives containing C++ object files must be created using
14859               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14860               # necessary to make sure instantiated templates are included
14861               # in the archive.
14862               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14863               ;;
14864             esac
14865             ;;
14866         esac
14867         ;;
14868
14869       lynxos*)
14870         # FIXME: insert proper C++ library support
14871         ld_shlibs_CXX=no
14872         ;;
14873
14874       m88k*)
14875         # FIXME: insert proper C++ library support
14876         ld_shlibs_CXX=no
14877         ;;
14878
14879       mvs*)
14880         case $cc_basename in
14881           cxx*)
14882             # FIXME: insert proper C++ library support
14883             ld_shlibs_CXX=no
14884             ;;
14885           *)
14886             # FIXME: insert proper C++ library support
14887             ld_shlibs_CXX=no
14888             ;;
14889         esac
14890         ;;
14891
14892       netbsd*)
14893         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14894           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14895           wlarc=
14896           hardcode_libdir_flag_spec_CXX='-R$libdir'
14897           hardcode_direct_CXX=yes
14898           hardcode_shlibpath_var_CXX=no
14899         fi
14900         # Workaround some broken pre-1.5 toolchains
14901         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14902         ;;
14903
14904       *nto* | *qnx*)
14905         ld_shlibs_CXX=yes
14906         ;;
14907
14908       openbsd2*)
14909         # C++ shared libraries are fairly broken
14910         ld_shlibs_CXX=no
14911         ;;
14912
14913       openbsd*)
14914         if test -f /usr/libexec/ld.so; then
14915           hardcode_direct_CXX=yes
14916           hardcode_shlibpath_var_CXX=no
14917           hardcode_direct_absolute_CXX=yes
14918           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14919           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14920           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14921             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14922             export_dynamic_flag_spec_CXX='${wl}-E'
14923             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14924           fi
14925           output_verbose_link_cmd=func_echo_all
14926         else
14927           ld_shlibs_CXX=no
14928         fi
14929         ;;
14930
14931       osf3* | osf4* | osf5*)
14932         case $cc_basename in
14933           KCC*)
14934             # Kuck and Associates, Inc. (KAI) C++ Compiler
14935
14936             # KCC will only create a shared library if the output file
14937             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14938             # to its proper name (with version) after linking.
14939             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'
14940
14941             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14942             hardcode_libdir_separator_CXX=:
14943
14944             # Archives containing C++ object files must be created using
14945             # the KAI C++ compiler.
14946             case $host in
14947               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14948               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14949             esac
14950             ;;
14951           RCC*)
14952             # Rational C++ 2.4.1
14953             # FIXME: insert proper C++ library support
14954             ld_shlibs_CXX=no
14955             ;;
14956           cxx*)
14957             case $host in
14958               osf3*)
14959                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14960                 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'
14961                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14962                 ;;
14963               *)
14964                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14965                 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'
14966                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14967                   echo "-hidden">> $lib.exp~
14968                   $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~
14969                   $RM $lib.exp'
14970                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14971                 ;;
14972             esac
14973
14974             hardcode_libdir_separator_CXX=:
14975
14976             # Commands to make compiler produce verbose output that lists
14977             # what "hidden" libraries, object files and flags are used when
14978             # linking a shared library.
14979             #
14980             # There doesn't appear to be a way to prevent this compiler from
14981             # explicitly linking system object files so we need to strip them
14982             # from the output so that they don't get included in the library
14983             # dependencies.
14984             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"'
14985             ;;
14986           *)
14987             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14988               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14989               case $host in
14990                 osf3*)
14991                   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'
14992                   ;;
14993                 *)
14994                   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'
14995                   ;;
14996               esac
14997
14998               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14999               hardcode_libdir_separator_CXX=:
15000
15001               # Commands to make compiler produce verbose output that lists
15002               # what "hidden" libraries, object files and flags are used when
15003               # linking a shared library.
15004               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15005
15006             else
15007               # FIXME: insert proper C++ library support
15008               ld_shlibs_CXX=no
15009             fi
15010             ;;
15011         esac
15012         ;;
15013
15014       psos*)
15015         # FIXME: insert proper C++ library support
15016         ld_shlibs_CXX=no
15017         ;;
15018
15019       sunos4*)
15020         case $cc_basename in
15021           CC*)
15022             # Sun C++ 4.x
15023             # FIXME: insert proper C++ library support
15024             ld_shlibs_CXX=no
15025             ;;
15026           lcc*)
15027             # Lucid
15028             # FIXME: insert proper C++ library support
15029             ld_shlibs_CXX=no
15030             ;;
15031           *)
15032             # FIXME: insert proper C++ library support
15033             ld_shlibs_CXX=no
15034             ;;
15035         esac
15036         ;;
15037
15038       solaris*)
15039         case $cc_basename in
15040           CC* | sunCC*)
15041             # Sun C++ 4.2, 5.x and Centerline C++
15042             archive_cmds_need_lc_CXX=yes
15043             no_undefined_flag_CXX=' -zdefs'
15044             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15045             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15046               $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'
15047
15048             hardcode_libdir_flag_spec_CXX='-R$libdir'
15049             hardcode_shlibpath_var_CXX=no
15050             case $host_os in
15051               solaris2.[0-5] | solaris2.[0-5].*) ;;
15052               *)
15053                 # The compiler driver will combine and reorder linker options,
15054                 # but understands `-z linker_flag'.
15055                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15056                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15057                 ;;
15058             esac
15059             link_all_deplibs_CXX=yes
15060
15061             output_verbose_link_cmd='func_echo_all'
15062
15063             # Archives containing C++ object files must be created using
15064             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15065             # necessary to make sure instantiated templates are included
15066             # in the archive.
15067             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15068             ;;
15069           gcx*)
15070             # Green Hills C++ Compiler
15071             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15072
15073             # The C++ compiler must be used to create the archive.
15074             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15075             ;;
15076           *)
15077             # GNU C++ compiler with Solaris linker
15078             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15079               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15080               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15081                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15082                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15083                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15084
15085                 # Commands to make compiler produce verbose output that lists
15086                 # what "hidden" libraries, object files and flags are used when
15087                 # linking a shared library.
15088                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15089               else
15090                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15091                 # platform.
15092                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15093                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15094                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15095
15096                 # Commands to make compiler produce verbose output that lists
15097                 # what "hidden" libraries, object files and flags are used when
15098                 # linking a shared library.
15099                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15100               fi
15101
15102               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15103               case $host_os in
15104                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15105                 *)
15106                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15107                   ;;
15108               esac
15109             fi
15110             ;;
15111         esac
15112         ;;
15113
15114     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15115       no_undefined_flag_CXX='${wl}-z,text'
15116       archive_cmds_need_lc_CXX=no
15117       hardcode_shlibpath_var_CXX=no
15118       runpath_var='LD_RUN_PATH'
15119
15120       case $cc_basename in
15121         CC*)
15122           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15123           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15124           ;;
15125         *)
15126           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128           ;;
15129       esac
15130       ;;
15131
15132       sysv5* | sco3.2v5* | sco5v6*)
15133         # Note: We can NOT use -z defs as we might desire, because we do not
15134         # link with -lc, and that would cause any symbols used from libc to
15135         # always be unresolved, which means just about no library would
15136         # ever link correctly.  If we're not using GNU ld we use -z text
15137         # though, which does catch some bad symbols but isn't as heavy-handed
15138         # as -z defs.
15139         no_undefined_flag_CXX='${wl}-z,text'
15140         allow_undefined_flag_CXX='${wl}-z,nodefs'
15141         archive_cmds_need_lc_CXX=no
15142         hardcode_shlibpath_var_CXX=no
15143         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15144         hardcode_libdir_separator_CXX=':'
15145         link_all_deplibs_CXX=yes
15146         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15147         runpath_var='LD_RUN_PATH'
15148
15149         case $cc_basename in
15150           CC*)
15151             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15152             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15153             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15154               '"$old_archive_cmds_CXX"
15155             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15156               '"$reload_cmds_CXX"
15157             ;;
15158           *)
15159             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15160             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15161             ;;
15162         esac
15163       ;;
15164
15165       tandem*)
15166         case $cc_basename in
15167           NCC*)
15168             # NonStop-UX NCC 3.20
15169             # FIXME: insert proper C++ library support
15170             ld_shlibs_CXX=no
15171             ;;
15172           *)
15173             # FIXME: insert proper C++ library support
15174             ld_shlibs_CXX=no
15175             ;;
15176         esac
15177         ;;
15178
15179       vxworks*)
15180         # FIXME: insert proper C++ library support
15181         ld_shlibs_CXX=no
15182         ;;
15183
15184       *)
15185         # FIXME: insert proper C++ library support
15186         ld_shlibs_CXX=no
15187         ;;
15188     esac
15189
15190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15191 $as_echo "$ld_shlibs_CXX" >&6; }
15192     test "$ld_shlibs_CXX" = no && can_build_shared=no
15193
15194     GCC_CXX="$GXX"
15195     LD_CXX="$LD"
15196
15197     ## CAVEAT EMPTOR:
15198     ## There is no encapsulation within the following macros, do not change
15199     ## the running order or otherwise move them around unless you know exactly
15200     ## what you are doing...
15201     # Dependencies to place before and after the object being linked:
15202 predep_objects_CXX=
15203 postdep_objects_CXX=
15204 predeps_CXX=
15205 postdeps_CXX=
15206 compiler_lib_search_path_CXX=
15207
15208 cat > conftest.$ac_ext <<_LT_EOF
15209 class Foo
15210 {
15211 public:
15212   Foo (void) { a = 0; }
15213 private:
15214   int a;
15215 };
15216 _LT_EOF
15217
15218
15219 _lt_libdeps_save_CFLAGS=$CFLAGS
15220 case "$CC $CFLAGS " in #(
15221 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15222 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15223 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15224 esac
15225
15226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15227   (eval $ac_compile) 2>&5
15228   ac_status=$?
15229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15230   test $ac_status = 0; }; then
15231   # Parse the compiler output and extract the necessary
15232   # objects, libraries and library flags.
15233
15234   # Sentinel used to keep track of whether or not we are before
15235   # the conftest object file.
15236   pre_test_object_deps_done=no
15237
15238   for p in `eval "$output_verbose_link_cmd"`; do
15239     case ${prev}${p} in
15240
15241     -L* | -R* | -l*)
15242        # Some compilers place space between "-{L,R}" and the path.
15243        # Remove the space.
15244        if test $p = "-L" ||
15245           test $p = "-R"; then
15246          prev=$p
15247          continue
15248        fi
15249
15250        # Expand the sysroot to ease extracting the directories later.
15251        if test -z "$prev"; then
15252          case $p in
15253          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15254          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15255          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15256          esac
15257        fi
15258        case $p in
15259        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15260        esac
15261        if test "$pre_test_object_deps_done" = no; then
15262          case ${prev} in
15263          -L | -R)
15264            # Internal compiler library paths should come after those
15265            # provided the user.  The postdeps already come after the
15266            # user supplied libs so there is no need to process them.
15267            if test -z "$compiler_lib_search_path_CXX"; then
15268              compiler_lib_search_path_CXX="${prev}${p}"
15269            else
15270              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15271            fi
15272            ;;
15273          # The "-l" case would never come before the object being
15274          # linked, so don't bother handling this case.
15275          esac
15276        else
15277          if test -z "$postdeps_CXX"; then
15278            postdeps_CXX="${prev}${p}"
15279          else
15280            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15281          fi
15282        fi
15283        prev=
15284        ;;
15285
15286     *.lto.$objext) ;; # Ignore GCC LTO objects
15287     *.$objext)
15288        # This assumes that the test object file only shows up
15289        # once in the compiler output.
15290        if test "$p" = "conftest.$objext"; then
15291          pre_test_object_deps_done=yes
15292          continue
15293        fi
15294
15295        if test "$pre_test_object_deps_done" = no; then
15296          if test -z "$predep_objects_CXX"; then
15297            predep_objects_CXX="$p"
15298          else
15299            predep_objects_CXX="$predep_objects_CXX $p"
15300          fi
15301        else
15302          if test -z "$postdep_objects_CXX"; then
15303            postdep_objects_CXX="$p"
15304          else
15305            postdep_objects_CXX="$postdep_objects_CXX $p"
15306          fi
15307        fi
15308        ;;
15309
15310     *) ;; # Ignore the rest.
15311
15312     esac
15313   done
15314
15315   # Clean up.
15316   rm -f a.out a.exe
15317 else
15318   echo "libtool.m4: error: problem compiling CXX test program"
15319 fi
15320
15321 $RM -f confest.$objext
15322 CFLAGS=$_lt_libdeps_save_CFLAGS
15323
15324 # PORTME: override above test on systems where it is broken
15325 case $host_os in
15326 interix[3-9]*)
15327   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15328   # hack all around it, let's just trust "g++" to DTRT.
15329   predep_objects_CXX=
15330   postdep_objects_CXX=
15331   postdeps_CXX=
15332   ;;
15333
15334 linux*)
15335   case `$CC -V 2>&1 | sed 5q` in
15336   *Sun\ C*)
15337     # Sun C++ 5.9
15338
15339     # The more standards-conforming stlport4 library is
15340     # incompatible with the Cstd library. Avoid specifying
15341     # it if it's in CXXFLAGS. Ignore libCrun as
15342     # -library=stlport4 depends on it.
15343     case " $CXX $CXXFLAGS " in
15344     *" -library=stlport4 "*)
15345       solaris_use_stlport4=yes
15346       ;;
15347     esac
15348
15349     if test "$solaris_use_stlport4" != yes; then
15350       postdeps_CXX='-library=Cstd -library=Crun'
15351     fi
15352     ;;
15353   esac
15354   ;;
15355
15356 solaris*)
15357   case $cc_basename in
15358   CC* | sunCC*)
15359     # The more standards-conforming stlport4 library is
15360     # incompatible with the Cstd library. Avoid specifying
15361     # it if it's in CXXFLAGS. Ignore libCrun as
15362     # -library=stlport4 depends on it.
15363     case " $CXX $CXXFLAGS " in
15364     *" -library=stlport4 "*)
15365       solaris_use_stlport4=yes
15366       ;;
15367     esac
15368
15369     # Adding this requires a known-good setup of shared libraries for
15370     # Sun compiler versions before 5.6, else PIC objects from an old
15371     # archive will be linked into the output, leading to subtle bugs.
15372     if test "$solaris_use_stlport4" != yes; then
15373       postdeps_CXX='-library=Cstd -library=Crun'
15374     fi
15375     ;;
15376   esac
15377   ;;
15378 esac
15379
15380
15381 case " $postdeps_CXX " in
15382 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15383 esac
15384  compiler_lib_search_dirs_CXX=
15385 if test -n "${compiler_lib_search_path_CXX}"; then
15386  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15387 fi
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419     lt_prog_compiler_wl_CXX=
15420 lt_prog_compiler_pic_CXX=
15421 lt_prog_compiler_static_CXX=
15422
15423
15424   # C++ specific cases for pic, static, wl, etc.
15425   if test "$GXX" = yes; then
15426     lt_prog_compiler_wl_CXX='-Wl,'
15427     lt_prog_compiler_static_CXX='-static'
15428
15429     case $host_os in
15430     aix*)
15431       # All AIX code is PIC.
15432       if test "$host_cpu" = ia64; then
15433         # AIX 5 now supports IA64 processor
15434         lt_prog_compiler_static_CXX='-Bstatic'
15435       fi
15436       ;;
15437
15438     amigaos*)
15439       case $host_cpu in
15440       powerpc)
15441             # see comment about AmigaOS4 .so support
15442             lt_prog_compiler_pic_CXX='-fPIC'
15443         ;;
15444       m68k)
15445             # FIXME: we need at least 68020 code to build shared libraries, but
15446             # adding the `-m68020' flag to GCC prevents building anything better,
15447             # like `-m68040'.
15448             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15449         ;;
15450       esac
15451       ;;
15452
15453     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15454       # PIC is the default for these OSes.
15455       ;;
15456     mingw* | cygwin* | os2* | pw32* | cegcc*)
15457       # This hack is so that the source file can tell whether it is being
15458       # built for inclusion in a dll (and should export symbols for example).
15459       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15460       # (--disable-auto-import) libraries
15461       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15462       ;;
15463     darwin* | rhapsody*)
15464       # PIC is the default on this platform
15465       # Common symbols not allowed in MH_DYLIB files
15466       lt_prog_compiler_pic_CXX='-fno-common'
15467       ;;
15468     *djgpp*)
15469       # DJGPP does not support shared libraries at all
15470       lt_prog_compiler_pic_CXX=
15471       ;;
15472     haiku*)
15473       # PIC is the default for Haiku.
15474       # The "-static" flag exists, but is broken.
15475       lt_prog_compiler_static_CXX=
15476       ;;
15477     interix[3-9]*)
15478       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15479       # Instead, we relocate shared libraries at runtime.
15480       ;;
15481     sysv4*MP*)
15482       if test -d /usr/nec; then
15483         lt_prog_compiler_pic_CXX=-Kconform_pic
15484       fi
15485       ;;
15486     hpux*)
15487       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15488       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15489       # sets the default TLS model and affects inlining.
15490       case $host_cpu in
15491       hppa*64*)
15492         ;;
15493       *)
15494         lt_prog_compiler_pic_CXX='-fPIC'
15495         ;;
15496       esac
15497       ;;
15498     *qnx* | *nto*)
15499       # QNX uses GNU C++, but need to define -shared option too, otherwise
15500       # it will coredump.
15501       lt_prog_compiler_pic_CXX='-fPIC -shared'
15502       ;;
15503     *)
15504       lt_prog_compiler_pic_CXX='-fPIC'
15505       ;;
15506     esac
15507   else
15508     case $host_os in
15509       aix[4-9]*)
15510         # All AIX code is PIC.
15511         if test "$host_cpu" = ia64; then
15512           # AIX 5 now supports IA64 processor
15513           lt_prog_compiler_static_CXX='-Bstatic'
15514         else
15515           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15516         fi
15517         ;;
15518       chorus*)
15519         case $cc_basename in
15520         cxch68*)
15521           # Green Hills C++ Compiler
15522           # _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"
15523           ;;
15524         esac
15525         ;;
15526       mingw* | cygwin* | os2* | pw32* | cegcc*)
15527         # This hack is so that the source file can tell whether it is being
15528         # built for inclusion in a dll (and should export symbols for example).
15529         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15530         ;;
15531       dgux*)
15532         case $cc_basename in
15533           ec++*)
15534             lt_prog_compiler_pic_CXX='-KPIC'
15535             ;;
15536           ghcx*)
15537             # Green Hills C++ Compiler
15538             lt_prog_compiler_pic_CXX='-pic'
15539             ;;
15540           *)
15541             ;;
15542         esac
15543         ;;
15544       freebsd* | dragonfly*)
15545         # FreeBSD uses GNU C++
15546         ;;
15547       hpux9* | hpux10* | hpux11*)
15548         case $cc_basename in
15549           CC*)
15550             lt_prog_compiler_wl_CXX='-Wl,'
15551             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15552             if test "$host_cpu" != ia64; then
15553               lt_prog_compiler_pic_CXX='+Z'
15554             fi
15555             ;;
15556           aCC*)
15557             lt_prog_compiler_wl_CXX='-Wl,'
15558             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15559             case $host_cpu in
15560             hppa*64*|ia64*)
15561               # +Z the default
15562               ;;
15563             *)
15564               lt_prog_compiler_pic_CXX='+Z'
15565               ;;
15566             esac
15567             ;;
15568           *)
15569             ;;
15570         esac
15571         ;;
15572       interix*)
15573         # This is c89, which is MS Visual C++ (no shared libs)
15574         # Anyone wants to do a port?
15575         ;;
15576       irix5* | irix6* | nonstopux*)
15577         case $cc_basename in
15578           CC*)
15579             lt_prog_compiler_wl_CXX='-Wl,'
15580             lt_prog_compiler_static_CXX='-non_shared'
15581             # CC pic flag -KPIC is the default.
15582             ;;
15583           *)
15584             ;;
15585         esac
15586         ;;
15587       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15588         case $cc_basename in
15589           KCC*)
15590             # KAI C++ Compiler
15591             lt_prog_compiler_wl_CXX='--backend -Wl,'
15592             lt_prog_compiler_pic_CXX='-fPIC'
15593             ;;
15594           ecpc* )
15595             # old Intel C++ for x86_64 which still supported -KPIC.
15596             lt_prog_compiler_wl_CXX='-Wl,'
15597             lt_prog_compiler_pic_CXX='-KPIC'
15598             lt_prog_compiler_static_CXX='-static'
15599             ;;
15600           icpc* )
15601             # Intel C++, used to be incompatible with GCC.
15602             # ICC 10 doesn't accept -KPIC any more.
15603             lt_prog_compiler_wl_CXX='-Wl,'
15604             lt_prog_compiler_pic_CXX='-fPIC'
15605             lt_prog_compiler_static_CXX='-static'
15606             ;;
15607           pgCC* | pgcpp*)
15608             # Portland Group C++ compiler
15609             lt_prog_compiler_wl_CXX='-Wl,'
15610             lt_prog_compiler_pic_CXX='-fpic'
15611             lt_prog_compiler_static_CXX='-Bstatic'
15612             ;;
15613           cxx*)
15614             # Compaq C++
15615             # Make sure the PIC flag is empty.  It appears that all Alpha
15616             # Linux and Compaq Tru64 Unix objects are PIC.
15617             lt_prog_compiler_pic_CXX=
15618             lt_prog_compiler_static_CXX='-non_shared'
15619             ;;
15620           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15621             # IBM XL 8.0, 9.0 on PPC and BlueGene
15622             lt_prog_compiler_wl_CXX='-Wl,'
15623             lt_prog_compiler_pic_CXX='-qpic'
15624             lt_prog_compiler_static_CXX='-qstaticlink'
15625             ;;
15626           *)
15627             case `$CC -V 2>&1 | sed 5q` in
15628             *Sun\ C*)
15629               # Sun C++ 5.9
15630               lt_prog_compiler_pic_CXX='-KPIC'
15631               lt_prog_compiler_static_CXX='-Bstatic'
15632               lt_prog_compiler_wl_CXX='-Qoption ld '
15633               ;;
15634             esac
15635             ;;
15636         esac
15637         ;;
15638       lynxos*)
15639         ;;
15640       m88k*)
15641         ;;
15642       mvs*)
15643         case $cc_basename in
15644           cxx*)
15645             lt_prog_compiler_pic_CXX='-W c,exportall'
15646             ;;
15647           *)
15648             ;;
15649         esac
15650         ;;
15651       netbsd* | netbsdelf*-gnu)
15652         ;;
15653       *qnx* | *nto*)
15654         # QNX uses GNU C++, but need to define -shared option too, otherwise
15655         # it will coredump.
15656         lt_prog_compiler_pic_CXX='-fPIC -shared'
15657         ;;
15658       osf3* | osf4* | osf5*)
15659         case $cc_basename in
15660           KCC*)
15661             lt_prog_compiler_wl_CXX='--backend -Wl,'
15662             ;;
15663           RCC*)
15664             # Rational C++ 2.4.1
15665             lt_prog_compiler_pic_CXX='-pic'
15666             ;;
15667           cxx*)
15668             # Digital/Compaq C++
15669             lt_prog_compiler_wl_CXX='-Wl,'
15670             # Make sure the PIC flag is empty.  It appears that all Alpha
15671             # Linux and Compaq Tru64 Unix objects are PIC.
15672             lt_prog_compiler_pic_CXX=
15673             lt_prog_compiler_static_CXX='-non_shared'
15674             ;;
15675           *)
15676             ;;
15677         esac
15678         ;;
15679       psos*)
15680         ;;
15681       solaris*)
15682         case $cc_basename in
15683           CC* | sunCC*)
15684             # Sun C++ 4.2, 5.x and Centerline C++
15685             lt_prog_compiler_pic_CXX='-KPIC'
15686             lt_prog_compiler_static_CXX='-Bstatic'
15687             lt_prog_compiler_wl_CXX='-Qoption ld '
15688             ;;
15689           gcx*)
15690             # Green Hills C++ Compiler
15691             lt_prog_compiler_pic_CXX='-PIC'
15692             ;;
15693           *)
15694             ;;
15695         esac
15696         ;;
15697       sunos4*)
15698         case $cc_basename in
15699           CC*)
15700             # Sun C++ 4.x
15701             lt_prog_compiler_pic_CXX='-pic'
15702             lt_prog_compiler_static_CXX='-Bstatic'
15703             ;;
15704           lcc*)
15705             # Lucid
15706             lt_prog_compiler_pic_CXX='-pic'
15707             ;;
15708           *)
15709             ;;
15710         esac
15711         ;;
15712       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15713         case $cc_basename in
15714           CC*)
15715             lt_prog_compiler_wl_CXX='-Wl,'
15716             lt_prog_compiler_pic_CXX='-KPIC'
15717             lt_prog_compiler_static_CXX='-Bstatic'
15718             ;;
15719         esac
15720         ;;
15721       tandem*)
15722         case $cc_basename in
15723           NCC*)
15724             # NonStop-UX NCC 3.20
15725             lt_prog_compiler_pic_CXX='-KPIC'
15726             ;;
15727           *)
15728             ;;
15729         esac
15730         ;;
15731       vxworks*)
15732         ;;
15733       *)
15734         lt_prog_compiler_can_build_shared_CXX=no
15735         ;;
15736     esac
15737   fi
15738
15739 case $host_os in
15740   # For platforms which do not support PIC, -DPIC is meaningless:
15741   *djgpp*)
15742     lt_prog_compiler_pic_CXX=
15743     ;;
15744   *)
15745     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15746     ;;
15747 esac
15748
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15750 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15751 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15752   $as_echo_n "(cached) " >&6
15753 else
15754   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15755 fi
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15757 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15758 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15759
15760 #
15761 # Check to make sure the PIC flag actually works.
15762 #
15763 if test -n "$lt_prog_compiler_pic_CXX"; then
15764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15765 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15766 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15767   $as_echo_n "(cached) " >&6
15768 else
15769   lt_cv_prog_compiler_pic_works_CXX=no
15770    ac_outfile=conftest.$ac_objext
15771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15772    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15773    # Insert the option either (1) after the last *FLAGS variable, or
15774    # (2) before a word containing "conftest.", or (3) at the end.
15775    # Note that $ac_compile itself does not contain backslashes and begins
15776    # with a dollar sign (not a hyphen), so the echo should work correctly.
15777    # The option is referenced via a variable to avoid confusing sed.
15778    lt_compile=`echo "$ac_compile" | $SED \
15779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15781    -e 's:$: $lt_compiler_flag:'`
15782    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15783    (eval "$lt_compile" 2>conftest.err)
15784    ac_status=$?
15785    cat conftest.err >&5
15786    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787    if (exit $ac_status) && test -s "$ac_outfile"; then
15788      # The compiler can only warn and ignore the option if not recognized
15789      # So say no if there are warnings other than the usual output.
15790      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15793        lt_cv_prog_compiler_pic_works_CXX=yes
15794      fi
15795    fi
15796    $RM conftest*
15797
15798 fi
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15800 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15801
15802 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15803     case $lt_prog_compiler_pic_CXX in
15804      "" | " "*) ;;
15805      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15806      esac
15807 else
15808     lt_prog_compiler_pic_CXX=
15809      lt_prog_compiler_can_build_shared_CXX=no
15810 fi
15811
15812 fi
15813
15814
15815
15816
15817
15818 #
15819 # Check to make sure the static flag actually works.
15820 #
15821 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15823 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15824 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15825   $as_echo_n "(cached) " >&6
15826 else
15827   lt_cv_prog_compiler_static_works_CXX=no
15828    save_LDFLAGS="$LDFLAGS"
15829    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15830    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15831    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15832      # The linker can only warn and ignore the option if not recognized
15833      # So say no if there are warnings
15834      if test -s conftest.err; then
15835        # Append any errors to the config.log.
15836        cat conftest.err 1>&5
15837        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15838        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15839        if diff conftest.exp conftest.er2 >/dev/null; then
15840          lt_cv_prog_compiler_static_works_CXX=yes
15841        fi
15842      else
15843        lt_cv_prog_compiler_static_works_CXX=yes
15844      fi
15845    fi
15846    $RM -r conftest*
15847    LDFLAGS="$save_LDFLAGS"
15848
15849 fi
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15851 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15852
15853 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15854     :
15855 else
15856     lt_prog_compiler_static_CXX=
15857 fi
15858
15859
15860
15861
15862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15864 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15865   $as_echo_n "(cached) " >&6
15866 else
15867   lt_cv_prog_compiler_c_o_CXX=no
15868    $RM -r conftest 2>/dev/null
15869    mkdir conftest
15870    cd conftest
15871    mkdir out
15872    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15873
15874    lt_compiler_flag="-o out/conftest2.$ac_objext"
15875    # Insert the option either (1) after the last *FLAGS variable, or
15876    # (2) before a word containing "conftest.", or (3) at the end.
15877    # Note that $ac_compile itself does not contain backslashes and begins
15878    # with a dollar sign (not a hyphen), so the echo should work correctly.
15879    lt_compile=`echo "$ac_compile" | $SED \
15880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15882    -e 's:$: $lt_compiler_flag:'`
15883    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15884    (eval "$lt_compile" 2>out/conftest.err)
15885    ac_status=$?
15886    cat out/conftest.err >&5
15887    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15889    then
15890      # The compiler can only warn and ignore the option if not recognized
15891      # So say no if there are warnings
15892      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15893      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15894      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15895        lt_cv_prog_compiler_c_o_CXX=yes
15896      fi
15897    fi
15898    chmod u+w . 2>&5
15899    $RM conftest*
15900    # SGI C++ compiler will create directory out/ii_files/ for
15901    # template instantiation
15902    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15903    $RM out/* && rmdir out
15904    cd ..
15905    $RM -r conftest
15906    $RM conftest*
15907
15908 fi
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15910 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15911
15912
15913
15914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15916 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15917   $as_echo_n "(cached) " >&6
15918 else
15919   lt_cv_prog_compiler_c_o_CXX=no
15920    $RM -r conftest 2>/dev/null
15921    mkdir conftest
15922    cd conftest
15923    mkdir out
15924    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15925
15926    lt_compiler_flag="-o out/conftest2.$ac_objext"
15927    # Insert the option either (1) after the last *FLAGS variable, or
15928    # (2) before a word containing "conftest.", or (3) at the end.
15929    # Note that $ac_compile itself does not contain backslashes and begins
15930    # with a dollar sign (not a hyphen), so the echo should work correctly.
15931    lt_compile=`echo "$ac_compile" | $SED \
15932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15934    -e 's:$: $lt_compiler_flag:'`
15935    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15936    (eval "$lt_compile" 2>out/conftest.err)
15937    ac_status=$?
15938    cat out/conftest.err >&5
15939    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15941    then
15942      # The compiler can only warn and ignore the option if not recognized
15943      # So say no if there are warnings
15944      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15945      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15946      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15947        lt_cv_prog_compiler_c_o_CXX=yes
15948      fi
15949    fi
15950    chmod u+w . 2>&5
15951    $RM conftest*
15952    # SGI C++ compiler will create directory out/ii_files/ for
15953    # template instantiation
15954    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15955    $RM out/* && rmdir out
15956    cd ..
15957    $RM -r conftest
15958    $RM conftest*
15959
15960 fi
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15962 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15963
15964
15965
15966
15967 hard_links="nottested"
15968 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15969   # do not overwrite the value of need_locks provided by the user
15970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15971 $as_echo_n "checking if we can lock with hard links... " >&6; }
15972   hard_links=yes
15973   $RM conftest*
15974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15975   touch conftest.a
15976   ln conftest.a conftest.b 2>&5 || hard_links=no
15977   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15979 $as_echo "$hard_links" >&6; }
15980   if test "$hard_links" = no; then
15981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15982 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15983     need_locks=warn
15984   fi
15985 else
15986   need_locks=no
15987 fi
15988
15989
15990
15991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15992 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15993
15994   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15995   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15996   case $host_os in
15997   aix[4-9]*)
15998     # If we're using GNU nm, then we don't want the "-C" option.
15999     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16000     # Also, AIX nm treats weak defined symbols like other global defined
16001     # symbols, whereas GNU nm marks them as "W".
16002     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16003       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'
16004     else
16005       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'
16006     fi
16007     ;;
16008   pw32*)
16009     export_symbols_cmds_CXX="$ltdll_cmds"
16010     ;;
16011   cygwin* | mingw* | cegcc*)
16012     case $cc_basename in
16013     cl*)
16014       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16015       ;;
16016     *)
16017       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'
16018       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16019       ;;
16020     esac
16021     ;;
16022   linux* | k*bsd*-gnu | gnu*)
16023     link_all_deplibs_CXX=no
16024     ;;
16025   *)
16026     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16027     ;;
16028   esac
16029
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16031 $as_echo "$ld_shlibs_CXX" >&6; }
16032 test "$ld_shlibs_CXX" = no && can_build_shared=no
16033
16034 with_gnu_ld_CXX=$with_gnu_ld
16035
16036
16037
16038
16039
16040
16041 #
16042 # Do we need to explicitly link libc?
16043 #
16044 case "x$archive_cmds_need_lc_CXX" in
16045 x|xyes)
16046   # Assume -lc should be added
16047   archive_cmds_need_lc_CXX=yes
16048
16049   if test "$enable_shared" = yes && test "$GCC" = yes; then
16050     case $archive_cmds_CXX in
16051     *'~'*)
16052       # FIXME: we may have to deal with multi-command sequences.
16053       ;;
16054     '$CC '*)
16055       # Test whether the compiler implicitly links with -lc since on some
16056       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16057       # to ld, don't add -lc before -lgcc.
16058       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16059 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16060 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16061   $as_echo_n "(cached) " >&6
16062 else
16063   $RM conftest*
16064         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16065
16066         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16067   (eval $ac_compile) 2>&5
16068   ac_status=$?
16069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16070   test $ac_status = 0; } 2>conftest.err; then
16071           soname=conftest
16072           lib=conftest
16073           libobjs=conftest.$ac_objext
16074           deplibs=
16075           wl=$lt_prog_compiler_wl_CXX
16076           pic_flag=$lt_prog_compiler_pic_CXX
16077           compiler_flags=-v
16078           linker_flags=-v
16079           verstring=
16080           output_objdir=.
16081           libname=conftest
16082           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16083           allow_undefined_flag_CXX=
16084           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16085   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16086   ac_status=$?
16087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16088   test $ac_status = 0; }
16089           then
16090             lt_cv_archive_cmds_need_lc_CXX=no
16091           else
16092             lt_cv_archive_cmds_need_lc_CXX=yes
16093           fi
16094           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16095         else
16096           cat conftest.err 1>&5
16097         fi
16098         $RM conftest*
16099
16100 fi
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16102 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16103       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16104       ;;
16105     esac
16106   fi
16107   ;;
16108 esac
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16172 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16173
16174 library_names_spec=
16175 libname_spec='lib$name'
16176 soname_spec=
16177 shrext_cmds=".so"
16178 postinstall_cmds=
16179 postuninstall_cmds=
16180 finish_cmds=
16181 finish_eval=
16182 shlibpath_var=
16183 shlibpath_overrides_runpath=unknown
16184 version_type=none
16185 dynamic_linker="$host_os ld.so"
16186 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16187 need_lib_prefix=unknown
16188 hardcode_into_libs=no
16189
16190 # when you set need_version to no, make sure it does not cause -set_version
16191 # flags to be left without arguments
16192 need_version=unknown
16193
16194 case $host_os in
16195 aix3*)
16196   version_type=linux # correct to gnu/linux during the next big refactor
16197   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16198   shlibpath_var=LIBPATH
16199
16200   # AIX 3 has no versioning support, so we append a major version to the name.
16201   soname_spec='${libname}${release}${shared_ext}$major'
16202   ;;
16203
16204 aix[4-9]*)
16205   version_type=linux # correct to gnu/linux during the next big refactor
16206   need_lib_prefix=no
16207   need_version=no
16208   hardcode_into_libs=yes
16209   if test "$host_cpu" = ia64; then
16210     # AIX 5 supports IA64
16211     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16212     shlibpath_var=LD_LIBRARY_PATH
16213   else
16214     # With GCC up to 2.95.x, collect2 would create an import file
16215     # for dependence libraries.  The import file would start with
16216     # the line `#! .'.  This would cause the generated library to
16217     # depend on `.', always an invalid library.  This was fixed in
16218     # development snapshots of GCC prior to 3.0.
16219     case $host_os in
16220       aix4 | aix4.[01] | aix4.[01].*)
16221       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16222            echo ' yes '
16223            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16224         :
16225       else
16226         can_build_shared=no
16227       fi
16228       ;;
16229     esac
16230     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16231     # soname into executable. Probably we can add versioning support to
16232     # collect2, so additional links can be useful in future.
16233     if test "$aix_use_runtimelinking" = yes; then
16234       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16235       # instead of lib<name>.a to let people know that these are not
16236       # typical AIX shared libraries.
16237       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238     else
16239       # We preserve .a as extension for shared libraries through AIX4.2
16240       # and later when we are not doing run time linking.
16241       library_names_spec='${libname}${release}.a $libname.a'
16242       soname_spec='${libname}${release}${shared_ext}$major'
16243     fi
16244     shlibpath_var=LIBPATH
16245   fi
16246   ;;
16247
16248 amigaos*)
16249   case $host_cpu in
16250   powerpc)
16251     # Since July 2007 AmigaOS4 officially supports .so libraries.
16252     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254     ;;
16255   m68k)
16256     library_names_spec='$libname.ixlibrary $libname.a'
16257     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16258     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'
16259     ;;
16260   esac
16261   ;;
16262
16263 beos*)
16264   library_names_spec='${libname}${shared_ext}'
16265   dynamic_linker="$host_os ld.so"
16266   shlibpath_var=LIBRARY_PATH
16267   ;;
16268
16269 bsdi[45]*)
16270   version_type=linux # correct to gnu/linux during the next big refactor
16271   need_version=no
16272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273   soname_spec='${libname}${release}${shared_ext}$major'
16274   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16275   shlibpath_var=LD_LIBRARY_PATH
16276   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16277   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16278   # the default ld.so.conf also contains /usr/contrib/lib and
16279   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16280   # libtool to hard-code these into programs
16281   ;;
16282
16283 cygwin* | mingw* | pw32* | cegcc*)
16284   version_type=windows
16285   shrext_cmds=".dll"
16286   need_version=no
16287   need_lib_prefix=no
16288
16289   case $GCC,$cc_basename in
16290   yes,*)
16291     # gcc
16292     library_names_spec='$libname.dll.a'
16293     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16294     postinstall_cmds='base_file=`basename \${file}`~
16295       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16296       dldir=$destdir/`dirname \$dlpath`~
16297       test -d \$dldir || mkdir -p \$dldir~
16298       $install_prog $dir/$dlname \$dldir/$dlname~
16299       chmod a+x \$dldir/$dlname~
16300       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16301         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16302       fi'
16303     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16304       dlpath=$dir/\$dldll~
16305        $RM \$dlpath'
16306     shlibpath_overrides_runpath=yes
16307
16308     case $host_os in
16309     cygwin*)
16310       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16311       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16312
16313       ;;
16314     mingw* | cegcc*)
16315       # MinGW DLLs use traditional 'lib' prefix
16316       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16317       ;;
16318     pw32*)
16319       # pw32 DLLs use 'pw' prefix rather than 'lib'
16320       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16321       ;;
16322     esac
16323     dynamic_linker='Win32 ld.exe'
16324     ;;
16325
16326   *,cl*)
16327     # Native MSVC
16328     libname_spec='$name'
16329     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16330     library_names_spec='${libname}.dll.lib'
16331
16332     case $build_os in
16333     mingw*)
16334       sys_lib_search_path_spec=
16335       lt_save_ifs=$IFS
16336       IFS=';'
16337       for lt_path in $LIB
16338       do
16339         IFS=$lt_save_ifs
16340         # Let DOS variable expansion print the short 8.3 style file name.
16341         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16342         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16343       done
16344       IFS=$lt_save_ifs
16345       # Convert to MSYS style.
16346       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16347       ;;
16348     cygwin*)
16349       # Convert to unix form, then to dos form, then back to unix form
16350       # but this time dos style (no spaces!) so that the unix form looks
16351       # like /cygdrive/c/PROGRA~1:/cygdr...
16352       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16353       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16354       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16355       ;;
16356     *)
16357       sys_lib_search_path_spec="$LIB"
16358       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16359         # It is most probably a Windows format PATH.
16360         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16361       else
16362         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16363       fi
16364       # FIXME: find the short name or the path components, as spaces are
16365       # common. (e.g. "Program Files" -> "PROGRA~1")
16366       ;;
16367     esac
16368
16369     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16370     postinstall_cmds='base_file=`basename \${file}`~
16371       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16372       dldir=$destdir/`dirname \$dlpath`~
16373       test -d \$dldir || mkdir -p \$dldir~
16374       $install_prog $dir/$dlname \$dldir/$dlname'
16375     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16376       dlpath=$dir/\$dldll~
16377        $RM \$dlpath'
16378     shlibpath_overrides_runpath=yes
16379     dynamic_linker='Win32 link.exe'
16380     ;;
16381
16382   *)
16383     # Assume MSVC wrapper
16384     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16385     dynamic_linker='Win32 ld.exe'
16386     ;;
16387   esac
16388   # FIXME: first we should search . and the directory the executable is in
16389   shlibpath_var=PATH
16390   ;;
16391
16392 darwin* | rhapsody*)
16393   dynamic_linker="$host_os dyld"
16394   version_type=darwin
16395   need_lib_prefix=no
16396   need_version=no
16397   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16398   soname_spec='${libname}${release}${major}$shared_ext'
16399   shlibpath_overrides_runpath=yes
16400   shlibpath_var=DYLD_LIBRARY_PATH
16401   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16402
16403   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16404   ;;
16405
16406 dgux*)
16407   version_type=linux # correct to gnu/linux during the next big refactor
16408   need_lib_prefix=no
16409   need_version=no
16410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16411   soname_spec='${libname}${release}${shared_ext}$major'
16412   shlibpath_var=LD_LIBRARY_PATH
16413   ;;
16414
16415 freebsd* | dragonfly*)
16416   # DragonFly does not have aout.  When/if they implement a new
16417   # versioning mechanism, adjust this.
16418   if test -x /usr/bin/objformat; then
16419     objformat=`/usr/bin/objformat`
16420   else
16421     case $host_os in
16422     freebsd[23].*) objformat=aout ;;
16423     *) objformat=elf ;;
16424     esac
16425   fi
16426   version_type=freebsd-$objformat
16427   case $version_type in
16428     freebsd-elf*)
16429       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16430       need_version=no
16431       need_lib_prefix=no
16432       ;;
16433     freebsd-*)
16434       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16435       need_version=yes
16436       ;;
16437   esac
16438   shlibpath_var=LD_LIBRARY_PATH
16439   case $host_os in
16440   freebsd2.*)
16441     shlibpath_overrides_runpath=yes
16442     ;;
16443   freebsd3.[01]* | freebsdelf3.[01]*)
16444     shlibpath_overrides_runpath=yes
16445     hardcode_into_libs=yes
16446     ;;
16447   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16448   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16449     shlibpath_overrides_runpath=no
16450     hardcode_into_libs=yes
16451     ;;
16452   *) # from 4.6 on, and DragonFly
16453     shlibpath_overrides_runpath=yes
16454     hardcode_into_libs=yes
16455     ;;
16456   esac
16457   ;;
16458
16459 gnu*)
16460   version_type=linux # correct to gnu/linux during the next big refactor
16461   need_lib_prefix=no
16462   need_version=no
16463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16464   soname_spec='${libname}${release}${shared_ext}$major'
16465   shlibpath_var=LD_LIBRARY_PATH
16466   shlibpath_overrides_runpath=no
16467   hardcode_into_libs=yes
16468   ;;
16469
16470 haiku*)
16471   version_type=linux # correct to gnu/linux during the next big refactor
16472   need_lib_prefix=no
16473   need_version=no
16474   dynamic_linker="$host_os runtime_loader"
16475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16476   soname_spec='${libname}${release}${shared_ext}$major'
16477   shlibpath_var=LIBRARY_PATH
16478   shlibpath_overrides_runpath=yes
16479   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16480   hardcode_into_libs=yes
16481   ;;
16482
16483 hpux9* | hpux10* | hpux11*)
16484   # Give a soname corresponding to the major version so that dld.sl refuses to
16485   # link against other versions.
16486   version_type=sunos
16487   need_lib_prefix=no
16488   need_version=no
16489   case $host_cpu in
16490   ia64*)
16491     shrext_cmds='.so'
16492     hardcode_into_libs=yes
16493     dynamic_linker="$host_os dld.so"
16494     shlibpath_var=LD_LIBRARY_PATH
16495     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497     soname_spec='${libname}${release}${shared_ext}$major'
16498     if test "X$HPUX_IA64_MODE" = X32; then
16499       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16500     else
16501       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16502     fi
16503     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16504     ;;
16505   hppa*64*)
16506     shrext_cmds='.sl'
16507     hardcode_into_libs=yes
16508     dynamic_linker="$host_os dld.sl"
16509     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16510     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512     soname_spec='${libname}${release}${shared_ext}$major'
16513     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16514     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16515     ;;
16516   *)
16517     shrext_cmds='.sl'
16518     dynamic_linker="$host_os dld.sl"
16519     shlibpath_var=SHLIB_PATH
16520     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16521     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16522     soname_spec='${libname}${release}${shared_ext}$major'
16523     ;;
16524   esac
16525   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16526   postinstall_cmds='chmod 555 $lib'
16527   # or fails outright, so override atomically:
16528   install_override_mode=555
16529   ;;
16530
16531 interix[3-9]*)
16532   version_type=linux # correct to gnu/linux during the next big refactor
16533   need_lib_prefix=no
16534   need_version=no
16535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16536   soname_spec='${libname}${release}${shared_ext}$major'
16537   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   shlibpath_overrides_runpath=no
16540   hardcode_into_libs=yes
16541   ;;
16542
16543 irix5* | irix6* | nonstopux*)
16544   case $host_os in
16545     nonstopux*) version_type=nonstopux ;;
16546     *)
16547         if test "$lt_cv_prog_gnu_ld" = yes; then
16548                 version_type=linux # correct to gnu/linux during the next big refactor
16549         else
16550                 version_type=irix
16551         fi ;;
16552   esac
16553   need_lib_prefix=no
16554   need_version=no
16555   soname_spec='${libname}${release}${shared_ext}$major'
16556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16557   case $host_os in
16558   irix5* | nonstopux*)
16559     libsuff= shlibsuff=
16560     ;;
16561   *)
16562     case $LD in # libtool.m4 will add one of these switches to LD
16563     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16564       libsuff= shlibsuff= libmagic=32-bit;;
16565     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16566       libsuff=32 shlibsuff=N32 libmagic=N32;;
16567     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16568       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16569     *) libsuff= shlibsuff= libmagic=never-match;;
16570     esac
16571     ;;
16572   esac
16573   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16574   shlibpath_overrides_runpath=no
16575   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16576   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16577   hardcode_into_libs=yes
16578   ;;
16579
16580 # No shared lib support for Linux oldld, aout, or coff.
16581 linux*oldld* | linux*aout* | linux*coff*)
16582   dynamic_linker=no
16583   ;;
16584
16585 # This must be glibc/ELF.
16586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16587   version_type=linux # correct to gnu/linux during the next big refactor
16588   need_lib_prefix=no
16589   need_version=no
16590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591   soname_spec='${libname}${release}${shared_ext}$major'
16592   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16593   shlibpath_var=LD_LIBRARY_PATH
16594   shlibpath_overrides_runpath=no
16595
16596   # Some binutils ld are patched to set DT_RUNPATH
16597   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16598   $as_echo_n "(cached) " >&6
16599 else
16600   lt_cv_shlibpath_overrides_runpath=no
16601     save_LDFLAGS=$LDFLAGS
16602     save_libdir=$libdir
16603     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16604          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h.  */
16607
16608 int
16609 main ()
16610 {
16611
16612   ;
16613   return 0;
16614 }
16615 _ACEOF
16616 if ac_fn_cxx_try_link "$LINENO"; then :
16617   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16618   lt_cv_shlibpath_overrides_runpath=yes
16619 fi
16620 fi
16621 rm -f core conftest.err conftest.$ac_objext \
16622     conftest$ac_exeext conftest.$ac_ext
16623     LDFLAGS=$save_LDFLAGS
16624     libdir=$save_libdir
16625
16626 fi
16627
16628   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16629
16630   # This implies no fast_install, which is unacceptable.
16631   # Some rework will be needed to allow for fast_install
16632   # before this can be enabled.
16633   hardcode_into_libs=yes
16634
16635   # Append ld.so.conf contents to the search path
16636   if test -f /etc/ld.so.conf; then
16637     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' ' '`
16638     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16639   fi
16640
16641   # We used to test for /lib/ld.so.1 and disable shared libraries on
16642   # powerpc, because MkLinux only supported shared libraries with the
16643   # GNU dynamic linker.  Since this was broken with cross compilers,
16644   # most powerpc-linux boxes support dynamic linking these days and
16645   # people can always --disable-shared, the test was removed, and we
16646   # assume the GNU/Linux dynamic linker is in use.
16647   dynamic_linker='GNU/Linux ld.so'
16648   ;;
16649
16650 netbsdelf*-gnu)
16651   version_type=linux
16652   need_lib_prefix=no
16653   need_version=no
16654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16655   soname_spec='${libname}${release}${shared_ext}$major'
16656   shlibpath_var=LD_LIBRARY_PATH
16657   shlibpath_overrides_runpath=no
16658   hardcode_into_libs=yes
16659   dynamic_linker='NetBSD ld.elf_so'
16660   ;;
16661
16662 netbsd*)
16663   version_type=sunos
16664   need_lib_prefix=no
16665   need_version=no
16666   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16668     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16669     dynamic_linker='NetBSD (a.out) ld.so'
16670   else
16671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16672     soname_spec='${libname}${release}${shared_ext}$major'
16673     dynamic_linker='NetBSD ld.elf_so'
16674   fi
16675   shlibpath_var=LD_LIBRARY_PATH
16676   shlibpath_overrides_runpath=yes
16677   hardcode_into_libs=yes
16678   ;;
16679
16680 newsos6)
16681   version_type=linux # correct to gnu/linux during the next big refactor
16682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683   shlibpath_var=LD_LIBRARY_PATH
16684   shlibpath_overrides_runpath=yes
16685   ;;
16686
16687 *nto* | *qnx*)
16688   version_type=qnx
16689   need_lib_prefix=no
16690   need_version=no
16691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692   soname_spec='${libname}${release}${shared_ext}$major'
16693   shlibpath_var=LD_LIBRARY_PATH
16694   shlibpath_overrides_runpath=no
16695   hardcode_into_libs=yes
16696   dynamic_linker='ldqnx.so'
16697   ;;
16698
16699 openbsd*)
16700   version_type=sunos
16701   sys_lib_dlsearch_path_spec="/usr/lib"
16702   need_lib_prefix=no
16703   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16704   case $host_os in
16705     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16706     *)                          need_version=no  ;;
16707   esac
16708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16709   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16710   shlibpath_var=LD_LIBRARY_PATH
16711   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16712     case $host_os in
16713       openbsd2.[89] | openbsd2.[89].*)
16714         shlibpath_overrides_runpath=no
16715         ;;
16716       *)
16717         shlibpath_overrides_runpath=yes
16718         ;;
16719       esac
16720   else
16721     shlibpath_overrides_runpath=yes
16722   fi
16723   ;;
16724
16725 os2*)
16726   libname_spec='$name'
16727   shrext_cmds=".dll"
16728   need_lib_prefix=no
16729   library_names_spec='$libname${shared_ext} $libname.a'
16730   dynamic_linker='OS/2 ld.exe'
16731   shlibpath_var=LIBPATH
16732   ;;
16733
16734 osf3* | osf4* | osf5*)
16735   version_type=osf
16736   need_lib_prefix=no
16737   need_version=no
16738   soname_spec='${libname}${release}${shared_ext}$major'
16739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740   shlibpath_var=LD_LIBRARY_PATH
16741   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16742   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16743   ;;
16744
16745 rdos*)
16746   dynamic_linker=no
16747   ;;
16748
16749 solaris*)
16750   version_type=linux # correct to gnu/linux during the next big refactor
16751   need_lib_prefix=no
16752   need_version=no
16753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754   soname_spec='${libname}${release}${shared_ext}$major'
16755   shlibpath_var=LD_LIBRARY_PATH
16756   shlibpath_overrides_runpath=yes
16757   hardcode_into_libs=yes
16758   # ldd complains unless libraries are executable
16759   postinstall_cmds='chmod +x $lib'
16760   ;;
16761
16762 sunos4*)
16763   version_type=sunos
16764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16765   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16766   shlibpath_var=LD_LIBRARY_PATH
16767   shlibpath_overrides_runpath=yes
16768   if test "$with_gnu_ld" = yes; then
16769     need_lib_prefix=no
16770   fi
16771   need_version=yes
16772   ;;
16773
16774 sysv4 | sysv4.3*)
16775   version_type=linux # correct to gnu/linux during the next big refactor
16776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777   soname_spec='${libname}${release}${shared_ext}$major'
16778   shlibpath_var=LD_LIBRARY_PATH
16779   case $host_vendor in
16780     sni)
16781       shlibpath_overrides_runpath=no
16782       need_lib_prefix=no
16783       runpath_var=LD_RUN_PATH
16784       ;;
16785     siemens)
16786       need_lib_prefix=no
16787       ;;
16788     motorola)
16789       need_lib_prefix=no
16790       need_version=no
16791       shlibpath_overrides_runpath=no
16792       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16793       ;;
16794   esac
16795   ;;
16796
16797 sysv4*MP*)
16798   if test -d /usr/nec ;then
16799     version_type=linux # correct to gnu/linux during the next big refactor
16800     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16801     soname_spec='$libname${shared_ext}.$major'
16802     shlibpath_var=LD_LIBRARY_PATH
16803   fi
16804   ;;
16805
16806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16807   version_type=freebsd-elf
16808   need_lib_prefix=no
16809   need_version=no
16810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16811   soname_spec='${libname}${release}${shared_ext}$major'
16812   shlibpath_var=LD_LIBRARY_PATH
16813   shlibpath_overrides_runpath=yes
16814   hardcode_into_libs=yes
16815   if test "$with_gnu_ld" = yes; then
16816     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16817   else
16818     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16819     case $host_os in
16820       sco3.2v5*)
16821         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16822         ;;
16823     esac
16824   fi
16825   sys_lib_dlsearch_path_spec='/usr/lib'
16826   ;;
16827
16828 tpf*)
16829   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16830   version_type=linux # correct to gnu/linux during the next big refactor
16831   need_lib_prefix=no
16832   need_version=no
16833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834   shlibpath_var=LD_LIBRARY_PATH
16835   shlibpath_overrides_runpath=no
16836   hardcode_into_libs=yes
16837   ;;
16838
16839 uts4*)
16840   version_type=linux # correct to gnu/linux during the next big refactor
16841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842   soname_spec='${libname}${release}${shared_ext}$major'
16843   shlibpath_var=LD_LIBRARY_PATH
16844   ;;
16845
16846 *)
16847   dynamic_linker=no
16848   ;;
16849 esac
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16851 $as_echo "$dynamic_linker" >&6; }
16852 test "$dynamic_linker" = no && can_build_shared=no
16853
16854 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16855 if test "$GCC" = yes; then
16856   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16857 fi
16858
16859 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16860   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16861 fi
16862 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16863   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16864 fi
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16904 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16905 hardcode_action_CXX=
16906 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16907    test -n "$runpath_var_CXX" ||
16908    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16909
16910   # We can hardcode non-existent directories.
16911   if test "$hardcode_direct_CXX" != no &&
16912      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16913      # have to relink, otherwise we might link with an installed library
16914      # when we should be linking with a yet-to-be-installed one
16915      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16916      test "$hardcode_minus_L_CXX" != no; then
16917     # Linking always hardcodes the temporary library directory.
16918     hardcode_action_CXX=relink
16919   else
16920     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16921     hardcode_action_CXX=immediate
16922   fi
16923 else
16924   # We cannot hardcode anything, or else we can only hardcode existing
16925   # directories.
16926   hardcode_action_CXX=unsupported
16927 fi
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16929 $as_echo "$hardcode_action_CXX" >&6; }
16930
16931 if test "$hardcode_action_CXX" = relink ||
16932    test "$inherit_rpath_CXX" = yes; then
16933   # Fast installation is not supported
16934   enable_fast_install=no
16935 elif test "$shlibpath_overrides_runpath" = yes ||
16936      test "$enable_shared" = no; then
16937   # Fast installation is not necessary
16938   enable_fast_install=needless
16939 fi
16940
16941
16942
16943
16944
16945
16946
16947   fi # test -n "$compiler"
16948
16949   CC=$lt_save_CC
16950   CFLAGS=$lt_save_CFLAGS
16951   LDCXX=$LD
16952   LD=$lt_save_LD
16953   GCC=$lt_save_GCC
16954   with_gnu_ld=$lt_save_with_gnu_ld
16955   lt_cv_path_LDCXX=$lt_cv_path_LD
16956   lt_cv_path_LD=$lt_save_path_LD
16957   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16958   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16959 fi # test "$_lt_caught_CXX_error" != yes
16960
16961 ac_ext=c
16962 ac_cpp='$CPP $CPPFLAGS'
16963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981         ac_config_commands="$ac_config_commands libtool"
16982
16983
16984
16985
16986 # Only expand once:
16987
16988
16989 if test -n "$ac_tool_prefix"; then
16990   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16991 set dummy ${ac_tool_prefix}windres; ac_word=$2
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16993 $as_echo_n "checking for $ac_word... " >&6; }
16994 if ${ac_cv_prog_RC+:} false; then :
16995   $as_echo_n "(cached) " >&6
16996 else
16997   if test -n "$RC"; then
16998   ac_cv_prog_RC="$RC" # Let the user override the test.
16999 else
17000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17001 for as_dir in $PATH
17002 do
17003   IFS=$as_save_IFS
17004   test -z "$as_dir" && as_dir=.
17005     for ac_exec_ext in '' $ac_executable_extensions; do
17006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17007     ac_cv_prog_RC="${ac_tool_prefix}windres"
17008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17009     break 2
17010   fi
17011 done
17012   done
17013 IFS=$as_save_IFS
17014
17015 fi
17016 fi
17017 RC=$ac_cv_prog_RC
17018 if test -n "$RC"; then
17019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17020 $as_echo "$RC" >&6; }
17021 else
17022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17023 $as_echo "no" >&6; }
17024 fi
17025
17026
17027 fi
17028 if test -z "$ac_cv_prog_RC"; then
17029   ac_ct_RC=$RC
17030   # Extract the first word of "windres", so it can be a program name with args.
17031 set dummy windres; ac_word=$2
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17033 $as_echo_n "checking for $ac_word... " >&6; }
17034 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17035   $as_echo_n "(cached) " >&6
17036 else
17037   if test -n "$ac_ct_RC"; then
17038   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17039 else
17040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17041 for as_dir in $PATH
17042 do
17043   IFS=$as_save_IFS
17044   test -z "$as_dir" && as_dir=.
17045     for ac_exec_ext in '' $ac_executable_extensions; do
17046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17047     ac_cv_prog_ac_ct_RC="windres"
17048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17049     break 2
17050   fi
17051 done
17052   done
17053 IFS=$as_save_IFS
17054
17055 fi
17056 fi
17057 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17058 if test -n "$ac_ct_RC"; then
17059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17060 $as_echo "$ac_ct_RC" >&6; }
17061 else
17062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17064 fi
17065
17066   if test "x$ac_ct_RC" = x; then
17067     RC=""
17068   else
17069     case $cross_compiling:$ac_tool_warned in
17070 yes:)
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17073 ac_tool_warned=yes ;;
17074 esac
17075     RC=$ac_ct_RC
17076   fi
17077 else
17078   RC="$ac_cv_prog_RC"
17079 fi
17080
17081
17082
17083
17084 # Source file extension for RC test sources.
17085 ac_ext=rc
17086
17087 # Object file extension for compiled RC test sources.
17088 objext=o
17089 objext_RC=$objext
17090
17091 # Code to be used in simple compile tests
17092 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17093
17094 # Code to be used in simple link tests
17095 lt_simple_link_test_code="$lt_simple_compile_test_code"
17096
17097 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17098
17099
17100
17101
17102
17103
17104 # If no C compiler was specified, use CC.
17105 LTCC=${LTCC-"$CC"}
17106
17107 # If no C compiler flags were specified, use CFLAGS.
17108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17109
17110 # Allow CC to be a program name with arguments.
17111 compiler=$CC
17112
17113
17114 # save warnings/boilerplate of simple test code
17115 ac_outfile=conftest.$ac_objext
17116 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17117 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17118 _lt_compiler_boilerplate=`cat conftest.err`
17119 $RM conftest*
17120
17121 ac_outfile=conftest.$ac_objext
17122 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17123 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17124 _lt_linker_boilerplate=`cat conftest.err`
17125 $RM -r conftest*
17126
17127
17128 # Allow CC to be a program name with arguments.
17129 lt_save_CC="$CC"
17130 lt_save_CFLAGS=$CFLAGS
17131 lt_save_GCC=$GCC
17132 GCC=
17133 CC=${RC-"windres"}
17134 CFLAGS=
17135 compiler=$CC
17136 compiler_RC=$CC
17137 for cc_temp in $compiler""; do
17138   case $cc_temp in
17139     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17140     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17141     \-*) ;;
17142     *) break;;
17143   esac
17144 done
17145 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17146
17147 lt_cv_prog_compiler_c_o_RC=yes
17148
17149 if test -n "$compiler"; then
17150   :
17151
17152
17153
17154 fi
17155
17156 GCC=$lt_save_GCC
17157 ac_ext=c
17158 ac_cpp='$CPP $CPPFLAGS'
17159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17162
17163 CC=$lt_save_CC
17164 CFLAGS=$lt_save_CFLAGS
17165
17166
17167 # For now we hardcode the use of version scripts.  It would be better
17168 # to write a test for this or even implement this within libtool.
17169 have_ld_version_script=no
17170 case "${host}" in
17171     *-*-linux*)
17172         have_ld_version_script=yes
17173         ;;
17174     *-*-gnu*)
17175         have_ld_version_script=yes
17176         ;;
17177     *-apple-darwin*)
17178
17179 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17180
17181         ;;
17182 esac
17183
17184  if test "$have_ld_version_script" = "yes"; then
17185   HAVE_LD_VERSION_SCRIPT_TRUE=
17186   HAVE_LD_VERSION_SCRIPT_FALSE='#'
17187 else
17188   HAVE_LD_VERSION_SCRIPT_TRUE='#'
17189   HAVE_LD_VERSION_SCRIPT_FALSE=
17190 fi
17191
17192
17193 GPG_DEFAULT=no
17194 GPGSM_DEFAULT=no
17195 GPGCONF_DEFAULT=no
17196 G13_DEFAULT=no
17197 component_system=None
17198 have_dosish_system=no
17199 have_android_system=no
17200 have_w32_system=no
17201 have_w64_system=no
17202 build_w32_glib=no
17203 build_w32_qt=no
17204 available_languages="cl cpp python python2 python3 qt"
17205 default_languages="cl cpp python qt"
17206 case "${host}" in
17207     x86_64-*mingw32*)
17208         have_w64_system=yes
17209         ;;
17210     *-mingw32ce*)
17211         have_w32ce_system=yes
17212         ;;
17213     *-linux-androideabi)
17214         have_android_system=yes
17215         ;;
17216 esac
17217 case "${host}" in
17218     *-mingw32ce*|*-mingw32*)
17219         have_dosish_system=yes
17220         have_w32_system=yes
17221         GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17222         GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17223         GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17224         G13_DEFAULT='c:\\gnupg\\g13.exe'
17225         #component_system='COM+'
17226
17227         # Check whether --enable-glibtest was given.
17228 if test "${enable_glibtest+set}" = set; then :
17229   enableval=$enable_glibtest;
17230 else
17231   enable_glibtest=yes
17232 fi
17233
17234
17235   pkg_config_args=glib-2.0
17236   for module in .
17237   do
17238       case "$module" in
17239          gmodule)
17240              pkg_config_args="$pkg_config_args gmodule-2.0"
17241          ;;
17242          gmodule-no-export)
17243              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17244          ;;
17245          gobject)
17246              pkg_config_args="$pkg_config_args gobject-2.0"
17247          ;;
17248          gthread)
17249              pkg_config_args="$pkg_config_args gthread-2.0"
17250          ;;
17251       esac
17252   done
17253
17254   # Extract the first word of "pkg-config", so it can be a program name with args.
17255 set dummy pkg-config; ac_word=$2
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17257 $as_echo_n "checking for $ac_word... " >&6; }
17258 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17259   $as_echo_n "(cached) " >&6
17260 else
17261   case $PKG_CONFIG in
17262   [\\/]* | ?:[\\/]*)
17263   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17264   ;;
17265   *)
17266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17267 for as_dir in $PATH
17268 do
17269   IFS=$as_save_IFS
17270   test -z "$as_dir" && as_dir=.
17271     for ac_exec_ext in '' $ac_executable_extensions; do
17272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17273     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17275     break 2
17276   fi
17277 done
17278   done
17279 IFS=$as_save_IFS
17280
17281   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17282   ;;
17283 esac
17284 fi
17285 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17286 if test -n "$PKG_CONFIG"; then
17287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17288 $as_echo "$PKG_CONFIG" >&6; }
17289 else
17290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291 $as_echo "no" >&6; }
17292 fi
17293
17294
17295
17296   no_glib=""
17297
17298   if test x$PKG_CONFIG != xno ; then
17299     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17300       :
17301     else
17302       echo *** pkg-config too old; version 0.7 or better required.
17303       no_glib=yes
17304       PKG_CONFIG=no
17305     fi
17306   else
17307     no_glib=yes
17308   fi
17309
17310   min_glib_version=2.0.0
17311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17312 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17313
17314   if test x$PKG_CONFIG != xno ; then
17315     ## don't try to run the test against uninstalled libtool libs
17316     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17317           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17318           enable_glibtest=no
17319     fi
17320
17321     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17322           :
17323     else
17324           no_glib=yes
17325     fi
17326   fi
17327
17328   if test x"$no_glib" = x ; then
17329     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17330     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17331     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17332
17333     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17334     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17335     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17336            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17337     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17338            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17339     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17340            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17341     if test "x$enable_glibtest" = "xyes" ; then
17342       ac_save_CFLAGS="$CFLAGS"
17343       ac_save_LIBS="$LIBS"
17344       CFLAGS="$CFLAGS $GLIB_CFLAGS"
17345       LIBS="$GLIB_LIBS $LIBS"
17346       rm -f conf.glibtest
17347       if test "$cross_compiling" = yes; then :
17348   echo $ac_n "cross compiling; assumed OK... $ac_c"
17349 else
17350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h.  */
17352
17353 #include <glib.h>
17354 #include <stdio.h>
17355 #include <stdlib.h>
17356
17357 int
17358 main ()
17359 {
17360   int major, minor, micro;
17361   char *tmp_version;
17362
17363   system ("touch conf.glibtest");
17364
17365   /* HP/UX 9 (%@#!) writes to sscanf strings */
17366   tmp_version = g_strdup("$min_glib_version");
17367   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17368      printf("%s, bad version string\n", "$min_glib_version");
17369      exit(1);
17370    }
17371
17372   if ((glib_major_version != $glib_config_major_version) ||
17373       (glib_minor_version != $glib_config_minor_version) ||
17374       (glib_micro_version != $glib_config_micro_version))
17375     {
17376       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17377              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17378              glib_major_version, glib_minor_version, glib_micro_version);
17379       printf ("*** was found! If pkg-config was correct, then it is best\n");
17380       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17381       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17382       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17383       printf("*** required on your system.\n");
17384       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17385       printf("*** to point to the correct configuration files\n");
17386     }
17387   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17388            (glib_minor_version != GLIB_MINOR_VERSION) ||
17389            (glib_micro_version != GLIB_MICRO_VERSION))
17390     {
17391       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17392              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17393       printf("*** library (version %d.%d.%d)\n",
17394              glib_major_version, glib_minor_version, glib_micro_version);
17395     }
17396   else
17397     {
17398       if ((glib_major_version > major) ||
17399         ((glib_major_version == major) && (glib_minor_version > minor)) ||
17400         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17401       {
17402         return 0;
17403        }
17404      else
17405       {
17406         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17407                glib_major_version, glib_minor_version, glib_micro_version);
17408         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17409                major, minor, micro);
17410         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17411         printf("***\n");
17412         printf("*** If you have already installed a sufficiently new version, this error\n");
17413         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17414         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17415         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17416         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17417         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17418         printf("*** so that the correct libraries are found at run-time))\n");
17419       }
17420     }
17421   return 1;
17422 }
17423
17424 _ACEOF
17425 if ac_fn_c_try_run "$LINENO"; then :
17426
17427 else
17428   no_glib=yes
17429 fi
17430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17431   conftest.$ac_objext conftest.beam conftest.$ac_ext
17432 fi
17433
17434        CFLAGS="$ac_save_CFLAGS"
17435        LIBS="$ac_save_LIBS"
17436      fi
17437   fi
17438   if test "x$no_glib" = x ; then
17439      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17440 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17441      :
17442   else
17443      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17444 $as_echo "no" >&6; }
17445      if test "$PKG_CONFIG" = "no" ; then
17446        echo "*** A new enough version of pkg-config was not found."
17447        echo "*** See https://www.freedesktop.org/software/pkgconfig/"
17448      else
17449        if test -f conf.glibtest ; then
17450         :
17451        else
17452           echo "*** Could not run GLIB test program, checking why..."
17453           ac_save_CFLAGS="$CFLAGS"
17454           ac_save_LIBS="$LIBS"
17455           CFLAGS="$CFLAGS $GLIB_CFLAGS"
17456           LIBS="$LIBS $GLIB_LIBS"
17457           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h.  */
17459
17460 #include <glib.h>
17461 #include <stdio.h>
17462
17463 int
17464 main ()
17465 {
17466  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17467   ;
17468   return 0;
17469 }
17470 _ACEOF
17471 if ac_fn_c_try_link "$LINENO"; then :
17472    echo "*** The test program compiled, but did not run. This usually means"
17473           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17474           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17475           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17476           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17477           echo "*** is required on your system"
17478           echo "***"
17479           echo "*** If you have an old version installed, it is best to remove it, although"
17480           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17481 else
17482    echo "*** The test program failed to compile or link. See the file config.log for the"
17483           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17484 fi
17485 rm -f core conftest.err conftest.$ac_objext \
17486     conftest$ac_exeext conftest.$ac_ext
17487           CFLAGS="$ac_save_CFLAGS"
17488           LIBS="$ac_save_LIBS"
17489        fi
17490      fi
17491      GLIB_CFLAGS=""
17492      GLIB_LIBS=""
17493      GLIB_GENMARSHAL=""
17494      GOBJECT_QUERY=""
17495      GLIB_MKENUMS=""
17496      :
17497   fi
17498
17499
17500
17501
17502
17503   rm -f conf.glibtest
17504
17505         # Check whether --enable-w32-glib was given.
17506 if test "${enable_w32_glib+set}" = set; then :
17507   enableval=$enable_w32_glib; build_w32_glib=$enableval
17508 fi
17509
17510        ;;
17511     *)
17512
17513         # XXX: Probably use exec-prefix here?
17514 #       GPG_DEFAULT='/usr/bin/gpg'
17515 #       GPGSM_DEFAULT='/usr/bin/gpgsm'
17516 #       GPGCONF_DEFAULT='/usr/bin/gpgconf'
17517 #       G13_DEFAULT='/usr/bin/g13'
17518         ;;
17519 esac
17520
17521 if test "$have_dosish_system" = yes; then
17522
17523 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17524
17525 fi
17526  if test "$have_dosish_system" = yes; then
17527   HAVE_DOSISH_SYSTEM_TRUE=
17528   HAVE_DOSISH_SYSTEM_FALSE='#'
17529 else
17530   HAVE_DOSISH_SYSTEM_TRUE='#'
17531   HAVE_DOSISH_SYSTEM_FALSE=
17532 fi
17533
17534
17535 if test "$have_w32_system" = yes; then
17536
17537 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17538
17539 fi
17540  if test "$have_w32_system" = yes; then
17541   HAVE_W32_SYSTEM_TRUE=
17542   HAVE_W32_SYSTEM_FALSE='#'
17543 else
17544   HAVE_W32_SYSTEM_TRUE='#'
17545   HAVE_W32_SYSTEM_FALSE=
17546 fi
17547
17548
17549 if test "$have_w64_system" = yes; then
17550
17551 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17552
17553 fi
17554  if test "$have_w64_system" = yes; then
17555   HAVE_W64_SYSTEM_TRUE=
17556   HAVE_W64_SYSTEM_FALSE='#'
17557 else
17558   HAVE_W64_SYSTEM_TRUE='#'
17559   HAVE_W64_SYSTEM_FALSE=
17560 fi
17561
17562
17563 if test "$have_w32ce_system" = yes; then
17564
17565 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
17566
17567 fi
17568  if test "$have_w32ce_system" = yes; then
17569   HAVE_W32CE_SYSTEM_TRUE=
17570   HAVE_W32CE_SYSTEM_FALSE='#'
17571 else
17572   HAVE_W32CE_SYSTEM_TRUE='#'
17573   HAVE_W32CE_SYSTEM_FALSE=
17574 fi
17575
17576
17577 if test "$have_android_system" = yes; then
17578
17579 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17580
17581 fi
17582  if test "$have_android_system" = yes; then
17583   HAVE_ANDROID_SYSTEM_TRUE=
17584   HAVE_ANDROID_SYSTEM_FALSE='#'
17585 else
17586   HAVE_ANDROID_SYSTEM_TRUE='#'
17587   HAVE_ANDROID_SYSTEM_FALSE=
17588 fi
17589
17590
17591  if test "$build_w32_glib" = yes; then
17592   BUILD_W32_GLIB_TRUE=
17593   BUILD_W32_GLIB_FALSE='#'
17594 else
17595   BUILD_W32_GLIB_TRUE='#'
17596   BUILD_W32_GLIB_FALSE=
17597 fi
17598
17599
17600
17601 # Check whether --enable-fixed-path was given.
17602 if test "${enable_fixed_path+set}" = set; then :
17603   enableval=$enable_fixed_path; fixed_search_path="$enableval"
17604 else
17605   fixed_search_path=""
17606 fi
17607
17608 if test x$fixed_search_path != x ; then
17609
17610 cat >>confdefs.h <<_ACEOF
17611 #define FIXED_SEARCH_PATH "$fixed_search_path"
17612 _ACEOF
17613
17614 fi
17615
17616
17617 # Note: You need to declare all possible langauges also in
17618 #       lang/Makefile.am's DIST_SUBDIRS.
17619 # Check whether --enable-languages was given.
17620 if test "${enable_languages+set}" = set; then :
17621   enableval=$enable_languages; enabled_languages=`echo $enableval | \
17622                              tr ',:' '  ' | tr 'A-Z' 'a-z' | \
17623                              sed 's/c++/cpp/'`
17624 else
17625   enabled_languages="maybe"
17626 fi
17627
17628 if test "x$enabled_languages" = "x" \
17629    -o "$enabled_languages" = "no"; then
17630    enabled_languages=
17631 fi
17632
17633 # If languages are explicitly set missing requirements
17634 # for the languages are treated as errors otherwise
17635 # there will be a warning.
17636 explicit_languages=1
17637 if test "x$enabled_languages" = "xmaybe"; then
17638     explicit_languages=0
17639     enabled_languages="$default_languages"
17640 fi
17641
17642 for language in $enabled_languages; do
17643
17644 name=$language
17645 list=$available_languages
17646 found=0
17647
17648 for n in $list; do
17649   if test "x$name" = "x$n"; then
17650     found=1
17651   fi
17652 done
17653
17654     if test "$found" = "0"; then
17655        as_fn_error $? "unsupported language binding specified" "$LINENO" 5
17656     fi
17657 done
17658
17659
17660
17661 # Enable C++ 11 if cpp language is requested
17662
17663 name="cpp"
17664 list=$enabled_languages
17665 found=0
17666
17667 for n in $list; do
17668   if test "x$name" = "x$n"; then
17669     found=1
17670   fi
17671 done
17672
17673 if test "$found" = "1"; then
17674           ax_cxx_compile_cxx11_required=false
17675   ac_ext=cpp
17676 ac_cpp='$CXXCPP $CPPFLAGS'
17677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17680   ac_success=no
17681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17682 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17683 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17684   $as_echo_n "(cached) " >&6
17685 else
17686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687 /* end confdefs.h.  */
17688
17689
17690 // If the compiler admits that it is not ready for C++11, why torture it?
17691 // Hopefully, this will speed up the test.
17692
17693 #ifndef __cplusplus
17694
17695 #error "This is not a C++ compiler"
17696
17697 #elif __cplusplus < 201103L
17698
17699 #error "This is not a C++11 compiler"
17700
17701 #else
17702
17703 namespace cxx11
17704 {
17705
17706   namespace test_static_assert
17707   {
17708
17709     template <typename T>
17710     struct check
17711     {
17712       static_assert(sizeof(int) <= sizeof(T), "not big enough");
17713     };
17714
17715   }
17716
17717   namespace test_final_override
17718   {
17719
17720     struct Base
17721     {
17722       virtual void f() {}
17723     };
17724
17725     struct Derived : public Base
17726     {
17727       virtual void f() override {}
17728     };
17729
17730   }
17731
17732   namespace test_double_right_angle_brackets
17733   {
17734
17735     template < typename T >
17736     struct check {};
17737
17738     typedef check<void> single_type;
17739     typedef check<check<void>> double_type;
17740     typedef check<check<check<void>>> triple_type;
17741     typedef check<check<check<check<void>>>> quadruple_type;
17742
17743   }
17744
17745   namespace test_decltype
17746   {
17747
17748     int
17749     f()
17750     {
17751       int a = 1;
17752       decltype(a) b = 2;
17753       return a + b;
17754     }
17755
17756   }
17757
17758   namespace test_type_deduction
17759   {
17760
17761     template < typename T1, typename T2 >
17762     struct is_same
17763     {
17764       static const bool value = false;
17765     };
17766
17767     template < typename T >
17768     struct is_same<T, T>
17769     {
17770       static const bool value = true;
17771     };
17772
17773     template < typename T1, typename T2 >
17774     auto
17775     add(T1 a1, T2 a2) -> decltype(a1 + a2)
17776     {
17777       return a1 + a2;
17778     }
17779
17780     int
17781     test(const int c, volatile int v)
17782     {
17783       static_assert(is_same<int, decltype(0)>::value == true, "");
17784       static_assert(is_same<int, decltype(c)>::value == false, "");
17785       static_assert(is_same<int, decltype(v)>::value == false, "");
17786       auto ac = c;
17787       auto av = v;
17788       auto sumi = ac + av + 'x';
17789       auto sumf = ac + av + 1.0;
17790       static_assert(is_same<int, decltype(ac)>::value == true, "");
17791       static_assert(is_same<int, decltype(av)>::value == true, "");
17792       static_assert(is_same<int, decltype(sumi)>::value == true, "");
17793       static_assert(is_same<int, decltype(sumf)>::value == false, "");
17794       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17795       return (sumf > 0.0) ? sumi : add(c, v);
17796     }
17797
17798   }
17799
17800   namespace test_noexcept
17801   {
17802
17803     int f() { return 0; }
17804     int g() noexcept { return 0; }
17805
17806     static_assert(noexcept(f()) == false, "");
17807     static_assert(noexcept(g()) == true, "");
17808
17809   }
17810
17811   namespace test_constexpr
17812   {
17813
17814     template < typename CharT >
17815     unsigned long constexpr
17816     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17817     {
17818       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17819     }
17820
17821     template < typename CharT >
17822     unsigned long constexpr
17823     strlen_c(const CharT *const s) noexcept
17824     {
17825       return strlen_c_r(s, 0UL);
17826     }
17827
17828     static_assert(strlen_c("") == 0UL, "");
17829     static_assert(strlen_c("1") == 1UL, "");
17830     static_assert(strlen_c("example") == 7UL, "");
17831     static_assert(strlen_c("another\0example") == 7UL, "");
17832
17833   }
17834
17835   namespace test_rvalue_references
17836   {
17837
17838     template < int N >
17839     struct answer
17840     {
17841       static constexpr int value = N;
17842     };
17843
17844     answer<1> f(int&)       { return answer<1>(); }
17845     answer<2> f(const int&) { return answer<2>(); }
17846     answer<3> f(int&&)      { return answer<3>(); }
17847
17848     void
17849     test()
17850     {
17851       int i = 0;
17852       const int c = 0;
17853       static_assert(decltype(f(i))::value == 1, "");
17854       static_assert(decltype(f(c))::value == 2, "");
17855       static_assert(decltype(f(0))::value == 3, "");
17856     }
17857
17858   }
17859
17860   namespace test_uniform_initialization
17861   {
17862
17863     struct test
17864     {
17865       static const int zero {};
17866       static const int one {1};
17867     };
17868
17869     static_assert(test::zero == 0, "");
17870     static_assert(test::one == 1, "");
17871
17872   }
17873
17874   namespace test_lambdas
17875   {
17876
17877     void
17878     test1()
17879     {
17880       auto lambda1 = [](){};
17881       auto lambda2 = lambda1;
17882       lambda1();
17883       lambda2();
17884     }
17885
17886     int
17887     test2()
17888     {
17889       auto a = [](int i, int j){ return i + j; }(1, 2);
17890       auto b = []() -> int { return '0'; }();
17891       auto c = [=](){ return a + b; }();
17892       auto d = [&](){ return c; }();
17893       auto e = [a, &b](int x) mutable {
17894         const auto identity = [](int y){ return y; };
17895         for (auto i = 0; i < a; ++i)
17896           a += b--;
17897         return x + identity(a + b);
17898       }(0);
17899       return a + b + c + d + e;
17900     }
17901
17902     int
17903     test3()
17904     {
17905       const auto nullary = [](){ return 0; };
17906       const auto unary = [](int x){ return x; };
17907       using nullary_t = decltype(nullary);
17908       using unary_t = decltype(unary);
17909       const auto higher1st = [](nullary_t f){ return f(); };
17910       const auto higher2nd = [unary](nullary_t f1){
17911         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17912       };
17913       return higher1st(nullary) + higher2nd(nullary)(unary);
17914     }
17915
17916   }
17917
17918   namespace test_variadic_templates
17919   {
17920
17921     template <int...>
17922     struct sum;
17923
17924     template <int N0, int... N1toN>
17925     struct sum<N0, N1toN...>
17926     {
17927       static constexpr auto value = N0 + sum<N1toN...>::value;
17928     };
17929
17930     template <>
17931     struct sum<>
17932     {
17933       static constexpr auto value = 0;
17934     };
17935
17936     static_assert(sum<>::value == 0, "");
17937     static_assert(sum<1>::value == 1, "");
17938     static_assert(sum<23>::value == 23, "");
17939     static_assert(sum<1, 2>::value == 3, "");
17940     static_assert(sum<5, 5, 11>::value == 21, "");
17941     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17942
17943   }
17944
17945   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17946   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17947   // because of this.
17948   namespace test_template_alias_sfinae
17949   {
17950
17951     struct foo {};
17952
17953     template<typename T>
17954     using member = typename T::member_type;
17955
17956     template<typename T>
17957     void func(...) {}
17958
17959     template<typename T>
17960     void func(member<T>*) {}
17961
17962     void test();
17963
17964     void test() { func<foo>(0); }
17965
17966   }
17967
17968 }  // namespace cxx11
17969
17970 #endif  // __cplusplus >= 201103L
17971
17972
17973
17974 _ACEOF
17975 if ac_fn_cxx_try_compile "$LINENO"; then :
17976   ax_cv_cxx_compile_cxx11=yes
17977 else
17978   ax_cv_cxx_compile_cxx11=no
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17981 fi
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
17983 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
17984   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
17985     ac_success=yes
17986   fi
17987
17988
17989
17990     if test x$ac_success = xno; then
17991                 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
17992       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17993       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17994 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17995 if eval \${$cachevar+:} false; then :
17996   $as_echo_n "(cached) " >&6
17997 else
17998   ac_save_CXX="$CXX"
17999          CXX="$CXX $switch"
18000          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h.  */
18002
18003
18004 // If the compiler admits that it is not ready for C++11, why torture it?
18005 // Hopefully, this will speed up the test.
18006
18007 #ifndef __cplusplus
18008
18009 #error "This is not a C++ compiler"
18010
18011 #elif __cplusplus < 201103L
18012
18013 #error "This is not a C++11 compiler"
18014
18015 #else
18016
18017 namespace cxx11
18018 {
18019
18020   namespace test_static_assert
18021   {
18022
18023     template <typename T>
18024     struct check
18025     {
18026       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18027     };
18028
18029   }
18030
18031   namespace test_final_override
18032   {
18033
18034     struct Base
18035     {
18036       virtual void f() {}
18037     };
18038
18039     struct Derived : public Base
18040     {
18041       virtual void f() override {}
18042     };
18043
18044   }
18045
18046   namespace test_double_right_angle_brackets
18047   {
18048
18049     template < typename T >
18050     struct check {};
18051
18052     typedef check<void> single_type;
18053     typedef check<check<void>> double_type;
18054     typedef check<check<check<void>>> triple_type;
18055     typedef check<check<check<check<void>>>> quadruple_type;
18056
18057   }
18058
18059   namespace test_decltype
18060   {
18061
18062     int
18063     f()
18064     {
18065       int a = 1;
18066       decltype(a) b = 2;
18067       return a + b;
18068     }
18069
18070   }
18071
18072   namespace test_type_deduction
18073   {
18074
18075     template < typename T1, typename T2 >
18076     struct is_same
18077     {
18078       static const bool value = false;
18079     };
18080
18081     template < typename T >
18082     struct is_same<T, T>
18083     {
18084       static const bool value = true;
18085     };
18086
18087     template < typename T1, typename T2 >
18088     auto
18089     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18090     {
18091       return a1 + a2;
18092     }
18093
18094     int
18095     test(const int c, volatile int v)
18096     {
18097       static_assert(is_same<int, decltype(0)>::value == true, "");
18098       static_assert(is_same<int, decltype(c)>::value == false, "");
18099       static_assert(is_same<int, decltype(v)>::value == false, "");
18100       auto ac = c;
18101       auto av = v;
18102       auto sumi = ac + av + 'x';
18103       auto sumf = ac + av + 1.0;
18104       static_assert(is_same<int, decltype(ac)>::value == true, "");
18105       static_assert(is_same<int, decltype(av)>::value == true, "");
18106       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18107       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18108       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18109       return (sumf > 0.0) ? sumi : add(c, v);
18110     }
18111
18112   }
18113
18114   namespace test_noexcept
18115   {
18116
18117     int f() { return 0; }
18118     int g() noexcept { return 0; }
18119
18120     static_assert(noexcept(f()) == false, "");
18121     static_assert(noexcept(g()) == true, "");
18122
18123   }
18124
18125   namespace test_constexpr
18126   {
18127
18128     template < typename CharT >
18129     unsigned long constexpr
18130     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18131     {
18132       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18133     }
18134
18135     template < typename CharT >
18136     unsigned long constexpr
18137     strlen_c(const CharT *const s) noexcept
18138     {
18139       return strlen_c_r(s, 0UL);
18140     }
18141
18142     static_assert(strlen_c("") == 0UL, "");
18143     static_assert(strlen_c("1") == 1UL, "");
18144     static_assert(strlen_c("example") == 7UL, "");
18145     static_assert(strlen_c("another\0example") == 7UL, "");
18146
18147   }
18148
18149   namespace test_rvalue_references
18150   {
18151
18152     template < int N >
18153     struct answer
18154     {
18155       static constexpr int value = N;
18156     };
18157
18158     answer<1> f(int&)       { return answer<1>(); }
18159     answer<2> f(const int&) { return answer<2>(); }
18160     answer<3> f(int&&)      { return answer<3>(); }
18161
18162     void
18163     test()
18164     {
18165       int i = 0;
18166       const int c = 0;
18167       static_assert(decltype(f(i))::value == 1, "");
18168       static_assert(decltype(f(c))::value == 2, "");
18169       static_assert(decltype(f(0))::value == 3, "");
18170     }
18171
18172   }
18173
18174   namespace test_uniform_initialization
18175   {
18176
18177     struct test
18178     {
18179       static const int zero {};
18180       static const int one {1};
18181     };
18182
18183     static_assert(test::zero == 0, "");
18184     static_assert(test::one == 1, "");
18185
18186   }
18187
18188   namespace test_lambdas
18189   {
18190
18191     void
18192     test1()
18193     {
18194       auto lambda1 = [](){};
18195       auto lambda2 = lambda1;
18196       lambda1();
18197       lambda2();
18198     }
18199
18200     int
18201     test2()
18202     {
18203       auto a = [](int i, int j){ return i + j; }(1, 2);
18204       auto b = []() -> int { return '0'; }();
18205       auto c = [=](){ return a + b; }();
18206       auto d = [&](){ return c; }();
18207       auto e = [a, &b](int x) mutable {
18208         const auto identity = [](int y){ return y; };
18209         for (auto i = 0; i < a; ++i)
18210           a += b--;
18211         return x + identity(a + b);
18212       }(0);
18213       return a + b + c + d + e;
18214     }
18215
18216     int
18217     test3()
18218     {
18219       const auto nullary = [](){ return 0; };
18220       const auto unary = [](int x){ return x; };
18221       using nullary_t = decltype(nullary);
18222       using unary_t = decltype(unary);
18223       const auto higher1st = [](nullary_t f){ return f(); };
18224       const auto higher2nd = [unary](nullary_t f1){
18225         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18226       };
18227       return higher1st(nullary) + higher2nd(nullary)(unary);
18228     }
18229
18230   }
18231
18232   namespace test_variadic_templates
18233   {
18234
18235     template <int...>
18236     struct sum;
18237
18238     template <int N0, int... N1toN>
18239     struct sum<N0, N1toN...>
18240     {
18241       static constexpr auto value = N0 + sum<N1toN...>::value;
18242     };
18243
18244     template <>
18245     struct sum<>
18246     {
18247       static constexpr auto value = 0;
18248     };
18249
18250     static_assert(sum<>::value == 0, "");
18251     static_assert(sum<1>::value == 1, "");
18252     static_assert(sum<23>::value == 23, "");
18253     static_assert(sum<1, 2>::value == 3, "");
18254     static_assert(sum<5, 5, 11>::value == 21, "");
18255     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18256
18257   }
18258
18259   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18260   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18261   // because of this.
18262   namespace test_template_alias_sfinae
18263   {
18264
18265     struct foo {};
18266
18267     template<typename T>
18268     using member = typename T::member_type;
18269
18270     template<typename T>
18271     void func(...) {}
18272
18273     template<typename T>
18274     void func(member<T>*) {}
18275
18276     void test();
18277
18278     void test() { func<foo>(0); }
18279
18280   }
18281
18282 }  // namespace cxx11
18283
18284 #endif  // __cplusplus >= 201103L
18285
18286
18287
18288 _ACEOF
18289 if ac_fn_cxx_try_compile "$LINENO"; then :
18290   eval $cachevar=yes
18291 else
18292   eval $cachevar=no
18293 fi
18294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18295          CXX="$ac_save_CXX"
18296 fi
18297 eval ac_res=\$$cachevar
18298                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18299 $as_echo "$ac_res" >&6; }
18300       if eval test x\$$cachevar = xyes; then
18301         CXX="$CXX $switch"
18302         CXXCPP="$CXXCPP $switch"
18303         ac_success=yes
18304         break
18305       fi
18306     done
18307   fi
18308   ac_ext=c
18309 ac_cpp='$CPP $CPPFLAGS'
18310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18313
18314   if test x$ax_cxx_compile_cxx11_required = xtrue; then
18315     if test x$ac_success = xno; then
18316       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18317     fi
18318   fi
18319   if test x$ac_success = xno; then
18320     HAVE_CXX11=0
18321     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18322 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18323   else
18324     HAVE_CXX11=1
18325
18326 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18327
18328   fi
18329
18330
18331     if test "$HAVE_CXX11" != "1"; then
18332         if test "$explicit_languages" = "1"; then
18333             as_fn_error $? "
18334 ***
18335 *** A compiler with c++11 support is required for the c++ binding.
18336 ***" "$LINENO" 5
18337         else
18338             enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
18339             enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18340             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18341 ***
18342 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18343 ***" >&5
18344 $as_echo "$as_me: WARNING:
18345 ***
18346 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18347 ***" >&2;}
18348         fi
18349     fi
18350 fi
18351
18352 # Check that if qt is enabled cpp also is enabled
18353
18354 name="qt"
18355 list=$enabled_languages
18356 found=0
18357
18358 for n in $list; do
18359   if test "x$name" = "x$n"; then
18360     found=1
18361   fi
18362 done
18363
18364 if test "$found" = "1"; then
18365     # We need to ensure that in the langauge order qt comes after cpp
18366     # so we remove qt first and explicitly add it as last list member.
18367     enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18368
18369 name="cpp"
18370 list=$enabled_languages
18371 found=0
18372
18373 for n in $list; do
18374   if test "x$name" = "x$n"; then
18375     found=1
18376   fi
18377 done
18378
18379     if test "$found" = "0"; then
18380         as_fn_error $? "
18381 ***
18382 *** Qt language binding depends on cpp binding.
18383 ***" "$LINENO" 5
18384     fi
18385
18386
18387 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18388         if test -n "$ac_tool_prefix"; then
18389   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18390 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18392 $as_echo_n "checking for $ac_word... " >&6; }
18393 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18394   $as_echo_n "(cached) " >&6
18395 else
18396   case $PKG_CONFIG in
18397   [\\/]* | ?:[\\/]*)
18398   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18399   ;;
18400   *)
18401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18402 for as_dir in $PATH
18403 do
18404   IFS=$as_save_IFS
18405   test -z "$as_dir" && as_dir=.
18406     for ac_exec_ext in '' $ac_executable_extensions; do
18407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18408     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18410     break 2
18411   fi
18412 done
18413   done
18414 IFS=$as_save_IFS
18415
18416   ;;
18417 esac
18418 fi
18419 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18420 if test -n "$PKG_CONFIG"; then
18421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18422 $as_echo "$PKG_CONFIG" >&6; }
18423 else
18424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18425 $as_echo "no" >&6; }
18426 fi
18427
18428
18429 fi
18430 if test -z "$ac_cv_path_PKG_CONFIG"; then
18431   ac_pt_PKG_CONFIG=$PKG_CONFIG
18432   # Extract the first word of "pkg-config", so it can be a program name with args.
18433 set dummy pkg-config; ac_word=$2
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18435 $as_echo_n "checking for $ac_word... " >&6; }
18436 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18437   $as_echo_n "(cached) " >&6
18438 else
18439   case $ac_pt_PKG_CONFIG in
18440   [\\/]* | ?:[\\/]*)
18441   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18442   ;;
18443   *)
18444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18445 for as_dir in $PATH
18446 do
18447   IFS=$as_save_IFS
18448   test -z "$as_dir" && as_dir=.
18449     for ac_exec_ext in '' $ac_executable_extensions; do
18450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18451     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18453     break 2
18454   fi
18455 done
18456   done
18457 IFS=$as_save_IFS
18458
18459   ;;
18460 esac
18461 fi
18462 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18463 if test -n "$ac_pt_PKG_CONFIG"; then
18464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18465 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18466 else
18467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18468 $as_echo "no" >&6; }
18469 fi
18470
18471   if test "x$ac_pt_PKG_CONFIG" = x; then
18472     PKG_CONFIG=""
18473   else
18474     case $cross_compiling:$ac_tool_warned in
18475 yes:)
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18478 ac_tool_warned=yes ;;
18479 esac
18480     PKG_CONFIG=$ac_pt_PKG_CONFIG
18481   fi
18482 else
18483   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18484 fi
18485
18486 fi
18487 if test -n "$PKG_CONFIG"; then
18488         _pkg_min_version=0.9.0
18489         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18490 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18491         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18492                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18493 $as_echo "yes" >&6; }
18494         else
18495                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18496 $as_echo "no" >&6; }
18497                 PKG_CONFIG=""
18498         fi
18499
18500 fi
18501
18502   have_qt5_libs="no";
18503
18504
18505 pkg_failed=no
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QT" >&5
18507 $as_echo_n "checking for GPGME_QT... " >&6; }
18508
18509 if test -n "$PKG_CONFIG"; then
18510     if test -n "$GPGME_QT_CFLAGS"; then
18511         pkg_cv_GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS"
18512     else
18513         if test -n "$PKG_CONFIG" && \
18514     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18515   ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18516   ac_status=$?
18517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18518   test $ac_status = 0; }; then
18519   pkg_cv_GPGME_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0" 2>/dev/null`
18520 else
18521   pkg_failed=yes
18522 fi
18523     fi
18524 else
18525         pkg_failed=untried
18526 fi
18527 if test -n "$PKG_CONFIG"; then
18528     if test -n "$GPGME_QT_LIBS"; then
18529         pkg_cv_GPGME_QT_LIBS="$GPGME_QT_LIBS"
18530     else
18531         if test -n "$PKG_CONFIG" && \
18532     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18533   ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18534   ac_status=$?
18535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536   test $ac_status = 0; }; then
18537   pkg_cv_GPGME_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0" 2>/dev/null`
18538 else
18539   pkg_failed=yes
18540 fi
18541     fi
18542 else
18543         pkg_failed=untried
18544 fi
18545
18546
18547
18548 if test $pkg_failed = yes; then
18549
18550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18551         _pkg_short_errors_supported=yes
18552 else
18553         _pkg_short_errors_supported=no
18554 fi
18555         if test $_pkg_short_errors_supported = yes; then
18556                 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18557         else
18558                 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18559         fi
18560         # Put the nasty error message in config.log where it belongs
18561         echo "$GPGME_QT_PKG_ERRORS" >&5
18562
18563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564 $as_echo "no" >&6; }
18565                 have_qt5_libs="no"
18566 elif test $pkg_failed = untried; then
18567         have_qt5_libs="no"
18568 else
18569         GPGME_QT_CFLAGS=$pkg_cv_GPGME_QT_CFLAGS
18570         GPGME_QT_LIBS=$pkg_cv_GPGME_QT_LIBS
18571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18572 $as_echo "yes" >&6; }
18573         have_qt5_libs="yes"
18574 fi
18575
18576
18577 pkg_failed=no
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QTTEST" >&5
18579 $as_echo_n "checking for GPGME_QTTEST... " >&6; }
18580
18581 if test -n "$PKG_CONFIG"; then
18582     if test -n "$GPGME_QTTEST_CFLAGS"; then
18583         pkg_cv_GPGME_QTTEST_CFLAGS="$GPGME_QTTEST_CFLAGS"
18584     else
18585         if test -n "$PKG_CONFIG" && \
18586     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18587   ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18588   ac_status=$?
18589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18590   test $ac_status = 0; }; then
18591   pkg_cv_GPGME_QTTEST_CFLAGS=`$PKG_CONFIG --cflags "Qt5Test >= 5.0.0" 2>/dev/null`
18592 else
18593   pkg_failed=yes
18594 fi
18595     fi
18596 else
18597         pkg_failed=untried
18598 fi
18599 if test -n "$PKG_CONFIG"; then
18600     if test -n "$GPGME_QTTEST_LIBS"; then
18601         pkg_cv_GPGME_QTTEST_LIBS="$GPGME_QTTEST_LIBS"
18602     else
18603         if test -n "$PKG_CONFIG" && \
18604     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18605   ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18606   ac_status=$?
18607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18608   test $ac_status = 0; }; then
18609   pkg_cv_GPGME_QTTEST_LIBS=`$PKG_CONFIG --libs "Qt5Test >= 5.0.0" 2>/dev/null`
18610 else
18611   pkg_failed=yes
18612 fi
18613     fi
18614 else
18615         pkg_failed=untried
18616 fi
18617
18618
18619
18620 if test $pkg_failed = yes; then
18621
18622 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18623         _pkg_short_errors_supported=yes
18624 else
18625         _pkg_short_errors_supported=no
18626 fi
18627         if test $_pkg_short_errors_supported = yes; then
18628                 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18629         else
18630                 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18631         fi
18632         # Put the nasty error message in config.log where it belongs
18633         echo "$GPGME_QTTEST_PKG_ERRORS" >&5
18634
18635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18636 $as_echo "no" >&6; }
18637                 have_qt5test_libs="no"
18638 elif test $pkg_failed = untried; then
18639         have_qt5test_libs="no"
18640 else
18641         GPGME_QTTEST_CFLAGS=$pkg_cv_GPGME_QTTEST_CFLAGS
18642         GPGME_QTTEST_LIBS=$pkg_cv_GPGME_QTTEST_LIBS
18643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18644 $as_echo "yes" >&6; }
18645         have_qt5test_libs="yes"
18646 fi
18647
18648   if ! test "$have_w32_system" = yes; then
18649     if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
18650       GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
18651     fi
18652   fi
18653   if test "$have_qt5_libs" = "yes"; then
18654     if test -n "$ac_tool_prefix"; then
18655   # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18656 set dummy ${ac_tool_prefix}moc; ac_word=$2
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18658 $as_echo_n "checking for $ac_word... " >&6; }
18659 if ${ac_cv_prog_MOC+:} false; then :
18660   $as_echo_n "(cached) " >&6
18661 else
18662   if test -n "$MOC"; then
18663   ac_cv_prog_MOC="$MOC" # Let the user override the test.
18664 else
18665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666 for as_dir in $PATH
18667 do
18668   IFS=$as_save_IFS
18669   test -z "$as_dir" && as_dir=.
18670     for ac_exec_ext in '' $ac_executable_extensions; do
18671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18672     ac_cv_prog_MOC="${ac_tool_prefix}moc"
18673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18674     break 2
18675   fi
18676 done
18677   done
18678 IFS=$as_save_IFS
18679
18680 fi
18681 fi
18682 MOC=$ac_cv_prog_MOC
18683 if test -n "$MOC"; then
18684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18685 $as_echo "$MOC" >&6; }
18686 else
18687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18689 fi
18690
18691
18692 fi
18693 if test -z "$ac_cv_prog_MOC"; then
18694   ac_ct_MOC=$MOC
18695   # Extract the first word of "moc", so it can be a program name with args.
18696 set dummy moc; ac_word=$2
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18698 $as_echo_n "checking for $ac_word... " >&6; }
18699 if ${ac_cv_prog_ac_ct_MOC+:} false; then :
18700   $as_echo_n "(cached) " >&6
18701 else
18702   if test -n "$ac_ct_MOC"; then
18703   ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
18704 else
18705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18706 for as_dir in $PATH
18707 do
18708   IFS=$as_save_IFS
18709   test -z "$as_dir" && as_dir=.
18710     for ac_exec_ext in '' $ac_executable_extensions; do
18711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18712     ac_cv_prog_ac_ct_MOC="moc"
18713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18714     break 2
18715   fi
18716 done
18717   done
18718 IFS=$as_save_IFS
18719
18720 fi
18721 fi
18722 ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
18723 if test -n "$ac_ct_MOC"; then
18724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
18725 $as_echo "$ac_ct_MOC" >&6; }
18726 else
18727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18728 $as_echo "no" >&6; }
18729 fi
18730
18731   if test "x$ac_ct_MOC" = x; then
18732     MOC=""
18733   else
18734     case $cross_compiling:$ac_tool_warned in
18735 yes:)
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18738 ac_tool_warned=yes ;;
18739 esac
18740     MOC=$ac_ct_MOC
18741   fi
18742 else
18743   MOC="$ac_cv_prog_MOC"
18744 fi
18745
18746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
18747 $as_echo_n "checking moc version... " >&6; }
18748     mocversion=`$MOC -v 2>&1`
18749     mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
18750     if test x"$mocversiongrep" != x"$mocversion"; then
18751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18753       # moc was not the qt5 one, try with moc-qt5
18754       if test -n "$ac_tool_prefix"; then
18755   # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
18756 set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18758 $as_echo_n "checking for $ac_word... " >&6; }
18759 if ${ac_cv_prog_MOC2+:} false; then :
18760   $as_echo_n "(cached) " >&6
18761 else
18762   if test -n "$MOC2"; then
18763   ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
18764 else
18765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18766 for as_dir in $PATH
18767 do
18768   IFS=$as_save_IFS
18769   test -z "$as_dir" && as_dir=.
18770     for ac_exec_ext in '' $ac_executable_extensions; do
18771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18772     ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt5"
18773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18774     break 2
18775   fi
18776 done
18777   done
18778 IFS=$as_save_IFS
18779
18780 fi
18781 fi
18782 MOC2=$ac_cv_prog_MOC2
18783 if test -n "$MOC2"; then
18784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
18785 $as_echo "$MOC2" >&6; }
18786 else
18787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18788 $as_echo "no" >&6; }
18789 fi
18790
18791
18792 fi
18793 if test -z "$ac_cv_prog_MOC2"; then
18794   ac_ct_MOC2=$MOC2
18795   # Extract the first word of "moc-qt5", so it can be a program name with args.
18796 set dummy moc-qt5; ac_word=$2
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18798 $as_echo_n "checking for $ac_word... " >&6; }
18799 if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
18800   $as_echo_n "(cached) " >&6
18801 else
18802   if test -n "$ac_ct_MOC2"; then
18803   ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
18804 else
18805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18806 for as_dir in $PATH
18807 do
18808   IFS=$as_save_IFS
18809   test -z "$as_dir" && as_dir=.
18810     for ac_exec_ext in '' $ac_executable_extensions; do
18811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18812     ac_cv_prog_ac_ct_MOC2="moc-qt5"
18813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18814     break 2
18815   fi
18816 done
18817   done
18818 IFS=$as_save_IFS
18819
18820 fi
18821 fi
18822 ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
18823 if test -n "$ac_ct_MOC2"; then
18824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
18825 $as_echo "$ac_ct_MOC2" >&6; }
18826 else
18827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828 $as_echo "no" >&6; }
18829 fi
18830
18831   if test "x$ac_ct_MOC2" = x; then
18832     MOC2=""
18833   else
18834     case $cross_compiling:$ac_tool_warned in
18835 yes:)
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18838 ac_tool_warned=yes ;;
18839 esac
18840     MOC2=$ac_ct_MOC2
18841   fi
18842 else
18843   MOC2="$ac_cv_prog_MOC2"
18844 fi
18845
18846       mocversion=`$MOC2 -v 2>&1`
18847       mocversiongrep=`echo $mocversion | grep "Qt 5\|moc-qt5 5\|moc 5"`
18848       if test x"$mocversiongrep" != x"$mocversion"; then
18849         if test -n "$ac_tool_prefix"; then
18850   # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
18851 set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18853 $as_echo_n "checking for $ac_word... " >&6; }
18854 if ${ac_cv_prog_QTCHOOSER+:} false; then :
18855   $as_echo_n "(cached) " >&6
18856 else
18857   if test -n "$QTCHOOSER"; then
18858   ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
18859 else
18860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18861 for as_dir in $PATH
18862 do
18863   IFS=$as_save_IFS
18864   test -z "$as_dir" && as_dir=.
18865     for ac_exec_ext in '' $ac_executable_extensions; do
18866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18867     ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
18868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18869     break 2
18870   fi
18871 done
18872   done
18873 IFS=$as_save_IFS
18874
18875 fi
18876 fi
18877 QTCHOOSER=$ac_cv_prog_QTCHOOSER
18878 if test -n "$QTCHOOSER"; then
18879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
18880 $as_echo "$QTCHOOSER" >&6; }
18881 else
18882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18883 $as_echo "no" >&6; }
18884 fi
18885
18886
18887 fi
18888 if test -z "$ac_cv_prog_QTCHOOSER"; then
18889   ac_ct_QTCHOOSER=$QTCHOOSER
18890   # Extract the first word of "qtchooser", so it can be a program name with args.
18891 set dummy qtchooser; ac_word=$2
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18893 $as_echo_n "checking for $ac_word... " >&6; }
18894 if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
18895   $as_echo_n "(cached) " >&6
18896 else
18897   if test -n "$ac_ct_QTCHOOSER"; then
18898   ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
18899 else
18900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18901 for as_dir in $PATH
18902 do
18903   IFS=$as_save_IFS
18904   test -z "$as_dir" && as_dir=.
18905     for ac_exec_ext in '' $ac_executable_extensions; do
18906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18907     ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
18908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18909     break 2
18910   fi
18911 done
18912   done
18913 IFS=$as_save_IFS
18914
18915 fi
18916 fi
18917 ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
18918 if test -n "$ac_ct_QTCHOOSER"; then
18919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
18920 $as_echo "$ac_ct_QTCHOOSER" >&6; }
18921 else
18922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18923 $as_echo "no" >&6; }
18924 fi
18925
18926   if test "x$ac_ct_QTCHOOSER" = x; then
18927     QTCHOOSER=""
18928   else
18929     case $cross_compiling:$ac_tool_warned in
18930 yes:)
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18933 ac_tool_warned=yes ;;
18934 esac
18935     QTCHOOSER=$ac_ct_QTCHOOSER
18936   fi
18937 else
18938   QTCHOOSER="$ac_cv_prog_QTCHOOSER"
18939 fi
18940
18941         qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
18942         mocversion=`$qt5tooldir/moc -v 2>&1`
18943         mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
18944         if test x"$mocversiongrep" != x"$mocversion"; then
18945           # no valid moc found
18946           have_qt5_libs="no";
18947         else
18948           MOC=$qt5tooldir/moc
18949         fi
18950       else
18951         MOC=$MOC2
18952       fi
18953     fi
18954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mocversion" >&5
18955 $as_echo "$mocversion" >&6; }
18956                         OLDCPPFLAGS=$CPPFLAGS
18957     CPPFLAGS=$GPGME_QT_CFLAGS
18958     OLDLIBS=$LIBS
18959     LIBS=$GPGME_QT_LIBS
18960     ac_ext=cpp
18961 ac_cpp='$CXXCPP $CPPFLAGS'
18962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18965
18966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple qt program can be built" >&5
18967 $as_echo_n "checking whether a simple qt program can be built... " >&6; }
18968     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h.  */
18970
18971     #include <QCoreApplication>
18972     int main (int argc, char **argv) {
18973     QCoreApplication app(argc, argv);
18974     app.exec();
18975     }
18976 _ACEOF
18977 if ac_fn_cxx_try_link "$LINENO"; then :
18978   have_qt5_libs='yes'
18979 else
18980   have_qt5_libs='no'
18981 fi
18982 rm -f core conftest.err conftest.$ac_objext \
18983     conftest$ac_exeext conftest.$ac_ext
18984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt5_libs" >&5
18985 $as_echo "$have_qt5_libs" >&6; }
18986     ac_ext=c
18987 ac_cpp='$CPP $CPPFLAGS'
18988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18991
18992     CPPFLAGS=$OLDCPPFLAGS
18993     LIBS=$OLDLIBS
18994   fi
18995
18996     if test "$have_qt5_libs" != "yes"; then
18997         if test "$explicit_languages" = "1"; then
18998         as_fn_error $? "
18999 ***
19000 *** Qt5 (Qt5Core) is required for Qt binding.
19001 ***" "$LINENO" 5
19002         else
19003            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19004 ***
19005 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19006 ***" >&5
19007 $as_echo "$as_me: WARNING:
19008 ***
19009 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19010 ***" >&2;}
19011         fi
19012     else
19013         enabled_languages=`echo $enabled_languages qt`
19014
19015         for ac_prog in doxygen
19016 do
19017   # Extract the first word of "$ac_prog", so it can be a program name with args.
19018 set dummy $ac_prog; ac_word=$2
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19020 $as_echo_n "checking for $ac_word... " >&6; }
19021 if ${ac_cv_prog_DOXYGEN+:} false; then :
19022   $as_echo_n "(cached) " >&6
19023 else
19024   if test -n "$DOXYGEN"; then
19025   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19026 else
19027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19028 for as_dir in $PATH
19029 do
19030   IFS=$as_save_IFS
19031   test -z "$as_dir" && as_dir=.
19032     for ac_exec_ext in '' $ac_executable_extensions; do
19033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19034     ac_cv_prog_DOXYGEN="$ac_prog"
19035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19036     break 2
19037   fi
19038 done
19039   done
19040 IFS=$as_save_IFS
19041
19042 fi
19043 fi
19044 DOXYGEN=$ac_cv_prog_DOXYGEN
19045 if test -n "$DOXYGEN"; then
19046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19047 $as_echo "$DOXYGEN" >&6; }
19048 else
19049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19051 fi
19052
19053
19054   test -n "$DOXYGEN" && break
19055 done
19056
19057         if test -z "$DOXYGEN";
19058             # This is not highlighted becase it's not really important.
19059             then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - Qt binding doc will not be built." >&5
19060 $as_echo "$as_me: WARNING: Doxygen not found - Qt binding doc will not be built." >&2;}
19061         fi
19062         for ac_prog in dot
19063 do
19064   # Extract the first word of "$ac_prog", so it can be a program name with args.
19065 set dummy $ac_prog; ac_word=$2
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19067 $as_echo_n "checking for $ac_word... " >&6; }
19068 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
19069   $as_echo_n "(cached) " >&6
19070 else
19071   if test -n "$GRAPHVIZ"; then
19072   ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
19073 else
19074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19075 for as_dir in $PATH
19076 do
19077   IFS=$as_save_IFS
19078   test -z "$as_dir" && as_dir=.
19079     for ac_exec_ext in '' $ac_executable_extensions; do
19080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19081     ac_cv_prog_GRAPHVIZ="$ac_prog"
19082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19083     break 2
19084   fi
19085 done
19086   done
19087 IFS=$as_save_IFS
19088
19089 fi
19090 fi
19091 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
19092 if test -n "$GRAPHVIZ"; then
19093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
19094 $as_echo "$GRAPHVIZ" >&6; }
19095 else
19096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19097 $as_echo "no" >&6; }
19098 fi
19099
19100
19101   test -n "$GRAPHVIZ" && break
19102 done
19103
19104         if test -z "$GRAPHVIZ";
19105             then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&5
19106 $as_echo "$as_me: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&2;}
19107         fi
19108     fi
19109 fi
19110  if test -n "$DOXYGEN"; then
19111   HAVE_DOXYGEN_TRUE=
19112   HAVE_DOXYGEN_FALSE='#'
19113 else
19114   HAVE_DOXYGEN_TRUE='#'
19115   HAVE_DOXYGEN_FALSE=
19116 fi
19117
19118 if test -n "$GRAPHVIZ"; then
19119     HAVE_DOT="YES"
19120 else
19121     HAVE_DOT="NO"
19122 fi
19123
19124
19125 # Python bindings.
19126
19127 name="python2"
19128 list=$enabled_languages
19129 found=0
19130
19131 for n in $list; do
19132   if test "x$name" = "x$n"; then
19133     found=1
19134   fi
19135 done
19136
19137 found_py2=$found
19138
19139 name="python3"
19140 list=$enabled_languages
19141 found=0
19142
19143 for n in $list; do
19144   if test "x$name" = "x$n"; then
19145     found=1
19146   fi
19147 done
19148
19149 found_py3=$found
19150
19151 name="python"
19152 list=$enabled_languages
19153 found=0
19154
19155 for n in $list; do
19156   if test "x$name" = "x$n"; then
19157     found=1
19158   fi
19159 done
19160
19161 found_py=$found
19162 if test "$found_py" = "1" -o "$found_py2" = "1" -o "$found_py3" = "1"; then
19163
19164         # Ubuntu has swig 2.0 as /usr/bin/swig2.0
19165         for ac_prog in swig swig2.0
19166 do
19167   # Extract the first word of "$ac_prog", so it can be a program name with args.
19168 set dummy $ac_prog; ac_word=$2
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19170 $as_echo_n "checking for $ac_word... " >&6; }
19171 if ${ac_cv_path_SWIG+:} false; then :
19172   $as_echo_n "(cached) " >&6
19173 else
19174   case $SWIG in
19175   [\\/]* | ?:[\\/]*)
19176   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19177   ;;
19178   *)
19179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19180 for as_dir in $PATH
19181 do
19182   IFS=$as_save_IFS
19183   test -z "$as_dir" && as_dir=.
19184     for ac_exec_ext in '' $ac_executable_extensions; do
19185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19186     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19188     break 2
19189   fi
19190 done
19191   done
19192 IFS=$as_save_IFS
19193
19194   ;;
19195 esac
19196 fi
19197 SWIG=$ac_cv_path_SWIG
19198 if test -n "$SWIG"; then
19199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19200 $as_echo "$SWIG" >&6; }
19201 else
19202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19203 $as_echo "no" >&6; }
19204 fi
19205
19206
19207   test -n "$SWIG" && break
19208 done
19209
19210         if test -z "$SWIG" ; then
19211                 :
19212         elif test -n "" ; then
19213                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19214 $as_echo_n "checking SWIG version... " >&6; }
19215                 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'`
19216                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19217 $as_echo "$swig_version" >&6; }
19218                 if test -n "$swig_version" ; then
19219                         # Calculate the required version number components
19220                         required=
19221                         required_major=`echo $required | sed 's/[^0-9].*//'`
19222                         if test -z "$required_major" ; then
19223                                 required_major=0
19224                         fi
19225                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19226                         required_minor=`echo $required | sed 's/[^0-9].*//'`
19227                         if test -z "$required_minor" ; then
19228                                 required_minor=0
19229                         fi
19230                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19231                         required_patch=`echo $required | sed 's/[^0-9].*//'`
19232                         if test -z "$required_patch" ; then
19233                                 required_patch=0
19234                         fi
19235                         # Calculate the available version number components
19236                         available=$swig_version
19237                         available_major=`echo $available | sed 's/[^0-9].*//'`
19238                         if test -z "$available_major" ; then
19239                                 available_major=0
19240                         fi
19241                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19242                         available_minor=`echo $available | sed 's/[^0-9].*//'`
19243                         if test -z "$available_minor" ; then
19244                                 available_minor=0
19245                         fi
19246                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19247                         available_patch=`echo $available | sed 's/[^0-9].*//'`
19248                         if test -z "$available_patch" ; then
19249                                 available_patch=0
19250                         fi
19251                         # Convert the version tuple into a single number for easier comparison.
19252                         # Using base 100 should be safe since SWIG internally uses BCD values
19253                         # to encode its version number.
19254                         required_swig_vernum=`expr $required_major \* 10000 \
19255                             \+ $required_minor \* 100 \+ $required_patch`
19256                         available_swig_vernum=`expr $available_major \* 10000 \
19257                             \+ $available_minor \* 100 \+ $available_patch`
19258
19259                         if test $available_swig_vernum -lt $required_swig_vernum; then
19260                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
19261 $as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
19262                                 SWIG=''
19263
19264                         else
19265                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19266 $as_echo_n "checking for SWIG library... " >&6; }
19267                                 SWIG_LIB=`$SWIG -swiglib`
19268                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19269 $as_echo "$SWIG_LIB" >&6; }
19270
19271                         fi
19272                 else
19273                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19274 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19275                         SWIG=''
19276
19277                 fi
19278         fi
19279
19280
19281     if test -z "$SWIG"; then
19282         if test "$explicit_languages" = "1"; then
19283             as_fn_error $? "
19284 ***
19285 *** You need SWIG to build the Python bindings.
19286 ***" "$LINENO" 5
19287         else
19288             enabled_languages=$(echo $enabled_languages | sed 's/python//')
19289         fi
19290     else
19291         # Reset all the stuff, just to be sure.
19292         PYTHONS=
19293         PYTHON_VERSIONS=
19294         unset PYTHON
19295         unset PYTHON_VERSION
19296         unset PYTHON_CPPFLAGS
19297         unset PYTHON_LDFLAGS
19298         unset PYTHON_SITE_PKG
19299         unset PYTHON_EXTRA_LIBS
19300         unset PYTHON_EXTRA_LDFLAGS
19301         unset ac_cv_path_PYTHON
19302         unset am_cv_pathless_PYTHON
19303         unset am_cv_python_version
19304         unset am_cv_python_platform
19305         unset am_cv_python_pythondir
19306         unset am_cv_python_pyexecdir
19307
19308         if test "$found_py" = "1" -o "$found_py2" = "1"; then
19309
19310
19311
19312
19313
19314
19315         if test -n "$PYTHON"; then
19316       # If the user set $PYTHON, use it and don't search something else.
19317       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19318 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
19319       prog="import sys
19320 # split strings by '.' and convert to numeric.  Append some zeros
19321 # because we need at least 4 digits for the hex conversion.
19322 # map returns an iterator in Python 3.0 and a list in 2.x
19323 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19324 minverhex = 0
19325 # xrange is not present in Python 3.0 and range returns an iterator
19326 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19327 sys.exit(sys.hexversion < minverhex)"
19328   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19329    ($PYTHON -c "$prog") >&5 2>&5
19330    ac_status=$?
19331    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332    (exit $ac_status); }; then :
19333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19334 $as_echo "yes" >&6; }
19335 else
19336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19337 $as_echo "no" >&6; }
19338                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19339 fi
19340       am_display_PYTHON=$PYTHON
19341     else
19342       # Otherwise, try each interpreter until we find one that satisfies
19343       # VERSION.
19344       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19345 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
19346 if ${am_cv_pathless_PYTHON+:} false; then :
19347   $as_echo_n "(cached) " >&6
19348 else
19349
19350         for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
19351           test "$am_cv_pathless_PYTHON" = none && break
19352           prog="import sys
19353 # split strings by '.' and convert to numeric.  Append some zeros
19354 # because we need at least 4 digits for the hex conversion.
19355 # map returns an iterator in Python 3.0 and a list in 2.x
19356 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19357 minverhex = 0
19358 # xrange is not present in Python 3.0 and range returns an iterator
19359 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19360 sys.exit(sys.hexversion < minverhex)"
19361   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19362    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19363    ac_status=$?
19364    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365    (exit $ac_status); }; then :
19366   break
19367 fi
19368         done
19369 fi
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19371 $as_echo "$am_cv_pathless_PYTHON" >&6; }
19372       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19373       if test "$am_cv_pathless_PYTHON" = none; then
19374         PYTHON=:
19375       else
19376         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19377 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19379 $as_echo_n "checking for $ac_word... " >&6; }
19380 if ${ac_cv_path_PYTHON+:} false; then :
19381   $as_echo_n "(cached) " >&6
19382 else
19383   case $PYTHON in
19384   [\\/]* | ?:[\\/]*)
19385   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19386   ;;
19387   *)
19388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19389 for as_dir in $PATH
19390 do
19391   IFS=$as_save_IFS
19392   test -z "$as_dir" && as_dir=.
19393     for ac_exec_ext in '' $ac_executable_extensions; do
19394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19395     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19397     break 2
19398   fi
19399 done
19400   done
19401 IFS=$as_save_IFS
19402
19403   ;;
19404 esac
19405 fi
19406 PYTHON=$ac_cv_path_PYTHON
19407 if test -n "$PYTHON"; then
19408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19409 $as_echo "$PYTHON" >&6; }
19410 else
19411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19412 $as_echo "no" >&6; }
19413 fi
19414
19415
19416       fi
19417       am_display_PYTHON=$am_cv_pathless_PYTHON
19418     fi
19419
19420
19421   if test "$PYTHON" = :; then
19422       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
19423   else
19424
19425
19426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19427 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19428 if ${am_cv_python_version+:} false; then :
19429   $as_echo_n "(cached) " >&6
19430 else
19431   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19432 fi
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19434 $as_echo "$am_cv_python_version" >&6; }
19435   PYTHON_VERSION=$am_cv_python_version
19436
19437
19438
19439   PYTHON_PREFIX='${prefix}'
19440
19441   PYTHON_EXEC_PREFIX='${exec_prefix}'
19442
19443
19444
19445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19446 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19447 if ${am_cv_python_platform+:} false; then :
19448   $as_echo_n "(cached) " >&6
19449 else
19450   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19451 fi
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19453 $as_echo "$am_cv_python_platform" >&6; }
19454   PYTHON_PLATFORM=$am_cv_python_platform
19455
19456
19457   # Just factor out some code duplication.
19458   am_python_setup_sysconfig="\
19459 import sys
19460 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19461 # with python 3.x.  See automake bug#10227.
19462 try:
19463     import sysconfig
19464 except ImportError:
19465     can_use_sysconfig = 0
19466 else:
19467     can_use_sysconfig = 1
19468 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19469 # <https://github.com/pypa/virtualenv/issues/118>
19470 try:
19471     from platform import python_implementation
19472     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19473         can_use_sysconfig = 0
19474 except ImportError:
19475     pass"
19476
19477
19478             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19479 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19480 if ${am_cv_python_pythondir+:} false; then :
19481   $as_echo_n "(cached) " >&6
19482 else
19483   if test "x$prefix" = xNONE
19484      then
19485        am_py_prefix=$ac_default_prefix
19486      else
19487        am_py_prefix=$prefix
19488      fi
19489      am_cv_python_pythondir=`$PYTHON -c "
19490 $am_python_setup_sysconfig
19491 if can_use_sysconfig:
19492     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19493 else:
19494     from distutils import sysconfig
19495     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19496 sys.stdout.write(sitedir)"`
19497      case $am_cv_python_pythondir in
19498      $am_py_prefix*)
19499        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19500        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19501        ;;
19502      *)
19503        case $am_py_prefix in
19504          /usr|/System*) ;;
19505          *)
19506           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19507           ;;
19508        esac
19509        ;;
19510      esac
19511
19512 fi
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19514 $as_echo "$am_cv_python_pythondir" >&6; }
19515   pythondir=$am_cv_python_pythondir
19516
19517
19518
19519   pkgpythondir=\${pythondir}/$PACKAGE
19520
19521
19522         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19523 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19524 if ${am_cv_python_pyexecdir+:} false; then :
19525   $as_echo_n "(cached) " >&6
19526 else
19527   if test "x$exec_prefix" = xNONE
19528      then
19529        am_py_exec_prefix=$am_py_prefix
19530      else
19531        am_py_exec_prefix=$exec_prefix
19532      fi
19533      am_cv_python_pyexecdir=`$PYTHON -c "
19534 $am_python_setup_sysconfig
19535 if can_use_sysconfig:
19536     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
19537 else:
19538     from distutils import sysconfig
19539     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
19540 sys.stdout.write(sitedir)"`
19541      case $am_cv_python_pyexecdir in
19542      $am_py_exec_prefix*)
19543        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19544        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19545        ;;
19546      *)
19547        case $am_py_exec_prefix in
19548          /usr|/System*) ;;
19549          *)
19550            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19551            ;;
19552        esac
19553        ;;
19554      esac
19555
19556 fi
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19558 $as_echo "$am_cv_python_pyexecdir" >&6; }
19559   pyexecdir=$am_cv_python_pyexecdir
19560
19561
19562
19563   pkgpyexecdir=\${pyexecdir}/$PACKAGE
19564
19565
19566
19567   fi
19568
19569
19570
19571         #
19572         # Allow the use of a (user set) custom python version
19573         #
19574
19575
19576         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19577 set dummy python$PYTHON_VERSION; ac_word=$2
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19579 $as_echo_n "checking for $ac_word... " >&6; }
19580 if ${ac_cv_path_PYTHON+:} false; then :
19581   $as_echo_n "(cached) " >&6
19582 else
19583   case $PYTHON in
19584   [\\/]* | ?:[\\/]*)
19585   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19586   ;;
19587   *)
19588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19589 for as_dir in $PATH
19590 do
19591   IFS=$as_save_IFS
19592   test -z "$as_dir" && as_dir=.
19593     for ac_exec_ext in '' $ac_executable_extensions; do
19594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19595     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19597     break 2
19598   fi
19599 done
19600   done
19601 IFS=$as_save_IFS
19602
19603   ;;
19604 esac
19605 fi
19606 PYTHON=$ac_cv_path_PYTHON
19607 if test -n "$PYTHON"; then
19608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19609 $as_echo "$PYTHON" >&6; }
19610 else
19611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19612 $as_echo "no" >&6; }
19613 fi
19614
19615
19616         if test -z "$PYTHON"; then
19617            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19618            PYTHON_VERSION=""
19619         fi
19620
19621         #
19622         # Check for a version of Python >= 2.1.0
19623         #
19624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19625 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
19626         ac_supports_python_ver=`$PYTHON -c "import sys; \
19627                 ver = sys.version.split ()[0]; \
19628                 print (ver >= '2.1.0')"`
19629         if test "$ac_supports_python_ver" != "True"; then
19630                 if test -z "$PYTHON_NOVERSIONCHECK"; then
19631                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19632 $as_echo "no" >&6; }
19633                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19635 as_fn_error $? "
19636 This version of the AC_PYTHON_DEVEL macro
19637 doesn't work properly with versions of Python before
19638 2.1.0. You may need to re-run configure, setting the
19639 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
19640 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19641 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19642 to something else than an empty string.
19643
19644 See \`config.log' for more details" "$LINENO" 5; }
19645                 else
19646                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19647 $as_echo "skip at user request" >&6; }
19648                 fi
19649         else
19650                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19651 $as_echo "yes" >&6; }
19652         fi
19653
19654         #
19655         # if the macro parameter ``version'' is set, honour it
19656         #
19657         if test -n ""; then
19658                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19659 $as_echo_n "checking for a version of Python ... " >&6; }
19660                 ac_supports_python_ver=`$PYTHON -c "import sys; \
19661                         ver = sys.version.split ()[0]; \
19662                         print (ver )"`
19663                 if test "$ac_supports_python_ver" = "True"; then
19664                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19665 $as_echo "yes" >&6; }
19666                 else
19667                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19668 $as_echo "no" >&6; }
19669                         as_fn_error $? "this package requires Python .
19670 If you have it installed, but it isn't the default Python
19671 interpreter in your system path, please pass the PYTHON_VERSION
19672 variable to configure. See \`\`configure --help'' for reference.
19673 " "$LINENO" 5
19674                         PYTHON_VERSION=""
19675                 fi
19676         fi
19677
19678         #
19679         # Check if you have distutils, else fail
19680         #
19681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19682 $as_echo_n "checking for the distutils Python package... " >&6; }
19683         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
19684         if test -z "$ac_distutils_result"; then
19685                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19686 $as_echo "yes" >&6; }
19687         else
19688                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19689 $as_echo "no" >&6; }
19690                 as_fn_error $? "cannot import Python module \"distutils\".
19691 Please check your Python installation. The error was:
19692 $ac_distutils_result" "$LINENO" 5
19693                 PYTHON_VERSION=""
19694         fi
19695
19696         #
19697         # Check for Python include path
19698         #
19699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19700 $as_echo_n "checking for Python include path... " >&6; }
19701         if test -z "$PYTHON_CPPFLAGS"; then
19702                 python_path=`$PYTHON -c "import distutils.sysconfig; \
19703                         print (distutils.sysconfig.get_python_inc ());"`
19704                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
19705                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
19706                 if test -n "${python_path}"; then
19707                         if test "${plat_python_path}" != "${python_path}"; then
19708                                 python_path="-I$python_path -I$plat_python_path"
19709                         else
19710                                 python_path="-I$python_path"
19711                         fi
19712                 fi
19713                 PYTHON_CPPFLAGS=$python_path
19714         fi
19715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19716 $as_echo "$PYTHON_CPPFLAGS" >&6; }
19717
19718
19719         #
19720         # Check for Python library path
19721         #
19722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19723 $as_echo_n "checking for Python library path... " >&6; }
19724         if test -z "$PYTHON_LDFLAGS"; then
19725                 # (makes two attempts to ensure we've got a version number
19726                 # from the interpreter)
19727                 ac_python_version=`cat<<EOD | $PYTHON -
19728
19729 # join all versioning strings, on some systems
19730 # major/minor numbers could be in different list elements
19731 from distutils.sysconfig import *
19732 e = get_config_var('VERSION')
19733 if e is not None:
19734         print(e)
19735 EOD`
19736
19737                 if test -z "$ac_python_version"; then
19738                         if test -n "$PYTHON_VERSION"; then
19739                                 ac_python_version=$PYTHON_VERSION
19740                         else
19741                                 ac_python_version=`$PYTHON -c "import sys; \
19742                                         print (sys.version[:3])"`
19743                         fi
19744                 fi
19745
19746                 # Make the versioning information available to the compiler
19747
19748 cat >>confdefs.h <<_ACEOF
19749 #define HAVE_PYTHON "$ac_python_version"
19750 _ACEOF
19751
19752
19753                 # First, the library directory:
19754                 ac_python_libdir=`cat<<EOD | $PYTHON -
19755
19756 # There should be only one
19757 import distutils.sysconfig
19758 e = distutils.sysconfig.get_config_var('LIBDIR')
19759 if e is not None:
19760         print (e)
19761 EOD`
19762
19763                 # Now, for the library:
19764                 ac_python_library=`cat<<EOD | $PYTHON -
19765
19766 import distutils.sysconfig
19767 c = distutils.sysconfig.get_config_vars()
19768 if 'LDVERSION' in c:
19769         print ('python'+c['LDVERSION'])
19770 else:
19771         print ('python'+c['VERSION'])
19772 EOD`
19773
19774                 # This small piece shamelessly adapted from PostgreSQL python macro;
19775                 # credits goes to momjian, I think. I'd like to put the right name
19776                 # in the credits, if someone can point me in the right direction... ?
19777                 #
19778                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19779                 then
19780                         # use the official shared library
19781                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19782                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
19783                 else
19784                         # old way: use libpython from python_configdir
19785                         ac_python_libdir=`$PYTHON -c \
19786                           "from distutils.sysconfig import get_python_lib as f; \
19787                           import os; \
19788                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19789                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
19790                 fi
19791
19792                 if test -z "PYTHON_LDFLAGS"; then
19793                         as_fn_error $? "
19794   Cannot determine location of your Python DSO. Please check it was installed with
19795   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
19796                         " "$LINENO" 5
19797                 fi
19798         fi
19799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19800 $as_echo "$PYTHON_LDFLAGS" >&6; }
19801
19802
19803         #
19804         # Check for site packages
19805         #
19806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
19807 $as_echo_n "checking for Python site-packages path... " >&6; }
19808         if test -z "$PYTHON_SITE_PKG"; then
19809                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
19810                         print (distutils.sysconfig.get_python_lib(0,0));"`
19811         fi
19812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
19813 $as_echo "$PYTHON_SITE_PKG" >&6; }
19814
19815
19816         #
19817         # libraries which must be linked in when embedding
19818         #
19819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
19820 $as_echo_n "checking python extra libraries... " >&6; }
19821         if test -z "$PYTHON_EXTRA_LIBS"; then
19822            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
19823                 conf = distutils.sysconfig.get_config_var; \
19824                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
19825         fi
19826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
19827 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
19828
19829
19830         #
19831         # linking flags needed when embedding
19832         #
19833         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
19834 $as_echo_n "checking python extra linking flags... " >&6; }
19835         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
19836                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
19837                         conf = distutils.sysconfig.get_config_var; \
19838                         print (conf('LINKFORSHARED'))"`
19839         fi
19840         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
19841 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
19842
19843
19844         #
19845         # final check to see if everything compiles alright
19846         #
19847         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
19848 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
19849         # save current global flags
19850         ac_save_LIBS="$LIBS"
19851         ac_save_CPPFLAGS="$CPPFLAGS"
19852         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
19853         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
19854         ac_ext=c
19855 ac_cpp='$CPP $CPPFLAGS'
19856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19859
19860         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h.  */
19862
19863                 #include <Python.h>
19864 int
19865 main ()
19866 {
19867 Py_Initialize();
19868   ;
19869   return 0;
19870 }
19871
19872 _ACEOF
19873 if ac_fn_c_try_link "$LINENO"; then :
19874   pythonexists=yes
19875 else
19876   pythonexists=no
19877 fi
19878 rm -f core conftest.err conftest.$ac_objext \
19879     conftest$ac_exeext conftest.$ac_ext
19880         ac_ext=c
19881 ac_cpp='$CPP $CPPFLAGS'
19882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19885
19886         # turn back to default flags
19887         CPPFLAGS="$ac_save_CPPFLAGS"
19888         LIBS="$ac_save_LIBS"
19889
19890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
19891 $as_echo "$pythonexists" >&6; }
19892
19893         if test ! "x$pythonexists" = "xyes"; then
19894            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19895   Could not link test program to Python. Maybe the main Python library has been
19896   installed in some non-standard library path. If so, pass it to configure,
19897   via the LDFLAGS environment variable.
19898   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
19899   ============================================================================
19900    You probably have to install the development version of the Python package
19901    for your distribution.  The exact name of this package varies among them.
19902   ============================================================================
19903            " >&5
19904 $as_echo "$as_me: WARNING:
19905   Could not link test program to Python. Maybe the main Python library has been
19906   installed in some non-standard library path. If so, pass it to configure,
19907   via the LDFLAGS environment variable.
19908   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
19909   ============================================================================
19910    You probably have to install the development version of the Python package
19911    for your distribution.  The exact name of this package varies among them.
19912   ============================================================================
19913            " >&2;}
19914           PYTHON_VERSION=""
19915         fi
19916
19917         #
19918         # all done!
19919         #
19920
19921             if test "$PYTHON_VERSION"; then
19922                 PYTHONS="$(echo $PYTHONS $PYTHON)"
19923                 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
19924             fi
19925         fi
19926
19927         if test "$found_py" = "1" -o "$found_py3" = "1"; then
19928             # Reset everything, so that we can look for another Python.
19929             unset PYTHON
19930             unset PYTHON_VERSION
19931             unset PYTHON_CPPFLAGS
19932             unset PYTHON_LDFLAGS
19933             unset PYTHON_SITE_PKG
19934             unset PYTHON_EXTRA_LIBS
19935             unset PYTHON_EXTRA_LDFLAGS
19936             unset ac_cv_path_PYTHON
19937             unset am_cv_pathless_PYTHON
19938             unset am_cv_python_version
19939             unset am_cv_python_platform
19940             unset am_cv_python_pythondir
19941             unset am_cv_python_pyexecdir
19942
19943
19944
19945
19946
19947
19948         if test -n "$PYTHON"; then
19949       # If the user set $PYTHON, use it and don't search something else.
19950       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
19951 $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
19952       prog="import sys
19953 # split strings by '.' and convert to numeric.  Append some zeros
19954 # because we need at least 4 digits for the hex conversion.
19955 # map returns an iterator in Python 3.0 and a list in 2.x
19956 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
19957 minverhex = 0
19958 # xrange is not present in Python 3.0 and range returns an iterator
19959 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19960 sys.exit(sys.hexversion < minverhex)"
19961   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19962    ($PYTHON -c "$prog") >&5 2>&5
19963    ac_status=$?
19964    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965    (exit $ac_status); }; then :
19966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19967 $as_echo "yes" >&6; }
19968 else
19969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19970 $as_echo "no" >&6; }
19971                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19972 fi
19973       am_display_PYTHON=$PYTHON
19974     else
19975       # Otherwise, try each interpreter until we find one that satisfies
19976       # VERSION.
19977       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
19978 $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
19979 if ${am_cv_pathless_PYTHON+:} false; then :
19980   $as_echo_n "(cached) " >&6
19981 else
19982
19983         for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
19984           test "$am_cv_pathless_PYTHON" = none && break
19985           prog="import sys
19986 # split strings by '.' and convert to numeric.  Append some zeros
19987 # because we need at least 4 digits for the hex conversion.
19988 # map returns an iterator in Python 3.0 and a list in 2.x
19989 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
19990 minverhex = 0
19991 # xrange is not present in Python 3.0 and range returns an iterator
19992 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19993 sys.exit(sys.hexversion < minverhex)"
19994   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19995    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19996    ac_status=$?
19997    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998    (exit $ac_status); }; then :
19999   break
20000 fi
20001         done
20002 fi
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20004 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20005       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20006       if test "$am_cv_pathless_PYTHON" = none; then
20007         PYTHON=:
20008       else
20009         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20010 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20012 $as_echo_n "checking for $ac_word... " >&6; }
20013 if ${ac_cv_path_PYTHON+:} false; then :
20014   $as_echo_n "(cached) " >&6
20015 else
20016   case $PYTHON in
20017   [\\/]* | ?:[\\/]*)
20018   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20019   ;;
20020   *)
20021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20022 for as_dir in $PATH
20023 do
20024   IFS=$as_save_IFS
20025   test -z "$as_dir" && as_dir=.
20026     for ac_exec_ext in '' $ac_executable_extensions; do
20027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20028     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20030     break 2
20031   fi
20032 done
20033   done
20034 IFS=$as_save_IFS
20035
20036   ;;
20037 esac
20038 fi
20039 PYTHON=$ac_cv_path_PYTHON
20040 if test -n "$PYTHON"; then
20041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20042 $as_echo "$PYTHON" >&6; }
20043 else
20044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045 $as_echo "no" >&6; }
20046 fi
20047
20048
20049       fi
20050       am_display_PYTHON=$am_cv_pathless_PYTHON
20051     fi
20052
20053
20054   if test "$PYTHON" = :; then
20055       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
20056   else
20057
20058
20059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20060 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20061 if ${am_cv_python_version+:} false; then :
20062   $as_echo_n "(cached) " >&6
20063 else
20064   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20065 fi
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20067 $as_echo "$am_cv_python_version" >&6; }
20068   PYTHON_VERSION=$am_cv_python_version
20069
20070
20071
20072   PYTHON_PREFIX='${prefix}'
20073
20074   PYTHON_EXEC_PREFIX='${exec_prefix}'
20075
20076
20077
20078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20079 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20080 if ${am_cv_python_platform+:} false; then :
20081   $as_echo_n "(cached) " >&6
20082 else
20083   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20084 fi
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20086 $as_echo "$am_cv_python_platform" >&6; }
20087   PYTHON_PLATFORM=$am_cv_python_platform
20088
20089
20090   # Just factor out some code duplication.
20091   am_python_setup_sysconfig="\
20092 import sys
20093 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20094 # with python 3.x.  See automake bug#10227.
20095 try:
20096     import sysconfig
20097 except ImportError:
20098     can_use_sysconfig = 0
20099 else:
20100     can_use_sysconfig = 1
20101 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20102 # <https://github.com/pypa/virtualenv/issues/118>
20103 try:
20104     from platform import python_implementation
20105     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20106         can_use_sysconfig = 0
20107 except ImportError:
20108     pass"
20109
20110
20111             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20112 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20113 if ${am_cv_python_pythondir+:} false; then :
20114   $as_echo_n "(cached) " >&6
20115 else
20116   if test "x$prefix" = xNONE
20117      then
20118        am_py_prefix=$ac_default_prefix
20119      else
20120        am_py_prefix=$prefix
20121      fi
20122      am_cv_python_pythondir=`$PYTHON -c "
20123 $am_python_setup_sysconfig
20124 if can_use_sysconfig:
20125     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20126 else:
20127     from distutils import sysconfig
20128     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20129 sys.stdout.write(sitedir)"`
20130      case $am_cv_python_pythondir in
20131      $am_py_prefix*)
20132        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20133        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20134        ;;
20135      *)
20136        case $am_py_prefix in
20137          /usr|/System*) ;;
20138          *)
20139           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20140           ;;
20141        esac
20142        ;;
20143      esac
20144
20145 fi
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20147 $as_echo "$am_cv_python_pythondir" >&6; }
20148   pythondir=$am_cv_python_pythondir
20149
20150
20151
20152   pkgpythondir=\${pythondir}/$PACKAGE
20153
20154
20155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20156 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20157 if ${am_cv_python_pyexecdir+:} false; then :
20158   $as_echo_n "(cached) " >&6
20159 else
20160   if test "x$exec_prefix" = xNONE
20161      then
20162        am_py_exec_prefix=$am_py_prefix
20163      else
20164        am_py_exec_prefix=$exec_prefix
20165      fi
20166      am_cv_python_pyexecdir=`$PYTHON -c "
20167 $am_python_setup_sysconfig
20168 if can_use_sysconfig:
20169     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20170 else:
20171     from distutils import sysconfig
20172     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20173 sys.stdout.write(sitedir)"`
20174      case $am_cv_python_pyexecdir in
20175      $am_py_exec_prefix*)
20176        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20177        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20178        ;;
20179      *)
20180        case $am_py_exec_prefix in
20181          /usr|/System*) ;;
20182          *)
20183            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20184            ;;
20185        esac
20186        ;;
20187      esac
20188
20189 fi
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20191 $as_echo "$am_cv_python_pyexecdir" >&6; }
20192   pyexecdir=$am_cv_python_pyexecdir
20193
20194
20195
20196   pkgpyexecdir=\${pyexecdir}/$PACKAGE
20197
20198
20199
20200   fi
20201
20202
20203
20204         #
20205         # Allow the use of a (user set) custom python version
20206         #
20207
20208
20209         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20210 set dummy python$PYTHON_VERSION; ac_word=$2
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20212 $as_echo_n "checking for $ac_word... " >&6; }
20213 if ${ac_cv_path_PYTHON+:} false; then :
20214   $as_echo_n "(cached) " >&6
20215 else
20216   case $PYTHON in
20217   [\\/]* | ?:[\\/]*)
20218   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20219   ;;
20220   *)
20221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20222 for as_dir in $PATH
20223 do
20224   IFS=$as_save_IFS
20225   test -z "$as_dir" && as_dir=.
20226     for ac_exec_ext in '' $ac_executable_extensions; do
20227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20228     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20230     break 2
20231   fi
20232 done
20233   done
20234 IFS=$as_save_IFS
20235
20236   ;;
20237 esac
20238 fi
20239 PYTHON=$ac_cv_path_PYTHON
20240 if test -n "$PYTHON"; then
20241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20242 $as_echo "$PYTHON" >&6; }
20243 else
20244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20245 $as_echo "no" >&6; }
20246 fi
20247
20248
20249         if test -z "$PYTHON"; then
20250            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
20251            PYTHON_VERSION=""
20252         fi
20253
20254         #
20255         # Check for a version of Python >= 2.1.0
20256         #
20257         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
20258 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20259         ac_supports_python_ver=`$PYTHON -c "import sys; \
20260                 ver = sys.version.split ()[0]; \
20261                 print (ver >= '2.1.0')"`
20262         if test "$ac_supports_python_ver" != "True"; then
20263                 if test -z "$PYTHON_NOVERSIONCHECK"; then
20264                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20265 $as_echo "no" >&6; }
20266                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20268 as_fn_error $? "
20269 This version of the AC_PYTHON_DEVEL macro
20270 doesn't work properly with versions of Python before
20271 2.1.0. You may need to re-run configure, setting the
20272 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20273 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20274 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20275 to something else than an empty string.
20276
20277 See \`config.log' for more details" "$LINENO" 5; }
20278                 else
20279                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
20280 $as_echo "skip at user request" >&6; }
20281                 fi
20282         else
20283                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20284 $as_echo "yes" >&6; }
20285         fi
20286
20287         #
20288         # if the macro parameter ``version'' is set, honour it
20289         #
20290         if test -n ""; then
20291                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
20292 $as_echo_n "checking for a version of Python ... " >&6; }
20293                 ac_supports_python_ver=`$PYTHON -c "import sys; \
20294                         ver = sys.version.split ()[0]; \
20295                         print (ver )"`
20296                 if test "$ac_supports_python_ver" = "True"; then
20297                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20298 $as_echo "yes" >&6; }
20299                 else
20300                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20301 $as_echo "no" >&6; }
20302                         as_fn_error $? "this package requires Python .
20303 If you have it installed, but it isn't the default Python
20304 interpreter in your system path, please pass the PYTHON_VERSION
20305 variable to configure. See \`\`configure --help'' for reference.
20306 " "$LINENO" 5
20307                         PYTHON_VERSION=""
20308                 fi
20309         fi
20310
20311         #
20312         # Check if you have distutils, else fail
20313         #
20314         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
20315 $as_echo_n "checking for the distutils Python package... " >&6; }
20316         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20317         if test -z "$ac_distutils_result"; then
20318                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20319 $as_echo "yes" >&6; }
20320         else
20321                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20322 $as_echo "no" >&6; }
20323                 as_fn_error $? "cannot import Python module \"distutils\".
20324 Please check your Python installation. The error was:
20325 $ac_distutils_result" "$LINENO" 5
20326                 PYTHON_VERSION=""
20327         fi
20328
20329         #
20330         # Check for Python include path
20331         #
20332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20333 $as_echo_n "checking for Python include path... " >&6; }
20334         if test -z "$PYTHON_CPPFLAGS"; then
20335                 python_path=`$PYTHON -c "import distutils.sysconfig; \
20336                         print (distutils.sysconfig.get_python_inc ());"`
20337                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
20338                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
20339                 if test -n "${python_path}"; then
20340                         if test "${plat_python_path}" != "${python_path}"; then
20341                                 python_path="-I$python_path -I$plat_python_path"
20342                         else
20343                                 python_path="-I$python_path"
20344                         fi
20345                 fi
20346                 PYTHON_CPPFLAGS=$python_path
20347         fi
20348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
20349 $as_echo "$PYTHON_CPPFLAGS" >&6; }
20350
20351
20352         #
20353         # Check for Python library path
20354         #
20355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
20356 $as_echo_n "checking for Python library path... " >&6; }
20357         if test -z "$PYTHON_LDFLAGS"; then
20358                 # (makes two attempts to ensure we've got a version number
20359                 # from the interpreter)
20360                 ac_python_version=`cat<<EOD | $PYTHON -
20361
20362 # join all versioning strings, on some systems
20363 # major/minor numbers could be in different list elements
20364 from distutils.sysconfig import *
20365 e = get_config_var('VERSION')
20366 if e is not None:
20367         print(e)
20368 EOD`
20369
20370                 if test -z "$ac_python_version"; then
20371                         if test -n "$PYTHON_VERSION"; then
20372                                 ac_python_version=$PYTHON_VERSION
20373                         else
20374                                 ac_python_version=`$PYTHON -c "import sys; \
20375                                         print (sys.version[:3])"`
20376                         fi
20377                 fi
20378
20379                 # Make the versioning information available to the compiler
20380
20381 cat >>confdefs.h <<_ACEOF
20382 #define HAVE_PYTHON "$ac_python_version"
20383 _ACEOF
20384
20385
20386                 # First, the library directory:
20387                 ac_python_libdir=`cat<<EOD | $PYTHON -
20388
20389 # There should be only one
20390 import distutils.sysconfig
20391 e = distutils.sysconfig.get_config_var('LIBDIR')
20392 if e is not None:
20393         print (e)
20394 EOD`
20395
20396                 # Now, for the library:
20397                 ac_python_library=`cat<<EOD | $PYTHON -
20398
20399 import distutils.sysconfig
20400 c = distutils.sysconfig.get_config_vars()
20401 if 'LDVERSION' in c:
20402         print ('python'+c['LDVERSION'])
20403 else:
20404         print ('python'+c['VERSION'])
20405 EOD`
20406
20407                 # This small piece shamelessly adapted from PostgreSQL python macro;
20408                 # credits goes to momjian, I think. I'd like to put the right name
20409                 # in the credits, if someone can point me in the right direction... ?
20410                 #
20411                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
20412                 then
20413                         # use the official shared library
20414                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
20415                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
20416                 else
20417                         # old way: use libpython from python_configdir
20418                         ac_python_libdir=`$PYTHON -c \
20419                           "from distutils.sysconfig import get_python_lib as f; \
20420                           import os; \
20421                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
20422                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
20423                 fi
20424
20425                 if test -z "PYTHON_LDFLAGS"; then
20426                         as_fn_error $? "
20427   Cannot determine location of your Python DSO. Please check it was installed with
20428   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
20429                         " "$LINENO" 5
20430                 fi
20431         fi
20432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20433 $as_echo "$PYTHON_LDFLAGS" >&6; }
20434
20435
20436         #
20437         # Check for site packages
20438         #
20439         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20440 $as_echo_n "checking for Python site-packages path... " >&6; }
20441         if test -z "$PYTHON_SITE_PKG"; then
20442                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20443                         print (distutils.sysconfig.get_python_lib(0,0));"`
20444         fi
20445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20446 $as_echo "$PYTHON_SITE_PKG" >&6; }
20447
20448
20449         #
20450         # libraries which must be linked in when embedding
20451         #
20452         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20453 $as_echo_n "checking python extra libraries... " >&6; }
20454         if test -z "$PYTHON_EXTRA_LIBS"; then
20455            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20456                 conf = distutils.sysconfig.get_config_var; \
20457                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20458         fi
20459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20460 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20461
20462
20463         #
20464         # linking flags needed when embedding
20465         #
20466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20467 $as_echo_n "checking python extra linking flags... " >&6; }
20468         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20469                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20470                         conf = distutils.sysconfig.get_config_var; \
20471                         print (conf('LINKFORSHARED'))"`
20472         fi
20473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20474 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20475
20476
20477         #
20478         # final check to see if everything compiles alright
20479         #
20480         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20481 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20482         # save current global flags
20483         ac_save_LIBS="$LIBS"
20484         ac_save_CPPFLAGS="$CPPFLAGS"
20485         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20486         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20487         ac_ext=c
20488 ac_cpp='$CPP $CPPFLAGS'
20489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492
20493         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h.  */
20495
20496                 #include <Python.h>
20497 int
20498 main ()
20499 {
20500 Py_Initialize();
20501   ;
20502   return 0;
20503 }
20504
20505 _ACEOF
20506 if ac_fn_c_try_link "$LINENO"; then :
20507   pythonexists=yes
20508 else
20509   pythonexists=no
20510 fi
20511 rm -f core conftest.err conftest.$ac_objext \
20512     conftest$ac_exeext conftest.$ac_ext
20513         ac_ext=c
20514 ac_cpp='$CPP $CPPFLAGS'
20515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20518
20519         # turn back to default flags
20520         CPPFLAGS="$ac_save_CPPFLAGS"
20521         LIBS="$ac_save_LIBS"
20522
20523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20524 $as_echo "$pythonexists" >&6; }
20525
20526         if test ! "x$pythonexists" = "xyes"; then
20527            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20528   Could not link test program to Python. Maybe the main Python library has been
20529   installed in some non-standard library path. If so, pass it to configure,
20530   via the LDFLAGS environment variable.
20531   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20532   ============================================================================
20533    You probably have to install the development version of the Python package
20534    for your distribution.  The exact name of this package varies among them.
20535   ============================================================================
20536            " >&5
20537 $as_echo "$as_me: WARNING:
20538   Could not link test program to Python. Maybe the main Python library has been
20539   installed in some non-standard library path. If so, pass it to configure,
20540   via the LDFLAGS environment variable.
20541   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20542   ============================================================================
20543    You probably have to install the development version of the Python package
20544    for your distribution.  The exact name of this package varies among them.
20545   ============================================================================
20546            " >&2;}
20547           PYTHON_VERSION=""
20548         fi
20549
20550         #
20551         # all done!
20552         #
20553
20554             if test "$PYTHON_VERSION"; then
20555                 PYTHONS="$(echo $PYTHONS $PYTHON)"
20556                 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20557             fi
20558         fi
20559
20560         if test "$PYTHON_VERSIONS"; then
20561            enabled_languages_v=$(echo $enabled_languages | sed "s/python\([23]\)\?/python ($PYTHON_VERSIONS)/")
20562            enabled_languages=$(echo $enabled_languages | sed "s/python\([23]\)\?/python/")
20563         else
20564             if test "$explicit_languages" = "1"; then
20565                 as_fn_error $? "
20566 ***
20567 *** Please install the python development packages.
20568 ***" "$LINENO" 5
20569             else
20570                 enabled_languages=$(echo $enabled_languages | sed 's/python//')
20571             fi
20572         fi
20573
20574         PYTHONS=$PYTHONS
20575
20576         PYTHON_VERSIONS=$PYTHON_VERSIONS
20577
20578     fi
20579 fi
20580
20581 ENABLED_LANGUAGES=$enabled_languages
20582
20583
20584 #
20585 # Provide information about the build.
20586 #
20587 BUILD_REVISION="f06220b"
20588
20589
20590 cat >>confdefs.h <<_ACEOF
20591 #define BUILD_REVISION "$BUILD_REVISION"
20592 _ACEOF
20593
20594
20595 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
20596 BUILD_FILEVERSION="${BUILD_FILEVERSION}61538"
20597
20598
20599 # Check whether --enable-build-timestamp was given.
20600 if test "${enable_build_timestamp+set}" = set; then :
20601   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
20602         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
20603       else
20604         BUILD_TIMESTAMP="$enableval"
20605       fi
20606 else
20607   BUILD_TIMESTAMP="<none>"
20608 fi
20609
20610
20611
20612 cat >>confdefs.h <<_ACEOF
20613 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
20614 _ACEOF
20615
20616
20617
20618 #
20619 # Options to disable some regression tests
20620 #
20621 run_gpgconf_test="yes"
20622 # Check whether --enable-gpgconf-test was given.
20623 if test "${enable_gpgconf_test+set}" = set; then :
20624   enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
20625 fi
20626
20627  if test "$run_gpgconf_test" = "yes"; then
20628   RUN_GPGCONF_TESTS_TRUE=
20629   RUN_GPGCONF_TESTS_FALSE='#'
20630 else
20631   RUN_GPGCONF_TESTS_TRUE='#'
20632   RUN_GPGCONF_TESTS_FALSE=
20633 fi
20634
20635
20636 run_gpg_test="yes"
20637 # Check whether --enable-gpg-test was given.
20638 if test "${enable_gpg_test+set}" = set; then :
20639   enableval=$enable_gpg_test; run_gpg_test=$enableval
20640 fi
20641
20642  if test "$run_gpg_test" = "yes"; then
20643   RUN_GPG_TESTS_TRUE=
20644   RUN_GPG_TESTS_FALSE='#'
20645 else
20646   RUN_GPG_TESTS_TRUE='#'
20647   RUN_GPG_TESTS_FALSE=
20648 fi
20649
20650
20651 run_gpgsm_test="yes"
20652 # Check whether --enable-gpgsm-test was given.
20653 if test "${enable_gpgsm_test+set}" = set; then :
20654   enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
20655 fi
20656
20657  if test "$run_gpgsm_test" = "yes"; then
20658   RUN_GPGSM_TESTS_TRUE=
20659   RUN_GPGSM_TESTS_FALSE='#'
20660 else
20661   RUN_GPGSM_TESTS_TRUE='#'
20662   RUN_GPGSM_TESTS_FALSE=
20663 fi
20664
20665
20666 run_g13_test="yes"
20667 # Check whether --enable-g13-test was given.
20668 if test "${enable_g13_test+set}" = set; then :
20669   enableval=$enable_g13_test; run_g13_test=$enableval
20670 fi
20671
20672  if test "$run_g13_test" = "yes"; then
20673   RUN_G13_TESTS_TRUE=
20674   RUN_G13_TESTS_FALSE='#'
20675 else
20676   RUN_G13_TESTS_TRUE='#'
20677   RUN_G13_TESTS_FALSE=
20678 fi
20679
20680
20681
20682 # Checks for header files.
20683
20684
20685
20686   for ac_header in $ac_header_list
20687 do :
20688   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20690 "
20691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20692   cat >>confdefs.h <<_ACEOF
20693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20694 _ACEOF
20695
20696 fi
20697
20698 done
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719 # Type checks.
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20721 $as_echo_n "checking for inline... " >&6; }
20722 if ${ac_cv_c_inline+:} false; then :
20723   $as_echo_n "(cached) " >&6
20724 else
20725   ac_cv_c_inline=no
20726 for ac_kw in inline __inline__ __inline; do
20727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20728 /* end confdefs.h.  */
20729 #ifndef __cplusplus
20730 typedef int foo_t;
20731 static $ac_kw foo_t static_foo () {return 0; }
20732 $ac_kw foo_t foo () {return 0; }
20733 #endif
20734
20735 _ACEOF
20736 if ac_fn_c_try_compile "$LINENO"; then :
20737   ac_cv_c_inline=$ac_kw
20738 fi
20739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740   test "$ac_cv_c_inline" != no && break
20741 done
20742
20743 fi
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20745 $as_echo "$ac_cv_c_inline" >&6; }
20746
20747 case $ac_cv_c_inline in
20748   inline | yes) ;;
20749   *)
20750     case $ac_cv_c_inline in
20751       no) ac_val=;;
20752       *) ac_val=$ac_cv_c_inline;;
20753     esac
20754     cat >>confdefs.h <<_ACEOF
20755 #ifndef __cplusplus
20756 #define inline $ac_val
20757 #endif
20758 _ACEOF
20759     ;;
20760 esac
20761
20762 # The cast to long int works around a bug in the HP C Compiler
20763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20765 # This bug is HP SR number 8606223364.
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20767 $as_echo_n "checking size of unsigned int... " >&6; }
20768 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20769   $as_echo_n "(cached) " >&6
20770 else
20771   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
20772
20773 else
20774   if test "$ac_cv_type_unsigned_int" = yes; then
20775      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20777 as_fn_error 77 "cannot compute sizeof (unsigned int)
20778 See \`config.log' for more details" "$LINENO" 5; }
20779    else
20780      ac_cv_sizeof_unsigned_int=0
20781    fi
20782 fi
20783
20784 fi
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20786 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20787
20788
20789
20790 cat >>confdefs.h <<_ACEOF
20791 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20792 _ACEOF
20793
20794
20795 # Check whether --enable-largefile was given.
20796 if test "${enable_largefile+set}" = set; then :
20797   enableval=$enable_largefile;
20798 fi
20799
20800 if test "$enable_largefile" != no; then
20801
20802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20803 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
20804 if ${ac_cv_sys_largefile_CC+:} false; then :
20805   $as_echo_n "(cached) " >&6
20806 else
20807   ac_cv_sys_largefile_CC=no
20808      if test "$GCC" != yes; then
20809        ac_save_CC=$CC
20810        while :; do
20811          # IRIX 6.2 and later do not support large files by default,
20812          # so use the C compiler's -n32 option if that helps.
20813          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20814 /* end confdefs.h.  */
20815 #include <sys/types.h>
20816  /* Check that off_t can represent 2**63 - 1 correctly.
20817     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20818     since some C++ compilers masquerading as C compilers
20819     incorrectly reject 9223372036854775807.  */
20820 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20821   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20822                        && LARGE_OFF_T % 2147483647 == 1)
20823                       ? 1 : -1];
20824 int
20825 main ()
20826 {
20827
20828   ;
20829   return 0;
20830 }
20831 _ACEOF
20832          if ac_fn_c_try_compile "$LINENO"; then :
20833   break
20834 fi
20835 rm -f core conftest.err conftest.$ac_objext
20836          CC="$CC -n32"
20837          if ac_fn_c_try_compile "$LINENO"; then :
20838   ac_cv_sys_largefile_CC=' -n32'; break
20839 fi
20840 rm -f core conftest.err conftest.$ac_objext
20841          break
20842        done
20843        CC=$ac_save_CC
20844        rm -f conftest.$ac_ext
20845     fi
20846 fi
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20848 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
20849   if test "$ac_cv_sys_largefile_CC" != no; then
20850     CC=$CC$ac_cv_sys_largefile_CC
20851   fi
20852
20853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20854 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20855 if ${ac_cv_sys_file_offset_bits+:} false; then :
20856   $as_echo_n "(cached) " >&6
20857 else
20858   while :; do
20859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20860 /* end confdefs.h.  */
20861 #include <sys/types.h>
20862  /* Check that off_t can represent 2**63 - 1 correctly.
20863     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20864     since some C++ compilers masquerading as C compilers
20865     incorrectly reject 9223372036854775807.  */
20866 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20867   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20868                        && LARGE_OFF_T % 2147483647 == 1)
20869                       ? 1 : -1];
20870 int
20871 main ()
20872 {
20873
20874   ;
20875   return 0;
20876 }
20877 _ACEOF
20878 if ac_fn_c_try_compile "$LINENO"; then :
20879   ac_cv_sys_file_offset_bits=no; break
20880 fi
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20883 /* end confdefs.h.  */
20884 #define _FILE_OFFSET_BITS 64
20885 #include <sys/types.h>
20886  /* Check that off_t can represent 2**63 - 1 correctly.
20887     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20888     since some C++ compilers masquerading as C compilers
20889     incorrectly reject 9223372036854775807.  */
20890 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20891   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20892                        && LARGE_OFF_T % 2147483647 == 1)
20893                       ? 1 : -1];
20894 int
20895 main ()
20896 {
20897
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 if ac_fn_c_try_compile "$LINENO"; then :
20903   ac_cv_sys_file_offset_bits=64; break
20904 fi
20905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906   ac_cv_sys_file_offset_bits=unknown
20907   break
20908 done
20909 fi
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20911 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
20912 case $ac_cv_sys_file_offset_bits in #(
20913   no | unknown) ;;
20914   *)
20915 cat >>confdefs.h <<_ACEOF
20916 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20917 _ACEOF
20918 ;;
20919 esac
20920 rm -rf conftest*
20921   if test $ac_cv_sys_file_offset_bits = unknown; then
20922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20923 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
20924 if ${ac_cv_sys_large_files+:} false; then :
20925   $as_echo_n "(cached) " >&6
20926 else
20927   while :; do
20928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20929 /* end confdefs.h.  */
20930 #include <sys/types.h>
20931  /* Check that off_t can represent 2**63 - 1 correctly.
20932     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20933     since some C++ compilers masquerading as C compilers
20934     incorrectly reject 9223372036854775807.  */
20935 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20936   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20937                        && LARGE_OFF_T % 2147483647 == 1)
20938                       ? 1 : -1];
20939 int
20940 main ()
20941 {
20942
20943   ;
20944   return 0;
20945 }
20946 _ACEOF
20947 if ac_fn_c_try_compile "$LINENO"; then :
20948   ac_cv_sys_large_files=no; break
20949 fi
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20952 /* end confdefs.h.  */
20953 #define _LARGE_FILES 1
20954 #include <sys/types.h>
20955  /* Check that off_t can represent 2**63 - 1 correctly.
20956     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20957     since some C++ compilers masquerading as C compilers
20958     incorrectly reject 9223372036854775807.  */
20959 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20960   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20961                        && LARGE_OFF_T % 2147483647 == 1)
20962                       ? 1 : -1];
20963 int
20964 main ()
20965 {
20966
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 if ac_fn_c_try_compile "$LINENO"; then :
20972   ac_cv_sys_large_files=1; break
20973 fi
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975   ac_cv_sys_large_files=unknown
20976   break
20977 done
20978 fi
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20980 $as_echo "$ac_cv_sys_large_files" >&6; }
20981 case $ac_cv_sys_large_files in #(
20982   no | unknown) ;;
20983   *)
20984 cat >>confdefs.h <<_ACEOF
20985 #define _LARGE_FILES $ac_cv_sys_large_files
20986 _ACEOF
20987 ;;
20988 esac
20989 rm -rf conftest*
20990   fi
20991
20992
20993 fi
20994
20995 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20996 if test "x$ac_cv_type_off_t" = xyes; then :
20997
20998 else
20999
21000 cat >>confdefs.h <<_ACEOF
21001 #define off_t long int
21002 _ACEOF
21003
21004 fi
21005
21006
21007   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
21008 if test "x$ac_cv_type_uintptr_t" = xyes; then :
21009
21010 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
21011
21012 else
21013   for ac_type in 'unsigned int' 'unsigned long int' \
21014         'unsigned long long int'; do
21015        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016 /* end confdefs.h.  */
21017 $ac_includes_default
21018 int
21019 main ()
21020 {
21021 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
21022 test_array [0] = 0;
21023 return test_array [0];
21024
21025   ;
21026   return 0;
21027 }
21028 _ACEOF
21029 if ac_fn_c_try_compile "$LINENO"; then :
21030
21031 cat >>confdefs.h <<_ACEOF
21032 #define uintptr_t $ac_type
21033 _ACEOF
21034
21035           ac_type=
21036 fi
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038        test -z "$ac_type" && break
21039      done
21040 fi
21041
21042
21043
21044 # A simple compile time check in gpgme.h for GNU/Linux systems that
21045 # prevents a file offset bits mismatch between gpgme and the application.
21046 NEED__FILE_OFFSET_BITS=0
21047 if test "$have_w32_system" != yes; then
21048   case "$ac_cv_sys_file_offset_bits" in
21049     "" | no | unknown) ;;
21050     *)
21051     NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
21052     ;;
21053   esac
21054 fi
21055
21056
21057 # Figure out platform dependent typedefs for gpgme.h
21058 if test "$have_w32_system" = yes; then
21059     INSERT__TYPEDEFS_FOR_GPGME_H="
21060 #ifdef _WIN64
21061 # include <stdint.h>
21062   typedef int64_t gpgme_off_t;
21063   typedef int64_t gpgme_ssize_t;
21064 #else /* _WIN32 */
21065   typedef long gpgme_off_t;
21066   typedef long gpgme_ssize_t;
21067 #endif /* _WIN32 */"
21068     API__OFF_T="gpgme_off_t"
21069     API__SSIZE_T="gpgme_ssize_t"
21070 else
21071     INSERT__TYPEDEFS_FOR_GPGME_H="
21072 #include <sys/types.h>
21073 typedef off_t   gpgme_off_t;
21074 typedef ssize_t gpgme_ssize_t;"
21075     API__OFF_T="off_t"
21076     API__SSIZE_T="ssize_t"
21077 fi
21078
21079
21080
21081
21082
21083
21084
21085 # Checks for compiler features.
21086 if test "$GCC" = yes; then
21087     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
21088     if test "$USE_MAINTAINER_MODE" = "yes"; then
21089         CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
21090
21091         # If -Wno-missing-field-initializers is supported we can enable a
21092         # a bunch of really useful warnings.
21093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
21094 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
21095         _gcc_cflags_save=$CFLAGS
21096         CFLAGS="-Wno-missing-field-initializers"
21097         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098 /* end confdefs.h.  */
21099
21100 int
21101 main ()
21102 {
21103
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 if ac_fn_c_try_compile "$LINENO"; then :
21109   _gcc_wopt=yes
21110 else
21111   _gcc_wopt=no
21112 fi
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
21115 $as_echo "$_gcc_wopt" >&6; }
21116         CFLAGS=$_gcc_cflags_save;
21117         if test x"$_gcc_wopt" = xyes ; then
21118           CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
21119           CFLAGS="$CFLAGS -Wwrite-strings"
21120           CFLAGS="$CFLAGS -Wdeclaration-after-statement"
21121           CFLAGS="$CFLAGS -Wno-missing-field-initializers"
21122           CFLAGS="$CFLAGS -Wno-sign-compare"
21123         fi
21124         CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
21125
21126         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
21127 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
21128         _gcc_cflags_save=$CFLAGS
21129         CFLAGS="-Wpointer-arith"
21130         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h.  */
21132
21133 int
21134 main ()
21135 {
21136
21137   ;
21138   return 0;
21139 }
21140 _ACEOF
21141 if ac_fn_c_try_compile "$LINENO"; then :
21142   _gcc_wopt=yes
21143 else
21144   _gcc_wopt=no
21145 fi
21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
21148 $as_echo "$_gcc_wopt" >&6; }
21149         CFLAGS=$_gcc_cflags_save;
21150         if test x"$_gcc_wopt" = xyes ; then
21151           CFLAGS="$CFLAGS -Wpointer-arith"
21152         fi
21153     fi
21154     if test "$have_w32_system" = yes; then
21155        CFLAGS="$CFLAGS -mms-bitfields"
21156     fi
21157 fi
21158
21159 # Only used for debugging, so no serious test needed (for actual
21160 # functionality you have to test libc as well, this only tests the
21161 # compiler).
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
21163 $as_echo_n "checking for __thread... " >&6; }
21164 if ${gpgme_cv_tls_works+:} false; then :
21165   $as_echo_n "(cached) " >&6
21166 else
21167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h.  */
21169 __thread int foo;
21170 int
21171 main ()
21172 {
21173
21174   ;
21175   return 0;
21176 }
21177 _ACEOF
21178 if ac_fn_c_try_compile "$LINENO"; then :
21179   gpgme_cv_tls_works=yes
21180 else
21181   gpgme_cv_tls_works=no
21182 fi
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21184 fi
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
21186 $as_echo "$gpgme_cv_tls_works" >&6; }
21187 if test "$gpgme_cv_tls_works" = yes; then
21188
21189 $as_echo "#define HAVE_TLS 1" >>confdefs.h
21190
21191 fi
21192
21193
21194 # Checks for library functions.
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
21196 $as_echo "$as_me: checking for libraries" >&6;}
21197
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21199 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21200 if ${ac_cv_sys_largefile_source+:} false; then :
21201   $as_echo_n "(cached) " >&6
21202 else
21203   while :; do
21204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h.  */
21206 #include <sys/types.h> /* for off_t */
21207      #include <stdio.h>
21208 int
21209 main ()
21210 {
21211 int (*fp) (FILE *, off_t, int) = fseeko;
21212      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21213   ;
21214   return 0;
21215 }
21216 _ACEOF
21217 if ac_fn_c_try_link "$LINENO"; then :
21218   ac_cv_sys_largefile_source=no; break
21219 fi
21220 rm -f core conftest.err conftest.$ac_objext \
21221     conftest$ac_exeext conftest.$ac_ext
21222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h.  */
21224 #define _LARGEFILE_SOURCE 1
21225 #include <sys/types.h> /* for off_t */
21226      #include <stdio.h>
21227 int
21228 main ()
21229 {
21230 int (*fp) (FILE *, off_t, int) = fseeko;
21231      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21232   ;
21233   return 0;
21234 }
21235 _ACEOF
21236 if ac_fn_c_try_link "$LINENO"; then :
21237   ac_cv_sys_largefile_source=1; break
21238 fi
21239 rm -f core conftest.err conftest.$ac_objext \
21240     conftest$ac_exeext conftest.$ac_ext
21241   ac_cv_sys_largefile_source=unknown
21242   break
21243 done
21244 fi
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21246 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21247 case $ac_cv_sys_largefile_source in #(
21248   no | unknown) ;;
21249   *)
21250 cat >>confdefs.h <<_ACEOF
21251 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21252 _ACEOF
21253 ;;
21254 esac
21255 rm -rf conftest*
21256
21257 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21258 # in glibc 2.1.3, but that breaks too many other things.
21259 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21260 if test $ac_cv_sys_largefile_source != unknown; then
21261
21262 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21263
21264 fi
21265
21266
21267 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
21268 if test "x$ac_cv_func_vasprintf" = xyes; then :
21269   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
21270
21271 else
21272   case " $LIBOBJS " in
21273   *" vasprintf.$ac_objext "* ) ;;
21274   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
21275  ;;
21276 esac
21277
21278 fi
21279
21280
21281 if test "$ac_cv_func_vasprintf" != yes; then
21282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
21283 $as_echo_n "checking whether va_lists must be copied by value... " >&6; }
21284   if ${gnupg_cv_must_copy_va_byval+:} false; then :
21285   $as_echo_n "(cached) " >&6
21286 else
21287
21288     if test "$cross_compiling" = yes; then
21289       gnupg_cv_must_copy_va_byval=no
21290     else
21291       gnupg_cv_must_copy_va_byval=no
21292       if test "$cross_compiling" = yes; then :
21293   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21295 as_fn_error $? "cannot run test program while cross compiling
21296 See \`config.log' for more details" "$LINENO" 5; }
21297 else
21298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h.  */
21300
21301        #include <stdarg.h>
21302        void f (int i, ...)
21303        {
21304           va_list args1, args2;
21305           va_start (args1, i);
21306           args2 = args1;
21307           if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
21308             exit (1);
21309           va_end (args1);
21310           va_end (args2);
21311        }
21312
21313        int main()
21314        {
21315           f (0, 42);
21316             return 0;
21317        }
21318
21319 _ACEOF
21320 if ac_fn_c_try_run "$LINENO"; then :
21321   gnupg_cv_must_copy_va_byval=yes
21322 fi
21323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21324   conftest.$ac_objext conftest.beam conftest.$ac_ext
21325 fi
21326
21327     fi
21328
21329 fi
21330
21331   if test "$gnupg_cv_must_copy_va_byval" = yes; then
21332
21333 $as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
21334
21335   fi
21336   if test "$cross_compiling" = yes; then
21337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
21338 $as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
21339   else
21340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
21341 $as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
21342   fi
21343
21344 fi
21345
21346 # Try to find a thread-safe version of ttyname().
21347 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
21348 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
21349   ac_have_decl=1
21350 else
21351   ac_have_decl=0
21352 fi
21353
21354 cat >>confdefs.h <<_ACEOF
21355 #define HAVE_DECL_TTYNAME_R $ac_have_decl
21356 _ACEOF
21357
21358
21359   for ac_header in unistd.h
21360 do :
21361   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21362 if test "x$ac_cv_header_unistd_h" = xyes; then :
21363   cat >>confdefs.h <<_ACEOF
21364 #define HAVE_UNISTD_H 1
21365 _ACEOF
21366
21367 fi
21368
21369 done
21370
21371
21372
21373   if test $ac_cv_have_decl_ttyname_r = no; then
21374     HAVE_DECL_TTYNAME_R=0
21375   fi
21376
21377   for ac_func in ttyname_r
21378 do :
21379   ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
21380 if test "x$ac_cv_func_ttyname_r" = xyes; then :
21381   cat >>confdefs.h <<_ACEOF
21382 #define HAVE_TTYNAME_R 1
21383 _ACEOF
21384
21385 fi
21386 done
21387
21388   if test $ac_cv_func_ttyname_r = no; then
21389     HAVE_TTYNAME_R=0
21390     case " $LIBOBJS " in
21391   *" ttyname_r.$ac_objext "* ) ;;
21392   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
21393  ;;
21394 esac
21395
21396
21397 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
21398
21399   else
21400     HAVE_TTYNAME_R=1
21401             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
21402 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
21403 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
21404   $as_echo_n "(cached) " >&6
21405 else
21406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21407 /* end confdefs.h.  */
21408 #include <stddef.h>
21409               #include <unistd.h>
21410 int
21411 main ()
21412 {
21413 *ttyname_r (0, NULL, 0);
21414   ;
21415   return 0;
21416 }
21417
21418 _ACEOF
21419 if ac_fn_c_try_compile "$LINENO"; then :
21420   gnupg_cv_func_ttyname_r_posix=no
21421 else
21422   gnupg_cv_func_ttyname_r_posix=yes
21423 fi
21424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21425
21426 fi
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
21428 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
21429     if test $gnupg_cv_func_ttyname_r_posix = no; then
21430       case " $LIBOBJS " in
21431   *" ttyname_r.$ac_objext "* ) ;;
21432   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
21433  ;;
21434 esac
21435
21436       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
21437
21438     elif test "$have_android_system" = yes; then
21439       # Android has ttyname and ttyname_r but they are only stubs and
21440       # print an annoying warning message.  Thus we need to replace
21441       # ttyname_r with our own dummy function.
21442       case " $LIBOBJS " in
21443   *" ttyname_r.$ac_objext "* ) ;;
21444   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
21445  ;;
21446 esac
21447
21448       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
21449
21450     else
21451
21452 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
21453
21454
21455       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
21456 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
21457 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
21458   $as_echo_n "(cached) " >&6
21459 else
21460
21461                               case "$host_os" in
21462                       # Guess no on Solaris.
21463             solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
21464                       # Guess no on OSF/1.
21465             osf*)     gnupg_cv_func_ttyname_r_works="guessing no" ;;
21466                       # Guess yes otherwise.
21467             *)        gnupg_cv_func_ttyname_r_works="guessing yes" ;;
21468           esac
21469           if test "$cross_compiling" = yes; then :
21470   :
21471 else
21472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h.  */
21474
21475 #include <fcntl.h>
21476 #include <unistd.h>
21477 int
21478 main (void)
21479 {
21480   int result = 0;
21481   int fd;
21482   char buf[31]; /* use any size < 128 here */
21483
21484   fd = open ("/dev/tty", O_RDONLY);
21485   if (fd < 0)
21486     result |= 16;
21487   else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
21488     result |= 17;
21489   else if (ttyname_r (fd, buf, 1) == 0)
21490     result |= 18;
21491   return result;
21492 }
21493 _ACEOF
21494 if ac_fn_c_try_run "$LINENO"; then :
21495   gnupg_cv_func_ttyname_r_works=yes
21496 else
21497   case $? in
21498                17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
21499              esac
21500 fi
21501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21502   conftest.$ac_objext conftest.beam conftest.$ac_ext
21503 fi
21504
21505
21506 fi
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
21508 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
21509       case "$gnupg_cv_func_ttyname_r_works" in
21510         *yes) ;;
21511         *) case " $LIBOBJS " in
21512   *" ttyname_r.$ac_objext "* ) ;;
21513   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
21514  ;;
21515 esac
21516
21517            $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
21518
21519
21520 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
21521
21522            ;;
21523       esac
21524     fi
21525   fi
21526
21527 if test "$ac_cv_func_ttyname_r" != yes; then
21528   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21529 ***
21530 *** ttyname() is not thread-safe and ttyname_r() does not exist
21531 ***" >&5
21532 $as_echo "$as_me: WARNING:
21533 ***
21534 *** ttyname() is not thread-safe and ttyname_r() does not exist
21535 ***" >&2;}
21536 fi
21537
21538 # Try to find a thread-safe version of getenv().
21539 have_thread_safe_getenv=no
21540
21541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
21542 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
21543 if ${ac_cv_gnu_library_2_1+:} false; then :
21544   $as_echo_n "(cached) " >&6
21545 else
21546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21547 /* end confdefs.h.  */
21548
21549 #include <features.h>
21550 #ifdef __GNU_LIBRARY__
21551  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
21552   Lucky GNU user
21553  #endif
21554 #endif
21555
21556 _ACEOF
21557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21558   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21559   ac_cv_gnu_library_2_1=yes
21560 else
21561   ac_cv_gnu_library_2_1=no
21562 fi
21563 rm -f conftest*
21564
21565
21566
21567 fi
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
21569 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
21570
21571     GLIBC21="$ac_cv_gnu_library_2_1"
21572
21573
21574 if test $GLIBC21 = yes; then
21575   have_thread_safe_getenv=yes
21576 fi
21577 if test $have_thread_safe_getenv = yes; then
21578
21579 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
21580
21581 fi
21582 have_getenv_r=no
21583 for ac_func in getenv_r
21584 do :
21585   ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
21586 if test "x$ac_cv_func_getenv_r" = xyes; then :
21587   cat >>confdefs.h <<_ACEOF
21588 #define HAVE_GETENV_R 1
21589 _ACEOF
21590  have_getenv_r=yes
21591 fi
21592 done
21593
21594 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
21595   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21596 ***
21597 *** getenv() is not thread-safe and getenv_r() does not exist
21598 ***" >&5
21599 $as_echo "$as_me: WARNING:
21600 ***
21601 *** getenv() is not thread-safe and getenv_r() does not exist
21602 ***" >&2;}
21603 fi
21604
21605 # For converting time strings to seconds since Epoch, we need the timegm
21606 # function.
21607 for ac_func in timegm
21608 do :
21609   ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
21610 if test "x$ac_cv_func_timegm" = xyes; then :
21611   cat >>confdefs.h <<_ACEOF
21612 #define HAVE_TIMEGM 1
21613 _ACEOF
21614
21615 fi
21616 done
21617
21618 if test "$ac_cv_func_timegm" != yes; then
21619   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21620 ***
21621 *** timegm() not available - a non-thread-safe kludge will be used
21622 *** and the TZ variable might be changed at runtime.
21623 ***" >&5
21624 $as_echo "$as_me: WARNING:
21625 ***
21626 *** timegm() not available - a non-thread-safe kludge will be used
21627 *** and the TZ variable might be changed at runtime.
21628 ***" >&2;}
21629 fi
21630
21631 for ac_func in setlocale
21632 do :
21633   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
21634 if test "x$ac_cv_func_setlocale" = xyes; then :
21635   cat >>confdefs.h <<_ACEOF
21636 #define HAVE_SETLOCALE 1
21637 _ACEOF
21638
21639 fi
21640 done
21641
21642
21643 # Checking for libgpg-error.
21644 have_gpg_error=no
21645
21646   gpg_error_config_prefix=""
21647
21648 # Check whether --with-libgpg-error-prefix was given.
21649 if test "${with_libgpg_error_prefix+set}" = set; then :
21650   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
21651 fi
21652
21653
21654
21655 # Check whether --with-gpg-error-prefix was given.
21656 if test "${with_gpg_error_prefix+set}" = set; then :
21657   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
21658 fi
21659
21660
21661   if test x"${GPG_ERROR_CONFIG}" = x ; then
21662      if test x"${gpg_error_config_prefix}" != x ; then
21663         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
21664      else
21665        case "${SYSROOT}" in
21666          /*)
21667            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
21668              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
21669            fi
21670            ;;
21671          '')
21672            ;;
21673           *)
21674            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
21675 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
21676            ;;
21677        esac
21678      fi
21679   fi
21680
21681   # Extract the first word of "gpg-error-config", so it can be a program name with args.
21682 set dummy gpg-error-config; ac_word=$2
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21684 $as_echo_n "checking for $ac_word... " >&6; }
21685 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
21686   $as_echo_n "(cached) " >&6
21687 else
21688   case $GPG_ERROR_CONFIG in
21689   [\\/]* | ?:[\\/]*)
21690   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
21691   ;;
21692   *)
21693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21694 for as_dir in $PATH
21695 do
21696   IFS=$as_save_IFS
21697   test -z "$as_dir" && as_dir=.
21698     for ac_exec_ext in '' $ac_executable_extensions; do
21699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21700     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21702     break 2
21703   fi
21704 done
21705   done
21706 IFS=$as_save_IFS
21707
21708   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
21709   ;;
21710 esac
21711 fi
21712 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
21713 if test -n "$GPG_ERROR_CONFIG"; then
21714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
21715 $as_echo "$GPG_ERROR_CONFIG" >&6; }
21716 else
21717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21718 $as_echo "no" >&6; }
21719 fi
21720
21721
21722   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
21723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
21724 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
21725   ok=no
21726   if test "$GPG_ERROR_CONFIG" != "no" \
21727      && test -f "$GPG_ERROR_CONFIG" ; then
21728     req_major=`echo $min_gpg_error_version | \
21729                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
21730     req_minor=`echo $min_gpg_error_version | \
21731                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
21732     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
21733     major=`echo $gpg_error_config_version | \
21734                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
21735     minor=`echo $gpg_error_config_version | \
21736                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
21737     if test "$major" -gt "$req_major"; then
21738         ok=yes
21739     else
21740         if test "$major" -eq "$req_major"; then
21741             if test "$minor" -ge "$req_minor"; then
21742                ok=yes
21743             fi
21744         fi
21745     fi
21746   fi
21747   if test $ok = yes; then
21748     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
21749     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
21750     GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
21751     GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
21752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
21753 $as_echo "yes ($gpg_error_config_version)" >&6; }
21754     have_gpg_error=yes
21755     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
21756     if test x"$gpg_error_config_host" != xnone ; then
21757       if test x"$gpg_error_config_host" != x"$host" ; then
21758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21759 ***
21760 *** The config script $GPG_ERROR_CONFIG was
21761 *** built for $gpg_error_config_host and thus may not match the
21762 *** used host $host.
21763 *** You may want to use the configure option --with-gpg-error-prefix
21764 *** to specify a matching config script or use \$SYSROOT.
21765 ***" >&5
21766 $as_echo "$as_me: WARNING:
21767 ***
21768 *** The config script $GPG_ERROR_CONFIG was
21769 *** built for $gpg_error_config_host and thus may not match the
21770 *** used host $host.
21771 *** You may want to use the configure option --with-gpg-error-prefix
21772 *** to specify a matching config script or use \$SYSROOT.
21773 ***" >&2;}
21774         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
21775       fi
21776     fi
21777   else
21778     GPG_ERROR_CFLAGS=""
21779     GPG_ERROR_LIBS=""
21780     GPG_ERROR_MT_CFLAGS=""
21781     GPG_ERROR_MT_LIBS=""
21782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21783 $as_echo "no" >&6; }
21784     have_gpg_error=no
21785   fi
21786
21787
21788
21789
21790
21791
21792 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
21793
21794
21795 # And for libassuan.
21796 have_libassuan=no
21797
21798
21799 # Check whether --with-libassuan-prefix was given.
21800 if test "${with_libassuan_prefix+set}" = set; then :
21801   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
21802 else
21803   libassuan_config_prefix=""
21804 fi
21805
21806   if test x$libassuan_config_prefix != x ; then
21807     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
21808     if test x${LIBASSUAN_CONFIG+set} != xset ; then
21809       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
21810     fi
21811   fi
21812
21813   if test -n "$ac_tool_prefix"; then
21814   # Extract the first word of "${ac_tool_prefix}libassuan-config", so it can be a program name with args.
21815 set dummy ${ac_tool_prefix}libassuan-config; ac_word=$2
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21817 $as_echo_n "checking for $ac_word... " >&6; }
21818 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
21819   $as_echo_n "(cached) " >&6
21820 else
21821   case $LIBASSUAN_CONFIG in
21822   [\\/]* | ?:[\\/]*)
21823   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
21824   ;;
21825   *)
21826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827 for as_dir in $PATH
21828 do
21829   IFS=$as_save_IFS
21830   test -z "$as_dir" && as_dir=.
21831     for ac_exec_ext in '' $ac_executable_extensions; do
21832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21833     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21835     break 2
21836   fi
21837 done
21838   done
21839 IFS=$as_save_IFS
21840
21841   ;;
21842 esac
21843 fi
21844 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
21845 if test -n "$LIBASSUAN_CONFIG"; then
21846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
21847 $as_echo "$LIBASSUAN_CONFIG" >&6; }
21848 else
21849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21851 fi
21852
21853
21854 fi
21855 if test -z "$ac_cv_path_LIBASSUAN_CONFIG"; then
21856   ac_pt_LIBASSUAN_CONFIG=$LIBASSUAN_CONFIG
21857   # Extract the first word of "libassuan-config", so it can be a program name with args.
21858 set dummy libassuan-config; ac_word=$2
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21860 $as_echo_n "checking for $ac_word... " >&6; }
21861 if ${ac_cv_path_ac_pt_LIBASSUAN_CONFIG+:} false; then :
21862   $as_echo_n "(cached) " >&6
21863 else
21864   case $ac_pt_LIBASSUAN_CONFIG in
21865   [\\/]* | ?:[\\/]*)
21866   ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$ac_pt_LIBASSUAN_CONFIG" # Let the user override the test with a path.
21867   ;;
21868   *)
21869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21870 for as_dir in $PATH
21871 do
21872   IFS=$as_save_IFS
21873   test -z "$as_dir" && as_dir=.
21874     for ac_exec_ext in '' $ac_executable_extensions; do
21875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21876     ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21878     break 2
21879   fi
21880 done
21881   done
21882 IFS=$as_save_IFS
21883
21884   ;;
21885 esac
21886 fi
21887 ac_pt_LIBASSUAN_CONFIG=$ac_cv_path_ac_pt_LIBASSUAN_CONFIG
21888 if test -n "$ac_pt_LIBASSUAN_CONFIG"; then
21889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBASSUAN_CONFIG" >&5
21890 $as_echo "$ac_pt_LIBASSUAN_CONFIG" >&6; }
21891 else
21892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21893 $as_echo "no" >&6; }
21894 fi
21895
21896   if test "x$ac_pt_LIBASSUAN_CONFIG" = x; then
21897     LIBASSUAN_CONFIG="no"
21898   else
21899     case $cross_compiling:$ac_tool_warned in
21900 yes:)
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21903 ac_tool_warned=yes ;;
21904 esac
21905     LIBASSUAN_CONFIG=$ac_pt_LIBASSUAN_CONFIG
21906   fi
21907 else
21908   LIBASSUAN_CONFIG="$ac_cv_path_LIBASSUAN_CONFIG"
21909 fi
21910
21911
21912   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
21913   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
21914     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
21915     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
21916   else
21917     req_libassuan_api=0
21918     min_libassuan_version="$tmp"
21919   fi
21920
21921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
21922 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
21923   ok=no
21924   if test "$LIBASSUAN_CONFIG" != "no" \
21925      && test -f "$LIBASSUAN_CONFIG" ; then
21926     req_major=`echo $min_libassuan_version | \
21927                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
21928     req_minor=`echo $min_libassuan_version | \
21929                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
21930     req_micro=`echo $min_libassuan_version | \
21931                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
21932
21933     libassuan_config_version=`$LIBASSUAN_CONFIG --version`
21934     major=`echo $libassuan_config_version | \
21935                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
21936     minor=`echo $libassuan_config_version | \
21937                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
21938     micro=`echo $libassuan_config_version | \
21939                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
21940
21941     if test "$major" -gt "$req_major"; then
21942         ok=yes
21943     else
21944         if test "$major" -eq "$req_major"; then
21945             if test "$minor" -gt "$req_minor"; then
21946                ok=yes
21947             else
21948                if test "$minor" -eq "$req_minor"; then
21949                    if test "$micro" -ge "$req_micro"; then
21950                      ok=yes
21951                    fi
21952                fi
21953             fi
21954         fi
21955     fi
21956   fi
21957
21958   if test $ok = yes; then
21959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
21960 $as_echo "yes ($libassuan_config_version)" >&6; }
21961   else
21962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963 $as_echo "no" >&6; }
21964   fi
21965
21966   if test $ok = yes; then
21967     if test "$req_libassuan_api" -gt 0 ; then
21968       tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
21969       if test "$tmp" -gt 0 ; then
21970         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
21971 $as_echo_n "checking LIBASSUAN API version... " >&6; }
21972         if test "$req_libassuan_api" -eq "$tmp" ; then
21973           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
21974 $as_echo "okay" >&6; }
21975         else
21976           ok=no
21977           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
21978 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
21979         fi
21980       fi
21981     fi
21982   fi
21983
21984   if test $ok = yes; then
21985     if test x"$host" != x ; then
21986       libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
21987       if test x"$libassuan_config_host" != xnone ; then
21988         if test x"$libassuan_config_host" != x"$host" ; then
21989   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21990 ***
21991 *** The config script $LIBASSUAN_CONFIG was
21992 *** built for $libassuan_config_host and thus may not match the
21993 *** used host $host.
21994 *** You may want to use the configure option --with-libassuan-prefix
21995 *** to specify a matching config script.
21996 ***" >&5
21997 $as_echo "$as_me: WARNING:
21998 ***
21999 *** The config script $LIBASSUAN_CONFIG was
22000 *** built for $libassuan_config_host and thus may not match the
22001 *** used host $host.
22002 *** You may want to use the configure option --with-libassuan-prefix
22003 *** to specify a matching config script.
22004 ***" >&2;}
22005         fi
22006       fi
22007     fi
22008   fi
22009
22010   if test $ok = yes; then
22011     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
22012     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
22013     have_libassuan=yes
22014   else
22015     LIBASSUAN_CFLAGS=""
22016     LIBASSUAN_LIBS=""
22017     have_libassuan=no
22018   fi
22019
22020
22021
22022 if test "$have_libassuan" = "yes"; then
22023
22024 cat >>confdefs.h <<_ACEOF
22025 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
22026 _ACEOF
22027
22028 fi
22029
22030
22031 #
22032 # Other checks
22033 #
22034
22035 # Check for funopen
22036 for ac_func in funopen
22037 do :
22038   ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
22039 if test "x$ac_cv_func_funopen" = xyes; then :
22040   cat >>confdefs.h <<_ACEOF
22041 #define HAVE_FUNOPEN 1
22042 _ACEOF
22043
22044 fi
22045 done
22046
22047 if test $ac_cv_func_funopen != yes; then
22048     # No funopen but we can implement that in terms of fopencookie.
22049     for ac_func in fopencookie
22050 do :
22051   ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
22052 if test "x$ac_cv_func_fopencookie" = xyes; then :
22053   cat >>confdefs.h <<_ACEOF
22054 #define HAVE_FOPENCOOKIE 1
22055 _ACEOF
22056
22057 fi
22058 done
22059
22060     if test $ac_cv_func_fopencookie = yes; then
22061         ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
22062 if test "x$ac_cv_func_funopen" = xyes; then :
22063   $as_echo "#define HAVE_FUNOPEN 1" >>confdefs.h
22064
22065 else
22066   case " $LIBOBJS " in
22067   *" funopen.$ac_objext "* ) ;;
22068   *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
22069  ;;
22070 esac
22071
22072 fi
22073
22074
22075     else
22076         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22077 ***
22078 *** No implementation of fopencookie or funopen available
22079 ***" >&5
22080 $as_echo "$as_me: WARNING:
22081 ***
22082 *** No implementation of fopencookie or funopen available
22083 ***" >&2;}
22084     fi
22085 fi
22086
22087 # Check for getgid etc
22088 for ac_func in getgid getegid
22089 do :
22090   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22093   cat >>confdefs.h <<_ACEOF
22094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22095 _ACEOF
22096
22097 fi
22098 done
22099
22100
22101
22102 # Replacement functions.
22103 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
22104 if test "x$ac_cv_func_stpcpy" = xyes; then :
22105   $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
22106
22107 else
22108   case " $LIBOBJS " in
22109   *" stpcpy.$ac_objext "* ) ;;
22110   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
22111  ;;
22112 esac
22113
22114 fi
22115
22116
22117 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
22118 if test "x$ac_cv_func_setenv" = xyes; then :
22119   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
22120
22121 else
22122   case " $LIBOBJS " in
22123   *" setenv.$ac_objext "* ) ;;
22124   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
22125  ;;
22126 esac
22127
22128 fi
22129
22130
22131
22132 # Assuan check for descriptor passing.
22133 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
22134 #include <stdlib.h>
22135 #include <stddef.h>
22136 #include <stdio.h>
22137 #include <sys/types.h>
22138 #include <sys/socket.h>
22139 #include <sys/un.h>
22140 #if HAVE_SYS_UIO_H
22141 #include <sys/uio.h>
22142 #endif
22143 #include <unistd.h>
22144
22145 "
22146 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
22147   supports_descriptor_passing=yes
22148 else
22149   supports_descriptor_passing=no
22150                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22151 ***
22152 *** Data structure for sending ancillary data missing.
22153 *** Descriptor passing won't work.
22154 ***" >&5
22155 $as_echo "$as_me: WARNING:
22156 ***
22157 *** Data structure for sending ancillary data missing.
22158 *** Descriptor passing won't work.
22159 ***" >&2;}
22160 fi
22161
22162
22163
22164 case "${host}" in
22165     *-apple-darwin*)
22166       use_descriptor_passing=no
22167       ;;
22168     *)
22169       use_descriptor_passing=yes
22170       ;;
22171 esac
22172 # Check whether --enable-fd-passing was given.
22173 if test "${enable_fd_passing+set}" = set; then :
22174   enableval=$enable_fd_passing; use_descriptor_passing=$enableval
22175 fi
22176
22177
22178 if test "$supports_descriptor_passing" != "yes"; then
22179   use_descriptor_passing=no
22180 fi
22181
22182 if test "$use_descriptor_passing" = "yes"; then
22183
22184 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
22185
22186 fi
22187
22188  if test "$use_descriptor_passing" = "yes"; then
22189   USE_DESCRIPTOR_PASSING_TRUE=
22190   USE_DESCRIPTOR_PASSING_FALSE='#'
22191 else
22192   USE_DESCRIPTOR_PASSING_TRUE='#'
22193   USE_DESCRIPTOR_PASSING_FALSE=
22194 fi
22195
22196
22197
22198 uiserver=no
22199 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
22200   uiserver=yes
22201 fi
22202 if test "$uiserver" != "no"; then
22203
22204 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
22205
22206 fi
22207  if test "$uiserver" != "no"; then
22208   HAVE_UISERVER_TRUE=
22209   HAVE_UISERVER_FALSE='#'
22210 else
22211   HAVE_UISERVER_TRUE='#'
22212   HAVE_UISERVER_FALSE=
22213 fi
22214
22215
22216
22217 # Add a few constants to help porting to W32
22218
22219
22220
22221
22222
22223 # Substitution used for gpgme-config
22224 GPGME_CONFIG_LIBS="-lgpgme"
22225 GPGME_CONFIG_CFLAGS=""
22226 GPGME_CONFIG_HOST="$host"
22227 GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
22228
22229
22230
22231
22232
22233
22234 # Frob'da Variables
22235 LTLIBOBJS=`echo "$LIBOBJS" |
22236            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
22237
22238
22239 # Some checks for gpgme-tool
22240 # Done at top: AC_CHECK_HEADER([argp.h])
22241 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
22242 "
22243 if test "x$ac_cv_type_error_t" = xyes; then :
22244
22245 cat >>confdefs.h <<_ACEOF
22246 #define HAVE_ERROR_T 1
22247 _ACEOF
22248
22249
22250 else
22251
22252 $as_echo "#define error_t int" >>confdefs.h
22253
22254 fi
22255
22256
22257
22258 # A substitution to set generated files in a Emacs buffer to read-only.
22259 emacs_local_vars_begin='Local Variables:'
22260
22261 emacs_local_vars_read_only='buffer-read-only: t'
22262
22263 emacs_local_vars_end='End:'
22264
22265
22266 # Last check.
22267 die=no
22268 if test "$have_gpg_error" = "no"; then
22269    die=yes
22270    { $as_echo "$as_me:${as_lineno-$LINENO}:
22271 ***
22272 *** You need libgpg-error to build this program.
22273 **  This library is for example available at
22274 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
22275 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
22276 ***" >&5
22277 $as_echo "$as_me:
22278 ***
22279 *** You need libgpg-error to build this program.
22280 **  This library is for example available at
22281 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
22282 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
22283 ***" >&6;}
22284 fi
22285 if test "$have_libassuan" = "no"; then
22286    die=yes
22287    { $as_echo "$as_me:${as_lineno-$LINENO}:
22288 ***
22289 *** You need libassuan to build this program.
22290 *** This library is for example available at
22291 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
22292 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
22293 ***" >&5
22294 $as_echo "$as_me:
22295 ***
22296 *** You need libassuan to build this program.
22297 *** This library is for example available at
22298 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
22299 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
22300 ***" >&6;}
22301 fi
22302
22303 if test "$die" = "yes"; then
22304     as_fn_error $? "
22305 ***
22306 *** Required libraries not found. Please consult the above messages
22307 *** and install them before running configure again.
22308 ***" "$LINENO" 5
22309 fi
22310
22311
22312 #
22313 # Create config files
22314
22315 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile tests/opassuan/Makefile doc/Makefile src/versioninfo.rc src/gpgme.h"
22316
22317 ac_config_files="$ac_config_files src/gpgme-config"
22318
22319 ac_config_files="$ac_config_files lang/cpp/Makefile lang/cpp/src/Makefile"
22320
22321 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig-w32.cmake.in"
22322
22323 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig.cmake.in"
22324
22325 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfigVersion.cmake"
22326
22327 ac_config_files="$ac_config_files lang/cpp/src/gpgmepp_version.h"
22328
22329 ac_config_files="$ac_config_files lang/qt/Makefile lang/qt/src/Makefile"
22330
22331 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig-w32.cmake.in"
22332
22333 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig.cmake.in"
22334
22335 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfigVersion.cmake"
22336
22337 ac_config_files="$ac_config_files lang/qt/tests/Makefile"
22338
22339 ac_config_files="$ac_config_files lang/qt/src/qgpgme_version.h"
22340
22341 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
22342
22343 if test -z "$HAVE_DOXYGEN_TRUE"; then :
22344   ac_config_files="$ac_config_files lang/qt/doc/Doxyfile"
22345
22346 fi
22347 ac_config_files="$ac_config_files lang/qt/doc/Makefile"
22348
22349 ac_config_files="$ac_config_files lang/python/Makefile lang/python/gpg/version.py lang/python/tests/Makefile"
22350
22351 ac_config_files="$ac_config_files lang/python/setup.py"
22352
22353 cat >confcache <<\_ACEOF
22354 # This file is a shell script that caches the results of configure
22355 # tests run on this system so they can be shared between configure
22356 # scripts and configure runs, see configure's option --config-cache.
22357 # It is not useful on other systems.  If it contains results you don't
22358 # want to keep, you may remove or edit it.
22359 #
22360 # config.status only pays attention to the cache file if you give it
22361 # the --recheck option to rerun configure.
22362 #
22363 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22364 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22365 # following values.
22366
22367 _ACEOF
22368
22369 # The following way of writing the cache mishandles newlines in values,
22370 # but we know of no workaround that is simple, portable, and efficient.
22371 # So, we kill variables containing newlines.
22372 # Ultrix sh set writes to stderr and can't be redirected directly,
22373 # and sets the high bit in the cache file unless we assign to the vars.
22374 (
22375   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22376     eval ac_val=\$$ac_var
22377     case $ac_val in #(
22378     *${as_nl}*)
22379       case $ac_var in #(
22380       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22382       esac
22383       case $ac_var in #(
22384       _ | IFS | as_nl) ;; #(
22385       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22386       *) { eval $ac_var=; unset $ac_var;} ;;
22387       esac ;;
22388     esac
22389   done
22390
22391   (set) 2>&1 |
22392     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22393     *${as_nl}ac_space=\ *)
22394       # `set' does not quote correctly, so add quotes: double-quote
22395       # substitution turns \\\\ into \\, and sed turns \\ into \.
22396       sed -n \
22397         "s/'/'\\\\''/g;
22398           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22399       ;; #(
22400     *)
22401       # `set' quotes correctly as required by POSIX, so do not add quotes.
22402       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22403       ;;
22404     esac |
22405     sort
22406 ) |
22407   sed '
22408      /^ac_cv_env_/b end
22409      t clear
22410      :clear
22411      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22412      t end
22413      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22414      :end' >>confcache
22415 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22416   if test -w "$cache_file"; then
22417     if test "x$cache_file" != "x/dev/null"; then
22418       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22419 $as_echo "$as_me: updating cache $cache_file" >&6;}
22420       if test ! -f "$cache_file" || test -h "$cache_file"; then
22421         cat confcache >"$cache_file"
22422       else
22423         case $cache_file in #(
22424         */* | ?:*)
22425           mv -f confcache "$cache_file"$$ &&
22426           mv -f "$cache_file"$$ "$cache_file" ;; #(
22427         *)
22428           mv -f confcache "$cache_file" ;;
22429         esac
22430       fi
22431     fi
22432   else
22433     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22434 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22435   fi
22436 fi
22437 rm -f confcache
22438
22439 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22440 # Let make expand exec_prefix.
22441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22442
22443 DEFS=-DHAVE_CONFIG_H
22444
22445 ac_libobjs=
22446 ac_ltlibobjs=
22447 U=
22448 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22449   # 1. Remove the extension, and $U if already installed.
22450   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22451   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22452   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22453   #    will be set to the directory where LIBOBJS objects are built.
22454   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22455   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22456 done
22457 LIBOBJS=$ac_libobjs
22458
22459 LTLIBOBJS=$ac_ltlibobjs
22460
22461
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22463 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22464    if test -n "$am_sleep_pid"; then
22465      # Hide warnings about reused PIDs.
22466      wait $am_sleep_pid 2>/dev/null
22467    fi
22468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22469 $as_echo "done" >&6; }
22470  if test -n "$EXEEXT"; then
22471   am__EXEEXT_TRUE=
22472   am__EXEEXT_FALSE='#'
22473 else
22474   am__EXEEXT_TRUE='#'
22475   am__EXEEXT_FALSE=
22476 fi
22477
22478 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22479   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22481 fi
22482 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22483   as_fn_error $? "conditional \"AMDEP\" was never defined.
22484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22485 fi
22486 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22487   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22489 fi
22490 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22491   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22493 fi
22494 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22495   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22497 fi
22498 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
22499   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
22500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22501 fi
22502 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
22503   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
22504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22505 fi
22506 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
22507   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
22508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22509 fi
22510 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
22511   as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
22512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22513 fi
22514 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
22515   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
22516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22517 fi
22518 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
22519   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
22520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22521 fi
22522 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
22523   as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
22524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22525 fi
22526 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
22527   as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
22528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22529 fi
22530 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
22531   as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
22532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22533 fi
22534 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
22535   as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
22536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22537 fi
22538 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
22539   as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
22540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22541 fi
22542 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
22543   as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
22544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22545 fi
22546 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
22547   as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
22548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22549 fi
22550 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
22551   as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
22552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22553 fi
22554
22555 : "${CONFIG_STATUS=./config.status}"
22556 ac_write_fail=0
22557 ac_clean_files_save=$ac_clean_files
22558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22560 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22561 as_write_fail=0
22562 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22563 #! $SHELL
22564 # Generated by $as_me.
22565 # Run this file to recreate the current configuration.
22566 # Compiler output produced by configure, useful for debugging
22567 # configure, is in config.log if it exists.
22568
22569 debug=false
22570 ac_cs_recheck=false
22571 ac_cs_silent=false
22572
22573 SHELL=\${CONFIG_SHELL-$SHELL}
22574 export SHELL
22575 _ASEOF
22576 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22577 ## -------------------- ##
22578 ## M4sh Initialization. ##
22579 ## -------------------- ##
22580
22581 # Be more Bourne compatible
22582 DUALCASE=1; export DUALCASE # for MKS sh
22583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22584   emulate sh
22585   NULLCMD=:
22586   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22587   # is contrary to our usage.  Disable this feature.
22588   alias -g '${1+"$@"}'='"$@"'
22589   setopt NO_GLOB_SUBST
22590 else
22591   case `(set -o) 2>/dev/null` in #(
22592   *posix*) :
22593     set -o posix ;; #(
22594   *) :
22595      ;;
22596 esac
22597 fi
22598
22599
22600 as_nl='
22601 '
22602 export as_nl
22603 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22604 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22607 # Prefer a ksh shell builtin over an external printf program on Solaris,
22608 # but without wasting forks for bash or zsh.
22609 if test -z "$BASH_VERSION$ZSH_VERSION" \
22610     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22611   as_echo='print -r --'
22612   as_echo_n='print -rn --'
22613 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22614   as_echo='printf %s\n'
22615   as_echo_n='printf %s'
22616 else
22617   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22618     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22619     as_echo_n='/usr/ucb/echo -n'
22620   else
22621     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22622     as_echo_n_body='eval
22623       arg=$1;
22624       case $arg in #(
22625       *"$as_nl"*)
22626         expr "X$arg" : "X\\(.*\\)$as_nl";
22627         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22628       esac;
22629       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22630     '
22631     export as_echo_n_body
22632     as_echo_n='sh -c $as_echo_n_body as_echo'
22633   fi
22634   export as_echo_body
22635   as_echo='sh -c $as_echo_body as_echo'
22636 fi
22637
22638 # The user is always right.
22639 if test "${PATH_SEPARATOR+set}" != set; then
22640   PATH_SEPARATOR=:
22641   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22642     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22643       PATH_SEPARATOR=';'
22644   }
22645 fi
22646
22647
22648 # IFS
22649 # We need space, tab and new line, in precisely that order.  Quoting is
22650 # there to prevent editors from complaining about space-tab.
22651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22652 # splitting by setting IFS to empty value.)
22653 IFS=" ""        $as_nl"
22654
22655 # Find who we are.  Look in the path if we contain no directory separator.
22656 as_myself=
22657 case $0 in #((
22658   *[\\/]* ) as_myself=$0 ;;
22659   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22660 for as_dir in $PATH
22661 do
22662   IFS=$as_save_IFS
22663   test -z "$as_dir" && as_dir=.
22664     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22665   done
22666 IFS=$as_save_IFS
22667
22668      ;;
22669 esac
22670 # We did not find ourselves, most probably we were run as `sh COMMAND'
22671 # in which case we are not to be found in the path.
22672 if test "x$as_myself" = x; then
22673   as_myself=$0
22674 fi
22675 if test ! -f "$as_myself"; then
22676   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22677   exit 1
22678 fi
22679
22680 # Unset variables that we do not need and which cause bugs (e.g. in
22681 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22682 # suppresses any "Segmentation fault" message there.  '((' could
22683 # trigger a bug in pdksh 5.2.14.
22684 for as_var in BASH_ENV ENV MAIL MAILPATH
22685 do eval test x\${$as_var+set} = xset \
22686   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22687 done
22688 PS1='$ '
22689 PS2='> '
22690 PS4='+ '
22691
22692 # NLS nuisances.
22693 LC_ALL=C
22694 export LC_ALL
22695 LANGUAGE=C
22696 export LANGUAGE
22697
22698 # CDPATH.
22699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22700
22701
22702 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22703 # ----------------------------------------
22704 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22705 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22706 # script with STATUS, using 1 if that was 0.
22707 as_fn_error ()
22708 {
22709   as_status=$1; test $as_status -eq 0 && as_status=1
22710   if test "$4"; then
22711     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22712     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22713   fi
22714   $as_echo "$as_me: error: $2" >&2
22715   as_fn_exit $as_status
22716 } # as_fn_error
22717
22718
22719 # as_fn_set_status STATUS
22720 # -----------------------
22721 # Set $? to STATUS, without forking.
22722 as_fn_set_status ()
22723 {
22724   return $1
22725 } # as_fn_set_status
22726
22727 # as_fn_exit STATUS
22728 # -----------------
22729 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22730 as_fn_exit ()
22731 {
22732   set +e
22733   as_fn_set_status $1
22734   exit $1
22735 } # as_fn_exit
22736
22737 # as_fn_unset VAR
22738 # ---------------
22739 # Portably unset VAR.
22740 as_fn_unset ()
22741 {
22742   { eval $1=; unset $1;}
22743 }
22744 as_unset=as_fn_unset
22745 # as_fn_append VAR VALUE
22746 # ----------------------
22747 # Append the text in VALUE to the end of the definition contained in VAR. Take
22748 # advantage of any shell optimizations that allow amortized linear growth over
22749 # repeated appends, instead of the typical quadratic growth present in naive
22750 # implementations.
22751 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22752   eval 'as_fn_append ()
22753   {
22754     eval $1+=\$2
22755   }'
22756 else
22757   as_fn_append ()
22758   {
22759     eval $1=\$$1\$2
22760   }
22761 fi # as_fn_append
22762
22763 # as_fn_arith ARG...
22764 # ------------------
22765 # Perform arithmetic evaluation on the ARGs, and store the result in the
22766 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22767 # must be portable across $(()) and expr.
22768 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22769   eval 'as_fn_arith ()
22770   {
22771     as_val=$(( $* ))
22772   }'
22773 else
22774   as_fn_arith ()
22775   {
22776     as_val=`expr "$@" || test $? -eq 1`
22777   }
22778 fi # as_fn_arith
22779
22780
22781 if expr a : '\(a\)' >/dev/null 2>&1 &&
22782    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22783   as_expr=expr
22784 else
22785   as_expr=false
22786 fi
22787
22788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22789   as_basename=basename
22790 else
22791   as_basename=false
22792 fi
22793
22794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22795   as_dirname=dirname
22796 else
22797   as_dirname=false
22798 fi
22799
22800 as_me=`$as_basename -- "$0" ||
22801 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22802          X"$0" : 'X\(//\)$' \| \
22803          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22804 $as_echo X/"$0" |
22805     sed '/^.*\/\([^/][^/]*\)\/*$/{
22806             s//\1/
22807             q
22808           }
22809           /^X\/\(\/\/\)$/{
22810             s//\1/
22811             q
22812           }
22813           /^X\/\(\/\).*/{
22814             s//\1/
22815             q
22816           }
22817           s/.*/./; q'`
22818
22819 # Avoid depending upon Character Ranges.
22820 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22821 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22822 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22823 as_cr_digits='0123456789'
22824 as_cr_alnum=$as_cr_Letters$as_cr_digits
22825
22826 ECHO_C= ECHO_N= ECHO_T=
22827 case `echo -n x` in #(((((
22828 -n*)
22829   case `echo 'xy\c'` in
22830   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22831   xy)  ECHO_C='\c';;
22832   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22833        ECHO_T=' ';;
22834   esac;;
22835 *)
22836   ECHO_N='-n';;
22837 esac
22838
22839 rm -f conf$$ conf$$.exe conf$$.file
22840 if test -d conf$$.dir; then
22841   rm -f conf$$.dir/conf$$.file
22842 else
22843   rm -f conf$$.dir
22844   mkdir conf$$.dir 2>/dev/null
22845 fi
22846 if (echo >conf$$.file) 2>/dev/null; then
22847   if ln -s conf$$.file conf$$ 2>/dev/null; then
22848     as_ln_s='ln -s'
22849     # ... but there are two gotchas:
22850     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22851     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22852     # In both cases, we have to default to `cp -pR'.
22853     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22854       as_ln_s='cp -pR'
22855   elif ln conf$$.file conf$$ 2>/dev/null; then
22856     as_ln_s=ln
22857   else
22858     as_ln_s='cp -pR'
22859   fi
22860 else
22861   as_ln_s='cp -pR'
22862 fi
22863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22864 rmdir conf$$.dir 2>/dev/null
22865
22866
22867 # as_fn_mkdir_p
22868 # -------------
22869 # Create "$as_dir" as a directory, including parents if necessary.
22870 as_fn_mkdir_p ()
22871 {
22872
22873   case $as_dir in #(
22874   -*) as_dir=./$as_dir;;
22875   esac
22876   test -d "$as_dir" || eval $as_mkdir_p || {
22877     as_dirs=
22878     while :; do
22879       case $as_dir in #(
22880       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22881       *) as_qdir=$as_dir;;
22882       esac
22883       as_dirs="'$as_qdir' $as_dirs"
22884       as_dir=`$as_dirname -- "$as_dir" ||
22885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22886          X"$as_dir" : 'X\(//\)[^/]' \| \
22887          X"$as_dir" : 'X\(//\)$' \| \
22888          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22889 $as_echo X"$as_dir" |
22890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22891             s//\1/
22892             q
22893           }
22894           /^X\(\/\/\)[^/].*/{
22895             s//\1/
22896             q
22897           }
22898           /^X\(\/\/\)$/{
22899             s//\1/
22900             q
22901           }
22902           /^X\(\/\).*/{
22903             s//\1/
22904             q
22905           }
22906           s/.*/./; q'`
22907       test -d "$as_dir" && break
22908     done
22909     test -z "$as_dirs" || eval "mkdir $as_dirs"
22910   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22911
22912
22913 } # as_fn_mkdir_p
22914 if mkdir -p . 2>/dev/null; then
22915   as_mkdir_p='mkdir -p "$as_dir"'
22916 else
22917   test -d ./-p && rmdir ./-p
22918   as_mkdir_p=false
22919 fi
22920
22921
22922 # as_fn_executable_p FILE
22923 # -----------------------
22924 # Test if FILE is an executable regular file.
22925 as_fn_executable_p ()
22926 {
22927   test -f "$1" && test -x "$1"
22928 } # as_fn_executable_p
22929 as_test_x='test -x'
22930 as_executable_p=as_fn_executable_p
22931
22932 # Sed expression to map a string onto a valid CPP name.
22933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22934
22935 # Sed expression to map a string onto a valid variable name.
22936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22937
22938
22939 exec 6>&1
22940 ## ----------------------------------- ##
22941 ## Main body of $CONFIG_STATUS script. ##
22942 ## ----------------------------------- ##
22943 _ASEOF
22944 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22945
22946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22947 # Save the log message, to keep $0 and so on meaningful, and to
22948 # report actual input values of CONFIG_FILES etc. instead of their
22949 # values after options handling.
22950 ac_log="
22951 This file was extended by gpgme $as_me 1.8.0, which was
22952 generated by GNU Autoconf 2.69.  Invocation command line was
22953
22954   CONFIG_FILES    = $CONFIG_FILES
22955   CONFIG_HEADERS  = $CONFIG_HEADERS
22956   CONFIG_LINKS    = $CONFIG_LINKS
22957   CONFIG_COMMANDS = $CONFIG_COMMANDS
22958   $ $0 $@
22959
22960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22961 "
22962
22963 _ACEOF
22964
22965 case $ac_config_files in *"
22966 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22967 esac
22968
22969 case $ac_config_headers in *"
22970 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22971 esac
22972
22973
22974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22975 # Files that config.status was made for.
22976 config_files="$ac_config_files"
22977 config_headers="$ac_config_headers"
22978 config_commands="$ac_config_commands"
22979
22980 _ACEOF
22981
22982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22983 ac_cs_usage="\
22984 \`$as_me' instantiates files and other configuration actions
22985 from templates according to the current configuration.  Unless the files
22986 and actions are specified as TAGs, all are instantiated by default.
22987
22988 Usage: $0 [OPTION]... [TAG]...
22989
22990   -h, --help       print this help, then exit
22991   -V, --version    print version number and configuration settings, then exit
22992       --config     print configuration, then exit
22993   -q, --quiet, --silent
22994                    do not print progress messages
22995   -d, --debug      don't remove temporary files
22996       --recheck    update $as_me by reconfiguring in the same conditions
22997       --file=FILE[:TEMPLATE]
22998                    instantiate the configuration file FILE
22999       --header=FILE[:TEMPLATE]
23000                    instantiate the configuration header FILE
23001
23002 Configuration files:
23003 $config_files
23004
23005 Configuration headers:
23006 $config_headers
23007
23008 Configuration commands:
23009 $config_commands
23010
23011 Report bugs to <http://bugs.gnupg.org>."
23012
23013 _ACEOF
23014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23015 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23016 ac_cs_version="\\
23017 gpgme config.status 1.8.0
23018 configured by $0, generated by GNU Autoconf 2.69,
23019   with options \\"\$ac_cs_config\\"
23020
23021 Copyright (C) 2012 Free Software Foundation, Inc.
23022 This config.status script is free software; the Free Software Foundation
23023 gives unlimited permission to copy, distribute and modify it."
23024
23025 ac_pwd='$ac_pwd'
23026 srcdir='$srcdir'
23027 INSTALL='$INSTALL'
23028 MKDIR_P='$MKDIR_P'
23029 AWK='$AWK'
23030 test -n "\$AWK" || AWK=awk
23031 _ACEOF
23032
23033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23034 # The default lists apply if the user does not specify any file.
23035 ac_need_defaults=:
23036 while test $# != 0
23037 do
23038   case $1 in
23039   --*=?*)
23040     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23041     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23042     ac_shift=:
23043     ;;
23044   --*=)
23045     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23046     ac_optarg=
23047     ac_shift=:
23048     ;;
23049   *)
23050     ac_option=$1
23051     ac_optarg=$2
23052     ac_shift=shift
23053     ;;
23054   esac
23055
23056   case $ac_option in
23057   # Handling of the options.
23058   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23059     ac_cs_recheck=: ;;
23060   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23061     $as_echo "$ac_cs_version"; exit ;;
23062   --config | --confi | --conf | --con | --co | --c )
23063     $as_echo "$ac_cs_config"; exit ;;
23064   --debug | --debu | --deb | --de | --d | -d )
23065     debug=: ;;
23066   --file | --fil | --fi | --f )
23067     $ac_shift
23068     case $ac_optarg in
23069     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23070     '') as_fn_error $? "missing file argument" ;;
23071     esac
23072     as_fn_append CONFIG_FILES " '$ac_optarg'"
23073     ac_need_defaults=false;;
23074   --header | --heade | --head | --hea )
23075     $ac_shift
23076     case $ac_optarg in
23077     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23078     esac
23079     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23080     ac_need_defaults=false;;
23081   --he | --h)
23082     # Conflict between --help and --header
23083     as_fn_error $? "ambiguous option: \`$1'
23084 Try \`$0 --help' for more information.";;
23085   --help | --hel | -h )
23086     $as_echo "$ac_cs_usage"; exit ;;
23087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23088   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23089     ac_cs_silent=: ;;
23090
23091   # This is an error.
23092   -*) as_fn_error $? "unrecognized option: \`$1'
23093 Try \`$0 --help' for more information." ;;
23094
23095   *) as_fn_append ac_config_targets " $1"
23096      ac_need_defaults=false ;;
23097
23098   esac
23099   shift
23100 done
23101
23102 ac_configure_extra_args=
23103
23104 if $ac_cs_silent; then
23105   exec 6>/dev/null
23106   ac_configure_extra_args="$ac_configure_extra_args --silent"
23107 fi
23108
23109 _ACEOF
23110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23111 if \$ac_cs_recheck; then
23112   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23113   shift
23114   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23115   CONFIG_SHELL='$SHELL'
23116   export CONFIG_SHELL
23117   exec "\$@"
23118 fi
23119
23120 _ACEOF
23121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23122 exec 5>>config.log
23123 {
23124   echo
23125   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23126 ## Running $as_me. ##
23127 _ASBOX
23128   $as_echo "$ac_log"
23129 } >&5
23130
23131 _ACEOF
23132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23133 #
23134 # INIT-COMMANDS
23135 #
23136 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23137
23138
23139 # The HP-UX ksh and POSIX shell print the target directory to stdout
23140 # if CDPATH is set.
23141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23142
23143 sed_quote_subst='$sed_quote_subst'
23144 double_quote_subst='$double_quote_subst'
23145 delay_variable_subst='$delay_variable_subst'
23146 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23147 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23148 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23149 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23150 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23151 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23152 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23153 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23154 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23155 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23156 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23157 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23158 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23159 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23160 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23161 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23162 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23163 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23164 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23165 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23166 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23167 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23168 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23169 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23170 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23171 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23172 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23173 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23174 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23175 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23176 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23177 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23178 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23179 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23180 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23181 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23182 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23183 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23184 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23185 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23186 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23187 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23188 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23189 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23190 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23191 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23192 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23193 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23194 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23195 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23196 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23197 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23198 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23199 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23200 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23201 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23202 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23203 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"`'
23204 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23205 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23206 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23207 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23208 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23209 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23210 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23211 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23212 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23213 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23214 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23215 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23216 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23217 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23218 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23219 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23220 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23221 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23222 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23223 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23224 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23225 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23226 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23227 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23228 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23229 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23230 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23231 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23232 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23233 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23234 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23235 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23236 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23237 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23238 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23239 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23240 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23241 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23242 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23243 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23244 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23245 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23246 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23247 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23248 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23249 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23250 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23251 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23252 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23253 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23254 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23255 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23256 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23257 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23258 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23259 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23260 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23261 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23262 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23263 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23264 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23265 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23266 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23267 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23268 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23269 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23270 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23271 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23272 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23273 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23274 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23275 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23276 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23277 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23278 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23279 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23280 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23281 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23282 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23283 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23284 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
23285 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23286 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
23287 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23288 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
23289 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23290 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
23291 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23292 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
23293 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23294 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
23295 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23296 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
23297 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23298 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
23299 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23300 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
23301 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23302 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
23303 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23304 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
23305 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23306 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
23307 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23308 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
23309 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23310 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23311 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23312 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23313 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23314 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
23315 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23316 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
23317 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23318 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
23319 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23320 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
23321 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23322 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
23323 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23324 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
23325 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23326 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
23327 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23328 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
23329 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23330 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
23331 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23332 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
23333 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23334 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23335 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23336 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
23337 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23338 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
23339 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23340 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
23341 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23342 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
23343 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23344 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
23345 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23346 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
23347 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23348 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
23349 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23350 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
23351 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23352 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
23353 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23354 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
23355 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23356 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
23357 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23358 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
23359 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23360 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
23361 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23362 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
23363 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23364 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
23365 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23366 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
23367 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23368 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
23369 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23370 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
23371 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23372 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
23373 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23374 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
23375 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23376 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
23377 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23378 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
23379
23380 LTCC='$LTCC'
23381 LTCFLAGS='$LTCFLAGS'
23382 compiler='$compiler_DEFAULT'
23383
23384 # A function that is used when there is no print builtin or printf.
23385 func_fallback_echo ()
23386 {
23387   eval 'cat <<_LTECHO_EOF
23388 \$1
23389 _LTECHO_EOF'
23390 }
23391
23392 # Quote evaled strings.
23393 for var in AS \
23394 DLLTOOL \
23395 OBJDUMP \
23396 SHELL \
23397 ECHO \
23398 PATH_SEPARATOR \
23399 SED \
23400 GREP \
23401 EGREP \
23402 FGREP \
23403 LD \
23404 NM \
23405 LN_S \
23406 lt_SP2NL \
23407 lt_NL2SP \
23408 reload_flag \
23409 deplibs_check_method \
23410 file_magic_cmd \
23411 file_magic_glob \
23412 want_nocaseglob \
23413 sharedlib_from_linklib_cmd \
23414 AR \
23415 AR_FLAGS \
23416 archiver_list_spec \
23417 STRIP \
23418 RANLIB \
23419 CC \
23420 CFLAGS \
23421 compiler \
23422 lt_cv_sys_global_symbol_pipe \
23423 lt_cv_sys_global_symbol_to_cdecl \
23424 lt_cv_sys_global_symbol_to_c_name_address \
23425 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23426 nm_file_list_spec \
23427 lt_prog_compiler_no_builtin_flag \
23428 lt_prog_compiler_pic \
23429 lt_prog_compiler_wl \
23430 lt_prog_compiler_static \
23431 lt_cv_prog_compiler_c_o \
23432 need_locks \
23433 MANIFEST_TOOL \
23434 DSYMUTIL \
23435 NMEDIT \
23436 LIPO \
23437 OTOOL \
23438 OTOOL64 \
23439 shrext_cmds \
23440 export_dynamic_flag_spec \
23441 whole_archive_flag_spec \
23442 compiler_needs_object \
23443 with_gnu_ld \
23444 allow_undefined_flag \
23445 no_undefined_flag \
23446 hardcode_libdir_flag_spec \
23447 hardcode_libdir_separator \
23448 exclude_expsyms \
23449 include_expsyms \
23450 file_list_spec \
23451 variables_saved_for_relink \
23452 libname_spec \
23453 library_names_spec \
23454 soname_spec \
23455 install_override_mode \
23456 finish_eval \
23457 old_striplib \
23458 striplib \
23459 compiler_lib_search_dirs \
23460 predep_objects \
23461 postdep_objects \
23462 predeps \
23463 postdeps \
23464 compiler_lib_search_path \
23465 LD_CXX \
23466 LD_RC \
23467 reload_flag_CXX \
23468 reload_flag_RC \
23469 compiler_CXX \
23470 compiler_RC \
23471 lt_prog_compiler_no_builtin_flag_CXX \
23472 lt_prog_compiler_no_builtin_flag_RC \
23473 lt_prog_compiler_pic_CXX \
23474 lt_prog_compiler_pic_RC \
23475 lt_prog_compiler_wl_CXX \
23476 lt_prog_compiler_wl_RC \
23477 lt_prog_compiler_static_CXX \
23478 lt_prog_compiler_static_RC \
23479 lt_cv_prog_compiler_c_o_CXX \
23480 lt_cv_prog_compiler_c_o_RC \
23481 export_dynamic_flag_spec_CXX \
23482 export_dynamic_flag_spec_RC \
23483 whole_archive_flag_spec_CXX \
23484 whole_archive_flag_spec_RC \
23485 compiler_needs_object_CXX \
23486 compiler_needs_object_RC \
23487 with_gnu_ld_CXX \
23488 with_gnu_ld_RC \
23489 allow_undefined_flag_CXX \
23490 allow_undefined_flag_RC \
23491 no_undefined_flag_CXX \
23492 no_undefined_flag_RC \
23493 hardcode_libdir_flag_spec_CXX \
23494 hardcode_libdir_flag_spec_RC \
23495 hardcode_libdir_separator_CXX \
23496 hardcode_libdir_separator_RC \
23497 exclude_expsyms_CXX \
23498 exclude_expsyms_RC \
23499 include_expsyms_CXX \
23500 include_expsyms_RC \
23501 file_list_spec_CXX \
23502 file_list_spec_RC \
23503 compiler_lib_search_dirs_CXX \
23504 compiler_lib_search_dirs_RC \
23505 predep_objects_CXX \
23506 predep_objects_RC \
23507 postdep_objects_CXX \
23508 postdep_objects_RC \
23509 predeps_CXX \
23510 predeps_RC \
23511 postdeps_CXX \
23512 postdeps_RC \
23513 compiler_lib_search_path_CXX \
23514 compiler_lib_search_path_RC; do
23515     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23516     *[\\\\\\\`\\"\\\$]*)
23517       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23518       ;;
23519     *)
23520       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23521       ;;
23522     esac
23523 done
23524
23525 # Double-quote double-evaled strings.
23526 for var in reload_cmds \
23527 old_postinstall_cmds \
23528 old_postuninstall_cmds \
23529 old_archive_cmds \
23530 extract_expsyms_cmds \
23531 old_archive_from_new_cmds \
23532 old_archive_from_expsyms_cmds \
23533 archive_cmds \
23534 archive_expsym_cmds \
23535 module_cmds \
23536 module_expsym_cmds \
23537 export_symbols_cmds \
23538 prelink_cmds \
23539 postlink_cmds \
23540 postinstall_cmds \
23541 postuninstall_cmds \
23542 finish_cmds \
23543 sys_lib_search_path_spec \
23544 sys_lib_dlsearch_path_spec \
23545 reload_cmds_CXX \
23546 reload_cmds_RC \
23547 old_archive_cmds_CXX \
23548 old_archive_cmds_RC \
23549 old_archive_from_new_cmds_CXX \
23550 old_archive_from_new_cmds_RC \
23551 old_archive_from_expsyms_cmds_CXX \
23552 old_archive_from_expsyms_cmds_RC \
23553 archive_cmds_CXX \
23554 archive_cmds_RC \
23555 archive_expsym_cmds_CXX \
23556 archive_expsym_cmds_RC \
23557 module_cmds_CXX \
23558 module_cmds_RC \
23559 module_expsym_cmds_CXX \
23560 module_expsym_cmds_RC \
23561 export_symbols_cmds_CXX \
23562 export_symbols_cmds_RC \
23563 prelink_cmds_CXX \
23564 prelink_cmds_RC \
23565 postlink_cmds_CXX \
23566 postlink_cmds_RC; do
23567     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23568     *[\\\\\\\`\\"\\\$]*)
23569       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23570       ;;
23571     *)
23572       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23573       ;;
23574     esac
23575 done
23576
23577 ac_aux_dir='$ac_aux_dir'
23578 xsi_shell='$xsi_shell'
23579 lt_shell_append='$lt_shell_append'
23580
23581 # See if we are running on zsh, and set the options which allow our
23582 # commands through without removal of \ escapes INIT.
23583 if test -n "\${ZSH_VERSION+set}" ; then
23584    setopt NO_GLOB_SUBST
23585 fi
23586
23587
23588     PACKAGE='$PACKAGE'
23589     VERSION='$VERSION'
23590     TIMESTAMP='$TIMESTAMP'
23591     RM='$RM'
23592     ofile='$ofile'
23593
23594
23595
23596
23597
23598
23599
23600
23601 _ACEOF
23602
23603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23604
23605 # Handling of arguments.
23606 for ac_config_target in $ac_config_targets
23607 do
23608   case $ac_config_target in
23609     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23610     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23611     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23612     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23613     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23614     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23615     "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
23616     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
23617     "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
23618     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23619     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
23620     "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
23621     "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
23622     "lang/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/Makefile" ;;
23623     "lang/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/Makefile" ;;
23624     "lang/cpp/src/GpgmeppConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig-w32.cmake.in" ;;
23625     "lang/cpp/src/GpgmeppConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig.cmake.in" ;;
23626     "lang/cpp/src/GpgmeppConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfigVersion.cmake" ;;
23627     "lang/cpp/src/gpgmepp_version.h") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/gpgmepp_version.h" ;;
23628     "lang/qt/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/Makefile" ;;
23629     "lang/qt/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/src/Makefile" ;;
23630     "lang/qt/src/QGpgmeConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig-w32.cmake.in" ;;
23631     "lang/qt/src/QGpgmeConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig.cmake.in" ;;
23632     "lang/qt/src/QGpgmeConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfigVersion.cmake" ;;
23633     "lang/qt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/tests/Makefile" ;;
23634     "lang/qt/src/qgpgme_version.h") CONFIG_FILES="$CONFIG_FILES lang/qt/src/qgpgme_version.h" ;;
23635     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
23636     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
23637     "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
23638     "lang/qt/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Doxyfile" ;;
23639     "lang/qt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Makefile" ;;
23640     "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
23641     "lang/python/gpg/version.py") CONFIG_FILES="$CONFIG_FILES lang/python/gpg/version.py" ;;
23642     "lang/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/tests/Makefile" ;;
23643     "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
23644
23645   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23646   esac
23647 done
23648
23649
23650 # If the user did not use the arguments to specify the items to instantiate,
23651 # then the envvar interface is used.  Set only those that are not.
23652 # We use the long form for the default assignment because of an extremely
23653 # bizarre bug on SunOS 4.1.3.
23654 if $ac_need_defaults; then
23655   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23656   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23657   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23658 fi
23659
23660 # Have a temporary directory for convenience.  Make it in the build tree
23661 # simply because there is no reason against having it here, and in addition,
23662 # creating and moving files from /tmp can sometimes cause problems.
23663 # Hook for its removal unless debugging.
23664 # Note that there is a small window in which the directory will not be cleaned:
23665 # after its creation but before its name has been assigned to `$tmp'.
23666 $debug ||
23667 {
23668   tmp= ac_tmp=
23669   trap 'exit_status=$?
23670   : "${ac_tmp:=$tmp}"
23671   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23672 ' 0
23673   trap 'as_fn_exit 1' 1 2 13 15
23674 }
23675 # Create a (secure) tmp directory for tmp files.
23676
23677 {
23678   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23679   test -d "$tmp"
23680 }  ||
23681 {
23682   tmp=./conf$$-$RANDOM
23683   (umask 077 && mkdir "$tmp")
23684 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23685 ac_tmp=$tmp
23686
23687 # Set up the scripts for CONFIG_FILES section.
23688 # No need to generate them if there are no CONFIG_FILES.
23689 # This happens for instance with `./config.status config.h'.
23690 if test -n "$CONFIG_FILES"; then
23691
23692
23693 ac_cr=`echo X | tr X '\015'`
23694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23695 # But we know of no other shell where ac_cr would be empty at this
23696 # point, so we can use a bashism as a fallback.
23697 if test "x$ac_cr" = x; then
23698   eval ac_cr=\$\'\\r\'
23699 fi
23700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23702   ac_cs_awk_cr='\\r'
23703 else
23704   ac_cs_awk_cr=$ac_cr
23705 fi
23706
23707 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23708 _ACEOF
23709
23710
23711 {
23712   echo "cat >conf$$subs.awk <<_ACEOF" &&
23713   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23714   echo "_ACEOF"
23715 } >conf$$subs.sh ||
23716   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23718 ac_delim='%!_!# '
23719 for ac_last_try in false false false false false :; do
23720   . ./conf$$subs.sh ||
23721     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23722
23723   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23724   if test $ac_delim_n = $ac_delim_num; then
23725     break
23726   elif $ac_last_try; then
23727     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23728   else
23729     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23730   fi
23731 done
23732 rm -f conf$$subs.sh
23733
23734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23735 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23736 _ACEOF
23737 sed -n '
23738 h
23739 s/^/S["/; s/!.*/"]=/
23740 p
23741 g
23742 s/^[^!]*!//
23743 :repl
23744 t repl
23745 s/'"$ac_delim"'$//
23746 t delim
23747 :nl
23748 h
23749 s/\(.\{148\}\)..*/\1/
23750 t more1
23751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23752 p
23753 n
23754 b repl
23755 :more1
23756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23757 p
23758 g
23759 s/.\{148\}//
23760 t nl
23761 :delim
23762 h
23763 s/\(.\{148\}\)..*/\1/
23764 t more2
23765 s/["\\]/\\&/g; s/^/"/; s/$/"/
23766 p
23767 b
23768 :more2
23769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23770 p
23771 g
23772 s/.\{148\}//
23773 t delim
23774 ' <conf$$subs.awk | sed '
23775 /^[^""]/{
23776   N
23777   s/\n//
23778 }
23779 ' >>$CONFIG_STATUS || ac_write_fail=1
23780 rm -f conf$$subs.awk
23781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23782 _ACAWK
23783 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23784   for (key in S) S_is_set[key] = 1
23785   FS = "\a"
23786
23787 }
23788 {
23789   line = $ 0
23790   nfields = split(line, field, "@")
23791   substed = 0
23792   len = length(field[1])
23793   for (i = 2; i < nfields; i++) {
23794     key = field[i]
23795     keylen = length(key)
23796     if (S_is_set[key]) {
23797       value = S[key]
23798       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23799       len += length(value) + length(field[++i])
23800       substed = 1
23801     } else
23802       len += 1 + keylen
23803   }
23804
23805   print line
23806 }
23807
23808 _ACAWK
23809 _ACEOF
23810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23812   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23813 else
23814   cat
23815 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23816   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23817 _ACEOF
23818
23819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23821 # trailing colons and then remove the whole line if VPATH becomes empty
23822 # (actually we leave an empty line to preserve line numbers).
23823 if test "x$srcdir" = x.; then
23824   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23825 h
23826 s///
23827 s/^/:/
23828 s/[      ]*$/:/
23829 s/:\$(srcdir):/:/g
23830 s/:\${srcdir}:/:/g
23831 s/:@srcdir@:/:/g
23832 s/^:*//
23833 s/:*$//
23834 x
23835 s/\(=[   ]*\).*/\1/
23836 G
23837 s/\n//
23838 s/^[^=]*=[       ]*$//
23839 }'
23840 fi
23841
23842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23843 fi # test -n "$CONFIG_FILES"
23844
23845 # Set up the scripts for CONFIG_HEADERS section.
23846 # No need to generate them if there are no CONFIG_HEADERS.
23847 # This happens for instance with `./config.status Makefile'.
23848 if test -n "$CONFIG_HEADERS"; then
23849 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23850 BEGIN {
23851 _ACEOF
23852
23853 # Transform confdefs.h into an awk script `defines.awk', embedded as
23854 # here-document in config.status, that substitutes the proper values into
23855 # config.h.in to produce config.h.
23856
23857 # Create a delimiter string that does not exist in confdefs.h, to ease
23858 # handling of long lines.
23859 ac_delim='%!_!# '
23860 for ac_last_try in false false :; do
23861   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23862   if test -z "$ac_tt"; then
23863     break
23864   elif $ac_last_try; then
23865     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23866   else
23867     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23868   fi
23869 done
23870
23871 # For the awk script, D is an array of macro values keyed by name,
23872 # likewise P contains macro parameters if any.  Preserve backslash
23873 # newline sequences.
23874
23875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23876 sed -n '
23877 s/.\{148\}/&'"$ac_delim"'/g
23878 t rset
23879 :rset
23880 s/^[     ]*#[    ]*define[       ][      ]*/ /
23881 t def
23882 d
23883 :def
23884 s/\\$//
23885 t bsnl
23886 s/["\\]/\\&/g
23887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23888 D["\1"]=" \3"/p
23889 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23890 d
23891 :bsnl
23892 s/["\\]/\\&/g
23893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23894 D["\1"]=" \3\\\\\\n"\\/p
23895 t cont
23896 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23897 t cont
23898 d
23899 :cont
23900 n
23901 s/.\{148\}/&'"$ac_delim"'/g
23902 t clear
23903 :clear
23904 s/\\$//
23905 t bsnlc
23906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23907 d
23908 :bsnlc
23909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23910 b cont
23911 ' <confdefs.h | sed '
23912 s/'"$ac_delim"'/"\\\
23913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23914
23915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23916   for (key in D) D_is_set[key] = 1
23917   FS = "\a"
23918 }
23919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23920   line = \$ 0
23921   split(line, arg, " ")
23922   if (arg[1] == "#") {
23923     defundef = arg[2]
23924     mac1 = arg[3]
23925   } else {
23926     defundef = substr(arg[1], 2)
23927     mac1 = arg[2]
23928   }
23929   split(mac1, mac2, "(") #)
23930   macro = mac2[1]
23931   prefix = substr(line, 1, index(line, defundef) - 1)
23932   if (D_is_set[macro]) {
23933     # Preserve the white space surrounding the "#".
23934     print prefix "define", macro P[macro] D[macro]
23935     next
23936   } else {
23937     # Replace #undef with comments.  This is necessary, for example,
23938     # in the case of _POSIX_SOURCE, which is predefined and required
23939     # on some systems where configure will not decide to define it.
23940     if (defundef == "undef") {
23941       print "/*", prefix defundef, macro, "*/"
23942       next
23943     }
23944   }
23945 }
23946 { print }
23947 _ACAWK
23948 _ACEOF
23949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23950   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23951 fi # test -n "$CONFIG_HEADERS"
23952
23953
23954 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23955 shift
23956 for ac_tag
23957 do
23958   case $ac_tag in
23959   :[FHLC]) ac_mode=$ac_tag; continue;;
23960   esac
23961   case $ac_mode$ac_tag in
23962   :[FHL]*:*);;
23963   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23964   :[FH]-) ac_tag=-:-;;
23965   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23966   esac
23967   ac_save_IFS=$IFS
23968   IFS=:
23969   set x $ac_tag
23970   IFS=$ac_save_IFS
23971   shift
23972   ac_file=$1
23973   shift
23974
23975   case $ac_mode in
23976   :L) ac_source=$1;;
23977   :[FH])
23978     ac_file_inputs=
23979     for ac_f
23980     do
23981       case $ac_f in
23982       -) ac_f="$ac_tmp/stdin";;
23983       *) # Look for the file first in the build tree, then in the source tree
23984          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23985          # because $ac_f cannot contain `:'.
23986          test -f "$ac_f" ||
23987            case $ac_f in
23988            [\\/$]*) false;;
23989            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23990            esac ||
23991            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23992       esac
23993       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23994       as_fn_append ac_file_inputs " '$ac_f'"
23995     done
23996
23997     # Let's still pretend it is `configure' which instantiates (i.e., don't
23998     # use $as_me), people would be surprised to read:
23999     #    /* config.h.  Generated by config.status.  */
24000     configure_input='Generated from '`
24001           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24002         `' by configure.'
24003     if test x"$ac_file" != x-; then
24004       configure_input="$ac_file.  $configure_input"
24005       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24006 $as_echo "$as_me: creating $ac_file" >&6;}
24007     fi
24008     # Neutralize special characters interpreted by sed in replacement strings.
24009     case $configure_input in #(
24010     *\&* | *\|* | *\\* )
24011        ac_sed_conf_input=`$as_echo "$configure_input" |
24012        sed 's/[\\\\&|]/\\\\&/g'`;; #(
24013     *) ac_sed_conf_input=$configure_input;;
24014     esac
24015
24016     case $ac_tag in
24017     *:-:* | *:-) cat >"$ac_tmp/stdin" \
24018       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24019     esac
24020     ;;
24021   esac
24022
24023   ac_dir=`$as_dirname -- "$ac_file" ||
24024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24025          X"$ac_file" : 'X\(//\)[^/]' \| \
24026          X"$ac_file" : 'X\(//\)$' \| \
24027          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24028 $as_echo X"$ac_file" |
24029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24030             s//\1/
24031             q
24032           }
24033           /^X\(\/\/\)[^/].*/{
24034             s//\1/
24035             q
24036           }
24037           /^X\(\/\/\)$/{
24038             s//\1/
24039             q
24040           }
24041           /^X\(\/\).*/{
24042             s//\1/
24043             q
24044           }
24045           s/.*/./; q'`
24046   as_dir="$ac_dir"; as_fn_mkdir_p
24047   ac_builddir=.
24048
24049 case "$ac_dir" in
24050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24051 *)
24052   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24053   # A ".." for each directory in $ac_dir_suffix.
24054   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24055   case $ac_top_builddir_sub in
24056   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24057   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24058   esac ;;
24059 esac
24060 ac_abs_top_builddir=$ac_pwd
24061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24062 # for backward compatibility:
24063 ac_top_builddir=$ac_top_build_prefix
24064
24065 case $srcdir in
24066   .)  # We are building in place.
24067     ac_srcdir=.
24068     ac_top_srcdir=$ac_top_builddir_sub
24069     ac_abs_top_srcdir=$ac_pwd ;;
24070   [\\/]* | ?:[\\/]* )  # Absolute name.
24071     ac_srcdir=$srcdir$ac_dir_suffix;
24072     ac_top_srcdir=$srcdir
24073     ac_abs_top_srcdir=$srcdir ;;
24074   *) # Relative name.
24075     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24076     ac_top_srcdir=$ac_top_build_prefix$srcdir
24077     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24078 esac
24079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24080
24081
24082   case $ac_mode in
24083   :F)
24084   #
24085   # CONFIG_FILE
24086   #
24087
24088   case $INSTALL in
24089   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24090   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24091   esac
24092   ac_MKDIR_P=$MKDIR_P
24093   case $MKDIR_P in
24094   [\\/$]* | ?:[\\/]* ) ;;
24095   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24096   esac
24097 _ACEOF
24098
24099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24100 # If the template does not know about datarootdir, expand it.
24101 # FIXME: This hack should be removed a few years after 2.60.
24102 ac_datarootdir_hack=; ac_datarootdir_seen=
24103 ac_sed_dataroot='
24104 /datarootdir/ {
24105   p
24106   q
24107 }
24108 /@datadir@/p
24109 /@docdir@/p
24110 /@infodir@/p
24111 /@localedir@/p
24112 /@mandir@/p'
24113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24114 *datarootdir*) ac_datarootdir_seen=yes;;
24115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24118 _ACEOF
24119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24120   ac_datarootdir_hack='
24121   s&@datadir@&$datadir&g
24122   s&@docdir@&$docdir&g
24123   s&@infodir@&$infodir&g
24124   s&@localedir@&$localedir&g
24125   s&@mandir@&$mandir&g
24126   s&\\\${datarootdir}&$datarootdir&g' ;;
24127 esac
24128 _ACEOF
24129
24130 # Neutralize VPATH when `$srcdir' = `.'.
24131 # Shell code in configure.ac might set extrasub.
24132 # FIXME: do we really want to maintain this feature?
24133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24134 ac_sed_extra="$ac_vpsub
24135 $extrasub
24136 _ACEOF
24137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24138 :t
24139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24140 s|@configure_input@|$ac_sed_conf_input|;t t
24141 s&@top_builddir@&$ac_top_builddir_sub&;t t
24142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24143 s&@srcdir@&$ac_srcdir&;t t
24144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24145 s&@top_srcdir@&$ac_top_srcdir&;t t
24146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24147 s&@builddir@&$ac_builddir&;t t
24148 s&@abs_builddir@&$ac_abs_builddir&;t t
24149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24150 s&@INSTALL@&$ac_INSTALL&;t t
24151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24152 $ac_datarootdir_hack
24153 "
24154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24155   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24156
24157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24158   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24159   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
24160       "$ac_tmp/out"`; test -z "$ac_out"; } &&
24161   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24162 which seems to be undefined.  Please make sure it is defined" >&5
24163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24164 which seems to be undefined.  Please make sure it is defined" >&2;}
24165
24166   rm -f "$ac_tmp/stdin"
24167   case $ac_file in
24168   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24169   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24170   esac \
24171   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24172  ;;
24173   :H)
24174   #
24175   # CONFIG_HEADER
24176   #
24177   if test x"$ac_file" != x-; then
24178     {
24179       $as_echo "/* $configure_input  */" \
24180       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24181     } >"$ac_tmp/config.h" \
24182       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24183     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24184       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24186     else
24187       rm -f "$ac_file"
24188       mv "$ac_tmp/config.h" "$ac_file" \
24189         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24190     fi
24191   else
24192     $as_echo "/* $configure_input  */" \
24193       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24194       || as_fn_error $? "could not create -" "$LINENO" 5
24195   fi
24196 # Compute "$ac_file"'s index in $config_headers.
24197 _am_arg="$ac_file"
24198 _am_stamp_count=1
24199 for _am_header in $config_headers :; do
24200   case $_am_header in
24201     $_am_arg | $_am_arg:* )
24202       break ;;
24203     * )
24204       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24205   esac
24206 done
24207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24209          X"$_am_arg" : 'X\(//\)[^/]' \| \
24210          X"$_am_arg" : 'X\(//\)$' \| \
24211          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24212 $as_echo X"$_am_arg" |
24213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24214             s//\1/
24215             q
24216           }
24217           /^X\(\/\/\)[^/].*/{
24218             s//\1/
24219             q
24220           }
24221           /^X\(\/\/\)$/{
24222             s//\1/
24223             q
24224           }
24225           /^X\(\/\).*/{
24226             s//\1/
24227             q
24228           }
24229           s/.*/./; q'`/stamp-h$_am_stamp_count
24230  ;;
24231
24232   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24233 $as_echo "$as_me: executing $ac_file commands" >&6;}
24234  ;;
24235   esac
24236
24237
24238   case $ac_file$ac_mode in
24239     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24240   # Older Autoconf quotes --file arguments for eval, but not when files
24241   # are listed without --file.  Let's play safe and only enable the eval
24242   # if we detect the quoting.
24243   case $CONFIG_FILES in
24244   *\'*) eval set x "$CONFIG_FILES" ;;
24245   *)   set x $CONFIG_FILES ;;
24246   esac
24247   shift
24248   for mf
24249   do
24250     # Strip MF so we end up with the name of the file.
24251     mf=`echo "$mf" | sed -e 's/:.*$//'`
24252     # Check whether this is an Automake generated Makefile or not.
24253     # We used to match only the files named 'Makefile.in', but
24254     # some people rename them; so instead we look at the file content.
24255     # Grep'ing the first line is not enough: some people post-process
24256     # each Makefile.in and add a new line on top of each file to say so.
24257     # Grep'ing the whole file is not good either: AIX grep has a line
24258     # limit of 2048, but all sed's we know have understand at least 4000.
24259     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24260       dirpart=`$as_dirname -- "$mf" ||
24261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24262          X"$mf" : 'X\(//\)[^/]' \| \
24263          X"$mf" : 'X\(//\)$' \| \
24264          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24265 $as_echo X"$mf" |
24266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24267             s//\1/
24268             q
24269           }
24270           /^X\(\/\/\)[^/].*/{
24271             s//\1/
24272             q
24273           }
24274           /^X\(\/\/\)$/{
24275             s//\1/
24276             q
24277           }
24278           /^X\(\/\).*/{
24279             s//\1/
24280             q
24281           }
24282           s/.*/./; q'`
24283     else
24284       continue
24285     fi
24286     # Extract the definition of DEPDIR, am__include, and am__quote
24287     # from the Makefile without running 'make'.
24288     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24289     test -z "$DEPDIR" && continue
24290     am__include=`sed -n 's/^am__include = //p' < "$mf"`
24291     test -z "$am__include" && continue
24292     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24293     # Find all dependency output files, they are included files with
24294     # $(DEPDIR) in their names.  We invoke sed twice because it is the
24295     # simplest approach to changing $(DEPDIR) to its actual value in the
24296     # expansion.
24297     for file in `sed -n "
24298       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24299          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24300       # Make sure the directory exists.
24301       test -f "$dirpart/$file" && continue
24302       fdir=`$as_dirname -- "$file" ||
24303 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24304          X"$file" : 'X\(//\)[^/]' \| \
24305          X"$file" : 'X\(//\)$' \| \
24306          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24307 $as_echo X"$file" |
24308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24309             s//\1/
24310             q
24311           }
24312           /^X\(\/\/\)[^/].*/{
24313             s//\1/
24314             q
24315           }
24316           /^X\(\/\/\)$/{
24317             s//\1/
24318             q
24319           }
24320           /^X\(\/\).*/{
24321             s//\1/
24322             q
24323           }
24324           s/.*/./; q'`
24325       as_dir=$dirpart/$fdir; as_fn_mkdir_p
24326       # echo "creating $dirpart/$file"
24327       echo '# dummy' > "$dirpart/$file"
24328     done
24329   done
24330 }
24331  ;;
24332     "libtool":C)
24333
24334     # See if we are running on zsh, and set the options which allow our
24335     # commands through without removal of \ escapes.
24336     if test -n "${ZSH_VERSION+set}" ; then
24337       setopt NO_GLOB_SUBST
24338     fi
24339
24340     cfgfile="${ofile}T"
24341     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24342     $RM "$cfgfile"
24343
24344     cat <<_LT_EOF >> "$cfgfile"
24345 #! $SHELL
24346
24347 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24348 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24350 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24351 #
24352 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24353 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
24354 #                 Foundation, Inc.
24355 #   Written by Gordon Matzigkeit, 1996
24356 #
24357 #   This file is part of GNU Libtool.
24358 #
24359 # GNU Libtool is free software; you can redistribute it and/or
24360 # modify it under the terms of the GNU General Public License as
24361 # published by the Free Software Foundation; either version 2 of
24362 # the License, or (at your option) any later version.
24363 #
24364 # As a special exception to the GNU General Public License,
24365 # if you distribute this file as part of a program or library that
24366 # is built using GNU Libtool, you may include this file under the
24367 # same distribution terms that you use for the rest of that program.
24368 #
24369 # GNU Libtool is distributed in the hope that it will be useful,
24370 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24371 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24372 # GNU General Public License for more details.
24373 #
24374 # You should have received a copy of the GNU General Public License
24375 # along with GNU Libtool; see the file COPYING.  If not, a copy
24376 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
24377 # obtained by writing to the Free Software Foundation, Inc.,
24378 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24379
24380
24381 # The names of the tagged configurations supported by this script.
24382 available_tags="CXX RC "
24383
24384 # ### BEGIN LIBTOOL CONFIG
24385
24386 # Which release of libtool.m4 was used?
24387 macro_version=$macro_version
24388 macro_revision=$macro_revision
24389
24390 # Assembler program.
24391 AS=$lt_AS
24392
24393 # DLL creation program.
24394 DLLTOOL=$lt_DLLTOOL
24395
24396 # Object dumper program.
24397 OBJDUMP=$lt_OBJDUMP
24398
24399 # Whether or not to build static libraries.
24400 build_old_libs=$enable_static
24401
24402 # Whether or not to build shared libraries.
24403 build_libtool_libs=$enable_shared
24404
24405 # What type of objects to build.
24406 pic_mode=$pic_mode
24407
24408 # Whether or not to optimize for fast installation.
24409 fast_install=$enable_fast_install
24410
24411 # Shell to use when invoking shell scripts.
24412 SHELL=$lt_SHELL
24413
24414 # An echo program that protects backslashes.
24415 ECHO=$lt_ECHO
24416
24417 # The PATH separator for the build system.
24418 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24419
24420 # The host system.
24421 host_alias=$host_alias
24422 host=$host
24423 host_os=$host_os
24424
24425 # The build system.
24426 build_alias=$build_alias
24427 build=$build
24428 build_os=$build_os
24429
24430 # A sed program that does not truncate output.
24431 SED=$lt_SED
24432
24433 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24434 Xsed="\$SED -e 1s/^X//"
24435
24436 # A grep program that handles long lines.
24437 GREP=$lt_GREP
24438
24439 # An ERE matcher.
24440 EGREP=$lt_EGREP
24441
24442 # A literal string matcher.
24443 FGREP=$lt_FGREP
24444
24445 # A BSD- or MS-compatible name lister.
24446 NM=$lt_NM
24447
24448 # Whether we need soft or hard links.
24449 LN_S=$lt_LN_S
24450
24451 # What is the maximum length of a command?
24452 max_cmd_len=$max_cmd_len
24453
24454 # Object file suffix (normally "o").
24455 objext=$ac_objext
24456
24457 # Executable file suffix (normally "").
24458 exeext=$exeext
24459
24460 # whether the shell understands "unset".
24461 lt_unset=$lt_unset
24462
24463 # turn spaces into newlines.
24464 SP2NL=$lt_lt_SP2NL
24465
24466 # turn newlines into spaces.
24467 NL2SP=$lt_lt_NL2SP
24468
24469 # convert \$build file names to \$host format.
24470 to_host_file_cmd=$lt_cv_to_host_file_cmd
24471
24472 # convert \$build files to toolchain format.
24473 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24474
24475 # Method to check whether dependent libraries are shared objects.
24476 deplibs_check_method=$lt_deplibs_check_method
24477
24478 # Command to use when deplibs_check_method = "file_magic".
24479 file_magic_cmd=$lt_file_magic_cmd
24480
24481 # How to find potential files when deplibs_check_method = "file_magic".
24482 file_magic_glob=$lt_file_magic_glob
24483
24484 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24485 want_nocaseglob=$lt_want_nocaseglob
24486
24487 # Command to associate shared and link libraries.
24488 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24489
24490 # The archiver.
24491 AR=$lt_AR
24492
24493 # Flags to create an archive.
24494 AR_FLAGS=$lt_AR_FLAGS
24495
24496 # How to feed a file listing to the archiver.
24497 archiver_list_spec=$lt_archiver_list_spec
24498
24499 # A symbol stripping program.
24500 STRIP=$lt_STRIP
24501
24502 # Commands used to install an old-style archive.
24503 RANLIB=$lt_RANLIB
24504 old_postinstall_cmds=$lt_old_postinstall_cmds
24505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24506
24507 # Whether to use a lock for old archive extraction.
24508 lock_old_archive_extraction=$lock_old_archive_extraction
24509
24510 # A C compiler.
24511 LTCC=$lt_CC
24512
24513 # LTCC compiler flags.
24514 LTCFLAGS=$lt_CFLAGS
24515
24516 # Take the output of nm and produce a listing of raw symbols and C names.
24517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24518
24519 # Transform the output of nm in a proper C declaration.
24520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24521
24522 # Transform the output of nm in a C name address pair.
24523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24524
24525 # Transform the output of nm in a C name address pair when lib prefix is needed.
24526 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24527
24528 # Specify filename containing input files for \$NM.
24529 nm_file_list_spec=$lt_nm_file_list_spec
24530
24531 # The root where to search for dependent libraries,and in which our libraries should be installed.
24532 lt_sysroot=$lt_sysroot
24533
24534 # The name of the directory that contains temporary libtool files.
24535 objdir=$objdir
24536
24537 # Used to examine libraries when file_magic_cmd begins with "file".
24538 MAGIC_CMD=$MAGIC_CMD
24539
24540 # Must we lock files when doing compilation?
24541 need_locks=$lt_need_locks
24542
24543 # Manifest tool.
24544 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24545
24546 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24547 DSYMUTIL=$lt_DSYMUTIL
24548
24549 # Tool to change global to local symbols on Mac OS X.
24550 NMEDIT=$lt_NMEDIT
24551
24552 # Tool to manipulate fat objects and archives on Mac OS X.
24553 LIPO=$lt_LIPO
24554
24555 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24556 OTOOL=$lt_OTOOL
24557
24558 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24559 OTOOL64=$lt_OTOOL64
24560
24561 # Old archive suffix (normally "a").
24562 libext=$libext
24563
24564 # Shared library suffix (normally ".so").
24565 shrext_cmds=$lt_shrext_cmds
24566
24567 # The commands to extract the exported symbol list from a shared archive.
24568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24569
24570 # Variables whose values should be saved in libtool wrapper scripts and
24571 # restored at link time.
24572 variables_saved_for_relink=$lt_variables_saved_for_relink
24573
24574 # Do we need the "lib" prefix for modules?
24575 need_lib_prefix=$need_lib_prefix
24576
24577 # Do we need a version for libraries?
24578 need_version=$need_version
24579
24580 # Library versioning type.
24581 version_type=$version_type
24582
24583 # Shared library runtime path variable.
24584 runpath_var=$runpath_var
24585
24586 # Shared library path variable.
24587 shlibpath_var=$shlibpath_var
24588
24589 # Is shlibpath searched before the hard-coded library search path?
24590 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24591
24592 # Format of library name prefix.
24593 libname_spec=$lt_libname_spec
24594
24595 # List of archive names.  First name is the real one, the rest are links.
24596 # The last name is the one that the linker finds with -lNAME
24597 library_names_spec=$lt_library_names_spec
24598
24599 # The coded name of the library, if different from the real name.
24600 soname_spec=$lt_soname_spec
24601
24602 # Permission mode override for installation of shared libraries.
24603 install_override_mode=$lt_install_override_mode
24604
24605 # Command to use after installation of a shared archive.
24606 postinstall_cmds=$lt_postinstall_cmds
24607
24608 # Command to use after uninstallation of a shared archive.
24609 postuninstall_cmds=$lt_postuninstall_cmds
24610
24611 # Commands used to finish a libtool library installation in a directory.
24612 finish_cmds=$lt_finish_cmds
24613
24614 # As "finish_cmds", except a single script fragment to be evaled but
24615 # not shown.
24616 finish_eval=$lt_finish_eval
24617
24618 # Whether we should hardcode library paths into libraries.
24619 hardcode_into_libs=$hardcode_into_libs
24620
24621 # Compile-time system search path for libraries.
24622 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24623
24624 # Run-time system search path for libraries.
24625 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24626
24627 # Whether dlopen is supported.
24628 dlopen_support=$enable_dlopen
24629
24630 # Whether dlopen of programs is supported.
24631 dlopen_self=$enable_dlopen_self
24632
24633 # Whether dlopen of statically linked programs is supported.
24634 dlopen_self_static=$enable_dlopen_self_static
24635
24636 # Commands to strip libraries.
24637 old_striplib=$lt_old_striplib
24638 striplib=$lt_striplib
24639
24640
24641 # The linker used to build libraries.
24642 LD=$lt_LD
24643
24644 # How to create reloadable object files.
24645 reload_flag=$lt_reload_flag
24646 reload_cmds=$lt_reload_cmds
24647
24648 # Commands used to build an old-style archive.
24649 old_archive_cmds=$lt_old_archive_cmds
24650
24651 # A language specific compiler.
24652 CC=$lt_compiler
24653
24654 # Is the compiler the GNU compiler?
24655 with_gcc=$GCC
24656
24657 # Compiler flag to turn off builtin functions.
24658 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24659
24660 # Additional compiler flags for building library objects.
24661 pic_flag=$lt_lt_prog_compiler_pic
24662
24663 # How to pass a linker flag through the compiler.
24664 wl=$lt_lt_prog_compiler_wl
24665
24666 # Compiler flag to prevent dynamic linking.
24667 link_static_flag=$lt_lt_prog_compiler_static
24668
24669 # Does compiler simultaneously support -c and -o options?
24670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24671
24672 # Whether or not to add -lc for building shared libraries.
24673 build_libtool_need_lc=$archive_cmds_need_lc
24674
24675 # Whether or not to disallow shared libs when runtime libs are static.
24676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24677
24678 # Compiler flag to allow reflexive dlopens.
24679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24680
24681 # Compiler flag to generate shared objects directly from archives.
24682 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24683
24684 # Whether the compiler copes with passing no objects directly.
24685 compiler_needs_object=$lt_compiler_needs_object
24686
24687 # Create an old-style archive from a shared archive.
24688 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24689
24690 # Create a temporary old-style archive to link instead of a shared archive.
24691 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24692
24693 # Commands used to build a shared archive.
24694 archive_cmds=$lt_archive_cmds
24695 archive_expsym_cmds=$lt_archive_expsym_cmds
24696
24697 # Commands used to build a loadable module if different from building
24698 # a shared archive.
24699 module_cmds=$lt_module_cmds
24700 module_expsym_cmds=$lt_module_expsym_cmds
24701
24702 # Whether we are building with GNU ld or not.
24703 with_gnu_ld=$lt_with_gnu_ld
24704
24705 # Flag that allows shared libraries with undefined symbols to be built.
24706 allow_undefined_flag=$lt_allow_undefined_flag
24707
24708 # Flag that enforces no undefined symbols.
24709 no_undefined_flag=$lt_no_undefined_flag
24710
24711 # Flag to hardcode \$libdir into a binary during linking.
24712 # This must work even if \$libdir does not exist
24713 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24714
24715 # Whether we need a single "-rpath" flag with a separated argument.
24716 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24717
24718 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24719 # DIR into the resulting binary.
24720 hardcode_direct=$hardcode_direct
24721
24722 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24723 # DIR into the resulting binary and the resulting library dependency is
24724 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24725 # library is relocated.
24726 hardcode_direct_absolute=$hardcode_direct_absolute
24727
24728 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24729 # into the resulting binary.
24730 hardcode_minus_L=$hardcode_minus_L
24731
24732 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24733 # into the resulting binary.
24734 hardcode_shlibpath_var=$hardcode_shlibpath_var
24735
24736 # Set to "yes" if building a shared library automatically hardcodes DIR
24737 # into the library and all subsequent libraries and executables linked
24738 # against it.
24739 hardcode_automatic=$hardcode_automatic
24740
24741 # Set to yes if linker adds runtime paths of dependent libraries
24742 # to runtime path list.
24743 inherit_rpath=$inherit_rpath
24744
24745 # Whether libtool must link a program against all its dependency libraries.
24746 link_all_deplibs=$link_all_deplibs
24747
24748 # Set to "yes" if exported symbols are required.
24749 always_export_symbols=$always_export_symbols
24750
24751 # The commands to list exported symbols.
24752 export_symbols_cmds=$lt_export_symbols_cmds
24753
24754 # Symbols that should not be listed in the preloaded symbols.
24755 exclude_expsyms=$lt_exclude_expsyms
24756
24757 # Symbols that must always be exported.
24758 include_expsyms=$lt_include_expsyms
24759
24760 # Commands necessary for linking programs (against libraries) with templates.
24761 prelink_cmds=$lt_prelink_cmds
24762
24763 # Commands necessary for finishing linking programs.
24764 postlink_cmds=$lt_postlink_cmds
24765
24766 # Specify filename containing input files.
24767 file_list_spec=$lt_file_list_spec
24768
24769 # How to hardcode a shared library path into an executable.
24770 hardcode_action=$hardcode_action
24771
24772 # The directories searched by this compiler when creating a shared library.
24773 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24774
24775 # Dependencies to place before and after the objects being linked to
24776 # create a shared library.
24777 predep_objects=$lt_predep_objects
24778 postdep_objects=$lt_postdep_objects
24779 predeps=$lt_predeps
24780 postdeps=$lt_postdeps
24781
24782 # The library search path used internally by the compiler when linking
24783 # a shared library.
24784 compiler_lib_search_path=$lt_compiler_lib_search_path
24785
24786 # ### END LIBTOOL CONFIG
24787
24788 _LT_EOF
24789
24790   case $host_os in
24791   aix3*)
24792     cat <<\_LT_EOF >> "$cfgfile"
24793 # AIX sometimes has problems with the GCC collect2 program.  For some
24794 # reason, if we set the COLLECT_NAMES environment variable, the problems
24795 # vanish in a puff of smoke.
24796 if test "X${COLLECT_NAMES+set}" != Xset; then
24797   COLLECT_NAMES=
24798   export COLLECT_NAMES
24799 fi
24800 _LT_EOF
24801     ;;
24802   esac
24803
24804
24805 ltmain="$ac_aux_dir/ltmain.sh"
24806
24807
24808   # We use sed instead of cat because bash on DJGPP gets confused if
24809   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24810   # text mode, it properly converts lines to CR/LF.  This bash problem
24811   # is reportedly fixed, but why not run on old versions too?
24812   sed '$q' "$ltmain" >> "$cfgfile" \
24813      || (rm -f "$cfgfile"; exit 1)
24814
24815   if test x"$xsi_shell" = xyes; then
24816   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24817 func_dirname ()\
24818 {\
24819 \    case ${1} in\
24820 \      */*) func_dirname_result="${1%/*}${2}" ;;\
24821 \      *  ) func_dirname_result="${3}" ;;\
24822 \    esac\
24823 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24824   && mv -f "$cfgfile.tmp" "$cfgfile" \
24825     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24826 test 0 -eq $? || _lt_function_replace_fail=:
24827
24828
24829   sed -e '/^func_basename ()$/,/^} # func_basename /c\
24830 func_basename ()\
24831 {\
24832 \    func_basename_result="${1##*/}"\
24833 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24834   && mv -f "$cfgfile.tmp" "$cfgfile" \
24835     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24836 test 0 -eq $? || _lt_function_replace_fail=:
24837
24838
24839   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24840 func_dirname_and_basename ()\
24841 {\
24842 \    case ${1} in\
24843 \      */*) func_dirname_result="${1%/*}${2}" ;;\
24844 \      *  ) func_dirname_result="${3}" ;;\
24845 \    esac\
24846 \    func_basename_result="${1##*/}"\
24847 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24848   && mv -f "$cfgfile.tmp" "$cfgfile" \
24849     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24850 test 0 -eq $? || _lt_function_replace_fail=:
24851
24852
24853   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24854 func_stripname ()\
24855 {\
24856 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24857 \    # positional parameters, so assign one to ordinary parameter first.\
24858 \    func_stripname_result=${3}\
24859 \    func_stripname_result=${func_stripname_result#"${1}"}\
24860 \    func_stripname_result=${func_stripname_result%"${2}"}\
24861 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24862   && mv -f "$cfgfile.tmp" "$cfgfile" \
24863     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24864 test 0 -eq $? || _lt_function_replace_fail=:
24865
24866
24867   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24868 func_split_long_opt ()\
24869 {\
24870 \    func_split_long_opt_name=${1%%=*}\
24871 \    func_split_long_opt_arg=${1#*=}\
24872 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24873   && mv -f "$cfgfile.tmp" "$cfgfile" \
24874     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24875 test 0 -eq $? || _lt_function_replace_fail=:
24876
24877
24878   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24879 func_split_short_opt ()\
24880 {\
24881 \    func_split_short_opt_arg=${1#??}\
24882 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24883 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24884   && mv -f "$cfgfile.tmp" "$cfgfile" \
24885     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24886 test 0 -eq $? || _lt_function_replace_fail=:
24887
24888
24889   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24890 func_lo2o ()\
24891 {\
24892 \    case ${1} in\
24893 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24894 \      *)    func_lo2o_result=${1} ;;\
24895 \    esac\
24896 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24897   && mv -f "$cfgfile.tmp" "$cfgfile" \
24898     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24899 test 0 -eq $? || _lt_function_replace_fail=:
24900
24901
24902   sed -e '/^func_xform ()$/,/^} # func_xform /c\
24903 func_xform ()\
24904 {\
24905     func_xform_result=${1%.*}.lo\
24906 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24907   && mv -f "$cfgfile.tmp" "$cfgfile" \
24908     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24909 test 0 -eq $? || _lt_function_replace_fail=:
24910
24911
24912   sed -e '/^func_arith ()$/,/^} # func_arith /c\
24913 func_arith ()\
24914 {\
24915     func_arith_result=$(( $* ))\
24916 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24917   && mv -f "$cfgfile.tmp" "$cfgfile" \
24918     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24919 test 0 -eq $? || _lt_function_replace_fail=:
24920
24921
24922   sed -e '/^func_len ()$/,/^} # func_len /c\
24923 func_len ()\
24924 {\
24925     func_len_result=${#1}\
24926 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24927   && mv -f "$cfgfile.tmp" "$cfgfile" \
24928     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24929 test 0 -eq $? || _lt_function_replace_fail=:
24930
24931 fi
24932
24933 if test x"$lt_shell_append" = xyes; then
24934   sed -e '/^func_append ()$/,/^} # func_append /c\
24935 func_append ()\
24936 {\
24937     eval "${1}+=\\${2}"\
24938 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24939   && mv -f "$cfgfile.tmp" "$cfgfile" \
24940     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24941 test 0 -eq $? || _lt_function_replace_fail=:
24942
24943
24944   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24945 func_append_quoted ()\
24946 {\
24947 \    func_quote_for_eval "${2}"\
24948 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24949 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24950   && mv -f "$cfgfile.tmp" "$cfgfile" \
24951     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24952 test 0 -eq $? || _lt_function_replace_fail=:
24953
24954
24955   # Save a `func_append' function call where possible by direct use of '+='
24956   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24957     && mv -f "$cfgfile.tmp" "$cfgfile" \
24958       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24959   test 0 -eq $? || _lt_function_replace_fail=:
24960 else
24961   # Save a `func_append' function call even when '+=' is not available
24962   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24963     && mv -f "$cfgfile.tmp" "$cfgfile" \
24964       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24965   test 0 -eq $? || _lt_function_replace_fail=:
24966 fi
24967
24968 if test x"$_lt_function_replace_fail" = x":"; then
24969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24970 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24971 fi
24972
24973
24974    mv -f "$cfgfile" "$ofile" ||
24975     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24976   chmod +x "$ofile"
24977
24978
24979     cat <<_LT_EOF >> "$ofile"
24980
24981 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24982
24983 # The linker used to build libraries.
24984 LD=$lt_LD_CXX
24985
24986 # How to create reloadable object files.
24987 reload_flag=$lt_reload_flag_CXX
24988 reload_cmds=$lt_reload_cmds_CXX
24989
24990 # Commands used to build an old-style archive.
24991 old_archive_cmds=$lt_old_archive_cmds_CXX
24992
24993 # A language specific compiler.
24994 CC=$lt_compiler_CXX
24995
24996 # Is the compiler the GNU compiler?
24997 with_gcc=$GCC_CXX
24998
24999 # Compiler flag to turn off builtin functions.
25000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25001
25002 # Additional compiler flags for building library objects.
25003 pic_flag=$lt_lt_prog_compiler_pic_CXX
25004
25005 # How to pass a linker flag through the compiler.
25006 wl=$lt_lt_prog_compiler_wl_CXX
25007
25008 # Compiler flag to prevent dynamic linking.
25009 link_static_flag=$lt_lt_prog_compiler_static_CXX
25010
25011 # Does compiler simultaneously support -c and -o options?
25012 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25013
25014 # Whether or not to add -lc for building shared libraries.
25015 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25016
25017 # Whether or not to disallow shared libs when runtime libs are static.
25018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25019
25020 # Compiler flag to allow reflexive dlopens.
25021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25022
25023 # Compiler flag to generate shared objects directly from archives.
25024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25025
25026 # Whether the compiler copes with passing no objects directly.
25027 compiler_needs_object=$lt_compiler_needs_object_CXX
25028
25029 # Create an old-style archive from a shared archive.
25030 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25031
25032 # Create a temporary old-style archive to link instead of a shared archive.
25033 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25034
25035 # Commands used to build a shared archive.
25036 archive_cmds=$lt_archive_cmds_CXX
25037 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25038
25039 # Commands used to build a loadable module if different from building
25040 # a shared archive.
25041 module_cmds=$lt_module_cmds_CXX
25042 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25043
25044 # Whether we are building with GNU ld or not.
25045 with_gnu_ld=$lt_with_gnu_ld_CXX
25046
25047 # Flag that allows shared libraries with undefined symbols to be built.
25048 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25049
25050 # Flag that enforces no undefined symbols.
25051 no_undefined_flag=$lt_no_undefined_flag_CXX
25052
25053 # Flag to hardcode \$libdir into a binary during linking.
25054 # This must work even if \$libdir does not exist
25055 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25056
25057 # Whether we need a single "-rpath" flag with a separated argument.
25058 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25059
25060 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25061 # DIR into the resulting binary.
25062 hardcode_direct=$hardcode_direct_CXX
25063
25064 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25065 # DIR into the resulting binary and the resulting library dependency is
25066 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25067 # library is relocated.
25068 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25069
25070 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25071 # into the resulting binary.
25072 hardcode_minus_L=$hardcode_minus_L_CXX
25073
25074 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25075 # into the resulting binary.
25076 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25077
25078 # Set to "yes" if building a shared library automatically hardcodes DIR
25079 # into the library and all subsequent libraries and executables linked
25080 # against it.
25081 hardcode_automatic=$hardcode_automatic_CXX
25082
25083 # Set to yes if linker adds runtime paths of dependent libraries
25084 # to runtime path list.
25085 inherit_rpath=$inherit_rpath_CXX
25086
25087 # Whether libtool must link a program against all its dependency libraries.
25088 link_all_deplibs=$link_all_deplibs_CXX
25089
25090 # Set to "yes" if exported symbols are required.
25091 always_export_symbols=$always_export_symbols_CXX
25092
25093 # The commands to list exported symbols.
25094 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25095
25096 # Symbols that should not be listed in the preloaded symbols.
25097 exclude_expsyms=$lt_exclude_expsyms_CXX
25098
25099 # Symbols that must always be exported.
25100 include_expsyms=$lt_include_expsyms_CXX
25101
25102 # Commands necessary for linking programs (against libraries) with templates.
25103 prelink_cmds=$lt_prelink_cmds_CXX
25104
25105 # Commands necessary for finishing linking programs.
25106 postlink_cmds=$lt_postlink_cmds_CXX
25107
25108 # Specify filename containing input files.
25109 file_list_spec=$lt_file_list_spec_CXX
25110
25111 # How to hardcode a shared library path into an executable.
25112 hardcode_action=$hardcode_action_CXX
25113
25114 # The directories searched by this compiler when creating a shared library.
25115 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25116
25117 # Dependencies to place before and after the objects being linked to
25118 # create a shared library.
25119 predep_objects=$lt_predep_objects_CXX
25120 postdep_objects=$lt_postdep_objects_CXX
25121 predeps=$lt_predeps_CXX
25122 postdeps=$lt_postdeps_CXX
25123
25124 # The library search path used internally by the compiler when linking
25125 # a shared library.
25126 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25127
25128 # ### END LIBTOOL TAG CONFIG: CXX
25129 _LT_EOF
25130
25131
25132     cat <<_LT_EOF >> "$ofile"
25133
25134 # ### BEGIN LIBTOOL TAG CONFIG: RC
25135
25136 # The linker used to build libraries.
25137 LD=$lt_LD_RC
25138
25139 # How to create reloadable object files.
25140 reload_flag=$lt_reload_flag_RC
25141 reload_cmds=$lt_reload_cmds_RC
25142
25143 # Commands used to build an old-style archive.
25144 old_archive_cmds=$lt_old_archive_cmds_RC
25145
25146 # A language specific compiler.
25147 CC=$lt_compiler_RC
25148
25149 # Is the compiler the GNU compiler?
25150 with_gcc=$GCC_RC
25151
25152 # Compiler flag to turn off builtin functions.
25153 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25154
25155 # Additional compiler flags for building library objects.
25156 pic_flag=$lt_lt_prog_compiler_pic_RC
25157
25158 # How to pass a linker flag through the compiler.
25159 wl=$lt_lt_prog_compiler_wl_RC
25160
25161 # Compiler flag to prevent dynamic linking.
25162 link_static_flag=$lt_lt_prog_compiler_static_RC
25163
25164 # Does compiler simultaneously support -c and -o options?
25165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25166
25167 # Whether or not to add -lc for building shared libraries.
25168 build_libtool_need_lc=$archive_cmds_need_lc_RC
25169
25170 # Whether or not to disallow shared libs when runtime libs are static.
25171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25172
25173 # Compiler flag to allow reflexive dlopens.
25174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25175
25176 # Compiler flag to generate shared objects directly from archives.
25177 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25178
25179 # Whether the compiler copes with passing no objects directly.
25180 compiler_needs_object=$lt_compiler_needs_object_RC
25181
25182 # Create an old-style archive from a shared archive.
25183 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25184
25185 # Create a temporary old-style archive to link instead of a shared archive.
25186 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25187
25188 # Commands used to build a shared archive.
25189 archive_cmds=$lt_archive_cmds_RC
25190 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25191
25192 # Commands used to build a loadable module if different from building
25193 # a shared archive.
25194 module_cmds=$lt_module_cmds_RC
25195 module_expsym_cmds=$lt_module_expsym_cmds_RC
25196
25197 # Whether we are building with GNU ld or not.
25198 with_gnu_ld=$lt_with_gnu_ld_RC
25199
25200 # Flag that allows shared libraries with undefined symbols to be built.
25201 allow_undefined_flag=$lt_allow_undefined_flag_RC
25202
25203 # Flag that enforces no undefined symbols.
25204 no_undefined_flag=$lt_no_undefined_flag_RC
25205
25206 # Flag to hardcode \$libdir into a binary during linking.
25207 # This must work even if \$libdir does not exist
25208 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25209
25210 # Whether we need a single "-rpath" flag with a separated argument.
25211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25212
25213 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25214 # DIR into the resulting binary.
25215 hardcode_direct=$hardcode_direct_RC
25216
25217 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25218 # DIR into the resulting binary and the resulting library dependency is
25219 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25220 # library is relocated.
25221 hardcode_direct_absolute=$hardcode_direct_absolute_RC
25222
25223 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25224 # into the resulting binary.
25225 hardcode_minus_L=$hardcode_minus_L_RC
25226
25227 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25228 # into the resulting binary.
25229 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25230
25231 # Set to "yes" if building a shared library automatically hardcodes DIR
25232 # into the library and all subsequent libraries and executables linked
25233 # against it.
25234 hardcode_automatic=$hardcode_automatic_RC
25235
25236 # Set to yes if linker adds runtime paths of dependent libraries
25237 # to runtime path list.
25238 inherit_rpath=$inherit_rpath_RC
25239
25240 # Whether libtool must link a program against all its dependency libraries.
25241 link_all_deplibs=$link_all_deplibs_RC
25242
25243 # Set to "yes" if exported symbols are required.
25244 always_export_symbols=$always_export_symbols_RC
25245
25246 # The commands to list exported symbols.
25247 export_symbols_cmds=$lt_export_symbols_cmds_RC
25248
25249 # Symbols that should not be listed in the preloaded symbols.
25250 exclude_expsyms=$lt_exclude_expsyms_RC
25251
25252 # Symbols that must always be exported.
25253 include_expsyms=$lt_include_expsyms_RC
25254
25255 # Commands necessary for linking programs (against libraries) with templates.
25256 prelink_cmds=$lt_prelink_cmds_RC
25257
25258 # Commands necessary for finishing linking programs.
25259 postlink_cmds=$lt_postlink_cmds_RC
25260
25261 # Specify filename containing input files.
25262 file_list_spec=$lt_file_list_spec_RC
25263
25264 # How to hardcode a shared library path into an executable.
25265 hardcode_action=$hardcode_action_RC
25266
25267 # The directories searched by this compiler when creating a shared library.
25268 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
25269
25270 # Dependencies to place before and after the objects being linked to
25271 # create a shared library.
25272 predep_objects=$lt_predep_objects_RC
25273 postdep_objects=$lt_postdep_objects_RC
25274 predeps=$lt_predeps_RC
25275 postdeps=$lt_postdeps_RC
25276
25277 # The library search path used internally by the compiler when linking
25278 # a shared library.
25279 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25280
25281 # ### END LIBTOOL TAG CONFIG: RC
25282 _LT_EOF
25283
25284  ;;
25285     "src/gpgme-config":F) chmod +x src/gpgme-config ;;
25286     "lang/python/setup.py":F) chmod a+x lang/python/setup.py ;;
25287
25288   esac
25289 done # for ac_tag
25290
25291
25292 as_fn_exit 0
25293 _ACEOF
25294 ac_clean_files=$ac_clean_files_save
25295
25296 test $ac_write_fail = 0 ||
25297   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25298
25299
25300 # configure is writing to config.log, and then calls config.status.
25301 # config.status does its own redirection, appending to config.log.
25302 # Unfortunately, on DOS this fails, as config.log is still kept open
25303 # by configure, so config.status won't be able to write to it; its
25304 # output is simply discarded.  So we exec the FD to /dev/null,
25305 # effectively closing config.log, so it can be properly (re)opened and
25306 # appended to by config.status.  When coming back to configure, we
25307 # need to make the FD available again.
25308 if test "$no_create" != yes; then
25309   ac_cs_success=:
25310   ac_config_status_args=
25311   test "$silent" = yes &&
25312     ac_config_status_args="$ac_config_status_args --quiet"
25313   exec 5>/dev/null
25314   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25315   exec 5>>config.log
25316   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25317   # would make configure fail if this is the last instruction.
25318   $ac_cs_success || as_fn_exit 1
25319 fi
25320 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25321   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25322 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25323 fi
25324
25325
25326 echo "
25327         GPGME v${VERSION} has been configured as follows:
25328
25329         Revision:          f06220b  (61538)
25330         Platform:          $host
25331
25332         UI Server:         $uiserver
25333         FD Passing:        $use_descriptor_passing
25334
25335         Language bindings: ${enabled_languages_v:-$enabled_languages}
25336 "
25337 if test "x${gpg_config_script_warn}" != x; then
25338 cat <<G10EOF
25339         Mismatches between the target platform and the to
25340         be used libraries have been been detected for:
25341          ${gpg_config_script_warn}
25342         Please check above for warning messages.
25343
25344 G10EOF
25345 fi