7fae0be934d8460cc9fb4097defdaa1ba31cf0fe
[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.5.3.
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.5.3'
594 PACKAGE_STRING='gpgme 1.5.3'
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_HOST
643 GPGME_CONFIG_CFLAGS
644 GPGME_CONFIG_LIBS
645 GPGME_CONFIG_API_VERSION
646 HAVE_UISERVER_FALSE
647 HAVE_UISERVER_TRUE
648 USE_DESCRIPTOR_PASSING_FALSE
649 USE_DESCRIPTOR_PASSING_TRUE
650 LIBASSUAN_LIBS
651 LIBASSUAN_CFLAGS
652 LIBASSUAN_CONFIG
653 GPG_ERROR_MT_LIBS
654 GPG_ERROR_MT_CFLAGS
655 GPG_ERROR_LIBS
656 GPG_ERROR_CFLAGS
657 GPG_ERROR_CONFIG
658 GLIBC21
659 LIBOBJS
660 API__SSIZE_T
661 API__OFF_T
662 INSERT__TYPEDEFS_FOR_GPGME_H
663 NEED__FILE_OFFSET_BITS
664 RUN_G13_TESTS_FALSE
665 RUN_G13_TESTS_TRUE
666 RUN_GPGSM_TESTS_FALSE
667 RUN_GPGSM_TESTS_TRUE
668 RUN_GPG_TESTS_FALSE
669 RUN_GPG_TESTS_TRUE
670 RUN_GPGCONF_TESTS_FALSE
671 RUN_GPGCONF_TESTS_TRUE
672 BUILD_TIMESTAMP
673 BUILD_FILEVERSION
674 BUILD_REVISION
675 HAVE_PTHREAD_FALSE
676 HAVE_PTHREAD_TRUE
677 BUILD_W32_QT_FALSE
678 BUILD_W32_QT_TRUE
679 BUILD_W32_GLIB_FALSE
680 BUILD_W32_GLIB_TRUE
681 HAVE_ANDROID_SYSTEM_FALSE
682 HAVE_ANDROID_SYSTEM_TRUE
683 HAVE_W32CE_SYSTEM_FALSE
684 HAVE_W32CE_SYSTEM_TRUE
685 HAVE_W64_SYSTEM_FALSE
686 HAVE_W64_SYSTEM_TRUE
687 HAVE_W32_SYSTEM_FALSE
688 HAVE_W32_SYSTEM_TRUE
689 HAVE_DOSISH_SYSTEM_FALSE
690 HAVE_DOSISH_SYSTEM_TRUE
691 QT4_CORE_LIBS
692 QT4_CORE_CFLAGS
693 GLIB_MKENUMS
694 GOBJECT_QUERY
695 GLIB_GENMARSHAL
696 GLIB_LIBS
697 GLIB_CFLAGS
698 PKG_CONFIG
699 HAVE_LD_VERSION_SCRIPT_FALSE
700 HAVE_LD_VERSION_SCRIPT_TRUE
701 RC
702 CXXCPP
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 MANIFEST_TOOL
709 RANLIB
710 ac_ct_AR
711 AR
712 LN_S
713 NM
714 ac_ct_DUMPBIN
715 DUMPBIN
716 LD
717 FGREP
718 SED
719 LIBTOOL
720 OBJDUMP
721 DLLTOOL
722 AS
723 VERSION_NUMBER
724 LIBGPGME_LT_REVISION
725 LIBGPGME_LT_AGE
726 LIBGPGME_LT_CURRENT
727 GITLOG_TO_CHANGELOG
728 am__fastdepCXX_FALSE
729 am__fastdepCXX_TRUE
730 CXXDEPMODE
731 ac_ct_CXX
732 CXXFLAGS
733 CXX
734 EGREP
735 GREP
736 CPP
737 am__fastdepCC_FALSE
738 am__fastdepCC_TRUE
739 CCDEPMODE
740 am__nodep
741 AMDEPBACKSLASH
742 AMDEP_FALSE
743 AMDEP_TRUE
744 am__quote
745 am__include
746 DEPDIR
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
753 CC
754 SYSROOT
755 AM_BACKSLASH
756 AM_DEFAULT_VERBOSITY
757 AM_DEFAULT_V
758 AM_V
759 host_os
760 host_vendor
761 host_cpu
762 host
763 build_os
764 build_vendor
765 build_cpu
766 build
767 MAINT
768 MAINTAINER_MODE_FALSE
769 MAINTAINER_MODE_TRUE
770 am__untar
771 am__tar
772 AMTAR
773 am__leading_dot
774 SET_MAKE
775 AWK
776 mkdir_p
777 MKDIR_P
778 INSTALL_STRIP_PROGRAM
779 STRIP
780 install_sh
781 MAKEINFO
782 AUTOHEADER
783 AUTOMAKE
784 AUTOCONF
785 ACLOCAL
786 VERSION
787 PACKAGE
788 CYGPATH_W
789 am__isrc
790 INSTALL_DATA
791 INSTALL_SCRIPT
792 INSTALL_PROGRAM
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_maintainer_mode
835 enable_silent_rules
836 enable_dependency_tracking
837 enable_static
838 enable_shared
839 with_pic
840 enable_fast_install
841 with_gnu_ld
842 with_sysroot
843 enable_libtool_lock
844 enable_glibtest
845 enable_w32_glib
846 enable_w32_qt
847 enable_fixed_path
848 enable_gpgconf_test
849 enable_gpg_test
850 enable_gpgsm_test
851 enable_g13_test
852 enable_largefile
853 with_libgpg_error_prefix
854 with_gpg_error_prefix
855 with_libassuan_prefix
856 enable_fd_passing
857 '
858       ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 SYSROOT
862 CC
863 CFLAGS
864 LDFLAGS
865 LIBS
866 CPPFLAGS
867 CPP
868 CXX
869 CXXFLAGS
870 CCC
871 CXXCPP'
872
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926   # If the previous option needs an argument, assign it.
927   if test -n "$ac_prev"; then
928     eval $ac_prev=\$ac_option
929     ac_prev=
930     continue
931   fi
932
933   case $ac_option in
934   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935   *=)   ac_optarg= ;;
936   *)    ac_optarg=yes ;;
937   esac
938
939   # Accept the important Cygnus configure options, so we can diagnose typos.
940
941   case $ac_dashdash$ac_option in
942   --)
943     ac_dashdash=yes ;;
944
945   -bindir | --bindir | --bindi | --bind | --bin | --bi)
946     ac_prev=bindir ;;
947   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948     bindir=$ac_optarg ;;
949
950   -build | --build | --buil | --bui | --bu)
951     ac_prev=build_alias ;;
952   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953     build_alias=$ac_optarg ;;
954
955   -cache-file | --cache-file | --cache-fil | --cache-fi \
956   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957     ac_prev=cache_file ;;
958   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960     cache_file=$ac_optarg ;;
961
962   --config-cache | -C)
963     cache_file=config.cache ;;
964
965   -datadir | --datadir | --datadi | --datad)
966     ac_prev=datadir ;;
967   -datadir=* | --datadir=* | --datadi=* | --datad=*)
968     datadir=$ac_optarg ;;
969
970   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971   | --dataroo | --dataro | --datar)
972     ac_prev=datarootdir ;;
973   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975     datarootdir=$ac_optarg ;;
976
977   -disable-* | --disable-*)
978     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979     # Reject names that are not valid shell variable names.
980     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981       as_fn_error $? "invalid feature name: $ac_useropt"
982     ac_useropt_orig=$ac_useropt
983     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984     case $ac_user_opts in
985       *"
986 "enable_$ac_useropt"
987 "*) ;;
988       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989          ac_unrecognized_sep=', ';;
990     esac
991     eval enable_$ac_useropt=no ;;
992
993   -docdir | --docdir | --docdi | --doc | --do)
994     ac_prev=docdir ;;
995   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996     docdir=$ac_optarg ;;
997
998   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999     ac_prev=dvidir ;;
1000   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001     dvidir=$ac_optarg ;;
1002
1003   -enable-* | --enable-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error $? "invalid feature name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021   | --exec | --exe | --ex)
1022     ac_prev=exec_prefix ;;
1023   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025   | --exec=* | --exe=* | --ex=*)
1026     exec_prefix=$ac_optarg ;;
1027
1028   -gas | --gas | --ga | --g)
1029     # Obsolete; use --with-gas.
1030     with_gas=yes ;;
1031
1032   -help | --help | --hel | --he | -h)
1033     ac_init_help=long ;;
1034   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035     ac_init_help=recursive ;;
1036   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037     ac_init_help=short ;;
1038
1039   -host | --host | --hos | --ho)
1040     ac_prev=host_alias ;;
1041   -host=* | --host=* | --hos=* | --ho=*)
1042     host_alias=$ac_optarg ;;
1043
1044   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045     ac_prev=htmldir ;;
1046   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047   | --ht=*)
1048     htmldir=$ac_optarg ;;
1049
1050   -includedir | --includedir | --includedi | --included | --include \
1051   | --includ | --inclu | --incl | --inc)
1052     ac_prev=includedir ;;
1053   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054   | --includ=* | --inclu=* | --incl=* | --inc=*)
1055     includedir=$ac_optarg ;;
1056
1057   -infodir | --infodir | --infodi | --infod | --info | --inf)
1058     ac_prev=infodir ;;
1059   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060     infodir=$ac_optarg ;;
1061
1062   -libdir | --libdir | --libdi | --libd)
1063     ac_prev=libdir ;;
1064   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065     libdir=$ac_optarg ;;
1066
1067   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068   | --libexe | --libex | --libe)
1069     ac_prev=libexecdir ;;
1070   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071   | --libexe=* | --libex=* | --libe=*)
1072     libexecdir=$ac_optarg ;;
1073
1074   -localedir | --localedir | --localedi | --localed | --locale)
1075     ac_prev=localedir ;;
1076   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077     localedir=$ac_optarg ;;
1078
1079   -localstatedir | --localstatedir | --localstatedi | --localstated \
1080   | --localstate | --localstat | --localsta | --localst | --locals)
1081     ac_prev=localstatedir ;;
1082   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084     localstatedir=$ac_optarg ;;
1085
1086   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087     ac_prev=mandir ;;
1088   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089     mandir=$ac_optarg ;;
1090
1091   -nfp | --nfp | --nf)
1092     # Obsolete; use --without-fp.
1093     with_fp=no ;;
1094
1095   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096   | --no-cr | --no-c | -n)
1097     no_create=yes ;;
1098
1099   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101     no_recursion=yes ;;
1102
1103   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105   | --oldin | --oldi | --old | --ol | --o)
1106     ac_prev=oldincludedir ;;
1107   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110     oldincludedir=$ac_optarg ;;
1111
1112   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113     ac_prev=prefix ;;
1114   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115     prefix=$ac_optarg ;;
1116
1117   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118   | --program-pre | --program-pr | --program-p)
1119     ac_prev=program_prefix ;;
1120   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122     program_prefix=$ac_optarg ;;
1123
1124   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125   | --program-suf | --program-su | --program-s)
1126     ac_prev=program_suffix ;;
1127   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129     program_suffix=$ac_optarg ;;
1130
1131   -program-transform-name | --program-transform-name \
1132   | --program-transform-nam | --program-transform-na \
1133   | --program-transform-n | --program-transform- \
1134   | --program-transform | --program-transfor \
1135   | --program-transfo | --program-transf \
1136   | --program-trans | --program-tran \
1137   | --progr-tra | --program-tr | --program-t)
1138     ac_prev=program_transform_name ;;
1139   -program-transform-name=* | --program-transform-name=* \
1140   | --program-transform-nam=* | --program-transform-na=* \
1141   | --program-transform-n=* | --program-transform-=* \
1142   | --program-transform=* | --program-transfor=* \
1143   | --program-transfo=* | --program-transf=* \
1144   | --program-trans=* | --program-tran=* \
1145   | --progr-tra=* | --program-tr=* | --program-t=*)
1146     program_transform_name=$ac_optarg ;;
1147
1148   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149     ac_prev=pdfdir ;;
1150   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151     pdfdir=$ac_optarg ;;
1152
1153   -psdir | --psdir | --psdi | --psd | --ps)
1154     ac_prev=psdir ;;
1155   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156     psdir=$ac_optarg ;;
1157
1158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159   | -silent | --silent | --silen | --sile | --sil)
1160     silent=yes ;;
1161
1162   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163     ac_prev=sbindir ;;
1164   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165   | --sbi=* | --sb=*)
1166     sbindir=$ac_optarg ;;
1167
1168   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170   | --sharedst | --shareds | --shared | --share | --shar \
1171   | --sha | --sh)
1172     ac_prev=sharedstatedir ;;
1173   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176   | --sha=* | --sh=*)
1177     sharedstatedir=$ac_optarg ;;
1178
1179   -site | --site | --sit)
1180     ac_prev=site ;;
1181   -site=* | --site=* | --sit=*)
1182     site=$ac_optarg ;;
1183
1184   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185     ac_prev=srcdir ;;
1186   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187     srcdir=$ac_optarg ;;
1188
1189   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190   | --syscon | --sysco | --sysc | --sys | --sy)
1191     ac_prev=sysconfdir ;;
1192   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194     sysconfdir=$ac_optarg ;;
1195
1196   -target | --target | --targe | --targ | --tar | --ta | --t)
1197     ac_prev=target_alias ;;
1198   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199     target_alias=$ac_optarg ;;
1200
1201   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202     verbose=yes ;;
1203
1204   -version | --version | --versio | --versi | --vers | -V)
1205     ac_init_version=: ;;
1206
1207   -with-* | --with-*)
1208     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209     # Reject names that are not valid shell variable names.
1210     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211       as_fn_error $? "invalid package name: $ac_useropt"
1212     ac_useropt_orig=$ac_useropt
1213     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214     case $ac_user_opts in
1215       *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219          ac_unrecognized_sep=', ';;
1220     esac
1221     eval with_$ac_useropt=\$ac_optarg ;;
1222
1223   -without-* | --without-*)
1224     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227       as_fn_error $? "invalid package name: $ac_useropt"
1228     ac_useropt_orig=$ac_useropt
1229     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230     case $ac_user_opts in
1231       *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235          ac_unrecognized_sep=', ';;
1236     esac
1237     eval with_$ac_useropt=no ;;
1238
1239   --x)
1240     # Obsolete; use --with-x.
1241     with_x=yes ;;
1242
1243   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244   | --x-incl | --x-inc | --x-in | --x-i)
1245     ac_prev=x_includes ;;
1246   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248     x_includes=$ac_optarg ;;
1249
1250   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252     ac_prev=x_libraries ;;
1253   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255     x_libraries=$ac_optarg ;;
1256
1257   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1259     ;;
1260
1261   *=*)
1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263     # Reject names that are not valid shell variable names.
1264     case $ac_envvar in #(
1265       '' | [0-9]* | *[!_$as_cr_alnum]* )
1266       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267     esac
1268     eval $ac_envvar=\$ac_optarg
1269     export $ac_envvar ;;
1270
1271   *)
1272     # FIXME: should be removed in autoconf 3.0.
1273     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277     ;;
1278
1279   esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284   as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288   case $enable_option_checking in
1289     no) ;;
1290     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292   esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297                 datadir sysconfdir sharedstatedir localstatedir includedir \
1298                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299                 libdir localedir mandir
1300 do
1301   eval ac_val=\$$ac_var
1302   # Remove trailing slashes.
1303   case $ac_val in
1304     */ )
1305       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306       eval $ac_var=\$ac_val;;
1307   esac
1308   # Be sure to have absolute directory names.
1309   case $ac_val in
1310     [\\/$]* | ?:[\\/]* )  continue;;
1311     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312   esac
1313   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387         pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390   srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_env_${ac_var}_value=\$${ac_var}
1401   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409   # Omit some internal or obsolete options to make the list less imposing.
1410   # This message is too long to be a string in the A/UX 3.1 sh.
1411   cat <<_ACEOF
1412 \`configure' configures gpgme 1.5.3 to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE.  See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422   -h, --help              display this help and exit
1423       --help=short        display options specific to this package
1424       --help=recursive    display the short help of all the included packages
1425   -V, --version           display version information and exit
1426   -q, --quiet, --silent   do not print \`checking ...' messages
1427       --cache-file=FILE   cache test results in FILE [disabled]
1428   -C, --config-cache      alias for \`--cache-file=config.cache'
1429   -n, --no-create         do not create output files
1430       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433   --prefix=PREFIX         install architecture-independent files in PREFIX
1434                           [$ac_default_prefix]
1435   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1436                           [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446   --bindir=DIR            user executables [EPREFIX/bin]
1447   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1448   --libexecdir=DIR        program executables [EPREFIX/libexec]
1449   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1450   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1451   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1452   --libdir=DIR            object code libraries [EPREFIX/lib]
1453   --includedir=DIR        C header files [PREFIX/include]
1454   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1455   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1456   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1457   --infodir=DIR           info documentation [DATAROOTDIR/info]
1458   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1459   --mandir=DIR            man documentation [DATAROOTDIR/man]
1460   --docdir=DIR            documentation root [DATAROOTDIR/doc/gpgme]
1461   --htmldir=DIR           html documentation [DOCDIR]
1462   --dvidir=DIR            dvi documentation [DOCDIR]
1463   --pdfdir=DIR            pdf documentation [DOCDIR]
1464   --psdir=DIR             ps documentation [DOCDIR]
1465 _ACEOF
1466
1467   cat <<\_ACEOF
1468
1469 Program names:
1470   --program-prefix=PREFIX            prepend PREFIX to installed program names
1471   --program-suffix=SUFFIX            append SUFFIX to installed program names
1472   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1473
1474 System types:
1475   --build=BUILD     configure for building on BUILD [guessed]
1476   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481   case $ac_init_help in
1482      short | recursive ) echo "Configuration of gpgme 1.5.3:";;
1483    esac
1484   cat <<\_ACEOF
1485
1486 Optional Features:
1487   --disable-option-checking  ignore unrecognized --enable/--with options
1488   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1489   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490   --enable-maintainer-mode  enable make rules and dependencies not useful
1491                           (and sometimes confusing) to the casual installer
1492   --enable-silent-rules          less verbose build output (undo: `make V=1')
1493   --disable-silent-rules         verbose build output (undo: `make V=0')
1494   --disable-dependency-tracking  speeds up one-time build
1495   --enable-dependency-tracking   do not reject slow dependency extractors
1496   --enable-static[=PKGS]  build static libraries [default=no]
1497   --enable-shared[=PKGS]  build shared libraries [default=yes]
1498   --enable-fast-install[=PKGS]
1499                           optimize for fast installation [default=yes]
1500   --disable-libtool-lock  avoid locking (might break parallel builds)
1501   --disable-glibtest      do not try to compile and run a test GLIB program
1502   --enable-w32-glib       build GPGME Glib for W32
1503   --enable-w32-qt         build GPGME Qt for W32
1504   --enable-fixed-path=PATH
1505                           locate binaries only via this PATH
1506   --disable-gpgconf-test  disable GPGCONF regression test
1507   --disable-gpg-test      disable GPG regression test
1508   --disable-gpgsm-test    disable GPGSM regression test
1509   --disable-g13-test      disable G13 regression test
1510   --disable-largefile     omit support for large files
1511   --disable-fd-passing    do not use FD passing
1512
1513 Optional Packages:
1514   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1517                           both]
1518   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1519   --with-sysroot=DIR Search for dependent libraries within DIR
1520                         (or the compiler's sysroot if not specified).
1521   --with-libgpg-error-prefix=PFX
1522                           prefix where GPG Error is installed (optional)
1523
1524   --with-libassuan-prefix=PFX
1525                           prefix where LIBASSUAN is installed (optional)
1526
1527 Some influential environment variables:
1528   SYSROOT     locate config scripts also below that directory
1529   CC          C compiler command
1530   CFLAGS      C compiler flags
1531   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1532               nonstandard directory <lib dir>
1533   LIBS        libraries to pass to the linker, e.g. -l<library>
1534   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535               you have headers in a nonstandard directory <include dir>
1536   CPP         C preprocessor
1537   CXX         C++ compiler command
1538   CXXFLAGS    C++ compiler flags
1539   CXXCPP      C++ preprocessor
1540
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to <http://bugs.gnupg.org>.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550   # If there are subdirs, report their specific --help.
1551   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552     test -d "$ac_dir" ||
1553       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554       continue
1555     ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561   # A ".." for each directory in $ac_dir_suffix.
1562   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563   case $ac_top_builddir_sub in
1564   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566   esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574   .)  # We are building in place.
1575     ac_srcdir=.
1576     ac_top_srcdir=$ac_top_builddir_sub
1577     ac_abs_top_srcdir=$ac_pwd ;;
1578   [\\/]* | ?:[\\/]* )  # Absolute name.
1579     ac_srcdir=$srcdir$ac_dir_suffix;
1580     ac_top_srcdir=$srcdir
1581     ac_abs_top_srcdir=$srcdir ;;
1582   *) # Relative name.
1583     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584     ac_top_srcdir=$ac_top_build_prefix$srcdir
1585     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589     cd "$ac_dir" || { ac_status=$?; continue; }
1590     # Check for guested configure.
1591     if test -f "$ac_srcdir/configure.gnu"; then
1592       echo &&
1593       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594     elif test -f "$ac_srcdir/configure"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure" --help=recursive
1597     else
1598       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599     fi || ac_status=$?
1600     cd "$ac_pwd" || { ac_status=$?; break; }
1601   done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606   cat <<\_ACEOF
1607 gpgme configure 1.5.3
1608 generated by GNU Autoconf 2.69
1609
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614   exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   rm -f conftest.$ac_objext
1628   if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631   *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635   (eval "$ac_compile") 2>conftest.err
1636   ac_status=$?
1637   if test -s conftest.err; then
1638     grep -v '^ *+' conftest.err >conftest.er1
1639     cat conftest.er1 >&5
1640     mv -f conftest.er1 conftest.err
1641   fi
1642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643   test $ac_status = 0; } && {
1644          test -z "$ac_c_werror_flag" ||
1645          test ! -s conftest.err
1646        } && test -s conftest.$ac_objext; then :
1647   ac_retval=0
1648 else
1649   $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652         ac_retval=1
1653 fi
1654   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655   as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673   ac_status=$?
1674   if test -s conftest.err; then
1675     grep -v '^ *+' conftest.err >conftest.er1
1676     cat conftest.er1 >&5
1677     mv -f conftest.er1 conftest.err
1678   fi
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } > conftest.i && {
1681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682          test ! -s conftest.err
1683        }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689     ac_retval=1
1690 fi
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692   as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699 # the include files in INCLUDES and setting the cache variable VAR
1700 # accordingly.
1701 ac_fn_c_check_header_mongrel ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   if eval \${$3+:} false; then :
1705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708   $as_echo_n "(cached) " >&6
1709 fi
1710 eval ac_res=\$$3
1711                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713 else
1714   # Is the header compilable?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716 $as_echo_n "checking $2 usability... " >&6; }
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h.  */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723   ac_header_compiler=yes
1724 else
1725   ac_header_compiler=no
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729 $as_echo "$ac_header_compiler" >&6; }
1730
1731 # Is the header present?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733 $as_echo_n "checking $2 presence... " >&6; }
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h.  */
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_cpp "$LINENO"; then :
1739   ac_header_preproc=yes
1740 else
1741   ac_header_preproc=no
1742 fi
1743 rm -f conftest.err conftest.i conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745 $as_echo "$ac_header_preproc" >&6; }
1746
1747 # So?  What about this header?
1748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749   yes:no: )
1750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754     ;;
1755   no:yes:* )
1756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1759 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1760     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1763 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1764     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 ( $as_echo "## ------------------------------------ ##
1767 ## Report this to http://bugs.gnupg.org ##
1768 ## ------------------------------------ ##"
1769      ) | sed "s/^/$as_me: WARNING:     /" >&2
1770     ;;
1771 esac
1772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775   $as_echo_n "(cached) " >&6
1776 else
1777   eval "$3=\$ac_header_compiler"
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 fi
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_mongrel
1786
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1791 ac_fn_c_try_run ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_link") 2>&5
1802   ac_status=$?
1803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805   { { case "(($ac_try" in
1806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807   *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811   (eval "$ac_try") 2>&5
1812   ac_status=$?
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; }; }; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: program exited with status $ac_status" >&5
1818        $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821        ac_retval=$ac_status
1822 fi
1823   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825   as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_run
1828
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839   $as_echo_n "(cached) " >&6
1840 else
1841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h.  */
1843 $4
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847   eval "$3=yes"
1848 else
1849   eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 fi
1853 eval ac_res=\$$3
1854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_header_compile
1859
1860 # ac_fn_cxx_try_compile LINENO
1861 # ----------------------------
1862 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_cxx_try_compile ()
1864 {
1865   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866   rm -f conftest.$ac_objext
1867   if { { ac_try="$ac_compile"
1868 case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874   (eval "$ac_compile") 2>conftest.err
1875   ac_status=$?
1876   if test -s conftest.err; then
1877     grep -v '^ *+' conftest.err >conftest.er1
1878     cat conftest.er1 >&5
1879     mv -f conftest.er1 conftest.err
1880   fi
1881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882   test $ac_status = 0; } && {
1883          test -z "$ac_cxx_werror_flag" ||
1884          test ! -s conftest.err
1885        } && test -s conftest.$ac_objext; then :
1886   ac_retval=0
1887 else
1888   $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891         ac_retval=1
1892 fi
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894   as_fn_set_status $ac_retval
1895
1896 } # ac_fn_cxx_try_compile
1897
1898 # ac_fn_c_try_link LINENO
1899 # -----------------------
1900 # Try to link conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_c_try_link ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   rm -f conftest.$ac_objext conftest$ac_exeext
1905   if { { ac_try="$ac_link"
1906 case "(($ac_try" in
1907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908   *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912   (eval "$ac_link") 2>conftest.err
1913   ac_status=$?
1914   if test -s conftest.err; then
1915     grep -v '^ *+' conftest.err >conftest.er1
1916     cat conftest.er1 >&5
1917     mv -f conftest.er1 conftest.err
1918   fi
1919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920   test $ac_status = 0; } && {
1921          test -z "$ac_c_werror_flag" ||
1922          test ! -s conftest.err
1923        } && test -s conftest$ac_exeext && {
1924          test "$cross_compiling" = yes ||
1925          test -x conftest$ac_exeext
1926        }; then :
1927   ac_retval=0
1928 else
1929   $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932         ac_retval=1
1933 fi
1934   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1935   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1936   # interfere with the next link command; also delete a directory that is
1937   # left behind by Apple's compiler.  We do this before executing the actions.
1938   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940   as_fn_set_status $ac_retval
1941
1942 } # ac_fn_c_try_link
1943
1944 # ac_fn_c_check_func LINENO FUNC VAR
1945 # ----------------------------------
1946 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1947 ac_fn_c_check_func ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953   $as_echo_n "(cached) " >&6
1954 else
1955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h.  */
1957 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1959 #define $2 innocuous_$2
1960
1961 /* System header to define __stub macros and hopefully few prototypes,
1962     which can conflict with char $2 (); below.
1963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1964     <limits.h> exists even on freestanding compilers.  */
1965
1966 #ifdef __STDC__
1967 # include <limits.h>
1968 #else
1969 # include <assert.h>
1970 #endif
1971
1972 #undef $2
1973
1974 /* Override any GCC internal prototype to avoid an error.
1975    Use char because int might match the return type of a GCC
1976    builtin and then its argument prototype would still apply.  */
1977 #ifdef __cplusplus
1978 extern "C"
1979 #endif
1980 char $2 ();
1981 /* The GNU C library defines this for functions which it implements
1982     to always fail with ENOSYS.  Some functions are actually named
1983     something starting with __ and the normal name is an alias.  */
1984 #if defined __stub_$2 || defined __stub___$2
1985 choke me
1986 #endif
1987
1988 int
1989 main ()
1990 {
1991 return $2 ();
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_link "$LINENO"; then :
1997   eval "$3=yes"
1998 else
1999   eval "$3=no"
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext \
2002     conftest$ac_exeext conftest.$ac_ext
2003 fi
2004 eval ac_res=\$$3
2005                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009 } # ac_fn_c_check_func
2010
2011 # ac_fn_cxx_try_cpp LINENO
2012 # ------------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_cpp ()
2015 {
2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017   if { { ac_try="$ac_cpp conftest.$ac_ext"
2018 case "(($ac_try" in
2019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020   *) ac_try_echo=$ac_try;;
2021 esac
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2025   ac_status=$?
2026   if test -s conftest.err; then
2027     grep -v '^ *+' conftest.err >conftest.er1
2028     cat conftest.er1 >&5
2029     mv -f conftest.er1 conftest.err
2030   fi
2031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032   test $ac_status = 0; } > conftest.i && {
2033          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034          test ! -s conftest.err
2035        }; then :
2036   ac_retval=0
2037 else
2038   $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041     ac_retval=1
2042 fi
2043   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044   as_fn_set_status $ac_retval
2045
2046 } # ac_fn_cxx_try_cpp
2047
2048 # ac_fn_cxx_try_link LINENO
2049 # -------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 ac_fn_cxx_try_link ()
2052 {
2053   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054   rm -f conftest.$ac_objext conftest$ac_exeext
2055   if { { ac_try="$ac_link"
2056 case "(($ac_try" in
2057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058   *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062   (eval "$ac_link") 2>conftest.err
2063   ac_status=$?
2064   if test -s conftest.err; then
2065     grep -v '^ *+' conftest.err >conftest.er1
2066     cat conftest.er1 >&5
2067     mv -f conftest.er1 conftest.err
2068   fi
2069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070   test $ac_status = 0; } && {
2071          test -z "$ac_cxx_werror_flag" ||
2072          test ! -s conftest.err
2073        } && test -s conftest$ac_exeext && {
2074          test "$cross_compiling" = yes ||
2075          test -x conftest$ac_exeext
2076        }; then :
2077   ac_retval=0
2078 else
2079   $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2081
2082         ac_retval=1
2083 fi
2084   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086   # interfere with the next link command; also delete a directory that is
2087   # left behind by Apple's compiler.  We do this before executing the actions.
2088   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090   as_fn_set_status $ac_retval
2091
2092 } # ac_fn_cxx_try_link
2093
2094 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2095 # --------------------------------------------
2096 # Tries to find the compile-time value of EXPR in a program that includes
2097 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2098 # computed
2099 ac_fn_c_compute_int ()
2100 {
2101   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102   if test "$cross_compiling" = yes; then
2103     # Depending upon the size, compute the lo and hi bounds.
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h.  */
2106 $4
2107 int
2108 main ()
2109 {
2110 static int test_array [1 - 2 * !(($2) >= 0)];
2111 test_array [0] = 0;
2112 return test_array [0];
2113
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119   ac_lo=0 ac_mid=0
2120   while :; do
2121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2128 test_array [0] = 0;
2129 return test_array [0];
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136   ac_hi=$ac_mid; break
2137 else
2138   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2139                         if test $ac_lo -le $ac_mid; then
2140                           ac_lo= ac_hi=
2141                           break
2142                         fi
2143                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146   done
2147 else
2148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h.  */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) < 0)];
2155 test_array [0] = 0;
2156 return test_array [0];
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163   ac_hi=-1 ac_mid=-1
2164   while :; do
2165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172 test_array [0] = 0;
2173 return test_array [0];
2174
2175   ;
2176   return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180   ac_lo=$ac_mid; break
2181 else
2182   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2183                         if test $ac_mid -le $ac_hi; then
2184                           ac_lo= ac_hi=
2185                           break
2186                         fi
2187                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190   done
2191 else
2192   ac_lo= ac_hi=
2193 fi
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 # Binary search between lo and hi bounds.
2198 while test "x$ac_lo" != "x$ac_hi"; do
2199   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h.  */
2202 $4
2203 int
2204 main ()
2205 {
2206 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 test_array [0] = 0;
2208 return test_array [0];
2209
2210   ;
2211   return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215   ac_hi=$ac_mid
2216 else
2217   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 done
2221 case $ac_lo in #((
2222 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2223 '') ac_retval=1 ;;
2224 esac
2225   else
2226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 $4
2229 static long int longval () { return $2; }
2230 static unsigned long int ulongval () { return $2; }
2231 #include <stdio.h>
2232 #include <stdlib.h>
2233 int
2234 main ()
2235 {
2236
2237   FILE *f = fopen ("conftest.val", "w");
2238   if (! f)
2239     return 1;
2240   if (($2) < 0)
2241     {
2242       long int i = longval ();
2243       if (i != ($2))
2244         return 1;
2245       fprintf (f, "%ld", i);
2246     }
2247   else
2248     {
2249       unsigned long int i = ulongval ();
2250       if (i != ($2))
2251         return 1;
2252       fprintf (f, "%lu", i);
2253     }
2254   /* Do not output a trailing newline, as this causes \r\n confusion
2255      on some platforms.  */
2256   return ferror (f) || fclose (f) != 0;
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_run "$LINENO"; then :
2263   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2264 else
2265   ac_retval=1
2266 fi
2267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2268   conftest.$ac_objext conftest.beam conftest.$ac_ext
2269 rm -f conftest.val
2270
2271   fi
2272   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273   as_fn_set_status $ac_retval
2274
2275 } # ac_fn_c_compute_int
2276
2277 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2278 # -------------------------------------------
2279 # Tests whether TYPE exists after having included INCLUDES, setting cache
2280 # variable VAR accordingly.
2281 ac_fn_c_check_type ()
2282 {
2283   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285 $as_echo_n "checking for $2... " >&6; }
2286 if eval \${$3+:} false; then :
2287   $as_echo_n "(cached) " >&6
2288 else
2289   eval "$3=no"
2290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h.  */
2292 $4
2293 int
2294 main ()
2295 {
2296 if (sizeof ($2))
2297          return 0;
2298   ;
2299   return 0;
2300 }
2301 _ACEOF
2302 if ac_fn_c_try_compile "$LINENO"; then :
2303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h.  */
2305 $4
2306 int
2307 main ()
2308 {
2309 if (sizeof (($2)))
2310             return 0;
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316
2317 else
2318   eval "$3=yes"
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 fi
2324 eval ac_res=\$$3
2325                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328
2329 } # ac_fn_c_check_type
2330
2331 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2332 # ---------------------------------------------
2333 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2334 # accordingly.
2335 ac_fn_c_check_decl ()
2336 {
2337   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338   as_decl_name=`echo $2|sed 's/ *(.*//'`
2339   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2341 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2342 if eval \${$3+:} false; then :
2343   $as_echo_n "(cached) " >&6
2344 else
2345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 $4
2348 int
2349 main ()
2350 {
2351 #ifndef $as_decl_name
2352 #ifdef __cplusplus
2353   (void) $as_decl_use;
2354 #else
2355   (void) $as_decl_name;
2356 #endif
2357 #endif
2358
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364   eval "$3=yes"
2365 else
2366   eval "$3=no"
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 fi
2370 eval ac_res=\$$3
2371                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 $as_echo "$ac_res" >&6; }
2373   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2374
2375 } # ac_fn_c_check_decl
2376
2377 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2378 # ----------------------------------------------------
2379 # Tries to find if the field MEMBER exists in type AGGR, after including
2380 # INCLUDES, setting cache variable VAR accordingly.
2381 ac_fn_c_check_member ()
2382 {
2383   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2385 $as_echo_n "checking for $2.$3... " >&6; }
2386 if eval \${$4+:} false; then :
2387   $as_echo_n "(cached) " >&6
2388 else
2389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h.  */
2391 $5
2392 int
2393 main ()
2394 {
2395 static $2 ac_aggr;
2396 if (ac_aggr.$3)
2397 return 0;
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 if ac_fn_c_try_compile "$LINENO"; then :
2403   eval "$4=yes"
2404 else
2405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h.  */
2407 $5
2408 int
2409 main ()
2410 {
2411 static $2 ac_aggr;
2412 if (sizeof ac_aggr.$3)
2413 return 0;
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419   eval "$4=yes"
2420 else
2421   eval "$4=no"
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 fi
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 fi
2427 eval ac_res=\$$4
2428                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2431
2432 } # ac_fn_c_check_member
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2436
2437 It was created by gpgme $as_me 1.5.3, which was
2438 generated by GNU Autoconf 2.69.  Invocation command line was
2439
2440   $ $0 $@
2441
2442 _ACEOF
2443 exec 5>>config.log
2444 {
2445 cat <<_ASUNAME
2446 ## --------- ##
2447 ## Platform. ##
2448 ## --------- ##
2449
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2455
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2458
2459 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2460 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2463 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2464 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2465 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2466
2467 _ASUNAME
2468
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474     $as_echo "PATH: $as_dir"
2475   done
2476 IFS=$as_save_IFS
2477
2478 } >&5
2479
2480 cat >&5 <<_ACEOF
2481
2482
2483 ## ----------- ##
2484 ## Core tests. ##
2485 ## ----------- ##
2486
2487 _ACEOF
2488
2489
2490 # Keep a trace of the command line.
2491 # Strip out --no-create and --no-recursion so they do not pile up.
2492 # Strip out --silent because we don't want to record it for future runs.
2493 # Also quote any args containing shell meta-characters.
2494 # Make two passes to allow for proper duplicate-argument suppression.
2495 ac_configure_args=
2496 ac_configure_args0=
2497 ac_configure_args1=
2498 ac_must_keep_next=false
2499 for ac_pass in 1 2
2500 do
2501   for ac_arg
2502   do
2503     case $ac_arg in
2504     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2505     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2506     | -silent | --silent | --silen | --sile | --sil)
2507       continue ;;
2508     *\'*)
2509       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2510     esac
2511     case $ac_pass in
2512     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2513     2)
2514       as_fn_append ac_configure_args1 " '$ac_arg'"
2515       if test $ac_must_keep_next = true; then
2516         ac_must_keep_next=false # Got value, back to normal.
2517       else
2518         case $ac_arg in
2519           *=* | --config-cache | -C | -disable-* | --disable-* \
2520           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2521           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2522           | -with-* | --with-* | -without-* | --without-* | --x)
2523             case "$ac_configure_args0 " in
2524               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2525             esac
2526             ;;
2527           -* ) ac_must_keep_next=true ;;
2528         esac
2529       fi
2530       as_fn_append ac_configure_args " '$ac_arg'"
2531       ;;
2532     esac
2533   done
2534 done
2535 { ac_configure_args0=; unset ac_configure_args0;}
2536 { ac_configure_args1=; unset ac_configure_args1;}
2537
2538 # When interrupted or exit'd, cleanup temporary files, and complete
2539 # config.log.  We remove comments because anyway the quotes in there
2540 # would cause problems or look ugly.
2541 # WARNING: Use '\'' to represent an apostrophe within the trap.
2542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2543 trap 'exit_status=$?
2544   # Save into config.log some information that might help in debugging.
2545   {
2546     echo
2547
2548     $as_echo "## ---------------- ##
2549 ## Cache variables. ##
2550 ## ---------------- ##"
2551     echo
2552     # The following way of writing the cache mishandles newlines in values,
2553 (
2554   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2555     eval ac_val=\$$ac_var
2556     case $ac_val in #(
2557     *${as_nl}*)
2558       case $ac_var in #(
2559       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2561       esac
2562       case $ac_var in #(
2563       _ | IFS | as_nl) ;; #(
2564       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2565       *) { eval $ac_var=; unset $ac_var;} ;;
2566       esac ;;
2567     esac
2568   done
2569   (set) 2>&1 |
2570     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2571     *${as_nl}ac_space=\ *)
2572       sed -n \
2573         "s/'\''/'\''\\\\'\'''\''/g;
2574           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2575       ;; #(
2576     *)
2577       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2578       ;;
2579     esac |
2580     sort
2581 )
2582     echo
2583
2584     $as_echo "## ----------------- ##
2585 ## Output variables. ##
2586 ## ----------------- ##"
2587     echo
2588     for ac_var in $ac_subst_vars
2589     do
2590       eval ac_val=\$$ac_var
2591       case $ac_val in
2592       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593       esac
2594       $as_echo "$ac_var='\''$ac_val'\''"
2595     done | sort
2596     echo
2597
2598     if test -n "$ac_subst_files"; then
2599       $as_echo "## ------------------- ##
2600 ## File substitutions. ##
2601 ## ------------------- ##"
2602       echo
2603       for ac_var in $ac_subst_files
2604       do
2605         eval ac_val=\$$ac_var
2606         case $ac_val in
2607         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2608         esac
2609         $as_echo "$ac_var='\''$ac_val'\''"
2610       done | sort
2611       echo
2612     fi
2613
2614     if test -s confdefs.h; then
2615       $as_echo "## ----------- ##
2616 ## confdefs.h. ##
2617 ## ----------- ##"
2618       echo
2619       cat confdefs.h
2620       echo
2621     fi
2622     test "$ac_signal" != 0 &&
2623       $as_echo "$as_me: caught signal $ac_signal"
2624     $as_echo "$as_me: exit $exit_status"
2625   } >&5
2626   rm -f core *.core core.conftest.* &&
2627     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2628     exit $exit_status
2629 ' 0
2630 for ac_signal in 1 2 13 15; do
2631   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2632 done
2633 ac_signal=0
2634
2635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2636 rm -f -r conftest* confdefs.h
2637
2638 $as_echo "/* confdefs.h */" > confdefs.h
2639
2640 # Predefined preprocessor variables.
2641
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_NAME "$PACKAGE_NAME"
2644 _ACEOF
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2648 _ACEOF
2649
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2652 _ACEOF
2653
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_STRING "$PACKAGE_STRING"
2656 _ACEOF
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2660 _ACEOF
2661
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_URL "$PACKAGE_URL"
2664 _ACEOF
2665
2666
2667 # Let the site file select an alternate cache file if it wants to.
2668 # Prefer an explicitly selected file to automatically selected ones.
2669 ac_site_file1=NONE
2670 ac_site_file2=NONE
2671 if test -n "$CONFIG_SITE"; then
2672   # We do not want a PATH search for config.site.
2673   case $CONFIG_SITE in #((
2674     -*)  ac_site_file1=./$CONFIG_SITE;;
2675     */*) ac_site_file1=$CONFIG_SITE;;
2676     *)   ac_site_file1=./$CONFIG_SITE;;
2677   esac
2678 elif test "x$prefix" != xNONE; then
2679   ac_site_file1=$prefix/share/config.site
2680   ac_site_file2=$prefix/etc/config.site
2681 else
2682   ac_site_file1=$ac_default_prefix/share/config.site
2683   ac_site_file2=$ac_default_prefix/etc/config.site
2684 fi
2685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2686 do
2687   test "x$ac_site_file" = xNONE && continue
2688   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2689     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2691     sed 's/^/| /' "$ac_site_file" >&5
2692     . "$ac_site_file" \
2693       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "failed to load site script $ac_site_file
2696 See \`config.log' for more details" "$LINENO" 5; }
2697   fi
2698 done
2699
2700 if test -r "$cache_file"; then
2701   # Some versions of bash will fail to source /dev/null (special files
2702   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2703   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2704     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2705 $as_echo "$as_me: loading cache $cache_file" >&6;}
2706     case $cache_file in
2707       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2708       *)                      . "./$cache_file";;
2709     esac
2710   fi
2711 else
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2713 $as_echo "$as_me: creating cache $cache_file" >&6;}
2714   >$cache_file
2715 fi
2716
2717 as_fn_append ac_header_list " locale.h"
2718 as_fn_append ac_header_list " sys/select.h"
2719 as_fn_append ac_header_list " sys/uio.h"
2720 as_fn_append ac_header_list " argp.h"
2721 as_fn_append ac_header_list " unistd.h"
2722 as_fn_append ac_header_list " sys/time.h"
2723 as_fn_append ac_header_list " sys/types.h"
2724 as_fn_append ac_header_list " sys/stat.h"
2725 # Check that the precious variables saved in the cache have kept the same
2726 # value.
2727 ac_cache_corrupted=false
2728 for ac_var in $ac_precious_vars; do
2729   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2730   eval ac_new_set=\$ac_env_${ac_var}_set
2731   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2732   eval ac_new_val=\$ac_env_${ac_var}_value
2733   case $ac_old_set,$ac_new_set in
2734     set,)
2735       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2736 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2737       ac_cache_corrupted=: ;;
2738     ,set)
2739       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2740 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2741       ac_cache_corrupted=: ;;
2742     ,);;
2743     *)
2744       if test "x$ac_old_val" != "x$ac_new_val"; then
2745         # differences in whitespace do not lead to failure.
2746         ac_old_val_w=`echo x $ac_old_val`
2747         ac_new_val_w=`echo x $ac_new_val`
2748         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2749           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2750 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2751           ac_cache_corrupted=:
2752         else
2753           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2754 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2755           eval $ac_var=\$ac_old_val
2756         fi
2757         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2758 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2759         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2760 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2761       fi;;
2762   esac
2763   # Pass precious variables to config.status.
2764   if test "$ac_new_set" = set; then
2765     case $ac_new_val in
2766     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2767     *) ac_arg=$ac_var=$ac_new_val ;;
2768     esac
2769     case " $ac_configure_args " in
2770       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2771       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2772     esac
2773   fi
2774 done
2775 if $ac_cache_corrupted; then
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2779 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2780   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2781 fi
2782 ## -------------------- ##
2783 ## Main body of script. ##
2784 ## -------------------- ##
2785
2786 ac_ext=c
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791
2792
2793
2794 # LT Version numbers, remember to change them just *before* a release.
2795 #   (Code changed:                      REVISION++)
2796 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
2797 #   (Interfaces added:                  AGE++)
2798 #   (Interfaces removed/changed:        AGE=0)
2799 #
2800 LIBGPGME_LT_CURRENT=24
2801 # Subtract 2 from this value if you want to make the LFS transition an
2802 # ABI break.  [Note to self: Remove this comment with the next regular break.]
2803 LIBGPGME_LT_AGE=13
2804 LIBGPGME_LT_REVISION=2
2805
2806 # If the API is changed in an incompatible way: increment the next counter.
2807 GPGME_CONFIG_API_VERSION=1
2808 ##############################################
2809
2810 NEED_GPG_ERROR_VERSION=1.11
2811 NEED_LIBASSUAN_API=2
2812 NEED_LIBASSUAN_VERSION=2.0.2
2813
2814
2815 PACKAGE=$PACKAGE_NAME
2816 VERSION=$PACKAGE_VERSION
2817
2818 ac_aux_dir=
2819 for ac_dir in build-aux "$srcdir"/build-aux; do
2820   if test -f "$ac_dir/install-sh"; then
2821     ac_aux_dir=$ac_dir
2822     ac_install_sh="$ac_aux_dir/install-sh -c"
2823     break
2824   elif test -f "$ac_dir/install.sh"; then
2825     ac_aux_dir=$ac_dir
2826     ac_install_sh="$ac_aux_dir/install.sh -c"
2827     break
2828   elif test -f "$ac_dir/shtool"; then
2829     ac_aux_dir=$ac_dir
2830     ac_install_sh="$ac_aux_dir/shtool install -c"
2831     break
2832   fi
2833 done
2834 if test -z "$ac_aux_dir"; then
2835   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2836 fi
2837
2838 # These three variables are undocumented and unsupported,
2839 # and are intended to be withdrawn in a future Autoconf release.
2840 # They can cause serious problems if a builder's source tree is in a directory
2841 # whose full name contains unusual characters.
2842 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2843 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2844 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2845
2846
2847
2848
2849 ac_config_headers="$ac_config_headers config.h"
2850
2851 # Note: For automake 1.13 add the option
2852 #          serial-tests
2853 am__api_version='1.11'
2854
2855 # Find a good install program.  We prefer a C program (faster),
2856 # so one script is as good as another.  But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2861 # AIX /bin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if ${ac_cv_path_install+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880     # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882   ./ | .// | /[cC]/* | \
2883   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2885   /usr/ucb/* ) ;;
2886   *)
2887     # OSF1 and SCO ODT 3.0 have their own names for install.
2888     # Don't use installbsd from OSF since it installs stuff as root
2889     # by default.
2890     for ac_prog in ginstall scoinst install; do
2891       for ac_exec_ext in '' $ac_executable_extensions; do
2892         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2893           if test $ac_prog = install &&
2894             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895             # AIX install.  It has an incompatible calling convention.
2896             :
2897           elif test $ac_prog = install &&
2898             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899             # program-specific install script used by HP pwplus--don't use.
2900             :
2901           else
2902             rm -rf conftest.one conftest.two conftest.dir
2903             echo one > conftest.one
2904             echo two > conftest.two
2905             mkdir conftest.dir
2906             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2907               test -s conftest.one && test -s conftest.two &&
2908               test -s conftest.dir/conftest.one &&
2909               test -s conftest.dir/conftest.two
2910             then
2911               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2912               break 3
2913             fi
2914           fi
2915         fi
2916       done
2917     done
2918     ;;
2919 esac
2920
2921   done
2922 IFS=$as_save_IFS
2923
2924 rm -rf conftest.one conftest.two conftest.dir
2925
2926 fi
2927   if test "${ac_cv_path_install+set}" = set; then
2928     INSTALL=$ac_cv_path_install
2929   else
2930     # As a last resort, use the slow shell script.  Don't cache a
2931     # value for INSTALL within a source directory, because that will
2932     # break other packages using the cache if that directory is
2933     # removed, or if the value is a relative name.
2934     INSTALL=$ac_install_sh
2935   fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2939
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2943
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2945
2946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2950 # Just in case
2951 sleep 1
2952 echo timestamp > conftest.file
2953 # Reject unsafe characters in $srcdir or the absolute working directory
2954 # name.  Accept space and tab only in the latter.
2955 am_lf='
2956 '
2957 case `pwd` in
2958   *[\\\"\#\$\&\'\`$am_lf]*)
2959     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2960 esac
2961 case $srcdir in
2962   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2963     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2964 esac
2965
2966 # Do `set' in a subshell so we don't clobber the current shell's
2967 # arguments.  Must try -L first in case configure is actually a
2968 # symlink; some systems play weird games with the mod time of symlinks
2969 # (eg FreeBSD returns the mod time of the symlink's containing
2970 # directory).
2971 if (
2972    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973    if test "$*" = "X"; then
2974       # -L didn't work.
2975       set X `ls -t "$srcdir/configure" conftest.file`
2976    fi
2977    rm -f conftest.file
2978    if test "$*" != "X $srcdir/configure conftest.file" \
2979       && test "$*" != "X conftest.file $srcdir/configure"; then
2980
2981       # If neither matched, then we have a broken ls.  This can happen
2982       # if, for instance, CONFIG_SHELL is bash and it inherits a
2983       # broken ls alias from the environment.  This has actually
2984       # happened.  Such a system could not be considered "sane".
2985       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2987    fi
2988
2989    test "$2" = conftest.file
2990    )
2991 then
2992    # Ok.
2993    :
2994 else
2995    as_fn_error $? "newly created file is older than distributed files!
2996 Check your system clock" "$LINENO" 5
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2999 $as_echo "yes" >&6; }
3000 test "$program_prefix" != NONE &&
3001   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3002 # Use a double $ so make ignores it.
3003 test "$program_suffix" != NONE &&
3004   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3005 # Double any \ or $.
3006 # By default was `s,x,x', remove it if useless.
3007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3009
3010 # expand $ac_aux_dir to an absolute path
3011 am_aux_dir=`cd $ac_aux_dir && pwd`
3012
3013 if test x"${MISSING+set}" != xset; then
3014   case $am_aux_dir in
3015   *\ * | *\     *)
3016     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3017   *)
3018     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3019   esac
3020 fi
3021 # Use eval to expand $SHELL
3022 if eval "$MISSING --run true"; then
3023   am_missing_run="$MISSING --run "
3024 else
3025   am_missing_run=
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3027 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3028 fi
3029
3030 if test x"${install_sh}" != xset; then
3031   case $am_aux_dir in
3032   *\ * | *\     *)
3033     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3034   *)
3035     install_sh="\${SHELL} $am_aux_dir/install-sh"
3036   esac
3037 fi
3038
3039 # Installed binaries are usually stripped using `strip' when the user
3040 # run `make install-strip'.  However `strip' might not be the right
3041 # tool to use in cross-compilation environments, therefore Automake
3042 # will honor the `STRIP' environment variable to overrule this program.
3043 if test "$cross_compiling" != no; then
3044   if test -n "$ac_tool_prefix"; then
3045   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}strip; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_STRIP+:} false; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   if test -n "$STRIP"; then
3053   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060     for ac_exec_ext in '' $ac_executable_extensions; do
3061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067   done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3075 $as_echo "$STRIP" >&6; }
3076 else
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 if test -z "$ac_cv_prog_STRIP"; then
3084   ac_ct_STRIP=$STRIP
3085   # Extract the first word of "strip", so it can be a program name with args.
3086 set dummy strip; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   if test -n "$ac_ct_STRIP"; then
3093   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100     for ac_exec_ext in '' $ac_executable_extensions; do
3101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102     ac_cv_prog_ac_ct_STRIP="strip"
3103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104     break 2
3105   fi
3106 done
3107   done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113 if test -n "$ac_ct_STRIP"; then
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3115 $as_echo "$ac_ct_STRIP" >&6; }
3116 else
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121   if test "x$ac_ct_STRIP" = x; then
3122     STRIP=":"
3123   else
3124     case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130     STRIP=$ac_ct_STRIP
3131   fi
3132 else
3133   STRIP="$ac_cv_prog_STRIP"
3134 fi
3135
3136 fi
3137 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3138
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3140 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3141 if test -z "$MKDIR_P"; then
3142   if ${ac_cv_path_mkdir+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150     for ac_prog in mkdir gmkdir; do
3151          for ac_exec_ext in '' $ac_executable_extensions; do
3152            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3153            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3154              'mkdir (GNU coreutils) '* | \
3155              'mkdir (coreutils) '* | \
3156              'mkdir (fileutils) '4.1*)
3157                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3158                break 3;;
3159            esac
3160          done
3161        done
3162   done
3163 IFS=$as_save_IFS
3164
3165 fi
3166
3167   test -d ./--version && rmdir ./--version
3168   if test "${ac_cv_path_mkdir+set}" = set; then
3169     MKDIR_P="$ac_cv_path_mkdir -p"
3170   else
3171     # As a last resort, use the slow shell script.  Don't cache a
3172     # value for MKDIR_P within a source directory, because that will
3173     # break other packages using the cache if that directory is
3174     # removed, or if the value is a relative name.
3175     MKDIR_P="$ac_install_sh -d"
3176   fi
3177 fi
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3179 $as_echo "$MKDIR_P" >&6; }
3180
3181 mkdir_p="$MKDIR_P"
3182 case $mkdir_p in
3183   [\\/$]* | ?:[\\/]*) ;;
3184   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3185 esac
3186
3187 for ac_prog in gawk mawk nawk awk
3188 do
3189   # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_AWK+:} false; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   if test -n "$AWK"; then
3197   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206     ac_cv_prog_AWK="$ac_prog"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 AWK=$ac_cv_prog_AWK
3217 if test -n "$AWK"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3219 $as_echo "$AWK" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226   test -n "$AWK" && break
3227 done
3228
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3230 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3231 set x ${MAKE-make}
3232 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3233 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   cat >conftest.make <<\_ACEOF
3237 SHELL = /bin/sh
3238 all:
3239         @echo '@@@%%%=$(MAKE)=@@@%%%'
3240 _ACEOF
3241 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3242 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3243   *@@@%%%=?*=@@@%%%*)
3244     eval ac_cv_prog_make_${ac_make}_set=yes;;
3245   *)
3246     eval ac_cv_prog_make_${ac_make}_set=no;;
3247 esac
3248 rm -f conftest.make
3249 fi
3250 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253   SET_MAKE=
3254 else
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257   SET_MAKE="MAKE=${MAKE-make}"
3258 fi
3259
3260 rm -rf .tst 2>/dev/null
3261 mkdir .tst 2>/dev/null
3262 if test -d .tst; then
3263   am__leading_dot=.
3264 else
3265   am__leading_dot=_
3266 fi
3267 rmdir .tst 2>/dev/null
3268
3269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3270   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3271   # is not polluted with repeated "-I."
3272   am__isrc=' -I$(srcdir)'
3273   # test to see if srcdir already configured
3274   if test -f $srcdir/config.status; then
3275     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3276   fi
3277 fi
3278
3279 # test whether we have cygpath
3280 if test -z "$CYGPATH_W"; then
3281   if (cygpath --version) >/dev/null 2>/dev/null; then
3282     CYGPATH_W='cygpath -w'
3283   else
3284     CYGPATH_W=echo
3285   fi
3286 fi
3287
3288
3289 # Define the identity of the package.
3290  PACKAGE='gpgme'
3291  VERSION='1.5.3'
3292
3293
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE "$PACKAGE"
3296 _ACEOF
3297
3298
3299 cat >>confdefs.h <<_ACEOF
3300 #define VERSION "$VERSION"
3301 _ACEOF
3302
3303 # Some tools Automake needs.
3304
3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3306
3307
3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3309
3310
3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3312
3313
3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3315
3316
3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3318
3319 # We need awk for the "check" target.  The system "awk" is bad on
3320 # some platforms.
3321 # Always define AMTAR for backward compatibility.  Yes, it's still used
3322 # in the wild :-(  We should find a proper way to deprecate it ...
3323 AMTAR='$${TAR-tar}'
3324
3325 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3326
3327
3328
3329
3330
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3333 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3334     # Check whether --enable-maintainer-mode was given.
3335 if test "${enable_maintainer_mode+set}" = set; then :
3336   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3337 else
3338   USE_MAINTAINER_MODE=no
3339 fi
3340
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3342 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3343    if test $USE_MAINTAINER_MODE = yes; then
3344   MAINTAINER_MODE_TRUE=
3345   MAINTAINER_MODE_FALSE='#'
3346 else
3347   MAINTAINER_MODE_TRUE='#'
3348   MAINTAINER_MODE_FALSE=
3349 fi
3350
3351   MAINT=$MAINTAINER_MODE_TRUE
3352
3353
3354 # Make sure we can run config.sub.
3355 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3356   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3359 $as_echo_n "checking build system type... " >&6; }
3360 if ${ac_cv_build+:} false; then :
3361   $as_echo_n "(cached) " >&6
3362 else
3363   ac_build_alias=$build_alias
3364 test "x$ac_build_alias" = x &&
3365   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3366 test "x$ac_build_alias" = x &&
3367   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3369   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3370
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3373 $as_echo "$ac_cv_build" >&6; }
3374 case $ac_cv_build in
3375 *-*-*) ;;
3376 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3377 esac
3378 build=$ac_cv_build
3379 ac_save_IFS=$IFS; IFS='-'
3380 set x $ac_cv_build
3381 shift
3382 build_cpu=$1
3383 build_vendor=$2
3384 shift; shift
3385 # Remember, the first character of IFS is used to create $*,
3386 # except with old shells:
3387 build_os=$*
3388 IFS=$ac_save_IFS
3389 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3390
3391
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3393 $as_echo_n "checking host system type... " >&6; }
3394 if ${ac_cv_host+:} false; then :
3395   $as_echo_n "(cached) " >&6
3396 else
3397   if test "x$host_alias" = x; then
3398   ac_cv_host=$ac_cv_build
3399 else
3400   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3401     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3402 fi
3403
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3406 $as_echo "$ac_cv_host" >&6; }
3407 case $ac_cv_host in
3408 *-*-*) ;;
3409 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3410 esac
3411 host=$ac_cv_host
3412 ac_save_IFS=$IFS; IFS='-'
3413 set x $ac_cv_host
3414 shift
3415 host_cpu=$1
3416 host_vendor=$2
3417 shift; shift
3418 # Remember, the first character of IFS is used to create $*,
3419 # except with old shells:
3420 host_os=$*
3421 IFS=$ac_save_IFS
3422 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3423
3424
3425 # Check whether --enable-silent-rules was given.
3426 if test "${enable_silent_rules+set}" = set; then :
3427   enableval=$enable_silent_rules;
3428 fi
3429
3430 case $enable_silent_rules in
3431 yes) AM_DEFAULT_VERBOSITY=0;;
3432 no)  AM_DEFAULT_VERBOSITY=1;;
3433 *)   AM_DEFAULT_VERBOSITY=1;;
3434 esac
3435 am_make=${MAKE-make}
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3437 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3438 if ${am_cv_make_support_nested_variables+:} false; then :
3439   $as_echo_n "(cached) " >&6
3440 else
3441   if $as_echo 'TRUE=$(BAR$(V))
3442 BAR0=false
3443 BAR1=true
3444 V=1
3445 am__doit:
3446         @$(TRUE)
3447 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3448   am_cv_make_support_nested_variables=yes
3449 else
3450   am_cv_make_support_nested_variables=no
3451 fi
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3454 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3455 if test $am_cv_make_support_nested_variables = yes; then
3456     AM_V='$(V)'
3457   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3458 else
3459   AM_V=$AM_DEFAULT_VERBOSITY
3460   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3461 fi
3462 AM_BACKSLASH='\'
3463
3464
3465
3466 # Enable GNU extensions on systems that have them.
3467 DEPDIR="${am__leading_dot}deps"
3468
3469 ac_config_commands="$ac_config_commands depfiles"
3470
3471
3472 am_make=${MAKE-make}
3473 cat > confinc << 'END'
3474 am__doit:
3475         @echo this is the am__doit target
3476 .PHONY: am__doit
3477 END
3478 # If we don't find an include directive, just comment out the code.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3480 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3481 am__include="#"
3482 am__quote=
3483 _am_result=none
3484 # First try GNU make style include.
3485 echo "include confinc" > confmf
3486 # Ignore all kinds of additional output from `make'.
3487 case `$am_make -s -f confmf 2> /dev/null` in #(
3488 *the\ am__doit\ target*)
3489   am__include=include
3490   am__quote=
3491   _am_result=GNU
3492   ;;
3493 esac
3494 # Now try BSD make style include.
3495 if test "$am__include" = "#"; then
3496    echo '.include "confinc"' > confmf
3497    case `$am_make -s -f confmf 2> /dev/null` in #(
3498    *the\ am__doit\ target*)
3499      am__include=.include
3500      am__quote="\""
3501      _am_result=BSD
3502      ;;
3503    esac
3504 fi
3505
3506
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3508 $as_echo "$_am_result" >&6; }
3509 rm -f confinc confmf
3510
3511 # Check whether --enable-dependency-tracking was given.
3512 if test "${enable_dependency_tracking+set}" = set; then :
3513   enableval=$enable_dependency_tracking;
3514 fi
3515
3516 if test "x$enable_dependency_tracking" != xno; then
3517   am_depcomp="$ac_aux_dir/depcomp"
3518   AMDEPBACKSLASH='\'
3519   am__nodep='_no'
3520 fi
3521  if test "x$enable_dependency_tracking" != xno; then
3522   AMDEP_TRUE=
3523   AMDEP_FALSE='#'
3524 else
3525   AMDEP_TRUE='#'
3526   AMDEP_FALSE=
3527 fi
3528
3529
3530 ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 if test -n "$ac_tool_prefix"; then
3536   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC+:} false; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   if test -n "$CC"; then
3544   ac_cv_prog_CC="$CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551     for ac_exec_ext in '' $ac_executable_extensions; do
3552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558   done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 CC=$ac_cv_prog_CC
3564 if test -n "$CC"; then
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3567 else
3568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 fi
3571
3572
3573 fi
3574 if test -z "$ac_cv_prog_CC"; then
3575   ac_ct_CC=$CC
3576   # Extract the first word of "gcc", so it can be a program name with args.
3577 set dummy gcc; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3581   $as_echo_n "(cached) " >&6
3582 else
3583   if test -n "$ac_ct_CC"; then
3584   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591     for ac_exec_ext in '' $ac_executable_extensions; do
3592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_prog_ac_ct_CC="gcc"
3594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598   done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3604 if test -n "$ac_ct_CC"; then
3605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3606 $as_echo "$ac_ct_CC" >&6; }
3607 else
3608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612   if test "x$ac_ct_CC" = x; then
3613     CC=""
3614   else
3615     case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3620 esac
3621     CC=$ac_ct_CC
3622   fi
3623 else
3624   CC="$ac_cv_prog_CC"
3625 fi
3626
3627 if test -z "$CC"; then
3628           if test -n "$ac_tool_prefix"; then
3629     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3630 set dummy ${ac_tool_prefix}cc; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_CC+:} false; then :
3634   $as_echo_n "(cached) " >&6
3635 else
3636   if test -n "$CC"; then
3637   ac_cv_prog_CC="$CC" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644     for ac_exec_ext in '' $ac_executable_extensions; do
3645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646     ac_cv_prog_CC="${ac_tool_prefix}cc"
3647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648     break 2
3649   fi
3650 done
3651   done
3652 IFS=$as_save_IFS
3653
3654 fi
3655 fi
3656 CC=$ac_cv_prog_CC
3657 if test -n "$CC"; then
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659 $as_echo "$CC" >&6; }
3660 else
3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 fi
3664
3665
3666   fi
3667 fi
3668 if test -z "$CC"; then
3669   # Extract the first word of "cc", so it can be a program name with args.
3670 set dummy cc; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_CC+:} false; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   if test -n "$CC"; then
3677   ac_cv_prog_CC="$CC" # Let the user override the test.
3678 else
3679   ac_prog_rejected=no
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685     for ac_exec_ext in '' $ac_executable_extensions; do
3686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3688        ac_prog_rejected=yes
3689        continue
3690      fi
3691     ac_cv_prog_CC="cc"
3692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693     break 2
3694   fi
3695 done
3696   done
3697 IFS=$as_save_IFS
3698
3699 if test $ac_prog_rejected = yes; then
3700   # We found a bogon in the path, so make sure we never use it.
3701   set dummy $ac_cv_prog_CC
3702   shift
3703   if test $# != 0; then
3704     # We chose a different compiler from the bogus one.
3705     # However, it has the same basename, so the bogon will be chosen
3706     # first if we set CC to just the basename; use the full file name.
3707     shift
3708     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3709   fi
3710 fi
3711 fi
3712 fi
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3717 else
3718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 fi
3721
3722
3723 fi
3724 if test -z "$CC"; then
3725   if test -n "$ac_tool_prefix"; then
3726   for ac_prog in cl.exe
3727   do
3728     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if ${ac_cv_prog_CC+:} false; then :
3733   $as_echo_n "(cached) " >&6
3734 else
3735   if test -n "$CC"; then
3736   ac_cv_prog_CC="$CC" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741   IFS=$as_save_IFS
3742   test -z "$as_dir" && as_dir=.
3743     for ac_exec_ext in '' $ac_executable_extensions; do
3744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747     break 2
3748   fi
3749 done
3750   done
3751 IFS=$as_save_IFS
3752
3753 fi
3754 fi
3755 CC=$ac_cv_prog_CC
3756 if test -n "$CC"; then
3757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758 $as_echo "$CC" >&6; }
3759 else
3760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3762 fi
3763
3764
3765     test -n "$CC" && break
3766   done
3767 fi
3768 if test -z "$CC"; then
3769   ac_ct_CC=$CC
3770   for ac_prog in cl.exe
3771 do
3772   # Extract the first word of "$ac_prog", so it can be a program name with args.
3773 set dummy $ac_prog; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   if test -n "$ac_ct_CC"; then
3780   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785   IFS=$as_save_IFS
3786   test -z "$as_dir" && as_dir=.
3787     for ac_exec_ext in '' $ac_executable_extensions; do
3788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789     ac_cv_prog_ac_ct_CC="$ac_prog"
3790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791     break 2
3792   fi
3793 done
3794   done
3795 IFS=$as_save_IFS
3796
3797 fi
3798 fi
3799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3800 if test -n "$ac_ct_CC"; then
3801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3802 $as_echo "$ac_ct_CC" >&6; }
3803 else
3804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3806 fi
3807
3808
3809   test -n "$ac_ct_CC" && break
3810 done
3811
3812   if test "x$ac_ct_CC" = x; then
3813     CC=""
3814   else
3815     case $cross_compiling:$ac_tool_warned in
3816 yes:)
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819 ac_tool_warned=yes ;;
3820 esac
3821     CC=$ac_ct_CC
3822   fi
3823 fi
3824
3825 fi
3826
3827
3828 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $? "no acceptable C compiler found in \$PATH
3831 See \`config.log' for more details" "$LINENO" 5; }
3832
3833 # Provide some information about the compiler.
3834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3835 set X $ac_compile
3836 ac_compiler=$2
3837 for ac_option in --version -v -V -qversion; do
3838   { { ac_try="$ac_compiler $ac_option >&5"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3846   ac_status=$?
3847   if test -s conftest.err; then
3848     sed '10a\
3849 ... rest of stderr output deleted ...
3850          10q' conftest.err >conftest.er1
3851     cat conftest.er1 >&5
3852   fi
3853   rm -f conftest.er1 conftest.err
3854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855   test $ac_status = 0; }
3856 done
3857
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h.  */
3860
3861 int
3862 main ()
3863 {
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 ac_clean_files_save=$ac_clean_files
3870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3871 # Try to create an executable without -o first, disregard a.out.
3872 # It will help us diagnose broken compilers, and finding out an intuition
3873 # of exeext.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3875 $as_echo_n "checking whether the C compiler works... " >&6; }
3876 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3877
3878 # The possible output files:
3879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3880
3881 ac_rmfiles=
3882 for ac_file in $ac_files
3883 do
3884   case $ac_file in
3885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3887   esac
3888 done
3889 rm -f $ac_rmfiles
3890
3891 if { { ac_try="$ac_link_default"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898   (eval "$ac_link_default") 2>&5
3899   ac_status=$?
3900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901   test $ac_status = 0; }; then :
3902   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3905 # so that the user can short-circuit this test for compilers unknown to
3906 # Autoconf.
3907 for ac_file in $ac_files ''
3908 do
3909   test -f "$ac_file" || continue
3910   case $ac_file in
3911     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3912         ;;
3913     [ab].out )
3914         # We found the default executable, but exeext='' is most
3915         # certainly right.
3916         break;;
3917     *.* )
3918         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3919         then :; else
3920            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921         fi
3922         # We set ac_cv_exeext here because the later test for it is not
3923         # safe: cross compilers may not add the suffix if given an `-o'
3924         # argument, so we may need to know it at that point already.
3925         # Even if this section looks crufty: it has the advantage of
3926         # actually working.
3927         break;;
3928     * )
3929         break;;
3930   esac
3931 done
3932 test "$ac_cv_exeext" = no && ac_cv_exeext=
3933
3934 else
3935   ac_file=''
3936 fi
3937 if test -z "$ac_file"; then :
3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error 77 "C compiler cannot create executables
3946 See \`config.log' for more details" "$LINENO" 5; }
3947 else
3948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3952 $as_echo_n "checking for C compiler default output file name... " >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3954 $as_echo "$ac_file" >&6; }
3955 ac_exeext=$ac_cv_exeext
3956
3957 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3958 ac_clean_files=$ac_clean_files_save
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3960 $as_echo_n "checking for suffix of executables... " >&6; }
3961 if { { ac_try="$ac_link"
3962 case "(($ac_try" in
3963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964   *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968   (eval "$ac_link") 2>&5
3969   ac_status=$?
3970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971   test $ac_status = 0; }; then :
3972   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3973 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3974 # work properly (i.e., refer to `conftest.exe'), while it won't with
3975 # `rm'.
3976 for ac_file in conftest.exe conftest conftest.*; do
3977   test -f "$ac_file" || continue
3978   case $ac_file in
3979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3980     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3981           break;;
3982     * ) break;;
3983   esac
3984 done
3985 else
3986   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3989 See \`config.log' for more details" "$LINENO" 5; }
3990 fi
3991 rm -f conftest conftest$ac_cv_exeext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3993 $as_echo "$ac_cv_exeext" >&6; }
3994
3995 rm -f conftest.$ac_ext
3996 EXEEXT=$ac_cv_exeext
3997 ac_exeext=$EXEEXT
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000 #include <stdio.h>
4001 int
4002 main ()
4003 {
4004 FILE *f = fopen ("conftest.out", "w");
4005  return ferror (f) || fclose (f) != 0;
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 ac_clean_files="$ac_clean_files conftest.out"
4012 # Check that the compiler produces executables we can run.  If not, either
4013 # the compiler is broken, or we cross compile.
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4015 $as_echo_n "checking whether we are cross compiling... " >&6; }
4016 if test "$cross_compiling" != yes; then
4017   { { ac_try="$ac_link"
4018 case "(($ac_try" in
4019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020   *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024   (eval "$ac_link") 2>&5
4025   ac_status=$?
4026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027   test $ac_status = 0; }
4028   if { ac_try='./conftest$ac_cv_exeext'
4029   { { case "(($ac_try" in
4030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031   *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035   (eval "$ac_try") 2>&5
4036   ac_status=$?
4037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038   test $ac_status = 0; }; }; then
4039     cross_compiling=no
4040   else
4041     if test "$cross_compiling" = maybe; then
4042         cross_compiling=yes
4043     else
4044         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error $? "cannot run C compiled programs.
4047 If you meant to cross compile, use \`--host'.
4048 See \`config.log' for more details" "$LINENO" 5; }
4049     fi
4050   fi
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4053 $as_echo "$cross_compiling" >&6; }
4054
4055 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4056 ac_clean_files=$ac_clean_files_save
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4058 $as_echo_n "checking for suffix of object files... " >&6; }
4059 if ${ac_cv_objext+:} false; then :
4060   $as_echo_n "(cached) " >&6
4061 else
4062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064
4065 int
4066 main ()
4067 {
4068
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest.o conftest.obj
4074 if { { ac_try="$ac_compile"
4075 case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081   (eval "$ac_compile") 2>&5
4082   ac_status=$?
4083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084   test $ac_status = 0; }; then :
4085   for ac_file in conftest.o conftest.obj conftest.*; do
4086   test -f "$ac_file" || continue;
4087   case $ac_file in
4088     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4089     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4090        break;;
4091   esac
4092 done
4093 else
4094   $as_echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error $? "cannot compute suffix of object files: cannot compile
4100 See \`config.log' for more details" "$LINENO" 5; }
4101 fi
4102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4105 $as_echo "$ac_cv_objext" >&6; }
4106 OBJEXT=$ac_cv_objext
4107 ac_objext=$OBJEXT
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4110 if ${ac_cv_c_compiler_gnu+:} false; then :
4111   $as_echo_n "(cached) " >&6
4112 else
4113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h.  */
4115
4116 int
4117 main ()
4118 {
4119 #ifndef __GNUC__
4120        choke me
4121 #endif
4122
4123   ;
4124   return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128   ac_compiler_gnu=yes
4129 else
4130   ac_compiler_gnu=no
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4134
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4137 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4138 if test $ac_compiler_gnu = yes; then
4139   GCC=yes
4140 else
4141   GCC=
4142 fi
4143 ac_test_CFLAGS=${CFLAGS+set}
4144 ac_save_CFLAGS=$CFLAGS
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4146 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4147 if ${ac_cv_prog_cc_g+:} false; then :
4148   $as_echo_n "(cached) " >&6
4149 else
4150   ac_save_c_werror_flag=$ac_c_werror_flag
4151    ac_c_werror_flag=yes
4152    ac_cv_prog_cc_g=no
4153    CFLAGS="-g"
4154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h.  */
4156
4157 int
4158 main ()
4159 {
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166   ac_cv_prog_cc_g=yes
4167 else
4168   CFLAGS=""
4169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h.  */
4171
4172 int
4173 main ()
4174 {
4175
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181
4182 else
4183   ac_c_werror_flag=$ac_save_c_werror_flag
4184          CFLAGS="-g"
4185          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h.  */
4187
4188 int
4189 main ()
4190 {
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197   ac_cv_prog_cc_g=yes
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204    ac_c_werror_flag=$ac_save_c_werror_flag
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207 $as_echo "$ac_cv_prog_cc_g" >&6; }
4208 if test "$ac_test_CFLAGS" = set; then
4209   CFLAGS=$ac_save_CFLAGS
4210 elif test $ac_cv_prog_cc_g = yes; then
4211   if test "$GCC" = yes; then
4212     CFLAGS="-g -O2"
4213   else
4214     CFLAGS="-g"
4215   fi
4216 else
4217   if test "$GCC" = yes; then
4218     CFLAGS="-O2"
4219   else
4220     CFLAGS=
4221   fi
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4225 if ${ac_cv_prog_cc_c89+:} false; then :
4226   $as_echo_n "(cached) " >&6
4227 else
4228   ac_cv_prog_cc_c89=no
4229 ac_save_CC=$CC
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h.  */
4232 #include <stdarg.h>
4233 #include <stdio.h>
4234 struct stat;
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4239      char **p;
4240      int i;
4241 {
4242   return p[i];
4243 }
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4245 {
4246   char *s;
4247   va_list v;
4248   va_start (v,p);
4249   s = g (p, va_arg (v,int));
4250   va_end (v);
4251   return s;
4252 }
4253
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4255    function prototypes and stuff, but not '\xHH' hex character constants.
4256    These don't provoke an error unfortunately, instead are silently treated
4257    as 'x'.  The following induces an error, until -std is added to get
4258    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4259    array size at least.  It's necessary to write '\x00'==0 to get something
4260    that's true only with -std.  */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4262
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264    inside strings and character constants.  */
4265 #define FOO(x) 'x'
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4267
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4272 int argc;
4273 char **argv;
4274 int
4275 main ()
4276 {
4277 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 do
4285   CC="$ac_save_CC $ac_arg"
4286   if ac_fn_c_try_compile "$LINENO"; then :
4287   ac_cv_prog_cc_c89=$ac_arg
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext
4290   test "x$ac_cv_prog_cc_c89" != "xno" && break
4291 done
4292 rm -f conftest.$ac_ext
4293 CC=$ac_save_CC
4294
4295 fi
4296 # AC_CACHE_VAL
4297 case "x$ac_cv_prog_cc_c89" in
4298   x)
4299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300 $as_echo "none needed" >&6; } ;;
4301   xno)
4302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 $as_echo "unsupported" >&6; } ;;
4304   *)
4305     CC="$CC $ac_cv_prog_cc_c89"
4306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4308 esac
4309 if test "x$ac_cv_prog_cc_c89" != xno; then :
4310
4311 fi
4312
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319 depcc="$CC"   am_compiler_list=
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4322 $as_echo_n "checking dependency style of $depcc... " >&6; }
4323 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4324   $as_echo_n "(cached) " >&6
4325 else
4326   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4327   # We make a subdir and do the tests there.  Otherwise we can end up
4328   # making bogus files that we don't know about and never remove.  For
4329   # instance it was reported that on HP-UX the gcc test will end up
4330   # making a dummy file named `D' -- because `-MD' means `put the output
4331   # in D'.
4332   rm -rf conftest.dir
4333   mkdir conftest.dir
4334   # Copy depcomp to subdir because otherwise we won't find it if we're
4335   # using a relative directory.
4336   cp "$am_depcomp" conftest.dir
4337   cd conftest.dir
4338   # We will build objects and dependencies in a subdirectory because
4339   # it helps to detect inapplicable dependency modes.  For instance
4340   # both Tru64's cc and ICC support -MD to output dependencies as a
4341   # side effect of compilation, but ICC will put the dependencies in
4342   # the current directory while Tru64 will put them in the object
4343   # directory.
4344   mkdir sub
4345
4346   am_cv_CC_dependencies_compiler_type=none
4347   if test "$am_compiler_list" = ""; then
4348      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4349   fi
4350   am__universal=false
4351   case " $depcc " in #(
4352      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4353      esac
4354
4355   for depmode in $am_compiler_list; do
4356     # Setup a source with many dependencies, because some compilers
4357     # like to wrap large dependency lists on column 80 (with \), and
4358     # we should not choose a depcomp mode which is confused by this.
4359     #
4360     # We need to recreate these files for each test, as the compiler may
4361     # overwrite some of them when testing with obscure command lines.
4362     # This happens at least with the AIX C compiler.
4363     : > sub/conftest.c
4364     for i in 1 2 3 4 5 6; do
4365       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4366       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4367       # Solaris 8's {/usr,}/bin/sh.
4368       touch sub/conftst$i.h
4369     done
4370     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4371
4372     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4373     # mode.  It turns out that the SunPro C++ compiler does not properly
4374     # handle `-M -o', and we need to detect this.  Also, some Intel
4375     # versions had trouble with output in subdirs
4376     am__obj=sub/conftest.${OBJEXT-o}
4377     am__minus_obj="-o $am__obj"
4378     case $depmode in
4379     gcc)
4380       # This depmode causes a compiler race in universal mode.
4381       test "$am__universal" = false || continue
4382       ;;
4383     nosideeffect)
4384       # after this tag, mechanisms are not by side-effect, so they'll
4385       # only be used when explicitly requested
4386       if test "x$enable_dependency_tracking" = xyes; then
4387         continue
4388       else
4389         break
4390       fi
4391       ;;
4392     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4393       # This compiler won't grok `-c -o', but also, the minuso test has
4394       # not run yet.  These depmodes are late enough in the game, and
4395       # so weak that their functioning should not be impacted.
4396       am__obj=conftest.${OBJEXT-o}
4397       am__minus_obj=
4398       ;;
4399     none) break ;;
4400     esac
4401     if depmode=$depmode \
4402        source=sub/conftest.c object=$am__obj \
4403        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4404        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4405          >/dev/null 2>conftest.err &&
4406        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4407        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4409        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410       # icc doesn't choke on unknown options, it will just issue warnings
4411       # or remarks (even with -Werror).  So we grep stderr for any message
4412       # that says an option was ignored or not supported.
4413       # When given -MP, icc 7.0 and 7.1 complain thusly:
4414       #   icc: Command line warning: ignoring option '-M'; no argument required
4415       # The diagnosis changed in icc 8.0:
4416       #   icc: Command line remark: option '-MP' not supported
4417       if (grep 'ignoring option' conftest.err ||
4418           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419         am_cv_CC_dependencies_compiler_type=$depmode
4420         break
4421       fi
4422     fi
4423   done
4424
4425   cd ..
4426   rm -rf conftest.dir
4427 else
4428   am_cv_CC_dependencies_compiler_type=none
4429 fi
4430
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4433 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4435
4436  if
4437   test "x$enable_dependency_tracking" != xno \
4438   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4439   am__fastdepCC_TRUE=
4440   am__fastdepCC_FALSE='#'
4441 else
4442   am__fastdepCC_TRUE='#'
4443   am__fastdepCC_FALSE=
4444 fi
4445
4446
4447
4448 ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4455 # On Suns, sometimes $CPP names a directory.
4456 if test -n "$CPP" && test -d "$CPP"; then
4457   CPP=
4458 fi
4459 if test -z "$CPP"; then
4460   if ${ac_cv_prog_CPP+:} false; then :
4461   $as_echo_n "(cached) " >&6
4462 else
4463       # Double quotes because CPP needs to be expanded
4464     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4465     do
4466       ac_preproc_ok=false
4467 for ac_c_preproc_warn_flag in '' yes
4468 do
4469   # Use a header file that comes with gcc, so configuring glibc
4470   # with a fresh cross-compiler works.
4471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472   # <limits.h> exists even on freestanding compilers.
4473   # On the NeXT, cc -E runs the code through the compiler's parser,
4474   # not just through cpp. "Syntax error" is here to catch this case.
4475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h.  */
4477 #ifdef __STDC__
4478 # include <limits.h>
4479 #else
4480 # include <assert.h>
4481 #endif
4482                      Syntax error
4483 _ACEOF
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4485
4486 else
4487   # Broken: fails on valid input.
4488 continue
4489 fi
4490 rm -f conftest.err conftest.i conftest.$ac_ext
4491
4492   # OK, works on sane cases.  Now check whether nonexistent headers
4493   # can be detected and how.
4494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h.  */
4496 #include <ac_nonexistent.h>
4497 _ACEOF
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499   # Broken: success on invalid input.
4500 continue
4501 else
4502   # Passes both tests.
4503 ac_preproc_ok=:
4504 break
4505 fi
4506 rm -f conftest.err conftest.i conftest.$ac_ext
4507
4508 done
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.i conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then :
4512   break
4513 fi
4514
4515     done
4516     ac_cv_prog_CPP=$CPP
4517
4518 fi
4519   CPP=$ac_cv_prog_CPP
4520 else
4521   ac_cv_prog_CPP=$CPP
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524 $as_echo "$CPP" >&6; }
4525 ac_preproc_ok=false
4526 for ac_c_preproc_warn_flag in '' yes
4527 do
4528   # Use a header file that comes with gcc, so configuring glibc
4529   # with a fresh cross-compiler works.
4530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531   # <limits.h> exists even on freestanding compilers.
4532   # On the NeXT, cc -E runs the code through the compiler's parser,
4533   # not just through cpp. "Syntax error" is here to catch this case.
4534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536 #ifdef __STDC__
4537 # include <limits.h>
4538 #else
4539 # include <assert.h>
4540 #endif
4541                      Syntax error
4542 _ACEOF
4543 if ac_fn_c_try_cpp "$LINENO"; then :
4544
4545 else
4546   # Broken: fails on valid input.
4547 continue
4548 fi
4549 rm -f conftest.err conftest.i conftest.$ac_ext
4550
4551   # OK, works on sane cases.  Now check whether nonexistent headers
4552   # can be detected and how.
4553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h.  */
4555 #include <ac_nonexistent.h>
4556 _ACEOF
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558   # Broken: success on invalid input.
4559 continue
4560 else
4561   # Passes both tests.
4562 ac_preproc_ok=:
4563 break
4564 fi
4565 rm -f conftest.err conftest.i conftest.$ac_ext
4566
4567 done
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.i conftest.err conftest.$ac_ext
4570 if $ac_preproc_ok; then :
4571
4572 else
4573   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details" "$LINENO" 5; }
4577 fi
4578
4579 ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584
4585
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4588 if ${ac_cv_path_GREP+:} false; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   if test -z "$GREP"; then
4592   ac_path_GREP_found=false
4593   # Loop through the user's path and test for each of PROGNAME-LIST
4594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596 do
4597   IFS=$as_save_IFS
4598   test -z "$as_dir" && as_dir=.
4599     for ac_prog in grep ggrep; do
4600     for ac_exec_ext in '' $ac_executable_extensions; do
4601       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4602       as_fn_executable_p "$ac_path_GREP" || continue
4603 # Check for GNU ac_path_GREP and select it if it is found.
4604   # Check for GNU $ac_path_GREP
4605 case `"$ac_path_GREP" --version 2>&1` in
4606 *GNU*)
4607   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4608 *)
4609   ac_count=0
4610   $as_echo_n 0123456789 >"conftest.in"
4611   while :
4612   do
4613     cat "conftest.in" "conftest.in" >"conftest.tmp"
4614     mv "conftest.tmp" "conftest.in"
4615     cp "conftest.in" "conftest.nl"
4616     $as_echo 'GREP' >> "conftest.nl"
4617     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619     as_fn_arith $ac_count + 1 && ac_count=$as_val
4620     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621       # Best one so far, save it but keep looking for a better one
4622       ac_cv_path_GREP="$ac_path_GREP"
4623       ac_path_GREP_max=$ac_count
4624     fi
4625     # 10*(2^10) chars as input seems more than enough
4626     test $ac_count -gt 10 && break
4627   done
4628   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629 esac
4630
4631       $ac_path_GREP_found && break 3
4632     done
4633   done
4634   done
4635 IFS=$as_save_IFS
4636   if test -z "$ac_cv_path_GREP"; then
4637     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4638   fi
4639 else
4640   ac_cv_path_GREP=$GREP
4641 fi
4642
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645 $as_echo "$ac_cv_path_GREP" >&6; }
4646  GREP="$ac_cv_path_GREP"
4647
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650 $as_echo_n "checking for egrep... " >&6; }
4651 if ${ac_cv_path_EGREP+:} false; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655    then ac_cv_path_EGREP="$GREP -E"
4656    else
4657      if test -z "$EGREP"; then
4658   ac_path_EGREP_found=false
4659   # Loop through the user's path and test for each of PROGNAME-LIST
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665     for ac_prog in egrep; do
4666     for ac_exec_ext in '' $ac_executable_extensions; do
4667       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4668       as_fn_executable_p "$ac_path_EGREP" || continue
4669 # Check for GNU ac_path_EGREP and select it if it is found.
4670   # Check for GNU $ac_path_EGREP
4671 case `"$ac_path_EGREP" --version 2>&1` in
4672 *GNU*)
4673   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4674 *)
4675   ac_count=0
4676   $as_echo_n 0123456789 >"conftest.in"
4677   while :
4678   do
4679     cat "conftest.in" "conftest.in" >"conftest.tmp"
4680     mv "conftest.tmp" "conftest.in"
4681     cp "conftest.in" "conftest.nl"
4682     $as_echo 'EGREP' >> "conftest.nl"
4683     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685     as_fn_arith $ac_count + 1 && ac_count=$as_val
4686     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687       # Best one so far, save it but keep looking for a better one
4688       ac_cv_path_EGREP="$ac_path_EGREP"
4689       ac_path_EGREP_max=$ac_count
4690     fi
4691     # 10*(2^10) chars as input seems more than enough
4692     test $ac_count -gt 10 && break
4693   done
4694   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4696
4697       $ac_path_EGREP_found && break 3
4698     done
4699   done
4700   done
4701 IFS=$as_save_IFS
4702   if test -z "$ac_cv_path_EGREP"; then
4703     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704   fi
4705 else
4706   ac_cv_path_EGREP=$EGREP
4707 fi
4708
4709    fi
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712 $as_echo "$ac_cv_path_EGREP" >&6; }
4713  EGREP="$ac_cv_path_EGREP"
4714
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4717 $as_echo_n "checking for ANSI C header files... " >&6; }
4718 if ${ac_cv_header_stdc+:} false; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723 #include <stdlib.h>
4724 #include <stdarg.h>
4725 #include <string.h>
4726 #include <float.h>
4727
4728 int
4729 main ()
4730 {
4731
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737   ac_cv_header_stdc=yes
4738 else
4739   ac_cv_header_stdc=no
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742
4743 if test $ac_cv_header_stdc = yes; then
4744   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h.  */
4747 #include <string.h>
4748
4749 _ACEOF
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751   $EGREP "memchr" >/dev/null 2>&1; then :
4752
4753 else
4754   ac_cv_header_stdc=no
4755 fi
4756 rm -f conftest*
4757
4758 fi
4759
4760 if test $ac_cv_header_stdc = yes; then
4761   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h.  */
4764 #include <stdlib.h>
4765
4766 _ACEOF
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768   $EGREP "free" >/dev/null 2>&1; then :
4769
4770 else
4771   ac_cv_header_stdc=no
4772 fi
4773 rm -f conftest*
4774
4775 fi
4776
4777 if test $ac_cv_header_stdc = yes; then
4778   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4779   if test "$cross_compiling" = yes; then :
4780   :
4781 else
4782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h.  */
4784 #include <ctype.h>
4785 #include <stdlib.h>
4786 #if ((' ' & 0x0FF) == 0x020)
4787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4789 #else
4790 # define ISLOWER(c) \
4791                    (('a' <= (c) && (c) <= 'i') \
4792                      || ('j' <= (c) && (c) <= 'r') \
4793                      || ('s' <= (c) && (c) <= 'z'))
4794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4795 #endif
4796
4797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4798 int
4799 main ()
4800 {
4801   int i;
4802   for (i = 0; i < 256; i++)
4803     if (XOR (islower (i), ISLOWER (i))
4804         || toupper (i) != TOUPPER (i))
4805       return 2;
4806   return 0;
4807 }
4808 _ACEOF
4809 if ac_fn_c_try_run "$LINENO"; then :
4810
4811 else
4812   ac_cv_header_stdc=no
4813 fi
4814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4815   conftest.$ac_objext conftest.beam conftest.$ac_ext
4816 fi
4817
4818 fi
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4821 $as_echo "$ac_cv_header_stdc" >&6; }
4822 if test $ac_cv_header_stdc = yes; then
4823
4824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4825
4826 fi
4827
4828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4830                   inttypes.h stdint.h unistd.h
4831 do :
4832   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4834 "
4835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4836   cat >>confdefs.h <<_ACEOF
4837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 _ACEOF
4839
4840 fi
4841
4842 done
4843
4844
4845
4846   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4847 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4848   MINIX=yes
4849 else
4850   MINIX=
4851 fi
4852
4853
4854   if test "$MINIX" = yes; then
4855
4856 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4857
4858
4859 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4860
4861
4862 $as_echo "#define _MINIX 1" >>confdefs.h
4863
4864   fi
4865
4866
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4868 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4869 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874
4875 #         define __EXTENSIONS__ 1
4876           $ac_includes_default
4877 int
4878 main ()
4879 {
4880
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886   ac_cv_safe_to_define___extensions__=yes
4887 else
4888   ac_cv_safe_to_define___extensions__=no
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894   test $ac_cv_safe_to_define___extensions__ = yes &&
4895     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4896
4897   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4898
4899   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4900
4901   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4902
4903   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4904
4905
4906
4907
4908
4909
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 if test -n "$ac_tool_prefix"; then
4916   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4917 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if ${ac_cv_prog_CC+:} false; then :
4921   $as_echo_n "(cached) " >&6
4922 else
4923   if test -n "$CC"; then
4924   ac_cv_prog_CC="$CC" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931     for ac_exec_ext in '' $ac_executable_extensions; do
4932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938   done
4939 IFS=$as_save_IFS
4940
4941 fi
4942 fi
4943 CC=$ac_cv_prog_CC
4944 if test -n "$CC"; then
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4946 $as_echo "$CC" >&6; }
4947 else
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4950 fi
4951
4952
4953 fi
4954 if test -z "$ac_cv_prog_CC"; then
4955   ac_ct_CC=$CC
4956   # Extract the first word of "gcc", so it can be a program name with args.
4957 set dummy gcc; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -n "$ac_ct_CC"; then
4964   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_prog_ac_ct_CC="gcc"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4984 if test -n "$ac_ct_CC"; then
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4986 $as_echo "$ac_ct_CC" >&6; }
4987 else
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992   if test "x$ac_ct_CC" = x; then
4993     CC=""
4994   else
4995     case $cross_compiling:$ac_tool_warned in
4996 yes:)
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4999 ac_tool_warned=yes ;;
5000 esac
5001     CC=$ac_ct_CC
5002   fi
5003 else
5004   CC="$ac_cv_prog_CC"
5005 fi
5006
5007 if test -z "$CC"; then
5008           if test -n "$ac_tool_prefix"; then
5009     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}cc; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_CC+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   if test -n "$CC"; then
5017   ac_cv_prog_CC="$CC" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024     for ac_exec_ext in '' $ac_executable_extensions; do
5025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026     ac_cv_prog_CC="${ac_tool_prefix}cc"
5027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031   done
5032 IFS=$as_save_IFS
5033
5034 fi
5035 fi
5036 CC=$ac_cv_prog_CC
5037 if test -n "$CC"; then
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5039 $as_echo "$CC" >&6; }
5040 else
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5044
5045
5046   fi
5047 fi
5048 if test -z "$CC"; then
5049   # Extract the first word of "cc", so it can be a program name with args.
5050 set dummy cc; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_CC+:} false; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   if test -n "$CC"; then
5057   ac_cv_prog_CC="$CC" # Let the user override the test.
5058 else
5059   ac_prog_rejected=no
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065     for ac_exec_ext in '' $ac_executable_extensions; do
5066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5068        ac_prog_rejected=yes
5069        continue
5070      fi
5071     ac_cv_prog_CC="cc"
5072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076   done
5077 IFS=$as_save_IFS
5078
5079 if test $ac_prog_rejected = yes; then
5080   # We found a bogon in the path, so make sure we never use it.
5081   set dummy $ac_cv_prog_CC
5082   shift
5083   if test $# != 0; then
5084     # We chose a different compiler from the bogus one.
5085     # However, it has the same basename, so the bogon will be chosen
5086     # first if we set CC to just the basename; use the full file name.
5087     shift
5088     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5089   fi
5090 fi
5091 fi
5092 fi
5093 CC=$ac_cv_prog_CC
5094 if test -n "$CC"; then
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5096 $as_echo "$CC" >&6; }
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102
5103 fi
5104 if test -z "$CC"; then
5105   if test -n "$ac_tool_prefix"; then
5106   for ac_prog in cl.exe
5107   do
5108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_prog_CC+:} false; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   if test -n "$CC"; then
5116   ac_cv_prog_CC="$CC" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123     for ac_exec_ext in '' $ac_executable_extensions; do
5124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127     break 2
5128   fi
5129 done
5130   done
5131 IFS=$as_save_IFS
5132
5133 fi
5134 fi
5135 CC=$ac_cv_prog_CC
5136 if test -n "$CC"; then
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5138 $as_echo "$CC" >&6; }
5139 else
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5142 fi
5143
5144
5145     test -n "$CC" && break
5146   done
5147 fi
5148 if test -z "$CC"; then
5149   ac_ct_CC=$CC
5150   for ac_prog in cl.exe
5151 do
5152   # Extract the first word of "$ac_prog", so it can be a program name with args.
5153 set dummy $ac_prog; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159   if test -n "$ac_ct_CC"; then
5160   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169     ac_cv_prog_ac_ct_CC="$ac_prog"
5170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5180 if test -n "$ac_ct_CC"; then
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5182 $as_echo "$ac_ct_CC" >&6; }
5183 else
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188
5189   test -n "$ac_ct_CC" && break
5190 done
5191
5192   if test "x$ac_ct_CC" = x; then
5193     CC=""
5194   else
5195     case $cross_compiling:$ac_tool_warned in
5196 yes:)
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199 ac_tool_warned=yes ;;
5200 esac
5201     CC=$ac_ct_CC
5202   fi
5203 fi
5204
5205 fi
5206
5207
5208 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5210 as_fn_error $? "no acceptable C compiler found in \$PATH
5211 See \`config.log' for more details" "$LINENO" 5; }
5212
5213 # Provide some information about the compiler.
5214 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5215 set X $ac_compile
5216 ac_compiler=$2
5217 for ac_option in --version -v -V -qversion; do
5218   { { ac_try="$ac_compiler $ac_option >&5"
5219 case "(($ac_try" in
5220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221   *) ac_try_echo=$ac_try;;
5222 esac
5223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5224 $as_echo "$ac_try_echo"; } >&5
5225   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5226   ac_status=$?
5227   if test -s conftest.err; then
5228     sed '10a\
5229 ... rest of stderr output deleted ...
5230          10q' conftest.err >conftest.er1
5231     cat conftest.er1 >&5
5232   fi
5233   rm -f conftest.er1 conftest.err
5234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5235   test $ac_status = 0; }
5236 done
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5239 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5240 if ${ac_cv_c_compiler_gnu+:} false; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h.  */
5245
5246 int
5247 main ()
5248 {
5249 #ifndef __GNUC__
5250        choke me
5251 #endif
5252
5253   ;
5254   return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258   ac_compiler_gnu=yes
5259 else
5260   ac_compiler_gnu=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5264
5265 fi
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5267 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5268 if test $ac_compiler_gnu = yes; then
5269   GCC=yes
5270 else
5271   GCC=
5272 fi
5273 ac_test_CFLAGS=${CFLAGS+set}
5274 ac_save_CFLAGS=$CFLAGS
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5276 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5277 if ${ac_cv_prog_cc_g+:} false; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   ac_save_c_werror_flag=$ac_c_werror_flag
5281    ac_c_werror_flag=yes
5282    ac_cv_prog_cc_g=no
5283    CFLAGS="-g"
5284    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286
5287 int
5288 main ()
5289 {
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_c_try_compile "$LINENO"; then :
5296   ac_cv_prog_cc_g=yes
5297 else
5298   CFLAGS=""
5299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301
5302 int
5303 main ()
5304 {
5305
5306   ;
5307   return 0;
5308 }
5309 _ACEOF
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311
5312 else
5313   ac_c_werror_flag=$ac_save_c_werror_flag
5314          CFLAGS="-g"
5315          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h.  */
5317
5318 int
5319 main ()
5320 {
5321
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327   ac_cv_prog_cc_g=yes
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334    ac_c_werror_flag=$ac_save_c_werror_flag
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5337 $as_echo "$ac_cv_prog_cc_g" >&6; }
5338 if test "$ac_test_CFLAGS" = set; then
5339   CFLAGS=$ac_save_CFLAGS
5340 elif test $ac_cv_prog_cc_g = yes; then
5341   if test "$GCC" = yes; then
5342     CFLAGS="-g -O2"
5343   else
5344     CFLAGS="-g"
5345   fi
5346 else
5347   if test "$GCC" = yes; then
5348     CFLAGS="-O2"
5349   else
5350     CFLAGS=
5351   fi
5352 fi
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5354 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5355 if ${ac_cv_prog_cc_c89+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   ac_cv_prog_cc_c89=no
5359 ac_save_CC=$CC
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h.  */
5362 #include <stdarg.h>
5363 #include <stdio.h>
5364 struct stat;
5365 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5366 struct buf { int x; };
5367 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5368 static char *e (p, i)
5369      char **p;
5370      int i;
5371 {
5372   return p[i];
5373 }
5374 static char *f (char * (*g) (char **, int), char **p, ...)
5375 {
5376   char *s;
5377   va_list v;
5378   va_start (v,p);
5379   s = g (p, va_arg (v,int));
5380   va_end (v);
5381   return s;
5382 }
5383
5384 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5385    function prototypes and stuff, but not '\xHH' hex character constants.
5386    These don't provoke an error unfortunately, instead are silently treated
5387    as 'x'.  The following induces an error, until -std is added to get
5388    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5389    array size at least.  It's necessary to write '\x00'==0 to get something
5390    that's true only with -std.  */
5391 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5392
5393 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5394    inside strings and character constants.  */
5395 #define FOO(x) 'x'
5396 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5397
5398 int test (int i, double x);
5399 struct s1 {int (*f) (int a);};
5400 struct s2 {int (*f) (double a);};
5401 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5402 int argc;
5403 char **argv;
5404 int
5405 main ()
5406 {
5407 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5413         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5414 do
5415   CC="$ac_save_CC $ac_arg"
5416   if ac_fn_c_try_compile "$LINENO"; then :
5417   ac_cv_prog_cc_c89=$ac_arg
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext
5420   test "x$ac_cv_prog_cc_c89" != "xno" && break
5421 done
5422 rm -f conftest.$ac_ext
5423 CC=$ac_save_CC
5424
5425 fi
5426 # AC_CACHE_VAL
5427 case "x$ac_cv_prog_cc_c89" in
5428   x)
5429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5430 $as_echo "none needed" >&6; } ;;
5431   xno)
5432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5433 $as_echo "unsupported" >&6; } ;;
5434   *)
5435     CC="$CC $ac_cv_prog_cc_c89"
5436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5437 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5438 esac
5439 if test "x$ac_cv_prog_cc_c89" != xno; then :
5440
5441 fi
5442
5443 ac_ext=c
5444 ac_cpp='$CPP $CPPFLAGS'
5445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448
5449 depcc="$CC"   am_compiler_list=
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5452 $as_echo_n "checking dependency style of $depcc... " >&6; }
5453 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5457   # We make a subdir and do the tests there.  Otherwise we can end up
5458   # making bogus files that we don't know about and never remove.  For
5459   # instance it was reported that on HP-UX the gcc test will end up
5460   # making a dummy file named `D' -- because `-MD' means `put the output
5461   # in D'.
5462   rm -rf conftest.dir
5463   mkdir conftest.dir
5464   # Copy depcomp to subdir because otherwise we won't find it if we're
5465   # using a relative directory.
5466   cp "$am_depcomp" conftest.dir
5467   cd conftest.dir
5468   # We will build objects and dependencies in a subdirectory because
5469   # it helps to detect inapplicable dependency modes.  For instance
5470   # both Tru64's cc and ICC support -MD to output dependencies as a
5471   # side effect of compilation, but ICC will put the dependencies in
5472   # the current directory while Tru64 will put them in the object
5473   # directory.
5474   mkdir sub
5475
5476   am_cv_CC_dependencies_compiler_type=none
5477   if test "$am_compiler_list" = ""; then
5478      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5479   fi
5480   am__universal=false
5481   case " $depcc " in #(
5482      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5483      esac
5484
5485   for depmode in $am_compiler_list; do
5486     # Setup a source with many dependencies, because some compilers
5487     # like to wrap large dependency lists on column 80 (with \), and
5488     # we should not choose a depcomp mode which is confused by this.
5489     #
5490     # We need to recreate these files for each test, as the compiler may
5491     # overwrite some of them when testing with obscure command lines.
5492     # This happens at least with the AIX C compiler.
5493     : > sub/conftest.c
5494     for i in 1 2 3 4 5 6; do
5495       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5496       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5497       # Solaris 8's {/usr,}/bin/sh.
5498       touch sub/conftst$i.h
5499     done
5500     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5501
5502     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5503     # mode.  It turns out that the SunPro C++ compiler does not properly
5504     # handle `-M -o', and we need to detect this.  Also, some Intel
5505     # versions had trouble with output in subdirs
5506     am__obj=sub/conftest.${OBJEXT-o}
5507     am__minus_obj="-o $am__obj"
5508     case $depmode in
5509     gcc)
5510       # This depmode causes a compiler race in universal mode.
5511       test "$am__universal" = false || continue
5512       ;;
5513     nosideeffect)
5514       # after this tag, mechanisms are not by side-effect, so they'll
5515       # only be used when explicitly requested
5516       if test "x$enable_dependency_tracking" = xyes; then
5517         continue
5518       else
5519         break
5520       fi
5521       ;;
5522     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5523       # This compiler won't grok `-c -o', but also, the minuso test has
5524       # not run yet.  These depmodes are late enough in the game, and
5525       # so weak that their functioning should not be impacted.
5526       am__obj=conftest.${OBJEXT-o}
5527       am__minus_obj=
5528       ;;
5529     none) break ;;
5530     esac
5531     if depmode=$depmode \
5532        source=sub/conftest.c object=$am__obj \
5533        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5534        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5535          >/dev/null 2>conftest.err &&
5536        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5537        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5538        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5539        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5540       # icc doesn't choke on unknown options, it will just issue warnings
5541       # or remarks (even with -Werror).  So we grep stderr for any message
5542       # that says an option was ignored or not supported.
5543       # When given -MP, icc 7.0 and 7.1 complain thusly:
5544       #   icc: Command line warning: ignoring option '-M'; no argument required
5545       # The diagnosis changed in icc 8.0:
5546       #   icc: Command line remark: option '-MP' not supported
5547       if (grep 'ignoring option' conftest.err ||
5548           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5549         am_cv_CC_dependencies_compiler_type=$depmode
5550         break
5551       fi
5552     fi
5553   done
5554
5555   cd ..
5556   rm -rf conftest.dir
5557 else
5558   am_cv_CC_dependencies_compiler_type=none
5559 fi
5560
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5563 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5564 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5565
5566  if
5567   test "x$enable_dependency_tracking" != xno \
5568   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5569   am__fastdepCC_TRUE=
5570   am__fastdepCC_FALSE='#'
5571 else
5572   am__fastdepCC_TRUE='#'
5573   am__fastdepCC_FALSE=
5574 fi
5575
5576
5577 ac_ext=cpp
5578 ac_cpp='$CXXCPP $CPPFLAGS'
5579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5582 if test -z "$CXX"; then
5583   if test -n "$CCC"; then
5584     CXX=$CCC
5585   else
5586     if test -n "$ac_tool_prefix"; then
5587   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5588   do
5589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_CXX+:} false; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   if test -n "$CXX"; then
5597   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602   IFS=$as_save_IFS
5603   test -z "$as_dir" && as_dir=.
5604     for ac_exec_ext in '' $ac_executable_extensions; do
5605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608     break 2
5609   fi
5610 done
5611   done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 CXX=$ac_cv_prog_CXX
5617 if test -n "$CXX"; then
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5619 $as_echo "$CXX" >&6; }
5620 else
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625
5626     test -n "$CXX" && break
5627   done
5628 fi
5629 if test -z "$CXX"; then
5630   ac_ct_CXX=$CXX
5631   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5632 do
5633   # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5638   $as_echo_n "(cached) " >&6
5639 else
5640   if test -n "$ac_ct_CXX"; then
5641   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648     for ac_exec_ext in '' $ac_executable_extensions; do
5649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650     ac_cv_prog_ac_ct_CXX="$ac_prog"
5651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655   done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5661 if test -n "$ac_ct_CXX"; then
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5663 $as_echo "$ac_ct_CXX" >&6; }
5664 else
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670   test -n "$ac_ct_CXX" && break
5671 done
5672
5673   if test "x$ac_ct_CXX" = x; then
5674     CXX="g++"
5675   else
5676     case $cross_compiling:$ac_tool_warned in
5677 yes:)
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680 ac_tool_warned=yes ;;
5681 esac
5682     CXX=$ac_ct_CXX
5683   fi
5684 fi
5685
5686   fi
5687 fi
5688 # Provide some information about the compiler.
5689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5690 set X $ac_compile
5691 ac_compiler=$2
5692 for ac_option in --version -v -V -qversion; do
5693   { { ac_try="$ac_compiler $ac_option >&5"
5694 case "(($ac_try" in
5695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696   *) ac_try_echo=$ac_try;;
5697 esac
5698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5699 $as_echo "$ac_try_echo"; } >&5
5700   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5701   ac_status=$?
5702   if test -s conftest.err; then
5703     sed '10a\
5704 ... rest of stderr output deleted ...
5705          10q' conftest.err >conftest.er1
5706     cat conftest.er1 >&5
5707   fi
5708   rm -f conftest.er1 conftest.err
5709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710   test $ac_status = 0; }
5711 done
5712
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5714 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5715 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h.  */
5720
5721 int
5722 main ()
5723 {
5724 #ifndef __GNUC__
5725        choke me
5726 #endif
5727
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 if ac_fn_cxx_try_compile "$LINENO"; then :
5733   ac_compiler_gnu=yes
5734 else
5735   ac_compiler_gnu=no
5736 fi
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5739
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5742 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5743 if test $ac_compiler_gnu = yes; then
5744   GXX=yes
5745 else
5746   GXX=
5747 fi
5748 ac_test_CXXFLAGS=${CXXFLAGS+set}
5749 ac_save_CXXFLAGS=$CXXFLAGS
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5751 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5752 if ${ac_cv_prog_cxx_g+:} false; then :
5753   $as_echo_n "(cached) " >&6
5754 else
5755   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5756    ac_cxx_werror_flag=yes
5757    ac_cv_prog_cxx_g=no
5758    CXXFLAGS="-g"
5759    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h.  */
5761
5762 int
5763 main ()
5764 {
5765
5766   ;
5767   return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5771   ac_cv_prog_cxx_g=yes
5772 else
5773   CXXFLAGS=""
5774       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h.  */
5776
5777 int
5778 main ()
5779 {
5780
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 if ac_fn_cxx_try_compile "$LINENO"; then :
5786
5787 else
5788   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5789          CXXFLAGS="-g"
5790          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h.  */
5792
5793 int
5794 main ()
5795 {
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 if ac_fn_cxx_try_compile "$LINENO"; then :
5802   ac_cv_prog_cxx_g=yes
5803 fi
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 fi
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5812 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5813 if test "$ac_test_CXXFLAGS" = set; then
5814   CXXFLAGS=$ac_save_CXXFLAGS
5815 elif test $ac_cv_prog_cxx_g = yes; then
5816   if test "$GXX" = yes; then
5817     CXXFLAGS="-g -O2"
5818   else
5819     CXXFLAGS="-g"
5820   fi
5821 else
5822   if test "$GXX" = yes; then
5823     CXXFLAGS="-O2"
5824   else
5825     CXXFLAGS=
5826   fi
5827 fi
5828 ac_ext=c
5829 ac_cpp='$CPP $CPPFLAGS'
5830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5833
5834 depcc="$CXX"  am_compiler_list=
5835
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5837 $as_echo_n "checking dependency style of $depcc... " >&6; }
5838 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5839   $as_echo_n "(cached) " >&6
5840 else
5841   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5842   # We make a subdir and do the tests there.  Otherwise we can end up
5843   # making bogus files that we don't know about and never remove.  For
5844   # instance it was reported that on HP-UX the gcc test will end up
5845   # making a dummy file named `D' -- because `-MD' means `put the output
5846   # in D'.
5847   rm -rf conftest.dir
5848   mkdir conftest.dir
5849   # Copy depcomp to subdir because otherwise we won't find it if we're
5850   # using a relative directory.
5851   cp "$am_depcomp" conftest.dir
5852   cd conftest.dir
5853   # We will build objects and dependencies in a subdirectory because
5854   # it helps to detect inapplicable dependency modes.  For instance
5855   # both Tru64's cc and ICC support -MD to output dependencies as a
5856   # side effect of compilation, but ICC will put the dependencies in
5857   # the current directory while Tru64 will put them in the object
5858   # directory.
5859   mkdir sub
5860
5861   am_cv_CXX_dependencies_compiler_type=none
5862   if test "$am_compiler_list" = ""; then
5863      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5864   fi
5865   am__universal=false
5866   case " $depcc " in #(
5867      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5868      esac
5869
5870   for depmode in $am_compiler_list; do
5871     # Setup a source with many dependencies, because some compilers
5872     # like to wrap large dependency lists on column 80 (with \), and
5873     # we should not choose a depcomp mode which is confused by this.
5874     #
5875     # We need to recreate these files for each test, as the compiler may
5876     # overwrite some of them when testing with obscure command lines.
5877     # This happens at least with the AIX C compiler.
5878     : > sub/conftest.c
5879     for i in 1 2 3 4 5 6; do
5880       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5881       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5882       # Solaris 8's {/usr,}/bin/sh.
5883       touch sub/conftst$i.h
5884     done
5885     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5886
5887     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5888     # mode.  It turns out that the SunPro C++ compiler does not properly
5889     # handle `-M -o', and we need to detect this.  Also, some Intel
5890     # versions had trouble with output in subdirs
5891     am__obj=sub/conftest.${OBJEXT-o}
5892     am__minus_obj="-o $am__obj"
5893     case $depmode in
5894     gcc)
5895       # This depmode causes a compiler race in universal mode.
5896       test "$am__universal" = false || continue
5897       ;;
5898     nosideeffect)
5899       # after this tag, mechanisms are not by side-effect, so they'll
5900       # only be used when explicitly requested
5901       if test "x$enable_dependency_tracking" = xyes; then
5902         continue
5903       else
5904         break
5905       fi
5906       ;;
5907     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5908       # This compiler won't grok `-c -o', but also, the minuso test has
5909       # not run yet.  These depmodes are late enough in the game, and
5910       # so weak that their functioning should not be impacted.
5911       am__obj=conftest.${OBJEXT-o}
5912       am__minus_obj=
5913       ;;
5914     none) break ;;
5915     esac
5916     if depmode=$depmode \
5917        source=sub/conftest.c object=$am__obj \
5918        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5919        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5920          >/dev/null 2>conftest.err &&
5921        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5922        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5923        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5924        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5925       # icc doesn't choke on unknown options, it will just issue warnings
5926       # or remarks (even with -Werror).  So we grep stderr for any message
5927       # that says an option was ignored or not supported.
5928       # When given -MP, icc 7.0 and 7.1 complain thusly:
5929       #   icc: Command line warning: ignoring option '-M'; no argument required
5930       # The diagnosis changed in icc 8.0:
5931       #   icc: Command line remark: option '-MP' not supported
5932       if (grep 'ignoring option' conftest.err ||
5933           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5934         am_cv_CXX_dependencies_compiler_type=$depmode
5935         break
5936       fi
5937     fi
5938   done
5939
5940   cd ..
5941   rm -rf conftest.dir
5942 else
5943   am_cv_CXX_dependencies_compiler_type=none
5944 fi
5945
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5948 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5949 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5950
5951  if
5952   test "x$enable_dependency_tracking" != xno \
5953   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5954   am__fastdepCXX_TRUE=
5955   am__fastdepCXX_FALSE='#'
5956 else
5957   am__fastdepCXX_TRUE='#'
5958   am__fastdepCXX_FALSE=
5959 fi
5960
5961
5962
5963 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
5964 for ac_prog in gitlog-to-changelog
5965 do
5966   # Extract the first word of "$ac_prog", so it can be a program name with args.
5967 set dummy $ac_prog; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
5971   $as_echo_n "(cached) " >&6
5972 else
5973   if test -n "$GITLOG_TO_CHANGELOG"; then
5974   ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981     for ac_exec_ext in '' $ac_executable_extensions; do
5982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983     ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
5984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988   done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
5994 if test -n "$GITLOG_TO_CHANGELOG"; then
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
5996 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
5997 else
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001
6002
6003   test -n "$GITLOG_TO_CHANGELOG" && break
6004 done
6005 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015 cat >>confdefs.h <<_ACEOF
6016 #define PACKAGE "$PACKAGE"
6017 _ACEOF
6018
6019
6020 cat >>confdefs.h <<_ACEOF
6021 #define VERSION "$VERSION"
6022 _ACEOF
6023
6024 VERSION_NUMBER=0x010503
6025
6026
6027 # Don't default to build static libs.
6028
6029 case `pwd` in
6030   *\ * | *\     *)
6031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6032 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6033 esac
6034
6035
6036
6037 macro_version='2.4.2'
6038 macro_revision='1.3337'
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052 ltmain="$ac_aux_dir/ltmain.sh"
6053
6054 # Backslashify metacharacters that are still active within
6055 # double-quoted strings.
6056 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6057
6058 # Same as above, but do not quote variable references.
6059 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6060
6061 # Sed substitution to delay expansion of an escaped shell variable in a
6062 # double_quote_subst'ed string.
6063 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6064
6065 # Sed substitution to delay expansion of an escaped single quote.
6066 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6067
6068 # Sed substitution to avoid accidental globbing in evaled expressions
6069 no_glob_subst='s/\*/\\\*/g'
6070
6071 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6072 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6076 $as_echo_n "checking how to print strings... " >&6; }
6077 # Test print first, because it will be a builtin if present.
6078 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6079    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6080   ECHO='print -r --'
6081 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6082   ECHO='printf %s\n'
6083 else
6084   # Use this function as a fallback that always works.
6085   func_fallback_echo ()
6086   {
6087     eval 'cat <<_LTECHO_EOF
6088 $1
6089 _LTECHO_EOF'
6090   }
6091   ECHO='func_fallback_echo'
6092 fi
6093
6094 # func_echo_all arg...
6095 # Invoke $ECHO with all args, space-separated.
6096 func_echo_all ()
6097 {
6098     $ECHO ""
6099 }
6100
6101 case "$ECHO" in
6102   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6103 $as_echo "printf" >&6; } ;;
6104   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6105 $as_echo "print -r" >&6; } ;;
6106   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6107 $as_echo "cat" >&6; } ;;
6108 esac
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6124 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6125 if ${ac_cv_path_SED+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6129      for ac_i in 1 2 3 4 5 6 7; do
6130        ac_script="$ac_script$as_nl$ac_script"
6131      done
6132      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6133      { ac_script=; unset ac_script;}
6134      if test -z "$SED"; then
6135   ac_path_SED_found=false
6136   # Loop through the user's path and test for each of PROGNAME-LIST
6137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142     for ac_prog in sed gsed; do
6143     for ac_exec_ext in '' $ac_executable_extensions; do
6144       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6145       as_fn_executable_p "$ac_path_SED" || continue
6146 # Check for GNU ac_path_SED and select it if it is found.
6147   # Check for GNU $ac_path_SED
6148 case `"$ac_path_SED" --version 2>&1` in
6149 *GNU*)
6150   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6151 *)
6152   ac_count=0
6153   $as_echo_n 0123456789 >"conftest.in"
6154   while :
6155   do
6156     cat "conftest.in" "conftest.in" >"conftest.tmp"
6157     mv "conftest.tmp" "conftest.in"
6158     cp "conftest.in" "conftest.nl"
6159     $as_echo '' >> "conftest.nl"
6160     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6161     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6162     as_fn_arith $ac_count + 1 && ac_count=$as_val
6163     if test $ac_count -gt ${ac_path_SED_max-0}; then
6164       # Best one so far, save it but keep looking for a better one
6165       ac_cv_path_SED="$ac_path_SED"
6166       ac_path_SED_max=$ac_count
6167     fi
6168     # 10*(2^10) chars as input seems more than enough
6169     test $ac_count -gt 10 && break
6170   done
6171   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6172 esac
6173
6174       $ac_path_SED_found && break 3
6175     done
6176   done
6177   done
6178 IFS=$as_save_IFS
6179   if test -z "$ac_cv_path_SED"; then
6180     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6181   fi
6182 else
6183   ac_cv_path_SED=$SED
6184 fi
6185
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6188 $as_echo "$ac_cv_path_SED" >&6; }
6189  SED="$ac_cv_path_SED"
6190   rm -f conftest.sed
6191
6192 test -z "$SED" && SED=sed
6193 Xsed="$SED -e 1s/^X//"
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6206 $as_echo_n "checking for fgrep... " >&6; }
6207 if ${ac_cv_path_FGREP+:} false; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6211    then ac_cv_path_FGREP="$GREP -F"
6212    else
6213      if test -z "$FGREP"; then
6214   ac_path_FGREP_found=false
6215   # Loop through the user's path and test for each of PROGNAME-LIST
6216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221     for ac_prog in fgrep; do
6222     for ac_exec_ext in '' $ac_executable_extensions; do
6223       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6224       as_fn_executable_p "$ac_path_FGREP" || continue
6225 # Check for GNU ac_path_FGREP and select it if it is found.
6226   # Check for GNU $ac_path_FGREP
6227 case `"$ac_path_FGREP" --version 2>&1` in
6228 *GNU*)
6229   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6230 *)
6231   ac_count=0
6232   $as_echo_n 0123456789 >"conftest.in"
6233   while :
6234   do
6235     cat "conftest.in" "conftest.in" >"conftest.tmp"
6236     mv "conftest.tmp" "conftest.in"
6237     cp "conftest.in" "conftest.nl"
6238     $as_echo 'FGREP' >> "conftest.nl"
6239     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6240     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6241     as_fn_arith $ac_count + 1 && ac_count=$as_val
6242     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6243       # Best one so far, save it but keep looking for a better one
6244       ac_cv_path_FGREP="$ac_path_FGREP"
6245       ac_path_FGREP_max=$ac_count
6246     fi
6247     # 10*(2^10) chars as input seems more than enough
6248     test $ac_count -gt 10 && break
6249   done
6250   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6251 esac
6252
6253       $ac_path_FGREP_found && break 3
6254     done
6255   done
6256   done
6257 IFS=$as_save_IFS
6258   if test -z "$ac_cv_path_FGREP"; then
6259     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6260   fi
6261 else
6262   ac_cv_path_FGREP=$FGREP
6263 fi
6264
6265    fi
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6268 $as_echo "$ac_cv_path_FGREP" >&6; }
6269  FGREP="$ac_cv_path_FGREP"
6270
6271
6272 test -z "$GREP" && GREP=grep
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 # Check whether --with-gnu-ld was given.
6293 if test "${with_gnu_ld+set}" = set; then :
6294   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6295 else
6296   with_gnu_ld=no
6297 fi
6298
6299 ac_prog=ld
6300 if test "$GCC" = yes; then
6301   # Check if gcc -print-prog-name=ld gives a path.
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6303 $as_echo_n "checking for ld used by $CC... " >&6; }
6304   case $host in
6305   *-*-mingw*)
6306     # gcc leaves a trailing carriage return which upsets mingw
6307     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6308   *)
6309     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6310   esac
6311   case $ac_prog in
6312     # Accept absolute paths.
6313     [\\/]* | ?:[\\/]*)
6314       re_direlt='/[^/][^/]*/\.\./'
6315       # Canonicalize the pathname of ld
6316       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6317       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6318         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6319       done
6320       test -z "$LD" && LD="$ac_prog"
6321       ;;
6322   "")
6323     # If it fails, then pretend we aren't using GCC.
6324     ac_prog=ld
6325     ;;
6326   *)
6327     # If it is relative, then search for the first ld in PATH.
6328     with_gnu_ld=unknown
6329     ;;
6330   esac
6331 elif test "$with_gnu_ld" = yes; then
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6333 $as_echo_n "checking for GNU ld... " >&6; }
6334 else
6335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6336 $as_echo_n "checking for non-GNU ld... " >&6; }
6337 fi
6338 if ${lt_cv_path_LD+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   if test -z "$LD"; then
6342   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6343   for ac_dir in $PATH; do
6344     IFS="$lt_save_ifs"
6345     test -z "$ac_dir" && ac_dir=.
6346     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6347       lt_cv_path_LD="$ac_dir/$ac_prog"
6348       # Check to see if the program is GNU ld.  I'd rather use --version,
6349       # but apparently some variants of GNU ld only accept -v.
6350       # Break only if it was the GNU/non-GNU ld that we prefer.
6351       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6352       *GNU* | *'with BFD'*)
6353         test "$with_gnu_ld" != no && break
6354         ;;
6355       *)
6356         test "$with_gnu_ld" != yes && break
6357         ;;
6358       esac
6359     fi
6360   done
6361   IFS="$lt_save_ifs"
6362 else
6363   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6364 fi
6365 fi
6366
6367 LD="$lt_cv_path_LD"
6368 if test -n "$LD"; then
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6370 $as_echo "$LD" >&6; }
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6377 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6378 if ${lt_cv_prog_gnu_ld+:} false; then :
6379   $as_echo_n "(cached) " >&6
6380 else
6381   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6382 case `$LD -v 2>&1 </dev/null` in
6383 *GNU* | *'with BFD'*)
6384   lt_cv_prog_gnu_ld=yes
6385   ;;
6386 *)
6387   lt_cv_prog_gnu_ld=no
6388   ;;
6389 esac
6390 fi
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6392 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6393 with_gnu_ld=$lt_cv_prog_gnu_ld
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6404 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6405 if ${lt_cv_path_NM+:} false; then :
6406   $as_echo_n "(cached) " >&6
6407 else
6408   if test -n "$NM"; then
6409   # Let the user override the test.
6410   lt_cv_path_NM="$NM"
6411 else
6412   lt_nm_to_check="${ac_tool_prefix}nm"
6413   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6414     lt_nm_to_check="$lt_nm_to_check nm"
6415   fi
6416   for lt_tmp_nm in $lt_nm_to_check; do
6417     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6418     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6419       IFS="$lt_save_ifs"
6420       test -z "$ac_dir" && ac_dir=.
6421       tmp_nm="$ac_dir/$lt_tmp_nm"
6422       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6423         # Check to see if the nm accepts a BSD-compat flag.
6424         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6425         #   nm: unknown option "B" ignored
6426         # Tru64's nm complains that /dev/null is an invalid object file
6427         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6428         */dev/null* | *'Invalid file or object type'*)
6429           lt_cv_path_NM="$tmp_nm -B"
6430           break
6431           ;;
6432         *)
6433           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6434           */dev/null*)
6435             lt_cv_path_NM="$tmp_nm -p"
6436             break
6437             ;;
6438           *)
6439             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6440             continue # so that we can try to find one that supports BSD flags
6441             ;;
6442           esac
6443           ;;
6444         esac
6445       fi
6446     done
6447     IFS="$lt_save_ifs"
6448   done
6449   : ${lt_cv_path_NM=no}
6450 fi
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6453 $as_echo "$lt_cv_path_NM" >&6; }
6454 if test "$lt_cv_path_NM" != "no"; then
6455   NM="$lt_cv_path_NM"
6456 else
6457   # Didn't find any BSD compatible name lister, look for dumpbin.
6458   if test -n "$DUMPBIN"; then :
6459     # Let the user override the test.
6460   else
6461     if test -n "$ac_tool_prefix"; then
6462   for ac_prog in dumpbin "link -dump"
6463   do
6464     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if ${ac_cv_prog_DUMPBIN+:} false; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471   if test -n "$DUMPBIN"; then
6472   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477   IFS=$as_save_IFS
6478   test -z "$as_dir" && as_dir=.
6479     for ac_exec_ext in '' $ac_executable_extensions; do
6480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483     break 2
6484   fi
6485 done
6486   done
6487 IFS=$as_save_IFS
6488
6489 fi
6490 fi
6491 DUMPBIN=$ac_cv_prog_DUMPBIN
6492 if test -n "$DUMPBIN"; then
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6494 $as_echo "$DUMPBIN" >&6; }
6495 else
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499
6500
6501     test -n "$DUMPBIN" && break
6502   done
6503 fi
6504 if test -z "$DUMPBIN"; then
6505   ac_ct_DUMPBIN=$DUMPBIN
6506   for ac_prog in dumpbin "link -dump"
6507 do
6508   # Extract the first word of "$ac_prog", so it can be a program name with args.
6509 set dummy $ac_prog; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6513   $as_echo_n "(cached) " >&6
6514 else
6515   if test -n "$ac_ct_DUMPBIN"; then
6516   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521   IFS=$as_save_IFS
6522   test -z "$as_dir" && as_dir=.
6523     for ac_exec_ext in '' $ac_executable_extensions; do
6524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527     break 2
6528   fi
6529 done
6530   done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6536 if test -n "$ac_ct_DUMPBIN"; then
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6538 $as_echo "$ac_ct_DUMPBIN" >&6; }
6539 else
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6542 fi
6543
6544
6545   test -n "$ac_ct_DUMPBIN" && break
6546 done
6547
6548   if test "x$ac_ct_DUMPBIN" = x; then
6549     DUMPBIN=":"
6550   else
6551     case $cross_compiling:$ac_tool_warned in
6552 yes:)
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6556 esac
6557     DUMPBIN=$ac_ct_DUMPBIN
6558   fi
6559 fi
6560
6561     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6562     *COFF*)
6563       DUMPBIN="$DUMPBIN -symbols"
6564       ;;
6565     *)
6566       DUMPBIN=:
6567       ;;
6568     esac
6569   fi
6570
6571   if test "$DUMPBIN" != ":"; then
6572     NM="$DUMPBIN"
6573   fi
6574 fi
6575 test -z "$NM" && NM=nm
6576
6577
6578
6579
6580
6581
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6583 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6584 if ${lt_cv_nm_interface+:} false; then :
6585   $as_echo_n "(cached) " >&6
6586 else
6587   lt_cv_nm_interface="BSD nm"
6588   echo "int some_variable = 0;" > conftest.$ac_ext
6589   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6590   (eval "$ac_compile" 2>conftest.err)
6591   cat conftest.err >&5
6592   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6593   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6594   cat conftest.err >&5
6595   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6596   cat conftest.out >&5
6597   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6598     lt_cv_nm_interface="MS dumpbin"
6599   fi
6600   rm -f conftest*
6601 fi
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6603 $as_echo "$lt_cv_nm_interface" >&6; }
6604
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6606 $as_echo_n "checking whether ln -s works... " >&6; }
6607 LN_S=$as_ln_s
6608 if test "$LN_S" = "ln -s"; then
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6610 $as_echo "yes" >&6; }
6611 else
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6613 $as_echo "no, using $LN_S" >&6; }
6614 fi
6615
6616 # find the maximum length of command line arguments
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6618 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6619 if ${lt_cv_sys_max_cmd_len+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622     i=0
6623   teststring="ABCD"
6624
6625   case $build_os in
6626   msdosdjgpp*)
6627     # On DJGPP, this test can blow up pretty badly due to problems in libc
6628     # (any single argument exceeding 2000 bytes causes a buffer overrun
6629     # during glob expansion).  Even if it were fixed, the result of this
6630     # check would be larger than it should be.
6631     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6632     ;;
6633
6634   gnu*)
6635     # Under GNU Hurd, this test is not required because there is
6636     # no limit to the length of command line arguments.
6637     # Libtool will interpret -1 as no limit whatsoever
6638     lt_cv_sys_max_cmd_len=-1;
6639     ;;
6640
6641   cygwin* | mingw* | cegcc*)
6642     # On Win9x/ME, this test blows up -- it succeeds, but takes
6643     # about 5 minutes as the teststring grows exponentially.
6644     # Worse, since 9x/ME are not pre-emptively multitasking,
6645     # you end up with a "frozen" computer, even though with patience
6646     # the test eventually succeeds (with a max line length of 256k).
6647     # Instead, let's just punt: use the minimum linelength reported by
6648     # all of the supported platforms: 8192 (on NT/2K/XP).
6649     lt_cv_sys_max_cmd_len=8192;
6650     ;;
6651
6652   mint*)
6653     # On MiNT this can take a long time and run out of memory.
6654     lt_cv_sys_max_cmd_len=8192;
6655     ;;
6656
6657   amigaos*)
6658     # On AmigaOS with pdksh, this test takes hours, literally.
6659     # So we just punt and use a minimum line length of 8192.
6660     lt_cv_sys_max_cmd_len=8192;
6661     ;;
6662
6663   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6664     # This has been around since 386BSD, at least.  Likely further.
6665     if test -x /sbin/sysctl; then
6666       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6667     elif test -x /usr/sbin/sysctl; then
6668       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6669     else
6670       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6671     fi
6672     # And add a safety zone
6673     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6674     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6675     ;;
6676
6677   interix*)
6678     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6679     lt_cv_sys_max_cmd_len=196608
6680     ;;
6681
6682   os2*)
6683     # The test takes a long time on OS/2.
6684     lt_cv_sys_max_cmd_len=8192
6685     ;;
6686
6687   osf*)
6688     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6689     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6690     # nice to cause kernel panics so lets avoid the loop below.
6691     # First set a reasonable default.
6692     lt_cv_sys_max_cmd_len=16384
6693     #
6694     if test -x /sbin/sysconfig; then
6695       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6696         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6697       esac
6698     fi
6699     ;;
6700   sco3.2v5*)
6701     lt_cv_sys_max_cmd_len=102400
6702     ;;
6703   sysv5* | sco5v6* | sysv4.2uw2*)
6704     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6705     if test -n "$kargmax"; then
6706       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6707     else
6708       lt_cv_sys_max_cmd_len=32768
6709     fi
6710     ;;
6711   *)
6712     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6713     if test -n "$lt_cv_sys_max_cmd_len"; then
6714       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6715       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6716     else
6717       # Make teststring a little bigger before we do anything with it.
6718       # a 1K string should be a reasonable start.
6719       for i in 1 2 3 4 5 6 7 8 ; do
6720         teststring=$teststring$teststring
6721       done
6722       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6723       # If test is not a shell built-in, we'll probably end up computing a
6724       # maximum length that is only half of the actual maximum length, but
6725       # we can't tell.
6726       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6727                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6728               test $i != 17 # 1/2 MB should be enough
6729       do
6730         i=`expr $i + 1`
6731         teststring=$teststring$teststring
6732       done
6733       # Only check the string length outside the loop.
6734       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6735       teststring=
6736       # Add a significant safety factor because C++ compilers can tack on
6737       # massive amounts of additional arguments before passing them to the
6738       # linker.  It appears as though 1/2 is a usable value.
6739       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6740     fi
6741     ;;
6742   esac
6743
6744 fi
6745
6746 if test -n $lt_cv_sys_max_cmd_len ; then
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6748 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6749 else
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6751 $as_echo "none" >&6; }
6752 fi
6753 max_cmd_len=$lt_cv_sys_max_cmd_len
6754
6755
6756
6757
6758
6759
6760 : ${CP="cp -f"}
6761 : ${MV="mv -f"}
6762 : ${RM="rm -f"}
6763
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6765 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6766 # Try some XSI features
6767 xsi_shell=no
6768 ( _lt_dummy="a/b/c"
6769   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6770       = c,a/b,b/c, \
6771     && eval 'test $(( 1 + 1 )) -eq 2 \
6772     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6773   && xsi_shell=yes
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6775 $as_echo "$xsi_shell" >&6; }
6776
6777
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6779 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6780 lt_shell_append=no
6781 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6782     >/dev/null 2>&1 \
6783   && lt_shell_append=yes
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6785 $as_echo "$lt_shell_append" >&6; }
6786
6787
6788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6789   lt_unset=unset
6790 else
6791   lt_unset=false
6792 fi
6793
6794
6795
6796
6797
6798 # test EBCDIC or ASCII
6799 case `echo X|tr X '\101'` in
6800  A) # ASCII based system
6801     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6802   lt_SP2NL='tr \040 \012'
6803   lt_NL2SP='tr \015\012 \040\040'
6804   ;;
6805  *) # EBCDIC based system
6806   lt_SP2NL='tr \100 \n'
6807   lt_NL2SP='tr \r\n \100\100'
6808   ;;
6809 esac
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6820 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6821 if ${lt_cv_to_host_file_cmd+:} false; then :
6822   $as_echo_n "(cached) " >&6
6823 else
6824   case $host in
6825   *-*-mingw* )
6826     case $build in
6827       *-*-mingw* ) # actually msys
6828         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6829         ;;
6830       *-*-cygwin* )
6831         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6832         ;;
6833       * ) # otherwise, assume *nix
6834         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6835         ;;
6836     esac
6837     ;;
6838   *-*-cygwin* )
6839     case $build in
6840       *-*-mingw* ) # actually msys
6841         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6842         ;;
6843       *-*-cygwin* )
6844         lt_cv_to_host_file_cmd=func_convert_file_noop
6845         ;;
6846       * ) # otherwise, assume *nix
6847         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6848         ;;
6849     esac
6850     ;;
6851   * ) # unhandled hosts (and "normal" native builds)
6852     lt_cv_to_host_file_cmd=func_convert_file_noop
6853     ;;
6854 esac
6855
6856 fi
6857
6858 to_host_file_cmd=$lt_cv_to_host_file_cmd
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6860 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6861
6862
6863
6864
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6867 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6868 if ${lt_cv_to_tool_file_cmd+:} false; then :
6869   $as_echo_n "(cached) " >&6
6870 else
6871   #assume ordinary cross tools, or native build.
6872 lt_cv_to_tool_file_cmd=func_convert_file_noop
6873 case $host in
6874   *-*-mingw* )
6875     case $build in
6876       *-*-mingw* ) # actually msys
6877         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6878         ;;
6879     esac
6880     ;;
6881 esac
6882
6883 fi
6884
6885 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6887 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6888
6889
6890
6891
6892
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6894 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6895 if ${lt_cv_ld_reload_flag+:} false; then :
6896   $as_echo_n "(cached) " >&6
6897 else
6898   lt_cv_ld_reload_flag='-r'
6899 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6901 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6902 reload_flag=$lt_cv_ld_reload_flag
6903 case $reload_flag in
6904 "" | " "*) ;;
6905 *) reload_flag=" $reload_flag" ;;
6906 esac
6907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6908 case $host_os in
6909   cygwin* | mingw* | pw32* | cegcc*)
6910     if test "$GCC" != yes; then
6911       reload_cmds=false
6912     fi
6913     ;;
6914   darwin*)
6915     if test "$GCC" = yes; then
6916       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6917     else
6918       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6919     fi
6920     ;;
6921 esac
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 if test -n "$ac_tool_prefix"; then
6932   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_OBJDUMP+:} false; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   if test -n "$OBJDUMP"; then
6940   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947     for ac_exec_ext in '' $ac_executable_extensions; do
6948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954   done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 OBJDUMP=$ac_cv_prog_OBJDUMP
6960 if test -n "$OBJDUMP"; then
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6962 $as_echo "$OBJDUMP" >&6; }
6963 else
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968
6969 fi
6970 if test -z "$ac_cv_prog_OBJDUMP"; then
6971   ac_ct_OBJDUMP=$OBJDUMP
6972   # Extract the first word of "objdump", so it can be a program name with args.
6973 set dummy objdump; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6977   $as_echo_n "(cached) " >&6
6978 else
6979   if test -n "$ac_ct_OBJDUMP"; then
6980   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987     for ac_exec_ext in '' $ac_executable_extensions; do
6988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994   done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7000 if test -n "$ac_ct_OBJDUMP"; then
7001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7002 $as_echo "$ac_ct_OBJDUMP" >&6; }
7003 else
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7006 fi
7007
7008   if test "x$ac_ct_OBJDUMP" = x; then
7009     OBJDUMP="false"
7010   else
7011     case $cross_compiling:$ac_tool_warned in
7012 yes:)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 ac_tool_warned=yes ;;
7016 esac
7017     OBJDUMP=$ac_ct_OBJDUMP
7018   fi
7019 else
7020   OBJDUMP="$ac_cv_prog_OBJDUMP"
7021 fi
7022
7023 test -z "$OBJDUMP" && OBJDUMP=objdump
7024
7025
7026
7027
7028
7029
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7031 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7032 if ${lt_cv_deplibs_check_method+:} false; then :
7033   $as_echo_n "(cached) " >&6
7034 else
7035   lt_cv_file_magic_cmd='$MAGIC_CMD'
7036 lt_cv_file_magic_test_file=
7037 lt_cv_deplibs_check_method='unknown'
7038 # Need to set the preceding variable on all platforms that support
7039 # interlibrary dependencies.
7040 # 'none' -- dependencies not supported.
7041 # `unknown' -- same as none, but documents that we really don't know.
7042 # 'pass_all' -- all dependencies passed with no checks.
7043 # 'test_compile' -- check by making test program.
7044 # 'file_magic [[regex]]' -- check by looking for files in library path
7045 # which responds to the $file_magic_cmd with a given extended regex.
7046 # If you have `file' or equivalent on your system and you're not sure
7047 # whether `pass_all' will *always* work, you probably want this one.
7048
7049 case $host_os in
7050 aix[4-9]*)
7051   lt_cv_deplibs_check_method=pass_all
7052   ;;
7053
7054 beos*)
7055   lt_cv_deplibs_check_method=pass_all
7056   ;;
7057
7058 bsdi[45]*)
7059   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7060   lt_cv_file_magic_cmd='/usr/bin/file -L'
7061   lt_cv_file_magic_test_file=/shlib/libc.so
7062   ;;
7063
7064 cygwin*)
7065   # func_win32_libid is a shell function defined in ltmain.sh
7066   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7067   lt_cv_file_magic_cmd='func_win32_libid'
7068   ;;
7069
7070 mingw* | pw32*)
7071   # Base MSYS/MinGW do not provide the 'file' command needed by
7072   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7073   # unless we find 'file', for example because we are cross-compiling.
7074   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7075   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7076     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7077     lt_cv_file_magic_cmd='func_win32_libid'
7078   else
7079     # Keep this pattern in sync with the one in func_win32_libid.
7080     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7081     lt_cv_file_magic_cmd='$OBJDUMP -f'
7082   fi
7083   ;;
7084
7085 cegcc*)
7086   # use the weaker test based on 'objdump'. See mingw*.
7087   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7088   lt_cv_file_magic_cmd='$OBJDUMP -f'
7089   ;;
7090
7091 darwin* | rhapsody*)
7092   lt_cv_deplibs_check_method=pass_all
7093   ;;
7094
7095 freebsd* | dragonfly*)
7096   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7097     case $host_cpu in
7098     i*86 )
7099       # Not sure whether the presence of OpenBSD here was a mistake.
7100       # Let's accept both of them until this is cleared up.
7101       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7102       lt_cv_file_magic_cmd=/usr/bin/file
7103       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7104       ;;
7105     esac
7106   else
7107     lt_cv_deplibs_check_method=pass_all
7108   fi
7109   ;;
7110
7111 gnu*)
7112   lt_cv_deplibs_check_method=pass_all
7113   ;;
7114
7115 haiku*)
7116   lt_cv_deplibs_check_method=pass_all
7117   ;;
7118
7119 hpux10.20* | hpux11*)
7120   lt_cv_file_magic_cmd=/usr/bin/file
7121   case $host_cpu in
7122   ia64*)
7123     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7124     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7125     ;;
7126   hppa*64*)
7127     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]'
7128     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7129     ;;
7130   *)
7131     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7132     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7133     ;;
7134   esac
7135   ;;
7136
7137 interix[3-9]*)
7138   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7139   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7140   ;;
7141
7142 irix5* | irix6* | nonstopux*)
7143   case $LD in
7144   *-32|*"-32 ") libmagic=32-bit;;
7145   *-n32|*"-n32 ") libmagic=N32;;
7146   *-64|*"-64 ") libmagic=64-bit;;
7147   *) libmagic=never-match;;
7148   esac
7149   lt_cv_deplibs_check_method=pass_all
7150   ;;
7151
7152 # This must be glibc/ELF.
7153 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7154   lt_cv_deplibs_check_method=pass_all
7155   ;;
7156
7157 netbsd* | netbsdelf*-gnu)
7158   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7159     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7160   else
7161     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7162   fi
7163   ;;
7164
7165 newos6*)
7166   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7167   lt_cv_file_magic_cmd=/usr/bin/file
7168   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7169   ;;
7170
7171 *nto* | *qnx*)
7172   lt_cv_deplibs_check_method=pass_all
7173   ;;
7174
7175 openbsd*)
7176   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7178   else
7179     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7180   fi
7181   ;;
7182
7183 osf3* | osf4* | osf5*)
7184   lt_cv_deplibs_check_method=pass_all
7185   ;;
7186
7187 rdos*)
7188   lt_cv_deplibs_check_method=pass_all
7189   ;;
7190
7191 solaris*)
7192   lt_cv_deplibs_check_method=pass_all
7193   ;;
7194
7195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7196   lt_cv_deplibs_check_method=pass_all
7197   ;;
7198
7199 sysv4 | sysv4.3*)
7200   case $host_vendor in
7201   motorola)
7202     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]'
7203     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7204     ;;
7205   ncr)
7206     lt_cv_deplibs_check_method=pass_all
7207     ;;
7208   sequent)
7209     lt_cv_file_magic_cmd='/bin/file'
7210     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7211     ;;
7212   sni)
7213     lt_cv_file_magic_cmd='/bin/file'
7214     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7215     lt_cv_file_magic_test_file=/lib/libc.so
7216     ;;
7217   siemens)
7218     lt_cv_deplibs_check_method=pass_all
7219     ;;
7220   pc)
7221     lt_cv_deplibs_check_method=pass_all
7222     ;;
7223   esac
7224   ;;
7225
7226 tpf*)
7227   lt_cv_deplibs_check_method=pass_all
7228   ;;
7229 esac
7230
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7233 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7234
7235 file_magic_glob=
7236 want_nocaseglob=no
7237 if test "$build" = "$host"; then
7238   case $host_os in
7239   mingw* | pw32*)
7240     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7241       want_nocaseglob=yes
7242     else
7243       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7244     fi
7245     ;;
7246   esac
7247 fi
7248
7249 file_magic_cmd=$lt_cv_file_magic_cmd
7250 deplibs_check_method=$lt_cv_deplibs_check_method
7251 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 if test -n "$ac_tool_prefix"; then
7275   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7276 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_DLLTOOL+:} false; then :
7280   $as_echo_n "(cached) " >&6
7281 else
7282   if test -n "$DLLTOOL"; then
7283   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288   IFS=$as_save_IFS
7289   test -z "$as_dir" && as_dir=.
7290     for ac_exec_ext in '' $ac_executable_extensions; do
7291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295   fi
7296 done
7297   done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 DLLTOOL=$ac_cv_prog_DLLTOOL
7303 if test -n "$DLLTOOL"; then
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7305 $as_echo "$DLLTOOL" >&6; }
7306 else
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7309 fi
7310
7311
7312 fi
7313 if test -z "$ac_cv_prog_DLLTOOL"; then
7314   ac_ct_DLLTOOL=$DLLTOOL
7315   # Extract the first word of "dlltool", so it can be a program name with args.
7316 set dummy dlltool; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7320   $as_echo_n "(cached) " >&6
7321 else
7322   if test -n "$ac_ct_DLLTOOL"; then
7323   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330     for ac_exec_ext in '' $ac_executable_extensions; do
7331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337   done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7343 if test -n "$ac_ct_DLLTOOL"; then
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7345 $as_echo "$ac_ct_DLLTOOL" >&6; }
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351   if test "x$ac_ct_DLLTOOL" = x; then
7352     DLLTOOL="false"
7353   else
7354     case $cross_compiling:$ac_tool_warned in
7355 yes:)
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358 ac_tool_warned=yes ;;
7359 esac
7360     DLLTOOL=$ac_ct_DLLTOOL
7361   fi
7362 else
7363   DLLTOOL="$ac_cv_prog_DLLTOOL"
7364 fi
7365
7366 test -z "$DLLTOOL" && DLLTOOL=dlltool
7367
7368
7369
7370
7371
7372
7373
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7375 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7376 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7377   $as_echo_n "(cached) " >&6
7378 else
7379   lt_cv_sharedlib_from_linklib_cmd='unknown'
7380
7381 case $host_os in
7382 cygwin* | mingw* | pw32* | cegcc*)
7383   # two different shell functions defined in ltmain.sh
7384   # decide which to use based on capabilities of $DLLTOOL
7385   case `$DLLTOOL --help 2>&1` in
7386   *--identify-strict*)
7387     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7388     ;;
7389   *)
7390     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7391     ;;
7392   esac
7393   ;;
7394 *)
7395   # fallback: assume linklib IS sharedlib
7396   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7397   ;;
7398 esac
7399
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7402 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7403 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7404 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7405
7406
7407
7408
7409
7410
7411
7412 if test -n "$ac_tool_prefix"; then
7413   for ac_prog in ar
7414   do
7415     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_prog_AR+:} false; then :
7420   $as_echo_n "(cached) " >&6
7421 else
7422   if test -n "$AR"; then
7423   ac_cv_prog_AR="$AR" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428   IFS=$as_save_IFS
7429   test -z "$as_dir" && as_dir=.
7430     for ac_exec_ext in '' $ac_executable_extensions; do
7431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434     break 2
7435   fi
7436 done
7437   done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 AR=$ac_cv_prog_AR
7443 if test -n "$AR"; then
7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7445 $as_echo "$AR" >&6; }
7446 else
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7449 fi
7450
7451
7452     test -n "$AR" && break
7453   done
7454 fi
7455 if test -z "$AR"; then
7456   ac_ct_AR=$AR
7457   for ac_prog in ar
7458 do
7459   # Extract the first word of "$ac_prog", so it can be a program name with args.
7460 set dummy $ac_prog; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466   if test -n "$ac_ct_AR"; then
7467   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474     for ac_exec_ext in '' $ac_executable_extensions; do
7475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476     ac_cv_prog_ac_ct_AR="$ac_prog"
7477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481   done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7487 if test -n "$ac_ct_AR"; then
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7489 $as_echo "$ac_ct_AR" >&6; }
7490 else
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495
7496   test -n "$ac_ct_AR" && break
7497 done
7498
7499   if test "x$ac_ct_AR" = x; then
7500     AR="false"
7501   else
7502     case $cross_compiling:$ac_tool_warned in
7503 yes:)
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506 ac_tool_warned=yes ;;
7507 esac
7508     AR=$ac_ct_AR
7509   fi
7510 fi
7511
7512 : ${AR=ar}
7513 : ${AR_FLAGS=cru}
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7526 $as_echo_n "checking for archiver @FILE support... " >&6; }
7527 if ${lt_cv_ar_at_file+:} false; then :
7528   $as_echo_n "(cached) " >&6
7529 else
7530   lt_cv_ar_at_file=no
7531    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h.  */
7533
7534 int
7535 main ()
7536 {
7537
7538   ;
7539   return 0;
7540 }
7541 _ACEOF
7542 if ac_fn_c_try_compile "$LINENO"; then :
7543   echo conftest.$ac_objext > conftest.lst
7544       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7545       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7546   (eval $lt_ar_try) 2>&5
7547   ac_status=$?
7548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549   test $ac_status = 0; }
7550       if test "$ac_status" -eq 0; then
7551         # Ensure the archiver fails upon bogus file names.
7552         rm -f conftest.$ac_objext libconftest.a
7553         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7554   (eval $lt_ar_try) 2>&5
7555   ac_status=$?
7556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557   test $ac_status = 0; }
7558         if test "$ac_status" -ne 0; then
7559           lt_cv_ar_at_file=@
7560         fi
7561       fi
7562       rm -f conftest.* libconftest.a
7563
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7569 $as_echo "$lt_cv_ar_at_file" >&6; }
7570
7571 if test "x$lt_cv_ar_at_file" = xno; then
7572   archiver_list_spec=
7573 else
7574   archiver_list_spec=$lt_cv_ar_at_file
7575 fi
7576
7577
7578
7579
7580
7581
7582
7583 if test -n "$ac_tool_prefix"; then
7584   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7585 set dummy ${ac_tool_prefix}strip; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_STRIP+:} false; then :
7589   $as_echo_n "(cached) " >&6
7590 else
7591   if test -n "$STRIP"; then
7592   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599     for ac_exec_ext in '' $ac_executable_extensions; do
7600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606   done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 STRIP=$ac_cv_prog_STRIP
7612 if test -n "$STRIP"; then
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7614 $as_echo "$STRIP" >&6; }
7615 else
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7618 fi
7619
7620
7621 fi
7622 if test -z "$ac_cv_prog_STRIP"; then
7623   ac_ct_STRIP=$STRIP
7624   # Extract the first word of "strip", so it can be a program name with args.
7625 set dummy strip; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631   if test -n "$ac_ct_STRIP"; then
7632   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639     for ac_exec_ext in '' $ac_executable_extensions; do
7640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641     ac_cv_prog_ac_ct_STRIP="strip"
7642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646   done
7647 IFS=$as_save_IFS
7648
7649 fi
7650 fi
7651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7652 if test -n "$ac_ct_STRIP"; then
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7654 $as_echo "$ac_ct_STRIP" >&6; }
7655 else
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 fi
7659
7660   if test "x$ac_ct_STRIP" = x; then
7661     STRIP=":"
7662   else
7663     case $cross_compiling:$ac_tool_warned in
7664 yes:)
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7668 esac
7669     STRIP=$ac_ct_STRIP
7670   fi
7671 else
7672   STRIP="$ac_cv_prog_STRIP"
7673 fi
7674
7675 test -z "$STRIP" && STRIP=:
7676
7677
7678
7679
7680
7681
7682 if test -n "$ac_tool_prefix"; then
7683   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_RANLIB+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   if test -n "$RANLIB"; then
7691   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696   IFS=$as_save_IFS
7697   test -z "$as_dir" && as_dir=.
7698     for ac_exec_ext in '' $ac_executable_extensions; do
7699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702     break 2
7703   fi
7704 done
7705   done
7706 IFS=$as_save_IFS
7707
7708 fi
7709 fi
7710 RANLIB=$ac_cv_prog_RANLIB
7711 if test -n "$RANLIB"; then
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7713 $as_echo "$RANLIB" >&6; }
7714 else
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719
7720 fi
7721 if test -z "$ac_cv_prog_RANLIB"; then
7722   ac_ct_RANLIB=$RANLIB
7723   # Extract the first word of "ranlib", so it can be a program name with args.
7724 set dummy ranlib; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7728   $as_echo_n "(cached) " >&6
7729 else
7730   if test -n "$ac_ct_RANLIB"; then
7731   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736   IFS=$as_save_IFS
7737   test -z "$as_dir" && as_dir=.
7738     for ac_exec_ext in '' $ac_executable_extensions; do
7739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740     ac_cv_prog_ac_ct_RANLIB="ranlib"
7741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742     break 2
7743   fi
7744 done
7745   done
7746 IFS=$as_save_IFS
7747
7748 fi
7749 fi
7750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7751 if test -n "$ac_ct_RANLIB"; then
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7753 $as_echo "$ac_ct_RANLIB" >&6; }
7754 else
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758
7759   if test "x$ac_ct_RANLIB" = x; then
7760     RANLIB=":"
7761   else
7762     case $cross_compiling:$ac_tool_warned in
7763 yes:)
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7766 ac_tool_warned=yes ;;
7767 esac
7768     RANLIB=$ac_ct_RANLIB
7769   fi
7770 else
7771   RANLIB="$ac_cv_prog_RANLIB"
7772 fi
7773
7774 test -z "$RANLIB" && RANLIB=:
7775
7776
7777
7778
7779
7780
7781 # Determine commands to create old-style static archives.
7782 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7783 old_postinstall_cmds='chmod 644 $oldlib'
7784 old_postuninstall_cmds=
7785
7786 if test -n "$RANLIB"; then
7787   case $host_os in
7788   openbsd*)
7789     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7790     ;;
7791   *)
7792     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7793     ;;
7794   esac
7795   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7796 fi
7797
7798 case $host_os in
7799   darwin*)
7800     lock_old_archive_extraction=yes ;;
7801   *)
7802     lock_old_archive_extraction=no ;;
7803 esac
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843 # If no C compiler was specified, use CC.
7844 LTCC=${LTCC-"$CC"}
7845
7846 # If no C compiler flags were specified, use CFLAGS.
7847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7848
7849 # Allow CC to be a program name with arguments.
7850 compiler=$CC
7851
7852
7853 # Check for command to grab the raw symbol name followed by C symbol from nm.
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7855 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7856 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859
7860 # These are sane defaults that work on at least a few old systems.
7861 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7862
7863 # Character class describing NM global symbol codes.
7864 symcode='[BCDEGRST]'
7865
7866 # Regexp to match symbols that can be accessed directly from C.
7867 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7868
7869 # Define system-specific variables.
7870 case $host_os in
7871 aix*)
7872   symcode='[BCDT]'
7873   ;;
7874 cygwin* | mingw* | pw32* | cegcc*)
7875   symcode='[ABCDGISTW]'
7876   ;;
7877 hpux*)
7878   if test "$host_cpu" = ia64; then
7879     symcode='[ABCDEGRST]'
7880   fi
7881   ;;
7882 irix* | nonstopux*)
7883   symcode='[BCDEGRST]'
7884   ;;
7885 osf*)
7886   symcode='[BCDEGQRST]'
7887   ;;
7888 solaris*)
7889   symcode='[BDRT]'
7890   ;;
7891 sco3.2v5*)
7892   symcode='[DT]'
7893   ;;
7894 sysv4.2uw2*)
7895   symcode='[DT]'
7896   ;;
7897 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7898   symcode='[ABDT]'
7899   ;;
7900 sysv4)
7901   symcode='[DFNSTU]'
7902   ;;
7903 esac
7904
7905 # If we're using GNU nm, then use its standard symbol codes.
7906 case `$NM -V 2>&1` in
7907 *GNU* | *'with BFD'*)
7908   symcode='[ABCDGIRSTW]' ;;
7909 esac
7910
7911 # Transform an extracted symbol line into a proper C declaration.
7912 # Some systems (esp. on ia64) link data and code symbols differently,
7913 # so use this general approach.
7914 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7915
7916 # Transform an extracted symbol line into symbol name and symbol address
7917 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7918 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'"
7919
7920 # Handle CRLF in mingw tool chain
7921 opt_cr=
7922 case $build_os in
7923 mingw*)
7924   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7925   ;;
7926 esac
7927
7928 # Try without a prefix underscore, then with it.
7929 for ac_symprfx in "" "_"; do
7930
7931   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7932   symxfrm="\\1 $ac_symprfx\\2 \\2"
7933
7934   # Write the raw and C identifiers.
7935   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7936     # Fake it for dumpbin and say T for any non-static function
7937     # and D for any global variable.
7938     # Also find C++ and __fastcall symbols from MSVC++,
7939     # which start with @ or ?.
7940     lt_cv_sys_global_symbol_pipe="$AWK '"\
7941 "     {last_section=section; section=\$ 3};"\
7942 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7943 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7944 "     \$ 0!~/External *\|/{next};"\
7945 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7946 "     {if(hide[section]) next};"\
7947 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7948 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7949 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7950 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7951 "     ' prfx=^$ac_symprfx"
7952   else
7953     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7954   fi
7955   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7956
7957   # Check to see that the pipe works correctly.
7958   pipe_works=no
7959
7960   rm -f conftest*
7961   cat > conftest.$ac_ext <<_LT_EOF
7962 #ifdef __cplusplus
7963 extern "C" {
7964 #endif
7965 char nm_test_var;
7966 void nm_test_func(void);
7967 void nm_test_func(void){}
7968 #ifdef __cplusplus
7969 }
7970 #endif
7971 int main(){nm_test_var='a';nm_test_func();return(0);}
7972 _LT_EOF
7973
7974   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7975   (eval $ac_compile) 2>&5
7976   ac_status=$?
7977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978   test $ac_status = 0; }; then
7979     # Now try to grab the symbols.
7980     nlist=conftest.nm
7981     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7982   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7983   ac_status=$?
7984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985   test $ac_status = 0; } && test -s "$nlist"; then
7986       # Try sorting and uniquifying the output.
7987       if sort "$nlist" | uniq > "$nlist"T; then
7988         mv -f "$nlist"T "$nlist"
7989       else
7990         rm -f "$nlist"T
7991       fi
7992
7993       # Make sure that we snagged all the symbols we need.
7994       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7995         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7996           cat <<_LT_EOF > conftest.$ac_ext
7997 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7998 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7999 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8000    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8001 # define LT_DLSYM_CONST
8002 #elif defined(__osf__)
8003 /* This system does not cope well with relocations in const data.  */
8004 # define LT_DLSYM_CONST
8005 #else
8006 # define LT_DLSYM_CONST const
8007 #endif
8008
8009 #ifdef __cplusplus
8010 extern "C" {
8011 #endif
8012
8013 _LT_EOF
8014           # Now generate the symbol file.
8015           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8016
8017           cat <<_LT_EOF >> conftest.$ac_ext
8018
8019 /* The mapping between symbol names and symbols.  */
8020 LT_DLSYM_CONST struct {
8021   const char *name;
8022   void       *address;
8023 }
8024 lt__PROGRAM__LTX_preloaded_symbols[] =
8025 {
8026   { "@PROGRAM@", (void *) 0 },
8027 _LT_EOF
8028           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8029           cat <<\_LT_EOF >> conftest.$ac_ext
8030   {0, (void *) 0}
8031 };
8032
8033 /* This works around a problem in FreeBSD linker */
8034 #ifdef FREEBSD_WORKAROUND
8035 static const void *lt_preloaded_setup() {
8036   return lt__PROGRAM__LTX_preloaded_symbols;
8037 }
8038 #endif
8039
8040 #ifdef __cplusplus
8041 }
8042 #endif
8043 _LT_EOF
8044           # Now try linking the two files.
8045           mv conftest.$ac_objext conftstm.$ac_objext
8046           lt_globsym_save_LIBS=$LIBS
8047           lt_globsym_save_CFLAGS=$CFLAGS
8048           LIBS="conftstm.$ac_objext"
8049           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8050           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8051   (eval $ac_link) 2>&5
8052   ac_status=$?
8053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8054   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8055             pipe_works=yes
8056           fi
8057           LIBS=$lt_globsym_save_LIBS
8058           CFLAGS=$lt_globsym_save_CFLAGS
8059         else
8060           echo "cannot find nm_test_func in $nlist" >&5
8061         fi
8062       else
8063         echo "cannot find nm_test_var in $nlist" >&5
8064       fi
8065     else
8066       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8067     fi
8068   else
8069     echo "$progname: failed program was:" >&5
8070     cat conftest.$ac_ext >&5
8071   fi
8072   rm -rf conftest* conftst*
8073
8074   # Do not use the global_symbol_pipe unless it works.
8075   if test "$pipe_works" = yes; then
8076     break
8077   else
8078     lt_cv_sys_global_symbol_pipe=
8079   fi
8080 done
8081
8082 fi
8083
8084 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8085   lt_cv_sys_global_symbol_to_cdecl=
8086 fi
8087 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8089 $as_echo "failed" >&6; }
8090 else
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8092 $as_echo "ok" >&6; }
8093 fi
8094
8095 # Response file support.
8096 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8097   nm_file_list_spec='@'
8098 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8099   nm_file_list_spec='@'
8100 fi
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8129 $as_echo_n "checking for sysroot... " >&6; }
8130
8131 # Check whether --with-sysroot was given.
8132 if test "${with_sysroot+set}" = set; then :
8133   withval=$with_sysroot;
8134 else
8135   with_sysroot=no
8136 fi
8137
8138
8139 lt_sysroot=
8140 case ${with_sysroot} in #(
8141  yes)
8142    if test "$GCC" = yes; then
8143      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8144    fi
8145    ;; #(
8146  /*)
8147    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8148    ;; #(
8149  no|'')
8150    ;; #(
8151  *)
8152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8153 $as_echo "${with_sysroot}" >&6; }
8154    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8155    ;;
8156 esac
8157
8158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8159 $as_echo "${lt_sysroot:-no}" >&6; }
8160
8161
8162
8163
8164
8165 # Check whether --enable-libtool-lock was given.
8166 if test "${enable_libtool_lock+set}" = set; then :
8167   enableval=$enable_libtool_lock;
8168 fi
8169
8170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8171
8172 # Some flags need to be propagated to the compiler or linker for good
8173 # libtool support.
8174 case $host in
8175 ia64-*-hpux*)
8176   # Find out which ABI we are using.
8177   echo 'int i;' > conftest.$ac_ext
8178   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8179   (eval $ac_compile) 2>&5
8180   ac_status=$?
8181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8182   test $ac_status = 0; }; then
8183     case `/usr/bin/file conftest.$ac_objext` in
8184       *ELF-32*)
8185         HPUX_IA64_MODE="32"
8186         ;;
8187       *ELF-64*)
8188         HPUX_IA64_MODE="64"
8189         ;;
8190     esac
8191   fi
8192   rm -rf conftest*
8193   ;;
8194 *-*-irix6*)
8195   # Find out which ABI we are using.
8196   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8197   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8198   (eval $ac_compile) 2>&5
8199   ac_status=$?
8200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8201   test $ac_status = 0; }; then
8202     if test "$lt_cv_prog_gnu_ld" = yes; then
8203       case `/usr/bin/file conftest.$ac_objext` in
8204         *32-bit*)
8205           LD="${LD-ld} -melf32bsmip"
8206           ;;
8207         *N32*)
8208           LD="${LD-ld} -melf32bmipn32"
8209           ;;
8210         *64-bit*)
8211           LD="${LD-ld} -melf64bmip"
8212         ;;
8213       esac
8214     else
8215       case `/usr/bin/file conftest.$ac_objext` in
8216         *32-bit*)
8217           LD="${LD-ld} -32"
8218           ;;
8219         *N32*)
8220           LD="${LD-ld} -n32"
8221           ;;
8222         *64-bit*)
8223           LD="${LD-ld} -64"
8224           ;;
8225       esac
8226     fi
8227   fi
8228   rm -rf conftest*
8229   ;;
8230
8231 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8232 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8233   # Find out which ABI we are using.
8234   echo 'int i;' > conftest.$ac_ext
8235   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8236   (eval $ac_compile) 2>&5
8237   ac_status=$?
8238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8239   test $ac_status = 0; }; then
8240     case `/usr/bin/file conftest.o` in
8241       *32-bit*)
8242         case $host in
8243           x86_64-*kfreebsd*-gnu)
8244             LD="${LD-ld} -m elf_i386_fbsd"
8245             ;;
8246           x86_64-*linux*)
8247             LD="${LD-ld} -m elf_i386"
8248             ;;
8249           ppc64-*linux*|powerpc64-*linux*)
8250             LD="${LD-ld} -m elf32ppclinux"
8251             ;;
8252           s390x-*linux*)
8253             LD="${LD-ld} -m elf_s390"
8254             ;;
8255           sparc64-*linux*)
8256             LD="${LD-ld} -m elf32_sparc"
8257             ;;
8258         esac
8259         ;;
8260       *64-bit*)
8261         case $host in
8262           x86_64-*kfreebsd*-gnu)
8263             LD="${LD-ld} -m elf_x86_64_fbsd"
8264             ;;
8265           x86_64-*linux*)
8266             LD="${LD-ld} -m elf_x86_64"
8267             ;;
8268           ppc*-*linux*|powerpc*-*linux*)
8269             LD="${LD-ld} -m elf64ppc"
8270             ;;
8271           s390*-*linux*|s390*-*tpf*)
8272             LD="${LD-ld} -m elf64_s390"
8273             ;;
8274           sparc*-*linux*)
8275             LD="${LD-ld} -m elf64_sparc"
8276             ;;
8277         esac
8278         ;;
8279     esac
8280   fi
8281   rm -rf conftest*
8282   ;;
8283
8284 *-*-sco3.2v5*)
8285   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8286   SAVE_CFLAGS="$CFLAGS"
8287   CFLAGS="$CFLAGS -belf"
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8290 if ${lt_cv_cc_needs_belf+:} false; then :
8291   $as_echo_n "(cached) " >&6
8292 else
8293   ac_ext=c
8294 ac_cpp='$CPP $CPPFLAGS'
8295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8298
8299      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h.  */
8301
8302 int
8303 main ()
8304 {
8305
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 if ac_fn_c_try_link "$LINENO"; then :
8311   lt_cv_cc_needs_belf=yes
8312 else
8313   lt_cv_cc_needs_belf=no
8314 fi
8315 rm -f core conftest.err conftest.$ac_objext \
8316     conftest$ac_exeext conftest.$ac_ext
8317      ac_ext=c
8318 ac_cpp='$CPP $CPPFLAGS'
8319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8322
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8326   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8327     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8328     CFLAGS="$SAVE_CFLAGS"
8329   fi
8330   ;;
8331 *-*solaris*)
8332   # Find out which ABI we are using.
8333   echo 'int i;' > conftest.$ac_ext
8334   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8335   (eval $ac_compile) 2>&5
8336   ac_status=$?
8337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8338   test $ac_status = 0; }; then
8339     case `/usr/bin/file conftest.o` in
8340     *64-bit*)
8341       case $lt_cv_prog_gnu_ld in
8342       yes*)
8343         case $host in
8344         i?86-*-solaris*)
8345           LD="${LD-ld} -m elf_x86_64"
8346           ;;
8347         sparc*-*-solaris*)
8348           LD="${LD-ld} -m elf64_sparc"
8349           ;;
8350         esac
8351         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8352         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8353           LD="${LD-ld}_sol2"
8354         fi
8355         ;;
8356       *)
8357         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8358           LD="${LD-ld} -64"
8359         fi
8360         ;;
8361       esac
8362       ;;
8363     esac
8364   fi
8365   rm -rf conftest*
8366   ;;
8367 esac
8368
8369 need_locks="$enable_libtool_lock"
8370
8371 if test -n "$ac_tool_prefix"; then
8372   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8373 set dummy ${ac_tool_prefix}mt; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8377   $as_echo_n "(cached) " >&6
8378 else
8379   if test -n "$MANIFEST_TOOL"; then
8380   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385   IFS=$as_save_IFS
8386   test -z "$as_dir" && as_dir=.
8387     for ac_exec_ext in '' $ac_executable_extensions; do
8388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391     break 2
8392   fi
8393 done
8394   done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8400 if test -n "$MANIFEST_TOOL"; then
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8402 $as_echo "$MANIFEST_TOOL" >&6; }
8403 else
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408
8409 fi
8410 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8411   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8412   # Extract the first word of "mt", so it can be a program name with args.
8413 set dummy mt; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8417   $as_echo_n "(cached) " >&6
8418 else
8419   if test -n "$ac_ct_MANIFEST_TOOL"; then
8420   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8424 do
8425   IFS=$as_save_IFS
8426   test -z "$as_dir" && as_dir=.
8427     for ac_exec_ext in '' $ac_executable_extensions; do
8428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431     break 2
8432   fi
8433 done
8434   done
8435 IFS=$as_save_IFS
8436
8437 fi
8438 fi
8439 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8440 if test -n "$ac_ct_MANIFEST_TOOL"; then
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8442 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8443 else
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
8447
8448   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8449     MANIFEST_TOOL=":"
8450   else
8451     case $cross_compiling:$ac_tool_warned in
8452 yes:)
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8455 ac_tool_warned=yes ;;
8456 esac
8457     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8458   fi
8459 else
8460   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8461 fi
8462
8463 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8465 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8466 if ${lt_cv_path_mainfest_tool+:} false; then :
8467   $as_echo_n "(cached) " >&6
8468 else
8469   lt_cv_path_mainfest_tool=no
8470   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8471   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8472   cat conftest.err >&5
8473   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8474     lt_cv_path_mainfest_tool=yes
8475   fi
8476   rm -f conftest*
8477 fi
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8479 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8480 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8481   MANIFEST_TOOL=:
8482 fi
8483
8484
8485
8486
8487
8488
8489   case $host_os in
8490     rhapsody* | darwin*)
8491     if test -n "$ac_tool_prefix"; then
8492   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8493 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   if test -n "$DSYMUTIL"; then
8500   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505   IFS=$as_save_IFS
8506   test -z "$as_dir" && as_dir=.
8507     for ac_exec_ext in '' $ac_executable_extensions; do
8508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511     break 2
8512   fi
8513 done
8514   done
8515 IFS=$as_save_IFS
8516
8517 fi
8518 fi
8519 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8520 if test -n "$DSYMUTIL"; then
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8522 $as_echo "$DSYMUTIL" >&6; }
8523 else
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8526 fi
8527
8528
8529 fi
8530 if test -z "$ac_cv_prog_DSYMUTIL"; then
8531   ac_ct_DSYMUTIL=$DSYMUTIL
8532   # Extract the first word of "dsymutil", so it can be a program name with args.
8533 set dummy dsymutil; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8537   $as_echo_n "(cached) " >&6
8538 else
8539   if test -n "$ac_ct_DSYMUTIL"; then
8540   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545   IFS=$as_save_IFS
8546   test -z "$as_dir" && as_dir=.
8547     for ac_exec_ext in '' $ac_executable_extensions; do
8548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551     break 2
8552   fi
8553 done
8554   done
8555 IFS=$as_save_IFS
8556
8557 fi
8558 fi
8559 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8560 if test -n "$ac_ct_DSYMUTIL"; then
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8562 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8563 else
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8566 fi
8567
8568   if test "x$ac_ct_DSYMUTIL" = x; then
8569     DSYMUTIL=":"
8570   else
8571     case $cross_compiling:$ac_tool_warned in
8572 yes:)
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8575 ac_tool_warned=yes ;;
8576 esac
8577     DSYMUTIL=$ac_ct_DSYMUTIL
8578   fi
8579 else
8580   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8581 fi
8582
8583     if test -n "$ac_tool_prefix"; then
8584   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8585 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if ${ac_cv_prog_NMEDIT+:} false; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   if test -n "$NMEDIT"; then
8592   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8596 do
8597   IFS=$as_save_IFS
8598   test -z "$as_dir" && as_dir=.
8599     for ac_exec_ext in '' $ac_executable_extensions; do
8600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603     break 2
8604   fi
8605 done
8606   done
8607 IFS=$as_save_IFS
8608
8609 fi
8610 fi
8611 NMEDIT=$ac_cv_prog_NMEDIT
8612 if test -n "$NMEDIT"; then
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8614 $as_echo "$NMEDIT" >&6; }
8615 else
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 fi
8619
8620
8621 fi
8622 if test -z "$ac_cv_prog_NMEDIT"; then
8623   ac_ct_NMEDIT=$NMEDIT
8624   # Extract the first word of "nmedit", so it can be a program name with args.
8625 set dummy nmedit; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   if test -n "$ac_ct_NMEDIT"; then
8632   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8633 else
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in $PATH
8636 do
8637   IFS=$as_save_IFS
8638   test -z "$as_dir" && as_dir=.
8639     for ac_exec_ext in '' $ac_executable_extensions; do
8640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8641     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643     break 2
8644   fi
8645 done
8646   done
8647 IFS=$as_save_IFS
8648
8649 fi
8650 fi
8651 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8652 if test -n "$ac_ct_NMEDIT"; then
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8654 $as_echo "$ac_ct_NMEDIT" >&6; }
8655 else
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8658 fi
8659
8660   if test "x$ac_ct_NMEDIT" = x; then
8661     NMEDIT=":"
8662   else
8663     case $cross_compiling:$ac_tool_warned in
8664 yes:)
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8667 ac_tool_warned=yes ;;
8668 esac
8669     NMEDIT=$ac_ct_NMEDIT
8670   fi
8671 else
8672   NMEDIT="$ac_cv_prog_NMEDIT"
8673 fi
8674
8675     if test -n "$ac_tool_prefix"; then
8676   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8677 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_prog_LIPO+:} false; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   if test -n "$LIPO"; then
8684   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689   IFS=$as_save_IFS
8690   test -z "$as_dir" && as_dir=.
8691     for ac_exec_ext in '' $ac_executable_extensions; do
8692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695     break 2
8696   fi
8697 done
8698   done
8699 IFS=$as_save_IFS
8700
8701 fi
8702 fi
8703 LIPO=$ac_cv_prog_LIPO
8704 if test -n "$LIPO"; then
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8706 $as_echo "$LIPO" >&6; }
8707 else
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713 fi
8714 if test -z "$ac_cv_prog_LIPO"; then
8715   ac_ct_LIPO=$LIPO
8716   # Extract the first word of "lipo", so it can be a program name with args.
8717 set dummy lipo; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   if test -n "$ac_ct_LIPO"; then
8724   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729   IFS=$as_save_IFS
8730   test -z "$as_dir" && as_dir=.
8731     for ac_exec_ext in '' $ac_executable_extensions; do
8732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733     ac_cv_prog_ac_ct_LIPO="lipo"
8734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735     break 2
8736   fi
8737 done
8738   done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8744 if test -n "$ac_ct_LIPO"; then
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8746 $as_echo "$ac_ct_LIPO" >&6; }
8747 else
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752   if test "x$ac_ct_LIPO" = x; then
8753     LIPO=":"
8754   else
8755     case $cross_compiling:$ac_tool_warned in
8756 yes:)
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8759 ac_tool_warned=yes ;;
8760 esac
8761     LIPO=$ac_ct_LIPO
8762   fi
8763 else
8764   LIPO="$ac_cv_prog_LIPO"
8765 fi
8766
8767     if test -n "$ac_tool_prefix"; then
8768   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8769 set dummy ${ac_tool_prefix}otool; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if ${ac_cv_prog_OTOOL+:} false; then :
8773   $as_echo_n "(cached) " >&6
8774 else
8775   if test -n "$OTOOL"; then
8776   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8777 else
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8780 do
8781   IFS=$as_save_IFS
8782   test -z "$as_dir" && as_dir=.
8783     for ac_exec_ext in '' $ac_executable_extensions; do
8784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787     break 2
8788   fi
8789 done
8790   done
8791 IFS=$as_save_IFS
8792
8793 fi
8794 fi
8795 OTOOL=$ac_cv_prog_OTOOL
8796 if test -n "$OTOOL"; then
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8798 $as_echo "$OTOOL" >&6; }
8799 else
8800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8802 fi
8803
8804
8805 fi
8806 if test -z "$ac_cv_prog_OTOOL"; then
8807   ac_ct_OTOOL=$OTOOL
8808   # Extract the first word of "otool", so it can be a program name with args.
8809 set dummy otool; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8813   $as_echo_n "(cached) " >&6
8814 else
8815   if test -n "$ac_ct_OTOOL"; then
8816   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8820 do
8821   IFS=$as_save_IFS
8822   test -z "$as_dir" && as_dir=.
8823     for ac_exec_ext in '' $ac_executable_extensions; do
8824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825     ac_cv_prog_ac_ct_OTOOL="otool"
8826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827     break 2
8828   fi
8829 done
8830   done
8831 IFS=$as_save_IFS
8832
8833 fi
8834 fi
8835 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8836 if test -n "$ac_ct_OTOOL"; then
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8838 $as_echo "$ac_ct_OTOOL" >&6; }
8839 else
8840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8842 fi
8843
8844   if test "x$ac_ct_OTOOL" = x; then
8845     OTOOL=":"
8846   else
8847     case $cross_compiling:$ac_tool_warned in
8848 yes:)
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851 ac_tool_warned=yes ;;
8852 esac
8853     OTOOL=$ac_ct_OTOOL
8854   fi
8855 else
8856   OTOOL="$ac_cv_prog_OTOOL"
8857 fi
8858
8859     if test -n "$ac_tool_prefix"; then
8860   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8861 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if ${ac_cv_prog_OTOOL64+:} false; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   if test -n "$OTOOL64"; then
8868   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8869 else
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8872 do
8873   IFS=$as_save_IFS
8874   test -z "$as_dir" && as_dir=.
8875     for ac_exec_ext in '' $ac_executable_extensions; do
8876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8877     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879     break 2
8880   fi
8881 done
8882   done
8883 IFS=$as_save_IFS
8884
8885 fi
8886 fi
8887 OTOOL64=$ac_cv_prog_OTOOL64
8888 if test -n "$OTOOL64"; then
8889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8890 $as_echo "$OTOOL64" >&6; }
8891 else
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8894 fi
8895
8896
8897 fi
8898 if test -z "$ac_cv_prog_OTOOL64"; then
8899   ac_ct_OTOOL64=$OTOOL64
8900   # Extract the first word of "otool64", so it can be a program name with args.
8901 set dummy otool64; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8905   $as_echo_n "(cached) " >&6
8906 else
8907   if test -n "$ac_ct_OTOOL64"; then
8908   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8909 else
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8912 do
8913   IFS=$as_save_IFS
8914   test -z "$as_dir" && as_dir=.
8915     for ac_exec_ext in '' $ac_executable_extensions; do
8916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917     ac_cv_prog_ac_ct_OTOOL64="otool64"
8918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919     break 2
8920   fi
8921 done
8922   done
8923 IFS=$as_save_IFS
8924
8925 fi
8926 fi
8927 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8928 if test -n "$ac_ct_OTOOL64"; then
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8930 $as_echo "$ac_ct_OTOOL64" >&6; }
8931 else
8932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 fi
8935
8936   if test "x$ac_ct_OTOOL64" = x; then
8937     OTOOL64=":"
8938   else
8939     case $cross_compiling:$ac_tool_warned in
8940 yes:)
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8943 ac_tool_warned=yes ;;
8944 esac
8945     OTOOL64=$ac_ct_OTOOL64
8946   fi
8947 else
8948   OTOOL64="$ac_cv_prog_OTOOL64"
8949 fi
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8978 $as_echo_n "checking for -single_module linker flag... " >&6; }
8979 if ${lt_cv_apple_cc_single_mod+:} false; then :
8980   $as_echo_n "(cached) " >&6
8981 else
8982   lt_cv_apple_cc_single_mod=no
8983       if test -z "${LT_MULTI_MODULE}"; then
8984         # By default we will add the -single_module flag. You can override
8985         # by either setting the environment variable LT_MULTI_MODULE
8986         # non-empty at configure time, or by adding -multi_module to the
8987         # link flags.
8988         rm -rf libconftest.dylib*
8989         echo "int foo(void){return 1;}" > conftest.c
8990         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8991 -dynamiclib -Wl,-single_module conftest.c" >&5
8992         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8993           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8994         _lt_result=$?
8995         # If there is a non-empty error log, and "single_module"
8996         # appears in it, assume the flag caused a linker warning
8997         if test -s conftest.err && $GREP single_module conftest.err; then
8998           cat conftest.err >&5
8999         # Otherwise, if the output was created with a 0 exit code from
9000         # the compiler, it worked.
9001         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9002           lt_cv_apple_cc_single_mod=yes
9003         else
9004           cat conftest.err >&5
9005         fi
9006         rm -rf libconftest.dylib*
9007         rm -f conftest.*
9008       fi
9009 fi
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9011 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9012
9013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9014 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9015 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9016   $as_echo_n "(cached) " >&6
9017 else
9018   lt_cv_ld_exported_symbols_list=no
9019       save_LDFLAGS=$LDFLAGS
9020       echo "_main" > conftest.sym
9021       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9022       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h.  */
9024
9025 int
9026 main ()
9027 {
9028
9029   ;
9030   return 0;
9031 }
9032 _ACEOF
9033 if ac_fn_c_try_link "$LINENO"; then :
9034   lt_cv_ld_exported_symbols_list=yes
9035 else
9036   lt_cv_ld_exported_symbols_list=no
9037 fi
9038 rm -f core conftest.err conftest.$ac_objext \
9039     conftest$ac_exeext conftest.$ac_ext
9040         LDFLAGS="$save_LDFLAGS"
9041
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9044 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9045
9046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9047 $as_echo_n "checking for -force_load linker flag... " >&6; }
9048 if ${lt_cv_ld_force_load+:} false; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051   lt_cv_ld_force_load=no
9052       cat > conftest.c << _LT_EOF
9053 int forced_loaded() { return 2;}
9054 _LT_EOF
9055       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9056       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9057       echo "$AR cru libconftest.a conftest.o" >&5
9058       $AR cru libconftest.a conftest.o 2>&5
9059       echo "$RANLIB libconftest.a" >&5
9060       $RANLIB libconftest.a 2>&5
9061       cat > conftest.c << _LT_EOF
9062 int main() { return 0;}
9063 _LT_EOF
9064       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9065       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9066       _lt_result=$?
9067       if test -s conftest.err && $GREP force_load conftest.err; then
9068         cat conftest.err >&5
9069       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9070         lt_cv_ld_force_load=yes
9071       else
9072         cat conftest.err >&5
9073       fi
9074         rm -f conftest.err libconftest.a conftest conftest.c
9075         rm -rf conftest.dSYM
9076
9077 fi
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9079 $as_echo "$lt_cv_ld_force_load" >&6; }
9080     case $host_os in
9081     rhapsody* | darwin1.[012])
9082       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9083     darwin1.*)
9084       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9085     darwin*) # darwin 5.x on
9086       # if running on 10.5 or later, the deployment target defaults
9087       # to the OS version, if on x86, and 10.4, the deployment
9088       # target defaults to 10.4. Don't you love it?
9089       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9090         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9091           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9092         10.[012]*)
9093           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9094         10.*)
9095           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9096       esac
9097     ;;
9098   esac
9099     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9100       _lt_dar_single_mod='$single_module'
9101     fi
9102     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9103       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9104     else
9105       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9106     fi
9107     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9108       _lt_dsymutil='~$DSYMUTIL $lib || :'
9109     else
9110       _lt_dsymutil=
9111     fi
9112     ;;
9113   esac
9114
9115 for ac_header in dlfcn.h
9116 do :
9117   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9118 "
9119 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9120   cat >>confdefs.h <<_ACEOF
9121 #define HAVE_DLFCN_H 1
9122 _ACEOF
9123
9124 fi
9125
9126 done
9127
9128
9129
9130
9131 func_stripname_cnf ()
9132 {
9133   case ${2} in
9134   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9135   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9136   esac
9137 } # func_stripname_cnf
9138
9139
9140
9141
9142
9143 # Set options
9144 enable_win32_dll=yes
9145
9146 case $host in
9147 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9148   if test -n "$ac_tool_prefix"; then
9149   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9150 set dummy ${ac_tool_prefix}as; ac_word=$2
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 $as_echo_n "checking for $ac_word... " >&6; }
9153 if ${ac_cv_prog_AS+:} false; then :
9154   $as_echo_n "(cached) " >&6
9155 else
9156   if test -n "$AS"; then
9157   ac_cv_prog_AS="$AS" # Let the user override the test.
9158 else
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in $PATH
9161 do
9162   IFS=$as_save_IFS
9163   test -z "$as_dir" && as_dir=.
9164     for ac_exec_ext in '' $ac_executable_extensions; do
9165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9166     ac_cv_prog_AS="${ac_tool_prefix}as"
9167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9168     break 2
9169   fi
9170 done
9171   done
9172 IFS=$as_save_IFS
9173
9174 fi
9175 fi
9176 AS=$ac_cv_prog_AS
9177 if test -n "$AS"; then
9178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9179 $as_echo "$AS" >&6; }
9180 else
9181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9183 fi
9184
9185
9186 fi
9187 if test -z "$ac_cv_prog_AS"; then
9188   ac_ct_AS=$AS
9189   # Extract the first word of "as", so it can be a program name with args.
9190 set dummy as; ac_word=$2
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192 $as_echo_n "checking for $ac_word... " >&6; }
9193 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9194   $as_echo_n "(cached) " >&6
9195 else
9196   if test -n "$ac_ct_AS"; then
9197   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9198 else
9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 for as_dir in $PATH
9201 do
9202   IFS=$as_save_IFS
9203   test -z "$as_dir" && as_dir=.
9204     for ac_exec_ext in '' $ac_executable_extensions; do
9205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206     ac_cv_prog_ac_ct_AS="as"
9207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9208     break 2
9209   fi
9210 done
9211   done
9212 IFS=$as_save_IFS
9213
9214 fi
9215 fi
9216 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9217 if test -n "$ac_ct_AS"; then
9218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9219 $as_echo "$ac_ct_AS" >&6; }
9220 else
9221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9223 fi
9224
9225   if test "x$ac_ct_AS" = x; then
9226     AS="false"
9227   else
9228     case $cross_compiling:$ac_tool_warned in
9229 yes:)
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9232 ac_tool_warned=yes ;;
9233 esac
9234     AS=$ac_ct_AS
9235   fi
9236 else
9237   AS="$ac_cv_prog_AS"
9238 fi
9239
9240   if test -n "$ac_tool_prefix"; then
9241   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9242 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if ${ac_cv_prog_DLLTOOL+:} false; then :
9246   $as_echo_n "(cached) " >&6
9247 else
9248   if test -n "$DLLTOOL"; then
9249   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9250 else
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9253 do
9254   IFS=$as_save_IFS
9255   test -z "$as_dir" && as_dir=.
9256     for ac_exec_ext in '' $ac_executable_extensions; do
9257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9260     break 2
9261   fi
9262 done
9263   done
9264 IFS=$as_save_IFS
9265
9266 fi
9267 fi
9268 DLLTOOL=$ac_cv_prog_DLLTOOL
9269 if test -n "$DLLTOOL"; then
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9271 $as_echo "$DLLTOOL" >&6; }
9272 else
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9275 fi
9276
9277
9278 fi
9279 if test -z "$ac_cv_prog_DLLTOOL"; then
9280   ac_ct_DLLTOOL=$DLLTOOL
9281   # Extract the first word of "dlltool", so it can be a program name with args.
9282 set dummy dlltool; ac_word=$2
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284 $as_echo_n "checking for $ac_word... " >&6; }
9285 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9286   $as_echo_n "(cached) " >&6
9287 else
9288   if test -n "$ac_ct_DLLTOOL"; then
9289   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9290 else
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294   IFS=$as_save_IFS
9295   test -z "$as_dir" && as_dir=.
9296     for ac_exec_ext in '' $ac_executable_extensions; do
9297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300     break 2
9301   fi
9302 done
9303   done
9304 IFS=$as_save_IFS
9305
9306 fi
9307 fi
9308 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9309 if test -n "$ac_ct_DLLTOOL"; then
9310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9311 $as_echo "$ac_ct_DLLTOOL" >&6; }
9312 else
9313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314 $as_echo "no" >&6; }
9315 fi
9316
9317   if test "x$ac_ct_DLLTOOL" = x; then
9318     DLLTOOL="false"
9319   else
9320     case $cross_compiling:$ac_tool_warned in
9321 yes:)
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9324 ac_tool_warned=yes ;;
9325 esac
9326     DLLTOOL=$ac_ct_DLLTOOL
9327   fi
9328 else
9329   DLLTOOL="$ac_cv_prog_DLLTOOL"
9330 fi
9331
9332   if test -n "$ac_tool_prefix"; then
9333   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9334 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if ${ac_cv_prog_OBJDUMP+:} false; then :
9338   $as_echo_n "(cached) " >&6
9339 else
9340   if test -n "$OBJDUMP"; then
9341   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9342 else
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9345 do
9346   IFS=$as_save_IFS
9347   test -z "$as_dir" && as_dir=.
9348     for ac_exec_ext in '' $ac_executable_extensions; do
9349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352     break 2
9353   fi
9354 done
9355   done
9356 IFS=$as_save_IFS
9357
9358 fi
9359 fi
9360 OBJDUMP=$ac_cv_prog_OBJDUMP
9361 if test -n "$OBJDUMP"; then
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9363 $as_echo "$OBJDUMP" >&6; }
9364 else
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369
9370 fi
9371 if test -z "$ac_cv_prog_OBJDUMP"; then
9372   ac_ct_OBJDUMP=$OBJDUMP
9373   # Extract the first word of "objdump", so it can be a program name with args.
9374 set dummy objdump; ac_word=$2
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376 $as_echo_n "checking for $ac_word... " >&6; }
9377 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9378   $as_echo_n "(cached) " >&6
9379 else
9380   if test -n "$ac_ct_OBJDUMP"; then
9381   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9382 else
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 for as_dir in $PATH
9385 do
9386   IFS=$as_save_IFS
9387   test -z "$as_dir" && as_dir=.
9388     for ac_exec_ext in '' $ac_executable_extensions; do
9389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9390     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9392     break 2
9393   fi
9394 done
9395   done
9396 IFS=$as_save_IFS
9397
9398 fi
9399 fi
9400 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9401 if test -n "$ac_ct_OBJDUMP"; then
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9403 $as_echo "$ac_ct_OBJDUMP" >&6; }
9404 else
9405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9407 fi
9408
9409   if test "x$ac_ct_OBJDUMP" = x; then
9410     OBJDUMP="false"
9411   else
9412     case $cross_compiling:$ac_tool_warned in
9413 yes:)
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9416 ac_tool_warned=yes ;;
9417 esac
9418     OBJDUMP=$ac_ct_OBJDUMP
9419   fi
9420 else
9421   OBJDUMP="$ac_cv_prog_OBJDUMP"
9422 fi
9423
9424   ;;
9425 esac
9426
9427 test -z "$AS" && AS=as
9428
9429
9430
9431
9432
9433 test -z "$DLLTOOL" && DLLTOOL=dlltool
9434
9435
9436
9437
9438
9439 test -z "$OBJDUMP" && OBJDUMP=objdump
9440
9441
9442
9443
9444 # Check whether --enable-static was given.
9445 if test "${enable_static+set}" = set; then :
9446   enableval=$enable_static; p=${PACKAGE-default}
9447     case $enableval in
9448     yes) enable_static=yes ;;
9449     no) enable_static=no ;;
9450     *)
9451      enable_static=no
9452       # Look at the argument we got.  We use all the common list separators.
9453       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9454       for pkg in $enableval; do
9455         IFS="$lt_save_ifs"
9456         if test "X$pkg" = "X$p"; then
9457           enable_static=yes
9458         fi
9459       done
9460       IFS="$lt_save_ifs"
9461       ;;
9462     esac
9463 else
9464   enable_static=no
9465 fi
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476         enable_dlopen=no
9477
9478
9479
9480             # Check whether --enable-shared was given.
9481 if test "${enable_shared+set}" = set; then :
9482   enableval=$enable_shared; p=${PACKAGE-default}
9483     case $enableval in
9484     yes) enable_shared=yes ;;
9485     no) enable_shared=no ;;
9486     *)
9487       enable_shared=no
9488       # Look at the argument we got.  We use all the common list separators.
9489       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9490       for pkg in $enableval; do
9491         IFS="$lt_save_ifs"
9492         if test "X$pkg" = "X$p"; then
9493           enable_shared=yes
9494         fi
9495       done
9496       IFS="$lt_save_ifs"
9497       ;;
9498     esac
9499 else
9500   enable_shared=yes
9501 fi
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513 # Check whether --with-pic was given.
9514 if test "${with_pic+set}" = set; then :
9515   withval=$with_pic; lt_p=${PACKAGE-default}
9516     case $withval in
9517     yes|no) pic_mode=$withval ;;
9518     *)
9519       pic_mode=default
9520       # Look at the argument we got.  We use all the common list separators.
9521       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9522       for lt_pkg in $withval; do
9523         IFS="$lt_save_ifs"
9524         if test "X$lt_pkg" = "X$lt_p"; then
9525           pic_mode=yes
9526         fi
9527       done
9528       IFS="$lt_save_ifs"
9529       ;;
9530     esac
9531 else
9532   pic_mode=default
9533 fi
9534
9535
9536 test -z "$pic_mode" && pic_mode=default
9537
9538
9539
9540
9541
9542
9543
9544   # Check whether --enable-fast-install was given.
9545 if test "${enable_fast_install+set}" = set; then :
9546   enableval=$enable_fast_install; p=${PACKAGE-default}
9547     case $enableval in
9548     yes) enable_fast_install=yes ;;
9549     no) enable_fast_install=no ;;
9550     *)
9551       enable_fast_install=no
9552       # Look at the argument we got.  We use all the common list separators.
9553       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9554       for pkg in $enableval; do
9555         IFS="$lt_save_ifs"
9556         if test "X$pkg" = "X$p"; then
9557           enable_fast_install=yes
9558         fi
9559       done
9560       IFS="$lt_save_ifs"
9561       ;;
9562     esac
9563 else
9564   enable_fast_install=yes
9565 fi
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577 # This can be used to rebuild libtool when needed
9578 LIBTOOL_DEPS="$ltmain"
9579
9580 # Always use our own libtool.
9581 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612 test -z "$LN_S" && LN_S="ln -s"
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627 if test -n "${ZSH_VERSION+set}" ; then
9628    setopt NO_GLOB_SUBST
9629 fi
9630
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9632 $as_echo_n "checking for objdir... " >&6; }
9633 if ${lt_cv_objdir+:} false; then :
9634   $as_echo_n "(cached) " >&6
9635 else
9636   rm -f .libs 2>/dev/null
9637 mkdir .libs 2>/dev/null
9638 if test -d .libs; then
9639   lt_cv_objdir=.libs
9640 else
9641   # MS-DOS does not allow filenames that begin with a dot.
9642   lt_cv_objdir=_libs
9643 fi
9644 rmdir .libs 2>/dev/null
9645 fi
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9647 $as_echo "$lt_cv_objdir" >&6; }
9648 objdir=$lt_cv_objdir
9649
9650
9651
9652
9653
9654 cat >>confdefs.h <<_ACEOF
9655 #define LT_OBJDIR "$lt_cv_objdir/"
9656 _ACEOF
9657
9658
9659
9660
9661 case $host_os in
9662 aix3*)
9663   # AIX sometimes has problems with the GCC collect2 program.  For some
9664   # reason, if we set the COLLECT_NAMES environment variable, the problems
9665   # vanish in a puff of smoke.
9666   if test "X${COLLECT_NAMES+set}" != Xset; then
9667     COLLECT_NAMES=
9668     export COLLECT_NAMES
9669   fi
9670   ;;
9671 esac
9672
9673 # Global variables:
9674 ofile=libtool
9675 can_build_shared=yes
9676
9677 # All known linkers require a `.a' archive for static linking (except MSVC,
9678 # which needs '.lib').
9679 libext=a
9680
9681 with_gnu_ld="$lt_cv_prog_gnu_ld"
9682
9683 old_CC="$CC"
9684 old_CFLAGS="$CFLAGS"
9685
9686 # Set sane defaults for various variables
9687 test -z "$CC" && CC=cc
9688 test -z "$LTCC" && LTCC=$CC
9689 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9690 test -z "$LD" && LD=ld
9691 test -z "$ac_objext" && ac_objext=o
9692
9693 for cc_temp in $compiler""; do
9694   case $cc_temp in
9695     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9696     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9697     \-*) ;;
9698     *) break;;
9699   esac
9700 done
9701 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9702
9703
9704 # Only perform the check for file, if the check method requires it
9705 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9706 case $deplibs_check_method in
9707 file_magic*)
9708   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9710 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9711 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9712   $as_echo_n "(cached) " >&6
9713 else
9714   case $MAGIC_CMD in
9715 [\\/*] |  ?:[\\/]*)
9716   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9717   ;;
9718 *)
9719   lt_save_MAGIC_CMD="$MAGIC_CMD"
9720   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9721   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9722   for ac_dir in $ac_dummy; do
9723     IFS="$lt_save_ifs"
9724     test -z "$ac_dir" && ac_dir=.
9725     if test -f $ac_dir/${ac_tool_prefix}file; then
9726       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9727       if test -n "$file_magic_test_file"; then
9728         case $deplibs_check_method in
9729         "file_magic "*)
9730           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9731           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9732           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9733             $EGREP "$file_magic_regex" > /dev/null; then
9734             :
9735           else
9736             cat <<_LT_EOF 1>&2
9737
9738 *** Warning: the command libtool uses to detect shared libraries,
9739 *** $file_magic_cmd, produces output that libtool cannot recognize.
9740 *** The result is that libtool may fail to recognize shared libraries
9741 *** as such.  This will affect the creation of libtool libraries that
9742 *** depend on shared libraries, but programs linked with such libtool
9743 *** libraries will work regardless of this problem.  Nevertheless, you
9744 *** may want to report the problem to your system manager and/or to
9745 *** bug-libtool@gnu.org
9746
9747 _LT_EOF
9748           fi ;;
9749         esac
9750       fi
9751       break
9752     fi
9753   done
9754   IFS="$lt_save_ifs"
9755   MAGIC_CMD="$lt_save_MAGIC_CMD"
9756   ;;
9757 esac
9758 fi
9759
9760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9761 if test -n "$MAGIC_CMD"; then
9762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9763 $as_echo "$MAGIC_CMD" >&6; }
9764 else
9765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766 $as_echo "no" >&6; }
9767 fi
9768
9769
9770
9771
9772
9773 if test -z "$lt_cv_path_MAGIC_CMD"; then
9774   if test -n "$ac_tool_prefix"; then
9775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9776 $as_echo_n "checking for file... " >&6; }
9777 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9778   $as_echo_n "(cached) " >&6
9779 else
9780   case $MAGIC_CMD in
9781 [\\/*] |  ?:[\\/]*)
9782   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9783   ;;
9784 *)
9785   lt_save_MAGIC_CMD="$MAGIC_CMD"
9786   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9787   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9788   for ac_dir in $ac_dummy; do
9789     IFS="$lt_save_ifs"
9790     test -z "$ac_dir" && ac_dir=.
9791     if test -f $ac_dir/file; then
9792       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9793       if test -n "$file_magic_test_file"; then
9794         case $deplibs_check_method in
9795         "file_magic "*)
9796           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9797           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9798           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9799             $EGREP "$file_magic_regex" > /dev/null; then
9800             :
9801           else
9802             cat <<_LT_EOF 1>&2
9803
9804 *** Warning: the command libtool uses to detect shared libraries,
9805 *** $file_magic_cmd, produces output that libtool cannot recognize.
9806 *** The result is that libtool may fail to recognize shared libraries
9807 *** as such.  This will affect the creation of libtool libraries that
9808 *** depend on shared libraries, but programs linked with such libtool
9809 *** libraries will work regardless of this problem.  Nevertheless, you
9810 *** may want to report the problem to your system manager and/or to
9811 *** bug-libtool@gnu.org
9812
9813 _LT_EOF
9814           fi ;;
9815         esac
9816       fi
9817       break
9818     fi
9819   done
9820   IFS="$lt_save_ifs"
9821   MAGIC_CMD="$lt_save_MAGIC_CMD"
9822   ;;
9823 esac
9824 fi
9825
9826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9827 if test -n "$MAGIC_CMD"; then
9828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9829 $as_echo "$MAGIC_CMD" >&6; }
9830 else
9831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9833 fi
9834
9835
9836   else
9837     MAGIC_CMD=:
9838   fi
9839 fi
9840
9841   fi
9842   ;;
9843 esac
9844
9845 # Use C for the default configuration in the libtool script
9846
9847 lt_save_CC="$CC"
9848 ac_ext=c
9849 ac_cpp='$CPP $CPPFLAGS'
9850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9853
9854
9855 # Source file extension for C test sources.
9856 ac_ext=c
9857
9858 # Object file extension for compiled C test sources.
9859 objext=o
9860 objext=$objext
9861
9862 # Code to be used in simple compile tests
9863 lt_simple_compile_test_code="int some_variable = 0;"
9864
9865 # Code to be used in simple link tests
9866 lt_simple_link_test_code='int main(){return(0);}'
9867
9868
9869
9870
9871
9872
9873
9874 # If no C compiler was specified, use CC.
9875 LTCC=${LTCC-"$CC"}
9876
9877 # If no C compiler flags were specified, use CFLAGS.
9878 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9879
9880 # Allow CC to be a program name with arguments.
9881 compiler=$CC
9882
9883 # Save the default compiler, since it gets overwritten when the other
9884 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9885 compiler_DEFAULT=$CC
9886
9887 # save warnings/boilerplate of simple test code
9888 ac_outfile=conftest.$ac_objext
9889 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9891 _lt_compiler_boilerplate=`cat conftest.err`
9892 $RM conftest*
9893
9894 ac_outfile=conftest.$ac_objext
9895 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9897 _lt_linker_boilerplate=`cat conftest.err`
9898 $RM -r conftest*
9899
9900
9901 ## CAVEAT EMPTOR:
9902 ## There is no encapsulation within the following macros, do not change
9903 ## the running order or otherwise move them around unless you know exactly
9904 ## what you are doing...
9905 if test -n "$compiler"; then
9906
9907 lt_prog_compiler_no_builtin_flag=
9908
9909 if test "$GCC" = yes; then
9910   case $cc_basename in
9911   nvcc*)
9912     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9913   *)
9914     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9915   esac
9916
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9918 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9919 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9920   $as_echo_n "(cached) " >&6
9921 else
9922   lt_cv_prog_compiler_rtti_exceptions=no
9923    ac_outfile=conftest.$ac_objext
9924    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9925    lt_compiler_flag="-fno-rtti -fno-exceptions"
9926    # Insert the option either (1) after the last *FLAGS variable, or
9927    # (2) before a word containing "conftest.", or (3) at the end.
9928    # Note that $ac_compile itself does not contain backslashes and begins
9929    # with a dollar sign (not a hyphen), so the echo should work correctly.
9930    # The option is referenced via a variable to avoid confusing sed.
9931    lt_compile=`echo "$ac_compile" | $SED \
9932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9934    -e 's:$: $lt_compiler_flag:'`
9935    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9936    (eval "$lt_compile" 2>conftest.err)
9937    ac_status=$?
9938    cat conftest.err >&5
9939    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940    if (exit $ac_status) && test -s "$ac_outfile"; then
9941      # The compiler can only warn and ignore the option if not recognized
9942      # So say no if there are warnings other than the usual output.
9943      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9944      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9945      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9946        lt_cv_prog_compiler_rtti_exceptions=yes
9947      fi
9948    fi
9949    $RM conftest*
9950
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9953 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9954
9955 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9956     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9957 else
9958     :
9959 fi
9960
9961 fi
9962
9963
9964
9965
9966
9967
9968   lt_prog_compiler_wl=
9969 lt_prog_compiler_pic=
9970 lt_prog_compiler_static=
9971
9972
9973   if test "$GCC" = yes; then
9974     lt_prog_compiler_wl='-Wl,'
9975     lt_prog_compiler_static='-static'
9976
9977     case $host_os in
9978       aix*)
9979       # All AIX code is PIC.
9980       if test "$host_cpu" = ia64; then
9981         # AIX 5 now supports IA64 processor
9982         lt_prog_compiler_static='-Bstatic'
9983       fi
9984       ;;
9985
9986     amigaos*)
9987       case $host_cpu in
9988       powerpc)
9989             # see comment about AmigaOS4 .so support
9990             lt_prog_compiler_pic='-fPIC'
9991         ;;
9992       m68k)
9993             # FIXME: we need at least 68020 code to build shared libraries, but
9994             # adding the `-m68020' flag to GCC prevents building anything better,
9995             # like `-m68040'.
9996             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9997         ;;
9998       esac
9999       ;;
10000
10001     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10002       # PIC is the default for these OSes.
10003       ;;
10004
10005     mingw* | cygwin* | pw32* | os2* | cegcc*)
10006       # This hack is so that the source file can tell whether it is being
10007       # built for inclusion in a dll (and should export symbols for example).
10008       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10009       # (--disable-auto-import) libraries
10010       lt_prog_compiler_pic='-DDLL_EXPORT'
10011       ;;
10012
10013     darwin* | rhapsody*)
10014       # PIC is the default on this platform
10015       # Common symbols not allowed in MH_DYLIB files
10016       lt_prog_compiler_pic='-fno-common'
10017       ;;
10018
10019     haiku*)
10020       # PIC is the default for Haiku.
10021       # The "-static" flag exists, but is broken.
10022       lt_prog_compiler_static=
10023       ;;
10024
10025     hpux*)
10026       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10027       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10028       # sets the default TLS model and affects inlining.
10029       case $host_cpu in
10030       hppa*64*)
10031         # +Z the default
10032         ;;
10033       *)
10034         lt_prog_compiler_pic='-fPIC'
10035         ;;
10036       esac
10037       ;;
10038
10039     interix[3-9]*)
10040       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10041       # Instead, we relocate shared libraries at runtime.
10042       ;;
10043
10044     msdosdjgpp*)
10045       # Just because we use GCC doesn't mean we suddenly get shared libraries
10046       # on systems that don't support them.
10047       lt_prog_compiler_can_build_shared=no
10048       enable_shared=no
10049       ;;
10050
10051     *nto* | *qnx*)
10052       # QNX uses GNU C++, but need to define -shared option too, otherwise
10053       # it will coredump.
10054       lt_prog_compiler_pic='-fPIC -shared'
10055       ;;
10056
10057     sysv4*MP*)
10058       if test -d /usr/nec; then
10059         lt_prog_compiler_pic=-Kconform_pic
10060       fi
10061       ;;
10062
10063     *)
10064       lt_prog_compiler_pic='-fPIC'
10065       ;;
10066     esac
10067
10068     case $cc_basename in
10069     nvcc*) # Cuda Compiler Driver 2.2
10070       lt_prog_compiler_wl='-Xlinker '
10071       if test -n "$lt_prog_compiler_pic"; then
10072         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10073       fi
10074       ;;
10075     esac
10076   else
10077     # PORTME Check for flag to pass linker flags through the system compiler.
10078     case $host_os in
10079     aix*)
10080       lt_prog_compiler_wl='-Wl,'
10081       if test "$host_cpu" = ia64; then
10082         # AIX 5 now supports IA64 processor
10083         lt_prog_compiler_static='-Bstatic'
10084       else
10085         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10086       fi
10087       ;;
10088
10089     mingw* | cygwin* | pw32* | os2* | cegcc*)
10090       # This hack is so that the source file can tell whether it is being
10091       # built for inclusion in a dll (and should export symbols for example).
10092       lt_prog_compiler_pic='-DDLL_EXPORT'
10093       ;;
10094
10095     hpux9* | hpux10* | hpux11*)
10096       lt_prog_compiler_wl='-Wl,'
10097       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10098       # not for PA HP-UX.
10099       case $host_cpu in
10100       hppa*64*|ia64*)
10101         # +Z the default
10102         ;;
10103       *)
10104         lt_prog_compiler_pic='+Z'
10105         ;;
10106       esac
10107       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10108       lt_prog_compiler_static='${wl}-a ${wl}archive'
10109       ;;
10110
10111     irix5* | irix6* | nonstopux*)
10112       lt_prog_compiler_wl='-Wl,'
10113       # PIC (with -KPIC) is the default.
10114       lt_prog_compiler_static='-non_shared'
10115       ;;
10116
10117     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10118       case $cc_basename in
10119       # old Intel for x86_64 which still supported -KPIC.
10120       ecc*)
10121         lt_prog_compiler_wl='-Wl,'
10122         lt_prog_compiler_pic='-KPIC'
10123         lt_prog_compiler_static='-static'
10124         ;;
10125       # icc used to be incompatible with GCC.
10126       # ICC 10 doesn't accept -KPIC any more.
10127       icc* | ifort*)
10128         lt_prog_compiler_wl='-Wl,'
10129         lt_prog_compiler_pic='-fPIC'
10130         lt_prog_compiler_static='-static'
10131         ;;
10132       # Lahey Fortran 8.1.
10133       lf95*)
10134         lt_prog_compiler_wl='-Wl,'
10135         lt_prog_compiler_pic='--shared'
10136         lt_prog_compiler_static='--static'
10137         ;;
10138       nagfor*)
10139         # NAG Fortran compiler
10140         lt_prog_compiler_wl='-Wl,-Wl,,'
10141         lt_prog_compiler_pic='-PIC'
10142         lt_prog_compiler_static='-Bstatic'
10143         ;;
10144       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10145         # Portland Group compilers (*not* the Pentium gcc compiler,
10146         # which looks to be a dead project)
10147         lt_prog_compiler_wl='-Wl,'
10148         lt_prog_compiler_pic='-fpic'
10149         lt_prog_compiler_static='-Bstatic'
10150         ;;
10151       ccc*)
10152         lt_prog_compiler_wl='-Wl,'
10153         # All Alpha code is PIC.
10154         lt_prog_compiler_static='-non_shared'
10155         ;;
10156       xl* | bgxl* | bgf* | mpixl*)
10157         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10158         lt_prog_compiler_wl='-Wl,'
10159         lt_prog_compiler_pic='-qpic'
10160         lt_prog_compiler_static='-qstaticlink'
10161         ;;
10162       *)
10163         case `$CC -V 2>&1 | sed 5q` in
10164         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10165           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10166           lt_prog_compiler_pic='-KPIC'
10167           lt_prog_compiler_static='-Bstatic'
10168           lt_prog_compiler_wl=''
10169           ;;
10170         *Sun\ F* | *Sun*Fortran*)
10171           lt_prog_compiler_pic='-KPIC'
10172           lt_prog_compiler_static='-Bstatic'
10173           lt_prog_compiler_wl='-Qoption ld '
10174           ;;
10175         *Sun\ C*)
10176           # Sun C 5.9
10177           lt_prog_compiler_pic='-KPIC'
10178           lt_prog_compiler_static='-Bstatic'
10179           lt_prog_compiler_wl='-Wl,'
10180           ;;
10181         *Intel*\ [CF]*Compiler*)
10182           lt_prog_compiler_wl='-Wl,'
10183           lt_prog_compiler_pic='-fPIC'
10184           lt_prog_compiler_static='-static'
10185           ;;
10186         *Portland\ Group*)
10187           lt_prog_compiler_wl='-Wl,'
10188           lt_prog_compiler_pic='-fpic'
10189           lt_prog_compiler_static='-Bstatic'
10190           ;;
10191         esac
10192         ;;
10193       esac
10194       ;;
10195
10196     newsos6)
10197       lt_prog_compiler_pic='-KPIC'
10198       lt_prog_compiler_static='-Bstatic'
10199       ;;
10200
10201     *nto* | *qnx*)
10202       # QNX uses GNU C++, but need to define -shared option too, otherwise
10203       # it will coredump.
10204       lt_prog_compiler_pic='-fPIC -shared'
10205       ;;
10206
10207     osf3* | osf4* | osf5*)
10208       lt_prog_compiler_wl='-Wl,'
10209       # All OSF/1 code is PIC.
10210       lt_prog_compiler_static='-non_shared'
10211       ;;
10212
10213     rdos*)
10214       lt_prog_compiler_static='-non_shared'
10215       ;;
10216
10217     solaris*)
10218       lt_prog_compiler_pic='-KPIC'
10219       lt_prog_compiler_static='-Bstatic'
10220       case $cc_basename in
10221       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10222         lt_prog_compiler_wl='-Qoption ld ';;
10223       *)
10224         lt_prog_compiler_wl='-Wl,';;
10225       esac
10226       ;;
10227
10228     sunos4*)
10229       lt_prog_compiler_wl='-Qoption ld '
10230       lt_prog_compiler_pic='-PIC'
10231       lt_prog_compiler_static='-Bstatic'
10232       ;;
10233
10234     sysv4 | sysv4.2uw2* | sysv4.3*)
10235       lt_prog_compiler_wl='-Wl,'
10236       lt_prog_compiler_pic='-KPIC'
10237       lt_prog_compiler_static='-Bstatic'
10238       ;;
10239
10240     sysv4*MP*)
10241       if test -d /usr/nec ;then
10242         lt_prog_compiler_pic='-Kconform_pic'
10243         lt_prog_compiler_static='-Bstatic'
10244       fi
10245       ;;
10246
10247     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10248       lt_prog_compiler_wl='-Wl,'
10249       lt_prog_compiler_pic='-KPIC'
10250       lt_prog_compiler_static='-Bstatic'
10251       ;;
10252
10253     unicos*)
10254       lt_prog_compiler_wl='-Wl,'
10255       lt_prog_compiler_can_build_shared=no
10256       ;;
10257
10258     uts4*)
10259       lt_prog_compiler_pic='-pic'
10260       lt_prog_compiler_static='-Bstatic'
10261       ;;
10262
10263     *)
10264       lt_prog_compiler_can_build_shared=no
10265       ;;
10266     esac
10267   fi
10268
10269 case $host_os in
10270   # For platforms which do not support PIC, -DPIC is meaningless:
10271   *djgpp*)
10272     lt_prog_compiler_pic=
10273     ;;
10274   *)
10275     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10276     ;;
10277 esac
10278
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10280 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10281 if ${lt_cv_prog_compiler_pic+:} false; then :
10282   $as_echo_n "(cached) " >&6
10283 else
10284   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10285 fi
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10287 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10288 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10289
10290 #
10291 # Check to make sure the PIC flag actually works.
10292 #
10293 if test -n "$lt_prog_compiler_pic"; then
10294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10295 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10296 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10297   $as_echo_n "(cached) " >&6
10298 else
10299   lt_cv_prog_compiler_pic_works=no
10300    ac_outfile=conftest.$ac_objext
10301    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10302    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10303    # Insert the option either (1) after the last *FLAGS variable, or
10304    # (2) before a word containing "conftest.", or (3) at the end.
10305    # Note that $ac_compile itself does not contain backslashes and begins
10306    # with a dollar sign (not a hyphen), so the echo should work correctly.
10307    # The option is referenced via a variable to avoid confusing sed.
10308    lt_compile=`echo "$ac_compile" | $SED \
10309    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10311    -e 's:$: $lt_compiler_flag:'`
10312    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10313    (eval "$lt_compile" 2>conftest.err)
10314    ac_status=$?
10315    cat conftest.err >&5
10316    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317    if (exit $ac_status) && test -s "$ac_outfile"; then
10318      # The compiler can only warn and ignore the option if not recognized
10319      # So say no if there are warnings other than the usual output.
10320      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10321      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10322      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10323        lt_cv_prog_compiler_pic_works=yes
10324      fi
10325    fi
10326    $RM conftest*
10327
10328 fi
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10330 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10331
10332 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10333     case $lt_prog_compiler_pic in
10334      "" | " "*) ;;
10335      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10336      esac
10337 else
10338     lt_prog_compiler_pic=
10339      lt_prog_compiler_can_build_shared=no
10340 fi
10341
10342 fi
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354 #
10355 # Check to make sure the static flag actually works.
10356 #
10357 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10359 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10360 if ${lt_cv_prog_compiler_static_works+:} false; then :
10361   $as_echo_n "(cached) " >&6
10362 else
10363   lt_cv_prog_compiler_static_works=no
10364    save_LDFLAGS="$LDFLAGS"
10365    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10366    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10367    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10368      # The linker can only warn and ignore the option if not recognized
10369      # So say no if there are warnings
10370      if test -s conftest.err; then
10371        # Append any errors to the config.log.
10372        cat conftest.err 1>&5
10373        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10374        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10375        if diff conftest.exp conftest.er2 >/dev/null; then
10376          lt_cv_prog_compiler_static_works=yes
10377        fi
10378      else
10379        lt_cv_prog_compiler_static_works=yes
10380      fi
10381    fi
10382    $RM -r conftest*
10383    LDFLAGS="$save_LDFLAGS"
10384
10385 fi
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10387 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10388
10389 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10390     :
10391 else
10392     lt_prog_compiler_static=
10393 fi
10394
10395
10396
10397
10398
10399
10400
10401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10402 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10403 if ${lt_cv_prog_compiler_c_o+:} false; then :
10404   $as_echo_n "(cached) " >&6
10405 else
10406   lt_cv_prog_compiler_c_o=no
10407    $RM -r conftest 2>/dev/null
10408    mkdir conftest
10409    cd conftest
10410    mkdir out
10411    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10412
10413    lt_compiler_flag="-o out/conftest2.$ac_objext"
10414    # Insert the option either (1) after the last *FLAGS variable, or
10415    # (2) before a word containing "conftest.", or (3) at the end.
10416    # Note that $ac_compile itself does not contain backslashes and begins
10417    # with a dollar sign (not a hyphen), so the echo should work correctly.
10418    lt_compile=`echo "$ac_compile" | $SED \
10419    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10420    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10421    -e 's:$: $lt_compiler_flag:'`
10422    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10423    (eval "$lt_compile" 2>out/conftest.err)
10424    ac_status=$?
10425    cat out/conftest.err >&5
10426    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10428    then
10429      # The compiler can only warn and ignore the option if not recognized
10430      # So say no if there are warnings
10431      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10432      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10433      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10434        lt_cv_prog_compiler_c_o=yes
10435      fi
10436    fi
10437    chmod u+w . 2>&5
10438    $RM conftest*
10439    # SGI C++ compiler will create directory out/ii_files/ for
10440    # template instantiation
10441    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10442    $RM out/* && rmdir out
10443    cd ..
10444    $RM -r conftest
10445    $RM conftest*
10446
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10449 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10450
10451
10452
10453
10454
10455
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10457 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10458 if ${lt_cv_prog_compiler_c_o+:} false; then :
10459   $as_echo_n "(cached) " >&6
10460 else
10461   lt_cv_prog_compiler_c_o=no
10462    $RM -r conftest 2>/dev/null
10463    mkdir conftest
10464    cd conftest
10465    mkdir out
10466    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10467
10468    lt_compiler_flag="-o out/conftest2.$ac_objext"
10469    # Insert the option either (1) after the last *FLAGS variable, or
10470    # (2) before a word containing "conftest.", or (3) at the end.
10471    # Note that $ac_compile itself does not contain backslashes and begins
10472    # with a dollar sign (not a hyphen), so the echo should work correctly.
10473    lt_compile=`echo "$ac_compile" | $SED \
10474    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10475    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10476    -e 's:$: $lt_compiler_flag:'`
10477    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10478    (eval "$lt_compile" 2>out/conftest.err)
10479    ac_status=$?
10480    cat out/conftest.err >&5
10481    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10483    then
10484      # The compiler can only warn and ignore the option if not recognized
10485      # So say no if there are warnings
10486      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10487      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10488      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10489        lt_cv_prog_compiler_c_o=yes
10490      fi
10491    fi
10492    chmod u+w . 2>&5
10493    $RM conftest*
10494    # SGI C++ compiler will create directory out/ii_files/ for
10495    # template instantiation
10496    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10497    $RM out/* && rmdir out
10498    cd ..
10499    $RM -r conftest
10500    $RM conftest*
10501
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10504 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10505
10506
10507
10508
10509 hard_links="nottested"
10510 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10511   # do not overwrite the value of need_locks provided by the user
10512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10513 $as_echo_n "checking if we can lock with hard links... " >&6; }
10514   hard_links=yes
10515   $RM conftest*
10516   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10517   touch conftest.a
10518   ln conftest.a conftest.b 2>&5 || hard_links=no
10519   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10521 $as_echo "$hard_links" >&6; }
10522   if test "$hard_links" = no; then
10523     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10524 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10525     need_locks=warn
10526   fi
10527 else
10528   need_locks=no
10529 fi
10530
10531
10532
10533
10534
10535
10536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10537 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10538
10539   runpath_var=
10540   allow_undefined_flag=
10541   always_export_symbols=no
10542   archive_cmds=
10543   archive_expsym_cmds=
10544   compiler_needs_object=no
10545   enable_shared_with_static_runtimes=no
10546   export_dynamic_flag_spec=
10547   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10548   hardcode_automatic=no
10549   hardcode_direct=no
10550   hardcode_direct_absolute=no
10551   hardcode_libdir_flag_spec=
10552   hardcode_libdir_separator=
10553   hardcode_minus_L=no
10554   hardcode_shlibpath_var=unsupported
10555   inherit_rpath=no
10556   link_all_deplibs=unknown
10557   module_cmds=
10558   module_expsym_cmds=
10559   old_archive_from_new_cmds=
10560   old_archive_from_expsyms_cmds=
10561   thread_safe_flag_spec=
10562   whole_archive_flag_spec=
10563   # include_expsyms should be a list of space-separated symbols to be *always*
10564   # included in the symbol list
10565   include_expsyms=
10566   # exclude_expsyms can be an extended regexp of symbols to exclude
10567   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10568   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10569   # as well as any symbol that contains `d'.
10570   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10571   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10572   # platforms (ab)use it in PIC code, but their linkers get confused if
10573   # the symbol is explicitly referenced.  Since portable code cannot
10574   # rely on this symbol name, it's probably fine to never include it in
10575   # preloaded symbol tables.
10576   # Exclude shared library initialization/finalization symbols.
10577   extract_expsyms_cmds=
10578
10579   case $host_os in
10580   cygwin* | mingw* | pw32* | cegcc*)
10581     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10582     # When not using gcc, we currently assume that we are using
10583     # Microsoft Visual C++.
10584     if test "$GCC" != yes; then
10585       with_gnu_ld=no
10586     fi
10587     ;;
10588   interix*)
10589     # we just hope/assume this is gcc and not c89 (= MSVC++)
10590     with_gnu_ld=yes
10591     ;;
10592   openbsd*)
10593     with_gnu_ld=no
10594     ;;
10595   linux* | k*bsd*-gnu | gnu*)
10596     link_all_deplibs=no
10597     ;;
10598   esac
10599
10600   ld_shlibs=yes
10601
10602   # On some targets, GNU ld is compatible enough with the native linker
10603   # that we're better off using the native interface for both.
10604   lt_use_gnu_ld_interface=no
10605   if test "$with_gnu_ld" = yes; then
10606     case $host_os in
10607       aix*)
10608         # The AIX port of GNU ld has always aspired to compatibility
10609         # with the native linker.  However, as the warning in the GNU ld
10610         # block says, versions before 2.19.5* couldn't really create working
10611         # shared libraries, regardless of the interface used.
10612         case `$LD -v 2>&1` in
10613           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10614           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10615           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10616           *)
10617             lt_use_gnu_ld_interface=yes
10618             ;;
10619         esac
10620         ;;
10621       *)
10622         lt_use_gnu_ld_interface=yes
10623         ;;
10624     esac
10625   fi
10626
10627   if test "$lt_use_gnu_ld_interface" = yes; then
10628     # If archive_cmds runs LD, not CC, wlarc should be empty
10629     wlarc='${wl}'
10630
10631     # Set some defaults for GNU ld with shared library support. These
10632     # are reset later if shared libraries are not supported. Putting them
10633     # here allows them to be overridden if necessary.
10634     runpath_var=LD_RUN_PATH
10635     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10636     export_dynamic_flag_spec='${wl}--export-dynamic'
10637     # ancient GNU ld didn't support --whole-archive et. al.
10638     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10639       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10640     else
10641       whole_archive_flag_spec=
10642     fi
10643     supports_anon_versioning=no
10644     case `$LD -v 2>&1` in
10645       *GNU\ gold*) supports_anon_versioning=yes ;;
10646       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10647       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10648       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10649       *\ 2.11.*) ;; # other 2.11 versions
10650       *) supports_anon_versioning=yes ;;
10651     esac
10652
10653     # See if GNU ld supports shared libraries.
10654     case $host_os in
10655     aix[3-9]*)
10656       # On AIX/PPC, the GNU linker is very broken
10657       if test "$host_cpu" != ia64; then
10658         ld_shlibs=no
10659         cat <<_LT_EOF 1>&2
10660
10661 *** Warning: the GNU linker, at least up to release 2.19, is reported
10662 *** to be unable to reliably create shared libraries on AIX.
10663 *** Therefore, libtool is disabling shared libraries support.  If you
10664 *** really care for shared libraries, you may want to install binutils
10665 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10666 *** You will then need to restart the configuration process.
10667
10668 _LT_EOF
10669       fi
10670       ;;
10671
10672     amigaos*)
10673       case $host_cpu in
10674       powerpc)
10675             # see comment about AmigaOS4 .so support
10676             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10677             archive_expsym_cmds=''
10678         ;;
10679       m68k)
10680             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)'
10681             hardcode_libdir_flag_spec='-L$libdir'
10682             hardcode_minus_L=yes
10683         ;;
10684       esac
10685       ;;
10686
10687     beos*)
10688       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10689         allow_undefined_flag=unsupported
10690         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10691         # support --undefined.  This deserves some investigation.  FIXME
10692         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693       else
10694         ld_shlibs=no
10695       fi
10696       ;;
10697
10698     cygwin* | mingw* | pw32* | cegcc*)
10699       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10700       # as there is no search path for DLLs.
10701       hardcode_libdir_flag_spec='-L$libdir'
10702       export_dynamic_flag_spec='${wl}--export-all-symbols'
10703       allow_undefined_flag=unsupported
10704       always_export_symbols=no
10705       enable_shared_with_static_runtimes=yes
10706       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'
10707       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10708
10709       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10710         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10711         # If the export-symbols file already is a .def file (1st line
10712         # is EXPORTS), use it as is; otherwise, prepend...
10713         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10714           cp $export_symbols $output_objdir/$soname.def;
10715         else
10716           echo EXPORTS > $output_objdir/$soname.def;
10717           cat $export_symbols >> $output_objdir/$soname.def;
10718         fi~
10719         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10720       else
10721         ld_shlibs=no
10722       fi
10723       ;;
10724
10725     haiku*)
10726       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10727       link_all_deplibs=yes
10728       ;;
10729
10730     interix[3-9]*)
10731       hardcode_direct=no
10732       hardcode_shlibpath_var=no
10733       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10734       export_dynamic_flag_spec='${wl}-E'
10735       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10736       # Instead, shared libraries are loaded at an image base (0x10000000 by
10737       # default) and relocated if they conflict, which is a slow very memory
10738       # consuming and fragmenting process.  To avoid this, we pick a random,
10739       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10740       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10741       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10742       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'
10743       ;;
10744
10745     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10746       tmp_diet=no
10747       if test "$host_os" = linux-dietlibc; then
10748         case $cc_basename in
10749           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10750         esac
10751       fi
10752       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10753          && test "$tmp_diet" = no
10754       then
10755         tmp_addflag=' $pic_flag'
10756         tmp_sharedflag='-shared'
10757         case $cc_basename,$host_cpu in
10758         pgcc*)                          # Portland Group C compiler
10759           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'
10760           tmp_addflag=' $pic_flag'
10761           ;;
10762         pgf77* | pgf90* | pgf95* | pgfortran*)
10763                                         # Portland Group f77 and f90 compilers
10764           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'
10765           tmp_addflag=' $pic_flag -Mnomain' ;;
10766         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10767           tmp_addflag=' -i_dynamic' ;;
10768         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10769           tmp_addflag=' -i_dynamic -nofor_main' ;;
10770         ifc* | ifort*)                  # Intel Fortran compiler
10771           tmp_addflag=' -nofor_main' ;;
10772         lf95*)                          # Lahey Fortran 8.1
10773           whole_archive_flag_spec=
10774           tmp_sharedflag='--shared' ;;
10775         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10776           tmp_sharedflag='-qmkshrobj'
10777           tmp_addflag= ;;
10778         nvcc*)  # Cuda Compiler Driver 2.2
10779           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'
10780           compiler_needs_object=yes
10781           ;;
10782         esac
10783         case `$CC -V 2>&1 | sed 5q` in
10784         *Sun\ C*)                       # Sun C 5.9
10785           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'
10786           compiler_needs_object=yes
10787           tmp_sharedflag='-G' ;;
10788         *Sun\ F*)                       # Sun Fortran 8.3
10789           tmp_sharedflag='-G' ;;
10790         esac
10791         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10792
10793         if test "x$supports_anon_versioning" = xyes; then
10794           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10795             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10796             echo "local: *; };" >> $output_objdir/$libname.ver~
10797             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10798         fi
10799
10800         case $cc_basename in
10801         xlf* | bgf* | bgxlf* | mpixlf*)
10802           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10803           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10804           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10806           if test "x$supports_anon_versioning" = xyes; then
10807             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10808               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10809               echo "local: *; };" >> $output_objdir/$libname.ver~
10810               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10811           fi
10812           ;;
10813         esac
10814       else
10815         ld_shlibs=no
10816       fi
10817       ;;
10818
10819     netbsd* | netbsdelf*-gnu)
10820       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10821         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10822         wlarc=
10823       else
10824         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10825         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10826       fi
10827       ;;
10828
10829     solaris*)
10830       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10831         ld_shlibs=no
10832         cat <<_LT_EOF 1>&2
10833
10834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10835 *** create shared libraries on Solaris systems.  Therefore, libtool
10836 *** is disabling shared libraries support.  We urge you to upgrade GNU
10837 *** binutils to release 2.9.1 or newer.  Another option is to modify
10838 *** your PATH or compiler configuration so that the native linker is
10839 *** used, and then restart.
10840
10841 _LT_EOF
10842       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10843         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10844         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10845       else
10846         ld_shlibs=no
10847       fi
10848       ;;
10849
10850     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10851       case `$LD -v 2>&1` in
10852         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10853         ld_shlibs=no
10854         cat <<_LT_EOF 1>&2
10855
10856 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10857 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10858 *** is disabling shared libraries support.  We urge you to upgrade GNU
10859 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10860 *** your PATH or compiler configuration so that the native linker is
10861 *** used, and then restart.
10862
10863 _LT_EOF
10864         ;;
10865         *)
10866           # For security reasons, it is highly recommended that you always
10867           # use absolute paths for naming shared libraries, and exclude the
10868           # DT_RUNPATH tag from executables and libraries.  But doing so
10869           # requires that you compile everything twice, which is a pain.
10870           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10871             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10872             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10873             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10874           else
10875             ld_shlibs=no
10876           fi
10877         ;;
10878       esac
10879       ;;
10880
10881     sunos4*)
10882       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10883       wlarc=
10884       hardcode_direct=yes
10885       hardcode_shlibpath_var=no
10886       ;;
10887
10888     *)
10889       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10890         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10891         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10892       else
10893         ld_shlibs=no
10894       fi
10895       ;;
10896     esac
10897
10898     if test "$ld_shlibs" = no; then
10899       runpath_var=
10900       hardcode_libdir_flag_spec=
10901       export_dynamic_flag_spec=
10902       whole_archive_flag_spec=
10903     fi
10904   else
10905     # PORTME fill in a description of your system's linker (not GNU ld)
10906     case $host_os in
10907     aix3*)
10908       allow_undefined_flag=unsupported
10909       always_export_symbols=yes
10910       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'
10911       # Note: this linker hardcodes the directories in LIBPATH if there
10912       # are no directories specified by -L.
10913       hardcode_minus_L=yes
10914       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10915         # Neither direct hardcoding nor static linking is supported with a
10916         # broken collect2.
10917         hardcode_direct=unsupported
10918       fi
10919       ;;
10920
10921     aix[4-9]*)
10922       if test "$host_cpu" = ia64; then
10923         # On IA64, the linker does run time linking by default, so we don't
10924         # have to do anything special.
10925         aix_use_runtimelinking=no
10926         exp_sym_flag='-Bexport'
10927         no_entry_flag=""
10928       else
10929         # If we're using GNU nm, then we don't want the "-C" option.
10930         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10931         # Also, AIX nm treats weak defined symbols like other global
10932         # defined symbols, whereas GNU nm marks them as "W".
10933         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10934           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'
10935         else
10936           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'
10937         fi
10938         aix_use_runtimelinking=no
10939
10940         # Test if we are trying to use run time linking or normal
10941         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10942         # need to do runtime linking.
10943         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10944           for ld_flag in $LDFLAGS; do
10945           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10946             aix_use_runtimelinking=yes
10947             break
10948           fi
10949           done
10950           ;;
10951         esac
10952
10953         exp_sym_flag='-bexport'
10954         no_entry_flag='-bnoentry'
10955       fi
10956
10957       # When large executables or shared objects are built, AIX ld can
10958       # have problems creating the table of contents.  If linking a library
10959       # or program results in "error TOC overflow" add -mminimal-toc to
10960       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10961       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10962
10963       archive_cmds=''
10964       hardcode_direct=yes
10965       hardcode_direct_absolute=yes
10966       hardcode_libdir_separator=':'
10967       link_all_deplibs=yes
10968       file_list_spec='${wl}-f,'
10969
10970       if test "$GCC" = yes; then
10971         case $host_os in aix4.[012]|aix4.[012].*)
10972         # We only want to do this on AIX 4.2 and lower, the check
10973         # below for broken collect2 doesn't work under 4.3+
10974           collect2name=`${CC} -print-prog-name=collect2`
10975           if test -f "$collect2name" &&
10976            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10977           then
10978           # We have reworked collect2
10979           :
10980           else
10981           # We have old collect2
10982           hardcode_direct=unsupported
10983           # It fails to find uninstalled libraries when the uninstalled
10984           # path is not listed in the libpath.  Setting hardcode_minus_L
10985           # to unsupported forces relinking
10986           hardcode_minus_L=yes
10987           hardcode_libdir_flag_spec='-L$libdir'
10988           hardcode_libdir_separator=
10989           fi
10990           ;;
10991         esac
10992         shared_flag='-shared'
10993         if test "$aix_use_runtimelinking" = yes; then
10994           shared_flag="$shared_flag "'${wl}-G'
10995         fi
10996         link_all_deplibs=no
10997       else
10998         # not using gcc
10999         if test "$host_cpu" = ia64; then
11000         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11001         # chokes on -Wl,-G. The following line is correct:
11002           shared_flag='-G'
11003         else
11004           if test "$aix_use_runtimelinking" = yes; then
11005             shared_flag='${wl}-G'
11006           else
11007             shared_flag='${wl}-bM:SRE'
11008           fi
11009         fi
11010       fi
11011
11012       export_dynamic_flag_spec='${wl}-bexpall'
11013       # It seems that -bexpall does not export symbols beginning with
11014       # underscore (_), so it is better to generate a list of symbols to export.
11015       always_export_symbols=yes
11016       if test "$aix_use_runtimelinking" = yes; then
11017         # Warning - without using the other runtime loading flags (-brtl),
11018         # -berok will link without error, but may produce a broken library.
11019         allow_undefined_flag='-berok'
11020         # Determine the default libpath from the value encoded in an
11021         # empty executable.
11022         if test "${lt_cv_aix_libpath+set}" = set; then
11023   aix_libpath=$lt_cv_aix_libpath
11024 else
11025   if ${lt_cv_aix_libpath_+:} false; then :
11026   $as_echo_n "(cached) " >&6
11027 else
11028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h.  */
11030
11031 int
11032 main ()
11033 {
11034
11035   ;
11036   return 0;
11037 }
11038 _ACEOF
11039 if ac_fn_c_try_link "$LINENO"; then :
11040
11041   lt_aix_libpath_sed='
11042       /Import File Strings/,/^$/ {
11043           /^0/ {
11044               s/^0  *\([^ ]*\) *$/\1/
11045               p
11046           }
11047       }'
11048   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11049   # Check for a 64-bit object if we didn't find anything.
11050   if test -z "$lt_cv_aix_libpath_"; then
11051     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11052   fi
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055     conftest$ac_exeext conftest.$ac_ext
11056   if test -z "$lt_cv_aix_libpath_"; then
11057     lt_cv_aix_libpath_="/usr/lib:/lib"
11058   fi
11059
11060 fi
11061
11062   aix_libpath=$lt_cv_aix_libpath_
11063 fi
11064
11065         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11066         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"
11067       else
11068         if test "$host_cpu" = ia64; then
11069           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11070           allow_undefined_flag="-z nodefs"
11071           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"
11072         else
11073          # Determine the default libpath from the value encoded in an
11074          # empty executable.
11075          if test "${lt_cv_aix_libpath+set}" = set; then
11076   aix_libpath=$lt_cv_aix_libpath
11077 else
11078   if ${lt_cv_aix_libpath_+:} false; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h.  */
11083
11084 int
11085 main ()
11086 {
11087
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_link "$LINENO"; then :
11093
11094   lt_aix_libpath_sed='
11095       /Import File Strings/,/^$/ {
11096           /^0/ {
11097               s/^0  *\([^ ]*\) *$/\1/
11098               p
11099           }
11100       }'
11101   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11102   # Check for a 64-bit object if we didn't find anything.
11103   if test -z "$lt_cv_aix_libpath_"; then
11104     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11105   fi
11106 fi
11107 rm -f core conftest.err conftest.$ac_objext \
11108     conftest$ac_exeext conftest.$ac_ext
11109   if test -z "$lt_cv_aix_libpath_"; then
11110     lt_cv_aix_libpath_="/usr/lib:/lib"
11111   fi
11112
11113 fi
11114
11115   aix_libpath=$lt_cv_aix_libpath_
11116 fi
11117
11118          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11119           # Warning - without using the other run time loading flags,
11120           # -berok will link without error, but may produce a broken library.
11121           no_undefined_flag=' ${wl}-bernotok'
11122           allow_undefined_flag=' ${wl}-berok'
11123           if test "$with_gnu_ld" = yes; then
11124             # We only use this code for GNU lds that support --whole-archive.
11125             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11126           else
11127             # Exported symbols can be pulled into shared objects from archives
11128             whole_archive_flag_spec='$convenience'
11129           fi
11130           archive_cmds_need_lc=yes
11131           # This is similar to how AIX traditionally builds its shared libraries.
11132           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'
11133         fi
11134       fi
11135       ;;
11136
11137     amigaos*)
11138       case $host_cpu in
11139       powerpc)
11140             # see comment about AmigaOS4 .so support
11141             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11142             archive_expsym_cmds=''
11143         ;;
11144       m68k)
11145             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)'
11146             hardcode_libdir_flag_spec='-L$libdir'
11147             hardcode_minus_L=yes
11148         ;;
11149       esac
11150       ;;
11151
11152     bsdi[45]*)
11153       export_dynamic_flag_spec=-rdynamic
11154       ;;
11155
11156     cygwin* | mingw* | pw32* | cegcc*)
11157       # When not using gcc, we currently assume that we are using
11158       # Microsoft Visual C++.
11159       # hardcode_libdir_flag_spec is actually meaningless, as there is
11160       # no search path for DLLs.
11161       case $cc_basename in
11162       cl*)
11163         # Native MSVC
11164         hardcode_libdir_flag_spec=' '
11165         allow_undefined_flag=unsupported
11166         always_export_symbols=yes
11167         file_list_spec='@'
11168         # Tell ltmain to make .lib files, not .a files.
11169         libext=lib
11170         # Tell ltmain to make .dll files, not .so files.
11171         shrext_cmds=".dll"
11172         # FIXME: Setting linknames here is a bad hack.
11173         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11174         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11175             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11176           else
11177             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11178           fi~
11179           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11180           linknames='
11181         # The linker will not automatically build a static lib if we build a DLL.
11182         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11183         enable_shared_with_static_runtimes=yes
11184         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11185         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11186         # Don't use ranlib
11187         old_postinstall_cmds='chmod 644 $oldlib'
11188         postlink_cmds='lt_outputfile="@OUTPUT@"~
11189           lt_tool_outputfile="@TOOL_OUTPUT@"~
11190           case $lt_outputfile in
11191             *.exe|*.EXE) ;;
11192             *)
11193               lt_outputfile="$lt_outputfile.exe"
11194               lt_tool_outputfile="$lt_tool_outputfile.exe"
11195               ;;
11196           esac~
11197           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11198             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11199             $RM "$lt_outputfile.manifest";
11200           fi'
11201         ;;
11202       *)
11203         # Assume MSVC wrapper
11204         hardcode_libdir_flag_spec=' '
11205         allow_undefined_flag=unsupported
11206         # Tell ltmain to make .lib files, not .a files.
11207         libext=lib
11208         # Tell ltmain to make .dll files, not .so files.
11209         shrext_cmds=".dll"
11210         # FIXME: Setting linknames here is a bad hack.
11211         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11212         # The linker will automatically build a .lib file if we build a DLL.
11213         old_archive_from_new_cmds='true'
11214         # FIXME: Should let the user specify the lib program.
11215         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11216         enable_shared_with_static_runtimes=yes
11217         ;;
11218       esac
11219       ;;
11220
11221     darwin* | rhapsody*)
11222
11223
11224   archive_cmds_need_lc=no
11225   hardcode_direct=no
11226   hardcode_automatic=yes
11227   hardcode_shlibpath_var=unsupported
11228   if test "$lt_cv_ld_force_load" = "yes"; then
11229     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\"`'
11230
11231   else
11232     whole_archive_flag_spec=''
11233   fi
11234   link_all_deplibs=yes
11235   allow_undefined_flag="$_lt_dar_allow_undefined"
11236   case $cc_basename in
11237      ifort*) _lt_dar_can_shared=yes ;;
11238      *) _lt_dar_can_shared=$GCC ;;
11239   esac
11240   if test "$_lt_dar_can_shared" = "yes"; then
11241     output_verbose_link_cmd=func_echo_all
11242     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11243     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11244     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}"
11245     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}"
11246
11247   else
11248   ld_shlibs=no
11249   fi
11250
11251       ;;
11252
11253     dgux*)
11254       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11255       hardcode_libdir_flag_spec='-L$libdir'
11256       hardcode_shlibpath_var=no
11257       ;;
11258
11259     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11260     # support.  Future versions do this automatically, but an explicit c++rt0.o
11261     # does not break anything, and helps significantly (at the cost of a little
11262     # extra space).
11263     freebsd2.2*)
11264       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11265       hardcode_libdir_flag_spec='-R$libdir'
11266       hardcode_direct=yes
11267       hardcode_shlibpath_var=no
11268       ;;
11269
11270     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11271     freebsd2.*)
11272       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11273       hardcode_direct=yes
11274       hardcode_minus_L=yes
11275       hardcode_shlibpath_var=no
11276       ;;
11277
11278     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11279     freebsd* | dragonfly*)
11280       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11281       hardcode_libdir_flag_spec='-R$libdir'
11282       hardcode_direct=yes
11283       hardcode_shlibpath_var=no
11284       ;;
11285
11286     hpux9*)
11287       if test "$GCC" = yes; then
11288         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'
11289       else
11290         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'
11291       fi
11292       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11293       hardcode_libdir_separator=:
11294       hardcode_direct=yes
11295
11296       # hardcode_minus_L: Not really in the search PATH,
11297       # but as the default location of the library.
11298       hardcode_minus_L=yes
11299       export_dynamic_flag_spec='${wl}-E'
11300       ;;
11301
11302     hpux10*)
11303       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11304         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11305       else
11306         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11307       fi
11308       if test "$with_gnu_ld" = no; then
11309         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11310         hardcode_libdir_separator=:
11311         hardcode_direct=yes
11312         hardcode_direct_absolute=yes
11313         export_dynamic_flag_spec='${wl}-E'
11314         # hardcode_minus_L: Not really in the search PATH,
11315         # but as the default location of the library.
11316         hardcode_minus_L=yes
11317       fi
11318       ;;
11319
11320     hpux11*)
11321       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11322         case $host_cpu in
11323         hppa*64*)
11324           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11325           ;;
11326         ia64*)
11327           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11328           ;;
11329         *)
11330           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11331           ;;
11332         esac
11333       else
11334         case $host_cpu in
11335         hppa*64*)
11336           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11337           ;;
11338         ia64*)
11339           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11340           ;;
11341         *)
11342
11343           # Older versions of the 11.00 compiler do not understand -b yet
11344           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11345           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11346 $as_echo_n "checking if $CC understands -b... " >&6; }
11347 if ${lt_cv_prog_compiler__b+:} false; then :
11348   $as_echo_n "(cached) " >&6
11349 else
11350   lt_cv_prog_compiler__b=no
11351    save_LDFLAGS="$LDFLAGS"
11352    LDFLAGS="$LDFLAGS -b"
11353    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11354    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11355      # The linker can only warn and ignore the option if not recognized
11356      # So say no if there are warnings
11357      if test -s conftest.err; then
11358        # Append any errors to the config.log.
11359        cat conftest.err 1>&5
11360        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11361        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11362        if diff conftest.exp conftest.er2 >/dev/null; then
11363          lt_cv_prog_compiler__b=yes
11364        fi
11365      else
11366        lt_cv_prog_compiler__b=yes
11367      fi
11368    fi
11369    $RM -r conftest*
11370    LDFLAGS="$save_LDFLAGS"
11371
11372 fi
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11374 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11375
11376 if test x"$lt_cv_prog_compiler__b" = xyes; then
11377     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11378 else
11379     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11380 fi
11381
11382           ;;
11383         esac
11384       fi
11385       if test "$with_gnu_ld" = no; then
11386         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11387         hardcode_libdir_separator=:
11388
11389         case $host_cpu in
11390         hppa*64*|ia64*)
11391           hardcode_direct=no
11392           hardcode_shlibpath_var=no
11393           ;;
11394         *)
11395           hardcode_direct=yes
11396           hardcode_direct_absolute=yes
11397           export_dynamic_flag_spec='${wl}-E'
11398
11399           # hardcode_minus_L: Not really in the search PATH,
11400           # but as the default location of the library.
11401           hardcode_minus_L=yes
11402           ;;
11403         esac
11404       fi
11405       ;;
11406
11407     irix5* | irix6* | nonstopux*)
11408       if test "$GCC" = yes; then
11409         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'
11410         # Try to use the -exported_symbol ld option, if it does not
11411         # work, assume that -exports_file does not work either and
11412         # implicitly export all symbols.
11413         # This should be the same for all languages, so no per-tag cache variable.
11414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11415 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11416 if ${lt_cv_irix_exported_symbol+:} false; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419   save_LDFLAGS="$LDFLAGS"
11420            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11421            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h.  */
11423 int foo (void) { return 0; }
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426   lt_cv_irix_exported_symbol=yes
11427 else
11428   lt_cv_irix_exported_symbol=no
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431     conftest$ac_exeext conftest.$ac_ext
11432            LDFLAGS="$save_LDFLAGS"
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11435 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11436         if test "$lt_cv_irix_exported_symbol" = yes; then
11437           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'
11438         fi
11439       else
11440         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'
11441         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'
11442       fi
11443       archive_cmds_need_lc='no'
11444       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11445       hardcode_libdir_separator=:
11446       inherit_rpath=yes
11447       link_all_deplibs=yes
11448       ;;
11449
11450     netbsd* | netbsdelf*-gnu)
11451       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11452         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11453       else
11454         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11455       fi
11456       hardcode_libdir_flag_spec='-R$libdir'
11457       hardcode_direct=yes
11458       hardcode_shlibpath_var=no
11459       ;;
11460
11461     newsos6)
11462       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11463       hardcode_direct=yes
11464       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11465       hardcode_libdir_separator=:
11466       hardcode_shlibpath_var=no
11467       ;;
11468
11469     *nto* | *qnx*)
11470       ;;
11471
11472     openbsd*)
11473       if test -f /usr/libexec/ld.so; then
11474         hardcode_direct=yes
11475         hardcode_shlibpath_var=no
11476         hardcode_direct_absolute=yes
11477         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11478           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11479           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11480           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11481           export_dynamic_flag_spec='${wl}-E'
11482         else
11483           case $host_os in
11484            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11485              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11486              hardcode_libdir_flag_spec='-R$libdir'
11487              ;;
11488            *)
11489              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11490              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11491              ;;
11492           esac
11493         fi
11494       else
11495         ld_shlibs=no
11496       fi
11497       ;;
11498
11499     os2*)
11500       hardcode_libdir_flag_spec='-L$libdir'
11501       hardcode_minus_L=yes
11502       allow_undefined_flag=unsupported
11503       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'
11504       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11505       ;;
11506
11507     osf3*)
11508       if test "$GCC" = yes; then
11509         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11510         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'
11511       else
11512         allow_undefined_flag=' -expect_unresolved \*'
11513         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'
11514       fi
11515       archive_cmds_need_lc='no'
11516       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11517       hardcode_libdir_separator=:
11518       ;;
11519
11520     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11521       if test "$GCC" = yes; then
11522         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11523         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'
11524         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11525       else
11526         allow_undefined_flag=' -expect_unresolved \*'
11527         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'
11528         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~
11529         $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'
11530
11531         # Both c and cxx compiler support -rpath directly
11532         hardcode_libdir_flag_spec='-rpath $libdir'
11533       fi
11534       archive_cmds_need_lc='no'
11535       hardcode_libdir_separator=:
11536       ;;
11537
11538     solaris*)
11539       no_undefined_flag=' -z defs'
11540       if test "$GCC" = yes; then
11541         wlarc='${wl}'
11542         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11543         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11544           $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'
11545       else
11546         case `$CC -V 2>&1` in
11547         *"Compilers 5.0"*)
11548           wlarc=''
11549           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11550           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11551           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11552           ;;
11553         *)
11554           wlarc='${wl}'
11555           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11556           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11557           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11558           ;;
11559         esac
11560       fi
11561       hardcode_libdir_flag_spec='-R$libdir'
11562       hardcode_shlibpath_var=no
11563       case $host_os in
11564       solaris2.[0-5] | solaris2.[0-5].*) ;;
11565       *)
11566         # The compiler driver will combine and reorder linker options,
11567         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11568         # but is careful enough not to reorder.
11569         # Supported since Solaris 2.6 (maybe 2.5.1?)
11570         if test "$GCC" = yes; then
11571           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11572         else
11573           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11574         fi
11575         ;;
11576       esac
11577       link_all_deplibs=yes
11578       ;;
11579
11580     sunos4*)
11581       if test "x$host_vendor" = xsequent; then
11582         # Use $CC to link under sequent, because it throws in some extra .o
11583         # files that make .init and .fini sections work.
11584         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11585       else
11586         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11587       fi
11588       hardcode_libdir_flag_spec='-L$libdir'
11589       hardcode_direct=yes
11590       hardcode_minus_L=yes
11591       hardcode_shlibpath_var=no
11592       ;;
11593
11594     sysv4)
11595       case $host_vendor in
11596         sni)
11597           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11598           hardcode_direct=yes # is this really true???
11599         ;;
11600         siemens)
11601           ## LD is ld it makes a PLAMLIB
11602           ## CC just makes a GrossModule.
11603           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11604           reload_cmds='$CC -r -o $output$reload_objs'
11605           hardcode_direct=no
11606         ;;
11607         motorola)
11608           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11609           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11610         ;;
11611       esac
11612       runpath_var='LD_RUN_PATH'
11613       hardcode_shlibpath_var=no
11614       ;;
11615
11616     sysv4.3*)
11617       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11618       hardcode_shlibpath_var=no
11619       export_dynamic_flag_spec='-Bexport'
11620       ;;
11621
11622     sysv4*MP*)
11623       if test -d /usr/nec; then
11624         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11625         hardcode_shlibpath_var=no
11626         runpath_var=LD_RUN_PATH
11627         hardcode_runpath_var=yes
11628         ld_shlibs=yes
11629       fi
11630       ;;
11631
11632     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11633       no_undefined_flag='${wl}-z,text'
11634       archive_cmds_need_lc=no
11635       hardcode_shlibpath_var=no
11636       runpath_var='LD_RUN_PATH'
11637
11638       if test "$GCC" = yes; then
11639         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11640         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11641       else
11642         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11643         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11644       fi
11645       ;;
11646
11647     sysv5* | sco3.2v5* | sco5v6*)
11648       # Note: We can NOT use -z defs as we might desire, because we do not
11649       # link with -lc, and that would cause any symbols used from libc to
11650       # always be unresolved, which means just about no library would
11651       # ever link correctly.  If we're not using GNU ld we use -z text
11652       # though, which does catch some bad symbols but isn't as heavy-handed
11653       # as -z defs.
11654       no_undefined_flag='${wl}-z,text'
11655       allow_undefined_flag='${wl}-z,nodefs'
11656       archive_cmds_need_lc=no
11657       hardcode_shlibpath_var=no
11658       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11659       hardcode_libdir_separator=':'
11660       link_all_deplibs=yes
11661       export_dynamic_flag_spec='${wl}-Bexport'
11662       runpath_var='LD_RUN_PATH'
11663
11664       if test "$GCC" = yes; then
11665         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11666         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11667       else
11668         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11669         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11670       fi
11671       ;;
11672
11673     uts4*)
11674       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11675       hardcode_libdir_flag_spec='-L$libdir'
11676       hardcode_shlibpath_var=no
11677       ;;
11678
11679     *)
11680       ld_shlibs=no
11681       ;;
11682     esac
11683
11684     if test x$host_vendor = xsni; then
11685       case $host in
11686       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11687         export_dynamic_flag_spec='${wl}-Blargedynsym'
11688         ;;
11689       esac
11690     fi
11691   fi
11692
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11694 $as_echo "$ld_shlibs" >&6; }
11695 test "$ld_shlibs" = no && can_build_shared=no
11696
11697 with_gnu_ld=$with_gnu_ld
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713 #
11714 # Do we need to explicitly link libc?
11715 #
11716 case "x$archive_cmds_need_lc" in
11717 x|xyes)
11718   # Assume -lc should be added
11719   archive_cmds_need_lc=yes
11720
11721   if test "$enable_shared" = yes && test "$GCC" = yes; then
11722     case $archive_cmds in
11723     *'~'*)
11724       # FIXME: we may have to deal with multi-command sequences.
11725       ;;
11726     '$CC '*)
11727       # Test whether the compiler implicitly links with -lc since on some
11728       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11729       # to ld, don't add -lc before -lgcc.
11730       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11731 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11732 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11733   $as_echo_n "(cached) " >&6
11734 else
11735   $RM conftest*
11736         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11737
11738         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11739   (eval $ac_compile) 2>&5
11740   ac_status=$?
11741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11742   test $ac_status = 0; } 2>conftest.err; then
11743           soname=conftest
11744           lib=conftest
11745           libobjs=conftest.$ac_objext
11746           deplibs=
11747           wl=$lt_prog_compiler_wl
11748           pic_flag=$lt_prog_compiler_pic
11749           compiler_flags=-v
11750           linker_flags=-v
11751           verstring=
11752           output_objdir=.
11753           libname=conftest
11754           lt_save_allow_undefined_flag=$allow_undefined_flag
11755           allow_undefined_flag=
11756           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11757   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11758   ac_status=$?
11759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11760   test $ac_status = 0; }
11761           then
11762             lt_cv_archive_cmds_need_lc=no
11763           else
11764             lt_cv_archive_cmds_need_lc=yes
11765           fi
11766           allow_undefined_flag=$lt_save_allow_undefined_flag
11767         else
11768           cat conftest.err 1>&5
11769         fi
11770         $RM conftest*
11771
11772 fi
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11774 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11775       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11776       ;;
11777     esac
11778   fi
11779   ;;
11780 esac
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11934 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11935
11936 if test "$GCC" = yes; then
11937   case $host_os in
11938     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11939     *) lt_awk_arg="/^libraries:/" ;;
11940   esac
11941   case $host_os in
11942     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11943     *) lt_sed_strip_eq="s,=/,/,g" ;;
11944   esac
11945   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11946   case $lt_search_path_spec in
11947   *\;*)
11948     # if the path contains ";" then we assume it to be the separator
11949     # otherwise default to the standard path separator (i.e. ":") - it is
11950     # assumed that no part of a normal pathname contains ";" but that should
11951     # okay in the real world where ";" in dirpaths is itself problematic.
11952     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11953     ;;
11954   *)
11955     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11956     ;;
11957   esac
11958   # Ok, now we have the path, separated by spaces, we can step through it
11959   # and add multilib dir if necessary.
11960   lt_tmp_lt_search_path_spec=
11961   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11962   for lt_sys_path in $lt_search_path_spec; do
11963     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11964       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11965     else
11966       test -d "$lt_sys_path" && \
11967         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11968     fi
11969   done
11970   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11971 BEGIN {RS=" "; FS="/|\n";} {
11972   lt_foo="";
11973   lt_count=0;
11974   for (lt_i = NF; lt_i > 0; lt_i--) {
11975     if ($lt_i != "" && $lt_i != ".") {
11976       if ($lt_i == "..") {
11977         lt_count++;
11978       } else {
11979         if (lt_count == 0) {
11980           lt_foo="/" $lt_i lt_foo;
11981         } else {
11982           lt_count--;
11983         }
11984       }
11985     }
11986   }
11987   if (lt_foo != "") { lt_freq[lt_foo]++; }
11988   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11989 }'`
11990   # AWK program above erroneously prepends '/' to C:/dos/paths
11991   # for these hosts.
11992   case $host_os in
11993     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11994       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11995   esac
11996   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11997 else
11998   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11999 fi
12000 library_names_spec=
12001 libname_spec='lib$name'
12002 soname_spec=
12003 shrext_cmds=".so"
12004 postinstall_cmds=
12005 postuninstall_cmds=
12006 finish_cmds=
12007 finish_eval=
12008 shlibpath_var=
12009 shlibpath_overrides_runpath=unknown
12010 version_type=none
12011 dynamic_linker="$host_os ld.so"
12012 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12013 need_lib_prefix=unknown
12014 hardcode_into_libs=no
12015
12016 # when you set need_version to no, make sure it does not cause -set_version
12017 # flags to be left without arguments
12018 need_version=unknown
12019
12020 case $host_os in
12021 aix3*)
12022   version_type=linux # correct to gnu/linux during the next big refactor
12023   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12024   shlibpath_var=LIBPATH
12025
12026   # AIX 3 has no versioning support, so we append a major version to the name.
12027   soname_spec='${libname}${release}${shared_ext}$major'
12028   ;;
12029
12030 aix[4-9]*)
12031   version_type=linux # correct to gnu/linux during the next big refactor
12032   need_lib_prefix=no
12033   need_version=no
12034   hardcode_into_libs=yes
12035   if test "$host_cpu" = ia64; then
12036     # AIX 5 supports IA64
12037     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12038     shlibpath_var=LD_LIBRARY_PATH
12039   else
12040     # With GCC up to 2.95.x, collect2 would create an import file
12041     # for dependence libraries.  The import file would start with
12042     # the line `#! .'.  This would cause the generated library to
12043     # depend on `.', always an invalid library.  This was fixed in
12044     # development snapshots of GCC prior to 3.0.
12045     case $host_os in
12046       aix4 | aix4.[01] | aix4.[01].*)
12047       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12048            echo ' yes '
12049            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12050         :
12051       else
12052         can_build_shared=no
12053       fi
12054       ;;
12055     esac
12056     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12057     # soname into executable. Probably we can add versioning support to
12058     # collect2, so additional links can be useful in future.
12059     if test "$aix_use_runtimelinking" = yes; then
12060       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12061       # instead of lib<name>.a to let people know that these are not
12062       # typical AIX shared libraries.
12063       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12064     else
12065       # We preserve .a as extension for shared libraries through AIX4.2
12066       # and later when we are not doing run time linking.
12067       library_names_spec='${libname}${release}.a $libname.a'
12068       soname_spec='${libname}${release}${shared_ext}$major'
12069     fi
12070     shlibpath_var=LIBPATH
12071   fi
12072   ;;
12073
12074 amigaos*)
12075   case $host_cpu in
12076   powerpc)
12077     # Since July 2007 AmigaOS4 officially supports .so libraries.
12078     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080     ;;
12081   m68k)
12082     library_names_spec='$libname.ixlibrary $libname.a'
12083     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12084     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'
12085     ;;
12086   esac
12087   ;;
12088
12089 beos*)
12090   library_names_spec='${libname}${shared_ext}'
12091   dynamic_linker="$host_os ld.so"
12092   shlibpath_var=LIBRARY_PATH
12093   ;;
12094
12095 bsdi[45]*)
12096   version_type=linux # correct to gnu/linux during the next big refactor
12097   need_version=no
12098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12099   soname_spec='${libname}${release}${shared_ext}$major'
12100   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12101   shlibpath_var=LD_LIBRARY_PATH
12102   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12103   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12104   # the default ld.so.conf also contains /usr/contrib/lib and
12105   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12106   # libtool to hard-code these into programs
12107   ;;
12108
12109 cygwin* | mingw* | pw32* | cegcc*)
12110   version_type=windows
12111   shrext_cmds=".dll"
12112   need_version=no
12113   need_lib_prefix=no
12114
12115   case $GCC,$cc_basename in
12116   yes,*)
12117     # gcc
12118     library_names_spec='$libname.dll.a'
12119     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12120     postinstall_cmds='base_file=`basename \${file}`~
12121       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12122       dldir=$destdir/`dirname \$dlpath`~
12123       test -d \$dldir || mkdir -p \$dldir~
12124       $install_prog $dir/$dlname \$dldir/$dlname~
12125       chmod a+x \$dldir/$dlname~
12126       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12127         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12128       fi'
12129     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12130       dlpath=$dir/\$dldll~
12131        $RM \$dlpath'
12132     shlibpath_overrides_runpath=yes
12133
12134     case $host_os in
12135     cygwin*)
12136       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12137       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12138
12139       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12140       ;;
12141     mingw* | cegcc*)
12142       # MinGW DLLs use traditional 'lib' prefix
12143       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12144       ;;
12145     pw32*)
12146       # pw32 DLLs use 'pw' prefix rather than 'lib'
12147       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12148       ;;
12149     esac
12150     dynamic_linker='Win32 ld.exe'
12151     ;;
12152
12153   *,cl*)
12154     # Native MSVC
12155     libname_spec='$name'
12156     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12157     library_names_spec='${libname}.dll.lib'
12158
12159     case $build_os in
12160     mingw*)
12161       sys_lib_search_path_spec=
12162       lt_save_ifs=$IFS
12163       IFS=';'
12164       for lt_path in $LIB
12165       do
12166         IFS=$lt_save_ifs
12167         # Let DOS variable expansion print the short 8.3 style file name.
12168         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12169         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12170       done
12171       IFS=$lt_save_ifs
12172       # Convert to MSYS style.
12173       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12174       ;;
12175     cygwin*)
12176       # Convert to unix form, then to dos form, then back to unix form
12177       # but this time dos style (no spaces!) so that the unix form looks
12178       # like /cygdrive/c/PROGRA~1:/cygdr...
12179       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12180       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12181       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12182       ;;
12183     *)
12184       sys_lib_search_path_spec="$LIB"
12185       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12186         # It is most probably a Windows format PATH.
12187         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12188       else
12189         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12190       fi
12191       # FIXME: find the short name or the path components, as spaces are
12192       # common. (e.g. "Program Files" -> "PROGRA~1")
12193       ;;
12194     esac
12195
12196     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12197     postinstall_cmds='base_file=`basename \${file}`~
12198       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12199       dldir=$destdir/`dirname \$dlpath`~
12200       test -d \$dldir || mkdir -p \$dldir~
12201       $install_prog $dir/$dlname \$dldir/$dlname'
12202     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12203       dlpath=$dir/\$dldll~
12204        $RM \$dlpath'
12205     shlibpath_overrides_runpath=yes
12206     dynamic_linker='Win32 link.exe'
12207     ;;
12208
12209   *)
12210     # Assume MSVC wrapper
12211     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12212     dynamic_linker='Win32 ld.exe'
12213     ;;
12214   esac
12215   # FIXME: first we should search . and the directory the executable is in
12216   shlibpath_var=PATH
12217   ;;
12218
12219 darwin* | rhapsody*)
12220   dynamic_linker="$host_os dyld"
12221   version_type=darwin
12222   need_lib_prefix=no
12223   need_version=no
12224   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12225   soname_spec='${libname}${release}${major}$shared_ext'
12226   shlibpath_overrides_runpath=yes
12227   shlibpath_var=DYLD_LIBRARY_PATH
12228   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12229
12230   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12231   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12232   ;;
12233
12234 dgux*)
12235   version_type=linux # correct to gnu/linux during the next big refactor
12236   need_lib_prefix=no
12237   need_version=no
12238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12239   soname_spec='${libname}${release}${shared_ext}$major'
12240   shlibpath_var=LD_LIBRARY_PATH
12241   ;;
12242
12243 freebsd* | dragonfly*)
12244   # DragonFly does not have aout.  When/if they implement a new
12245   # versioning mechanism, adjust this.
12246   if test -x /usr/bin/objformat; then
12247     objformat=`/usr/bin/objformat`
12248   else
12249     case $host_os in
12250     freebsd[23].*) objformat=aout ;;
12251     *) objformat=elf ;;
12252     esac
12253   fi
12254   version_type=freebsd-$objformat
12255   case $version_type in
12256     freebsd-elf*)
12257       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12258       need_version=no
12259       need_lib_prefix=no
12260       ;;
12261     freebsd-*)
12262       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12263       need_version=yes
12264       ;;
12265   esac
12266   shlibpath_var=LD_LIBRARY_PATH
12267   case $host_os in
12268   freebsd2.*)
12269     shlibpath_overrides_runpath=yes
12270     ;;
12271   freebsd3.[01]* | freebsdelf3.[01]*)
12272     shlibpath_overrides_runpath=yes
12273     hardcode_into_libs=yes
12274     ;;
12275   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12276   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12277     shlibpath_overrides_runpath=no
12278     hardcode_into_libs=yes
12279     ;;
12280   *) # from 4.6 on, and DragonFly
12281     shlibpath_overrides_runpath=yes
12282     hardcode_into_libs=yes
12283     ;;
12284   esac
12285   ;;
12286
12287 gnu*)
12288   version_type=linux # correct to gnu/linux during the next big refactor
12289   need_lib_prefix=no
12290   need_version=no
12291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12292   soname_spec='${libname}${release}${shared_ext}$major'
12293   shlibpath_var=LD_LIBRARY_PATH
12294   shlibpath_overrides_runpath=no
12295   hardcode_into_libs=yes
12296   ;;
12297
12298 haiku*)
12299   version_type=linux # correct to gnu/linux during the next big refactor
12300   need_lib_prefix=no
12301   need_version=no
12302   dynamic_linker="$host_os runtime_loader"
12303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12304   soname_spec='${libname}${release}${shared_ext}$major'
12305   shlibpath_var=LIBRARY_PATH
12306   shlibpath_overrides_runpath=yes
12307   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12308   hardcode_into_libs=yes
12309   ;;
12310
12311 hpux9* | hpux10* | hpux11*)
12312   # Give a soname corresponding to the major version so that dld.sl refuses to
12313   # link against other versions.
12314   version_type=sunos
12315   need_lib_prefix=no
12316   need_version=no
12317   case $host_cpu in
12318   ia64*)
12319     shrext_cmds='.so'
12320     hardcode_into_libs=yes
12321     dynamic_linker="$host_os dld.so"
12322     shlibpath_var=LD_LIBRARY_PATH
12323     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325     soname_spec='${libname}${release}${shared_ext}$major'
12326     if test "X$HPUX_IA64_MODE" = X32; then
12327       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12328     else
12329       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12330     fi
12331     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12332     ;;
12333   hppa*64*)
12334     shrext_cmds='.sl'
12335     hardcode_into_libs=yes
12336     dynamic_linker="$host_os dld.sl"
12337     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12338     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340     soname_spec='${libname}${release}${shared_ext}$major'
12341     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12343     ;;
12344   *)
12345     shrext_cmds='.sl'
12346     dynamic_linker="$host_os dld.sl"
12347     shlibpath_var=SHLIB_PATH
12348     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12350     soname_spec='${libname}${release}${shared_ext}$major'
12351     ;;
12352   esac
12353   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12354   postinstall_cmds='chmod 555 $lib'
12355   # or fails outright, so override atomically:
12356   install_override_mode=555
12357   ;;
12358
12359 interix[3-9]*)
12360   version_type=linux # correct to gnu/linux during the next big refactor
12361   need_lib_prefix=no
12362   need_version=no
12363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12364   soname_spec='${libname}${release}${shared_ext}$major'
12365   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12366   shlibpath_var=LD_LIBRARY_PATH
12367   shlibpath_overrides_runpath=no
12368   hardcode_into_libs=yes
12369   ;;
12370
12371 irix5* | irix6* | nonstopux*)
12372   case $host_os in
12373     nonstopux*) version_type=nonstopux ;;
12374     *)
12375         if test "$lt_cv_prog_gnu_ld" = yes; then
12376                 version_type=linux # correct to gnu/linux during the next big refactor
12377         else
12378                 version_type=irix
12379         fi ;;
12380   esac
12381   need_lib_prefix=no
12382   need_version=no
12383   soname_spec='${libname}${release}${shared_ext}$major'
12384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12385   case $host_os in
12386   irix5* | nonstopux*)
12387     libsuff= shlibsuff=
12388     ;;
12389   *)
12390     case $LD in # libtool.m4 will add one of these switches to LD
12391     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12392       libsuff= shlibsuff= libmagic=32-bit;;
12393     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12394       libsuff=32 shlibsuff=N32 libmagic=N32;;
12395     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12396       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12397     *) libsuff= shlibsuff= libmagic=never-match;;
12398     esac
12399     ;;
12400   esac
12401   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12402   shlibpath_overrides_runpath=no
12403   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12404   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12405   hardcode_into_libs=yes
12406   ;;
12407
12408 # No shared lib support for Linux oldld, aout, or coff.
12409 linux*oldld* | linux*aout* | linux*coff*)
12410   dynamic_linker=no
12411   ;;
12412
12413 # This must be glibc/ELF.
12414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12415   version_type=linux # correct to gnu/linux during the next big refactor
12416   need_lib_prefix=no
12417   need_version=no
12418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419   soname_spec='${libname}${release}${shared_ext}$major'
12420   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12421   shlibpath_var=LD_LIBRARY_PATH
12422   shlibpath_overrides_runpath=no
12423
12424   # Some binutils ld are patched to set DT_RUNPATH
12425   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428   lt_cv_shlibpath_overrides_runpath=no
12429     save_LDFLAGS=$LDFLAGS
12430     save_libdir=$libdir
12431     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12432          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h.  */
12435
12436 int
12437 main ()
12438 {
12439
12440   ;
12441   return 0;
12442 }
12443 _ACEOF
12444 if ac_fn_c_try_link "$LINENO"; then :
12445   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12446   lt_cv_shlibpath_overrides_runpath=yes
12447 fi
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext \
12450     conftest$ac_exeext conftest.$ac_ext
12451     LDFLAGS=$save_LDFLAGS
12452     libdir=$save_libdir
12453
12454 fi
12455
12456   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12457
12458   # This implies no fast_install, which is unacceptable.
12459   # Some rework will be needed to allow for fast_install
12460   # before this can be enabled.
12461   hardcode_into_libs=yes
12462
12463   # Append ld.so.conf contents to the search path
12464   if test -f /etc/ld.so.conf; then
12465     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' ' '`
12466     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12467   fi
12468
12469   # We used to test for /lib/ld.so.1 and disable shared libraries on
12470   # powerpc, because MkLinux only supported shared libraries with the
12471   # GNU dynamic linker.  Since this was broken with cross compilers,
12472   # most powerpc-linux boxes support dynamic linking these days and
12473   # people can always --disable-shared, the test was removed, and we
12474   # assume the GNU/Linux dynamic linker is in use.
12475   dynamic_linker='GNU/Linux ld.so'
12476   ;;
12477
12478 netbsdelf*-gnu)
12479   version_type=linux
12480   need_lib_prefix=no
12481   need_version=no
12482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12483   soname_spec='${libname}${release}${shared_ext}$major'
12484   shlibpath_var=LD_LIBRARY_PATH
12485   shlibpath_overrides_runpath=no
12486   hardcode_into_libs=yes
12487   dynamic_linker='NetBSD ld.elf_so'
12488   ;;
12489
12490 netbsd*)
12491   version_type=sunos
12492   need_lib_prefix=no
12493   need_version=no
12494   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12496     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12497     dynamic_linker='NetBSD (a.out) ld.so'
12498   else
12499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12500     soname_spec='${libname}${release}${shared_ext}$major'
12501     dynamic_linker='NetBSD ld.elf_so'
12502   fi
12503   shlibpath_var=LD_LIBRARY_PATH
12504   shlibpath_overrides_runpath=yes
12505   hardcode_into_libs=yes
12506   ;;
12507
12508 newsos6)
12509   version_type=linux # correct to gnu/linux during the next big refactor
12510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511   shlibpath_var=LD_LIBRARY_PATH
12512   shlibpath_overrides_runpath=yes
12513   ;;
12514
12515 *nto* | *qnx*)
12516   version_type=qnx
12517   need_lib_prefix=no
12518   need_version=no
12519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12520   soname_spec='${libname}${release}${shared_ext}$major'
12521   shlibpath_var=LD_LIBRARY_PATH
12522   shlibpath_overrides_runpath=no
12523   hardcode_into_libs=yes
12524   dynamic_linker='ldqnx.so'
12525   ;;
12526
12527 openbsd*)
12528   version_type=sunos
12529   sys_lib_dlsearch_path_spec="/usr/lib"
12530   need_lib_prefix=no
12531   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12532   case $host_os in
12533     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12534     *)                          need_version=no  ;;
12535   esac
12536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12537   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12538   shlibpath_var=LD_LIBRARY_PATH
12539   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12540     case $host_os in
12541       openbsd2.[89] | openbsd2.[89].*)
12542         shlibpath_overrides_runpath=no
12543         ;;
12544       *)
12545         shlibpath_overrides_runpath=yes
12546         ;;
12547       esac
12548   else
12549     shlibpath_overrides_runpath=yes
12550   fi
12551   ;;
12552
12553 os2*)
12554   libname_spec='$name'
12555   shrext_cmds=".dll"
12556   need_lib_prefix=no
12557   library_names_spec='$libname${shared_ext} $libname.a'
12558   dynamic_linker='OS/2 ld.exe'
12559   shlibpath_var=LIBPATH
12560   ;;
12561
12562 osf3* | osf4* | osf5*)
12563   version_type=osf
12564   need_lib_prefix=no
12565   need_version=no
12566   soname_spec='${libname}${release}${shared_ext}$major'
12567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12568   shlibpath_var=LD_LIBRARY_PATH
12569   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12570   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12571   ;;
12572
12573 rdos*)
12574   dynamic_linker=no
12575   ;;
12576
12577 solaris*)
12578   version_type=linux # correct to gnu/linux during the next big refactor
12579   need_lib_prefix=no
12580   need_version=no
12581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12582   soname_spec='${libname}${release}${shared_ext}$major'
12583   shlibpath_var=LD_LIBRARY_PATH
12584   shlibpath_overrides_runpath=yes
12585   hardcode_into_libs=yes
12586   # ldd complains unless libraries are executable
12587   postinstall_cmds='chmod +x $lib'
12588   ;;
12589
12590 sunos4*)
12591   version_type=sunos
12592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12593   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12594   shlibpath_var=LD_LIBRARY_PATH
12595   shlibpath_overrides_runpath=yes
12596   if test "$with_gnu_ld" = yes; then
12597     need_lib_prefix=no
12598   fi
12599   need_version=yes
12600   ;;
12601
12602 sysv4 | sysv4.3*)
12603   version_type=linux # correct to gnu/linux during the next big refactor
12604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12605   soname_spec='${libname}${release}${shared_ext}$major'
12606   shlibpath_var=LD_LIBRARY_PATH
12607   case $host_vendor in
12608     sni)
12609       shlibpath_overrides_runpath=no
12610       need_lib_prefix=no
12611       runpath_var=LD_RUN_PATH
12612       ;;
12613     siemens)
12614       need_lib_prefix=no
12615       ;;
12616     motorola)
12617       need_lib_prefix=no
12618       need_version=no
12619       shlibpath_overrides_runpath=no
12620       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12621       ;;
12622   esac
12623   ;;
12624
12625 sysv4*MP*)
12626   if test -d /usr/nec ;then
12627     version_type=linux # correct to gnu/linux during the next big refactor
12628     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12629     soname_spec='$libname${shared_ext}.$major'
12630     shlibpath_var=LD_LIBRARY_PATH
12631   fi
12632   ;;
12633
12634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12635   version_type=freebsd-elf
12636   need_lib_prefix=no
12637   need_version=no
12638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12639   soname_spec='${libname}${release}${shared_ext}$major'
12640   shlibpath_var=LD_LIBRARY_PATH
12641   shlibpath_overrides_runpath=yes
12642   hardcode_into_libs=yes
12643   if test "$with_gnu_ld" = yes; then
12644     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12645   else
12646     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12647     case $host_os in
12648       sco3.2v5*)
12649         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12650         ;;
12651     esac
12652   fi
12653   sys_lib_dlsearch_path_spec='/usr/lib'
12654   ;;
12655
12656 tpf*)
12657   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12658   version_type=linux # correct to gnu/linux during the next big refactor
12659   need_lib_prefix=no
12660   need_version=no
12661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12662   shlibpath_var=LD_LIBRARY_PATH
12663   shlibpath_overrides_runpath=no
12664   hardcode_into_libs=yes
12665   ;;
12666
12667 uts4*)
12668   version_type=linux # correct to gnu/linux during the next big refactor
12669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12670   soname_spec='${libname}${release}${shared_ext}$major'
12671   shlibpath_var=LD_LIBRARY_PATH
12672   ;;
12673
12674 *)
12675   dynamic_linker=no
12676   ;;
12677 esac
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12679 $as_echo "$dynamic_linker" >&6; }
12680 test "$dynamic_linker" = no && can_build_shared=no
12681
12682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12683 if test "$GCC" = yes; then
12684   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12685 fi
12686
12687 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12688   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12689 fi
12690 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12691   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12692 fi
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12786 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12787 hardcode_action=
12788 if test -n "$hardcode_libdir_flag_spec" ||
12789    test -n "$runpath_var" ||
12790    test "X$hardcode_automatic" = "Xyes" ; then
12791
12792   # We can hardcode non-existent directories.
12793   if test "$hardcode_direct" != no &&
12794      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12795      # have to relink, otherwise we might link with an installed library
12796      # when we should be linking with a yet-to-be-installed one
12797      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12798      test "$hardcode_minus_L" != no; then
12799     # Linking always hardcodes the temporary library directory.
12800     hardcode_action=relink
12801   else
12802     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12803     hardcode_action=immediate
12804   fi
12805 else
12806   # We cannot hardcode anything, or else we can only hardcode existing
12807   # directories.
12808   hardcode_action=unsupported
12809 fi
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12811 $as_echo "$hardcode_action" >&6; }
12812
12813 if test "$hardcode_action" = relink ||
12814    test "$inherit_rpath" = yes; then
12815   # Fast installation is not supported
12816   enable_fast_install=no
12817 elif test "$shlibpath_overrides_runpath" = yes ||
12818      test "$enable_shared" = no; then
12819   # Fast installation is not necessary
12820   enable_fast_install=needless
12821 fi
12822
12823
12824
12825
12826
12827
12828   if test "x$enable_dlopen" != xyes; then
12829   enable_dlopen=unknown
12830   enable_dlopen_self=unknown
12831   enable_dlopen_self_static=unknown
12832 else
12833   lt_cv_dlopen=no
12834   lt_cv_dlopen_libs=
12835
12836   case $host_os in
12837   beos*)
12838     lt_cv_dlopen="load_add_on"
12839     lt_cv_dlopen_libs=
12840     lt_cv_dlopen_self=yes
12841     ;;
12842
12843   mingw* | pw32* | cegcc*)
12844     lt_cv_dlopen="LoadLibrary"
12845     lt_cv_dlopen_libs=
12846     ;;
12847
12848   cygwin*)
12849     lt_cv_dlopen="dlopen"
12850     lt_cv_dlopen_libs=
12851     ;;
12852
12853   darwin*)
12854   # if libdl is installed we need to link against it
12855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12856 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12857 if ${ac_cv_lib_dl_dlopen+:} false; then :
12858   $as_echo_n "(cached) " >&6
12859 else
12860   ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-ldl  $LIBS"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h.  */
12864
12865 /* Override any GCC internal prototype to avoid an error.
12866    Use char because int might match the return type of a GCC
12867    builtin and then its argument prototype would still apply.  */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 char dlopen ();
12872 int
12873 main ()
12874 {
12875 return dlopen ();
12876   ;
12877   return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12881   ac_cv_lib_dl_dlopen=yes
12882 else
12883   ac_cv_lib_dl_dlopen=no
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext \
12886     conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12890 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12891 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12892   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12893 else
12894
12895     lt_cv_dlopen="dyld"
12896     lt_cv_dlopen_libs=
12897     lt_cv_dlopen_self=yes
12898
12899 fi
12900
12901     ;;
12902
12903   *)
12904     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12905 if test "x$ac_cv_func_shl_load" = xyes; then :
12906   lt_cv_dlopen="shl_load"
12907 else
12908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12909 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12910 if ${ac_cv_lib_dld_shl_load+:} false; then :
12911   $as_echo_n "(cached) " >&6
12912 else
12913   ac_check_lib_save_LIBS=$LIBS
12914 LIBS="-ldld  $LIBS"
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h.  */
12917
12918 /* Override any GCC internal prototype to avoid an error.
12919    Use char because int might match the return type of a GCC
12920    builtin and then its argument prototype would still apply.  */
12921 #ifdef __cplusplus
12922 extern "C"
12923 #endif
12924 char shl_load ();
12925 int
12926 main ()
12927 {
12928 return shl_load ();
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 if ac_fn_c_try_link "$LINENO"; then :
12934   ac_cv_lib_dld_shl_load=yes
12935 else
12936   ac_cv_lib_dld_shl_load=no
12937 fi
12938 rm -f core conftest.err conftest.$ac_objext \
12939     conftest$ac_exeext conftest.$ac_ext
12940 LIBS=$ac_check_lib_save_LIBS
12941 fi
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12943 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12944 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12945   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12946 else
12947   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12948 if test "x$ac_cv_func_dlopen" = xyes; then :
12949   lt_cv_dlopen="dlopen"
12950 else
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12953 if ${ac_cv_lib_dl_dlopen+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   ac_check_lib_save_LIBS=$LIBS
12957 LIBS="-ldl  $LIBS"
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h.  */
12960
12961 /* Override any GCC internal prototype to avoid an error.
12962    Use char because int might match the return type of a GCC
12963    builtin and then its argument prototype would still apply.  */
12964 #ifdef __cplusplus
12965 extern "C"
12966 #endif
12967 char dlopen ();
12968 int
12969 main ()
12970 {
12971 return dlopen ();
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 if ac_fn_c_try_link "$LINENO"; then :
12977   ac_cv_lib_dl_dlopen=yes
12978 else
12979   ac_cv_lib_dl_dlopen=no
12980 fi
12981 rm -f core conftest.err conftest.$ac_objext \
12982     conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12984 fi
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12987 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12989 else
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12991 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12992 if ${ac_cv_lib_svld_dlopen+:} false; then :
12993   $as_echo_n "(cached) " >&6
12994 else
12995   ac_check_lib_save_LIBS=$LIBS
12996 LIBS="-lsvld  $LIBS"
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h.  */
12999
13000 /* Override any GCC internal prototype to avoid an error.
13001    Use char because int might match the return type of a GCC
13002    builtin and then its argument prototype would still apply.  */
13003 #ifdef __cplusplus
13004 extern "C"
13005 #endif
13006 char dlopen ();
13007 int
13008 main ()
13009 {
13010 return dlopen ();
13011   ;
13012   return 0;
13013 }
13014 _ACEOF
13015 if ac_fn_c_try_link "$LINENO"; then :
13016   ac_cv_lib_svld_dlopen=yes
13017 else
13018   ac_cv_lib_svld_dlopen=no
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext \
13021     conftest$ac_exeext conftest.$ac_ext
13022 LIBS=$ac_check_lib_save_LIBS
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13026 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13027   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13028 else
13029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13031 if ${ac_cv_lib_dld_dld_link+:} false; then :
13032   $as_echo_n "(cached) " >&6
13033 else
13034   ac_check_lib_save_LIBS=$LIBS
13035 LIBS="-ldld  $LIBS"
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h.  */
13038
13039 /* Override any GCC internal prototype to avoid an error.
13040    Use char because int might match the return type of a GCC
13041    builtin and then its argument prototype would still apply.  */
13042 #ifdef __cplusplus
13043 extern "C"
13044 #endif
13045 char dld_link ();
13046 int
13047 main ()
13048 {
13049 return dld_link ();
13050   ;
13051   return 0;
13052 }
13053 _ACEOF
13054 if ac_fn_c_try_link "$LINENO"; then :
13055   ac_cv_lib_dld_dld_link=yes
13056 else
13057   ac_cv_lib_dld_dld_link=no
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext \
13060     conftest$ac_exeext conftest.$ac_ext
13061 LIBS=$ac_check_lib_save_LIBS
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13064 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13065 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13066   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13067 fi
13068
13069
13070 fi
13071
13072
13073 fi
13074
13075
13076 fi
13077
13078
13079 fi
13080
13081
13082 fi
13083
13084     ;;
13085   esac
13086
13087   if test "x$lt_cv_dlopen" != xno; then
13088     enable_dlopen=yes
13089   else
13090     enable_dlopen=no
13091   fi
13092
13093   case $lt_cv_dlopen in
13094   dlopen)
13095     save_CPPFLAGS="$CPPFLAGS"
13096     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13097
13098     save_LDFLAGS="$LDFLAGS"
13099     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13100
13101     save_LIBS="$LIBS"
13102     LIBS="$lt_cv_dlopen_libs $LIBS"
13103
13104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13105 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13106 if ${lt_cv_dlopen_self+:} false; then :
13107   $as_echo_n "(cached) " >&6
13108 else
13109           if test "$cross_compiling" = yes; then :
13110   lt_cv_dlopen_self=cross
13111 else
13112   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13113   lt_status=$lt_dlunknown
13114   cat > conftest.$ac_ext <<_LT_EOF
13115 #line $LINENO "configure"
13116 #include "confdefs.h"
13117
13118 #if HAVE_DLFCN_H
13119 #include <dlfcn.h>
13120 #endif
13121
13122 #include <stdio.h>
13123
13124 #ifdef RTLD_GLOBAL
13125 #  define LT_DLGLOBAL           RTLD_GLOBAL
13126 #else
13127 #  ifdef DL_GLOBAL
13128 #    define LT_DLGLOBAL         DL_GLOBAL
13129 #  else
13130 #    define LT_DLGLOBAL         0
13131 #  endif
13132 #endif
13133
13134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13135    find out it does not work in some platform. */
13136 #ifndef LT_DLLAZY_OR_NOW
13137 #  ifdef RTLD_LAZY
13138 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13139 #  else
13140 #    ifdef DL_LAZY
13141 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13142 #    else
13143 #      ifdef RTLD_NOW
13144 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13145 #      else
13146 #        ifdef DL_NOW
13147 #          define LT_DLLAZY_OR_NOW      DL_NOW
13148 #        else
13149 #          define LT_DLLAZY_OR_NOW      0
13150 #        endif
13151 #      endif
13152 #    endif
13153 #  endif
13154 #endif
13155
13156 /* When -fvisbility=hidden is used, assume the code has been annotated
13157    correspondingly for the symbols needed.  */
13158 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13159 int fnord () __attribute__((visibility("default")));
13160 #endif
13161
13162 int fnord () { return 42; }
13163 int main ()
13164 {
13165   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13166   int status = $lt_dlunknown;
13167
13168   if (self)
13169     {
13170       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13171       else
13172         {
13173           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13174           else puts (dlerror ());
13175         }
13176       /* dlclose (self); */
13177     }
13178   else
13179     puts (dlerror ());
13180
13181   return status;
13182 }
13183 _LT_EOF
13184   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13185   (eval $ac_link) 2>&5
13186   ac_status=$?
13187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13189     (./conftest; exit; ) >&5 2>/dev/null
13190     lt_status=$?
13191     case x$lt_status in
13192       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13193       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13194       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13195     esac
13196   else :
13197     # compilation failed
13198     lt_cv_dlopen_self=no
13199   fi
13200 fi
13201 rm -fr conftest*
13202
13203
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13206 $as_echo "$lt_cv_dlopen_self" >&6; }
13207
13208     if test "x$lt_cv_dlopen_self" = xyes; then
13209       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13210       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13211 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13212 if ${lt_cv_dlopen_self_static+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215           if test "$cross_compiling" = yes; then :
13216   lt_cv_dlopen_self_static=cross
13217 else
13218   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13219   lt_status=$lt_dlunknown
13220   cat > conftest.$ac_ext <<_LT_EOF
13221 #line $LINENO "configure"
13222 #include "confdefs.h"
13223
13224 #if HAVE_DLFCN_H
13225 #include <dlfcn.h>
13226 #endif
13227
13228 #include <stdio.h>
13229
13230 #ifdef RTLD_GLOBAL
13231 #  define LT_DLGLOBAL           RTLD_GLOBAL
13232 #else
13233 #  ifdef DL_GLOBAL
13234 #    define LT_DLGLOBAL         DL_GLOBAL
13235 #  else
13236 #    define LT_DLGLOBAL         0
13237 #  endif
13238 #endif
13239
13240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13241    find out it does not work in some platform. */
13242 #ifndef LT_DLLAZY_OR_NOW
13243 #  ifdef RTLD_LAZY
13244 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13245 #  else
13246 #    ifdef DL_LAZY
13247 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13248 #    else
13249 #      ifdef RTLD_NOW
13250 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13251 #      else
13252 #        ifdef DL_NOW
13253 #          define LT_DLLAZY_OR_NOW      DL_NOW
13254 #        else
13255 #          define LT_DLLAZY_OR_NOW      0
13256 #        endif
13257 #      endif
13258 #    endif
13259 #  endif
13260 #endif
13261
13262 /* When -fvisbility=hidden is used, assume the code has been annotated
13263    correspondingly for the symbols needed.  */
13264 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13265 int fnord () __attribute__((visibility("default")));
13266 #endif
13267
13268 int fnord () { return 42; }
13269 int main ()
13270 {
13271   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13272   int status = $lt_dlunknown;
13273
13274   if (self)
13275     {
13276       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13277       else
13278         {
13279           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13280           else puts (dlerror ());
13281         }
13282       /* dlclose (self); */
13283     }
13284   else
13285     puts (dlerror ());
13286
13287   return status;
13288 }
13289 _LT_EOF
13290   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13291   (eval $ac_link) 2>&5
13292   ac_status=$?
13293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13294   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13295     (./conftest; exit; ) >&5 2>/dev/null
13296     lt_status=$?
13297     case x$lt_status in
13298       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13299       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13300       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13301     esac
13302   else :
13303     # compilation failed
13304     lt_cv_dlopen_self_static=no
13305   fi
13306 fi
13307 rm -fr conftest*
13308
13309
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13312 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13313     fi
13314
13315     CPPFLAGS="$save_CPPFLAGS"
13316     LDFLAGS="$save_LDFLAGS"
13317     LIBS="$save_LIBS"
13318     ;;
13319   esac
13320
13321   case $lt_cv_dlopen_self in
13322   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13323   *) enable_dlopen_self=unknown ;;
13324   esac
13325
13326   case $lt_cv_dlopen_self_static in
13327   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13328   *) enable_dlopen_self_static=unknown ;;
13329   esac
13330 fi
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348 striplib=
13349 old_striplib=
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13351 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13352 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13353   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13354   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356 $as_echo "yes" >&6; }
13357 else
13358 # FIXME - insert some real tests, host_os isn't really good enough
13359   case $host_os in
13360   darwin*)
13361     if test -n "$STRIP" ; then
13362       striplib="$STRIP -x"
13363       old_striplib="$STRIP -S"
13364       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365 $as_echo "yes" >&6; }
13366     else
13367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369     fi
13370     ;;
13371   *)
13372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13374     ;;
13375   esac
13376 fi
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389   # Report which library types will actually be built
13390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13391 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13393 $as_echo "$can_build_shared" >&6; }
13394
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13396 $as_echo_n "checking whether to build shared libraries... " >&6; }
13397   test "$can_build_shared" = "no" && enable_shared=no
13398
13399   # On AIX, shared libraries and static libraries use the same namespace, and
13400   # are all built from PIC.
13401   case $host_os in
13402   aix3*)
13403     test "$enable_shared" = yes && enable_static=no
13404     if test -n "$RANLIB"; then
13405       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13406       postinstall_cmds='$RANLIB $lib'
13407     fi
13408     ;;
13409
13410   aix[4-9]*)
13411     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13412       test "$enable_shared" = yes && enable_static=no
13413     fi
13414     ;;
13415   esac
13416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13417 $as_echo "$enable_shared" >&6; }
13418
13419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13420 $as_echo_n "checking whether to build static libraries... " >&6; }
13421   # Make sure either enable_shared or enable_static is yes.
13422   test "$enable_shared" = yes || enable_static=yes
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13424 $as_echo "$enable_static" >&6; }
13425
13426
13427
13428
13429 fi
13430 ac_ext=c
13431 ac_cpp='$CPP $CPPFLAGS'
13432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13435
13436 CC="$lt_save_CC"
13437
13438       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13439     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13440     (test "X$CXX" != "Xg++"))) ; then
13441   ac_ext=cpp
13442 ac_cpp='$CXXCPP $CPPFLAGS'
13443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13447 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13448 if test -z "$CXXCPP"; then
13449   if ${ac_cv_prog_CXXCPP+:} false; then :
13450   $as_echo_n "(cached) " >&6
13451 else
13452       # Double quotes because CXXCPP needs to be expanded
13453     for CXXCPP in "$CXX -E" "/lib/cpp"
13454     do
13455       ac_preproc_ok=false
13456 for ac_cxx_preproc_warn_flag in '' yes
13457 do
13458   # Use a header file that comes with gcc, so configuring glibc
13459   # with a fresh cross-compiler works.
13460   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13461   # <limits.h> exists even on freestanding compilers.
13462   # On the NeXT, cc -E runs the code through the compiler's parser,
13463   # not just through cpp. "Syntax error" is here to catch this case.
13464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h.  */
13466 #ifdef __STDC__
13467 # include <limits.h>
13468 #else
13469 # include <assert.h>
13470 #endif
13471                      Syntax error
13472 _ACEOF
13473 if ac_fn_cxx_try_cpp "$LINENO"; then :
13474
13475 else
13476   # Broken: fails on valid input.
13477 continue
13478 fi
13479 rm -f conftest.err conftest.i conftest.$ac_ext
13480
13481   # OK, works on sane cases.  Now check whether nonexistent headers
13482   # can be detected and how.
13483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h.  */
13485 #include <ac_nonexistent.h>
13486 _ACEOF
13487 if ac_fn_cxx_try_cpp "$LINENO"; then :
13488   # Broken: success on invalid input.
13489 continue
13490 else
13491   # Passes both tests.
13492 ac_preproc_ok=:
13493 break
13494 fi
13495 rm -f conftest.err conftest.i conftest.$ac_ext
13496
13497 done
13498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13499 rm -f conftest.i conftest.err conftest.$ac_ext
13500 if $ac_preproc_ok; then :
13501   break
13502 fi
13503
13504     done
13505     ac_cv_prog_CXXCPP=$CXXCPP
13506
13507 fi
13508   CXXCPP=$ac_cv_prog_CXXCPP
13509 else
13510   ac_cv_prog_CXXCPP=$CXXCPP
13511 fi
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13513 $as_echo "$CXXCPP" >&6; }
13514 ac_preproc_ok=false
13515 for ac_cxx_preproc_warn_flag in '' yes
13516 do
13517   # Use a header file that comes with gcc, so configuring glibc
13518   # with a fresh cross-compiler works.
13519   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13520   # <limits.h> exists even on freestanding compilers.
13521   # On the NeXT, cc -E runs the code through the compiler's parser,
13522   # not just through cpp. "Syntax error" is here to catch this case.
13523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h.  */
13525 #ifdef __STDC__
13526 # include <limits.h>
13527 #else
13528 # include <assert.h>
13529 #endif
13530                      Syntax error
13531 _ACEOF
13532 if ac_fn_cxx_try_cpp "$LINENO"; then :
13533
13534 else
13535   # Broken: fails on valid input.
13536 continue
13537 fi
13538 rm -f conftest.err conftest.i conftest.$ac_ext
13539
13540   # OK, works on sane cases.  Now check whether nonexistent headers
13541   # can be detected and how.
13542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h.  */
13544 #include <ac_nonexistent.h>
13545 _ACEOF
13546 if ac_fn_cxx_try_cpp "$LINENO"; then :
13547   # Broken: success on invalid input.
13548 continue
13549 else
13550   # Passes both tests.
13551 ac_preproc_ok=:
13552 break
13553 fi
13554 rm -f conftest.err conftest.i conftest.$ac_ext
13555
13556 done
13557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13558 rm -f conftest.i conftest.err conftest.$ac_ext
13559 if $ac_preproc_ok; then :
13560
13561 else
13562   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13564 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13565 See \`config.log' for more details" "$LINENO" 5; }
13566 fi
13567
13568 ac_ext=c
13569 ac_cpp='$CPP $CPPFLAGS'
13570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13573
13574 else
13575   _lt_caught_CXX_error=yes
13576 fi
13577
13578 ac_ext=cpp
13579 ac_cpp='$CXXCPP $CPPFLAGS'
13580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13583
13584 archive_cmds_need_lc_CXX=no
13585 allow_undefined_flag_CXX=
13586 always_export_symbols_CXX=no
13587 archive_expsym_cmds_CXX=
13588 compiler_needs_object_CXX=no
13589 export_dynamic_flag_spec_CXX=
13590 hardcode_direct_CXX=no
13591 hardcode_direct_absolute_CXX=no
13592 hardcode_libdir_flag_spec_CXX=
13593 hardcode_libdir_separator_CXX=
13594 hardcode_minus_L_CXX=no
13595 hardcode_shlibpath_var_CXX=unsupported
13596 hardcode_automatic_CXX=no
13597 inherit_rpath_CXX=no
13598 module_cmds_CXX=
13599 module_expsym_cmds_CXX=
13600 link_all_deplibs_CXX=unknown
13601 old_archive_cmds_CXX=$old_archive_cmds
13602 reload_flag_CXX=$reload_flag
13603 reload_cmds_CXX=$reload_cmds
13604 no_undefined_flag_CXX=
13605 whole_archive_flag_spec_CXX=
13606 enable_shared_with_static_runtimes_CXX=no
13607
13608 # Source file extension for C++ test sources.
13609 ac_ext=cpp
13610
13611 # Object file extension for compiled C++ test sources.
13612 objext=o
13613 objext_CXX=$objext
13614
13615 # No sense in running all these tests if we already determined that
13616 # the CXX compiler isn't working.  Some variables (like enable_shared)
13617 # are currently assumed to apply to all compilers on this platform,
13618 # and will be corrupted by setting them based on a non-working compiler.
13619 if test "$_lt_caught_CXX_error" != yes; then
13620   # Code to be used in simple compile tests
13621   lt_simple_compile_test_code="int some_variable = 0;"
13622
13623   # Code to be used in simple link tests
13624   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13625
13626   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13627
13628
13629
13630
13631
13632
13633 # If no C compiler was specified, use CC.
13634 LTCC=${LTCC-"$CC"}
13635
13636 # If no C compiler flags were specified, use CFLAGS.
13637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13638
13639 # Allow CC to be a program name with arguments.
13640 compiler=$CC
13641
13642
13643   # save warnings/boilerplate of simple test code
13644   ac_outfile=conftest.$ac_objext
13645 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13647 _lt_compiler_boilerplate=`cat conftest.err`
13648 $RM conftest*
13649
13650   ac_outfile=conftest.$ac_objext
13651 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13653 _lt_linker_boilerplate=`cat conftest.err`
13654 $RM -r conftest*
13655
13656
13657   # Allow CC to be a program name with arguments.
13658   lt_save_CC=$CC
13659   lt_save_CFLAGS=$CFLAGS
13660   lt_save_LD=$LD
13661   lt_save_GCC=$GCC
13662   GCC=$GXX
13663   lt_save_with_gnu_ld=$with_gnu_ld
13664   lt_save_path_LD=$lt_cv_path_LD
13665   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13666     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13667   else
13668     $as_unset lt_cv_prog_gnu_ld
13669   fi
13670   if test -n "${lt_cv_path_LDCXX+set}"; then
13671     lt_cv_path_LD=$lt_cv_path_LDCXX
13672   else
13673     $as_unset lt_cv_path_LD
13674   fi
13675   test -z "${LDCXX+set}" || LD=$LDCXX
13676   CC=${CXX-"c++"}
13677   CFLAGS=$CXXFLAGS
13678   compiler=$CC
13679   compiler_CXX=$CC
13680   for cc_temp in $compiler""; do
13681   case $cc_temp in
13682     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13683     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13684     \-*) ;;
13685     *) break;;
13686   esac
13687 done
13688 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13689
13690
13691   if test -n "$compiler"; then
13692     # We don't want -fno-exception when compiling C++ code, so set the
13693     # no_builtin_flag separately
13694     if test "$GXX" = yes; then
13695       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13696     else
13697       lt_prog_compiler_no_builtin_flag_CXX=
13698     fi
13699
13700     if test "$GXX" = yes; then
13701       # Set up default GNU C++ configuration
13702
13703
13704
13705 # Check whether --with-gnu-ld was given.
13706 if test "${with_gnu_ld+set}" = set; then :
13707   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13708 else
13709   with_gnu_ld=no
13710 fi
13711
13712 ac_prog=ld
13713 if test "$GCC" = yes; then
13714   # Check if gcc -print-prog-name=ld gives a path.
13715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13716 $as_echo_n "checking for ld used by $CC... " >&6; }
13717   case $host in
13718   *-*-mingw*)
13719     # gcc leaves a trailing carriage return which upsets mingw
13720     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13721   *)
13722     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13723   esac
13724   case $ac_prog in
13725     # Accept absolute paths.
13726     [\\/]* | ?:[\\/]*)
13727       re_direlt='/[^/][^/]*/\.\./'
13728       # Canonicalize the pathname of ld
13729       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13730       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13731         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13732       done
13733       test -z "$LD" && LD="$ac_prog"
13734       ;;
13735   "")
13736     # If it fails, then pretend we aren't using GCC.
13737     ac_prog=ld
13738     ;;
13739   *)
13740     # If it is relative, then search for the first ld in PATH.
13741     with_gnu_ld=unknown
13742     ;;
13743   esac
13744 elif test "$with_gnu_ld" = yes; then
13745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13746 $as_echo_n "checking for GNU ld... " >&6; }
13747 else
13748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13749 $as_echo_n "checking for non-GNU ld... " >&6; }
13750 fi
13751 if ${lt_cv_path_LD+:} false; then :
13752   $as_echo_n "(cached) " >&6
13753 else
13754   if test -z "$LD"; then
13755   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13756   for ac_dir in $PATH; do
13757     IFS="$lt_save_ifs"
13758     test -z "$ac_dir" && ac_dir=.
13759     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13760       lt_cv_path_LD="$ac_dir/$ac_prog"
13761       # Check to see if the program is GNU ld.  I'd rather use --version,
13762       # but apparently some variants of GNU ld only accept -v.
13763       # Break only if it was the GNU/non-GNU ld that we prefer.
13764       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13765       *GNU* | *'with BFD'*)
13766         test "$with_gnu_ld" != no && break
13767         ;;
13768       *)
13769         test "$with_gnu_ld" != yes && break
13770         ;;
13771       esac
13772     fi
13773   done
13774   IFS="$lt_save_ifs"
13775 else
13776   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13777 fi
13778 fi
13779
13780 LD="$lt_cv_path_LD"
13781 if test -n "$LD"; then
13782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13783 $as_echo "$LD" >&6; }
13784 else
13785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13787 fi
13788 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13790 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13791 if ${lt_cv_prog_gnu_ld+:} false; then :
13792   $as_echo_n "(cached) " >&6
13793 else
13794   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13795 case `$LD -v 2>&1 </dev/null` in
13796 *GNU* | *'with BFD'*)
13797   lt_cv_prog_gnu_ld=yes
13798   ;;
13799 *)
13800   lt_cv_prog_gnu_ld=no
13801   ;;
13802 esac
13803 fi
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13805 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13806 with_gnu_ld=$lt_cv_prog_gnu_ld
13807
13808
13809
13810
13811
13812
13813
13814       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13815       # archiving commands below assume that GNU ld is being used.
13816       if test "$with_gnu_ld" = yes; then
13817         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13818         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'
13819
13820         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13821         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13822
13823         # If archive_cmds runs LD, not CC, wlarc should be empty
13824         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13825         #     investigate it a little bit more. (MM)
13826         wlarc='${wl}'
13827
13828         # ancient GNU ld didn't support --whole-archive et. al.
13829         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13830           $GREP 'no-whole-archive' > /dev/null; then
13831           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13832         else
13833           whole_archive_flag_spec_CXX=
13834         fi
13835       else
13836         with_gnu_ld=no
13837         wlarc=
13838
13839         # A generic and very simple default shared library creation
13840         # command for GNU C++ for the case where it uses the native
13841         # linker, instead of GNU ld.  If possible, this setting should
13842         # overridden to take advantage of the native linker features on
13843         # the platform it is being used on.
13844         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13845       fi
13846
13847       # Commands to make compiler produce verbose output that lists
13848       # what "hidden" libraries, object files and flags are used when
13849       # linking a shared library.
13850       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13851
13852     else
13853       GXX=no
13854       with_gnu_ld=no
13855       wlarc=
13856     fi
13857
13858     # PORTME: fill in a description of your system's C++ link characteristics
13859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13860 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13861     ld_shlibs_CXX=yes
13862     case $host_os in
13863       aix3*)
13864         # FIXME: insert proper C++ library support
13865         ld_shlibs_CXX=no
13866         ;;
13867       aix[4-9]*)
13868         if test "$host_cpu" = ia64; then
13869           # On IA64, the linker does run time linking by default, so we don't
13870           # have to do anything special.
13871           aix_use_runtimelinking=no
13872           exp_sym_flag='-Bexport'
13873           no_entry_flag=""
13874         else
13875           aix_use_runtimelinking=no
13876
13877           # Test if we are trying to use run time linking or normal
13878           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13879           # need to do runtime linking.
13880           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13881             for ld_flag in $LDFLAGS; do
13882               case $ld_flag in
13883               *-brtl*)
13884                 aix_use_runtimelinking=yes
13885                 break
13886                 ;;
13887               esac
13888             done
13889             ;;
13890           esac
13891
13892           exp_sym_flag='-bexport'
13893           no_entry_flag='-bnoentry'
13894         fi
13895
13896         # When large executables or shared objects are built, AIX ld can
13897         # have problems creating the table of contents.  If linking a library
13898         # or program results in "error TOC overflow" add -mminimal-toc to
13899         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13900         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13901
13902         archive_cmds_CXX=''
13903         hardcode_direct_CXX=yes
13904         hardcode_direct_absolute_CXX=yes
13905         hardcode_libdir_separator_CXX=':'
13906         link_all_deplibs_CXX=yes
13907         file_list_spec_CXX='${wl}-f,'
13908
13909         if test "$GXX" = yes; then
13910           case $host_os in aix4.[012]|aix4.[012].*)
13911           # We only want to do this on AIX 4.2 and lower, the check
13912           # below for broken collect2 doesn't work under 4.3+
13913           collect2name=`${CC} -print-prog-name=collect2`
13914           if test -f "$collect2name" &&
13915              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13916           then
13917             # We have reworked collect2
13918             :
13919           else
13920             # We have old collect2
13921             hardcode_direct_CXX=unsupported
13922             # It fails to find uninstalled libraries when the uninstalled
13923             # path is not listed in the libpath.  Setting hardcode_minus_L
13924             # to unsupported forces relinking
13925             hardcode_minus_L_CXX=yes
13926             hardcode_libdir_flag_spec_CXX='-L$libdir'
13927             hardcode_libdir_separator_CXX=
13928           fi
13929           esac
13930           shared_flag='-shared'
13931           if test "$aix_use_runtimelinking" = yes; then
13932             shared_flag="$shared_flag "'${wl}-G'
13933           fi
13934         else
13935           # not using gcc
13936           if test "$host_cpu" = ia64; then
13937           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13938           # chokes on -Wl,-G. The following line is correct:
13939           shared_flag='-G'
13940           else
13941             if test "$aix_use_runtimelinking" = yes; then
13942               shared_flag='${wl}-G'
13943             else
13944               shared_flag='${wl}-bM:SRE'
13945             fi
13946           fi
13947         fi
13948
13949         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13950         # It seems that -bexpall does not export symbols beginning with
13951         # underscore (_), so it is better to generate a list of symbols to
13952         # export.
13953         always_export_symbols_CXX=yes
13954         if test "$aix_use_runtimelinking" = yes; then
13955           # Warning - without using the other runtime loading flags (-brtl),
13956           # -berok will link without error, but may produce a broken library.
13957           allow_undefined_flag_CXX='-berok'
13958           # Determine the default libpath from the value encoded in an empty
13959           # executable.
13960           if test "${lt_cv_aix_libpath+set}" = set; then
13961   aix_libpath=$lt_cv_aix_libpath
13962 else
13963   if ${lt_cv_aix_libpath__CXX+:} false; then :
13964   $as_echo_n "(cached) " >&6
13965 else
13966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h.  */
13968
13969 int
13970 main ()
13971 {
13972
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 if ac_fn_cxx_try_link "$LINENO"; then :
13978
13979   lt_aix_libpath_sed='
13980       /Import File Strings/,/^$/ {
13981           /^0/ {
13982               s/^0  *\([^ ]*\) *$/\1/
13983               p
13984           }
13985       }'
13986   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13987   # Check for a 64-bit object if we didn't find anything.
13988   if test -z "$lt_cv_aix_libpath__CXX"; then
13989     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13990   fi
13991 fi
13992 rm -f core conftest.err conftest.$ac_objext \
13993     conftest$ac_exeext conftest.$ac_ext
13994   if test -z "$lt_cv_aix_libpath__CXX"; then
13995     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13996   fi
13997
13998 fi
13999
14000   aix_libpath=$lt_cv_aix_libpath__CXX
14001 fi
14002
14003           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14004
14005           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"
14006         else
14007           if test "$host_cpu" = ia64; then
14008             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14009             allow_undefined_flag_CXX="-z nodefs"
14010             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"
14011           else
14012             # Determine the default libpath from the value encoded in an
14013             # empty executable.
14014             if test "${lt_cv_aix_libpath+set}" = set; then
14015   aix_libpath=$lt_cv_aix_libpath
14016 else
14017   if ${lt_cv_aix_libpath__CXX+:} false; then :
14018   $as_echo_n "(cached) " >&6
14019 else
14020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h.  */
14022
14023 int
14024 main ()
14025 {
14026
14027   ;
14028   return 0;
14029 }
14030 _ACEOF
14031 if ac_fn_cxx_try_link "$LINENO"; then :
14032
14033   lt_aix_libpath_sed='
14034       /Import File Strings/,/^$/ {
14035           /^0/ {
14036               s/^0  *\([^ ]*\) *$/\1/
14037               p
14038           }
14039       }'
14040   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14041   # Check for a 64-bit object if we didn't find anything.
14042   if test -z "$lt_cv_aix_libpath__CXX"; then
14043     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14044   fi
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext \
14047     conftest$ac_exeext conftest.$ac_ext
14048   if test -z "$lt_cv_aix_libpath__CXX"; then
14049     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14050   fi
14051
14052 fi
14053
14054   aix_libpath=$lt_cv_aix_libpath__CXX
14055 fi
14056
14057             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14058             # Warning - without using the other run time loading flags,
14059             # -berok will link without error, but may produce a broken library.
14060             no_undefined_flag_CXX=' ${wl}-bernotok'
14061             allow_undefined_flag_CXX=' ${wl}-berok'
14062             if test "$with_gnu_ld" = yes; then
14063               # We only use this code for GNU lds that support --whole-archive.
14064               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14065             else
14066               # Exported symbols can be pulled into shared objects from archives
14067               whole_archive_flag_spec_CXX='$convenience'
14068             fi
14069             archive_cmds_need_lc_CXX=yes
14070             # This is similar to how AIX traditionally builds its shared
14071             # libraries.
14072             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'
14073           fi
14074         fi
14075         ;;
14076
14077       beos*)
14078         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14079           allow_undefined_flag_CXX=unsupported
14080           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14081           # support --undefined.  This deserves some investigation.  FIXME
14082           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083         else
14084           ld_shlibs_CXX=no
14085         fi
14086         ;;
14087
14088       chorus*)
14089         case $cc_basename in
14090           *)
14091           # FIXME: insert proper C++ library support
14092           ld_shlibs_CXX=no
14093           ;;
14094         esac
14095         ;;
14096
14097       cygwin* | mingw* | pw32* | cegcc*)
14098         case $GXX,$cc_basename in
14099         ,cl* | no,cl*)
14100           # Native MSVC
14101           # hardcode_libdir_flag_spec is actually meaningless, as there is
14102           # no search path for DLLs.
14103           hardcode_libdir_flag_spec_CXX=' '
14104           allow_undefined_flag_CXX=unsupported
14105           always_export_symbols_CXX=yes
14106           file_list_spec_CXX='@'
14107           # Tell ltmain to make .lib files, not .a files.
14108           libext=lib
14109           # Tell ltmain to make .dll files, not .so files.
14110           shrext_cmds=".dll"
14111           # FIXME: Setting linknames here is a bad hack.
14112           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14113           archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14114               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14115             else
14116               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14117             fi~
14118             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14119             linknames='
14120           # The linker will not automatically build a static lib if we build a DLL.
14121           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14122           enable_shared_with_static_runtimes_CXX=yes
14123           # Don't use ranlib
14124           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14125           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14126             lt_tool_outputfile="@TOOL_OUTPUT@"~
14127             case $lt_outputfile in
14128               *.exe|*.EXE) ;;
14129               *)
14130                 lt_outputfile="$lt_outputfile.exe"
14131                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14132                 ;;
14133             esac~
14134             func_to_tool_file "$lt_outputfile"~
14135             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14136               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14137               $RM "$lt_outputfile.manifest";
14138             fi'
14139           ;;
14140         *)
14141           # g++
14142           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14143           # as there is no search path for DLLs.
14144           hardcode_libdir_flag_spec_CXX='-L$libdir'
14145           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14146           allow_undefined_flag_CXX=unsupported
14147           always_export_symbols_CXX=no
14148           enable_shared_with_static_runtimes_CXX=yes
14149
14150           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14151             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'
14152             # If the export-symbols file already is a .def file (1st line
14153             # is EXPORTS), use it as is; otherwise, prepend...
14154             archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14155               cp $export_symbols $output_objdir/$soname.def;
14156             else
14157               echo EXPORTS > $output_objdir/$soname.def;
14158               cat $export_symbols >> $output_objdir/$soname.def;
14159             fi~
14160             $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'
14161           else
14162             ld_shlibs_CXX=no
14163           fi
14164           ;;
14165         esac
14166         ;;
14167       darwin* | rhapsody*)
14168
14169
14170   archive_cmds_need_lc_CXX=no
14171   hardcode_direct_CXX=no
14172   hardcode_automatic_CXX=yes
14173   hardcode_shlibpath_var_CXX=unsupported
14174   if test "$lt_cv_ld_force_load" = "yes"; then
14175     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\"`'
14176
14177   else
14178     whole_archive_flag_spec_CXX=''
14179   fi
14180   link_all_deplibs_CXX=yes
14181   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14182   case $cc_basename in
14183      ifort*) _lt_dar_can_shared=yes ;;
14184      *) _lt_dar_can_shared=$GCC ;;
14185   esac
14186   if test "$_lt_dar_can_shared" = "yes"; then
14187     output_verbose_link_cmd=func_echo_all
14188     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}"
14189     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14190     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}"
14191     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}"
14192        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14193       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}"
14194       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}"
14195     fi
14196
14197   else
14198   ld_shlibs_CXX=no
14199   fi
14200
14201         ;;
14202
14203       dgux*)
14204         case $cc_basename in
14205           ec++*)
14206             # FIXME: insert proper C++ library support
14207             ld_shlibs_CXX=no
14208             ;;
14209           ghcx*)
14210             # Green Hills C++ Compiler
14211             # FIXME: insert proper C++ library support
14212             ld_shlibs_CXX=no
14213             ;;
14214           *)
14215             # FIXME: insert proper C++ library support
14216             ld_shlibs_CXX=no
14217             ;;
14218         esac
14219         ;;
14220
14221       freebsd2.*)
14222         # C++ shared libraries reported to be fairly broken before
14223         # switch to ELF
14224         ld_shlibs_CXX=no
14225         ;;
14226
14227       freebsd-elf*)
14228         archive_cmds_need_lc_CXX=no
14229         ;;
14230
14231       freebsd* | dragonfly*)
14232         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14233         # conventions
14234         ld_shlibs_CXX=yes
14235         ;;
14236
14237       gnu*)
14238         ;;
14239
14240       haiku*)
14241         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242         link_all_deplibs_CXX=yes
14243         ;;
14244
14245       hpux9*)
14246         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14247         hardcode_libdir_separator_CXX=:
14248         export_dynamic_flag_spec_CXX='${wl}-E'
14249         hardcode_direct_CXX=yes
14250         hardcode_minus_L_CXX=yes # Not in the search PATH,
14251                                              # but as the default
14252                                              # location of the library.
14253
14254         case $cc_basename in
14255           CC*)
14256             # FIXME: insert proper C++ library support
14257             ld_shlibs_CXX=no
14258             ;;
14259           aCC*)
14260             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'
14261             # Commands to make compiler produce verbose output that lists
14262             # what "hidden" libraries, object files and flags are used when
14263             # linking a shared library.
14264             #
14265             # There doesn't appear to be a way to prevent this compiler from
14266             # explicitly linking system object files so we need to strip them
14267             # from the output so that they don't get included in the library
14268             # dependencies.
14269             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"'
14270             ;;
14271           *)
14272             if test "$GXX" = yes; then
14273               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'
14274             else
14275               # FIXME: insert proper C++ library support
14276               ld_shlibs_CXX=no
14277             fi
14278             ;;
14279         esac
14280         ;;
14281
14282       hpux10*|hpux11*)
14283         if test $with_gnu_ld = no; then
14284           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14285           hardcode_libdir_separator_CXX=:
14286
14287           case $host_cpu in
14288             hppa*64*|ia64*)
14289               ;;
14290             *)
14291               export_dynamic_flag_spec_CXX='${wl}-E'
14292               ;;
14293           esac
14294         fi
14295         case $host_cpu in
14296           hppa*64*|ia64*)
14297             hardcode_direct_CXX=no
14298             hardcode_shlibpath_var_CXX=no
14299             ;;
14300           *)
14301             hardcode_direct_CXX=yes
14302             hardcode_direct_absolute_CXX=yes
14303             hardcode_minus_L_CXX=yes # Not in the search PATH,
14304                                                  # but as the default
14305                                                  # location of the library.
14306             ;;
14307         esac
14308
14309         case $cc_basename in
14310           CC*)
14311             # FIXME: insert proper C++ library support
14312             ld_shlibs_CXX=no
14313             ;;
14314           aCC*)
14315             case $host_cpu in
14316               hppa*64*)
14317                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14318                 ;;
14319               ia64*)
14320                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14321                 ;;
14322               *)
14323                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14324                 ;;
14325             esac
14326             # Commands to make compiler produce verbose output that lists
14327             # what "hidden" libraries, object files and flags are used when
14328             # linking a shared library.
14329             #
14330             # There doesn't appear to be a way to prevent this compiler from
14331             # explicitly linking system object files so we need to strip them
14332             # from the output so that they don't get included in the library
14333             # dependencies.
14334             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"'
14335             ;;
14336           *)
14337             if test "$GXX" = yes; then
14338               if test $with_gnu_ld = no; then
14339                 case $host_cpu in
14340                   hppa*64*)
14341                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14342                     ;;
14343                   ia64*)
14344                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14345                     ;;
14346                   *)
14347                     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'
14348                     ;;
14349                 esac
14350               fi
14351             else
14352               # FIXME: insert proper C++ library support
14353               ld_shlibs_CXX=no
14354             fi
14355             ;;
14356         esac
14357         ;;
14358
14359       interix[3-9]*)
14360         hardcode_direct_CXX=no
14361         hardcode_shlibpath_var_CXX=no
14362         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14363         export_dynamic_flag_spec_CXX='${wl}-E'
14364         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14365         # Instead, shared libraries are loaded at an image base (0x10000000 by
14366         # default) and relocated if they conflict, which is a slow very memory
14367         # consuming and fragmenting process.  To avoid this, we pick a random,
14368         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14369         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14370         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'
14371         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'
14372         ;;
14373       irix5* | irix6*)
14374         case $cc_basename in
14375           CC*)
14376             # SGI C++
14377             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'
14378
14379             # Archives containing C++ object files must be created using
14380             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14381             # necessary to make sure instantiated templates are included
14382             # in the archive.
14383             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14384             ;;
14385           *)
14386             if test "$GXX" = yes; then
14387               if test "$with_gnu_ld" = no; then
14388                 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'
14389               else
14390                 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'
14391               fi
14392             fi
14393             link_all_deplibs_CXX=yes
14394             ;;
14395         esac
14396         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14397         hardcode_libdir_separator_CXX=:
14398         inherit_rpath_CXX=yes
14399         ;;
14400
14401       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14402         case $cc_basename in
14403           KCC*)
14404             # Kuck and Associates, Inc. (KAI) C++ Compiler
14405
14406             # KCC will only create a shared library if the output file
14407             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14408             # to its proper name (with version) after linking.
14409             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'
14410             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'
14411             # Commands to make compiler produce verbose output that lists
14412             # what "hidden" libraries, object files and flags are used when
14413             # linking a shared library.
14414             #
14415             # There doesn't appear to be a way to prevent this compiler from
14416             # explicitly linking system object files so we need to strip them
14417             # from the output so that they don't get included in the library
14418             # dependencies.
14419             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"'
14420
14421             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14422             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14423
14424             # Archives containing C++ object files must be created using
14425             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14426             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14427             ;;
14428           icpc* | ecpc* )
14429             # Intel C++
14430             with_gnu_ld=yes
14431             # version 8.0 and above of icpc choke on multiply defined symbols
14432             # if we add $predep_objects and $postdep_objects, however 7.1 and
14433             # earlier do not add the objects themselves.
14434             case `$CC -V 2>&1` in
14435               *"Version 7."*)
14436                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14437                 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'
14438                 ;;
14439               *)  # Version 8.0 or newer
14440                 tmp_idyn=
14441                 case $host_cpu in
14442                   ia64*) tmp_idyn=' -i_dynamic';;
14443                 esac
14444                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445                 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'
14446                 ;;
14447             esac
14448             archive_cmds_need_lc_CXX=no
14449             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14450             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14451             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14452             ;;
14453           pgCC* | pgcpp*)
14454             # Portland Group C++ compiler
14455             case `$CC -V` in
14456             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14457               prelink_cmds_CXX='tpldir=Template.dir~
14458                 rm -rf $tpldir~
14459                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14460                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14461               old_archive_cmds_CXX='tpldir=Template.dir~
14462                 rm -rf $tpldir~
14463                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14464                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14465                 $RANLIB $oldlib'
14466               archive_cmds_CXX='tpldir=Template.dir~
14467                 rm -rf $tpldir~
14468                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14469                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14470               archive_expsym_cmds_CXX='tpldir=Template.dir~
14471                 rm -rf $tpldir~
14472                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14473                 $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'
14474               ;;
14475             *) # Version 6 and above use weak symbols
14476               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14477               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'
14478               ;;
14479             esac
14480
14481             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14482             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14483             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'
14484             ;;
14485           cxx*)
14486             # Compaq C++
14487             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14488             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'
14489
14490             runpath_var=LD_RUN_PATH
14491             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14492             hardcode_libdir_separator_CXX=:
14493
14494             # Commands to make compiler produce verbose output that lists
14495             # what "hidden" libraries, object files and flags are used when
14496             # linking a shared library.
14497             #
14498             # There doesn't appear to be a way to prevent this compiler from
14499             # explicitly linking system object files so we need to strip them
14500             # from the output so that they don't get included in the library
14501             # dependencies.
14502             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'
14503             ;;
14504           xl* | mpixl* | bgxl*)
14505             # IBM XL 8.0 on PPC, with GNU ld
14506             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14507             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14508             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14509             if test "x$supports_anon_versioning" = xyes; then
14510               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14511                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14512                 echo "local: *; };" >> $output_objdir/$libname.ver~
14513                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14514             fi
14515             ;;
14516           *)
14517             case `$CC -V 2>&1 | sed 5q` in
14518             *Sun\ C*)
14519               # Sun C++ 5.9
14520               no_undefined_flag_CXX=' -zdefs'
14521               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14522               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'
14523               hardcode_libdir_flag_spec_CXX='-R$libdir'
14524               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'
14525               compiler_needs_object_CXX=yes
14526
14527               # Not sure whether something based on
14528               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14529               # would be better.
14530               output_verbose_link_cmd='func_echo_all'
14531
14532               # Archives containing C++ object files must be created using
14533               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14534               # necessary to make sure instantiated templates are included
14535               # in the archive.
14536               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14537               ;;
14538             esac
14539             ;;
14540         esac
14541         ;;
14542
14543       lynxos*)
14544         # FIXME: insert proper C++ library support
14545         ld_shlibs_CXX=no
14546         ;;
14547
14548       m88k*)
14549         # FIXME: insert proper C++ library support
14550         ld_shlibs_CXX=no
14551         ;;
14552
14553       mvs*)
14554         case $cc_basename in
14555           cxx*)
14556             # FIXME: insert proper C++ library support
14557             ld_shlibs_CXX=no
14558             ;;
14559           *)
14560             # FIXME: insert proper C++ library support
14561             ld_shlibs_CXX=no
14562             ;;
14563         esac
14564         ;;
14565
14566       netbsd*)
14567         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14568           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14569           wlarc=
14570           hardcode_libdir_flag_spec_CXX='-R$libdir'
14571           hardcode_direct_CXX=yes
14572           hardcode_shlibpath_var_CXX=no
14573         fi
14574         # Workaround some broken pre-1.5 toolchains
14575         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14576         ;;
14577
14578       *nto* | *qnx*)
14579         ld_shlibs_CXX=yes
14580         ;;
14581
14582       openbsd2*)
14583         # C++ shared libraries are fairly broken
14584         ld_shlibs_CXX=no
14585         ;;
14586
14587       openbsd*)
14588         if test -f /usr/libexec/ld.so; then
14589           hardcode_direct_CXX=yes
14590           hardcode_shlibpath_var_CXX=no
14591           hardcode_direct_absolute_CXX=yes
14592           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14593           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14594           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14595             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14596             export_dynamic_flag_spec_CXX='${wl}-E'
14597             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14598           fi
14599           output_verbose_link_cmd=func_echo_all
14600         else
14601           ld_shlibs_CXX=no
14602         fi
14603         ;;
14604
14605       osf3* | osf4* | osf5*)
14606         case $cc_basename in
14607           KCC*)
14608             # Kuck and Associates, Inc. (KAI) C++ Compiler
14609
14610             # KCC will only create a shared library if the output file
14611             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14612             # to its proper name (with version) after linking.
14613             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'
14614
14615             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14616             hardcode_libdir_separator_CXX=:
14617
14618             # Archives containing C++ object files must be created using
14619             # the KAI C++ compiler.
14620             case $host in
14621               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14622               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14623             esac
14624             ;;
14625           RCC*)
14626             # Rational C++ 2.4.1
14627             # FIXME: insert proper C++ library support
14628             ld_shlibs_CXX=no
14629             ;;
14630           cxx*)
14631             case $host in
14632               osf3*)
14633                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14634                 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'
14635                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14636                 ;;
14637               *)
14638                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14639                 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'
14640                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14641                   echo "-hidden">> $lib.exp~
14642                   $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~
14643                   $RM $lib.exp'
14644                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14645                 ;;
14646             esac
14647
14648             hardcode_libdir_separator_CXX=:
14649
14650             # Commands to make compiler produce verbose output that lists
14651             # what "hidden" libraries, object files and flags are used when
14652             # linking a shared library.
14653             #
14654             # There doesn't appear to be a way to prevent this compiler from
14655             # explicitly linking system object files so we need to strip them
14656             # from the output so that they don't get included in the library
14657             # dependencies.
14658             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"'
14659             ;;
14660           *)
14661             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14662               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14663               case $host in
14664                 osf3*)
14665                   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'
14666                   ;;
14667                 *)
14668                   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'
14669                   ;;
14670               esac
14671
14672               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14673               hardcode_libdir_separator_CXX=:
14674
14675               # Commands to make compiler produce verbose output that lists
14676               # what "hidden" libraries, object files and flags are used when
14677               # linking a shared library.
14678               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14679
14680             else
14681               # FIXME: insert proper C++ library support
14682               ld_shlibs_CXX=no
14683             fi
14684             ;;
14685         esac
14686         ;;
14687
14688       psos*)
14689         # FIXME: insert proper C++ library support
14690         ld_shlibs_CXX=no
14691         ;;
14692
14693       sunos4*)
14694         case $cc_basename in
14695           CC*)
14696             # Sun C++ 4.x
14697             # FIXME: insert proper C++ library support
14698             ld_shlibs_CXX=no
14699             ;;
14700           lcc*)
14701             # Lucid
14702             # FIXME: insert proper C++ library support
14703             ld_shlibs_CXX=no
14704             ;;
14705           *)
14706             # FIXME: insert proper C++ library support
14707             ld_shlibs_CXX=no
14708             ;;
14709         esac
14710         ;;
14711
14712       solaris*)
14713         case $cc_basename in
14714           CC* | sunCC*)
14715             # Sun C++ 4.2, 5.x and Centerline C++
14716             archive_cmds_need_lc_CXX=yes
14717             no_undefined_flag_CXX=' -zdefs'
14718             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14719             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14720               $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'
14721
14722             hardcode_libdir_flag_spec_CXX='-R$libdir'
14723             hardcode_shlibpath_var_CXX=no
14724             case $host_os in
14725               solaris2.[0-5] | solaris2.[0-5].*) ;;
14726               *)
14727                 # The compiler driver will combine and reorder linker options,
14728                 # but understands `-z linker_flag'.
14729                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14730                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14731                 ;;
14732             esac
14733             link_all_deplibs_CXX=yes
14734
14735             output_verbose_link_cmd='func_echo_all'
14736
14737             # Archives containing C++ object files must be created using
14738             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14739             # necessary to make sure instantiated templates are included
14740             # in the archive.
14741             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14742             ;;
14743           gcx*)
14744             # Green Hills C++ Compiler
14745             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14746
14747             # The C++ compiler must be used to create the archive.
14748             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14749             ;;
14750           *)
14751             # GNU C++ compiler with Solaris linker
14752             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14753               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14754               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14755                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14756                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14757                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14758
14759                 # Commands to make compiler produce verbose output that lists
14760                 # what "hidden" libraries, object files and flags are used when
14761                 # linking a shared library.
14762                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14763               else
14764                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14765                 # platform.
14766                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14767                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14768                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14769
14770                 # Commands to make compiler produce verbose output that lists
14771                 # what "hidden" libraries, object files and flags are used when
14772                 # linking a shared library.
14773                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14774               fi
14775
14776               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14777               case $host_os in
14778                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14779                 *)
14780                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14781                   ;;
14782               esac
14783             fi
14784             ;;
14785         esac
14786         ;;
14787
14788     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14789       no_undefined_flag_CXX='${wl}-z,text'
14790       archive_cmds_need_lc_CXX=no
14791       hardcode_shlibpath_var_CXX=no
14792       runpath_var='LD_RUN_PATH'
14793
14794       case $cc_basename in
14795         CC*)
14796           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14797           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14798           ;;
14799         *)
14800           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14801           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14802           ;;
14803       esac
14804       ;;
14805
14806       sysv5* | sco3.2v5* | sco5v6*)
14807         # Note: We can NOT use -z defs as we might desire, because we do not
14808         # link with -lc, and that would cause any symbols used from libc to
14809         # always be unresolved, which means just about no library would
14810         # ever link correctly.  If we're not using GNU ld we use -z text
14811         # though, which does catch some bad symbols but isn't as heavy-handed
14812         # as -z defs.
14813         no_undefined_flag_CXX='${wl}-z,text'
14814         allow_undefined_flag_CXX='${wl}-z,nodefs'
14815         archive_cmds_need_lc_CXX=no
14816         hardcode_shlibpath_var_CXX=no
14817         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14818         hardcode_libdir_separator_CXX=':'
14819         link_all_deplibs_CXX=yes
14820         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14821         runpath_var='LD_RUN_PATH'
14822
14823         case $cc_basename in
14824           CC*)
14825             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14826             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14827             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14828               '"$old_archive_cmds_CXX"
14829             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14830               '"$reload_cmds_CXX"
14831             ;;
14832           *)
14833             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14834             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14835             ;;
14836         esac
14837       ;;
14838
14839       tandem*)
14840         case $cc_basename in
14841           NCC*)
14842             # NonStop-UX NCC 3.20
14843             # FIXME: insert proper C++ library support
14844             ld_shlibs_CXX=no
14845             ;;
14846           *)
14847             # FIXME: insert proper C++ library support
14848             ld_shlibs_CXX=no
14849             ;;
14850         esac
14851         ;;
14852
14853       vxworks*)
14854         # FIXME: insert proper C++ library support
14855         ld_shlibs_CXX=no
14856         ;;
14857
14858       *)
14859         # FIXME: insert proper C++ library support
14860         ld_shlibs_CXX=no
14861         ;;
14862     esac
14863
14864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14865 $as_echo "$ld_shlibs_CXX" >&6; }
14866     test "$ld_shlibs_CXX" = no && can_build_shared=no
14867
14868     GCC_CXX="$GXX"
14869     LD_CXX="$LD"
14870
14871     ## CAVEAT EMPTOR:
14872     ## There is no encapsulation within the following macros, do not change
14873     ## the running order or otherwise move them around unless you know exactly
14874     ## what you are doing...
14875     # Dependencies to place before and after the object being linked:
14876 predep_objects_CXX=
14877 postdep_objects_CXX=
14878 predeps_CXX=
14879 postdeps_CXX=
14880 compiler_lib_search_path_CXX=
14881
14882 cat > conftest.$ac_ext <<_LT_EOF
14883 class Foo
14884 {
14885 public:
14886   Foo (void) { a = 0; }
14887 private:
14888   int a;
14889 };
14890 _LT_EOF
14891
14892
14893 _lt_libdeps_save_CFLAGS=$CFLAGS
14894 case "$CC $CFLAGS " in #(
14895 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14896 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14897 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14898 esac
14899
14900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14901   (eval $ac_compile) 2>&5
14902   ac_status=$?
14903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14904   test $ac_status = 0; }; then
14905   # Parse the compiler output and extract the necessary
14906   # objects, libraries and library flags.
14907
14908   # Sentinel used to keep track of whether or not we are before
14909   # the conftest object file.
14910   pre_test_object_deps_done=no
14911
14912   for p in `eval "$output_verbose_link_cmd"`; do
14913     case ${prev}${p} in
14914
14915     -L* | -R* | -l*)
14916        # Some compilers place space between "-{L,R}" and the path.
14917        # Remove the space.
14918        if test $p = "-L" ||
14919           test $p = "-R"; then
14920          prev=$p
14921          continue
14922        fi
14923
14924        # Expand the sysroot to ease extracting the directories later.
14925        if test -z "$prev"; then
14926          case $p in
14927          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14928          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14929          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14930          esac
14931        fi
14932        case $p in
14933        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14934        esac
14935        if test "$pre_test_object_deps_done" = no; then
14936          case ${prev} in
14937          -L | -R)
14938            # Internal compiler library paths should come after those
14939            # provided the user.  The postdeps already come after the
14940            # user supplied libs so there is no need to process them.
14941            if test -z "$compiler_lib_search_path_CXX"; then
14942              compiler_lib_search_path_CXX="${prev}${p}"
14943            else
14944              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14945            fi
14946            ;;
14947          # The "-l" case would never come before the object being
14948          # linked, so don't bother handling this case.
14949          esac
14950        else
14951          if test -z "$postdeps_CXX"; then
14952            postdeps_CXX="${prev}${p}"
14953          else
14954            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14955          fi
14956        fi
14957        prev=
14958        ;;
14959
14960     *.lto.$objext) ;; # Ignore GCC LTO objects
14961     *.$objext)
14962        # This assumes that the test object file only shows up
14963        # once in the compiler output.
14964        if test "$p" = "conftest.$objext"; then
14965          pre_test_object_deps_done=yes
14966          continue
14967        fi
14968
14969        if test "$pre_test_object_deps_done" = no; then
14970          if test -z "$predep_objects_CXX"; then
14971            predep_objects_CXX="$p"
14972          else
14973            predep_objects_CXX="$predep_objects_CXX $p"
14974          fi
14975        else
14976          if test -z "$postdep_objects_CXX"; then
14977            postdep_objects_CXX="$p"
14978          else
14979            postdep_objects_CXX="$postdep_objects_CXX $p"
14980          fi
14981        fi
14982        ;;
14983
14984     *) ;; # Ignore the rest.
14985
14986     esac
14987   done
14988
14989   # Clean up.
14990   rm -f a.out a.exe
14991 else
14992   echo "libtool.m4: error: problem compiling CXX test program"
14993 fi
14994
14995 $RM -f confest.$objext
14996 CFLAGS=$_lt_libdeps_save_CFLAGS
14997
14998 # PORTME: override above test on systems where it is broken
14999 case $host_os in
15000 interix[3-9]*)
15001   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15002   # hack all around it, let's just trust "g++" to DTRT.
15003   predep_objects_CXX=
15004   postdep_objects_CXX=
15005   postdeps_CXX=
15006   ;;
15007
15008 linux*)
15009   case `$CC -V 2>&1 | sed 5q` in
15010   *Sun\ C*)
15011     # Sun C++ 5.9
15012
15013     # The more standards-conforming stlport4 library is
15014     # incompatible with the Cstd library. Avoid specifying
15015     # it if it's in CXXFLAGS. Ignore libCrun as
15016     # -library=stlport4 depends on it.
15017     case " $CXX $CXXFLAGS " in
15018     *" -library=stlport4 "*)
15019       solaris_use_stlport4=yes
15020       ;;
15021     esac
15022
15023     if test "$solaris_use_stlport4" != yes; then
15024       postdeps_CXX='-library=Cstd -library=Crun'
15025     fi
15026     ;;
15027   esac
15028   ;;
15029
15030 solaris*)
15031   case $cc_basename in
15032   CC* | sunCC*)
15033     # The more standards-conforming stlport4 library is
15034     # incompatible with the Cstd library. Avoid specifying
15035     # it if it's in CXXFLAGS. Ignore libCrun as
15036     # -library=stlport4 depends on it.
15037     case " $CXX $CXXFLAGS " in
15038     *" -library=stlport4 "*)
15039       solaris_use_stlport4=yes
15040       ;;
15041     esac
15042
15043     # Adding this requires a known-good setup of shared libraries for
15044     # Sun compiler versions before 5.6, else PIC objects from an old
15045     # archive will be linked into the output, leading to subtle bugs.
15046     if test "$solaris_use_stlport4" != yes; then
15047       postdeps_CXX='-library=Cstd -library=Crun'
15048     fi
15049     ;;
15050   esac
15051   ;;
15052 esac
15053
15054
15055 case " $postdeps_CXX " in
15056 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15057 esac
15058  compiler_lib_search_dirs_CXX=
15059 if test -n "${compiler_lib_search_path_CXX}"; then
15060  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15061 fi
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093     lt_prog_compiler_wl_CXX=
15094 lt_prog_compiler_pic_CXX=
15095 lt_prog_compiler_static_CXX=
15096
15097
15098   # C++ specific cases for pic, static, wl, etc.
15099   if test "$GXX" = yes; then
15100     lt_prog_compiler_wl_CXX='-Wl,'
15101     lt_prog_compiler_static_CXX='-static'
15102
15103     case $host_os in
15104     aix*)
15105       # All AIX code is PIC.
15106       if test "$host_cpu" = ia64; then
15107         # AIX 5 now supports IA64 processor
15108         lt_prog_compiler_static_CXX='-Bstatic'
15109       fi
15110       ;;
15111
15112     amigaos*)
15113       case $host_cpu in
15114       powerpc)
15115             # see comment about AmigaOS4 .so support
15116             lt_prog_compiler_pic_CXX='-fPIC'
15117         ;;
15118       m68k)
15119             # FIXME: we need at least 68020 code to build shared libraries, but
15120             # adding the `-m68020' flag to GCC prevents building anything better,
15121             # like `-m68040'.
15122             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15123         ;;
15124       esac
15125       ;;
15126
15127     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15128       # PIC is the default for these OSes.
15129       ;;
15130     mingw* | cygwin* | os2* | pw32* | cegcc*)
15131       # This hack is so that the source file can tell whether it is being
15132       # built for inclusion in a dll (and should export symbols for example).
15133       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15134       # (--disable-auto-import) libraries
15135       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15136       ;;
15137     darwin* | rhapsody*)
15138       # PIC is the default on this platform
15139       # Common symbols not allowed in MH_DYLIB files
15140       lt_prog_compiler_pic_CXX='-fno-common'
15141       ;;
15142     *djgpp*)
15143       # DJGPP does not support shared libraries at all
15144       lt_prog_compiler_pic_CXX=
15145       ;;
15146     haiku*)
15147       # PIC is the default for Haiku.
15148       # The "-static" flag exists, but is broken.
15149       lt_prog_compiler_static_CXX=
15150       ;;
15151     interix[3-9]*)
15152       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15153       # Instead, we relocate shared libraries at runtime.
15154       ;;
15155     sysv4*MP*)
15156       if test -d /usr/nec; then
15157         lt_prog_compiler_pic_CXX=-Kconform_pic
15158       fi
15159       ;;
15160     hpux*)
15161       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15162       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15163       # sets the default TLS model and affects inlining.
15164       case $host_cpu in
15165       hppa*64*)
15166         ;;
15167       *)
15168         lt_prog_compiler_pic_CXX='-fPIC'
15169         ;;
15170       esac
15171       ;;
15172     *qnx* | *nto*)
15173       # QNX uses GNU C++, but need to define -shared option too, otherwise
15174       # it will coredump.
15175       lt_prog_compiler_pic_CXX='-fPIC -shared'
15176       ;;
15177     *)
15178       lt_prog_compiler_pic_CXX='-fPIC'
15179       ;;
15180     esac
15181   else
15182     case $host_os in
15183       aix[4-9]*)
15184         # All AIX code is PIC.
15185         if test "$host_cpu" = ia64; then
15186           # AIX 5 now supports IA64 processor
15187           lt_prog_compiler_static_CXX='-Bstatic'
15188         else
15189           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15190         fi
15191         ;;
15192       chorus*)
15193         case $cc_basename in
15194         cxch68*)
15195           # Green Hills C++ Compiler
15196           # _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"
15197           ;;
15198         esac
15199         ;;
15200       mingw* | cygwin* | os2* | pw32* | cegcc*)
15201         # This hack is so that the source file can tell whether it is being
15202         # built for inclusion in a dll (and should export symbols for example).
15203         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15204         ;;
15205       dgux*)
15206         case $cc_basename in
15207           ec++*)
15208             lt_prog_compiler_pic_CXX='-KPIC'
15209             ;;
15210           ghcx*)
15211             # Green Hills C++ Compiler
15212             lt_prog_compiler_pic_CXX='-pic'
15213             ;;
15214           *)
15215             ;;
15216         esac
15217         ;;
15218       freebsd* | dragonfly*)
15219         # FreeBSD uses GNU C++
15220         ;;
15221       hpux9* | hpux10* | hpux11*)
15222         case $cc_basename in
15223           CC*)
15224             lt_prog_compiler_wl_CXX='-Wl,'
15225             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15226             if test "$host_cpu" != ia64; then
15227               lt_prog_compiler_pic_CXX='+Z'
15228             fi
15229             ;;
15230           aCC*)
15231             lt_prog_compiler_wl_CXX='-Wl,'
15232             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15233             case $host_cpu in
15234             hppa*64*|ia64*)
15235               # +Z the default
15236               ;;
15237             *)
15238               lt_prog_compiler_pic_CXX='+Z'
15239               ;;
15240             esac
15241             ;;
15242           *)
15243             ;;
15244         esac
15245         ;;
15246       interix*)
15247         # This is c89, which is MS Visual C++ (no shared libs)
15248         # Anyone wants to do a port?
15249         ;;
15250       irix5* | irix6* | nonstopux*)
15251         case $cc_basename in
15252           CC*)
15253             lt_prog_compiler_wl_CXX='-Wl,'
15254             lt_prog_compiler_static_CXX='-non_shared'
15255             # CC pic flag -KPIC is the default.
15256             ;;
15257           *)
15258             ;;
15259         esac
15260         ;;
15261       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15262         case $cc_basename in
15263           KCC*)
15264             # KAI C++ Compiler
15265             lt_prog_compiler_wl_CXX='--backend -Wl,'
15266             lt_prog_compiler_pic_CXX='-fPIC'
15267             ;;
15268           ecpc* )
15269             # old Intel C++ for x86_64 which still supported -KPIC.
15270             lt_prog_compiler_wl_CXX='-Wl,'
15271             lt_prog_compiler_pic_CXX='-KPIC'
15272             lt_prog_compiler_static_CXX='-static'
15273             ;;
15274           icpc* )
15275             # Intel C++, used to be incompatible with GCC.
15276             # ICC 10 doesn't accept -KPIC any more.
15277             lt_prog_compiler_wl_CXX='-Wl,'
15278             lt_prog_compiler_pic_CXX='-fPIC'
15279             lt_prog_compiler_static_CXX='-static'
15280             ;;
15281           pgCC* | pgcpp*)
15282             # Portland Group C++ compiler
15283             lt_prog_compiler_wl_CXX='-Wl,'
15284             lt_prog_compiler_pic_CXX='-fpic'
15285             lt_prog_compiler_static_CXX='-Bstatic'
15286             ;;
15287           cxx*)
15288             # Compaq C++
15289             # Make sure the PIC flag is empty.  It appears that all Alpha
15290             # Linux and Compaq Tru64 Unix objects are PIC.
15291             lt_prog_compiler_pic_CXX=
15292             lt_prog_compiler_static_CXX='-non_shared'
15293             ;;
15294           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15295             # IBM XL 8.0, 9.0 on PPC and BlueGene
15296             lt_prog_compiler_wl_CXX='-Wl,'
15297             lt_prog_compiler_pic_CXX='-qpic'
15298             lt_prog_compiler_static_CXX='-qstaticlink'
15299             ;;
15300           *)
15301             case `$CC -V 2>&1 | sed 5q` in
15302             *Sun\ C*)
15303               # Sun C++ 5.9
15304               lt_prog_compiler_pic_CXX='-KPIC'
15305               lt_prog_compiler_static_CXX='-Bstatic'
15306               lt_prog_compiler_wl_CXX='-Qoption ld '
15307               ;;
15308             esac
15309             ;;
15310         esac
15311         ;;
15312       lynxos*)
15313         ;;
15314       m88k*)
15315         ;;
15316       mvs*)
15317         case $cc_basename in
15318           cxx*)
15319             lt_prog_compiler_pic_CXX='-W c,exportall'
15320             ;;
15321           *)
15322             ;;
15323         esac
15324         ;;
15325       netbsd* | netbsdelf*-gnu)
15326         ;;
15327       *qnx* | *nto*)
15328         # QNX uses GNU C++, but need to define -shared option too, otherwise
15329         # it will coredump.
15330         lt_prog_compiler_pic_CXX='-fPIC -shared'
15331         ;;
15332       osf3* | osf4* | osf5*)
15333         case $cc_basename in
15334           KCC*)
15335             lt_prog_compiler_wl_CXX='--backend -Wl,'
15336             ;;
15337           RCC*)
15338             # Rational C++ 2.4.1
15339             lt_prog_compiler_pic_CXX='-pic'
15340             ;;
15341           cxx*)
15342             # Digital/Compaq C++
15343             lt_prog_compiler_wl_CXX='-Wl,'
15344             # Make sure the PIC flag is empty.  It appears that all Alpha
15345             # Linux and Compaq Tru64 Unix objects are PIC.
15346             lt_prog_compiler_pic_CXX=
15347             lt_prog_compiler_static_CXX='-non_shared'
15348             ;;
15349           *)
15350             ;;
15351         esac
15352         ;;
15353       psos*)
15354         ;;
15355       solaris*)
15356         case $cc_basename in
15357           CC* | sunCC*)
15358             # Sun C++ 4.2, 5.x and Centerline C++
15359             lt_prog_compiler_pic_CXX='-KPIC'
15360             lt_prog_compiler_static_CXX='-Bstatic'
15361             lt_prog_compiler_wl_CXX='-Qoption ld '
15362             ;;
15363           gcx*)
15364             # Green Hills C++ Compiler
15365             lt_prog_compiler_pic_CXX='-PIC'
15366             ;;
15367           *)
15368             ;;
15369         esac
15370         ;;
15371       sunos4*)
15372         case $cc_basename in
15373           CC*)
15374             # Sun C++ 4.x
15375             lt_prog_compiler_pic_CXX='-pic'
15376             lt_prog_compiler_static_CXX='-Bstatic'
15377             ;;
15378           lcc*)
15379             # Lucid
15380             lt_prog_compiler_pic_CXX='-pic'
15381             ;;
15382           *)
15383             ;;
15384         esac
15385         ;;
15386       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15387         case $cc_basename in
15388           CC*)
15389             lt_prog_compiler_wl_CXX='-Wl,'
15390             lt_prog_compiler_pic_CXX='-KPIC'
15391             lt_prog_compiler_static_CXX='-Bstatic'
15392             ;;
15393         esac
15394         ;;
15395       tandem*)
15396         case $cc_basename in
15397           NCC*)
15398             # NonStop-UX NCC 3.20
15399             lt_prog_compiler_pic_CXX='-KPIC'
15400             ;;
15401           *)
15402             ;;
15403         esac
15404         ;;
15405       vxworks*)
15406         ;;
15407       *)
15408         lt_prog_compiler_can_build_shared_CXX=no
15409         ;;
15410     esac
15411   fi
15412
15413 case $host_os in
15414   # For platforms which do not support PIC, -DPIC is meaningless:
15415   *djgpp*)
15416     lt_prog_compiler_pic_CXX=
15417     ;;
15418   *)
15419     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15420     ;;
15421 esac
15422
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15424 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15425 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15426   $as_echo_n "(cached) " >&6
15427 else
15428   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15429 fi
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15431 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15432 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15433
15434 #
15435 # Check to make sure the PIC flag actually works.
15436 #
15437 if test -n "$lt_prog_compiler_pic_CXX"; then
15438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15439 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15440 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15441   $as_echo_n "(cached) " >&6
15442 else
15443   lt_cv_prog_compiler_pic_works_CXX=no
15444    ac_outfile=conftest.$ac_objext
15445    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15446    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15447    # Insert the option either (1) after the last *FLAGS variable, or
15448    # (2) before a word containing "conftest.", or (3) at the end.
15449    # Note that $ac_compile itself does not contain backslashes and begins
15450    # with a dollar sign (not a hyphen), so the echo should work correctly.
15451    # The option is referenced via a variable to avoid confusing sed.
15452    lt_compile=`echo "$ac_compile" | $SED \
15453    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15454    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15455    -e 's:$: $lt_compiler_flag:'`
15456    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15457    (eval "$lt_compile" 2>conftest.err)
15458    ac_status=$?
15459    cat conftest.err >&5
15460    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461    if (exit $ac_status) && test -s "$ac_outfile"; then
15462      # The compiler can only warn and ignore the option if not recognized
15463      # So say no if there are warnings other than the usual output.
15464      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15465      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15466      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15467        lt_cv_prog_compiler_pic_works_CXX=yes
15468      fi
15469    fi
15470    $RM conftest*
15471
15472 fi
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15474 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15475
15476 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15477     case $lt_prog_compiler_pic_CXX in
15478      "" | " "*) ;;
15479      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15480      esac
15481 else
15482     lt_prog_compiler_pic_CXX=
15483      lt_prog_compiler_can_build_shared_CXX=no
15484 fi
15485
15486 fi
15487
15488
15489
15490
15491
15492 #
15493 # Check to make sure the static flag actually works.
15494 #
15495 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15497 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15498 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15499   $as_echo_n "(cached) " >&6
15500 else
15501   lt_cv_prog_compiler_static_works_CXX=no
15502    save_LDFLAGS="$LDFLAGS"
15503    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15504    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15505    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15506      # The linker can only warn and ignore the option if not recognized
15507      # So say no if there are warnings
15508      if test -s conftest.err; then
15509        # Append any errors to the config.log.
15510        cat conftest.err 1>&5
15511        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15512        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15513        if diff conftest.exp conftest.er2 >/dev/null; then
15514          lt_cv_prog_compiler_static_works_CXX=yes
15515        fi
15516      else
15517        lt_cv_prog_compiler_static_works_CXX=yes
15518      fi
15519    fi
15520    $RM -r conftest*
15521    LDFLAGS="$save_LDFLAGS"
15522
15523 fi
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15525 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15526
15527 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15528     :
15529 else
15530     lt_prog_compiler_static_CXX=
15531 fi
15532
15533
15534
15535
15536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15538 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15539   $as_echo_n "(cached) " >&6
15540 else
15541   lt_cv_prog_compiler_c_o_CXX=no
15542    $RM -r conftest 2>/dev/null
15543    mkdir conftest
15544    cd conftest
15545    mkdir out
15546    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15547
15548    lt_compiler_flag="-o out/conftest2.$ac_objext"
15549    # Insert the option either (1) after the last *FLAGS variable, or
15550    # (2) before a word containing "conftest.", or (3) at the end.
15551    # Note that $ac_compile itself does not contain backslashes and begins
15552    # with a dollar sign (not a hyphen), so the echo should work correctly.
15553    lt_compile=`echo "$ac_compile" | $SED \
15554    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15555    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15556    -e 's:$: $lt_compiler_flag:'`
15557    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15558    (eval "$lt_compile" 2>out/conftest.err)
15559    ac_status=$?
15560    cat out/conftest.err >&5
15561    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15563    then
15564      # The compiler can only warn and ignore the option if not recognized
15565      # So say no if there are warnings
15566      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15567      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15568      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15569        lt_cv_prog_compiler_c_o_CXX=yes
15570      fi
15571    fi
15572    chmod u+w . 2>&5
15573    $RM conftest*
15574    # SGI C++ compiler will create directory out/ii_files/ for
15575    # template instantiation
15576    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15577    $RM out/* && rmdir out
15578    cd ..
15579    $RM -r conftest
15580    $RM conftest*
15581
15582 fi
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15584 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15585
15586
15587
15588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15590 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15591   $as_echo_n "(cached) " >&6
15592 else
15593   lt_cv_prog_compiler_c_o_CXX=no
15594    $RM -r conftest 2>/dev/null
15595    mkdir conftest
15596    cd conftest
15597    mkdir out
15598    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15599
15600    lt_compiler_flag="-o out/conftest2.$ac_objext"
15601    # Insert the option either (1) after the last *FLAGS variable, or
15602    # (2) before a word containing "conftest.", or (3) at the end.
15603    # Note that $ac_compile itself does not contain backslashes and begins
15604    # with a dollar sign (not a hyphen), so the echo should work correctly.
15605    lt_compile=`echo "$ac_compile" | $SED \
15606    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15607    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15608    -e 's:$: $lt_compiler_flag:'`
15609    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15610    (eval "$lt_compile" 2>out/conftest.err)
15611    ac_status=$?
15612    cat out/conftest.err >&5
15613    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15615    then
15616      # The compiler can only warn and ignore the option if not recognized
15617      # So say no if there are warnings
15618      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15619      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15620      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15621        lt_cv_prog_compiler_c_o_CXX=yes
15622      fi
15623    fi
15624    chmod u+w . 2>&5
15625    $RM conftest*
15626    # SGI C++ compiler will create directory out/ii_files/ for
15627    # template instantiation
15628    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15629    $RM out/* && rmdir out
15630    cd ..
15631    $RM -r conftest
15632    $RM conftest*
15633
15634 fi
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15636 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15637
15638
15639
15640
15641 hard_links="nottested"
15642 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15643   # do not overwrite the value of need_locks provided by the user
15644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15645 $as_echo_n "checking if we can lock with hard links... " >&6; }
15646   hard_links=yes
15647   $RM conftest*
15648   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15649   touch conftest.a
15650   ln conftest.a conftest.b 2>&5 || hard_links=no
15651   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15653 $as_echo "$hard_links" >&6; }
15654   if test "$hard_links" = no; then
15655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15657     need_locks=warn
15658   fi
15659 else
15660   need_locks=no
15661 fi
15662
15663
15664
15665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15666 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15667
15668   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15669   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15670   case $host_os in
15671   aix[4-9]*)
15672     # If we're using GNU nm, then we don't want the "-C" option.
15673     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15674     # Also, AIX nm treats weak defined symbols like other global defined
15675     # symbols, whereas GNU nm marks them as "W".
15676     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15677       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'
15678     else
15679       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'
15680     fi
15681     ;;
15682   pw32*)
15683     export_symbols_cmds_CXX="$ltdll_cmds"
15684     ;;
15685   cygwin* | mingw* | cegcc*)
15686     case $cc_basename in
15687     cl*)
15688       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15689       ;;
15690     *)
15691       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'
15692       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15693       ;;
15694     esac
15695     ;;
15696   linux* | k*bsd*-gnu | gnu*)
15697     link_all_deplibs_CXX=no
15698     ;;
15699   *)
15700     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15701     ;;
15702   esac
15703
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15705 $as_echo "$ld_shlibs_CXX" >&6; }
15706 test "$ld_shlibs_CXX" = no && can_build_shared=no
15707
15708 with_gnu_ld_CXX=$with_gnu_ld
15709
15710
15711
15712
15713
15714
15715 #
15716 # Do we need to explicitly link libc?
15717 #
15718 case "x$archive_cmds_need_lc_CXX" in
15719 x|xyes)
15720   # Assume -lc should be added
15721   archive_cmds_need_lc_CXX=yes
15722
15723   if test "$enable_shared" = yes && test "$GCC" = yes; then
15724     case $archive_cmds_CXX in
15725     *'~'*)
15726       # FIXME: we may have to deal with multi-command sequences.
15727       ;;
15728     '$CC '*)
15729       # Test whether the compiler implicitly links with -lc since on some
15730       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15731       # to ld, don't add -lc before -lgcc.
15732       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15734 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15735   $as_echo_n "(cached) " >&6
15736 else
15737   $RM conftest*
15738         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15739
15740         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15741   (eval $ac_compile) 2>&5
15742   ac_status=$?
15743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15744   test $ac_status = 0; } 2>conftest.err; then
15745           soname=conftest
15746           lib=conftest
15747           libobjs=conftest.$ac_objext
15748           deplibs=
15749           wl=$lt_prog_compiler_wl_CXX
15750           pic_flag=$lt_prog_compiler_pic_CXX
15751           compiler_flags=-v
15752           linker_flags=-v
15753           verstring=
15754           output_objdir=.
15755           libname=conftest
15756           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15757           allow_undefined_flag_CXX=
15758           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15759   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15760   ac_status=$?
15761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15762   test $ac_status = 0; }
15763           then
15764             lt_cv_archive_cmds_need_lc_CXX=no
15765           else
15766             lt_cv_archive_cmds_need_lc_CXX=yes
15767           fi
15768           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15769         else
15770           cat conftest.err 1>&5
15771         fi
15772         $RM conftest*
15773
15774 fi
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15776 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15777       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15778       ;;
15779     esac
15780   fi
15781   ;;
15782 esac
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15846 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15847
15848 library_names_spec=
15849 libname_spec='lib$name'
15850 soname_spec=
15851 shrext_cmds=".so"
15852 postinstall_cmds=
15853 postuninstall_cmds=
15854 finish_cmds=
15855 finish_eval=
15856 shlibpath_var=
15857 shlibpath_overrides_runpath=unknown
15858 version_type=none
15859 dynamic_linker="$host_os ld.so"
15860 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15861 need_lib_prefix=unknown
15862 hardcode_into_libs=no
15863
15864 # when you set need_version to no, make sure it does not cause -set_version
15865 # flags to be left without arguments
15866 need_version=unknown
15867
15868 case $host_os in
15869 aix3*)
15870   version_type=linux # correct to gnu/linux during the next big refactor
15871   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15872   shlibpath_var=LIBPATH
15873
15874   # AIX 3 has no versioning support, so we append a major version to the name.
15875   soname_spec='${libname}${release}${shared_ext}$major'
15876   ;;
15877
15878 aix[4-9]*)
15879   version_type=linux # correct to gnu/linux during the next big refactor
15880   need_lib_prefix=no
15881   need_version=no
15882   hardcode_into_libs=yes
15883   if test "$host_cpu" = ia64; then
15884     # AIX 5 supports IA64
15885     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15886     shlibpath_var=LD_LIBRARY_PATH
15887   else
15888     # With GCC up to 2.95.x, collect2 would create an import file
15889     # for dependence libraries.  The import file would start with
15890     # the line `#! .'.  This would cause the generated library to
15891     # depend on `.', always an invalid library.  This was fixed in
15892     # development snapshots of GCC prior to 3.0.
15893     case $host_os in
15894       aix4 | aix4.[01] | aix4.[01].*)
15895       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15896            echo ' yes '
15897            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15898         :
15899       else
15900         can_build_shared=no
15901       fi
15902       ;;
15903     esac
15904     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15905     # soname into executable. Probably we can add versioning support to
15906     # collect2, so additional links can be useful in future.
15907     if test "$aix_use_runtimelinking" = yes; then
15908       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15909       # instead of lib<name>.a to let people know that these are not
15910       # typical AIX shared libraries.
15911       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912     else
15913       # We preserve .a as extension for shared libraries through AIX4.2
15914       # and later when we are not doing run time linking.
15915       library_names_spec='${libname}${release}.a $libname.a'
15916       soname_spec='${libname}${release}${shared_ext}$major'
15917     fi
15918     shlibpath_var=LIBPATH
15919   fi
15920   ;;
15921
15922 amigaos*)
15923   case $host_cpu in
15924   powerpc)
15925     # Since July 2007 AmigaOS4 officially supports .so libraries.
15926     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928     ;;
15929   m68k)
15930     library_names_spec='$libname.ixlibrary $libname.a'
15931     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15932     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'
15933     ;;
15934   esac
15935   ;;
15936
15937 beos*)
15938   library_names_spec='${libname}${shared_ext}'
15939   dynamic_linker="$host_os ld.so"
15940   shlibpath_var=LIBRARY_PATH
15941   ;;
15942
15943 bsdi[45]*)
15944   version_type=linux # correct to gnu/linux during the next big refactor
15945   need_version=no
15946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947   soname_spec='${libname}${release}${shared_ext}$major'
15948   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15949   shlibpath_var=LD_LIBRARY_PATH
15950   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15951   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15952   # the default ld.so.conf also contains /usr/contrib/lib and
15953   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15954   # libtool to hard-code these into programs
15955   ;;
15956
15957 cygwin* | mingw* | pw32* | cegcc*)
15958   version_type=windows
15959   shrext_cmds=".dll"
15960   need_version=no
15961   need_lib_prefix=no
15962
15963   case $GCC,$cc_basename in
15964   yes,*)
15965     # gcc
15966     library_names_spec='$libname.dll.a'
15967     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15968     postinstall_cmds='base_file=`basename \${file}`~
15969       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15970       dldir=$destdir/`dirname \$dlpath`~
15971       test -d \$dldir || mkdir -p \$dldir~
15972       $install_prog $dir/$dlname \$dldir/$dlname~
15973       chmod a+x \$dldir/$dlname~
15974       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15975         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15976       fi'
15977     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15978       dlpath=$dir/\$dldll~
15979        $RM \$dlpath'
15980     shlibpath_overrides_runpath=yes
15981
15982     case $host_os in
15983     cygwin*)
15984       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15985       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15986
15987       ;;
15988     mingw* | cegcc*)
15989       # MinGW DLLs use traditional 'lib' prefix
15990       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15991       ;;
15992     pw32*)
15993       # pw32 DLLs use 'pw' prefix rather than 'lib'
15994       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15995       ;;
15996     esac
15997     dynamic_linker='Win32 ld.exe'
15998     ;;
15999
16000   *,cl*)
16001     # Native MSVC
16002     libname_spec='$name'
16003     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16004     library_names_spec='${libname}.dll.lib'
16005
16006     case $build_os in
16007     mingw*)
16008       sys_lib_search_path_spec=
16009       lt_save_ifs=$IFS
16010       IFS=';'
16011       for lt_path in $LIB
16012       do
16013         IFS=$lt_save_ifs
16014         # Let DOS variable expansion print the short 8.3 style file name.
16015         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16016         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16017       done
16018       IFS=$lt_save_ifs
16019       # Convert to MSYS style.
16020       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16021       ;;
16022     cygwin*)
16023       # Convert to unix form, then to dos form, then back to unix form
16024       # but this time dos style (no spaces!) so that the unix form looks
16025       # like /cygdrive/c/PROGRA~1:/cygdr...
16026       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16027       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16028       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16029       ;;
16030     *)
16031       sys_lib_search_path_spec="$LIB"
16032       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16033         # It is most probably a Windows format PATH.
16034         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16035       else
16036         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16037       fi
16038       # FIXME: find the short name or the path components, as spaces are
16039       # common. (e.g. "Program Files" -> "PROGRA~1")
16040       ;;
16041     esac
16042
16043     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16044     postinstall_cmds='base_file=`basename \${file}`~
16045       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16046       dldir=$destdir/`dirname \$dlpath`~
16047       test -d \$dldir || mkdir -p \$dldir~
16048       $install_prog $dir/$dlname \$dldir/$dlname'
16049     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16050       dlpath=$dir/\$dldll~
16051        $RM \$dlpath'
16052     shlibpath_overrides_runpath=yes
16053     dynamic_linker='Win32 link.exe'
16054     ;;
16055
16056   *)
16057     # Assume MSVC wrapper
16058     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16059     dynamic_linker='Win32 ld.exe'
16060     ;;
16061   esac
16062   # FIXME: first we should search . and the directory the executable is in
16063   shlibpath_var=PATH
16064   ;;
16065
16066 darwin* | rhapsody*)
16067   dynamic_linker="$host_os dyld"
16068   version_type=darwin
16069   need_lib_prefix=no
16070   need_version=no
16071   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16072   soname_spec='${libname}${release}${major}$shared_ext'
16073   shlibpath_overrides_runpath=yes
16074   shlibpath_var=DYLD_LIBRARY_PATH
16075   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16076
16077   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16078   ;;
16079
16080 dgux*)
16081   version_type=linux # correct to gnu/linux during the next big refactor
16082   need_lib_prefix=no
16083   need_version=no
16084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16085   soname_spec='${libname}${release}${shared_ext}$major'
16086   shlibpath_var=LD_LIBRARY_PATH
16087   ;;
16088
16089 freebsd* | dragonfly*)
16090   # DragonFly does not have aout.  When/if they implement a new
16091   # versioning mechanism, adjust this.
16092   if test -x /usr/bin/objformat; then
16093     objformat=`/usr/bin/objformat`
16094   else
16095     case $host_os in
16096     freebsd[23].*) objformat=aout ;;
16097     *) objformat=elf ;;
16098     esac
16099   fi
16100   version_type=freebsd-$objformat
16101   case $version_type in
16102     freebsd-elf*)
16103       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16104       need_version=no
16105       need_lib_prefix=no
16106       ;;
16107     freebsd-*)
16108       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16109       need_version=yes
16110       ;;
16111   esac
16112   shlibpath_var=LD_LIBRARY_PATH
16113   case $host_os in
16114   freebsd2.*)
16115     shlibpath_overrides_runpath=yes
16116     ;;
16117   freebsd3.[01]* | freebsdelf3.[01]*)
16118     shlibpath_overrides_runpath=yes
16119     hardcode_into_libs=yes
16120     ;;
16121   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16122   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16123     shlibpath_overrides_runpath=no
16124     hardcode_into_libs=yes
16125     ;;
16126   *) # from 4.6 on, and DragonFly
16127     shlibpath_overrides_runpath=yes
16128     hardcode_into_libs=yes
16129     ;;
16130   esac
16131   ;;
16132
16133 gnu*)
16134   version_type=linux # correct to gnu/linux during the next big refactor
16135   need_lib_prefix=no
16136   need_version=no
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16138   soname_spec='${libname}${release}${shared_ext}$major'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=no
16141   hardcode_into_libs=yes
16142   ;;
16143
16144 haiku*)
16145   version_type=linux # correct to gnu/linux during the next big refactor
16146   need_lib_prefix=no
16147   need_version=no
16148   dynamic_linker="$host_os runtime_loader"
16149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16150   soname_spec='${libname}${release}${shared_ext}$major'
16151   shlibpath_var=LIBRARY_PATH
16152   shlibpath_overrides_runpath=yes
16153   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16154   hardcode_into_libs=yes
16155   ;;
16156
16157 hpux9* | hpux10* | hpux11*)
16158   # Give a soname corresponding to the major version so that dld.sl refuses to
16159   # link against other versions.
16160   version_type=sunos
16161   need_lib_prefix=no
16162   need_version=no
16163   case $host_cpu in
16164   ia64*)
16165     shrext_cmds='.so'
16166     hardcode_into_libs=yes
16167     dynamic_linker="$host_os dld.so"
16168     shlibpath_var=LD_LIBRARY_PATH
16169     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171     soname_spec='${libname}${release}${shared_ext}$major'
16172     if test "X$HPUX_IA64_MODE" = X32; then
16173       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16174     else
16175       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16176     fi
16177     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16178     ;;
16179   hppa*64*)
16180     shrext_cmds='.sl'
16181     hardcode_into_libs=yes
16182     dynamic_linker="$host_os dld.sl"
16183     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16184     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186     soname_spec='${libname}${release}${shared_ext}$major'
16187     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16188     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16189     ;;
16190   *)
16191     shrext_cmds='.sl'
16192     dynamic_linker="$host_os dld.sl"
16193     shlibpath_var=SHLIB_PATH
16194     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16196     soname_spec='${libname}${release}${shared_ext}$major'
16197     ;;
16198   esac
16199   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16200   postinstall_cmds='chmod 555 $lib'
16201   # or fails outright, so override atomically:
16202   install_override_mode=555
16203   ;;
16204
16205 interix[3-9]*)
16206   version_type=linux # correct to gnu/linux during the next big refactor
16207   need_lib_prefix=no
16208   need_version=no
16209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16210   soname_spec='${libname}${release}${shared_ext}$major'
16211   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   shlibpath_overrides_runpath=no
16214   hardcode_into_libs=yes
16215   ;;
16216
16217 irix5* | irix6* | nonstopux*)
16218   case $host_os in
16219     nonstopux*) version_type=nonstopux ;;
16220     *)
16221         if test "$lt_cv_prog_gnu_ld" = yes; then
16222                 version_type=linux # correct to gnu/linux during the next big refactor
16223         else
16224                 version_type=irix
16225         fi ;;
16226   esac
16227   need_lib_prefix=no
16228   need_version=no
16229   soname_spec='${libname}${release}${shared_ext}$major'
16230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16231   case $host_os in
16232   irix5* | nonstopux*)
16233     libsuff= shlibsuff=
16234     ;;
16235   *)
16236     case $LD in # libtool.m4 will add one of these switches to LD
16237     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16238       libsuff= shlibsuff= libmagic=32-bit;;
16239     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16240       libsuff=32 shlibsuff=N32 libmagic=N32;;
16241     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16242       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16243     *) libsuff= shlibsuff= libmagic=never-match;;
16244     esac
16245     ;;
16246   esac
16247   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16248   shlibpath_overrides_runpath=no
16249   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16250   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16251   hardcode_into_libs=yes
16252   ;;
16253
16254 # No shared lib support for Linux oldld, aout, or coff.
16255 linux*oldld* | linux*aout* | linux*coff*)
16256   dynamic_linker=no
16257   ;;
16258
16259 # This must be glibc/ELF.
16260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16261   version_type=linux # correct to gnu/linux during the next big refactor
16262   need_lib_prefix=no
16263   need_version=no
16264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265   soname_spec='${libname}${release}${shared_ext}$major'
16266   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16267   shlibpath_var=LD_LIBRARY_PATH
16268   shlibpath_overrides_runpath=no
16269
16270   # Some binutils ld are patched to set DT_RUNPATH
16271   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16272   $as_echo_n "(cached) " >&6
16273 else
16274   lt_cv_shlibpath_overrides_runpath=no
16275     save_LDFLAGS=$LDFLAGS
16276     save_libdir=$libdir
16277     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16278          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h.  */
16281
16282 int
16283 main ()
16284 {
16285
16286   ;
16287   return 0;
16288 }
16289 _ACEOF
16290 if ac_fn_cxx_try_link "$LINENO"; then :
16291   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16292   lt_cv_shlibpath_overrides_runpath=yes
16293 fi
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext \
16296     conftest$ac_exeext conftest.$ac_ext
16297     LDFLAGS=$save_LDFLAGS
16298     libdir=$save_libdir
16299
16300 fi
16301
16302   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16303
16304   # This implies no fast_install, which is unacceptable.
16305   # Some rework will be needed to allow for fast_install
16306   # before this can be enabled.
16307   hardcode_into_libs=yes
16308
16309   # Append ld.so.conf contents to the search path
16310   if test -f /etc/ld.so.conf; then
16311     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' ' '`
16312     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16313   fi
16314
16315   # We used to test for /lib/ld.so.1 and disable shared libraries on
16316   # powerpc, because MkLinux only supported shared libraries with the
16317   # GNU dynamic linker.  Since this was broken with cross compilers,
16318   # most powerpc-linux boxes support dynamic linking these days and
16319   # people can always --disable-shared, the test was removed, and we
16320   # assume the GNU/Linux dynamic linker is in use.
16321   dynamic_linker='GNU/Linux ld.so'
16322   ;;
16323
16324 netbsdelf*-gnu)
16325   version_type=linux
16326   need_lib_prefix=no
16327   need_version=no
16328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16329   soname_spec='${libname}${release}${shared_ext}$major'
16330   shlibpath_var=LD_LIBRARY_PATH
16331   shlibpath_overrides_runpath=no
16332   hardcode_into_libs=yes
16333   dynamic_linker='NetBSD ld.elf_so'
16334   ;;
16335
16336 netbsd*)
16337   version_type=sunos
16338   need_lib_prefix=no
16339   need_version=no
16340   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16342     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16343     dynamic_linker='NetBSD (a.out) ld.so'
16344   else
16345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16346     soname_spec='${libname}${release}${shared_ext}$major'
16347     dynamic_linker='NetBSD ld.elf_so'
16348   fi
16349   shlibpath_var=LD_LIBRARY_PATH
16350   shlibpath_overrides_runpath=yes
16351   hardcode_into_libs=yes
16352   ;;
16353
16354 newsos6)
16355   version_type=linux # correct to gnu/linux during the next big refactor
16356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357   shlibpath_var=LD_LIBRARY_PATH
16358   shlibpath_overrides_runpath=yes
16359   ;;
16360
16361 *nto* | *qnx*)
16362   version_type=qnx
16363   need_lib_prefix=no
16364   need_version=no
16365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366   soname_spec='${libname}${release}${shared_ext}$major'
16367   shlibpath_var=LD_LIBRARY_PATH
16368   shlibpath_overrides_runpath=no
16369   hardcode_into_libs=yes
16370   dynamic_linker='ldqnx.so'
16371   ;;
16372
16373 openbsd*)
16374   version_type=sunos
16375   sys_lib_dlsearch_path_spec="/usr/lib"
16376   need_lib_prefix=no
16377   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16378   case $host_os in
16379     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16380     *)                          need_version=no  ;;
16381   esac
16382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16383   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16384   shlibpath_var=LD_LIBRARY_PATH
16385   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16386     case $host_os in
16387       openbsd2.[89] | openbsd2.[89].*)
16388         shlibpath_overrides_runpath=no
16389         ;;
16390       *)
16391         shlibpath_overrides_runpath=yes
16392         ;;
16393       esac
16394   else
16395     shlibpath_overrides_runpath=yes
16396   fi
16397   ;;
16398
16399 os2*)
16400   libname_spec='$name'
16401   shrext_cmds=".dll"
16402   need_lib_prefix=no
16403   library_names_spec='$libname${shared_ext} $libname.a'
16404   dynamic_linker='OS/2 ld.exe'
16405   shlibpath_var=LIBPATH
16406   ;;
16407
16408 osf3* | osf4* | osf5*)
16409   version_type=osf
16410   need_lib_prefix=no
16411   need_version=no
16412   soname_spec='${libname}${release}${shared_ext}$major'
16413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414   shlibpath_var=LD_LIBRARY_PATH
16415   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16416   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16417   ;;
16418
16419 rdos*)
16420   dynamic_linker=no
16421   ;;
16422
16423 solaris*)
16424   version_type=linux # correct to gnu/linux during the next big refactor
16425   need_lib_prefix=no
16426   need_version=no
16427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428   soname_spec='${libname}${release}${shared_ext}$major'
16429   shlibpath_var=LD_LIBRARY_PATH
16430   shlibpath_overrides_runpath=yes
16431   hardcode_into_libs=yes
16432   # ldd complains unless libraries are executable
16433   postinstall_cmds='chmod +x $lib'
16434   ;;
16435
16436 sunos4*)
16437   version_type=sunos
16438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16439   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16440   shlibpath_var=LD_LIBRARY_PATH
16441   shlibpath_overrides_runpath=yes
16442   if test "$with_gnu_ld" = yes; then
16443     need_lib_prefix=no
16444   fi
16445   need_version=yes
16446   ;;
16447
16448 sysv4 | sysv4.3*)
16449   version_type=linux # correct to gnu/linux during the next big refactor
16450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451   soname_spec='${libname}${release}${shared_ext}$major'
16452   shlibpath_var=LD_LIBRARY_PATH
16453   case $host_vendor in
16454     sni)
16455       shlibpath_overrides_runpath=no
16456       need_lib_prefix=no
16457       runpath_var=LD_RUN_PATH
16458       ;;
16459     siemens)
16460       need_lib_prefix=no
16461       ;;
16462     motorola)
16463       need_lib_prefix=no
16464       need_version=no
16465       shlibpath_overrides_runpath=no
16466       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16467       ;;
16468   esac
16469   ;;
16470
16471 sysv4*MP*)
16472   if test -d /usr/nec ;then
16473     version_type=linux # correct to gnu/linux during the next big refactor
16474     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16475     soname_spec='$libname${shared_ext}.$major'
16476     shlibpath_var=LD_LIBRARY_PATH
16477   fi
16478   ;;
16479
16480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16481   version_type=freebsd-elf
16482   need_lib_prefix=no
16483   need_version=no
16484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16485   soname_spec='${libname}${release}${shared_ext}$major'
16486   shlibpath_var=LD_LIBRARY_PATH
16487   shlibpath_overrides_runpath=yes
16488   hardcode_into_libs=yes
16489   if test "$with_gnu_ld" = yes; then
16490     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16491   else
16492     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16493     case $host_os in
16494       sco3.2v5*)
16495         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16496         ;;
16497     esac
16498   fi
16499   sys_lib_dlsearch_path_spec='/usr/lib'
16500   ;;
16501
16502 tpf*)
16503   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16504   version_type=linux # correct to gnu/linux during the next big refactor
16505   need_lib_prefix=no
16506   need_version=no
16507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16508   shlibpath_var=LD_LIBRARY_PATH
16509   shlibpath_overrides_runpath=no
16510   hardcode_into_libs=yes
16511   ;;
16512
16513 uts4*)
16514   version_type=linux # correct to gnu/linux during the next big refactor
16515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516   soname_spec='${libname}${release}${shared_ext}$major'
16517   shlibpath_var=LD_LIBRARY_PATH
16518   ;;
16519
16520 *)
16521   dynamic_linker=no
16522   ;;
16523 esac
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16525 $as_echo "$dynamic_linker" >&6; }
16526 test "$dynamic_linker" = no && can_build_shared=no
16527
16528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16529 if test "$GCC" = yes; then
16530   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16531 fi
16532
16533 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16534   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16535 fi
16536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16537   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16538 fi
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16578 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16579 hardcode_action_CXX=
16580 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16581    test -n "$runpath_var_CXX" ||
16582    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16583
16584   # We can hardcode non-existent directories.
16585   if test "$hardcode_direct_CXX" != no &&
16586      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16587      # have to relink, otherwise we might link with an installed library
16588      # when we should be linking with a yet-to-be-installed one
16589      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16590      test "$hardcode_minus_L_CXX" != no; then
16591     # Linking always hardcodes the temporary library directory.
16592     hardcode_action_CXX=relink
16593   else
16594     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16595     hardcode_action_CXX=immediate
16596   fi
16597 else
16598   # We cannot hardcode anything, or else we can only hardcode existing
16599   # directories.
16600   hardcode_action_CXX=unsupported
16601 fi
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16603 $as_echo "$hardcode_action_CXX" >&6; }
16604
16605 if test "$hardcode_action_CXX" = relink ||
16606    test "$inherit_rpath_CXX" = yes; then
16607   # Fast installation is not supported
16608   enable_fast_install=no
16609 elif test "$shlibpath_overrides_runpath" = yes ||
16610      test "$enable_shared" = no; then
16611   # Fast installation is not necessary
16612   enable_fast_install=needless
16613 fi
16614
16615
16616
16617
16618
16619
16620
16621   fi # test -n "$compiler"
16622
16623   CC=$lt_save_CC
16624   CFLAGS=$lt_save_CFLAGS
16625   LDCXX=$LD
16626   LD=$lt_save_LD
16627   GCC=$lt_save_GCC
16628   with_gnu_ld=$lt_save_with_gnu_ld
16629   lt_cv_path_LDCXX=$lt_cv_path_LD
16630   lt_cv_path_LD=$lt_save_path_LD
16631   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16632   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16633 fi # test "$_lt_caught_CXX_error" != yes
16634
16635 ac_ext=c
16636 ac_cpp='$CPP $CPPFLAGS'
16637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655         ac_config_commands="$ac_config_commands libtool"
16656
16657
16658
16659
16660 # Only expand once:
16661
16662
16663 if test -n "$ac_tool_prefix"; then
16664   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16665 set dummy ${ac_tool_prefix}windres; ac_word=$2
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16667 $as_echo_n "checking for $ac_word... " >&6; }
16668 if ${ac_cv_prog_RC+:} false; then :
16669   $as_echo_n "(cached) " >&6
16670 else
16671   if test -n "$RC"; then
16672   ac_cv_prog_RC="$RC" # Let the user override the test.
16673 else
16674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675 for as_dir in $PATH
16676 do
16677   IFS=$as_save_IFS
16678   test -z "$as_dir" && as_dir=.
16679     for ac_exec_ext in '' $ac_executable_extensions; do
16680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16681     ac_cv_prog_RC="${ac_tool_prefix}windres"
16682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16683     break 2
16684   fi
16685 done
16686   done
16687 IFS=$as_save_IFS
16688
16689 fi
16690 fi
16691 RC=$ac_cv_prog_RC
16692 if test -n "$RC"; then
16693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16694 $as_echo "$RC" >&6; }
16695 else
16696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16698 fi
16699
16700
16701 fi
16702 if test -z "$ac_cv_prog_RC"; then
16703   ac_ct_RC=$RC
16704   # Extract the first word of "windres", so it can be a program name with args.
16705 set dummy windres; ac_word=$2
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16707 $as_echo_n "checking for $ac_word... " >&6; }
16708 if ${ac_cv_prog_ac_ct_RC+:} false; then :
16709   $as_echo_n "(cached) " >&6
16710 else
16711   if test -n "$ac_ct_RC"; then
16712   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16713 else
16714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16715 for as_dir in $PATH
16716 do
16717   IFS=$as_save_IFS
16718   test -z "$as_dir" && as_dir=.
16719     for ac_exec_ext in '' $ac_executable_extensions; do
16720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16721     ac_cv_prog_ac_ct_RC="windres"
16722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16723     break 2
16724   fi
16725 done
16726   done
16727 IFS=$as_save_IFS
16728
16729 fi
16730 fi
16731 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16732 if test -n "$ac_ct_RC"; then
16733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16734 $as_echo "$ac_ct_RC" >&6; }
16735 else
16736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16737 $as_echo "no" >&6; }
16738 fi
16739
16740   if test "x$ac_ct_RC" = x; then
16741     RC=""
16742   else
16743     case $cross_compiling:$ac_tool_warned in
16744 yes:)
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16747 ac_tool_warned=yes ;;
16748 esac
16749     RC=$ac_ct_RC
16750   fi
16751 else
16752   RC="$ac_cv_prog_RC"
16753 fi
16754
16755
16756
16757
16758 # Source file extension for RC test sources.
16759 ac_ext=rc
16760
16761 # Object file extension for compiled RC test sources.
16762 objext=o
16763 objext_RC=$objext
16764
16765 # Code to be used in simple compile tests
16766 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16767
16768 # Code to be used in simple link tests
16769 lt_simple_link_test_code="$lt_simple_compile_test_code"
16770
16771 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16772
16773
16774
16775
16776
16777
16778 # If no C compiler was specified, use CC.
16779 LTCC=${LTCC-"$CC"}
16780
16781 # If no C compiler flags were specified, use CFLAGS.
16782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16783
16784 # Allow CC to be a program name with arguments.
16785 compiler=$CC
16786
16787
16788 # save warnings/boilerplate of simple test code
16789 ac_outfile=conftest.$ac_objext
16790 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16792 _lt_compiler_boilerplate=`cat conftest.err`
16793 $RM conftest*
16794
16795 ac_outfile=conftest.$ac_objext
16796 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16798 _lt_linker_boilerplate=`cat conftest.err`
16799 $RM -r conftest*
16800
16801
16802 # Allow CC to be a program name with arguments.
16803 lt_save_CC="$CC"
16804 lt_save_CFLAGS=$CFLAGS
16805 lt_save_GCC=$GCC
16806 GCC=
16807 CC=${RC-"windres"}
16808 CFLAGS=
16809 compiler=$CC
16810 compiler_RC=$CC
16811 for cc_temp in $compiler""; do
16812   case $cc_temp in
16813     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16814     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16815     \-*) ;;
16816     *) break;;
16817   esac
16818 done
16819 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16820
16821 lt_cv_prog_compiler_c_o_RC=yes
16822
16823 if test -n "$compiler"; then
16824   :
16825
16826
16827
16828 fi
16829
16830 GCC=$lt_save_GCC
16831 ac_ext=c
16832 ac_cpp='$CPP $CPPFLAGS'
16833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16836
16837 CC=$lt_save_CC
16838 CFLAGS=$lt_save_CFLAGS
16839
16840
16841 # For now we hardcode the use of version scripts.  It would be better
16842 # to write a test for this or even implement this within libtool.
16843 have_ld_version_script=no
16844 case "${host}" in
16845     *-*-linux*)
16846         have_ld_version_script=yes
16847         ;;
16848     *-*-gnu*)
16849         have_ld_version_script=yes
16850         ;;
16851     *-apple-darwin*)
16852
16853 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
16854
16855         ;;
16856 esac
16857
16858  if test "$have_ld_version_script" = "yes"; then
16859   HAVE_LD_VERSION_SCRIPT_TRUE=
16860   HAVE_LD_VERSION_SCRIPT_FALSE='#'
16861 else
16862   HAVE_LD_VERSION_SCRIPT_TRUE='#'
16863   HAVE_LD_VERSION_SCRIPT_FALSE=
16864 fi
16865
16866
16867 GPG_DEFAULT=no
16868 GPGSM_DEFAULT=no
16869 GPGCONF_DEFAULT=no
16870 G13_DEFAULT=no
16871 component_system=None
16872 have_dosish_system=no
16873 have_android_system=no
16874 have_w32_system=no
16875 have_w64_system=no
16876 build_w32_glib=no
16877 build_w32_qt=no
16878 case "${host}" in
16879     x86_64-*mingw32*)
16880         have_w64_system=yes
16881         ;;
16882     *-mingw32ce*)
16883         have_w32ce_system=yes
16884         ;;
16885     *-linux-androideabi)
16886         have_android_system=yes
16887         ;;
16888 esac
16889 case "${host}" in
16890     *-mingw32ce*|*-mingw32*)
16891         have_dosish_system=yes
16892         have_w32_system=yes
16893         GPG_DEFAULT='c:\\gnupg\\gpg.exe'
16894         GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
16895         GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
16896         G13_DEFAULT='c:\\gnupg\\g13.exe'
16897         #component_system='COM+'
16898
16899         # Check whether --enable-glibtest was given.
16900 if test "${enable_glibtest+set}" = set; then :
16901   enableval=$enable_glibtest;
16902 else
16903   enable_glibtest=yes
16904 fi
16905
16906
16907   pkg_config_args=glib-2.0
16908   for module in .
16909   do
16910       case "$module" in
16911          gmodule)
16912              pkg_config_args="$pkg_config_args gmodule-2.0"
16913          ;;
16914          gmodule-no-export)
16915              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
16916          ;;
16917          gobject)
16918              pkg_config_args="$pkg_config_args gobject-2.0"
16919          ;;
16920          gthread)
16921              pkg_config_args="$pkg_config_args gthread-2.0"
16922          ;;
16923       esac
16924   done
16925
16926   # Extract the first word of "pkg-config", so it can be a program name with args.
16927 set dummy pkg-config; ac_word=$2
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16929 $as_echo_n "checking for $ac_word... " >&6; }
16930 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16931   $as_echo_n "(cached) " >&6
16932 else
16933   case $PKG_CONFIG in
16934   [\\/]* | ?:[\\/]*)
16935   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16936   ;;
16937   *)
16938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16939 for as_dir in $PATH
16940 do
16941   IFS=$as_save_IFS
16942   test -z "$as_dir" && as_dir=.
16943     for ac_exec_ext in '' $ac_executable_extensions; do
16944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16945     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16947     break 2
16948   fi
16949 done
16950   done
16951 IFS=$as_save_IFS
16952
16953   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16954   ;;
16955 esac
16956 fi
16957 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16958 if test -n "$PKG_CONFIG"; then
16959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16960 $as_echo "$PKG_CONFIG" >&6; }
16961 else
16962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16963 $as_echo "no" >&6; }
16964 fi
16965
16966
16967
16968   no_glib=""
16969
16970   if test x$PKG_CONFIG != xno ; then
16971     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
16972       :
16973     else
16974       echo *** pkg-config too old; version 0.7 or better required.
16975       no_glib=yes
16976       PKG_CONFIG=no
16977     fi
16978   else
16979     no_glib=yes
16980   fi
16981
16982   min_glib_version=2.0.0
16983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
16984 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
16985
16986   if test x$PKG_CONFIG != xno ; then
16987     ## don't try to run the test against uninstalled libtool libs
16988     if $PKG_CONFIG --uninstalled $pkg_config_args; then
16989           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
16990           enable_glibtest=no
16991     fi
16992
16993     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
16994           :
16995     else
16996           no_glib=yes
16997     fi
16998   fi
16999
17000   if test x"$no_glib" = x ; then
17001     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17002     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17003     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17004
17005     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17006     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17007     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17008            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17009     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17010            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17011     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17012            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17013     if test "x$enable_glibtest" = "xyes" ; then
17014       ac_save_CFLAGS="$CFLAGS"
17015       ac_save_LIBS="$LIBS"
17016       CFLAGS="$CFLAGS $GLIB_CFLAGS"
17017       LIBS="$GLIB_LIBS $LIBS"
17018       rm -f conf.glibtest
17019       if test "$cross_compiling" = yes; then :
17020   echo $ac_n "cross compiling; assumed OK... $ac_c"
17021 else
17022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h.  */
17024
17025 #include <glib.h>
17026 #include <stdio.h>
17027 #include <stdlib.h>
17028
17029 int
17030 main ()
17031 {
17032   int major, minor, micro;
17033   char *tmp_version;
17034
17035   system ("touch conf.glibtest");
17036
17037   /* HP/UX 9 (%@#!) writes to sscanf strings */
17038   tmp_version = g_strdup("$min_glib_version");
17039   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17040      printf("%s, bad version string\n", "$min_glib_version");
17041      exit(1);
17042    }
17043
17044   if ((glib_major_version != $glib_config_major_version) ||
17045       (glib_minor_version != $glib_config_minor_version) ||
17046       (glib_micro_version != $glib_config_micro_version))
17047     {
17048       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17049              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17050              glib_major_version, glib_minor_version, glib_micro_version);
17051       printf ("*** was found! If pkg-config was correct, then it is best\n");
17052       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17053       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17054       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17055       printf("*** required on your system.\n");
17056       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17057       printf("*** to point to the correct configuration files\n");
17058     }
17059   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17060            (glib_minor_version != GLIB_MINOR_VERSION) ||
17061            (glib_micro_version != GLIB_MICRO_VERSION))
17062     {
17063       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17064              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17065       printf("*** library (version %d.%d.%d)\n",
17066              glib_major_version, glib_minor_version, glib_micro_version);
17067     }
17068   else
17069     {
17070       if ((glib_major_version > major) ||
17071         ((glib_major_version == major) && (glib_minor_version > minor)) ||
17072         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17073       {
17074         return 0;
17075        }
17076      else
17077       {
17078         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17079                glib_major_version, glib_minor_version, glib_micro_version);
17080         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17081                major, minor, micro);
17082         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17083         printf("***\n");
17084         printf("*** If you have already installed a sufficiently new version, this error\n");
17085         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17086         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17087         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17088         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17089         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17090         printf("*** so that the correct libraries are found at run-time))\n");
17091       }
17092     }
17093   return 1;
17094 }
17095
17096 _ACEOF
17097 if ac_fn_c_try_run "$LINENO"; then :
17098
17099 else
17100   no_glib=yes
17101 fi
17102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17103   conftest.$ac_objext conftest.beam conftest.$ac_ext
17104 fi
17105
17106        CFLAGS="$ac_save_CFLAGS"
17107        LIBS="$ac_save_LIBS"
17108      fi
17109   fi
17110   if test "x$no_glib" = x ; then
17111      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17112 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17113      :
17114   else
17115      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17116 $as_echo "no" >&6; }
17117      if test "$PKG_CONFIG" = "no" ; then
17118        echo "*** A new enough version of pkg-config was not found."
17119        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17120      else
17121        if test -f conf.glibtest ; then
17122         :
17123        else
17124           echo "*** Could not run GLIB test program, checking why..."
17125           ac_save_CFLAGS="$CFLAGS"
17126           ac_save_LIBS="$LIBS"
17127           CFLAGS="$CFLAGS $GLIB_CFLAGS"
17128           LIBS="$LIBS $GLIB_LIBS"
17129           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h.  */
17131
17132 #include <glib.h>
17133 #include <stdio.h>
17134
17135 int
17136 main ()
17137 {
17138  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17139   ;
17140   return 0;
17141 }
17142 _ACEOF
17143 if ac_fn_c_try_link "$LINENO"; then :
17144    echo "*** The test program compiled, but did not run. This usually means"
17145           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17146           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17147           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17148           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17149           echo "*** is required on your system"
17150           echo "***"
17151           echo "*** If you have an old version installed, it is best to remove it, although"
17152           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17153 else
17154    echo "*** The test program failed to compile or link. See the file config.log for the"
17155           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17156 fi
17157 rm -f core conftest.err conftest.$ac_objext \
17158     conftest$ac_exeext conftest.$ac_ext
17159           CFLAGS="$ac_save_CFLAGS"
17160           LIBS="$ac_save_LIBS"
17161        fi
17162      fi
17163      GLIB_CFLAGS=""
17164      GLIB_LIBS=""
17165      GLIB_GENMARSHAL=""
17166      GOBJECT_QUERY=""
17167      GLIB_MKENUMS=""
17168      :
17169   fi
17170
17171
17172
17173
17174
17175   rm -f conf.glibtest
17176
17177         # Check whether --enable-w32-glib was given.
17178 if test "${enable_w32_glib+set}" = set; then :
17179   enableval=$enable_w32_glib; build_w32_glib=$enableval
17180 fi
17181
17182
17183         # Check disabled, because the qt-dev packages in gpg4win do
17184         # not provide any support for cross compilation.
17185         # PKG_CHECK_MODULES(QT4_CORE, QtCore)
17186
17187         # Use it like this:
17188         # ./configure --enable-w32-qt QT4_CORE_CFLAGS="..." QT4_CORE_LIBS="..."
17189
17190
17191         # Check whether --enable-w32-qt was given.
17192 if test "${enable_w32_qt+set}" = set; then :
17193   enableval=$enable_w32_qt; build_w32_qt=$enableval
17194 fi
17195
17196         ;;
17197     *)
17198         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17199 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17200 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17201   $as_echo_n "(cached) " >&6
17202 else
17203   ac_check_lib_save_LIBS=$LIBS
17204 LIBS="-lpthread  $LIBS"
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h.  */
17207
17208 /* Override any GCC internal prototype to avoid an error.
17209    Use char because int might match the return type of a GCC
17210    builtin and then its argument prototype would still apply.  */
17211 #ifdef __cplusplus
17212 extern "C"
17213 #endif
17214 char pthread_create ();
17215 int
17216 main ()
17217 {
17218 return pthread_create ();
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 if ac_fn_c_try_link "$LINENO"; then :
17224   ac_cv_lib_pthread_pthread_create=yes
17225 else
17226   ac_cv_lib_pthread_pthread_create=no
17227 fi
17228 rm -f core conftest.err conftest.$ac_objext \
17229     conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17231 fi
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17233 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17234 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17235   have_pthread=yes
17236 fi
17237
17238         if test "$have_pthread" = yes; then
17239
17240 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
17241
17242         fi
17243
17244         # XXX: Probably use exec-prefix here?
17245 #       GPG_DEFAULT='/usr/bin/gpg'
17246 #       GPGSM_DEFAULT='/usr/bin/gpgsm'
17247 #       GPGCONF_DEFAULT='/usr/bin/gpgconf'
17248 #       G13_DEFAULT='/usr/bin/g13'
17249         ;;
17250 esac
17251
17252 if test "$have_dosish_system" = yes; then
17253
17254 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17255
17256 fi
17257  if test "$have_dosish_system" = yes; then
17258   HAVE_DOSISH_SYSTEM_TRUE=
17259   HAVE_DOSISH_SYSTEM_FALSE='#'
17260 else
17261   HAVE_DOSISH_SYSTEM_TRUE='#'
17262   HAVE_DOSISH_SYSTEM_FALSE=
17263 fi
17264
17265
17266 if test "$have_w32_system" = yes; then
17267
17268 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17269
17270 fi
17271  if test "$have_w32_system" = yes; then
17272   HAVE_W32_SYSTEM_TRUE=
17273   HAVE_W32_SYSTEM_FALSE='#'
17274 else
17275   HAVE_W32_SYSTEM_TRUE='#'
17276   HAVE_W32_SYSTEM_FALSE=
17277 fi
17278
17279
17280 if test "$have_w64_system" = yes; then
17281
17282 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17283
17284 fi
17285  if test "$have_w64_system" = yes; then
17286   HAVE_W64_SYSTEM_TRUE=
17287   HAVE_W64_SYSTEM_FALSE='#'
17288 else
17289   HAVE_W64_SYSTEM_TRUE='#'
17290   HAVE_W64_SYSTEM_FALSE=
17291 fi
17292
17293
17294 if test "$have_w32ce_system" = yes; then
17295
17296 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
17297
17298 fi
17299  if test "$have_w32ce_system" = yes; then
17300   HAVE_W32CE_SYSTEM_TRUE=
17301   HAVE_W32CE_SYSTEM_FALSE='#'
17302 else
17303   HAVE_W32CE_SYSTEM_TRUE='#'
17304   HAVE_W32CE_SYSTEM_FALSE=
17305 fi
17306
17307
17308 if test "$have_android_system" = yes; then
17309
17310 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17311
17312 fi
17313  if test "$have_android_system" = yes; then
17314   HAVE_ANDROID_SYSTEM_TRUE=
17315   HAVE_ANDROID_SYSTEM_FALSE='#'
17316 else
17317   HAVE_ANDROID_SYSTEM_TRUE='#'
17318   HAVE_ANDROID_SYSTEM_FALSE=
17319 fi
17320
17321
17322  if test "$build_w32_glib" = yes; then
17323   BUILD_W32_GLIB_TRUE=
17324   BUILD_W32_GLIB_FALSE='#'
17325 else
17326   BUILD_W32_GLIB_TRUE='#'
17327   BUILD_W32_GLIB_FALSE=
17328 fi
17329
17330  if test "$build_w32_qt" = yes; then
17331   BUILD_W32_QT_TRUE=
17332   BUILD_W32_QT_FALSE='#'
17333 else
17334   BUILD_W32_QT_TRUE='#'
17335   BUILD_W32_QT_FALSE=
17336 fi
17337
17338
17339  if test "$have_pthread" = "yes"; then
17340   HAVE_PTHREAD_TRUE=
17341   HAVE_PTHREAD_FALSE='#'
17342 else
17343   HAVE_PTHREAD_TRUE='#'
17344   HAVE_PTHREAD_FALSE=
17345 fi
17346
17347
17348
17349 # Check whether --enable-fixed-path was given.
17350 if test "${enable_fixed_path+set}" = set; then :
17351   enableval=$enable_fixed_path; fixed_search_path="$enableval"
17352 else
17353   fixed_search_path=""
17354 fi
17355
17356 if test x$fixed_search_path != x ; then
17357
17358 cat >>confdefs.h <<_ACEOF
17359 #define FIXED_SEARCH_PATH "$fixed_search_path"
17360 _ACEOF
17361
17362 fi
17363
17364
17365 #
17366 # Provide information about the build.
17367 #
17368 BUILD_REVISION="37d927a"
17369
17370
17371 cat >>confdefs.h <<_ACEOF
17372 #define BUILD_REVISION "$BUILD_REVISION"
17373 _ACEOF
17374
17375
17376 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
17377 BUILD_FILEVERSION="${BUILD_FILEVERSION}14297"
17378
17379
17380 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
17381
17382
17383 cat >>confdefs.h <<_ACEOF
17384 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
17385 _ACEOF
17386
17387
17388 #
17389 # Options to disable some regression tests
17390 #
17391 run_gpgconf_test="yes"
17392 # Check whether --enable-gpgconf-test was given.
17393 if test "${enable_gpgconf_test+set}" = set; then :
17394   enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
17395 fi
17396
17397  if test "$run_gpgconf_test" = "yes"; then
17398   RUN_GPGCONF_TESTS_TRUE=
17399   RUN_GPGCONF_TESTS_FALSE='#'
17400 else
17401   RUN_GPGCONF_TESTS_TRUE='#'
17402   RUN_GPGCONF_TESTS_FALSE=
17403 fi
17404
17405
17406 run_gpg_test="yes"
17407 # Check whether --enable-gpg-test was given.
17408 if test "${enable_gpg_test+set}" = set; then :
17409   enableval=$enable_gpg_test; run_gpg_test=$enableval
17410 fi
17411
17412  if test "$run_gpg_test" = "yes"; then
17413   RUN_GPG_TESTS_TRUE=
17414   RUN_GPG_TESTS_FALSE='#'
17415 else
17416   RUN_GPG_TESTS_TRUE='#'
17417   RUN_GPG_TESTS_FALSE=
17418 fi
17419
17420
17421 run_gpgsm_test="yes"
17422 # Check whether --enable-gpgsm-test was given.
17423 if test "${enable_gpgsm_test+set}" = set; then :
17424   enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
17425 fi
17426
17427  if test "$run_gpgsm_test" = "yes"; then
17428   RUN_GPGSM_TESTS_TRUE=
17429   RUN_GPGSM_TESTS_FALSE='#'
17430 else
17431   RUN_GPGSM_TESTS_TRUE='#'
17432   RUN_GPGSM_TESTS_FALSE=
17433 fi
17434
17435
17436 run_g13_test="yes"
17437 # Check whether --enable-g13-test was given.
17438 if test "${enable_g13_test+set}" = set; then :
17439   enableval=$enable_g13_test; run_g13_test=$enableval
17440 fi
17441
17442  if test "$run_g13_test" = "yes"; then
17443   RUN_G13_TESTS_TRUE=
17444   RUN_G13_TESTS_FALSE='#'
17445 else
17446   RUN_G13_TESTS_TRUE='#'
17447   RUN_G13_TESTS_FALSE=
17448 fi
17449
17450
17451
17452 # Checks for header files.
17453
17454
17455
17456   for ac_header in $ac_header_list
17457 do :
17458   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17460 "
17461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17462   cat >>confdefs.h <<_ACEOF
17463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17464 _ACEOF
17465
17466 fi
17467
17468 done
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489 # Type checks.
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17491 $as_echo_n "checking for inline... " >&6; }
17492 if ${ac_cv_c_inline+:} false; then :
17493   $as_echo_n "(cached) " >&6
17494 else
17495   ac_cv_c_inline=no
17496 for ac_kw in inline __inline__ __inline; do
17497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h.  */
17499 #ifndef __cplusplus
17500 typedef int foo_t;
17501 static $ac_kw foo_t static_foo () {return 0; }
17502 $ac_kw foo_t foo () {return 0; }
17503 #endif
17504
17505 _ACEOF
17506 if ac_fn_c_try_compile "$LINENO"; then :
17507   ac_cv_c_inline=$ac_kw
17508 fi
17509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17510   test "$ac_cv_c_inline" != no && break
17511 done
17512
17513 fi
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17515 $as_echo "$ac_cv_c_inline" >&6; }
17516
17517 case $ac_cv_c_inline in
17518   inline | yes) ;;
17519   *)
17520     case $ac_cv_c_inline in
17521       no) ac_val=;;
17522       *) ac_val=$ac_cv_c_inline;;
17523     esac
17524     cat >>confdefs.h <<_ACEOF
17525 #ifndef __cplusplus
17526 #define inline $ac_val
17527 #endif
17528 _ACEOF
17529     ;;
17530 esac
17531
17532 # The cast to long int works around a bug in the HP C Compiler
17533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17535 # This bug is HP SR number 8606223364.
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17537 $as_echo_n "checking size of unsigned int... " >&6; }
17538 if ${ac_cv_sizeof_unsigned_int+:} false; then :
17539   $as_echo_n "(cached) " >&6
17540 else
17541   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
17542
17543 else
17544   if test "$ac_cv_type_unsigned_int" = yes; then
17545      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17547 as_fn_error 77 "cannot compute sizeof (unsigned int)
17548 See \`config.log' for more details" "$LINENO" 5; }
17549    else
17550      ac_cv_sizeof_unsigned_int=0
17551    fi
17552 fi
17553
17554 fi
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17556 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17557
17558
17559
17560 cat >>confdefs.h <<_ACEOF
17561 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17562 _ACEOF
17563
17564
17565 # Check whether --enable-largefile was given.
17566 if test "${enable_largefile+set}" = set; then :
17567   enableval=$enable_largefile;
17568 fi
17569
17570 if test "$enable_largefile" != no; then
17571
17572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17573 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17574 if ${ac_cv_sys_largefile_CC+:} false; then :
17575   $as_echo_n "(cached) " >&6
17576 else
17577   ac_cv_sys_largefile_CC=no
17578      if test "$GCC" != yes; then
17579        ac_save_CC=$CC
17580        while :; do
17581          # IRIX 6.2 and later do not support large files by default,
17582          # so use the C compiler's -n32 option if that helps.
17583          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h.  */
17585 #include <sys/types.h>
17586  /* Check that off_t can represent 2**63 - 1 correctly.
17587     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17588     since some C++ compilers masquerading as C compilers
17589     incorrectly reject 9223372036854775807.  */
17590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17591   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17592                        && LARGE_OFF_T % 2147483647 == 1)
17593                       ? 1 : -1];
17594 int
17595 main ()
17596 {
17597
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602          if ac_fn_c_try_compile "$LINENO"; then :
17603   break
17604 fi
17605 rm -f core conftest.err conftest.$ac_objext
17606          CC="$CC -n32"
17607          if ac_fn_c_try_compile "$LINENO"; then :
17608   ac_cv_sys_largefile_CC=' -n32'; break
17609 fi
17610 rm -f core conftest.err conftest.$ac_objext
17611          break
17612        done
17613        CC=$ac_save_CC
17614        rm -f conftest.$ac_ext
17615     fi
17616 fi
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17618 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17619   if test "$ac_cv_sys_largefile_CC" != no; then
17620     CC=$CC$ac_cv_sys_largefile_CC
17621   fi
17622
17623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17624 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17625 if ${ac_cv_sys_file_offset_bits+:} false; then :
17626   $as_echo_n "(cached) " >&6
17627 else
17628   while :; do
17629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630 /* end confdefs.h.  */
17631 #include <sys/types.h>
17632  /* Check that off_t can represent 2**63 - 1 correctly.
17633     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17634     since some C++ compilers masquerading as C compilers
17635     incorrectly reject 9223372036854775807.  */
17636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17637   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17638                        && LARGE_OFF_T % 2147483647 == 1)
17639                       ? 1 : -1];
17640 int
17641 main ()
17642 {
17643
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 if ac_fn_c_try_compile "$LINENO"; then :
17649   ac_cv_sys_file_offset_bits=no; break
17650 fi
17651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h.  */
17654 #define _FILE_OFFSET_BITS 64
17655 #include <sys/types.h>
17656  /* Check that off_t can represent 2**63 - 1 correctly.
17657     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17658     since some C++ compilers masquerading as C compilers
17659     incorrectly reject 9223372036854775807.  */
17660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17661   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17662                        && LARGE_OFF_T % 2147483647 == 1)
17663                       ? 1 : -1];
17664 int
17665 main ()
17666 {
17667
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 if ac_fn_c_try_compile "$LINENO"; then :
17673   ac_cv_sys_file_offset_bits=64; break
17674 fi
17675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17676   ac_cv_sys_file_offset_bits=unknown
17677   break
17678 done
17679 fi
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17681 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17682 case $ac_cv_sys_file_offset_bits in #(
17683   no | unknown) ;;
17684   *)
17685 cat >>confdefs.h <<_ACEOF
17686 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17687 _ACEOF
17688 ;;
17689 esac
17690 rm -rf conftest*
17691   if test $ac_cv_sys_file_offset_bits = unknown; then
17692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17693 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17694 if ${ac_cv_sys_large_files+:} false; then :
17695   $as_echo_n "(cached) " >&6
17696 else
17697   while :; do
17698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h.  */
17700 #include <sys/types.h>
17701  /* Check that off_t can represent 2**63 - 1 correctly.
17702     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17703     since some C++ compilers masquerading as C compilers
17704     incorrectly reject 9223372036854775807.  */
17705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17706   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17707                        && LARGE_OFF_T % 2147483647 == 1)
17708                       ? 1 : -1];
17709 int
17710 main ()
17711 {
17712
17713   ;
17714   return 0;
17715 }
17716 _ACEOF
17717 if ac_fn_c_try_compile "$LINENO"; then :
17718   ac_cv_sys_large_files=no; break
17719 fi
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h.  */
17723 #define _LARGE_FILES 1
17724 #include <sys/types.h>
17725  /* Check that off_t can represent 2**63 - 1 correctly.
17726     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17727     since some C++ compilers masquerading as C compilers
17728     incorrectly reject 9223372036854775807.  */
17729 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17730   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17731                        && LARGE_OFF_T % 2147483647 == 1)
17732                       ? 1 : -1];
17733 int
17734 main ()
17735 {
17736
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 if ac_fn_c_try_compile "$LINENO"; then :
17742   ac_cv_sys_large_files=1; break
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745   ac_cv_sys_large_files=unknown
17746   break
17747 done
17748 fi
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17750 $as_echo "$ac_cv_sys_large_files" >&6; }
17751 case $ac_cv_sys_large_files in #(
17752   no | unknown) ;;
17753   *)
17754 cat >>confdefs.h <<_ACEOF
17755 #define _LARGE_FILES $ac_cv_sys_large_files
17756 _ACEOF
17757 ;;
17758 esac
17759 rm -rf conftest*
17760   fi
17761
17762
17763 fi
17764
17765 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17766 if test "x$ac_cv_type_off_t" = xyes; then :
17767
17768 else
17769
17770 cat >>confdefs.h <<_ACEOF
17771 #define off_t long int
17772 _ACEOF
17773
17774 fi
17775
17776
17777   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17778 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17779
17780 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17781
17782 else
17783   for ac_type in 'unsigned int' 'unsigned long int' \
17784         'unsigned long long int'; do
17785        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h.  */
17787 $ac_includes_default
17788 int
17789 main ()
17790 {
17791 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17792 test_array [0] = 0;
17793 return test_array [0];
17794
17795   ;
17796   return 0;
17797 }
17798 _ACEOF
17799 if ac_fn_c_try_compile "$LINENO"; then :
17800
17801 cat >>confdefs.h <<_ACEOF
17802 #define uintptr_t $ac_type
17803 _ACEOF
17804
17805           ac_type=
17806 fi
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808        test -z "$ac_type" && break
17809      done
17810 fi
17811
17812
17813
17814 # A simple compile time check in gpgme.h for GNU/Linux systems that
17815 # prevents a file offset bits mismatch between gpgme and the application.
17816 NEED__FILE_OFFSET_BITS=0
17817 if test "$have_w32_system" != yes; then
17818   case "$ac_cv_sys_file_offset_bits" in
17819     "" | no | unknown) ;;
17820     *)
17821     NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
17822     ;;
17823   esac
17824 fi
17825
17826
17827 # Figure out platform dependent typedefs for gpgme.h
17828 if test "$have_w32_system" = yes; then
17829     INSERT__TYPEDEFS_FOR_GPGME_H="
17830 #ifdef _WIN64
17831 # include <stdint.h>
17832   typedef int64_t gpgme_off_t;
17833   typedef int64_t gpgme_ssize_t;
17834 #else /* _WIN32 */
17835   typedef long gpgme_off_t;
17836   typedef long gpgme_ssize_t;
17837 #endif /* _WIN32 */"
17838     API__OFF_T="gpgme_off_t"
17839     API__SSIZE_T="gpgme_ssize_t"
17840 else
17841     INSERT__TYPEDEFS_FOR_GPGME_H="
17842 #include <sys/types.h>
17843 typedef off_t   gpgme_off_t;
17844 typedef ssize_t gpgme_ssize_t;"
17845     API__OFF_T="off_t"
17846     API__SSIZE_T="ssize_t"
17847 fi
17848
17849
17850
17851
17852
17853
17854
17855 # Checks for compiler features.
17856 if test "$GCC" = yes; then
17857     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
17858     if test "$have_w32_system" = yes; then
17859        CFLAGS="$CFLAGS -mms-bitfields"
17860     fi
17861 fi
17862
17863 # Only used for debugging, so no serious test needed (for actual
17864 # functionality you have to test libc as well, this only tests the
17865 # compiler).
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
17867 $as_echo_n "checking for __thread... " >&6; }
17868 if ${gpgme_cv_tls_works+:} false; then :
17869   $as_echo_n "(cached) " >&6
17870 else
17871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h.  */
17873 __thread int foo;
17874 int
17875 main ()
17876 {
17877
17878   ;
17879   return 0;
17880 }
17881 _ACEOF
17882 if ac_fn_c_try_compile "$LINENO"; then :
17883   gpgme_cv_tls_works=yes
17884 else
17885   gpgme_cv_tls_works=no
17886 fi
17887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17888 fi
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
17890 $as_echo "$gpgme_cv_tls_works" >&6; }
17891 if test "$gpgme_cv_tls_works" = yes; then
17892
17893 $as_echo "#define HAVE_TLS 1" >>confdefs.h
17894
17895 fi
17896
17897
17898 # Checks for library functions.
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
17900 $as_echo "$as_me: checking for libraries" >&6;}
17901
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17903 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17904 if ${ac_cv_sys_largefile_source+:} false; then :
17905   $as_echo_n "(cached) " >&6
17906 else
17907   while :; do
17908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h.  */
17910 #include <sys/types.h> /* for off_t */
17911      #include <stdio.h>
17912 int
17913 main ()
17914 {
17915 int (*fp) (FILE *, off_t, int) = fseeko;
17916      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17917   ;
17918   return 0;
17919 }
17920 _ACEOF
17921 if ac_fn_c_try_link "$LINENO"; then :
17922   ac_cv_sys_largefile_source=no; break
17923 fi
17924 rm -f core conftest.err conftest.$ac_objext \
17925     conftest$ac_exeext conftest.$ac_ext
17926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927 /* end confdefs.h.  */
17928 #define _LARGEFILE_SOURCE 1
17929 #include <sys/types.h> /* for off_t */
17930      #include <stdio.h>
17931 int
17932 main ()
17933 {
17934 int (*fp) (FILE *, off_t, int) = fseeko;
17935      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17936   ;
17937   return 0;
17938 }
17939 _ACEOF
17940 if ac_fn_c_try_link "$LINENO"; then :
17941   ac_cv_sys_largefile_source=1; break
17942 fi
17943 rm -f core conftest.err conftest.$ac_objext \
17944     conftest$ac_exeext conftest.$ac_ext
17945   ac_cv_sys_largefile_source=unknown
17946   break
17947 done
17948 fi
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17950 $as_echo "$ac_cv_sys_largefile_source" >&6; }
17951 case $ac_cv_sys_largefile_source in #(
17952   no | unknown) ;;
17953   *)
17954 cat >>confdefs.h <<_ACEOF
17955 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17956 _ACEOF
17957 ;;
17958 esac
17959 rm -rf conftest*
17960
17961 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17962 # in glibc 2.1.3, but that breaks too many other things.
17963 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17964 if test $ac_cv_sys_largefile_source != unknown; then
17965
17966 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17967
17968 fi
17969
17970
17971 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
17972 if test "x$ac_cv_func_vasprintf" = xyes; then :
17973   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
17974
17975 else
17976   case " $LIBOBJS " in
17977   *" vasprintf.$ac_objext "* ) ;;
17978   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
17979  ;;
17980 esac
17981
17982 fi
17983
17984
17985 if test "$ac_cv_func_vasprintf" != yes; then
17986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
17987 $as_echo_n "checking whether va_lists must be copied by value... " >&6; }
17988   if ${gnupg_cv_must_copy_va_byval+:} false; then :
17989   $as_echo_n "(cached) " >&6
17990 else
17991
17992     if test "$cross_compiling" = yes; then
17993       gnupg_cv_must_copy_va_byval=no
17994     else
17995       gnupg_cv_must_copy_va_byval=no
17996       if test "$cross_compiling" = yes; then :
17997   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17999 as_fn_error $? "cannot run test program while cross compiling
18000 See \`config.log' for more details" "$LINENO" 5; }
18001 else
18002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18003 /* end confdefs.h.  */
18004
18005        #include <stdarg.h>
18006        void f (int i, ...)
18007        {
18008           va_list args1, args2;
18009           va_start (args1, i);
18010           args2 = args1;
18011           if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
18012             exit (1);
18013           va_end (args1);
18014           va_end (args2);
18015        }
18016
18017        int main()
18018        {
18019           f (0, 42);
18020             return 0;
18021        }
18022
18023 _ACEOF
18024 if ac_fn_c_try_run "$LINENO"; then :
18025   gnupg_cv_must_copy_va_byval=yes
18026 fi
18027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18028   conftest.$ac_objext conftest.beam conftest.$ac_ext
18029 fi
18030
18031     fi
18032
18033 fi
18034
18035   if test "$gnupg_cv_must_copy_va_byval" = yes; then
18036
18037 $as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
18038
18039   fi
18040   if test "$cross_compiling" = yes; then
18041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
18042 $as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
18043   else
18044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
18045 $as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
18046   fi
18047
18048 fi
18049
18050 # Try to find a thread-safe version of ttyname().
18051 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
18052 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
18053   ac_have_decl=1
18054 else
18055   ac_have_decl=0
18056 fi
18057
18058 cat >>confdefs.h <<_ACEOF
18059 #define HAVE_DECL_TTYNAME_R $ac_have_decl
18060 _ACEOF
18061
18062
18063   for ac_header in unistd.h
18064 do :
18065   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18066 if test "x$ac_cv_header_unistd_h" = xyes; then :
18067   cat >>confdefs.h <<_ACEOF
18068 #define HAVE_UNISTD_H 1
18069 _ACEOF
18070
18071 fi
18072
18073 done
18074
18075
18076
18077   if test $ac_cv_have_decl_ttyname_r = no; then
18078     HAVE_DECL_TTYNAME_R=0
18079   fi
18080
18081   for ac_func in ttyname_r
18082 do :
18083   ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
18084 if test "x$ac_cv_func_ttyname_r" = xyes; then :
18085   cat >>confdefs.h <<_ACEOF
18086 #define HAVE_TTYNAME_R 1
18087 _ACEOF
18088
18089 fi
18090 done
18091
18092   if test $ac_cv_func_ttyname_r = no; then
18093     HAVE_TTYNAME_R=0
18094     case " $LIBOBJS " in
18095   *" ttyname_r.$ac_objext "* ) ;;
18096   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18097  ;;
18098 esac
18099
18100
18101 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18102
18103   else
18104     HAVE_TTYNAME_R=1
18105             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
18106 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
18107 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
18108   $as_echo_n "(cached) " >&6
18109 else
18110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h.  */
18112 #include <stddef.h>
18113               #include <unistd.h>
18114 int
18115 main ()
18116 {
18117 *ttyname_r (0, NULL, 0);
18118   ;
18119   return 0;
18120 }
18121
18122 _ACEOF
18123 if ac_fn_c_try_compile "$LINENO"; then :
18124   gnupg_cv_func_ttyname_r_posix=no
18125 else
18126   gnupg_cv_func_ttyname_r_posix=yes
18127 fi
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129
18130 fi
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
18132 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
18133     if test $gnupg_cv_func_ttyname_r_posix = no; then
18134       case " $LIBOBJS " in
18135   *" ttyname_r.$ac_objext "* ) ;;
18136   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18137  ;;
18138 esac
18139
18140       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18141
18142     elif test "$have_android_system" = yes; then
18143       # Android has ttyname and ttyname_r but they are only stubs and
18144       # print an annoying warning message.  Thus we need to replace
18145       # ttyname_r with our own dummy function.
18146       case " $LIBOBJS " in
18147   *" ttyname_r.$ac_objext "* ) ;;
18148   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18149  ;;
18150 esac
18151
18152       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18153
18154     else
18155
18156 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
18157
18158
18159       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
18160 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
18161 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
18162   $as_echo_n "(cached) " >&6
18163 else
18164
18165                               case "$host_os" in
18166                       # Guess no on Solaris.
18167             solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18168                       # Guess no on OSF/1.
18169             osf*)     gnupg_cv_func_ttyname_r_works="guessing no" ;;
18170                       # Guess yes otherwise.
18171             *)        gnupg_cv_func_ttyname_r_works="guessing yes" ;;
18172           esac
18173           if test "$cross_compiling" = yes; then :
18174   :
18175 else
18176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h.  */
18178
18179 #include <fcntl.h>
18180 #include <unistd.h>
18181 int
18182 main (void)
18183 {
18184   int result = 0;
18185   int fd;
18186   char buf[31]; /* use any size < 128 here */
18187
18188   fd = open ("/dev/tty", O_RDONLY);
18189   if (fd < 0)
18190     result |= 16;
18191   else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
18192     result |= 17;
18193   else if (ttyname_r (fd, buf, 1) == 0)
18194     result |= 18;
18195   return result;
18196 }
18197 _ACEOF
18198 if ac_fn_c_try_run "$LINENO"; then :
18199   gnupg_cv_func_ttyname_r_works=yes
18200 else
18201   case $? in
18202                17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
18203              esac
18204 fi
18205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18206   conftest.$ac_objext conftest.beam conftest.$ac_ext
18207 fi
18208
18209
18210 fi
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
18212 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
18213       case "$gnupg_cv_func_ttyname_r_works" in
18214         *yes) ;;
18215         *) case " $LIBOBJS " in
18216   *" ttyname_r.$ac_objext "* ) ;;
18217   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18218  ;;
18219 esac
18220
18221            $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18222
18223
18224 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
18225
18226            ;;
18227       esac
18228     fi
18229   fi
18230
18231 if test "$ac_cv_func_ttyname_r" != yes; then
18232   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18233 ***
18234 *** ttyname() is not thread-safe and ttyname_r() does not exist
18235 ***" >&5
18236 $as_echo "$as_me: WARNING:
18237 ***
18238 *** ttyname() is not thread-safe and ttyname_r() does not exist
18239 ***" >&2;}
18240 fi
18241
18242 # Try to find a thread-safe version of getenv().
18243 have_thread_safe_getenv=no
18244
18245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18246 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18247 if ${ac_cv_gnu_library_2_1+:} false; then :
18248   $as_echo_n "(cached) " >&6
18249 else
18250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h.  */
18252
18253 #include <features.h>
18254 #ifdef __GNU_LIBRARY__
18255  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18256   Lucky GNU user
18257  #endif
18258 #endif
18259
18260 _ACEOF
18261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18262   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18263   ac_cv_gnu_library_2_1=yes
18264 else
18265   ac_cv_gnu_library_2_1=no
18266 fi
18267 rm -f conftest*
18268
18269
18270
18271 fi
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18273 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18274
18275     GLIBC21="$ac_cv_gnu_library_2_1"
18276
18277
18278 if test $GLIBC21 = yes; then
18279   have_thread_safe_getenv=yes
18280 fi
18281 if test $have_thread_safe_getenv = yes; then
18282
18283 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
18284
18285 fi
18286 have_getenv_r=no
18287 for ac_func in getenv_r
18288 do :
18289   ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
18290 if test "x$ac_cv_func_getenv_r" = xyes; then :
18291   cat >>confdefs.h <<_ACEOF
18292 #define HAVE_GETENV_R 1
18293 _ACEOF
18294  have_getenv_r=yes
18295 fi
18296 done
18297
18298 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
18299   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18300 ***
18301 *** getenv() is not thread-safe and getenv_r() does not exist
18302 ***" >&5
18303 $as_echo "$as_me: WARNING:
18304 ***
18305 *** getenv() is not thread-safe and getenv_r() does not exist
18306 ***" >&2;}
18307 fi
18308
18309 # For converting time strings to seconds since Epoch, we need the timegm
18310 # function.
18311 for ac_func in timegm
18312 do :
18313   ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18314 if test "x$ac_cv_func_timegm" = xyes; then :
18315   cat >>confdefs.h <<_ACEOF
18316 #define HAVE_TIMEGM 1
18317 _ACEOF
18318
18319 fi
18320 done
18321
18322 if test "$ac_cv_func_timegm" != yes; then
18323   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18324 ***
18325 *** timegm() not available - a non-thread-safe kludge will be used
18326 *** and the TZ variable might be changed at runtime.
18327 ***" >&5
18328 $as_echo "$as_me: WARNING:
18329 ***
18330 *** timegm() not available - a non-thread-safe kludge will be used
18331 *** and the TZ variable might be changed at runtime.
18332 ***" >&2;}
18333 fi
18334
18335 for ac_func in setlocale
18336 do :
18337   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18338 if test "x$ac_cv_func_setlocale" = xyes; then :
18339   cat >>confdefs.h <<_ACEOF
18340 #define HAVE_SETLOCALE 1
18341 _ACEOF
18342
18343 fi
18344 done
18345
18346
18347 # Checking for libgpg-error.
18348 have_gpg_error=no
18349
18350   gpg_error_config_prefix=""
18351
18352 # Check whether --with-libgpg-error-prefix was given.
18353 if test "${with_libgpg_error_prefix+set}" = set; then :
18354   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
18355 fi
18356
18357
18358
18359 # Check whether --with-gpg-error-prefix was given.
18360 if test "${with_gpg_error_prefix+set}" = set; then :
18361   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
18362 fi
18363
18364
18365   if test x"${GPG_ERROR_CONFIG}" = x ; then
18366      if test x"${gpg_error_config_prefix}" != x ; then
18367         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
18368      else
18369        case "${SYSROOT}" in
18370          /*)
18371            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
18372              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
18373            fi
18374            ;;
18375          '')
18376            ;;
18377           *)
18378            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
18379 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
18380            ;;
18381        esac
18382      fi
18383   fi
18384
18385   # Extract the first word of "gpg-error-config", so it can be a program name with args.
18386 set dummy gpg-error-config; ac_word=$2
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18388 $as_echo_n "checking for $ac_word... " >&6; }
18389 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
18390   $as_echo_n "(cached) " >&6
18391 else
18392   case $GPG_ERROR_CONFIG in
18393   [\\/]* | ?:[\\/]*)
18394   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
18395   ;;
18396   *)
18397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398 for as_dir in $PATH
18399 do
18400   IFS=$as_save_IFS
18401   test -z "$as_dir" && as_dir=.
18402     for ac_exec_ext in '' $ac_executable_extensions; do
18403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18404     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18406     break 2
18407   fi
18408 done
18409   done
18410 IFS=$as_save_IFS
18411
18412   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
18413   ;;
18414 esac
18415 fi
18416 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
18417 if test -n "$GPG_ERROR_CONFIG"; then
18418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
18419 $as_echo "$GPG_ERROR_CONFIG" >&6; }
18420 else
18421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18422 $as_echo "no" >&6; }
18423 fi
18424
18425
18426   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
18427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
18428 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
18429   ok=no
18430   if test "$GPG_ERROR_CONFIG" != "no" \
18431      && test -f "$GPG_ERROR_CONFIG" ; then
18432     req_major=`echo $min_gpg_error_version | \
18433                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
18434     req_minor=`echo $min_gpg_error_version | \
18435                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
18436     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
18437     major=`echo $gpg_error_config_version | \
18438                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
18439     minor=`echo $gpg_error_config_version | \
18440                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
18441     if test "$major" -gt "$req_major"; then
18442         ok=yes
18443     else
18444         if test "$major" -eq "$req_major"; then
18445             if test "$minor" -ge "$req_minor"; then
18446                ok=yes
18447             fi
18448         fi
18449     fi
18450   fi
18451   if test $ok = yes; then
18452     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
18453     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
18454     GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
18455     GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
18456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
18457 $as_echo "yes ($gpg_error_config_version)" >&6; }
18458     have_gpg_error=yes
18459     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
18460     if test x"$gpg_error_config_host" != xnone ; then
18461       if test x"$gpg_error_config_host" != x"$host" ; then
18462   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18463 ***
18464 *** The config script $GPG_ERROR_CONFIG was
18465 *** built for $gpg_error_config_host and thus may not match the
18466 *** used host $host.
18467 *** You may want to use the configure option --with-gpg-error-prefix
18468 *** to specify a matching config script or use \$SYSROOT.
18469 ***" >&5
18470 $as_echo "$as_me: WARNING:
18471 ***
18472 *** The config script $GPG_ERROR_CONFIG was
18473 *** built for $gpg_error_config_host and thus may not match the
18474 *** used host $host.
18475 *** You may want to use the configure option --with-gpg-error-prefix
18476 *** to specify a matching config script or use \$SYSROOT.
18477 ***" >&2;}
18478         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
18479       fi
18480     fi
18481   else
18482     GPG_ERROR_CFLAGS=""
18483     GPG_ERROR_LIBS=""
18484     GPG_ERROR_MT_CFLAGS=""
18485     GPG_ERROR_MT_LIBS=""
18486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18487 $as_echo "no" >&6; }
18488     have_gpg_error=no
18489   fi
18490
18491
18492
18493
18494
18495
18496 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
18497
18498
18499 # And for libassuan.
18500 have_libassuan=no
18501
18502
18503 # Check whether --with-libassuan-prefix was given.
18504 if test "${with_libassuan_prefix+set}" = set; then :
18505   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
18506 else
18507   libassuan_config_prefix=""
18508 fi
18509
18510   if test x$libassuan_config_prefix != x ; then
18511     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
18512     if test x${LIBASSUAN_CONFIG+set} != xset ; then
18513       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
18514     fi
18515   fi
18516
18517   if test -n "$ac_tool_prefix"; then
18518   # Extract the first word of "${ac_tool_prefix}libassuan-config", so it can be a program name with args.
18519 set dummy ${ac_tool_prefix}libassuan-config; ac_word=$2
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18521 $as_echo_n "checking for $ac_word... " >&6; }
18522 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
18523   $as_echo_n "(cached) " >&6
18524 else
18525   case $LIBASSUAN_CONFIG in
18526   [\\/]* | ?:[\\/]*)
18527   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
18528   ;;
18529   *)
18530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18531 for as_dir in $PATH
18532 do
18533   IFS=$as_save_IFS
18534   test -z "$as_dir" && as_dir=.
18535     for ac_exec_ext in '' $ac_executable_extensions; do
18536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18537     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18539     break 2
18540   fi
18541 done
18542   done
18543 IFS=$as_save_IFS
18544
18545   ;;
18546 esac
18547 fi
18548 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
18549 if test -n "$LIBASSUAN_CONFIG"; then
18550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
18551 $as_echo "$LIBASSUAN_CONFIG" >&6; }
18552 else
18553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554 $as_echo "no" >&6; }
18555 fi
18556
18557
18558 fi
18559 if test -z "$ac_cv_path_LIBASSUAN_CONFIG"; then
18560   ac_pt_LIBASSUAN_CONFIG=$LIBASSUAN_CONFIG
18561   # Extract the first word of "libassuan-config", so it can be a program name with args.
18562 set dummy libassuan-config; ac_word=$2
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18564 $as_echo_n "checking for $ac_word... " >&6; }
18565 if ${ac_cv_path_ac_pt_LIBASSUAN_CONFIG+:} false; then :
18566   $as_echo_n "(cached) " >&6
18567 else
18568   case $ac_pt_LIBASSUAN_CONFIG in
18569   [\\/]* | ?:[\\/]*)
18570   ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$ac_pt_LIBASSUAN_CONFIG" # Let the user override the test with a path.
18571   ;;
18572   *)
18573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18574 for as_dir in $PATH
18575 do
18576   IFS=$as_save_IFS
18577   test -z "$as_dir" && as_dir=.
18578     for ac_exec_ext in '' $ac_executable_extensions; do
18579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18580     ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18582     break 2
18583   fi
18584 done
18585   done
18586 IFS=$as_save_IFS
18587
18588   ;;
18589 esac
18590 fi
18591 ac_pt_LIBASSUAN_CONFIG=$ac_cv_path_ac_pt_LIBASSUAN_CONFIG
18592 if test -n "$ac_pt_LIBASSUAN_CONFIG"; then
18593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBASSUAN_CONFIG" >&5
18594 $as_echo "$ac_pt_LIBASSUAN_CONFIG" >&6; }
18595 else
18596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18597 $as_echo "no" >&6; }
18598 fi
18599
18600   if test "x$ac_pt_LIBASSUAN_CONFIG" = x; then
18601     LIBASSUAN_CONFIG="no"
18602   else
18603     case $cross_compiling:$ac_tool_warned in
18604 yes:)
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18607 ac_tool_warned=yes ;;
18608 esac
18609     LIBASSUAN_CONFIG=$ac_pt_LIBASSUAN_CONFIG
18610   fi
18611 else
18612   LIBASSUAN_CONFIG="$ac_cv_path_LIBASSUAN_CONFIG"
18613 fi
18614
18615
18616   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
18617   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18618     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
18619     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18620   else
18621     req_libassuan_api=0
18622     min_libassuan_version="$tmp"
18623   fi
18624
18625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
18626 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
18627   ok=no
18628   if test "$LIBASSUAN_CONFIG" != "no" \
18629      && test -f "$LIBASSUAN_CONFIG" ; then
18630     req_major=`echo $min_libassuan_version | \
18631                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18632     req_minor=`echo $min_libassuan_version | \
18633                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18634     req_micro=`echo $min_libassuan_version | \
18635                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18636
18637     libassuan_config_version=`$LIBASSUAN_CONFIG --version`
18638     major=`echo $libassuan_config_version | \
18639                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18640     minor=`echo $libassuan_config_version | \
18641                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18642     micro=`echo $libassuan_config_version | \
18643                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18644
18645     if test "$major" -gt "$req_major"; then
18646         ok=yes
18647     else
18648         if test "$major" -eq "$req_major"; then
18649             if test "$minor" -gt "$req_minor"; then
18650                ok=yes
18651             else
18652                if test "$minor" -eq "$req_minor"; then
18653                    if test "$micro" -ge "$req_micro"; then
18654                      ok=yes
18655                    fi
18656                fi
18657             fi
18658         fi
18659     fi
18660   fi
18661
18662   if test $ok = yes; then
18663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
18664 $as_echo "yes ($libassuan_config_version)" >&6; }
18665   else
18666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18667 $as_echo "no" >&6; }
18668   fi
18669
18670   if test $ok = yes; then
18671     if test "$req_libassuan_api" -gt 0 ; then
18672       tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
18673       if test "$tmp" -gt 0 ; then
18674         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
18675 $as_echo_n "checking LIBASSUAN API version... " >&6; }
18676         if test "$req_libassuan_api" -eq "$tmp" ; then
18677           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18678 $as_echo "okay" >&6; }
18679         else
18680           ok=no
18681           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
18682 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
18683         fi
18684       fi
18685     fi
18686   fi
18687
18688   if test $ok = yes; then
18689     if test x"$host" != x ; then
18690       libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
18691       if test x"$libassuan_config_host" != xnone ; then
18692         if test x"$libassuan_config_host" != x"$host" ; then
18693   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18694 ***
18695 *** The config script $LIBASSUAN_CONFIG was
18696 *** built for $libassuan_config_host and thus may not match the
18697 *** used host $host.
18698 *** You may want to use the configure option --with-libassuan-prefix
18699 *** to specify a matching config script.
18700 ***" >&5
18701 $as_echo "$as_me: WARNING:
18702 ***
18703 *** The config script $LIBASSUAN_CONFIG was
18704 *** built for $libassuan_config_host and thus may not match the
18705 *** used host $host.
18706 *** You may want to use the configure option --with-libassuan-prefix
18707 *** to specify a matching config script.
18708 ***" >&2;}
18709         fi
18710       fi
18711     fi
18712   fi
18713
18714   if test $ok = yes; then
18715     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
18716     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
18717     have_libassuan=yes
18718   else
18719     LIBASSUAN_CFLAGS=""
18720     LIBASSUAN_LIBS=""
18721     have_libassuan=no
18722   fi
18723
18724
18725
18726 if test "$have_libassuan" = "yes"; then
18727
18728 cat >>confdefs.h <<_ACEOF
18729 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
18730 _ACEOF
18731
18732 fi
18733
18734
18735 #
18736 # Other checks
18737 #
18738
18739 # Check for funopen
18740 for ac_func in funopen
18741 do :
18742   ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18743 if test "x$ac_cv_func_funopen" = xyes; then :
18744   cat >>confdefs.h <<_ACEOF
18745 #define HAVE_FUNOPEN 1
18746 _ACEOF
18747
18748 fi
18749 done
18750
18751 if test $ac_cv_func_funopen != yes; then
18752     # No funopen but we can implement that in terms of fopencookie.
18753     for ac_func in fopencookie
18754 do :
18755   ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
18756 if test "x$ac_cv_func_fopencookie" = xyes; then :
18757   cat >>confdefs.h <<_ACEOF
18758 #define HAVE_FOPENCOOKIE 1
18759 _ACEOF
18760
18761 fi
18762 done
18763
18764     if test $ac_cv_func_fopencookie = yes; then
18765         ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18766 if test "x$ac_cv_func_funopen" = xyes; then :
18767   $as_echo "#define HAVE_FUNOPEN 1" >>confdefs.h
18768
18769 else
18770   case " $LIBOBJS " in
18771   *" funopen.$ac_objext "* ) ;;
18772   *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
18773  ;;
18774 esac
18775
18776 fi
18777
18778
18779     else
18780         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18781 ***
18782 *** No implementation of fopencookie or funopen available
18783 ***" >&5
18784 $as_echo "$as_me: WARNING:
18785 ***
18786 *** No implementation of fopencookie or funopen available
18787 ***" >&2;}
18788     fi
18789 fi
18790
18791 # Check for getgid etc
18792 for ac_func in getgid getegid
18793 do :
18794   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18795 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18796 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18797   cat >>confdefs.h <<_ACEOF
18798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18799 _ACEOF
18800
18801 fi
18802 done
18803
18804
18805
18806 # Replacement functions.
18807 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
18808 if test "x$ac_cv_func_stpcpy" = xyes; then :
18809   $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
18810
18811 else
18812   case " $LIBOBJS " in
18813   *" stpcpy.$ac_objext "* ) ;;
18814   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
18815  ;;
18816 esac
18817
18818 fi
18819
18820
18821 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
18822 if test "x$ac_cv_func_setenv" = xyes; then :
18823   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
18824
18825 else
18826   case " $LIBOBJS " in
18827   *" setenv.$ac_objext "* ) ;;
18828   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
18829  ;;
18830 esac
18831
18832 fi
18833
18834
18835
18836 # Assuan check for descriptor passing.
18837 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
18838 #include <stdlib.h>
18839 #include <stddef.h>
18840 #include <stdio.h>
18841 #include <sys/types.h>
18842 #include <sys/socket.h>
18843 #include <sys/un.h>
18844 #if HAVE_SYS_UIO_H
18845 #include <sys/uio.h>
18846 #endif
18847 #include <unistd.h>
18848
18849 "
18850 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
18851   supports_descriptor_passing=yes
18852 else
18853   supports_descriptor_passing=no
18854                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18855 ***
18856 *** Data structure for sending ancillary data missing.
18857 *** Descriptor passing won't work.
18858 ***" >&5
18859 $as_echo "$as_me: WARNING:
18860 ***
18861 *** Data structure for sending ancillary data missing.
18862 *** Descriptor passing won't work.
18863 ***" >&2;}
18864 fi
18865
18866
18867
18868 case "${host}" in
18869     *-apple-darwin*)
18870       use_descriptor_passing=no
18871       ;;
18872     *)
18873       use_descriptor_passing=yes
18874       ;;
18875 esac
18876 # Check whether --enable-fd-passing was given.
18877 if test "${enable_fd_passing+set}" = set; then :
18878   enableval=$enable_fd_passing; use_descriptor_passing=$enableval
18879 fi
18880
18881
18882 if test "$supports_descriptor_passing" != "yes"; then
18883   use_descriptor_passing=no
18884 fi
18885
18886 if test "$use_descriptor_passing" = "yes"; then
18887
18888 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
18889
18890 fi
18891
18892  if test "$use_descriptor_passing" = "yes"; then
18893   USE_DESCRIPTOR_PASSING_TRUE=
18894   USE_DESCRIPTOR_PASSING_FALSE='#'
18895 else
18896   USE_DESCRIPTOR_PASSING_TRUE='#'
18897   USE_DESCRIPTOR_PASSING_FALSE=
18898 fi
18899
18900
18901
18902 uiserver=no
18903 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
18904   uiserver=yes
18905 fi
18906 if test "$uiserver" != "no"; then
18907
18908 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
18909
18910 fi
18911  if test "$uiserver" != "no"; then
18912   HAVE_UISERVER_TRUE=
18913   HAVE_UISERVER_FALSE='#'
18914 else
18915   HAVE_UISERVER_TRUE='#'
18916   HAVE_UISERVER_FALSE=
18917 fi
18918
18919
18920
18921 # Add a few constants to help porting to W32
18922
18923
18924
18925
18926
18927 # Substitution used for gpgme-config
18928 GPGME_CONFIG_LIBS="-lgpgme"
18929 GPGME_CONFIG_CFLAGS=""
18930 GPGME_CONFIG_HOST="$host"
18931
18932
18933
18934
18935
18936 # Frob'da Variables
18937 LTLIBOBJS=`echo "$LIBOBJS" |
18938            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
18939
18940
18941 # Some checks for gpgme-tool
18942 # Done at top: AC_CHECK_HEADER([argp.h])
18943 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
18944 "
18945 if test "x$ac_cv_type_error_t" = xyes; then :
18946
18947 cat >>confdefs.h <<_ACEOF
18948 #define HAVE_ERROR_T 1
18949 _ACEOF
18950
18951
18952 else
18953
18954 $as_echo "#define error_t int" >>confdefs.h
18955
18956 fi
18957
18958
18959
18960 # A substitution to set generated files in a Emacs buffer to read-only.
18961 emacs_local_vars_begin='Local Variables:'
18962
18963 emacs_local_vars_read_only='buffer-read-only: t'
18964
18965 emacs_local_vars_end='End:'
18966
18967
18968
18969 # Last check.
18970 die=no
18971 if test "$have_gpg_error" = "no"; then
18972    die=yes
18973    { $as_echo "$as_me:${as_lineno-$LINENO}:
18974 ***
18975 *** You need libgpg-error to build this program.
18976 **  This library is for example available at
18977 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
18978 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
18979 ***" >&5
18980 $as_echo "$as_me:
18981 ***
18982 *** You need libgpg-error to build this program.
18983 **  This library is for example available at
18984 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
18985 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
18986 ***" >&6;}
18987 fi
18988 if test "$have_libassuan" = "no"; then
18989    die=yes
18990    { $as_echo "$as_me:${as_lineno-$LINENO}:
18991 ***
18992 *** You need libassuan to build this program.
18993 *** This library is for example available at
18994 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
18995 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
18996 ***" >&5
18997 $as_echo "$as_me:
18998 ***
18999 *** You need libassuan to build this program.
19000 *** This library is for example available at
19001 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
19002 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19003 ***" >&6;}
19004 fi
19005
19006 if test "$die" = "yes"; then
19007     as_fn_error $? "
19008 ***
19009 *** Required libraries not found. Please consult the above messages
19010 *** and install them before running configure again.
19011 ***" "$LINENO" 5
19012 fi
19013
19014
19015 #
19016 # Create config files
19017
19018 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"
19019
19020 ac_config_files="$ac_config_files src/gpgme-config"
19021
19022 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
19023
19024 cat >confcache <<\_ACEOF
19025 # This file is a shell script that caches the results of configure
19026 # tests run on this system so they can be shared between configure
19027 # scripts and configure runs, see configure's option --config-cache.
19028 # It is not useful on other systems.  If it contains results you don't
19029 # want to keep, you may remove or edit it.
19030 #
19031 # config.status only pays attention to the cache file if you give it
19032 # the --recheck option to rerun configure.
19033 #
19034 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19035 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19036 # following values.
19037
19038 _ACEOF
19039
19040 # The following way of writing the cache mishandles newlines in values,
19041 # but we know of no workaround that is simple, portable, and efficient.
19042 # So, we kill variables containing newlines.
19043 # Ultrix sh set writes to stderr and can't be redirected directly,
19044 # and sets the high bit in the cache file unless we assign to the vars.
19045 (
19046   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19047     eval ac_val=\$$ac_var
19048     case $ac_val in #(
19049     *${as_nl}*)
19050       case $ac_var in #(
19051       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19053       esac
19054       case $ac_var in #(
19055       _ | IFS | as_nl) ;; #(
19056       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19057       *) { eval $ac_var=; unset $ac_var;} ;;
19058       esac ;;
19059     esac
19060   done
19061
19062   (set) 2>&1 |
19063     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19064     *${as_nl}ac_space=\ *)
19065       # `set' does not quote correctly, so add quotes: double-quote
19066       # substitution turns \\\\ into \\, and sed turns \\ into \.
19067       sed -n \
19068         "s/'/'\\\\''/g;
19069           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19070       ;; #(
19071     *)
19072       # `set' quotes correctly as required by POSIX, so do not add quotes.
19073       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19074       ;;
19075     esac |
19076     sort
19077 ) |
19078   sed '
19079      /^ac_cv_env_/b end
19080      t clear
19081      :clear
19082      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19083      t end
19084      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19085      :end' >>confcache
19086 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19087   if test -w "$cache_file"; then
19088     if test "x$cache_file" != "x/dev/null"; then
19089       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19090 $as_echo "$as_me: updating cache $cache_file" >&6;}
19091       if test ! -f "$cache_file" || test -h "$cache_file"; then
19092         cat confcache >"$cache_file"
19093       else
19094         case $cache_file in #(
19095         */* | ?:*)
19096           mv -f confcache "$cache_file"$$ &&
19097           mv -f "$cache_file"$$ "$cache_file" ;; #(
19098         *)
19099           mv -f confcache "$cache_file" ;;
19100         esac
19101       fi
19102     fi
19103   else
19104     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19105 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19106   fi
19107 fi
19108 rm -f confcache
19109
19110 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19111 # Let make expand exec_prefix.
19112 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19113
19114 DEFS=-DHAVE_CONFIG_H
19115
19116 ac_libobjs=
19117 ac_ltlibobjs=
19118 U=
19119 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19120   # 1. Remove the extension, and $U if already installed.
19121   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19122   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19123   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19124   #    will be set to the directory where LIBOBJS objects are built.
19125   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19126   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19127 done
19128 LIBOBJS=$ac_libobjs
19129
19130 LTLIBOBJS=$ac_ltlibobjs
19131
19132
19133  if test -n "$EXEEXT"; then
19134   am__EXEEXT_TRUE=
19135   am__EXEEXT_FALSE='#'
19136 else
19137   am__EXEEXT_TRUE='#'
19138   am__EXEEXT_FALSE=
19139 fi
19140
19141 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19142   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19144 fi
19145 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19146   as_fn_error $? "conditional \"AMDEP\" was never defined.
19147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19148 fi
19149 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19150   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19152 fi
19153 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19154   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19156 fi
19157 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19158   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19160 fi
19161 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
19162   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
19163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19164 fi
19165 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
19166   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
19167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19168 fi
19169 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
19170   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
19171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19172 fi
19173 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
19174   as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
19175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19176 fi
19177 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
19178   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
19179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19180 fi
19181 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
19182   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
19183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19184 fi
19185 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
19186   as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
19187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19188 fi
19189 if test -z "${BUILD_W32_QT_TRUE}" && test -z "${BUILD_W32_QT_FALSE}"; then
19190   as_fn_error $? "conditional \"BUILD_W32_QT\" was never defined.
19191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19192 fi
19193 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19194   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19196 fi
19197 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
19198   as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
19199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19200 fi
19201 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
19202   as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
19203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19204 fi
19205 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
19206   as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
19207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19208 fi
19209 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
19210   as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
19211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19212 fi
19213 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
19214   as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
19215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19216 fi
19217 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
19218   as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
19219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19220 fi
19221
19222 : "${CONFIG_STATUS=./config.status}"
19223 ac_write_fail=0
19224 ac_clean_files_save=$ac_clean_files
19225 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19227 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19228 as_write_fail=0
19229 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19230 #! $SHELL
19231 # Generated by $as_me.
19232 # Run this file to recreate the current configuration.
19233 # Compiler output produced by configure, useful for debugging
19234 # configure, is in config.log if it exists.
19235
19236 debug=false
19237 ac_cs_recheck=false
19238 ac_cs_silent=false
19239
19240 SHELL=\${CONFIG_SHELL-$SHELL}
19241 export SHELL
19242 _ASEOF
19243 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19244 ## -------------------- ##
19245 ## M4sh Initialization. ##
19246 ## -------------------- ##
19247
19248 # Be more Bourne compatible
19249 DUALCASE=1; export DUALCASE # for MKS sh
19250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19251   emulate sh
19252   NULLCMD=:
19253   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19254   # is contrary to our usage.  Disable this feature.
19255   alias -g '${1+"$@"}'='"$@"'
19256   setopt NO_GLOB_SUBST
19257 else
19258   case `(set -o) 2>/dev/null` in #(
19259   *posix*) :
19260     set -o posix ;; #(
19261   *) :
19262      ;;
19263 esac
19264 fi
19265
19266
19267 as_nl='
19268 '
19269 export as_nl
19270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19271 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19274 # Prefer a ksh shell builtin over an external printf program on Solaris,
19275 # but without wasting forks for bash or zsh.
19276 if test -z "$BASH_VERSION$ZSH_VERSION" \
19277     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19278   as_echo='print -r --'
19279   as_echo_n='print -rn --'
19280 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19281   as_echo='printf %s\n'
19282   as_echo_n='printf %s'
19283 else
19284   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19285     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19286     as_echo_n='/usr/ucb/echo -n'
19287   else
19288     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19289     as_echo_n_body='eval
19290       arg=$1;
19291       case $arg in #(
19292       *"$as_nl"*)
19293         expr "X$arg" : "X\\(.*\\)$as_nl";
19294         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19295       esac;
19296       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19297     '
19298     export as_echo_n_body
19299     as_echo_n='sh -c $as_echo_n_body as_echo'
19300   fi
19301   export as_echo_body
19302   as_echo='sh -c $as_echo_body as_echo'
19303 fi
19304
19305 # The user is always right.
19306 if test "${PATH_SEPARATOR+set}" != set; then
19307   PATH_SEPARATOR=:
19308   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19309     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19310       PATH_SEPARATOR=';'
19311   }
19312 fi
19313
19314
19315 # IFS
19316 # We need space, tab and new line, in precisely that order.  Quoting is
19317 # there to prevent editors from complaining about space-tab.
19318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19319 # splitting by setting IFS to empty value.)
19320 IFS=" ""        $as_nl"
19321
19322 # Find who we are.  Look in the path if we contain no directory separator.
19323 as_myself=
19324 case $0 in #((
19325   *[\\/]* ) as_myself=$0 ;;
19326   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19327 for as_dir in $PATH
19328 do
19329   IFS=$as_save_IFS
19330   test -z "$as_dir" && as_dir=.
19331     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19332   done
19333 IFS=$as_save_IFS
19334
19335      ;;
19336 esac
19337 # We did not find ourselves, most probably we were run as `sh COMMAND'
19338 # in which case we are not to be found in the path.
19339 if test "x$as_myself" = x; then
19340   as_myself=$0
19341 fi
19342 if test ! -f "$as_myself"; then
19343   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19344   exit 1
19345 fi
19346
19347 # Unset variables that we do not need and which cause bugs (e.g. in
19348 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19349 # suppresses any "Segmentation fault" message there.  '((' could
19350 # trigger a bug in pdksh 5.2.14.
19351 for as_var in BASH_ENV ENV MAIL MAILPATH
19352 do eval test x\${$as_var+set} = xset \
19353   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19354 done
19355 PS1='$ '
19356 PS2='> '
19357 PS4='+ '
19358
19359 # NLS nuisances.
19360 LC_ALL=C
19361 export LC_ALL
19362 LANGUAGE=C
19363 export LANGUAGE
19364
19365 # CDPATH.
19366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19367
19368
19369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19370 # ----------------------------------------
19371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19373 # script with STATUS, using 1 if that was 0.
19374 as_fn_error ()
19375 {
19376   as_status=$1; test $as_status -eq 0 && as_status=1
19377   if test "$4"; then
19378     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19379     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19380   fi
19381   $as_echo "$as_me: error: $2" >&2
19382   as_fn_exit $as_status
19383 } # as_fn_error
19384
19385
19386 # as_fn_set_status STATUS
19387 # -----------------------
19388 # Set $? to STATUS, without forking.
19389 as_fn_set_status ()
19390 {
19391   return $1
19392 } # as_fn_set_status
19393
19394 # as_fn_exit STATUS
19395 # -----------------
19396 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19397 as_fn_exit ()
19398 {
19399   set +e
19400   as_fn_set_status $1
19401   exit $1
19402 } # as_fn_exit
19403
19404 # as_fn_unset VAR
19405 # ---------------
19406 # Portably unset VAR.
19407 as_fn_unset ()
19408 {
19409   { eval $1=; unset $1;}
19410 }
19411 as_unset=as_fn_unset
19412 # as_fn_append VAR VALUE
19413 # ----------------------
19414 # Append the text in VALUE to the end of the definition contained in VAR. Take
19415 # advantage of any shell optimizations that allow amortized linear growth over
19416 # repeated appends, instead of the typical quadratic growth present in naive
19417 # implementations.
19418 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19419   eval 'as_fn_append ()
19420   {
19421     eval $1+=\$2
19422   }'
19423 else
19424   as_fn_append ()
19425   {
19426     eval $1=\$$1\$2
19427   }
19428 fi # as_fn_append
19429
19430 # as_fn_arith ARG...
19431 # ------------------
19432 # Perform arithmetic evaluation on the ARGs, and store the result in the
19433 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19434 # must be portable across $(()) and expr.
19435 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19436   eval 'as_fn_arith ()
19437   {
19438     as_val=$(( $* ))
19439   }'
19440 else
19441   as_fn_arith ()
19442   {
19443     as_val=`expr "$@" || test $? -eq 1`
19444   }
19445 fi # as_fn_arith
19446
19447
19448 if expr a : '\(a\)' >/dev/null 2>&1 &&
19449    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19450   as_expr=expr
19451 else
19452   as_expr=false
19453 fi
19454
19455 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19456   as_basename=basename
19457 else
19458   as_basename=false
19459 fi
19460
19461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19462   as_dirname=dirname
19463 else
19464   as_dirname=false
19465 fi
19466
19467 as_me=`$as_basename -- "$0" ||
19468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19469          X"$0" : 'X\(//\)$' \| \
19470          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19471 $as_echo X/"$0" |
19472     sed '/^.*\/\([^/][^/]*\)\/*$/{
19473             s//\1/
19474             q
19475           }
19476           /^X\/\(\/\/\)$/{
19477             s//\1/
19478             q
19479           }
19480           /^X\/\(\/\).*/{
19481             s//\1/
19482             q
19483           }
19484           s/.*/./; q'`
19485
19486 # Avoid depending upon Character Ranges.
19487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19490 as_cr_digits='0123456789'
19491 as_cr_alnum=$as_cr_Letters$as_cr_digits
19492
19493 ECHO_C= ECHO_N= ECHO_T=
19494 case `echo -n x` in #(((((
19495 -n*)
19496   case `echo 'xy\c'` in
19497   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19498   xy)  ECHO_C='\c';;
19499   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19500        ECHO_T=' ';;
19501   esac;;
19502 *)
19503   ECHO_N='-n';;
19504 esac
19505
19506 rm -f conf$$ conf$$.exe conf$$.file
19507 if test -d conf$$.dir; then
19508   rm -f conf$$.dir/conf$$.file
19509 else
19510   rm -f conf$$.dir
19511   mkdir conf$$.dir 2>/dev/null
19512 fi
19513 if (echo >conf$$.file) 2>/dev/null; then
19514   if ln -s conf$$.file conf$$ 2>/dev/null; then
19515     as_ln_s='ln -s'
19516     # ... but there are two gotchas:
19517     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19518     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19519     # In both cases, we have to default to `cp -pR'.
19520     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19521       as_ln_s='cp -pR'
19522   elif ln conf$$.file conf$$ 2>/dev/null; then
19523     as_ln_s=ln
19524   else
19525     as_ln_s='cp -pR'
19526   fi
19527 else
19528   as_ln_s='cp -pR'
19529 fi
19530 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19531 rmdir conf$$.dir 2>/dev/null
19532
19533
19534 # as_fn_mkdir_p
19535 # -------------
19536 # Create "$as_dir" as a directory, including parents if necessary.
19537 as_fn_mkdir_p ()
19538 {
19539
19540   case $as_dir in #(
19541   -*) as_dir=./$as_dir;;
19542   esac
19543   test -d "$as_dir" || eval $as_mkdir_p || {
19544     as_dirs=
19545     while :; do
19546       case $as_dir in #(
19547       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19548       *) as_qdir=$as_dir;;
19549       esac
19550       as_dirs="'$as_qdir' $as_dirs"
19551       as_dir=`$as_dirname -- "$as_dir" ||
19552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19553          X"$as_dir" : 'X\(//\)[^/]' \| \
19554          X"$as_dir" : 'X\(//\)$' \| \
19555          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19556 $as_echo X"$as_dir" |
19557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19558             s//\1/
19559             q
19560           }
19561           /^X\(\/\/\)[^/].*/{
19562             s//\1/
19563             q
19564           }
19565           /^X\(\/\/\)$/{
19566             s//\1/
19567             q
19568           }
19569           /^X\(\/\).*/{
19570             s//\1/
19571             q
19572           }
19573           s/.*/./; q'`
19574       test -d "$as_dir" && break
19575     done
19576     test -z "$as_dirs" || eval "mkdir $as_dirs"
19577   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19578
19579
19580 } # as_fn_mkdir_p
19581 if mkdir -p . 2>/dev/null; then
19582   as_mkdir_p='mkdir -p "$as_dir"'
19583 else
19584   test -d ./-p && rmdir ./-p
19585   as_mkdir_p=false
19586 fi
19587
19588
19589 # as_fn_executable_p FILE
19590 # -----------------------
19591 # Test if FILE is an executable regular file.
19592 as_fn_executable_p ()
19593 {
19594   test -f "$1" && test -x "$1"
19595 } # as_fn_executable_p
19596 as_test_x='test -x'
19597 as_executable_p=as_fn_executable_p
19598
19599 # Sed expression to map a string onto a valid CPP name.
19600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19601
19602 # Sed expression to map a string onto a valid variable name.
19603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19604
19605
19606 exec 6>&1
19607 ## ----------------------------------- ##
19608 ## Main body of $CONFIG_STATUS script. ##
19609 ## ----------------------------------- ##
19610 _ASEOF
19611 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19612
19613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19614 # Save the log message, to keep $0 and so on meaningful, and to
19615 # report actual input values of CONFIG_FILES etc. instead of their
19616 # values after options handling.
19617 ac_log="
19618 This file was extended by gpgme $as_me 1.5.3, which was
19619 generated by GNU Autoconf 2.69.  Invocation command line was
19620
19621   CONFIG_FILES    = $CONFIG_FILES
19622   CONFIG_HEADERS  = $CONFIG_HEADERS
19623   CONFIG_LINKS    = $CONFIG_LINKS
19624   CONFIG_COMMANDS = $CONFIG_COMMANDS
19625   $ $0 $@
19626
19627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19628 "
19629
19630 _ACEOF
19631
19632 case $ac_config_files in *"
19633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19634 esac
19635
19636 case $ac_config_headers in *"
19637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19638 esac
19639
19640
19641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19642 # Files that config.status was made for.
19643 config_files="$ac_config_files"
19644 config_headers="$ac_config_headers"
19645 config_commands="$ac_config_commands"
19646
19647 _ACEOF
19648
19649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19650 ac_cs_usage="\
19651 \`$as_me' instantiates files and other configuration actions
19652 from templates according to the current configuration.  Unless the files
19653 and actions are specified as TAGs, all are instantiated by default.
19654
19655 Usage: $0 [OPTION]... [TAG]...
19656
19657   -h, --help       print this help, then exit
19658   -V, --version    print version number and configuration settings, then exit
19659       --config     print configuration, then exit
19660   -q, --quiet, --silent
19661                    do not print progress messages
19662   -d, --debug      don't remove temporary files
19663       --recheck    update $as_me by reconfiguring in the same conditions
19664       --file=FILE[:TEMPLATE]
19665                    instantiate the configuration file FILE
19666       --header=FILE[:TEMPLATE]
19667                    instantiate the configuration header FILE
19668
19669 Configuration files:
19670 $config_files
19671
19672 Configuration headers:
19673 $config_headers
19674
19675 Configuration commands:
19676 $config_commands
19677
19678 Report bugs to <http://bugs.gnupg.org>."
19679
19680 _ACEOF
19681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19682 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19683 ac_cs_version="\\
19684 gpgme config.status 1.5.3
19685 configured by $0, generated by GNU Autoconf 2.69,
19686   with options \\"\$ac_cs_config\\"
19687
19688 Copyright (C) 2012 Free Software Foundation, Inc.
19689 This config.status script is free software; the Free Software Foundation
19690 gives unlimited permission to copy, distribute and modify it."
19691
19692 ac_pwd='$ac_pwd'
19693 srcdir='$srcdir'
19694 INSTALL='$INSTALL'
19695 MKDIR_P='$MKDIR_P'
19696 AWK='$AWK'
19697 test -n "\$AWK" || AWK=awk
19698 _ACEOF
19699
19700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19701 # The default lists apply if the user does not specify any file.
19702 ac_need_defaults=:
19703 while test $# != 0
19704 do
19705   case $1 in
19706   --*=?*)
19707     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19708     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19709     ac_shift=:
19710     ;;
19711   --*=)
19712     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19713     ac_optarg=
19714     ac_shift=:
19715     ;;
19716   *)
19717     ac_option=$1
19718     ac_optarg=$2
19719     ac_shift=shift
19720     ;;
19721   esac
19722
19723   case $ac_option in
19724   # Handling of the options.
19725   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19726     ac_cs_recheck=: ;;
19727   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19728     $as_echo "$ac_cs_version"; exit ;;
19729   --config | --confi | --conf | --con | --co | --c )
19730     $as_echo "$ac_cs_config"; exit ;;
19731   --debug | --debu | --deb | --de | --d | -d )
19732     debug=: ;;
19733   --file | --fil | --fi | --f )
19734     $ac_shift
19735     case $ac_optarg in
19736     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19737     '') as_fn_error $? "missing file argument" ;;
19738     esac
19739     as_fn_append CONFIG_FILES " '$ac_optarg'"
19740     ac_need_defaults=false;;
19741   --header | --heade | --head | --hea )
19742     $ac_shift
19743     case $ac_optarg in
19744     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19745     esac
19746     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19747     ac_need_defaults=false;;
19748   --he | --h)
19749     # Conflict between --help and --header
19750     as_fn_error $? "ambiguous option: \`$1'
19751 Try \`$0 --help' for more information.";;
19752   --help | --hel | -h )
19753     $as_echo "$ac_cs_usage"; exit ;;
19754   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19755   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19756     ac_cs_silent=: ;;
19757
19758   # This is an error.
19759   -*) as_fn_error $? "unrecognized option: \`$1'
19760 Try \`$0 --help' for more information." ;;
19761
19762   *) as_fn_append ac_config_targets " $1"
19763      ac_need_defaults=false ;;
19764
19765   esac
19766   shift
19767 done
19768
19769 ac_configure_extra_args=
19770
19771 if $ac_cs_silent; then
19772   exec 6>/dev/null
19773   ac_configure_extra_args="$ac_configure_extra_args --silent"
19774 fi
19775
19776 _ACEOF
19777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19778 if \$ac_cs_recheck; then
19779   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19780   shift
19781   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19782   CONFIG_SHELL='$SHELL'
19783   export CONFIG_SHELL
19784   exec "\$@"
19785 fi
19786
19787 _ACEOF
19788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19789 exec 5>>config.log
19790 {
19791   echo
19792   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19793 ## Running $as_me. ##
19794 _ASBOX
19795   $as_echo "$ac_log"
19796 } >&5
19797
19798 _ACEOF
19799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19800 #
19801 # INIT-COMMANDS
19802 #
19803 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19804
19805
19806 # The HP-UX ksh and POSIX shell print the target directory to stdout
19807 # if CDPATH is set.
19808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19809
19810 sed_quote_subst='$sed_quote_subst'
19811 double_quote_subst='$double_quote_subst'
19812 delay_variable_subst='$delay_variable_subst'
19813 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19814 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19815 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19816 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19817 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19818 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19819 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19820 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19821 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19822 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19823 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19824 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19825 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19826 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19827 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19828 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19829 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19830 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19831 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19832 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19833 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19834 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19835 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19836 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19837 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19838 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19839 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19840 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19841 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19842 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19843 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19844 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19845 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19846 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19847 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19848 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19849 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19850 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19851 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19852 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19853 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19854 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19855 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19856 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19869 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19870 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"`'
19871 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19872 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19873 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19874 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19875 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19876 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19877 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19878 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19879 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19880 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19881 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19882 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19883 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19884 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19885 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19886 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19887 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19888 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19889 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19890 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19891 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19892 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19893 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19894 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19895 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19896 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19897 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19898 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19899 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19900 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19901 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19902 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19903 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19904 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19905 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19906 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19907 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19908 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19909 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19910 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19911 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19912 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19913 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19914 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19915 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19916 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19917 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19918 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19919 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19920 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19921 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19922 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19923 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19924 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19925 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19926 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19927 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19928 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19929 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19930 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19931 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19932 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19933 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19934 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19935 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19936 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19937 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19938 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19939 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19940 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19941 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19942 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19943 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19944 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19945 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19946 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19947 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19948 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19949 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19950 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19951 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
19952 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19953 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
19954 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19955 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
19956 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19957 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19958 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19959 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
19960 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19961 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
19962 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19963 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
19964 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19965 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
19966 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19967 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
19968 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19969 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
19970 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19971 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
19972 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19973 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
19974 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19975 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
19976 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19977 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19978 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19979 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19980 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19981 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
19982 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19983 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
19984 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19985 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
19986 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19987 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19988 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19989 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19990 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19991 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
19992 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19993 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19994 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19995 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
19996 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19997 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19998 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19999 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20000 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20001 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20002 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20003 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20004 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20005 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20006 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20007 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20008 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20009 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20010 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20011 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20012 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20013 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20014 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20015 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20016 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20017 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20018 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20019 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20020 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20021 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20022 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20023 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20024 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20025 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20026 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20027 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20028 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20029 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20030 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20031 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20032 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20033 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20034 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20035 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
20036 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20037 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
20038 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20039 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
20040 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20041 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
20042 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20043 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
20044 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20045 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
20046
20047 LTCC='$LTCC'
20048 LTCFLAGS='$LTCFLAGS'
20049 compiler='$compiler_DEFAULT'
20050
20051 # A function that is used when there is no print builtin or printf.
20052 func_fallback_echo ()
20053 {
20054   eval 'cat <<_LTECHO_EOF
20055 \$1
20056 _LTECHO_EOF'
20057 }
20058
20059 # Quote evaled strings.
20060 for var in AS \
20061 DLLTOOL \
20062 OBJDUMP \
20063 SHELL \
20064 ECHO \
20065 PATH_SEPARATOR \
20066 SED \
20067 GREP \
20068 EGREP \
20069 FGREP \
20070 LD \
20071 NM \
20072 LN_S \
20073 lt_SP2NL \
20074 lt_NL2SP \
20075 reload_flag \
20076 deplibs_check_method \
20077 file_magic_cmd \
20078 file_magic_glob \
20079 want_nocaseglob \
20080 sharedlib_from_linklib_cmd \
20081 AR \
20082 AR_FLAGS \
20083 archiver_list_spec \
20084 STRIP \
20085 RANLIB \
20086 CC \
20087 CFLAGS \
20088 compiler \
20089 lt_cv_sys_global_symbol_pipe \
20090 lt_cv_sys_global_symbol_to_cdecl \
20091 lt_cv_sys_global_symbol_to_c_name_address \
20092 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20093 nm_file_list_spec \
20094 lt_prog_compiler_no_builtin_flag \
20095 lt_prog_compiler_pic \
20096 lt_prog_compiler_wl \
20097 lt_prog_compiler_static \
20098 lt_cv_prog_compiler_c_o \
20099 need_locks \
20100 MANIFEST_TOOL \
20101 DSYMUTIL \
20102 NMEDIT \
20103 LIPO \
20104 OTOOL \
20105 OTOOL64 \
20106 shrext_cmds \
20107 export_dynamic_flag_spec \
20108 whole_archive_flag_spec \
20109 compiler_needs_object \
20110 with_gnu_ld \
20111 allow_undefined_flag \
20112 no_undefined_flag \
20113 hardcode_libdir_flag_spec \
20114 hardcode_libdir_separator \
20115 exclude_expsyms \
20116 include_expsyms \
20117 file_list_spec \
20118 variables_saved_for_relink \
20119 libname_spec \
20120 library_names_spec \
20121 soname_spec \
20122 install_override_mode \
20123 finish_eval \
20124 old_striplib \
20125 striplib \
20126 compiler_lib_search_dirs \
20127 predep_objects \
20128 postdep_objects \
20129 predeps \
20130 postdeps \
20131 compiler_lib_search_path \
20132 LD_CXX \
20133 LD_RC \
20134 reload_flag_CXX \
20135 reload_flag_RC \
20136 compiler_CXX \
20137 compiler_RC \
20138 lt_prog_compiler_no_builtin_flag_CXX \
20139 lt_prog_compiler_no_builtin_flag_RC \
20140 lt_prog_compiler_pic_CXX \
20141 lt_prog_compiler_pic_RC \
20142 lt_prog_compiler_wl_CXX \
20143 lt_prog_compiler_wl_RC \
20144 lt_prog_compiler_static_CXX \
20145 lt_prog_compiler_static_RC \
20146 lt_cv_prog_compiler_c_o_CXX \
20147 lt_cv_prog_compiler_c_o_RC \
20148 export_dynamic_flag_spec_CXX \
20149 export_dynamic_flag_spec_RC \
20150 whole_archive_flag_spec_CXX \
20151 whole_archive_flag_spec_RC \
20152 compiler_needs_object_CXX \
20153 compiler_needs_object_RC \
20154 with_gnu_ld_CXX \
20155 with_gnu_ld_RC \
20156 allow_undefined_flag_CXX \
20157 allow_undefined_flag_RC \
20158 no_undefined_flag_CXX \
20159 no_undefined_flag_RC \
20160 hardcode_libdir_flag_spec_CXX \
20161 hardcode_libdir_flag_spec_RC \
20162 hardcode_libdir_separator_CXX \
20163 hardcode_libdir_separator_RC \
20164 exclude_expsyms_CXX \
20165 exclude_expsyms_RC \
20166 include_expsyms_CXX \
20167 include_expsyms_RC \
20168 file_list_spec_CXX \
20169 file_list_spec_RC \
20170 compiler_lib_search_dirs_CXX \
20171 compiler_lib_search_dirs_RC \
20172 predep_objects_CXX \
20173 predep_objects_RC \
20174 postdep_objects_CXX \
20175 postdep_objects_RC \
20176 predeps_CXX \
20177 predeps_RC \
20178 postdeps_CXX \
20179 postdeps_RC \
20180 compiler_lib_search_path_CXX \
20181 compiler_lib_search_path_RC; do
20182     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20183     *[\\\\\\\`\\"\\\$]*)
20184       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20185       ;;
20186     *)
20187       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20188       ;;
20189     esac
20190 done
20191
20192 # Double-quote double-evaled strings.
20193 for var in reload_cmds \
20194 old_postinstall_cmds \
20195 old_postuninstall_cmds \
20196 old_archive_cmds \
20197 extract_expsyms_cmds \
20198 old_archive_from_new_cmds \
20199 old_archive_from_expsyms_cmds \
20200 archive_cmds \
20201 archive_expsym_cmds \
20202 module_cmds \
20203 module_expsym_cmds \
20204 export_symbols_cmds \
20205 prelink_cmds \
20206 postlink_cmds \
20207 postinstall_cmds \
20208 postuninstall_cmds \
20209 finish_cmds \
20210 sys_lib_search_path_spec \
20211 sys_lib_dlsearch_path_spec \
20212 reload_cmds_CXX \
20213 reload_cmds_RC \
20214 old_archive_cmds_CXX \
20215 old_archive_cmds_RC \
20216 old_archive_from_new_cmds_CXX \
20217 old_archive_from_new_cmds_RC \
20218 old_archive_from_expsyms_cmds_CXX \
20219 old_archive_from_expsyms_cmds_RC \
20220 archive_cmds_CXX \
20221 archive_cmds_RC \
20222 archive_expsym_cmds_CXX \
20223 archive_expsym_cmds_RC \
20224 module_cmds_CXX \
20225 module_cmds_RC \
20226 module_expsym_cmds_CXX \
20227 module_expsym_cmds_RC \
20228 export_symbols_cmds_CXX \
20229 export_symbols_cmds_RC \
20230 prelink_cmds_CXX \
20231 prelink_cmds_RC \
20232 postlink_cmds_CXX \
20233 postlink_cmds_RC; do
20234     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20235     *[\\\\\\\`\\"\\\$]*)
20236       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20237       ;;
20238     *)
20239       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20240       ;;
20241     esac
20242 done
20243
20244 ac_aux_dir='$ac_aux_dir'
20245 xsi_shell='$xsi_shell'
20246 lt_shell_append='$lt_shell_append'
20247
20248 # See if we are running on zsh, and set the options which allow our
20249 # commands through without removal of \ escapes INIT.
20250 if test -n "\${ZSH_VERSION+set}" ; then
20251    setopt NO_GLOB_SUBST
20252 fi
20253
20254
20255     PACKAGE='$PACKAGE'
20256     VERSION='$VERSION'
20257     TIMESTAMP='$TIMESTAMP'
20258     RM='$RM'
20259     ofile='$ofile'
20260
20261
20262
20263
20264
20265
20266
20267
20268 _ACEOF
20269
20270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20271
20272 # Handling of arguments.
20273 for ac_config_target in $ac_config_targets
20274 do
20275   case $ac_config_target in
20276     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20277     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20278     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20279     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20280     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20281     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20282     "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
20283     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
20284     "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
20285     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20286     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
20287     "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
20288     "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
20289     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
20290     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
20291     "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
20292
20293   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20294   esac
20295 done
20296
20297
20298 # If the user did not use the arguments to specify the items to instantiate,
20299 # then the envvar interface is used.  Set only those that are not.
20300 # We use the long form for the default assignment because of an extremely
20301 # bizarre bug on SunOS 4.1.3.
20302 if $ac_need_defaults; then
20303   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20304   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20305   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20306 fi
20307
20308 # Have a temporary directory for convenience.  Make it in the build tree
20309 # simply because there is no reason against having it here, and in addition,
20310 # creating and moving files from /tmp can sometimes cause problems.
20311 # Hook for its removal unless debugging.
20312 # Note that there is a small window in which the directory will not be cleaned:
20313 # after its creation but before its name has been assigned to `$tmp'.
20314 $debug ||
20315 {
20316   tmp= ac_tmp=
20317   trap 'exit_status=$?
20318   : "${ac_tmp:=$tmp}"
20319   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20320 ' 0
20321   trap 'as_fn_exit 1' 1 2 13 15
20322 }
20323 # Create a (secure) tmp directory for tmp files.
20324
20325 {
20326   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20327   test -d "$tmp"
20328 }  ||
20329 {
20330   tmp=./conf$$-$RANDOM
20331   (umask 077 && mkdir "$tmp")
20332 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20333 ac_tmp=$tmp
20334
20335 # Set up the scripts for CONFIG_FILES section.
20336 # No need to generate them if there are no CONFIG_FILES.
20337 # This happens for instance with `./config.status config.h'.
20338 if test -n "$CONFIG_FILES"; then
20339
20340
20341 ac_cr=`echo X | tr X '\015'`
20342 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20343 # But we know of no other shell where ac_cr would be empty at this
20344 # point, so we can use a bashism as a fallback.
20345 if test "x$ac_cr" = x; then
20346   eval ac_cr=\$\'\\r\'
20347 fi
20348 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20349 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20350   ac_cs_awk_cr='\\r'
20351 else
20352   ac_cs_awk_cr=$ac_cr
20353 fi
20354
20355 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20356 _ACEOF
20357
20358
20359 {
20360   echo "cat >conf$$subs.awk <<_ACEOF" &&
20361   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20362   echo "_ACEOF"
20363 } >conf$$subs.sh ||
20364   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20365 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20366 ac_delim='%!_!# '
20367 for ac_last_try in false false false false false :; do
20368   . ./conf$$subs.sh ||
20369     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20370
20371   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20372   if test $ac_delim_n = $ac_delim_num; then
20373     break
20374   elif $ac_last_try; then
20375     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20376   else
20377     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20378   fi
20379 done
20380 rm -f conf$$subs.sh
20381
20382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20383 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20384 _ACEOF
20385 sed -n '
20386 h
20387 s/^/S["/; s/!.*/"]=/
20388 p
20389 g
20390 s/^[^!]*!//
20391 :repl
20392 t repl
20393 s/'"$ac_delim"'$//
20394 t delim
20395 :nl
20396 h
20397 s/\(.\{148\}\)..*/\1/
20398 t more1
20399 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20400 p
20401 n
20402 b repl
20403 :more1
20404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20405 p
20406 g
20407 s/.\{148\}//
20408 t nl
20409 :delim
20410 h
20411 s/\(.\{148\}\)..*/\1/
20412 t more2
20413 s/["\\]/\\&/g; s/^/"/; s/$/"/
20414 p
20415 b
20416 :more2
20417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20418 p
20419 g
20420 s/.\{148\}//
20421 t delim
20422 ' <conf$$subs.awk | sed '
20423 /^[^""]/{
20424   N
20425   s/\n//
20426 }
20427 ' >>$CONFIG_STATUS || ac_write_fail=1
20428 rm -f conf$$subs.awk
20429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20430 _ACAWK
20431 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20432   for (key in S) S_is_set[key] = 1
20433   FS = "\a"
20434
20435 }
20436 {
20437   line = $ 0
20438   nfields = split(line, field, "@")
20439   substed = 0
20440   len = length(field[1])
20441   for (i = 2; i < nfields; i++) {
20442     key = field[i]
20443     keylen = length(key)
20444     if (S_is_set[key]) {
20445       value = S[key]
20446       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20447       len += length(value) + length(field[++i])
20448       substed = 1
20449     } else
20450       len += 1 + keylen
20451   }
20452
20453   print line
20454 }
20455
20456 _ACAWK
20457 _ACEOF
20458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20459 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20460   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20461 else
20462   cat
20463 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20464   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20465 _ACEOF
20466
20467 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20468 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20469 # trailing colons and then remove the whole line if VPATH becomes empty
20470 # (actually we leave an empty line to preserve line numbers).
20471 if test "x$srcdir" = x.; then
20472   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20473 h
20474 s///
20475 s/^/:/
20476 s/[      ]*$/:/
20477 s/:\$(srcdir):/:/g
20478 s/:\${srcdir}:/:/g
20479 s/:@srcdir@:/:/g
20480 s/^:*//
20481 s/:*$//
20482 x
20483 s/\(=[   ]*\).*/\1/
20484 G
20485 s/\n//
20486 s/^[^=]*=[       ]*$//
20487 }'
20488 fi
20489
20490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20491 fi # test -n "$CONFIG_FILES"
20492
20493 # Set up the scripts for CONFIG_HEADERS section.
20494 # No need to generate them if there are no CONFIG_HEADERS.
20495 # This happens for instance with `./config.status Makefile'.
20496 if test -n "$CONFIG_HEADERS"; then
20497 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20498 BEGIN {
20499 _ACEOF
20500
20501 # Transform confdefs.h into an awk script `defines.awk', embedded as
20502 # here-document in config.status, that substitutes the proper values into
20503 # config.h.in to produce config.h.
20504
20505 # Create a delimiter string that does not exist in confdefs.h, to ease
20506 # handling of long lines.
20507 ac_delim='%!_!# '
20508 for ac_last_try in false false :; do
20509   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20510   if test -z "$ac_tt"; then
20511     break
20512   elif $ac_last_try; then
20513     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20514   else
20515     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20516   fi
20517 done
20518
20519 # For the awk script, D is an array of macro values keyed by name,
20520 # likewise P contains macro parameters if any.  Preserve backslash
20521 # newline sequences.
20522
20523 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20524 sed -n '
20525 s/.\{148\}/&'"$ac_delim"'/g
20526 t rset
20527 :rset
20528 s/^[     ]*#[    ]*define[       ][      ]*/ /
20529 t def
20530 d
20531 :def
20532 s/\\$//
20533 t bsnl
20534 s/["\\]/\\&/g
20535 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20536 D["\1"]=" \3"/p
20537 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20538 d
20539 :bsnl
20540 s/["\\]/\\&/g
20541 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20542 D["\1"]=" \3\\\\\\n"\\/p
20543 t cont
20544 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20545 t cont
20546 d
20547 :cont
20548 n
20549 s/.\{148\}/&'"$ac_delim"'/g
20550 t clear
20551 :clear
20552 s/\\$//
20553 t bsnlc
20554 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20555 d
20556 :bsnlc
20557 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20558 b cont
20559 ' <confdefs.h | sed '
20560 s/'"$ac_delim"'/"\\\
20561 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20562
20563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20564   for (key in D) D_is_set[key] = 1
20565   FS = "\a"
20566 }
20567 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20568   line = \$ 0
20569   split(line, arg, " ")
20570   if (arg[1] == "#") {
20571     defundef = arg[2]
20572     mac1 = arg[3]
20573   } else {
20574     defundef = substr(arg[1], 2)
20575     mac1 = arg[2]
20576   }
20577   split(mac1, mac2, "(") #)
20578   macro = mac2[1]
20579   prefix = substr(line, 1, index(line, defundef) - 1)
20580   if (D_is_set[macro]) {
20581     # Preserve the white space surrounding the "#".
20582     print prefix "define", macro P[macro] D[macro]
20583     next
20584   } else {
20585     # Replace #undef with comments.  This is necessary, for example,
20586     # in the case of _POSIX_SOURCE, which is predefined and required
20587     # on some systems where configure will not decide to define it.
20588     if (defundef == "undef") {
20589       print "/*", prefix defundef, macro, "*/"
20590       next
20591     }
20592   }
20593 }
20594 { print }
20595 _ACAWK
20596 _ACEOF
20597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20598   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20599 fi # test -n "$CONFIG_HEADERS"
20600
20601
20602 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20603 shift
20604 for ac_tag
20605 do
20606   case $ac_tag in
20607   :[FHLC]) ac_mode=$ac_tag; continue;;
20608   esac
20609   case $ac_mode$ac_tag in
20610   :[FHL]*:*);;
20611   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20612   :[FH]-) ac_tag=-:-;;
20613   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20614   esac
20615   ac_save_IFS=$IFS
20616   IFS=:
20617   set x $ac_tag
20618   IFS=$ac_save_IFS
20619   shift
20620   ac_file=$1
20621   shift
20622
20623   case $ac_mode in
20624   :L) ac_source=$1;;
20625   :[FH])
20626     ac_file_inputs=
20627     for ac_f
20628     do
20629       case $ac_f in
20630       -) ac_f="$ac_tmp/stdin";;
20631       *) # Look for the file first in the build tree, then in the source tree
20632          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20633          # because $ac_f cannot contain `:'.
20634          test -f "$ac_f" ||
20635            case $ac_f in
20636            [\\/$]*) false;;
20637            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20638            esac ||
20639            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20640       esac
20641       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20642       as_fn_append ac_file_inputs " '$ac_f'"
20643     done
20644
20645     # Let's still pretend it is `configure' which instantiates (i.e., don't
20646     # use $as_me), people would be surprised to read:
20647     #    /* config.h.  Generated by config.status.  */
20648     configure_input='Generated from '`
20649           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20650         `' by configure.'
20651     if test x"$ac_file" != x-; then
20652       configure_input="$ac_file.  $configure_input"
20653       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20654 $as_echo "$as_me: creating $ac_file" >&6;}
20655     fi
20656     # Neutralize special characters interpreted by sed in replacement strings.
20657     case $configure_input in #(
20658     *\&* | *\|* | *\\* )
20659        ac_sed_conf_input=`$as_echo "$configure_input" |
20660        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20661     *) ac_sed_conf_input=$configure_input;;
20662     esac
20663
20664     case $ac_tag in
20665     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20666       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20667     esac
20668     ;;
20669   esac
20670
20671   ac_dir=`$as_dirname -- "$ac_file" ||
20672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20673          X"$ac_file" : 'X\(//\)[^/]' \| \
20674          X"$ac_file" : 'X\(//\)$' \| \
20675          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20676 $as_echo X"$ac_file" |
20677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20678             s//\1/
20679             q
20680           }
20681           /^X\(\/\/\)[^/].*/{
20682             s//\1/
20683             q
20684           }
20685           /^X\(\/\/\)$/{
20686             s//\1/
20687             q
20688           }
20689           /^X\(\/\).*/{
20690             s//\1/
20691             q
20692           }
20693           s/.*/./; q'`
20694   as_dir="$ac_dir"; as_fn_mkdir_p
20695   ac_builddir=.
20696
20697 case "$ac_dir" in
20698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20699 *)
20700   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20701   # A ".." for each directory in $ac_dir_suffix.
20702   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20703   case $ac_top_builddir_sub in
20704   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20705   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20706   esac ;;
20707 esac
20708 ac_abs_top_builddir=$ac_pwd
20709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20710 # for backward compatibility:
20711 ac_top_builddir=$ac_top_build_prefix
20712
20713 case $srcdir in
20714   .)  # We are building in place.
20715     ac_srcdir=.
20716     ac_top_srcdir=$ac_top_builddir_sub
20717     ac_abs_top_srcdir=$ac_pwd ;;
20718   [\\/]* | ?:[\\/]* )  # Absolute name.
20719     ac_srcdir=$srcdir$ac_dir_suffix;
20720     ac_top_srcdir=$srcdir
20721     ac_abs_top_srcdir=$srcdir ;;
20722   *) # Relative name.
20723     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20724     ac_top_srcdir=$ac_top_build_prefix$srcdir
20725     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20726 esac
20727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20728
20729
20730   case $ac_mode in
20731   :F)
20732   #
20733   # CONFIG_FILE
20734   #
20735
20736   case $INSTALL in
20737   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20738   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20739   esac
20740   ac_MKDIR_P=$MKDIR_P
20741   case $MKDIR_P in
20742   [\\/$]* | ?:[\\/]* ) ;;
20743   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20744   esac
20745 _ACEOF
20746
20747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20748 # If the template does not know about datarootdir, expand it.
20749 # FIXME: This hack should be removed a few years after 2.60.
20750 ac_datarootdir_hack=; ac_datarootdir_seen=
20751 ac_sed_dataroot='
20752 /datarootdir/ {
20753   p
20754   q
20755 }
20756 /@datadir@/p
20757 /@docdir@/p
20758 /@infodir@/p
20759 /@localedir@/p
20760 /@mandir@/p'
20761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20762 *datarootdir*) ac_datarootdir_seen=yes;;
20763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20764   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20766 _ACEOF
20767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20768   ac_datarootdir_hack='
20769   s&@datadir@&$datadir&g
20770   s&@docdir@&$docdir&g
20771   s&@infodir@&$infodir&g
20772   s&@localedir@&$localedir&g
20773   s&@mandir@&$mandir&g
20774   s&\\\${datarootdir}&$datarootdir&g' ;;
20775 esac
20776 _ACEOF
20777
20778 # Neutralize VPATH when `$srcdir' = `.'.
20779 # Shell code in configure.ac might set extrasub.
20780 # FIXME: do we really want to maintain this feature?
20781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20782 ac_sed_extra="$ac_vpsub
20783 $extrasub
20784 _ACEOF
20785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20786 :t
20787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20788 s|@configure_input@|$ac_sed_conf_input|;t t
20789 s&@top_builddir@&$ac_top_builddir_sub&;t t
20790 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20791 s&@srcdir@&$ac_srcdir&;t t
20792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20793 s&@top_srcdir@&$ac_top_srcdir&;t t
20794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20795 s&@builddir@&$ac_builddir&;t t
20796 s&@abs_builddir@&$ac_abs_builddir&;t t
20797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20798 s&@INSTALL@&$ac_INSTALL&;t t
20799 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20800 $ac_datarootdir_hack
20801 "
20802 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20803   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20804
20805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20806   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20807   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20808       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20809   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20810 which seems to be undefined.  Please make sure it is defined" >&5
20811 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20812 which seems to be undefined.  Please make sure it is defined" >&2;}
20813
20814   rm -f "$ac_tmp/stdin"
20815   case $ac_file in
20816   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20817   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20818   esac \
20819   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20820  ;;
20821   :H)
20822   #
20823   # CONFIG_HEADER
20824   #
20825   if test x"$ac_file" != x-; then
20826     {
20827       $as_echo "/* $configure_input  */" \
20828       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20829     } >"$ac_tmp/config.h" \
20830       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20831     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20832       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20833 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20834     else
20835       rm -f "$ac_file"
20836       mv "$ac_tmp/config.h" "$ac_file" \
20837         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20838     fi
20839   else
20840     $as_echo "/* $configure_input  */" \
20841       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20842       || as_fn_error $? "could not create -" "$LINENO" 5
20843   fi
20844 # Compute "$ac_file"'s index in $config_headers.
20845 _am_arg="$ac_file"
20846 _am_stamp_count=1
20847 for _am_header in $config_headers :; do
20848   case $_am_header in
20849     $_am_arg | $_am_arg:* )
20850       break ;;
20851     * )
20852       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20853   esac
20854 done
20855 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20856 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20857          X"$_am_arg" : 'X\(//\)[^/]' \| \
20858          X"$_am_arg" : 'X\(//\)$' \| \
20859          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20860 $as_echo X"$_am_arg" |
20861     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20862             s//\1/
20863             q
20864           }
20865           /^X\(\/\/\)[^/].*/{
20866             s//\1/
20867             q
20868           }
20869           /^X\(\/\/\)$/{
20870             s//\1/
20871             q
20872           }
20873           /^X\(\/\).*/{
20874             s//\1/
20875             q
20876           }
20877           s/.*/./; q'`/stamp-h$_am_stamp_count
20878  ;;
20879
20880   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20881 $as_echo "$as_me: executing $ac_file commands" >&6;}
20882  ;;
20883   esac
20884
20885
20886   case $ac_file$ac_mode in
20887     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20888   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20889   # are listed without --file.  Let's play safe and only enable the eval
20890   # if we detect the quoting.
20891   case $CONFIG_FILES in
20892   *\'*) eval set x "$CONFIG_FILES" ;;
20893   *)   set x $CONFIG_FILES ;;
20894   esac
20895   shift
20896   for mf
20897   do
20898     # Strip MF so we end up with the name of the file.
20899     mf=`echo "$mf" | sed -e 's/:.*$//'`
20900     # Check whether this is an Automake generated Makefile or not.
20901     # We used to match only the files named `Makefile.in', but
20902     # some people rename them; so instead we look at the file content.
20903     # Grep'ing the first line is not enough: some people post-process
20904     # each Makefile.in and add a new line on top of each file to say so.
20905     # Grep'ing the whole file is not good either: AIX grep has a line
20906     # limit of 2048, but all sed's we know have understand at least 4000.
20907     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20908       dirpart=`$as_dirname -- "$mf" ||
20909 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20910          X"$mf" : 'X\(//\)[^/]' \| \
20911          X"$mf" : 'X\(//\)$' \| \
20912          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20913 $as_echo X"$mf" |
20914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20915             s//\1/
20916             q
20917           }
20918           /^X\(\/\/\)[^/].*/{
20919             s//\1/
20920             q
20921           }
20922           /^X\(\/\/\)$/{
20923             s//\1/
20924             q
20925           }
20926           /^X\(\/\).*/{
20927             s//\1/
20928             q
20929           }
20930           s/.*/./; q'`
20931     else
20932       continue
20933     fi
20934     # Extract the definition of DEPDIR, am__include, and am__quote
20935     # from the Makefile without running `make'.
20936     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20937     test -z "$DEPDIR" && continue
20938     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20939     test -z "am__include" && continue
20940     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20941     # When using ansi2knr, U may be empty or an underscore; expand it
20942     U=`sed -n 's/^U = //p' < "$mf"`
20943     # Find all dependency output files, they are included files with
20944     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20945     # simplest approach to changing $(DEPDIR) to its actual value in the
20946     # expansion.
20947     for file in `sed -n "
20948       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20949          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20950       # Make sure the directory exists.
20951       test -f "$dirpart/$file" && continue
20952       fdir=`$as_dirname -- "$file" ||
20953 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20954          X"$file" : 'X\(//\)[^/]' \| \
20955          X"$file" : 'X\(//\)$' \| \
20956          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20957 $as_echo X"$file" |
20958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20959             s//\1/
20960             q
20961           }
20962           /^X\(\/\/\)[^/].*/{
20963             s//\1/
20964             q
20965           }
20966           /^X\(\/\/\)$/{
20967             s//\1/
20968             q
20969           }
20970           /^X\(\/\).*/{
20971             s//\1/
20972             q
20973           }
20974           s/.*/./; q'`
20975       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20976       # echo "creating $dirpart/$file"
20977       echo '# dummy' > "$dirpart/$file"
20978     done
20979   done
20980 }
20981  ;;
20982     "libtool":C)
20983
20984     # See if we are running on zsh, and set the options which allow our
20985     # commands through without removal of \ escapes.
20986     if test -n "${ZSH_VERSION+set}" ; then
20987       setopt NO_GLOB_SUBST
20988     fi
20989
20990     cfgfile="${ofile}T"
20991     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20992     $RM "$cfgfile"
20993
20994     cat <<_LT_EOF >> "$cfgfile"
20995 #! $SHELL
20996
20997 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20998 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20999 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21000 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21001 #
21002 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21003 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21004 #                 Foundation, Inc.
21005 #   Written by Gordon Matzigkeit, 1996
21006 #
21007 #   This file is part of GNU Libtool.
21008 #
21009 # GNU Libtool is free software; you can redistribute it and/or
21010 # modify it under the terms of the GNU General Public License as
21011 # published by the Free Software Foundation; either version 2 of
21012 # the License, or (at your option) any later version.
21013 #
21014 # As a special exception to the GNU General Public License,
21015 # if you distribute this file as part of a program or library that
21016 # is built using GNU Libtool, you may include this file under the
21017 # same distribution terms that you use for the rest of that program.
21018 #
21019 # GNU Libtool is distributed in the hope that it will be useful,
21020 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21022 # GNU General Public License for more details.
21023 #
21024 # You should have received a copy of the GNU General Public License
21025 # along with GNU Libtool; see the file COPYING.  If not, a copy
21026 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21027 # obtained by writing to the Free Software Foundation, Inc.,
21028 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21029
21030
21031 # The names of the tagged configurations supported by this script.
21032 available_tags="CXX RC "
21033
21034 # ### BEGIN LIBTOOL CONFIG
21035
21036 # Which release of libtool.m4 was used?
21037 macro_version=$macro_version
21038 macro_revision=$macro_revision
21039
21040 # Assembler program.
21041 AS=$lt_AS
21042
21043 # DLL creation program.
21044 DLLTOOL=$lt_DLLTOOL
21045
21046 # Object dumper program.
21047 OBJDUMP=$lt_OBJDUMP
21048
21049 # Whether or not to build static libraries.
21050 build_old_libs=$enable_static
21051
21052 # Whether or not to build shared libraries.
21053 build_libtool_libs=$enable_shared
21054
21055 # What type of objects to build.
21056 pic_mode=$pic_mode
21057
21058 # Whether or not to optimize for fast installation.
21059 fast_install=$enable_fast_install
21060
21061 # Shell to use when invoking shell scripts.
21062 SHELL=$lt_SHELL
21063
21064 # An echo program that protects backslashes.
21065 ECHO=$lt_ECHO
21066
21067 # The PATH separator for the build system.
21068 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21069
21070 # The host system.
21071 host_alias=$host_alias
21072 host=$host
21073 host_os=$host_os
21074
21075 # The build system.
21076 build_alias=$build_alias
21077 build=$build
21078 build_os=$build_os
21079
21080 # A sed program that does not truncate output.
21081 SED=$lt_SED
21082
21083 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21084 Xsed="\$SED -e 1s/^X//"
21085
21086 # A grep program that handles long lines.
21087 GREP=$lt_GREP
21088
21089 # An ERE matcher.
21090 EGREP=$lt_EGREP
21091
21092 # A literal string matcher.
21093 FGREP=$lt_FGREP
21094
21095 # A BSD- or MS-compatible name lister.
21096 NM=$lt_NM
21097
21098 # Whether we need soft or hard links.
21099 LN_S=$lt_LN_S
21100
21101 # What is the maximum length of a command?
21102 max_cmd_len=$max_cmd_len
21103
21104 # Object file suffix (normally "o").
21105 objext=$ac_objext
21106
21107 # Executable file suffix (normally "").
21108 exeext=$exeext
21109
21110 # whether the shell understands "unset".
21111 lt_unset=$lt_unset
21112
21113 # turn spaces into newlines.
21114 SP2NL=$lt_lt_SP2NL
21115
21116 # turn newlines into spaces.
21117 NL2SP=$lt_lt_NL2SP
21118
21119 # convert \$build file names to \$host format.
21120 to_host_file_cmd=$lt_cv_to_host_file_cmd
21121
21122 # convert \$build files to toolchain format.
21123 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21124
21125 # Method to check whether dependent libraries are shared objects.
21126 deplibs_check_method=$lt_deplibs_check_method
21127
21128 # Command to use when deplibs_check_method = "file_magic".
21129 file_magic_cmd=$lt_file_magic_cmd
21130
21131 # How to find potential files when deplibs_check_method = "file_magic".
21132 file_magic_glob=$lt_file_magic_glob
21133
21134 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21135 want_nocaseglob=$lt_want_nocaseglob
21136
21137 # Command to associate shared and link libraries.
21138 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21139
21140 # The archiver.
21141 AR=$lt_AR
21142
21143 # Flags to create an archive.
21144 AR_FLAGS=$lt_AR_FLAGS
21145
21146 # How to feed a file listing to the archiver.
21147 archiver_list_spec=$lt_archiver_list_spec
21148
21149 # A symbol stripping program.
21150 STRIP=$lt_STRIP
21151
21152 # Commands used to install an old-style archive.
21153 RANLIB=$lt_RANLIB
21154 old_postinstall_cmds=$lt_old_postinstall_cmds
21155 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21156
21157 # Whether to use a lock for old archive extraction.
21158 lock_old_archive_extraction=$lock_old_archive_extraction
21159
21160 # A C compiler.
21161 LTCC=$lt_CC
21162
21163 # LTCC compiler flags.
21164 LTCFLAGS=$lt_CFLAGS
21165
21166 # Take the output of nm and produce a listing of raw symbols and C names.
21167 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21168
21169 # Transform the output of nm in a proper C declaration.
21170 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21171
21172 # Transform the output of nm in a C name address pair.
21173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21174
21175 # Transform the output of nm in a C name address pair when lib prefix is needed.
21176 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21177
21178 # Specify filename containing input files for \$NM.
21179 nm_file_list_spec=$lt_nm_file_list_spec
21180
21181 # The root where to search for dependent libraries,and in which our libraries should be installed.
21182 lt_sysroot=$lt_sysroot
21183
21184 # The name of the directory that contains temporary libtool files.
21185 objdir=$objdir
21186
21187 # Used to examine libraries when file_magic_cmd begins with "file".
21188 MAGIC_CMD=$MAGIC_CMD
21189
21190 # Must we lock files when doing compilation?
21191 need_locks=$lt_need_locks
21192
21193 # Manifest tool.
21194 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21195
21196 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21197 DSYMUTIL=$lt_DSYMUTIL
21198
21199 # Tool to change global to local symbols on Mac OS X.
21200 NMEDIT=$lt_NMEDIT
21201
21202 # Tool to manipulate fat objects and archives on Mac OS X.
21203 LIPO=$lt_LIPO
21204
21205 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21206 OTOOL=$lt_OTOOL
21207
21208 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21209 OTOOL64=$lt_OTOOL64
21210
21211 # Old archive suffix (normally "a").
21212 libext=$libext
21213
21214 # Shared library suffix (normally ".so").
21215 shrext_cmds=$lt_shrext_cmds
21216
21217 # The commands to extract the exported symbol list from a shared archive.
21218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21219
21220 # Variables whose values should be saved in libtool wrapper scripts and
21221 # restored at link time.
21222 variables_saved_for_relink=$lt_variables_saved_for_relink
21223
21224 # Do we need the "lib" prefix for modules?
21225 need_lib_prefix=$need_lib_prefix
21226
21227 # Do we need a version for libraries?
21228 need_version=$need_version
21229
21230 # Library versioning type.
21231 version_type=$version_type
21232
21233 # Shared library runtime path variable.
21234 runpath_var=$runpath_var
21235
21236 # Shared library path variable.
21237 shlibpath_var=$shlibpath_var
21238
21239 # Is shlibpath searched before the hard-coded library search path?
21240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21241
21242 # Format of library name prefix.
21243 libname_spec=$lt_libname_spec
21244
21245 # List of archive names.  First name is the real one, the rest are links.
21246 # The last name is the one that the linker finds with -lNAME
21247 library_names_spec=$lt_library_names_spec
21248
21249 # The coded name of the library, if different from the real name.
21250 soname_spec=$lt_soname_spec
21251
21252 # Permission mode override for installation of shared libraries.
21253 install_override_mode=$lt_install_override_mode
21254
21255 # Command to use after installation of a shared archive.
21256 postinstall_cmds=$lt_postinstall_cmds
21257
21258 # Command to use after uninstallation of a shared archive.
21259 postuninstall_cmds=$lt_postuninstall_cmds
21260
21261 # Commands used to finish a libtool library installation in a directory.
21262 finish_cmds=$lt_finish_cmds
21263
21264 # As "finish_cmds", except a single script fragment to be evaled but
21265 # not shown.
21266 finish_eval=$lt_finish_eval
21267
21268 # Whether we should hardcode library paths into libraries.
21269 hardcode_into_libs=$hardcode_into_libs
21270
21271 # Compile-time system search path for libraries.
21272 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21273
21274 # Run-time system search path for libraries.
21275 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21276
21277 # Whether dlopen is supported.
21278 dlopen_support=$enable_dlopen
21279
21280 # Whether dlopen of programs is supported.
21281 dlopen_self=$enable_dlopen_self
21282
21283 # Whether dlopen of statically linked programs is supported.
21284 dlopen_self_static=$enable_dlopen_self_static
21285
21286 # Commands to strip libraries.
21287 old_striplib=$lt_old_striplib
21288 striplib=$lt_striplib
21289
21290
21291 # The linker used to build libraries.
21292 LD=$lt_LD
21293
21294 # How to create reloadable object files.
21295 reload_flag=$lt_reload_flag
21296 reload_cmds=$lt_reload_cmds
21297
21298 # Commands used to build an old-style archive.
21299 old_archive_cmds=$lt_old_archive_cmds
21300
21301 # A language specific compiler.
21302 CC=$lt_compiler
21303
21304 # Is the compiler the GNU compiler?
21305 with_gcc=$GCC
21306
21307 # Compiler flag to turn off builtin functions.
21308 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21309
21310 # Additional compiler flags for building library objects.
21311 pic_flag=$lt_lt_prog_compiler_pic
21312
21313 # How to pass a linker flag through the compiler.
21314 wl=$lt_lt_prog_compiler_wl
21315
21316 # Compiler flag to prevent dynamic linking.
21317 link_static_flag=$lt_lt_prog_compiler_static
21318
21319 # Does compiler simultaneously support -c and -o options?
21320 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21321
21322 # Whether or not to add -lc for building shared libraries.
21323 build_libtool_need_lc=$archive_cmds_need_lc
21324
21325 # Whether or not to disallow shared libs when runtime libs are static.
21326 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21327
21328 # Compiler flag to allow reflexive dlopens.
21329 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21330
21331 # Compiler flag to generate shared objects directly from archives.
21332 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21333
21334 # Whether the compiler copes with passing no objects directly.
21335 compiler_needs_object=$lt_compiler_needs_object
21336
21337 # Create an old-style archive from a shared archive.
21338 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21339
21340 # Create a temporary old-style archive to link instead of a shared archive.
21341 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21342
21343 # Commands used to build a shared archive.
21344 archive_cmds=$lt_archive_cmds
21345 archive_expsym_cmds=$lt_archive_expsym_cmds
21346
21347 # Commands used to build a loadable module if different from building
21348 # a shared archive.
21349 module_cmds=$lt_module_cmds
21350 module_expsym_cmds=$lt_module_expsym_cmds
21351
21352 # Whether we are building with GNU ld or not.
21353 with_gnu_ld=$lt_with_gnu_ld
21354
21355 # Flag that allows shared libraries with undefined symbols to be built.
21356 allow_undefined_flag=$lt_allow_undefined_flag
21357
21358 # Flag that enforces no undefined symbols.
21359 no_undefined_flag=$lt_no_undefined_flag
21360
21361 # Flag to hardcode \$libdir into a binary during linking.
21362 # This must work even if \$libdir does not exist
21363 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21364
21365 # Whether we need a single "-rpath" flag with a separated argument.
21366 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21367
21368 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21369 # DIR into the resulting binary.
21370 hardcode_direct=$hardcode_direct
21371
21372 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21373 # DIR into the resulting binary and the resulting library dependency is
21374 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21375 # library is relocated.
21376 hardcode_direct_absolute=$hardcode_direct_absolute
21377
21378 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21379 # into the resulting binary.
21380 hardcode_minus_L=$hardcode_minus_L
21381
21382 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21383 # into the resulting binary.
21384 hardcode_shlibpath_var=$hardcode_shlibpath_var
21385
21386 # Set to "yes" if building a shared library automatically hardcodes DIR
21387 # into the library and all subsequent libraries and executables linked
21388 # against it.
21389 hardcode_automatic=$hardcode_automatic
21390
21391 # Set to yes if linker adds runtime paths of dependent libraries
21392 # to runtime path list.
21393 inherit_rpath=$inherit_rpath
21394
21395 # Whether libtool must link a program against all its dependency libraries.
21396 link_all_deplibs=$link_all_deplibs
21397
21398 # Set to "yes" if exported symbols are required.
21399 always_export_symbols=$always_export_symbols
21400
21401 # The commands to list exported symbols.
21402 export_symbols_cmds=$lt_export_symbols_cmds
21403
21404 # Symbols that should not be listed in the preloaded symbols.
21405 exclude_expsyms=$lt_exclude_expsyms
21406
21407 # Symbols that must always be exported.
21408 include_expsyms=$lt_include_expsyms
21409
21410 # Commands necessary for linking programs (against libraries) with templates.
21411 prelink_cmds=$lt_prelink_cmds
21412
21413 # Commands necessary for finishing linking programs.
21414 postlink_cmds=$lt_postlink_cmds
21415
21416 # Specify filename containing input files.
21417 file_list_spec=$lt_file_list_spec
21418
21419 # How to hardcode a shared library path into an executable.
21420 hardcode_action=$hardcode_action
21421
21422 # The directories searched by this compiler when creating a shared library.
21423 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21424
21425 # Dependencies to place before and after the objects being linked to
21426 # create a shared library.
21427 predep_objects=$lt_predep_objects
21428 postdep_objects=$lt_postdep_objects
21429 predeps=$lt_predeps
21430 postdeps=$lt_postdeps
21431
21432 # The library search path used internally by the compiler when linking
21433 # a shared library.
21434 compiler_lib_search_path=$lt_compiler_lib_search_path
21435
21436 # ### END LIBTOOL CONFIG
21437
21438 _LT_EOF
21439
21440   case $host_os in
21441   aix3*)
21442     cat <<\_LT_EOF >> "$cfgfile"
21443 # AIX sometimes has problems with the GCC collect2 program.  For some
21444 # reason, if we set the COLLECT_NAMES environment variable, the problems
21445 # vanish in a puff of smoke.
21446 if test "X${COLLECT_NAMES+set}" != Xset; then
21447   COLLECT_NAMES=
21448   export COLLECT_NAMES
21449 fi
21450 _LT_EOF
21451     ;;
21452   esac
21453
21454
21455 ltmain="$ac_aux_dir/ltmain.sh"
21456
21457
21458   # We use sed instead of cat because bash on DJGPP gets confused if
21459   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21460   # text mode, it properly converts lines to CR/LF.  This bash problem
21461   # is reportedly fixed, but why not run on old versions too?
21462   sed '$q' "$ltmain" >> "$cfgfile" \
21463      || (rm -f "$cfgfile"; exit 1)
21464
21465   if test x"$xsi_shell" = xyes; then
21466   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21467 func_dirname ()\
21468 {\
21469 \    case ${1} in\
21470 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21471 \      *  ) func_dirname_result="${3}" ;;\
21472 \    esac\
21473 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21474   && mv -f "$cfgfile.tmp" "$cfgfile" \
21475     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21476 test 0 -eq $? || _lt_function_replace_fail=:
21477
21478
21479   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21480 func_basename ()\
21481 {\
21482 \    func_basename_result="${1##*/}"\
21483 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21484   && mv -f "$cfgfile.tmp" "$cfgfile" \
21485     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21486 test 0 -eq $? || _lt_function_replace_fail=:
21487
21488
21489   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21490 func_dirname_and_basename ()\
21491 {\
21492 \    case ${1} in\
21493 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21494 \      *  ) func_dirname_result="${3}" ;;\
21495 \    esac\
21496 \    func_basename_result="${1##*/}"\
21497 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21498   && mv -f "$cfgfile.tmp" "$cfgfile" \
21499     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21500 test 0 -eq $? || _lt_function_replace_fail=:
21501
21502
21503   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21504 func_stripname ()\
21505 {\
21506 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21507 \    # positional parameters, so assign one to ordinary parameter first.\
21508 \    func_stripname_result=${3}\
21509 \    func_stripname_result=${func_stripname_result#"${1}"}\
21510 \    func_stripname_result=${func_stripname_result%"${2}"}\
21511 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21512   && mv -f "$cfgfile.tmp" "$cfgfile" \
21513     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21514 test 0 -eq $? || _lt_function_replace_fail=:
21515
21516
21517   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21518 func_split_long_opt ()\
21519 {\
21520 \    func_split_long_opt_name=${1%%=*}\
21521 \    func_split_long_opt_arg=${1#*=}\
21522 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21523   && mv -f "$cfgfile.tmp" "$cfgfile" \
21524     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21525 test 0 -eq $? || _lt_function_replace_fail=:
21526
21527
21528   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21529 func_split_short_opt ()\
21530 {\
21531 \    func_split_short_opt_arg=${1#??}\
21532 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21533 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21534   && mv -f "$cfgfile.tmp" "$cfgfile" \
21535     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21536 test 0 -eq $? || _lt_function_replace_fail=:
21537
21538
21539   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21540 func_lo2o ()\
21541 {\
21542 \    case ${1} in\
21543 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21544 \      *)    func_lo2o_result=${1} ;;\
21545 \    esac\
21546 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21547   && mv -f "$cfgfile.tmp" "$cfgfile" \
21548     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21549 test 0 -eq $? || _lt_function_replace_fail=:
21550
21551
21552   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21553 func_xform ()\
21554 {\
21555     func_xform_result=${1%.*}.lo\
21556 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21557   && mv -f "$cfgfile.tmp" "$cfgfile" \
21558     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21559 test 0 -eq $? || _lt_function_replace_fail=:
21560
21561
21562   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21563 func_arith ()\
21564 {\
21565     func_arith_result=$(( $* ))\
21566 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21567   && mv -f "$cfgfile.tmp" "$cfgfile" \
21568     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21569 test 0 -eq $? || _lt_function_replace_fail=:
21570
21571
21572   sed -e '/^func_len ()$/,/^} # func_len /c\
21573 func_len ()\
21574 {\
21575     func_len_result=${#1}\
21576 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21577   && mv -f "$cfgfile.tmp" "$cfgfile" \
21578     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21579 test 0 -eq $? || _lt_function_replace_fail=:
21580
21581 fi
21582
21583 if test x"$lt_shell_append" = xyes; then
21584   sed -e '/^func_append ()$/,/^} # func_append /c\
21585 func_append ()\
21586 {\
21587     eval "${1}+=\\${2}"\
21588 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21589   && mv -f "$cfgfile.tmp" "$cfgfile" \
21590     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21591 test 0 -eq $? || _lt_function_replace_fail=:
21592
21593
21594   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21595 func_append_quoted ()\
21596 {\
21597 \    func_quote_for_eval "${2}"\
21598 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21599 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21600   && mv -f "$cfgfile.tmp" "$cfgfile" \
21601     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21602 test 0 -eq $? || _lt_function_replace_fail=:
21603
21604
21605   # Save a `func_append' function call where possible by direct use of '+='
21606   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21607     && mv -f "$cfgfile.tmp" "$cfgfile" \
21608       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21609   test 0 -eq $? || _lt_function_replace_fail=:
21610 else
21611   # Save a `func_append' function call even when '+=' is not available
21612   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21613     && mv -f "$cfgfile.tmp" "$cfgfile" \
21614       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21615   test 0 -eq $? || _lt_function_replace_fail=:
21616 fi
21617
21618 if test x"$_lt_function_replace_fail" = x":"; then
21619   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21620 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21621 fi
21622
21623
21624    mv -f "$cfgfile" "$ofile" ||
21625     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21626   chmod +x "$ofile"
21627
21628
21629     cat <<_LT_EOF >> "$ofile"
21630
21631 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21632
21633 # The linker used to build libraries.
21634 LD=$lt_LD_CXX
21635
21636 # How to create reloadable object files.
21637 reload_flag=$lt_reload_flag_CXX
21638 reload_cmds=$lt_reload_cmds_CXX
21639
21640 # Commands used to build an old-style archive.
21641 old_archive_cmds=$lt_old_archive_cmds_CXX
21642
21643 # A language specific compiler.
21644 CC=$lt_compiler_CXX
21645
21646 # Is the compiler the GNU compiler?
21647 with_gcc=$GCC_CXX
21648
21649 # Compiler flag to turn off builtin functions.
21650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21651
21652 # Additional compiler flags for building library objects.
21653 pic_flag=$lt_lt_prog_compiler_pic_CXX
21654
21655 # How to pass a linker flag through the compiler.
21656 wl=$lt_lt_prog_compiler_wl_CXX
21657
21658 # Compiler flag to prevent dynamic linking.
21659 link_static_flag=$lt_lt_prog_compiler_static_CXX
21660
21661 # Does compiler simultaneously support -c and -o options?
21662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21663
21664 # Whether or not to add -lc for building shared libraries.
21665 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21666
21667 # Whether or not to disallow shared libs when runtime libs are static.
21668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21669
21670 # Compiler flag to allow reflexive dlopens.
21671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21672
21673 # Compiler flag to generate shared objects directly from archives.
21674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21675
21676 # Whether the compiler copes with passing no objects directly.
21677 compiler_needs_object=$lt_compiler_needs_object_CXX
21678
21679 # Create an old-style archive from a shared archive.
21680 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21681
21682 # Create a temporary old-style archive to link instead of a shared archive.
21683 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21684
21685 # Commands used to build a shared archive.
21686 archive_cmds=$lt_archive_cmds_CXX
21687 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21688
21689 # Commands used to build a loadable module if different from building
21690 # a shared archive.
21691 module_cmds=$lt_module_cmds_CXX
21692 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21693
21694 # Whether we are building with GNU ld or not.
21695 with_gnu_ld=$lt_with_gnu_ld_CXX
21696
21697 # Flag that allows shared libraries with undefined symbols to be built.
21698 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21699
21700 # Flag that enforces no undefined symbols.
21701 no_undefined_flag=$lt_no_undefined_flag_CXX
21702
21703 # Flag to hardcode \$libdir into a binary during linking.
21704 # This must work even if \$libdir does not exist
21705 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21706
21707 # Whether we need a single "-rpath" flag with a separated argument.
21708 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21709
21710 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21711 # DIR into the resulting binary.
21712 hardcode_direct=$hardcode_direct_CXX
21713
21714 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21715 # DIR into the resulting binary and the resulting library dependency is
21716 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21717 # library is relocated.
21718 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21719
21720 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21721 # into the resulting binary.
21722 hardcode_minus_L=$hardcode_minus_L_CXX
21723
21724 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21725 # into the resulting binary.
21726 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21727
21728 # Set to "yes" if building a shared library automatically hardcodes DIR
21729 # into the library and all subsequent libraries and executables linked
21730 # against it.
21731 hardcode_automatic=$hardcode_automatic_CXX
21732
21733 # Set to yes if linker adds runtime paths of dependent libraries
21734 # to runtime path list.
21735 inherit_rpath=$inherit_rpath_CXX
21736
21737 # Whether libtool must link a program against all its dependency libraries.
21738 link_all_deplibs=$link_all_deplibs_CXX
21739
21740 # Set to "yes" if exported symbols are required.
21741 always_export_symbols=$always_export_symbols_CXX
21742
21743 # The commands to list exported symbols.
21744 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21745
21746 # Symbols that should not be listed in the preloaded symbols.
21747 exclude_expsyms=$lt_exclude_expsyms_CXX
21748
21749 # Symbols that must always be exported.
21750 include_expsyms=$lt_include_expsyms_CXX
21751
21752 # Commands necessary for linking programs (against libraries) with templates.
21753 prelink_cmds=$lt_prelink_cmds_CXX
21754
21755 # Commands necessary for finishing linking programs.
21756 postlink_cmds=$lt_postlink_cmds_CXX
21757
21758 # Specify filename containing input files.
21759 file_list_spec=$lt_file_list_spec_CXX
21760
21761 # How to hardcode a shared library path into an executable.
21762 hardcode_action=$hardcode_action_CXX
21763
21764 # The directories searched by this compiler when creating a shared library.
21765 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21766
21767 # Dependencies to place before and after the objects being linked to
21768 # create a shared library.
21769 predep_objects=$lt_predep_objects_CXX
21770 postdep_objects=$lt_postdep_objects_CXX
21771 predeps=$lt_predeps_CXX
21772 postdeps=$lt_postdeps_CXX
21773
21774 # The library search path used internally by the compiler when linking
21775 # a shared library.
21776 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21777
21778 # ### END LIBTOOL TAG CONFIG: CXX
21779 _LT_EOF
21780
21781
21782     cat <<_LT_EOF >> "$ofile"
21783
21784 # ### BEGIN LIBTOOL TAG CONFIG: RC
21785
21786 # The linker used to build libraries.
21787 LD=$lt_LD_RC
21788
21789 # How to create reloadable object files.
21790 reload_flag=$lt_reload_flag_RC
21791 reload_cmds=$lt_reload_cmds_RC
21792
21793 # Commands used to build an old-style archive.
21794 old_archive_cmds=$lt_old_archive_cmds_RC
21795
21796 # A language specific compiler.
21797 CC=$lt_compiler_RC
21798
21799 # Is the compiler the GNU compiler?
21800 with_gcc=$GCC_RC
21801
21802 # Compiler flag to turn off builtin functions.
21803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21804
21805 # Additional compiler flags for building library objects.
21806 pic_flag=$lt_lt_prog_compiler_pic_RC
21807
21808 # How to pass a linker flag through the compiler.
21809 wl=$lt_lt_prog_compiler_wl_RC
21810
21811 # Compiler flag to prevent dynamic linking.
21812 link_static_flag=$lt_lt_prog_compiler_static_RC
21813
21814 # Does compiler simultaneously support -c and -o options?
21815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21816
21817 # Whether or not to add -lc for building shared libraries.
21818 build_libtool_need_lc=$archive_cmds_need_lc_RC
21819
21820 # Whether or not to disallow shared libs when runtime libs are static.
21821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21822
21823 # Compiler flag to allow reflexive dlopens.
21824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21825
21826 # Compiler flag to generate shared objects directly from archives.
21827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21828
21829 # Whether the compiler copes with passing no objects directly.
21830 compiler_needs_object=$lt_compiler_needs_object_RC
21831
21832 # Create an old-style archive from a shared archive.
21833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21834
21835 # Create a temporary old-style archive to link instead of a shared archive.
21836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21837
21838 # Commands used to build a shared archive.
21839 archive_cmds=$lt_archive_cmds_RC
21840 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21841
21842 # Commands used to build a loadable module if different from building
21843 # a shared archive.
21844 module_cmds=$lt_module_cmds_RC
21845 module_expsym_cmds=$lt_module_expsym_cmds_RC
21846
21847 # Whether we are building with GNU ld or not.
21848 with_gnu_ld=$lt_with_gnu_ld_RC
21849
21850 # Flag that allows shared libraries with undefined symbols to be built.
21851 allow_undefined_flag=$lt_allow_undefined_flag_RC
21852
21853 # Flag that enforces no undefined symbols.
21854 no_undefined_flag=$lt_no_undefined_flag_RC
21855
21856 # Flag to hardcode \$libdir into a binary during linking.
21857 # This must work even if \$libdir does not exist
21858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21859
21860 # Whether we need a single "-rpath" flag with a separated argument.
21861 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21862
21863 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21864 # DIR into the resulting binary.
21865 hardcode_direct=$hardcode_direct_RC
21866
21867 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21868 # DIR into the resulting binary and the resulting library dependency is
21869 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21870 # library is relocated.
21871 hardcode_direct_absolute=$hardcode_direct_absolute_RC
21872
21873 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21874 # into the resulting binary.
21875 hardcode_minus_L=$hardcode_minus_L_RC
21876
21877 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21878 # into the resulting binary.
21879 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21880
21881 # Set to "yes" if building a shared library automatically hardcodes DIR
21882 # into the library and all subsequent libraries and executables linked
21883 # against it.
21884 hardcode_automatic=$hardcode_automatic_RC
21885
21886 # Set to yes if linker adds runtime paths of dependent libraries
21887 # to runtime path list.
21888 inherit_rpath=$inherit_rpath_RC
21889
21890 # Whether libtool must link a program against all its dependency libraries.
21891 link_all_deplibs=$link_all_deplibs_RC
21892
21893 # Set to "yes" if exported symbols are required.
21894 always_export_symbols=$always_export_symbols_RC
21895
21896 # The commands to list exported symbols.
21897 export_symbols_cmds=$lt_export_symbols_cmds_RC
21898
21899 # Symbols that should not be listed in the preloaded symbols.
21900 exclude_expsyms=$lt_exclude_expsyms_RC
21901
21902 # Symbols that must always be exported.
21903 include_expsyms=$lt_include_expsyms_RC
21904
21905 # Commands necessary for linking programs (against libraries) with templates.
21906 prelink_cmds=$lt_prelink_cmds_RC
21907
21908 # Commands necessary for finishing linking programs.
21909 postlink_cmds=$lt_postlink_cmds_RC
21910
21911 # Specify filename containing input files.
21912 file_list_spec=$lt_file_list_spec_RC
21913
21914 # How to hardcode a shared library path into an executable.
21915 hardcode_action=$hardcode_action_RC
21916
21917 # The directories searched by this compiler when creating a shared library.
21918 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21919
21920 # Dependencies to place before and after the objects being linked to
21921 # create a shared library.
21922 predep_objects=$lt_predep_objects_RC
21923 postdep_objects=$lt_postdep_objects_RC
21924 predeps=$lt_predeps_RC
21925 postdeps=$lt_postdeps_RC
21926
21927 # The library search path used internally by the compiler when linking
21928 # a shared library.
21929 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21930
21931 # ### END LIBTOOL TAG CONFIG: RC
21932 _LT_EOF
21933
21934  ;;
21935     "src/gpgme-config":F) chmod +x src/gpgme-config ;;
21936
21937   esac
21938 done # for ac_tag
21939
21940
21941 as_fn_exit 0
21942 _ACEOF
21943 ac_clean_files=$ac_clean_files_save
21944
21945 test $ac_write_fail = 0 ||
21946   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21947
21948
21949 # configure is writing to config.log, and then calls config.status.
21950 # config.status does its own redirection, appending to config.log.
21951 # Unfortunately, on DOS this fails, as config.log is still kept open
21952 # by configure, so config.status won't be able to write to it; its
21953 # output is simply discarded.  So we exec the FD to /dev/null,
21954 # effectively closing config.log, so it can be properly (re)opened and
21955 # appended to by config.status.  When coming back to configure, we
21956 # need to make the FD available again.
21957 if test "$no_create" != yes; then
21958   ac_cs_success=:
21959   ac_config_status_args=
21960   test "$silent" = yes &&
21961     ac_config_status_args="$ac_config_status_args --quiet"
21962   exec 5>/dev/null
21963   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21964   exec 5>>config.log
21965   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21966   # would make configure fail if this is the last instruction.
21967   $ac_cs_success || as_fn_exit 1
21968 fi
21969 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21970   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21971 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21972 fi
21973
21974
21975 echo "
21976         GPGME v${VERSION} has been configured as follows:
21977
21978         Revision:        37d927a  (14297)
21979         Platform:        $host
21980
21981         UI Server:       $uiserver
21982         FD Passing:      $use_descriptor_passing
21983         GPGME Pthread:   $have_pthread
21984 "
21985 if test "x${gpg_config_script_warn}" != x; then
21986 cat <<G10EOF
21987         Mismatches between the target platform and the to
21988         be used libraries have been been detected for:
21989          ${gpg_config_script_warn}
21990         Please check above for warning messages.
21991
21992 G10EOF
21993 fi