Imported Upstream version 1.6.3
[platform/upstream/libksba.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libksba 1.6.3.
4 #
5 # Report bugs to <https://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libksba'
592 PACKAGE_TARNAME='libksba'
593 PACKAGE_VERSION='1.6.3'
594 PACKAGE_STRING='libksba 1.6.3'
595 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/ksba.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_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 BUILD_DOC_FALSE
640 BUILD_DOC_TRUE
641 BUILD_TIMESTAMP
642 BUILD_FILEVERSION
643 BUILD_REVISION
644 CROSS_COMPILING_FALSE
645 CROSS_COMPILING_TRUE
646 KSBA_CONFIG_HOST
647 KSBA_CONFIG_API_VERSION
648 KSBA_CONFIG_CFLAGS
649 KSBA_CONFIG_LIBS
650 VALGRIND
651 ALLOCA_H
652 ALLOCA
653 LTALLOCA
654 USE_GPGRT_CONFIG_FALSE
655 USE_GPGRT_CONFIG_TRUE
656 GPG_ERROR_MT_LIBS
657 GPG_ERROR_MT_CFLAGS
658 GPG_ERROR_LIBS
659 GPG_ERROR_CFLAGS
660 GPGRT_CONFIG
661 GPG_ERROR_CONFIG
662 HAVE_LD_VERSION_SCRIPT_FALSE
663 HAVE_LD_VERSION_SCRIPT_TRUE
664 HAVE_W32CE_SYSTEM_FALSE
665 HAVE_W32CE_SYSTEM_TRUE
666 HAVE_W32_SYSTEM_FALSE
667 HAVE_W32_SYSTEM_TRUE
668 COVERAGE_LDFLAGS
669 COVERAGE_CFLAGS
670 GENHTML
671 LCOV
672 SHTOOL
673 HAVE_GCOV_FALSE
674 HAVE_GCOV_TRUE
675 GCOV
676 YFLAGS
677 YACC
678 VERSION_NUMBER
679 LIBKSBA_LT_REVISION
680 LIBKSBA_LT_AGE
681 LIBKSBA_LT_CURRENT
682 EXEEXT_FOR_BUILD
683 CC_FOR_BUILD
684 MAINT
685 MAINTAINER_MODE_FALSE
686 MAINTAINER_MODE_TRUE
687 RC
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 RANLIB
695 ac_ct_AR
696 AR
697 LN_S
698 NM
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 SED
704 LIBTOOL
705 OBJDUMP
706 DLLTOOL
707 AS
708 LDADD_FOR_TESTS_KLUDGE
709 EGREP
710 GREP
711 CPP
712 am__fastdepCC_FALSE
713 am__fastdepCC_TRUE
714 CCDEPMODE
715 am__nodep
716 AMDEPBACKSLASH
717 AMDEP_FALSE
718 AMDEP_TRUE
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 am__untar
741 am__tar
742 AMTAR
743 am__leading_dot
744 SET_MAKE
745 AWK
746 mkdir_p
747 MKDIR_P
748 INSTALL_STRIP_PROGRAM
749 STRIP
750 install_sh
751 MAKEINFO
752 AUTOHEADER
753 AUTOMAKE
754 AUTOCONF
755 ACLOCAL
756 VERSION
757 PACKAGE
758 CYGPATH_W
759 am__isrc
760 INSTALL_DATA
761 INSTALL_SCRIPT
762 INSTALL_PROGRAM
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 runstatedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL
802 am__quote'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_silent_rules
807 enable_dependency_tracking
808 enable_static
809 enable_shared
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 with_sysroot
814 enable_libtool_lock
815 enable_maintainer_mode
816 enable_gcov
817 enable_optimization
818 enable_ld_version_script
819 with_libgpg_error_prefix
820 with_gpg_error_prefix
821 enable_valgrind_tests
822 enable_build_timestamp
823 enable_doc
824 '
825       ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CPP
834 YACC
835 YFLAGS
836 CC_FOR_BUILD'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 runstatedir='${localstatedir}/run'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892   # If the previous option needs an argument, assign it.
893   if test -n "$ac_prev"; then
894     eval $ac_prev=\$ac_option
895     ac_prev=
896     continue
897   fi
898
899   case $ac_option in
900   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901   *=)   ac_optarg= ;;
902   *)    ac_optarg=yes ;;
903   esac
904
905   # Accept the important Cygnus configure options, so we can diagnose typos.
906
907   case $ac_dashdash$ac_option in
908   --)
909     ac_dashdash=yes ;;
910
911   -bindir | --bindir | --bindi | --bind | --bin | --bi)
912     ac_prev=bindir ;;
913   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914     bindir=$ac_optarg ;;
915
916   -build | --build | --buil | --bui | --bu)
917     ac_prev=build_alias ;;
918   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919     build_alias=$ac_optarg ;;
920
921   -cache-file | --cache-file | --cache-fil | --cache-fi \
922   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923     ac_prev=cache_file ;;
924   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926     cache_file=$ac_optarg ;;
927
928   --config-cache | -C)
929     cache_file=config.cache ;;
930
931   -datadir | --datadir | --datadi | --datad)
932     ac_prev=datadir ;;
933   -datadir=* | --datadir=* | --datadi=* | --datad=*)
934     datadir=$ac_optarg ;;
935
936   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937   | --dataroo | --dataro | --datar)
938     ac_prev=datarootdir ;;
939   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941     datarootdir=$ac_optarg ;;
942
943   -disable-* | --disable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error $? "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=no ;;
958
959   -docdir | --docdir | --docdi | --doc | --do)
960     ac_prev=docdir ;;
961   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962     docdir=$ac_optarg ;;
963
964   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965     ac_prev=dvidir ;;
966   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967     dvidir=$ac_optarg ;;
968
969   -enable-* | --enable-*)
970     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973       as_fn_error $? "invalid feature name: $ac_useropt"
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=\$ac_optarg ;;
984
985   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987   | --exec | --exe | --ex)
988     ac_prev=exec_prefix ;;
989   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991   | --exec=* | --exe=* | --ex=*)
992     exec_prefix=$ac_optarg ;;
993
994   -gas | --gas | --ga | --g)
995     # Obsolete; use --with-gas.
996     with_gas=yes ;;
997
998   -help | --help | --hel | --he | -h)
999     ac_init_help=long ;;
1000   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001     ac_init_help=recursive ;;
1002   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003     ac_init_help=short ;;
1004
1005   -host | --host | --hos | --ho)
1006     ac_prev=host_alias ;;
1007   -host=* | --host=* | --hos=* | --ho=*)
1008     host_alias=$ac_optarg ;;
1009
1010   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011     ac_prev=htmldir ;;
1012   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013   | --ht=*)
1014     htmldir=$ac_optarg ;;
1015
1016   -includedir | --includedir | --includedi | --included | --include \
1017   | --includ | --inclu | --incl | --inc)
1018     ac_prev=includedir ;;
1019   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020   | --includ=* | --inclu=* | --incl=* | --inc=*)
1021     includedir=$ac_optarg ;;
1022
1023   -infodir | --infodir | --infodi | --infod | --info | --inf)
1024     ac_prev=infodir ;;
1025   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026     infodir=$ac_optarg ;;
1027
1028   -libdir | --libdir | --libdi | --libd)
1029     ac_prev=libdir ;;
1030   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031     libdir=$ac_optarg ;;
1032
1033   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034   | --libexe | --libex | --libe)
1035     ac_prev=libexecdir ;;
1036   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037   | --libexe=* | --libex=* | --libe=*)
1038     libexecdir=$ac_optarg ;;
1039
1040   -localedir | --localedir | --localedi | --localed | --locale)
1041     ac_prev=localedir ;;
1042   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043     localedir=$ac_optarg ;;
1044
1045   -localstatedir | --localstatedir | --localstatedi | --localstated \
1046   | --localstate | --localstat | --localsta | --localst | --locals)
1047     ac_prev=localstatedir ;;
1048   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050     localstatedir=$ac_optarg ;;
1051
1052   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053     ac_prev=mandir ;;
1054   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055     mandir=$ac_optarg ;;
1056
1057   -nfp | --nfp | --nf)
1058     # Obsolete; use --without-fp.
1059     with_fp=no ;;
1060
1061   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062   | --no-cr | --no-c | -n)
1063     no_create=yes ;;
1064
1065   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067     no_recursion=yes ;;
1068
1069   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071   | --oldin | --oldi | --old | --ol | --o)
1072     ac_prev=oldincludedir ;;
1073   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076     oldincludedir=$ac_optarg ;;
1077
1078   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079     ac_prev=prefix ;;
1080   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081     prefix=$ac_optarg ;;
1082
1083   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084   | --program-pre | --program-pr | --program-p)
1085     ac_prev=program_prefix ;;
1086   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088     program_prefix=$ac_optarg ;;
1089
1090   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091   | --program-suf | --program-su | --program-s)
1092     ac_prev=program_suffix ;;
1093   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095     program_suffix=$ac_optarg ;;
1096
1097   -program-transform-name | --program-transform-name \
1098   | --program-transform-nam | --program-transform-na \
1099   | --program-transform-n | --program-transform- \
1100   | --program-transform | --program-transfor \
1101   | --program-transfo | --program-transf \
1102   | --program-trans | --program-tran \
1103   | --progr-tra | --program-tr | --program-t)
1104     ac_prev=program_transform_name ;;
1105   -program-transform-name=* | --program-transform-name=* \
1106   | --program-transform-nam=* | --program-transform-na=* \
1107   | --program-transform-n=* | --program-transform-=* \
1108   | --program-transform=* | --program-transfor=* \
1109   | --program-transfo=* | --program-transf=* \
1110   | --program-trans=* | --program-tran=* \
1111   | --progr-tra=* | --program-tr=* | --program-t=*)
1112     program_transform_name=$ac_optarg ;;
1113
1114   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115     ac_prev=pdfdir ;;
1116   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117     pdfdir=$ac_optarg ;;
1118
1119   -psdir | --psdir | --psdi | --psd | --ps)
1120     ac_prev=psdir ;;
1121   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122     psdir=$ac_optarg ;;
1123
1124   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125   | -silent | --silent | --silen | --sile | --sil)
1126     silent=yes ;;
1127
1128   -runstatedir | --runstatedir | --runstatedi | --runstated \
1129   | --runstate | --runstat | --runsta | --runst | --runs \
1130   | --run | --ru | --r)
1131     ac_prev=runstatedir ;;
1132   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134   | --run=* | --ru=* | --r=*)
1135     runstatedir=$ac_optarg ;;
1136
1137   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138     ac_prev=sbindir ;;
1139   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140   | --sbi=* | --sb=*)
1141     sbindir=$ac_optarg ;;
1142
1143   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145   | --sharedst | --shareds | --shared | --share | --shar \
1146   | --sha | --sh)
1147     ac_prev=sharedstatedir ;;
1148   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151   | --sha=* | --sh=*)
1152     sharedstatedir=$ac_optarg ;;
1153
1154   -site | --site | --sit)
1155     ac_prev=site ;;
1156   -site=* | --site=* | --sit=*)
1157     site=$ac_optarg ;;
1158
1159   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160     ac_prev=srcdir ;;
1161   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162     srcdir=$ac_optarg ;;
1163
1164   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165   | --syscon | --sysco | --sysc | --sys | --sy)
1166     ac_prev=sysconfdir ;;
1167   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169     sysconfdir=$ac_optarg ;;
1170
1171   -target | --target | --targe | --targ | --tar | --ta | --t)
1172     ac_prev=target_alias ;;
1173   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174     target_alias=$ac_optarg ;;
1175
1176   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177     verbose=yes ;;
1178
1179   -version | --version | --versio | --versi | --vers | -V)
1180     ac_init_version=: ;;
1181
1182   -with-* | --with-*)
1183     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186       as_fn_error $? "invalid package name: $ac_useropt"
1187     ac_useropt_orig=$ac_useropt
1188     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189     case $ac_user_opts in
1190       *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194          ac_unrecognized_sep=', ';;
1195     esac
1196     eval with_$ac_useropt=\$ac_optarg ;;
1197
1198   -without-* | --without-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       as_fn_error $? "invalid package name: $ac_useropt"
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=no ;;
1213
1214   --x)
1215     # Obsolete; use --with-x.
1216     with_x=yes ;;
1217
1218   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219   | --x-incl | --x-inc | --x-in | --x-i)
1220     ac_prev=x_includes ;;
1221   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223     x_includes=$ac_optarg ;;
1224
1225   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227     ac_prev=x_libraries ;;
1228   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230     x_libraries=$ac_optarg ;;
1231
1232   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information"
1234     ;;
1235
1236   *=*)
1237     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238     # Reject names that are not valid shell variable names.
1239     case $ac_envvar in #(
1240       '' | [0-9]* | *[!_$as_cr_alnum]* )
1241       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242     esac
1243     eval $ac_envvar=\$ac_optarg
1244     export $ac_envvar ;;
1245
1246   *)
1247     # FIXME: should be removed in autoconf 3.0.
1248     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252     ;;
1253
1254   esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259   as_fn_error $? "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263   case $enable_option_checking in
1264     no) ;;
1265     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267   esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272                 datadir sysconfdir sharedstatedir localstatedir includedir \
1273                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274                 libdir localedir mandir runstatedir
1275 do
1276   eval ac_val=\$$ac_var
1277   # Remove trailing slashes.
1278   case $ac_val in
1279     */ )
1280       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281       eval $ac_var=\$ac_val;;
1282   esac
1283   # Be sure to have absolute directory names.
1284   case $ac_val in
1285     [\\/$]* | ?:[\\/]* )  continue;;
1286     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287   esac
1288   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300   if test "x$build_alias" = x; then
1301     cross_compiling=maybe
1302   elif test "x$build_alias" != "x$host_alias"; then
1303     cross_compiling=yes
1304   fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316   as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318   as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323   ac_srcdir_defaulted=yes
1324   # Try the directory containing this script, then the parent directory.
1325   ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327          X"$as_myself" : 'X\(//\)[^/]' \| \
1328          X"$as_myself" : 'X\(//\)$' \| \
1329          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)[^/].*/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\).*/{
1344             s//\1/
1345             q
1346           }
1347           s/.*/./; q'`
1348   srcdir=$ac_confdir
1349   if test ! -r "$srcdir/$ac_unique_file"; then
1350     srcdir=..
1351   fi
1352 else
1353   ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362         pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365   srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375   eval ac_env_${ac_var}_value=\$${ac_var}
1376   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384   # Omit some internal or obsolete options to make the list less imposing.
1385   # This message is too long to be a string in the A/UX 3.1 sh.
1386   cat <<_ACEOF
1387 \`configure' configures libksba 1.6.3 to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397   -h, --help              display this help and exit
1398       --help=short        display options specific to this package
1399       --help=recursive    display the short help of all the included packages
1400   -V, --version           display version information and exit
1401   -q, --quiet, --silent   do not print \`checking ...' messages
1402       --cache-file=FILE   cache test results in FILE [disabled]
1403   -C, --config-cache      alias for \`--cache-file=config.cache'
1404   -n, --no-create         do not create output files
1405       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408   --prefix=PREFIX         install architecture-independent files in PREFIX
1409                           [$ac_default_prefix]
1410   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                           [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421   --bindir=DIR            user executables [EPREFIX/bin]
1422   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1423   --libexecdir=DIR        program executables [EPREFIX/libexec]
1424   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1425   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1426   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1427   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1428   --libdir=DIR            object code libraries [EPREFIX/lib]
1429   --includedir=DIR        C header files [PREFIX/include]
1430   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1431   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1432   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1433   --infodir=DIR           info documentation [DATAROOTDIR/info]
1434   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1435   --mandir=DIR            man documentation [DATAROOTDIR/man]
1436   --docdir=DIR            documentation root [DATAROOTDIR/doc/libksba]
1437   --htmldir=DIR           html documentation [DOCDIR]
1438   --dvidir=DIR            dvi documentation [DOCDIR]
1439   --pdfdir=DIR            pdf documentation [DOCDIR]
1440   --psdir=DIR             ps documentation [DOCDIR]
1441 _ACEOF
1442
1443   cat <<\_ACEOF
1444
1445 Program names:
1446   --program-prefix=PREFIX            prepend PREFIX to installed program names
1447   --program-suffix=SUFFIX            append SUFFIX to installed program names
1448   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1449
1450 System types:
1451   --build=BUILD     configure for building on BUILD [guessed]
1452   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457   case $ac_init_help in
1458      short | recursive ) echo "Configuration of libksba 1.6.3:";;
1459    esac
1460   cat <<\_ACEOF
1461
1462 Optional Features:
1463   --disable-option-checking  ignore unrecognized --enable/--with options
1464   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466   --enable-silent-rules   less verbose build output (undo: "make V=1")
1467   --disable-silent-rules  verbose build output (undo: "make V=0")
1468   --enable-dependency-tracking
1469                           do not reject slow dependency extractors
1470   --disable-dependency-tracking
1471                           speeds up one-time build
1472   --enable-static[=PKGS]  build static libraries [default=no]
1473   --enable-shared[=PKGS]  build shared libraries [default=yes]
1474   --enable-fast-install[=PKGS]
1475                           optimize for fast installation [default=yes]
1476   --disable-libtool-lock  avoid locking (might break parallel builds)
1477   --enable-maintainer-mode
1478                           enable make rules and dependencies not useful (and
1479                           sometimes confusing) to the casual installer
1480   --enable-gcov           enable coverage testing with gcov
1481   --disable-optimization  disable compiler optimization
1482   --enable-ld-version-script
1483                           enable/disable use of linker version script.
1484                           (default is system dependent)
1485   --enable-valgrind-tests run self tests under valgrind
1486   --enable-build-timestamp
1487                           set an explicit build timestamp for reproducibility.
1488                           (default is the current time in ISO-8601 format)
1489   --disable-doc           do not build the documentation
1490
1491 Optional Packages:
1492   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1493   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1494   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1495                           both]
1496   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1497   --with-sysroot=DIR Search for dependent libraries within DIR
1498                         (or the compiler's sysroot if not specified).
1499   --with-libgpg-error-prefix=PFX
1500                           prefix where GPG Error is installed (optional)
1501
1502
1503 Some influential environment variables:
1504   CC          C compiler command
1505   CFLAGS      C compiler flags
1506   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507               nonstandard directory <lib dir>
1508   LIBS        libraries to pass to the linker, e.g. -l<library>
1509   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510               you have headers in a nonstandard directory <include dir>
1511   CPP         C preprocessor
1512   YACC        The `Yet Another Compiler Compiler' implementation to use.
1513               Defaults to the first program found out of: `bison -y', `byacc',
1514               `yacc'.
1515   YFLAGS      The list of arguments that will be passed by default to $YACC.
1516               This script will default YFLAGS to the empty string to avoid a
1517               default value of `-d' given by some make applications.
1518   CC_FOR_BUILD
1519               build system C compiler
1520
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1523
1524 Report bugs to <https://bugs.gnupg.org>.
1525 _ACEOF
1526 ac_status=$?
1527 fi
1528
1529 if test "$ac_init_help" = "recursive"; then
1530   # If there are subdirs, report their specific --help.
1531   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532     test -d "$ac_dir" ||
1533       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534       continue
1535     ac_builddir=.
1536
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *)
1540   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541   # A ".." for each directory in $ac_dir_suffix.
1542   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543   case $ac_top_builddir_sub in
1544   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546   esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1552
1553 case $srcdir in
1554   .)  # We are building in place.
1555     ac_srcdir=.
1556     ac_top_srcdir=$ac_top_builddir_sub
1557     ac_abs_top_srcdir=$ac_pwd ;;
1558   [\\/]* | ?:[\\/]* )  # Absolute name.
1559     ac_srcdir=$srcdir$ac_dir_suffix;
1560     ac_top_srcdir=$srcdir
1561     ac_abs_top_srcdir=$srcdir ;;
1562   *) # Relative name.
1563     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564     ac_top_srcdir=$ac_top_build_prefix$srcdir
1565     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569     cd "$ac_dir" || { ac_status=$?; continue; }
1570     # Check for guested configure.
1571     if test -f "$ac_srcdir/configure.gnu"; then
1572       echo &&
1573       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574     elif test -f "$ac_srcdir/configure"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure" --help=recursive
1577     else
1578       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579     fi || ac_status=$?
1580     cd "$ac_pwd" || { ac_status=$?; break; }
1581   done
1582 fi
1583
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586   cat <<\_ACEOF
1587 libksba configure 1.6.3
1588 generated by GNU Autoconf 2.69
1589
1590 Copyright (C) 2012 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593 _ACEOF
1594   exit
1595 fi
1596
1597 ## ------------------------ ##
1598 ## Autoconf initialization. ##
1599 ## ------------------------ ##
1600
1601 # ac_fn_c_try_compile LINENO
1602 # --------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_compile ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   rm -f conftest.$ac_objext
1608   if { { ac_try="$ac_compile"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_compile") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } && {
1624          test -z "$ac_c_werror_flag" ||
1625          test ! -s conftest.err
1626        } && test -s conftest.$ac_objext; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632         ac_retval=1
1633 fi
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_compile
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653   ac_status=$?
1654   if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658   fi
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } > conftest.i && {
1661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662          test ! -s conftest.err
1663        }; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669     ac_retval=1
1670 fi
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1679 # the include files in INCLUDES and setting the cache variable VAR
1680 # accordingly.
1681 ac_fn_c_check_header_mongrel ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if eval \${$3+:} false; then :
1685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688   $as_echo_n "(cached) " >&6
1689 fi
1690 eval ac_res=\$$3
1691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 else
1694   # Is the header compilable?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1696 $as_echo_n "checking $2 usability... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h.  */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703   ac_header_compiler=yes
1704 else
1705   ac_header_compiler=no
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1709 $as_echo "$ac_header_compiler" >&6; }
1710
1711 # Is the header present?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1713 $as_echo_n "checking $2 presence... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h.  */
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_cpp "$LINENO"; then :
1719   ac_header_preproc=yes
1720 else
1721   ac_header_preproc=no
1722 fi
1723 rm -f conftest.err conftest.i conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1725 $as_echo "$ac_header_preproc" >&6; }
1726
1727 # So?  What about this header?
1728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1729   yes:no: )
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1731 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734     ;;
1735   no:yes:* )
1736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1737 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1739 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1740     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1741 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1743 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ( $as_echo "## ------------------------------------- ##
1747 ## Report this to https://bugs.gnupg.org ##
1748 ## ------------------------------------- ##"
1749      ) | sed "s/^/$as_me: WARNING:     /" >&2
1750     ;;
1751 esac
1752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755   $as_echo_n "(cached) " >&6
1756 else
1757   eval "$3=\$ac_header_compiler"
1758 fi
1759 eval ac_res=\$$3
1760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 fi
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_header_mongrel
1766
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_c_try_run ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_link") 2>&5
1782   ac_status=$?
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785   { { case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_try") 2>&5
1792   ac_status=$?
1793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794   test $ac_status = 0; }; }; then :
1795   ac_retval=0
1796 else
1797   $as_echo "$as_me: program exited with status $ac_status" >&5
1798        $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801        ac_retval=$ac_status
1802 fi
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_run
1808
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819   $as_echo_n "(cached) " >&6
1820 else
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   eval "$3=yes"
1828 else
1829   eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_header_compile
1839
1840 # ac_fn_c_try_link LINENO
1841 # -----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_link ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   rm -f conftest.$ac_objext conftest$ac_exeext
1847   if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_link") 2>conftest.err
1855   ac_status=$?
1856   if test -s conftest.err; then
1857     grep -v '^ *+' conftest.err >conftest.er1
1858     cat conftest.er1 >&5
1859     mv -f conftest.er1 conftest.err
1860   fi
1861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862   test $ac_status = 0; } && {
1863          test -z "$ac_c_werror_flag" ||
1864          test ! -s conftest.err
1865        } && test -s conftest$ac_exeext && {
1866          test "$cross_compiling" = yes ||
1867          test -x conftest$ac_exeext
1868        }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874         ac_retval=1
1875 fi
1876   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878   # interfere with the next link command; also delete a directory that is
1879   # left behind by Apple's compiler.  We do this before executing the actions.
1880   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_link
1885
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895   $as_echo_n "(cached) " >&6
1896 else
1897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h.  */
1899 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1901 #define $2 innocuous_$2
1902
1903 /* System header to define __stub macros and hopefully few prototypes,
1904     which can conflict with char $2 (); below.
1905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906     <limits.h> exists even on freestanding compilers.  */
1907
1908 #ifdef __STDC__
1909 # include <limits.h>
1910 #else
1911 # include <assert.h>
1912 #endif
1913
1914 #undef $2
1915
1916 /* Override any GCC internal prototype to avoid an error.
1917    Use char because int might match the return type of a GCC
1918    builtin and then its argument prototype would still apply.  */
1919 #ifdef __cplusplus
1920 extern "C"
1921 #endif
1922 char $2 ();
1923 /* The GNU C library defines this for functions which it implements
1924     to always fail with ENOSYS.  Some functions are actually named
1925     something starting with __ and the normal name is an alias.  */
1926 #if defined __stub_$2 || defined __stub___$2
1927 choke me
1928 #endif
1929
1930 int
1931 main ()
1932 {
1933 return $2 ();
1934   ;
1935   return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_link "$LINENO"; then :
1939   eval "$3=yes"
1940 else
1941   eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext \
1944     conftest$ac_exeext conftest.$ac_ext
1945 fi
1946 eval ac_res=\$$3
1947                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951 } # ac_fn_c_check_func
1952
1953 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1954 # --------------------------------------------
1955 # Tries to find the compile-time value of EXPR in a program that includes
1956 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1957 # computed
1958 ac_fn_c_compute_int ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   if test "$cross_compiling" = yes; then
1962     # Depending upon the size, compute the lo and hi bounds.
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 $4
1966 int
1967 main ()
1968 {
1969 static int test_array [1 - 2 * !(($2) >= 0)];
1970 test_array [0] = 0;
1971 return test_array [0];
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978   ac_lo=0 ac_mid=0
1979   while :; do
1980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 $4
1983 int
1984 main ()
1985 {
1986 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1987 test_array [0] = 0;
1988 return test_array [0];
1989
1990   ;
1991   return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995   ac_hi=$ac_mid; break
1996 else
1997   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1998                         if test $ac_lo -le $ac_mid; then
1999                           ac_lo= ac_hi=
2000                           break
2001                         fi
2002                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005   done
2006 else
2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $4
2010 int
2011 main ()
2012 {
2013 static int test_array [1 - 2 * !(($2) < 0)];
2014 test_array [0] = 0;
2015 return test_array [0];
2016
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022   ac_hi=-1 ac_mid=-1
2023   while :; do
2024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 int
2028 main ()
2029 {
2030 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2031 test_array [0] = 0;
2032 return test_array [0];
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039   ac_lo=$ac_mid; break
2040 else
2041   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2042                         if test $ac_mid -le $ac_hi; then
2043                           ac_lo= ac_hi=
2044                           break
2045                         fi
2046                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049   done
2050 else
2051   ac_lo= ac_hi=
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 # Binary search between lo and hi bounds.
2057 while test "x$ac_lo" != "x$ac_hi"; do
2058   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 $4
2062 int
2063 main ()
2064 {
2065 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2066 test_array [0] = 0;
2067 return test_array [0];
2068
2069   ;
2070   return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074   ac_hi=$ac_mid
2075 else
2076   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 done
2080 case $ac_lo in #((
2081 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2082 '') ac_retval=1 ;;
2083 esac
2084   else
2085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $4
2088 static long int longval () { return $2; }
2089 static unsigned long int ulongval () { return $2; }
2090 #include <stdio.h>
2091 #include <stdlib.h>
2092 int
2093 main ()
2094 {
2095
2096   FILE *f = fopen ("conftest.val", "w");
2097   if (! f)
2098     return 1;
2099   if (($2) < 0)
2100     {
2101       long int i = longval ();
2102       if (i != ($2))
2103         return 1;
2104       fprintf (f, "%ld", i);
2105     }
2106   else
2107     {
2108       unsigned long int i = ulongval ();
2109       if (i != ($2))
2110         return 1;
2111       fprintf (f, "%lu", i);
2112     }
2113   /* Do not output a trailing newline, as this causes \r\n confusion
2114      on some platforms.  */
2115   return ferror (f) || fclose (f) != 0;
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_run "$LINENO"; then :
2122   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2123 else
2124   ac_retval=1
2125 fi
2126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2127   conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 rm -f conftest.val
2129
2130   fi
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132   as_fn_set_status $ac_retval
2133
2134 } # ac_fn_c_compute_int
2135
2136 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2137 # -------------------------------------------
2138 # Tests whether TYPE exists after having included INCLUDES, setting cache
2139 # variable VAR accordingly.
2140 ac_fn_c_check_type ()
2141 {
2142   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146   $as_echo_n "(cached) " >&6
2147 else
2148   eval "$3=no"
2149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 $4
2152 int
2153 main ()
2154 {
2155 if (sizeof ($2))
2156          return 0;
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 int
2166 main ()
2167 {
2168 if (sizeof (($2)))
2169             return 0;
2170   ;
2171   return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175
2176 else
2177   eval "$3=yes"
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 eval ac_res=\$$3
2184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187
2188 } # ac_fn_c_check_type
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2192
2193 It was created by libksba $as_me 1.6.3, which was
2194 generated by GNU Autoconf 2.69.  Invocation command line was
2195
2196   $ $0 $@
2197
2198 _ACEOF
2199 exec 5>>config.log
2200 {
2201 cat <<_ASUNAME
2202 ## --------- ##
2203 ## Platform. ##
2204 ## --------- ##
2205
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2214
2215 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2216 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2219 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2220 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2221 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2222
2223 _ASUNAME
2224
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228   IFS=$as_save_IFS
2229   test -z "$as_dir" && as_dir=.
2230     $as_echo "PATH: $as_dir"
2231   done
2232 IFS=$as_save_IFS
2233
2234 } >&5
2235
2236 cat >&5 <<_ACEOF
2237
2238
2239 ## ----------- ##
2240 ## Core tests. ##
2241 ## ----------- ##
2242
2243 _ACEOF
2244
2245
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2251 ac_configure_args=
2252 ac_configure_args0=
2253 ac_configure_args1=
2254 ac_must_keep_next=false
2255 for ac_pass in 1 2
2256 do
2257   for ac_arg
2258   do
2259     case $ac_arg in
2260     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262     | -silent | --silent | --silen | --sile | --sil)
2263       continue ;;
2264     *\'*)
2265       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266     esac
2267     case $ac_pass in
2268     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269     2)
2270       as_fn_append ac_configure_args1 " '$ac_arg'"
2271       if test $ac_must_keep_next = true; then
2272         ac_must_keep_next=false # Got value, back to normal.
2273       else
2274         case $ac_arg in
2275           *=* | --config-cache | -C | -disable-* | --disable-* \
2276           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278           | -with-* | --with-* | -without-* | --without-* | --x)
2279             case "$ac_configure_args0 " in
2280               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281             esac
2282             ;;
2283           -* ) ac_must_keep_next=true ;;
2284         esac
2285       fi
2286       as_fn_append ac_configure_args " '$ac_arg'"
2287       ;;
2288     esac
2289   done
2290 done
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2293
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log.  We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300   # Save into config.log some information that might help in debugging.
2301   {
2302     echo
2303
2304     $as_echo "## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##"
2307     echo
2308     # The following way of writing the cache mishandles newlines in values,
2309 (
2310   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2311     eval ac_val=\$$ac_var
2312     case $ac_val in #(
2313     *${as_nl}*)
2314       case $ac_var in #(
2315       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2317       esac
2318       case $ac_var in #(
2319       _ | IFS | as_nl) ;; #(
2320       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321       *) { eval $ac_var=; unset $ac_var;} ;;
2322       esac ;;
2323     esac
2324   done
2325   (set) 2>&1 |
2326     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2327     *${as_nl}ac_space=\ *)
2328       sed -n \
2329         "s/'\''/'\''\\\\'\'''\''/g;
2330           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2331       ;; #(
2332     *)
2333       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2334       ;;
2335     esac |
2336     sort
2337 )
2338     echo
2339
2340     $as_echo "## ----------------- ##
2341 ## Output variables. ##
2342 ## ----------------- ##"
2343     echo
2344     for ac_var in $ac_subst_vars
2345     do
2346       eval ac_val=\$$ac_var
2347       case $ac_val in
2348       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349       esac
2350       $as_echo "$ac_var='\''$ac_val'\''"
2351     done | sort
2352     echo
2353
2354     if test -n "$ac_subst_files"; then
2355       $as_echo "## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##"
2358       echo
2359       for ac_var in $ac_subst_files
2360       do
2361         eval ac_val=\$$ac_var
2362         case $ac_val in
2363         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364         esac
2365         $as_echo "$ac_var='\''$ac_val'\''"
2366       done | sort
2367       echo
2368     fi
2369
2370     if test -s confdefs.h; then
2371       $as_echo "## ----------- ##
2372 ## confdefs.h. ##
2373 ## ----------- ##"
2374       echo
2375       cat confdefs.h
2376       echo
2377     fi
2378     test "$ac_signal" != 0 &&
2379       $as_echo "$as_me: caught signal $ac_signal"
2380     $as_echo "$as_me: exit $exit_status"
2381   } >&5
2382   rm -f core *.core core.conftest.* &&
2383     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2384     exit $exit_status
2385 ' 0
2386 for ac_signal in 1 2 13 15; do
2387   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2388 done
2389 ac_signal=0
2390
2391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2392 rm -f -r conftest* confdefs.h
2393
2394 $as_echo "/* confdefs.h */" > confdefs.h
2395
2396 # Predefined preprocessor variables.
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_NAME "$PACKAGE_NAME"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_STRING "$PACKAGE_STRING"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_URL "$PACKAGE_URL"
2420 _ACEOF
2421
2422
2423 # Let the site file select an alternate cache file if it wants to.
2424 # Prefer an explicitly selected file to automatically selected ones.
2425 ac_site_file1=NONE
2426 ac_site_file2=NONE
2427 if test -n "$CONFIG_SITE"; then
2428   # We do not want a PATH search for config.site.
2429   case $CONFIG_SITE in #((
2430     -*)  ac_site_file1=./$CONFIG_SITE;;
2431     */*) ac_site_file1=$CONFIG_SITE;;
2432     *)   ac_site_file1=./$CONFIG_SITE;;
2433   esac
2434 elif test "x$prefix" != xNONE; then
2435   ac_site_file1=$prefix/share/config.site
2436   ac_site_file2=$prefix/etc/config.site
2437 else
2438   ac_site_file1=$ac_default_prefix/share/config.site
2439   ac_site_file2=$ac_default_prefix/etc/config.site
2440 fi
2441 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2442 do
2443   test "x$ac_site_file" = xNONE && continue
2444   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2445     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2446 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2447     sed 's/^/| /' "$ac_site_file" >&5
2448     . "$ac_site_file" \
2449       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 as_fn_error $? "failed to load site script $ac_site_file
2452 See \`config.log' for more details" "$LINENO" 5; }
2453   fi
2454 done
2455
2456 if test -r "$cache_file"; then
2457   # Some versions of bash will fail to source /dev/null (special files
2458   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2459   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2460     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2462     case $cache_file in
2463       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2464       *)                      . "./$cache_file";;
2465     esac
2466   fi
2467 else
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2470   >$cache_file
2471 fi
2472
2473 # Check that the precious variables saved in the cache have kept the same
2474 # value.
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478   eval ac_new_set=\$ac_env_${ac_var}_set
2479   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480   eval ac_new_val=\$ac_env_${ac_var}_value
2481   case $ac_old_set,$ac_new_set in
2482     set,)
2483       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485       ac_cache_corrupted=: ;;
2486     ,set)
2487       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2489       ac_cache_corrupted=: ;;
2490     ,);;
2491     *)
2492       if test "x$ac_old_val" != "x$ac_new_val"; then
2493         # differences in whitespace do not lead to failure.
2494         ac_old_val_w=`echo x $ac_old_val`
2495         ac_new_val_w=`echo x $ac_new_val`
2496         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2499           ac_cache_corrupted=:
2500         else
2501           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503           eval $ac_var=\$ac_old_val
2504         fi
2505         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2506 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2507         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2509       fi;;
2510   esac
2511   # Pass precious variables to config.status.
2512   if test "$ac_new_set" = set; then
2513     case $ac_new_val in
2514     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2515     *) ac_arg=$ac_var=$ac_new_val ;;
2516     esac
2517     case " $ac_configure_args " in
2518       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2519       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2520     esac
2521   fi
2522 done
2523 if $ac_cache_corrupted; then
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 fi
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2533
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541
2542 # LT Version numbers: Remember to change them just *before* a release.
2543 #   (Interfaces removed:    CURRENT++, AGE=0, REVISION=0)
2544 #   (Interfaces added:      CURRENT++, AGE++, REVISION=0)
2545 #   (No interfaces changed:                   REVISION++)
2546 # Please remember to document interface changes in the NEWS file.
2547 LIBKSBA_LT_CURRENT=22
2548 LIBKSBA_LT_AGE=14
2549 LIBKSBA_LT_REVISION=3
2550 #-------------------
2551 # If the API is changed in an incompatible way: increment the next counter.
2552 KSBA_CONFIG_API_VERSION=1
2553
2554
2555 NEED_GPG_ERROR_VERSION=1.8
2556
2557
2558 ac_aux_dir=
2559 for ac_dir in build-aux "$srcdir"/build-aux; do
2560   if test -f "$ac_dir/install-sh"; then
2561     ac_aux_dir=$ac_dir
2562     ac_install_sh="$ac_aux_dir/install-sh -c"
2563     break
2564   elif test -f "$ac_dir/install.sh"; then
2565     ac_aux_dir=$ac_dir
2566     ac_install_sh="$ac_aux_dir/install.sh -c"
2567     break
2568   elif test -f "$ac_dir/shtool"; then
2569     ac_aux_dir=$ac_dir
2570     ac_install_sh="$ac_aux_dir/shtool install -c"
2571     break
2572   fi
2573 done
2574 if test -z "$ac_aux_dir"; then
2575   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2576 fi
2577
2578 # These three variables are undocumented and unsupported,
2579 # and are intended to be withdrawn in a future Autoconf release.
2580 # They can cause serious problems if a builder's source tree is in a directory
2581 # whose full name contains unusual characters.
2582 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2583 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2584 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2585
2586
2587
2588 am__api_version='1.16'
2589
2590 # Find a good install program.  We prefer a C program (faster),
2591 # so one script is as good as another.  But avoid the broken or
2592 # incompatible versions:
2593 # SysV /etc/install, /usr/sbin/install
2594 # SunOS /usr/etc/install
2595 # IRIX /sbin/install
2596 # AIX /bin/install
2597 # AmigaOS /C/install, which installs bootblocks on floppy discs
2598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2601 # OS/2's system install, which has a completely different semantic
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2606 if test -z "$INSTALL"; then
2607 if ${ac_cv_path_install+:} false; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615     # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617   ./ | .// | /[cC]/* | \
2618   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2620   /usr/ucb/* ) ;;
2621   *)
2622     # OSF1 and SCO ODT 3.0 have their own names for install.
2623     # Don't use installbsd from OSF since it installs stuff as root
2624     # by default.
2625     for ac_prog in ginstall scoinst install; do
2626       for ac_exec_ext in '' $ac_executable_extensions; do
2627         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2628           if test $ac_prog = install &&
2629             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630             # AIX install.  It has an incompatible calling convention.
2631             :
2632           elif test $ac_prog = install &&
2633             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634             # program-specific install script used by HP pwplus--don't use.
2635             :
2636           else
2637             rm -rf conftest.one conftest.two conftest.dir
2638             echo one > conftest.one
2639             echo two > conftest.two
2640             mkdir conftest.dir
2641             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642               test -s conftest.one && test -s conftest.two &&
2643               test -s conftest.dir/conftest.one &&
2644               test -s conftest.dir/conftest.two
2645             then
2646               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2647               break 3
2648             fi
2649           fi
2650         fi
2651       done
2652     done
2653     ;;
2654 esac
2655
2656   done
2657 IFS=$as_save_IFS
2658
2659 rm -rf conftest.one conftest.two conftest.dir
2660
2661 fi
2662   if test "${ac_cv_path_install+set}" = set; then
2663     INSTALL=$ac_cv_path_install
2664   else
2665     # As a last resort, use the slow shell script.  Don't cache a
2666     # value for INSTALL within a source directory, because that will
2667     # break other packages using the cache if that directory is
2668     # removed, or if the value is a relative name.
2669     INSTALL=$ac_install_sh
2670   fi
2671 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
2674
2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676 # It thinks the first close brace ends the variable substitution.
2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2678
2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2680
2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2682
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2684 $as_echo_n "checking whether build environment is sane... " >&6; }
2685 # Reject unsafe characters in $srcdir or the absolute working directory
2686 # name.  Accept space and tab only in the latter.
2687 am_lf='
2688 '
2689 case `pwd` in
2690   *[\\\"\#\$\&\'\`$am_lf]*)
2691     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2692 esac
2693 case $srcdir in
2694   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2695     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2696 esac
2697
2698 # Do 'set' in a subshell so we don't clobber the current shell's
2699 # arguments.  Must try -L first in case configure is actually a
2700 # symlink; some systems play weird games with the mod time of symlinks
2701 # (eg FreeBSD returns the mod time of the symlink's containing
2702 # directory).
2703 if (
2704    am_has_slept=no
2705    for am_try in 1 2; do
2706      echo "timestamp, slept: $am_has_slept" > conftest.file
2707      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2708      if test "$*" = "X"; then
2709         # -L didn't work.
2710         set X `ls -t "$srcdir/configure" conftest.file`
2711      fi
2712      if test "$*" != "X $srcdir/configure conftest.file" \
2713         && test "$*" != "X conftest.file $srcdir/configure"; then
2714
2715         # If neither matched, then we have a broken ls.  This can happen
2716         # if, for instance, CONFIG_SHELL is bash and it inherits a
2717         # broken ls alias from the environment.  This has actually
2718         # happened.  Such a system could not be considered "sane".
2719         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2720   alias in your environment" "$LINENO" 5
2721      fi
2722      if test "$2" = conftest.file || test $am_try -eq 2; then
2723        break
2724      fi
2725      # Just in case.
2726      sleep 1
2727      am_has_slept=yes
2728    done
2729    test "$2" = conftest.file
2730    )
2731 then
2732    # Ok.
2733    :
2734 else
2735    as_fn_error $? "newly created file is older than distributed files!
2736 Check your system clock" "$LINENO" 5
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740 # If we didn't sleep, we still need to ensure time stamps of config.status and
2741 # generated files are strictly newer.
2742 am_sleep_pid=
2743 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2744   ( sleep 1 ) &
2745   am_sleep_pid=$!
2746 fi
2747
2748 rm -f conftest.file
2749
2750 test "$program_prefix" != NONE &&
2751   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752 # Use a double $ so make ignores it.
2753 test "$program_suffix" != NONE &&
2754   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755 # Double any \ or $.
2756 # By default was `s,x,x', remove it if useless.
2757 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759
2760 # Expand $ac_aux_dir to an absolute path.
2761 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2762
2763 if test x"${MISSING+set}" != xset; then
2764   MISSING="\${SHELL} '$am_aux_dir/missing'"
2765 fi
2766 # Use eval to expand $SHELL
2767 if eval "$MISSING --is-lightweight"; then
2768   am_missing_run="$MISSING "
2769 else
2770   am_missing_run=
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2772 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2773 fi
2774
2775 if test x"${install_sh+set}" != xset; then
2776   case $am_aux_dir in
2777   *\ * | *\     *)
2778     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2779   *)
2780     install_sh="\${SHELL} $am_aux_dir/install-sh"
2781   esac
2782 fi
2783
2784 # Installed binaries are usually stripped using 'strip' when the user
2785 # run "make install-strip".  However 'strip' might not be the right
2786 # tool to use in cross-compilation environments, therefore Automake
2787 # will honor the 'STRIP' environment variable to overrule this program.
2788 if test "$cross_compiling" != no; then
2789   if test -n "$ac_tool_prefix"; then
2790   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2791 set dummy ${ac_tool_prefix}strip; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_STRIP+:} false; then :
2795   $as_echo_n "(cached) " >&6
2796 else
2797   if test -n "$STRIP"; then
2798   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805     for ac_exec_ext in '' $ac_executable_extensions; do
2806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812   done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 STRIP=$ac_cv_prog_STRIP
2818 if test -n "$STRIP"; then
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2820 $as_echo "$STRIP" >&6; }
2821 else
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827 fi
2828 if test -z "$ac_cv_prog_STRIP"; then
2829   ac_ct_STRIP=$STRIP
2830   # Extract the first word of "strip", so it can be a program name with args.
2831 set dummy strip; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   if test -n "$ac_ct_STRIP"; then
2838   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845     for ac_exec_ext in '' $ac_executable_extensions; do
2846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847     ac_cv_prog_ac_ct_STRIP="strip"
2848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852   done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2858 if test -n "$ac_ct_STRIP"; then
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2860 $as_echo "$ac_ct_STRIP" >&6; }
2861 else
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866   if test "x$ac_ct_STRIP" = x; then
2867     STRIP=":"
2868   else
2869     case $cross_compiling:$ac_tool_warned in
2870 yes:)
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned=yes ;;
2874 esac
2875     STRIP=$ac_ct_STRIP
2876   fi
2877 else
2878   STRIP="$ac_cv_prog_STRIP"
2879 fi
2880
2881 fi
2882 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2883
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2885 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2886 if test -z "$MKDIR_P"; then
2887   if ${ac_cv_path_mkdir+:} false; then :
2888   $as_echo_n "(cached) " >&6
2889 else
2890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895     for ac_prog in mkdir gmkdir; do
2896          for ac_exec_ext in '' $ac_executable_extensions; do
2897            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2898            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2899              'mkdir (GNU coreutils) '* | \
2900              'mkdir (coreutils) '* | \
2901              'mkdir (fileutils) '4.1*)
2902                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2903                break 3;;
2904            esac
2905          done
2906        done
2907   done
2908 IFS=$as_save_IFS
2909
2910 fi
2911
2912   test -d ./--version && rmdir ./--version
2913   if test "${ac_cv_path_mkdir+set}" = set; then
2914     MKDIR_P="$ac_cv_path_mkdir -p"
2915   else
2916     # As a last resort, use the slow shell script.  Don't cache a
2917     # value for MKDIR_P within a source directory, because that will
2918     # break other packages using the cache if that directory is
2919     # removed, or if the value is a relative name.
2920     MKDIR_P="$ac_install_sh -d"
2921   fi
2922 fi
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2924 $as_echo "$MKDIR_P" >&6; }
2925
2926 for ac_prog in gawk mawk nawk awk
2927 do
2928   # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_AWK+:} false; then :
2933   $as_echo_n "(cached) " >&6
2934 else
2935   if test -n "$AWK"; then
2936   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943     for ac_exec_ext in '' $ac_executable_extensions; do
2944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945     ac_cv_prog_AWK="$ac_prog"
2946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950   done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 AWK=$ac_cv_prog_AWK
2956 if test -n "$AWK"; then
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2958 $as_echo "$AWK" >&6; }
2959 else
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965   test -n "$AWK" && break
2966 done
2967
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2970 set x ${MAKE-make}
2971 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2972 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   cat >conftest.make <<\_ACEOF
2976 SHELL = /bin/sh
2977 all:
2978         @echo '@@@%%%=$(MAKE)=@@@%%%'
2979 _ACEOF
2980 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2981 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2982   *@@@%%%=?*=@@@%%%*)
2983     eval ac_cv_prog_make_${ac_make}_set=yes;;
2984   *)
2985     eval ac_cv_prog_make_${ac_make}_set=no;;
2986 esac
2987 rm -f conftest.make
2988 fi
2989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2991 $as_echo "yes" >&6; }
2992   SET_MAKE=
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996   SET_MAKE="MAKE=${MAKE-make}"
2997 fi
2998
2999 rm -rf .tst 2>/dev/null
3000 mkdir .tst 2>/dev/null
3001 if test -d .tst; then
3002   am__leading_dot=.
3003 else
3004   am__leading_dot=_
3005 fi
3006 rmdir .tst 2>/dev/null
3007
3008 # Check whether --enable-silent-rules was given.
3009 if test "${enable_silent_rules+set}" = set; then :
3010   enableval=$enable_silent_rules;
3011 fi
3012
3013 case $enable_silent_rules in # (((
3014   yes) AM_DEFAULT_VERBOSITY=0;;
3015    no) AM_DEFAULT_VERBOSITY=1;;
3016     *) AM_DEFAULT_VERBOSITY=1;;
3017 esac
3018 am_make=${MAKE-make}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3020 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3021 if ${am_cv_make_support_nested_variables+:} false; then :
3022   $as_echo_n "(cached) " >&6
3023 else
3024   if $as_echo 'TRUE=$(BAR$(V))
3025 BAR0=false
3026 BAR1=true
3027 V=1
3028 am__doit:
3029         @$(TRUE)
3030 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3031   am_cv_make_support_nested_variables=yes
3032 else
3033   am_cv_make_support_nested_variables=no
3034 fi
3035 fi
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3037 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3038 if test $am_cv_make_support_nested_variables = yes; then
3039     AM_V='$(V)'
3040   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3041 else
3042   AM_V=$AM_DEFAULT_VERBOSITY
3043   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3044 fi
3045 AM_BACKSLASH='\'
3046
3047 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3048   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3049   # is not polluted with repeated "-I."
3050   am__isrc=' -I$(srcdir)'
3051   # test to see if srcdir already configured
3052   if test -f $srcdir/config.status; then
3053     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3054   fi
3055 fi
3056
3057 # test whether we have cygpath
3058 if test -z "$CYGPATH_W"; then
3059   if (cygpath --version) >/dev/null 2>/dev/null; then
3060     CYGPATH_W='cygpath -w'
3061   else
3062     CYGPATH_W=echo
3063   fi
3064 fi
3065
3066
3067 # Define the identity of the package.
3068  PACKAGE='libksba'
3069  VERSION='1.6.3'
3070
3071
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE "$PACKAGE"
3074 _ACEOF
3075
3076
3077 cat >>confdefs.h <<_ACEOF
3078 #define VERSION "$VERSION"
3079 _ACEOF
3080
3081 # Some tools Automake needs.
3082
3083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3084
3085
3086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3087
3088
3089 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3090
3091
3092 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3093
3094
3095 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3096
3097 # For better backward compatibility.  To be removed once Automake 1.9.x
3098 # dies out for good.  For more background, see:
3099 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3100 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3101 mkdir_p='$(MKDIR_P)'
3102
3103 # We need awk for the "check" target (and possibly the TAP driver).  The
3104 # system "awk" is bad on some platforms.
3105 # Always define AMTAR for backward compatibility.  Yes, it's still used
3106 # in the wild :-(  We should find a proper way to deprecate it ...
3107 AMTAR='$${TAR-tar}'
3108
3109
3110 # We'll loop over all known methods to create a tar archive until one works.
3111 _am_tools='gnutar  pax cpio none'
3112
3113 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3114
3115
3116
3117
3118
3119
3120 # POSIX will say in a future version that running "rm -f" with no argument
3121 # is OK; and we want to be able to make that assumption in our Makefile
3122 # recipes.  So use an aggressive probe to check that the usage we want is
3123 # actually supported "in the wild" to an acceptable degree.
3124 # See automake bug#10828.
3125 # To make any issue more visible, cause the running configure to be aborted
3126 # by default if the 'rm' program in use doesn't match our expectations; the
3127 # user can still override this though.
3128 if rm -f && rm -fr && rm -rf; then : OK; else
3129   cat >&2 <<'END'
3130 Oops!
3131
3132 Your 'rm' program seems unable to run without file operands specified
3133 on the command line, even when the '-f' option is present.  This is contrary
3134 to the behaviour of most rm programs out there, and not conforming with
3135 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3136
3137 Please tell bug-automake@gnu.org about your system, including the value
3138 of your $PATH and any error possibly output before this message.  This
3139 can help us improve future automake versions.
3140
3141 END
3142   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3143     echo 'Configuration will proceed anyway, since you have set the' >&2
3144     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3145     echo >&2
3146   else
3147     cat >&2 <<'END'
3148 Aborting the configuration process, to ensure you take notice of the issue.
3149
3150 You can download and install GNU coreutils to get an 'rm' implementation
3151 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3152
3153 If you want to complete the configuration process using your problematic
3154 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3155 to "yes", and re-run configure.
3156
3157 END
3158     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3159   fi
3160 fi
3161
3162 ac_config_headers="$ac_config_headers config.h"
3163
3164
3165 # Make sure we can run config.sub.
3166 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3167   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3168
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3170 $as_echo_n "checking build system type... " >&6; }
3171 if ${ac_cv_build+:} false; then :
3172   $as_echo_n "(cached) " >&6
3173 else
3174   ac_build_alias=$build_alias
3175 test "x$ac_build_alias" = x &&
3176   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3177 test "x$ac_build_alias" = x &&
3178   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3179 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3180   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3181
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3184 $as_echo "$ac_cv_build" >&6; }
3185 case $ac_cv_build in
3186 *-*-*) ;;
3187 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3188 esac
3189 build=$ac_cv_build
3190 ac_save_IFS=$IFS; IFS='-'
3191 set x $ac_cv_build
3192 shift
3193 build_cpu=$1
3194 build_vendor=$2
3195 shift; shift
3196 # Remember, the first character of IFS is used to create $*,
3197 # except with old shells:
3198 build_os=$*
3199 IFS=$ac_save_IFS
3200 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3201
3202
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3204 $as_echo_n "checking host system type... " >&6; }
3205 if ${ac_cv_host+:} false; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test "x$host_alias" = x; then
3209   ac_cv_host=$ac_cv_build
3210 else
3211   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3212     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3213 fi
3214
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3217 $as_echo "$ac_cv_host" >&6; }
3218 case $ac_cv_host in
3219 *-*-*) ;;
3220 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3221 esac
3222 host=$ac_cv_host
3223 ac_save_IFS=$IFS; IFS='-'
3224 set x $ac_cv_host
3225 shift
3226 host_cpu=$1
3227 host_vendor=$2
3228 shift; shift
3229 # Remember, the first character of IFS is used to create $*,
3230 # except with old shells:
3231 host_os=$*
3232 IFS=$ac_save_IFS
3233 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3234
3235
3236
3237
3238
3239
3240         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3241 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3242         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3243 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3244         hostname=`hostname`
3245         if test "$hostname"; then
3246            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3247 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3248         fi
3249
3250         date=`date +%Y%m%d-%H%M%S`
3251         if test "$?" != 0; then
3252            date=`date`
3253         fi
3254         if test "$date"; then
3255            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3256 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3257         fi
3258
3259
3260 DEPDIR="${am__leading_dot}deps"
3261
3262 ac_config_commands="$ac_config_commands depfiles"
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3265 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3266 cat > confinc.mk << 'END'
3267 am__doit:
3268         @echo this is the am__doit target >confinc.out
3269 .PHONY: am__doit
3270 END
3271 am__include="#"
3272 am__quote=
3273 # BSD make does it like this.
3274 echo '.include "confinc.mk" # ignored' > confmf.BSD
3275 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3276 echo 'include confinc.mk # ignored' > confmf.GNU
3277 _am_result=no
3278 for s in GNU BSD; do
3279   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3280    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3281    ac_status=$?
3282    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283    (exit $ac_status); }
3284   case $?:`cat confinc.out 2>/dev/null` in #(
3285   '0:this is the am__doit target') :
3286     case $s in #(
3287   BSD) :
3288     am__include='.include' am__quote='"' ;; #(
3289   *) :
3290     am__include='include' am__quote='' ;;
3291 esac ;; #(
3292   *) :
3293      ;;
3294 esac
3295   if test "$am__include" != "#"; then
3296     _am_result="yes ($s style)"
3297     break
3298   fi
3299 done
3300 rm -f confinc.* confmf.*
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3302 $as_echo "${_am_result}" >&6; }
3303
3304 # Check whether --enable-dependency-tracking was given.
3305 if test "${enable_dependency_tracking+set}" = set; then :
3306   enableval=$enable_dependency_tracking;
3307 fi
3308
3309 if test "x$enable_dependency_tracking" != xno; then
3310   am_depcomp="$ac_aux_dir/depcomp"
3311   AMDEPBACKSLASH='\'
3312   am__nodep='_no'
3313 fi
3314  if test "x$enable_dependency_tracking" != xno; then
3315   AMDEP_TRUE=
3316   AMDEP_FALSE='#'
3317 else
3318   AMDEP_TRUE='#'
3319   AMDEP_FALSE=
3320 fi
3321
3322
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 if test -n "$ac_tool_prefix"; then
3329   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   if test -n "$CC"; then
3337   ac_cv_prog_CC="$CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344     for ac_exec_ext in '' $ac_executable_extensions; do
3345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351   done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 CC=$ac_cv_prog_CC
3357 if test -n "$CC"; then
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3360 else
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366 fi
3367 if test -z "$ac_cv_prog_CC"; then
3368   ac_ct_CC=$CC
3369   # Extract the first word of "gcc", so it can be a program name with args.
3370 set dummy gcc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   if test -n "$ac_ct_CC"; then
3377   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384     for ac_exec_ext in '' $ac_executable_extensions; do
3385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386     ac_cv_prog_ac_ct_CC="gcc"
3387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391   done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3400 else
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405   if test "x$ac_ct_CC" = x; then
3406     CC=""
3407   else
3408     case $cross_compiling:$ac_tool_warned in
3409 yes:)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412 ac_tool_warned=yes ;;
3413 esac
3414     CC=$ac_ct_CC
3415   fi
3416 else
3417   CC="$ac_cv_prog_CC"
3418 fi
3419
3420 if test -z "$CC"; then
3421           if test -n "$ac_tool_prefix"; then
3422     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}cc; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if ${ac_cv_prog_CC+:} false; then :
3427   $as_echo_n "(cached) " >&6
3428 else
3429   if test -n "$CC"; then
3430   ac_cv_prog_CC="$CC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435   IFS=$as_save_IFS
3436   test -z "$as_dir" && as_dir=.
3437     for ac_exec_ext in '' $ac_executable_extensions; do
3438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439     ac_cv_prog_CC="${ac_tool_prefix}cc"
3440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444   done
3445 IFS=$as_save_IFS
3446
3447 fi
3448 fi
3449 CC=$ac_cv_prog_CC
3450 if test -n "$CC"; then
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3453 else
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 fi
3457
3458
3459   fi
3460 fi
3461 if test -z "$CC"; then
3462   # Extract the first word of "cc", so it can be a program name with args.
3463 set dummy cc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_CC+:} false; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   if test -n "$CC"; then
3470   ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472   ac_prog_rejected=no
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3481        ac_prog_rejected=yes
3482        continue
3483      fi
3484     ac_cv_prog_CC="cc"
3485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486     break 2
3487   fi
3488 done
3489   done
3490 IFS=$as_save_IFS
3491
3492 if test $ac_prog_rejected = yes; then
3493   # We found a bogon in the path, so make sure we never use it.
3494   set dummy $ac_cv_prog_CC
3495   shift
3496   if test $# != 0; then
3497     # We chose a different compiler from the bogus one.
3498     # However, it has the same basename, so the bogon will be chosen
3499     # first if we set CC to just the basename; use the full file name.
3500     shift
3501     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3502   fi
3503 fi
3504 fi
3505 fi
3506 CC=$ac_cv_prog_CC
3507 if test -n "$CC"; then
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 $as_echo "$CC" >&6; }
3510 else
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515
3516 fi
3517 if test -z "$CC"; then
3518   if test -n "$ac_tool_prefix"; then
3519   for ac_prog in cl.exe
3520   do
3521     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if ${ac_cv_prog_CC+:} false; then :
3526   $as_echo_n "(cached) " >&6
3527 else
3528   if test -n "$CC"; then
3529   ac_cv_prog_CC="$CC" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534   IFS=$as_save_IFS
3535   test -z "$as_dir" && as_dir=.
3536     for ac_exec_ext in '' $ac_executable_extensions; do
3537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540     break 2
3541   fi
3542 done
3543   done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 CC=$ac_cv_prog_CC
3549 if test -n "$CC"; then
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551 $as_echo "$CC" >&6; }
3552 else
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 fi
3556
3557
3558     test -n "$CC" && break
3559   done
3560 fi
3561 if test -z "$CC"; then
3562   ac_ct_CC=$CC
3563   for ac_prog in cl.exe
3564 do
3565   # Extract the first word of "$ac_prog", so it can be a program name with args.
3566 set dummy $ac_prog; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   if test -n "$ac_ct_CC"; then
3573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580     for ac_exec_ext in '' $ac_executable_extensions; do
3581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582     ac_cv_prog_ac_ct_CC="$ac_prog"
3583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584     break 2
3585   fi
3586 done
3587   done
3588 IFS=$as_save_IFS
3589
3590 fi
3591 fi
3592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3593 if test -n "$ac_ct_CC"; then
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3595 $as_echo "$ac_ct_CC" >&6; }
3596 else
3597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 fi
3600
3601
3602   test -n "$ac_ct_CC" && break
3603 done
3604
3605   if test "x$ac_ct_CC" = x; then
3606     CC=""
3607   else
3608     case $cross_compiling:$ac_tool_warned in
3609 yes:)
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3612 ac_tool_warned=yes ;;
3613 esac
3614     CC=$ac_ct_CC
3615   fi
3616 fi
3617
3618 fi
3619
3620
3621 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 as_fn_error $? "no acceptable C compiler found in \$PATH
3624 See \`config.log' for more details" "$LINENO" 5; }
3625
3626 # Provide some information about the compiler.
3627 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3628 set X $ac_compile
3629 ac_compiler=$2
3630 for ac_option in --version -v -V -qversion; do
3631   { { ac_try="$ac_compiler $ac_option >&5"
3632 case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3639   ac_status=$?
3640   if test -s conftest.err; then
3641     sed '10a\
3642 ... rest of stderr output deleted ...
3643          10q' conftest.err >conftest.er1
3644     cat conftest.er1 >&5
3645   fi
3646   rm -f conftest.er1 conftest.err
3647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648   test $ac_status = 0; }
3649 done
3650
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 ac_clean_files_save=$ac_clean_files
3663 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3664 # Try to create an executable without -o first, disregard a.out.
3665 # It will help us diagnose broken compilers, and finding out an intuition
3666 # of exeext.
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3668 $as_echo_n "checking whether the C compiler works... " >&6; }
3669 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3670
3671 # The possible output files:
3672 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3673
3674 ac_rmfiles=
3675 for ac_file in $ac_files
3676 do
3677   case $ac_file in
3678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3680   esac
3681 done
3682 rm -f $ac_rmfiles
3683
3684 if { { ac_try="$ac_link_default"
3685 case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691   (eval "$ac_link_default") 2>&5
3692   ac_status=$?
3693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694   test $ac_status = 0; }; then :
3695   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3696 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3697 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3698 # so that the user can short-circuit this test for compilers unknown to
3699 # Autoconf.
3700 for ac_file in $ac_files ''
3701 do
3702   test -f "$ac_file" || continue
3703   case $ac_file in
3704     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3705         ;;
3706     [ab].out )
3707         # We found the default executable, but exeext='' is most
3708         # certainly right.
3709         break;;
3710     *.* )
3711         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3712         then :; else
3713            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714         fi
3715         # We set ac_cv_exeext here because the later test for it is not
3716         # safe: cross compilers may not add the suffix if given an `-o'
3717         # argument, so we may need to know it at that point already.
3718         # Even if this section looks crufty: it has the advantage of
3719         # actually working.
3720         break;;
3721     * )
3722         break;;
3723   esac
3724 done
3725 test "$ac_cv_exeext" = no && ac_cv_exeext=
3726
3727 else
3728   ac_file=''
3729 fi
3730 if test -z "$ac_file"; then :
3731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error 77 "C compiler cannot create executables
3739 See \`config.log' for more details" "$LINENO" 5; }
3740 else
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3742 $as_echo "yes" >&6; }
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3745 $as_echo_n "checking for C compiler default output file name... " >&6; }
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3747 $as_echo "$ac_file" >&6; }
3748 ac_exeext=$ac_cv_exeext
3749
3750 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3751 ac_clean_files=$ac_clean_files_save
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3753 $as_echo_n "checking for suffix of executables... " >&6; }
3754 if { { ac_try="$ac_link"
3755 case "(($ac_try" in
3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757   *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761   (eval "$ac_link") 2>&5
3762   ac_status=$?
3763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764   test $ac_status = 0; }; then :
3765   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3766 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3767 # work properly (i.e., refer to `conftest.exe'), while it won't with
3768 # `rm'.
3769 for ac_file in conftest.exe conftest conftest.*; do
3770   test -f "$ac_file" || continue
3771   case $ac_file in
3772     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3773     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3774           break;;
3775     * ) break;;
3776   esac
3777 done
3778 else
3779   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3782 See \`config.log' for more details" "$LINENO" 5; }
3783 fi
3784 rm -f conftest conftest$ac_cv_exeext
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3786 $as_echo "$ac_cv_exeext" >&6; }
3787
3788 rm -f conftest.$ac_ext
3789 EXEEXT=$ac_cv_exeext
3790 ac_exeext=$EXEEXT
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h.  */
3793 #include <stdio.h>
3794 int
3795 main ()
3796 {
3797 FILE *f = fopen ("conftest.out", "w");
3798  return ferror (f) || fclose (f) != 0;
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 ac_clean_files="$ac_clean_files conftest.out"
3805 # Check that the compiler produces executables we can run.  If not, either
3806 # the compiler is broken, or we cross compile.
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3808 $as_echo_n "checking whether we are cross compiling... " >&6; }
3809 if test "$cross_compiling" != yes; then
3810   { { ac_try="$ac_link"
3811 case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817   (eval "$ac_link") 2>&5
3818   ac_status=$?
3819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820   test $ac_status = 0; }
3821   if { ac_try='./conftest$ac_cv_exeext'
3822   { { case "(($ac_try" in
3823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824   *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828   (eval "$ac_try") 2>&5
3829   ac_status=$?
3830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831   test $ac_status = 0; }; }; then
3832     cross_compiling=no
3833   else
3834     if test "$cross_compiling" = maybe; then
3835         cross_compiling=yes
3836     else
3837         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839 as_fn_error $? "cannot run C compiled programs.
3840 If you meant to cross compile, use \`--host'.
3841 See \`config.log' for more details" "$LINENO" 5; }
3842     fi
3843   fi
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3846 $as_echo "$cross_compiling" >&6; }
3847
3848 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3849 ac_clean_files=$ac_clean_files_save
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3851 $as_echo_n "checking for suffix of object files... " >&6; }
3852 if ${ac_cv_objext+:} false; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h.  */
3857
3858 int
3859 main ()
3860 {
3861
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.o conftest.obj
3867 if { { ac_try="$ac_compile"
3868 case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874   (eval "$ac_compile") 2>&5
3875   ac_status=$?
3876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877   test $ac_status = 0; }; then :
3878   for ac_file in conftest.o conftest.obj conftest.*; do
3879   test -f "$ac_file" || continue;
3880   case $ac_file in
3881     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3882     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3883        break;;
3884   esac
3885 done
3886 else
3887   $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 as_fn_error $? "cannot compute suffix of object files: cannot compile
3893 See \`config.log' for more details" "$LINENO" 5; }
3894 fi
3895 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3898 $as_echo "$ac_cv_objext" >&6; }
3899 OBJEXT=$ac_cv_objext
3900 ac_objext=$OBJEXT
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3902 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3903 if ${ac_cv_c_compiler_gnu+:} false; then :
3904   $as_echo_n "(cached) " >&6
3905 else
3906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h.  */
3908
3909 int
3910 main ()
3911 {
3912 #ifndef __GNUC__
3913        choke me
3914 #endif
3915
3916   ;
3917   return 0;
3918 }
3919 _ACEOF
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921   ac_compiler_gnu=yes
3922 else
3923   ac_compiler_gnu=no
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3927
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3930 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3931 if test $ac_compiler_gnu = yes; then
3932   GCC=yes
3933 else
3934   GCC=
3935 fi
3936 ac_test_CFLAGS=${CFLAGS+set}
3937 ac_save_CFLAGS=$CFLAGS
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3939 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3940 if ${ac_cv_prog_cc_g+:} false; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   ac_save_c_werror_flag=$ac_c_werror_flag
3944    ac_c_werror_flag=yes
3945    ac_cv_prog_cc_g=no
3946    CFLAGS="-g"
3947    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h.  */
3949
3950 int
3951 main ()
3952 {
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959   ac_cv_prog_cc_g=yes
3960 else
3961   CFLAGS=""
3962       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h.  */
3964
3965 int
3966 main ()
3967 {
3968
3969   ;
3970   return 0;
3971 }
3972 _ACEOF
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974
3975 else
3976   ac_c_werror_flag=$ac_save_c_werror_flag
3977          CFLAGS="-g"
3978          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h.  */
3980
3981 int
3982 main ()
3983 {
3984
3985   ;
3986   return 0;
3987 }
3988 _ACEOF
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990   ac_cv_prog_cc_g=yes
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997    ac_c_werror_flag=$ac_save_c_werror_flag
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4000 $as_echo "$ac_cv_prog_cc_g" >&6; }
4001 if test "$ac_test_CFLAGS" = set; then
4002   CFLAGS=$ac_save_CFLAGS
4003 elif test $ac_cv_prog_cc_g = yes; then
4004   if test "$GCC" = yes; then
4005     CFLAGS="-g -O2"
4006   else
4007     CFLAGS="-g"
4008   fi
4009 else
4010   if test "$GCC" = yes; then
4011     CFLAGS="-O2"
4012   else
4013     CFLAGS=
4014   fi
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4018 if ${ac_cv_prog_cc_c89+:} false; then :
4019   $as_echo_n "(cached) " >&6
4020 else
4021   ac_cv_prog_cc_c89=no
4022 ac_save_CC=$CC
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h.  */
4025 #include <stdarg.h>
4026 #include <stdio.h>
4027 struct stat;
4028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4029 struct buf { int x; };
4030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4031 static char *e (p, i)
4032      char **p;
4033      int i;
4034 {
4035   return p[i];
4036 }
4037 static char *f (char * (*g) (char **, int), char **p, ...)
4038 {
4039   char *s;
4040   va_list v;
4041   va_start (v,p);
4042   s = g (p, va_arg (v,int));
4043   va_end (v);
4044   return s;
4045 }
4046
4047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4048    function prototypes and stuff, but not '\xHH' hex character constants.
4049    These don't provoke an error unfortunately, instead are silently treated
4050    as 'x'.  The following induces an error, until -std is added to get
4051    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4052    array size at least.  It's necessary to write '\x00'==0 to get something
4053    that's true only with -std.  */
4054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4055
4056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4057    inside strings and character constants.  */
4058 #define FOO(x) 'x'
4059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4060
4061 int test (int i, double x);
4062 struct s1 {int (*f) (int a);};
4063 struct s2 {int (*f) (double a);};
4064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4065 int argc;
4066 char **argv;
4067 int
4068 main ()
4069 {
4070 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4071   ;
4072   return 0;
4073 }
4074 _ACEOF
4075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4076         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4077 do
4078   CC="$ac_save_CC $ac_arg"
4079   if ac_fn_c_try_compile "$LINENO"; then :
4080   ac_cv_prog_cc_c89=$ac_arg
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext
4083   test "x$ac_cv_prog_cc_c89" != "xno" && break
4084 done
4085 rm -f conftest.$ac_ext
4086 CC=$ac_save_CC
4087
4088 fi
4089 # AC_CACHE_VAL
4090 case "x$ac_cv_prog_cc_c89" in
4091   x)
4092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4093 $as_echo "none needed" >&6; } ;;
4094   xno)
4095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4096 $as_echo "unsupported" >&6; } ;;
4097   *)
4098     CC="$CC $ac_cv_prog_cc_c89"
4099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4100 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4101 esac
4102 if test "x$ac_cv_prog_cc_c89" != xno; then :
4103
4104 fi
4105
4106 ac_ext=c
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4118 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4119 if ${am_cv_prog_cc_c_o+:} false; then :
4120   $as_echo_n "(cached) " >&6
4121 else
4122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h.  */
4124
4125 int
4126 main ()
4127 {
4128
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133   # Make sure it works both with $CC and with simple cc.
4134   # Following AC_PROG_CC_C_O, we do the test twice because some
4135   # compilers refuse to overwrite an existing .o file with -o,
4136   # though they will create one.
4137   am_cv_prog_cc_c_o=yes
4138   for am_i in 1 2; do
4139     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4140    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4141    ac_status=$?
4142    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143    (exit $ac_status); } \
4144          && test -f conftest2.$ac_objext; then
4145       : OK
4146     else
4147       am_cv_prog_cc_c_o=no
4148       break
4149     fi
4150   done
4151   rm -f core conftest*
4152   unset am_i
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4155 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4156 if test "$am_cv_prog_cc_c_o" != yes; then
4157    # Losing compiler, so override with the script.
4158    # FIXME: It is wrong to rewrite CC.
4159    # But if we don't then we get into trouble of one sort or another.
4160    # A longer-term fix would be to have automake use am__CC in this case,
4161    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4162    CC="$am_aux_dir/compile $CC"
4163 fi
4164 ac_ext=c
4165 ac_cpp='$CPP $CPPFLAGS'
4166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
4170
4171 depcc="$CC"   am_compiler_list=
4172
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4174 $as_echo_n "checking dependency style of $depcc... " >&6; }
4175 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4179   # We make a subdir and do the tests there.  Otherwise we can end up
4180   # making bogus files that we don't know about and never remove.  For
4181   # instance it was reported that on HP-UX the gcc test will end up
4182   # making a dummy file named 'D' -- because '-MD' means "put the output
4183   # in D".
4184   rm -rf conftest.dir
4185   mkdir conftest.dir
4186   # Copy depcomp to subdir because otherwise we won't find it if we're
4187   # using a relative directory.
4188   cp "$am_depcomp" conftest.dir
4189   cd conftest.dir
4190   # We will build objects and dependencies in a subdirectory because
4191   # it helps to detect inapplicable dependency modes.  For instance
4192   # both Tru64's cc and ICC support -MD to output dependencies as a
4193   # side effect of compilation, but ICC will put the dependencies in
4194   # the current directory while Tru64 will put them in the object
4195   # directory.
4196   mkdir sub
4197
4198   am_cv_CC_dependencies_compiler_type=none
4199   if test "$am_compiler_list" = ""; then
4200      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4201   fi
4202   am__universal=false
4203   case " $depcc " in #(
4204      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4205      esac
4206
4207   for depmode in $am_compiler_list; do
4208     # Setup a source with many dependencies, because some compilers
4209     # like to wrap large dependency lists on column 80 (with \), and
4210     # we should not choose a depcomp mode which is confused by this.
4211     #
4212     # We need to recreate these files for each test, as the compiler may
4213     # overwrite some of them when testing with obscure command lines.
4214     # This happens at least with the AIX C compiler.
4215     : > sub/conftest.c
4216     for i in 1 2 3 4 5 6; do
4217       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4218       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4219       # Solaris 10 /bin/sh.
4220       echo '/* dummy */' > sub/conftst$i.h
4221     done
4222     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4223
4224     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4225     # mode.  It turns out that the SunPro C++ compiler does not properly
4226     # handle '-M -o', and we need to detect this.  Also, some Intel
4227     # versions had trouble with output in subdirs.
4228     am__obj=sub/conftest.${OBJEXT-o}
4229     am__minus_obj="-o $am__obj"
4230     case $depmode in
4231     gcc)
4232       # This depmode causes a compiler race in universal mode.
4233       test "$am__universal" = false || continue
4234       ;;
4235     nosideeffect)
4236       # After this tag, mechanisms are not by side-effect, so they'll
4237       # only be used when explicitly requested.
4238       if test "x$enable_dependency_tracking" = xyes; then
4239         continue
4240       else
4241         break
4242       fi
4243       ;;
4244     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4245       # This compiler won't grok '-c -o', but also, the minuso test has
4246       # not run yet.  These depmodes are late enough in the game, and
4247       # so weak that their functioning should not be impacted.
4248       am__obj=conftest.${OBJEXT-o}
4249       am__minus_obj=
4250       ;;
4251     none) break ;;
4252     esac
4253     if depmode=$depmode \
4254        source=sub/conftest.c object=$am__obj \
4255        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4256        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4257          >/dev/null 2>conftest.err &&
4258        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4259        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4260        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4261        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4262       # icc doesn't choke on unknown options, it will just issue warnings
4263       # or remarks (even with -Werror).  So we grep stderr for any message
4264       # that says an option was ignored or not supported.
4265       # When given -MP, icc 7.0 and 7.1 complain thusly:
4266       #   icc: Command line warning: ignoring option '-M'; no argument required
4267       # The diagnosis changed in icc 8.0:
4268       #   icc: Command line remark: option '-MP' not supported
4269       if (grep 'ignoring option' conftest.err ||
4270           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4271         am_cv_CC_dependencies_compiler_type=$depmode
4272         break
4273       fi
4274     fi
4275   done
4276
4277   cd ..
4278   rm -rf conftest.dir
4279 else
4280   am_cv_CC_dependencies_compiler_type=none
4281 fi
4282
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4285 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4286 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4287
4288  if
4289   test "x$enable_dependency_tracking" != xno \
4290   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4291   am__fastdepCC_TRUE=
4292   am__fastdepCC_FALSE='#'
4293 else
4294   am__fastdepCC_TRUE='#'
4295   am__fastdepCC_FALSE=
4296 fi
4297
4298
4299
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4307 # On Suns, sometimes $CPP names a directory.
4308 if test -n "$CPP" && test -d "$CPP"; then
4309   CPP=
4310 fi
4311 if test -z "$CPP"; then
4312   if ${ac_cv_prog_CPP+:} false; then :
4313   $as_echo_n "(cached) " >&6
4314 else
4315       # Double quotes because CPP needs to be expanded
4316     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4317     do
4318       ac_preproc_ok=false
4319 for ac_c_preproc_warn_flag in '' yes
4320 do
4321   # Use a header file that comes with gcc, so configuring glibc
4322   # with a fresh cross-compiler works.
4323   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324   # <limits.h> exists even on freestanding compilers.
4325   # On the NeXT, cc -E runs the code through the compiler's parser,
4326   # not just through cpp. "Syntax error" is here to catch this case.
4327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h.  */
4329 #ifdef __STDC__
4330 # include <limits.h>
4331 #else
4332 # include <assert.h>
4333 #endif
4334                      Syntax error
4335 _ACEOF
4336 if ac_fn_c_try_cpp "$LINENO"; then :
4337
4338 else
4339   # Broken: fails on valid input.
4340 continue
4341 fi
4342 rm -f conftest.err conftest.i conftest.$ac_ext
4343
4344   # OK, works on sane cases.  Now check whether nonexistent headers
4345   # can be detected and how.
4346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348 #include <ac_nonexistent.h>
4349 _ACEOF
4350 if ac_fn_c_try_cpp "$LINENO"; then :
4351   # Broken: success on invalid input.
4352 continue
4353 else
4354   # Passes both tests.
4355 ac_preproc_ok=:
4356 break
4357 fi
4358 rm -f conftest.err conftest.i conftest.$ac_ext
4359
4360 done
4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362 rm -f conftest.i conftest.err conftest.$ac_ext
4363 if $ac_preproc_ok; then :
4364   break
4365 fi
4366
4367     done
4368     ac_cv_prog_CPP=$CPP
4369
4370 fi
4371   CPP=$ac_cv_prog_CPP
4372 else
4373   ac_cv_prog_CPP=$CPP
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4376 $as_echo "$CPP" >&6; }
4377 ac_preproc_ok=false
4378 for ac_c_preproc_warn_flag in '' yes
4379 do
4380   # Use a header file that comes with gcc, so configuring glibc
4381   # with a fresh cross-compiler works.
4382   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4383   # <limits.h> exists even on freestanding compilers.
4384   # On the NeXT, cc -E runs the code through the compiler's parser,
4385   # not just through cpp. "Syntax error" is here to catch this case.
4386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h.  */
4388 #ifdef __STDC__
4389 # include <limits.h>
4390 #else
4391 # include <assert.h>
4392 #endif
4393                      Syntax error
4394 _ACEOF
4395 if ac_fn_c_try_cpp "$LINENO"; then :
4396
4397 else
4398   # Broken: fails on valid input.
4399 continue
4400 fi
4401 rm -f conftest.err conftest.i conftest.$ac_ext
4402
4403   # OK, works on sane cases.  Now check whether nonexistent headers
4404   # can be detected and how.
4405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h.  */
4407 #include <ac_nonexistent.h>
4408 _ACEOF
4409 if ac_fn_c_try_cpp "$LINENO"; then :
4410   # Broken: success on invalid input.
4411 continue
4412 else
4413   # Passes both tests.
4414 ac_preproc_ok=:
4415 break
4416 fi
4417 rm -f conftest.err conftest.i conftest.$ac_ext
4418
4419 done
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.i conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then :
4423
4424 else
4425   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4428 See \`config.log' for more details" "$LINENO" 5; }
4429 fi
4430
4431 ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4439 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4440 if ${ac_cv_path_GREP+:} false; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   if test -z "$GREP"; then
4444   ac_path_GREP_found=false
4445   # Loop through the user's path and test for each of PROGNAME-LIST
4446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451     for ac_prog in grep ggrep; do
4452     for ac_exec_ext in '' $ac_executable_extensions; do
4453       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454       as_fn_executable_p "$ac_path_GREP" || continue
4455 # Check for GNU ac_path_GREP and select it if it is found.
4456   # Check for GNU $ac_path_GREP
4457 case `"$ac_path_GREP" --version 2>&1` in
4458 *GNU*)
4459   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4460 *)
4461   ac_count=0
4462   $as_echo_n 0123456789 >"conftest.in"
4463   while :
4464   do
4465     cat "conftest.in" "conftest.in" >"conftest.tmp"
4466     mv "conftest.tmp" "conftest.in"
4467     cp "conftest.in" "conftest.nl"
4468     $as_echo 'GREP' >> "conftest.nl"
4469     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471     as_fn_arith $ac_count + 1 && ac_count=$as_val
4472     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473       # Best one so far, save it but keep looking for a better one
4474       ac_cv_path_GREP="$ac_path_GREP"
4475       ac_path_GREP_max=$ac_count
4476     fi
4477     # 10*(2^10) chars as input seems more than enough
4478     test $ac_count -gt 10 && break
4479   done
4480   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 esac
4482
4483       $ac_path_GREP_found && break 3
4484     done
4485   done
4486   done
4487 IFS=$as_save_IFS
4488   if test -z "$ac_cv_path_GREP"; then
4489     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490   fi
4491 else
4492   ac_cv_path_GREP=$GREP
4493 fi
4494
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4497 $as_echo "$ac_cv_path_GREP" >&6; }
4498  GREP="$ac_cv_path_GREP"
4499
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502 $as_echo_n "checking for egrep... " >&6; }
4503 if ${ac_cv_path_EGREP+:} false; then :
4504   $as_echo_n "(cached) " >&6
4505 else
4506   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507    then ac_cv_path_EGREP="$GREP -E"
4508    else
4509      if test -z "$EGREP"; then
4510   ac_path_EGREP_found=false
4511   # Loop through the user's path and test for each of PROGNAME-LIST
4512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517     for ac_prog in egrep; do
4518     for ac_exec_ext in '' $ac_executable_extensions; do
4519       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520       as_fn_executable_p "$ac_path_EGREP" || continue
4521 # Check for GNU ac_path_EGREP and select it if it is found.
4522   # Check for GNU $ac_path_EGREP
4523 case `"$ac_path_EGREP" --version 2>&1` in
4524 *GNU*)
4525   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4526 *)
4527   ac_count=0
4528   $as_echo_n 0123456789 >"conftest.in"
4529   while :
4530   do
4531     cat "conftest.in" "conftest.in" >"conftest.tmp"
4532     mv "conftest.tmp" "conftest.in"
4533     cp "conftest.in" "conftest.nl"
4534     $as_echo 'EGREP' >> "conftest.nl"
4535     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537     as_fn_arith $ac_count + 1 && ac_count=$as_val
4538     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539       # Best one so far, save it but keep looking for a better one
4540       ac_cv_path_EGREP="$ac_path_EGREP"
4541       ac_path_EGREP_max=$ac_count
4542     fi
4543     # 10*(2^10) chars as input seems more than enough
4544     test $ac_count -gt 10 && break
4545   done
4546   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547 esac
4548
4549       $ac_path_EGREP_found && break 3
4550     done
4551   done
4552   done
4553 IFS=$as_save_IFS
4554   if test -z "$ac_cv_path_EGREP"; then
4555     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556   fi
4557 else
4558   ac_cv_path_EGREP=$EGREP
4559 fi
4560
4561    fi
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564 $as_echo "$ac_cv_path_EGREP" >&6; }
4565  EGREP="$ac_cv_path_EGREP"
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4569 $as_echo_n "checking for ANSI C header files... " >&6; }
4570 if ${ac_cv_header_stdc+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h.  */
4575 #include <stdlib.h>
4576 #include <stdarg.h>
4577 #include <string.h>
4578 #include <float.h>
4579
4580 int
4581 main ()
4582 {
4583
4584   ;
4585   return 0;
4586 }
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589   ac_cv_header_stdc=yes
4590 else
4591   ac_cv_header_stdc=no
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594
4595 if test $ac_cv_header_stdc = yes; then
4596   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h.  */
4599 #include <string.h>
4600
4601 _ACEOF
4602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4603   $EGREP "memchr" >/dev/null 2>&1; then :
4604
4605 else
4606   ac_cv_header_stdc=no
4607 fi
4608 rm -f conftest*
4609
4610 fi
4611
4612 if test $ac_cv_header_stdc = yes; then
4613   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h.  */
4616 #include <stdlib.h>
4617
4618 _ACEOF
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620   $EGREP "free" >/dev/null 2>&1; then :
4621
4622 else
4623   ac_cv_header_stdc=no
4624 fi
4625 rm -f conftest*
4626
4627 fi
4628
4629 if test $ac_cv_header_stdc = yes; then
4630   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631   if test "$cross_compiling" = yes; then :
4632   :
4633 else
4634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h.  */
4636 #include <ctype.h>
4637 #include <stdlib.h>
4638 #if ((' ' & 0x0FF) == 0x020)
4639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4641 #else
4642 # define ISLOWER(c) \
4643                    (('a' <= (c) && (c) <= 'i') \
4644                      || ('j' <= (c) && (c) <= 'r') \
4645                      || ('s' <= (c) && (c) <= 'z'))
4646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4647 #endif
4648
4649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4650 int
4651 main ()
4652 {
4653   int i;
4654   for (i = 0; i < 256; i++)
4655     if (XOR (islower (i), ISLOWER (i))
4656         || toupper (i) != TOUPPER (i))
4657       return 2;
4658   return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_c_try_run "$LINENO"; then :
4662
4663 else
4664   ac_cv_header_stdc=no
4665 fi
4666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4667   conftest.$ac_objext conftest.beam conftest.$ac_ext
4668 fi
4669
4670 fi
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4673 $as_echo "$ac_cv_header_stdc" >&6; }
4674 if test $ac_cv_header_stdc = yes; then
4675
4676 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4677
4678 fi
4679
4680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4681 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4682                   inttypes.h stdint.h unistd.h
4683 do :
4684   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4685 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4686 "
4687 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4688   cat >>confdefs.h <<_ACEOF
4689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4690 _ACEOF
4691
4692 fi
4693
4694 done
4695
4696
4697
4698   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4699 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4700   MINIX=yes
4701 else
4702   MINIX=
4703 fi
4704
4705
4706   if test "$MINIX" = yes; then
4707
4708 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4709
4710
4711 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4712
4713
4714 $as_echo "#define _MINIX 1" >>confdefs.h
4715
4716   fi
4717
4718
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4720 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4721 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4722   $as_echo_n "(cached) " >&6
4723 else
4724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h.  */
4726
4727 #         define __EXTENSIONS__ 1
4728           $ac_includes_default
4729 int
4730 main ()
4731 {
4732
4733   ;
4734   return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738   ac_cv_safe_to_define___extensions__=yes
4739 else
4740   ac_cv_safe_to_define___extensions__=no
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4745 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4746   test $ac_cv_safe_to_define___extensions__ = yes &&
4747     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4748
4749   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4750
4751   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4752
4753   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4754
4755   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4756
4757
4758
4759 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
4760 case $host in
4761   *-*-linux*)
4762     if test -n "$LD_LIBRARY_PATH"; then
4763       saved_LDFLAGS="$LDFLAGS"
4764       LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
4765       LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
4766       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
4767 $as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
4768       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h.  */
4770
4771 int main (void) { return 0; }
4772
4773 _ACEOF
4774 if ac_fn_c_try_link "$LINENO"; then :
4775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
4776 $as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
4777 else
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4780        LDADD_FOR_TESTS_KLUDGE=""
4781
4782 fi
4783 rm -f core conftest.err conftest.$ac_objext \
4784     conftest$ac_exeext conftest.$ac_ext
4785       LDFLAGS="$saved_LDFLAGS"
4786     fi
4787     ;;
4788 esac
4789
4790
4791
4792 case `pwd` in
4793   *\ * | *\     *)
4794     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4795 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4796 esac
4797
4798
4799
4800 macro_version='2.4.2'
4801 macro_revision='1.3337'
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815 ltmain="$ac_aux_dir/ltmain.sh"
4816
4817 # Backslashify metacharacters that are still active within
4818 # double-quoted strings.
4819 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4820
4821 # Same as above, but do not quote variable references.
4822 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4823
4824 # Sed substitution to delay expansion of an escaped shell variable in a
4825 # double_quote_subst'ed string.
4826 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4827
4828 # Sed substitution to delay expansion of an escaped single quote.
4829 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4830
4831 # Sed substitution to avoid accidental globbing in evaled expressions
4832 no_glob_subst='s/\*/\\\*/g'
4833
4834 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4835 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4836 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4837
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4839 $as_echo_n "checking how to print strings... " >&6; }
4840 # Test print first, because it will be a builtin if present.
4841 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4842    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4843   ECHO='print -r --'
4844 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4845   ECHO='printf %s\n'
4846 else
4847   # Use this function as a fallback that always works.
4848   func_fallback_echo ()
4849   {
4850     eval 'cat <<_LTECHO_EOF
4851 $1
4852 _LTECHO_EOF'
4853   }
4854   ECHO='func_fallback_echo'
4855 fi
4856
4857 # func_echo_all arg...
4858 # Invoke $ECHO with all args, space-separated.
4859 func_echo_all ()
4860 {
4861     $ECHO ""
4862 }
4863
4864 case "$ECHO" in
4865   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4866 $as_echo "printf" >&6; } ;;
4867   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4868 $as_echo "print -r" >&6; } ;;
4869   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4870 $as_echo "cat" >&6; } ;;
4871 esac
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4887 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4888 if ${ac_cv_path_SED+:} false; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4892      for ac_i in 1 2 3 4 5 6 7; do
4893        ac_script="$ac_script$as_nl$ac_script"
4894      done
4895      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4896      { ac_script=; unset ac_script;}
4897      if test -z "$SED"; then
4898   ac_path_SED_found=false
4899   # Loop through the user's path and test for each of PROGNAME-LIST
4900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905     for ac_prog in sed gsed; do
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4908       as_fn_executable_p "$ac_path_SED" || continue
4909 # Check for GNU ac_path_SED and select it if it is found.
4910   # Check for GNU $ac_path_SED
4911 case `"$ac_path_SED" --version 2>&1` in
4912 *GNU*)
4913   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4914 *)
4915   ac_count=0
4916   $as_echo_n 0123456789 >"conftest.in"
4917   while :
4918   do
4919     cat "conftest.in" "conftest.in" >"conftest.tmp"
4920     mv "conftest.tmp" "conftest.in"
4921     cp "conftest.in" "conftest.nl"
4922     $as_echo '' >> "conftest.nl"
4923     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925     as_fn_arith $ac_count + 1 && ac_count=$as_val
4926     if test $ac_count -gt ${ac_path_SED_max-0}; then
4927       # Best one so far, save it but keep looking for a better one
4928       ac_cv_path_SED="$ac_path_SED"
4929       ac_path_SED_max=$ac_count
4930     fi
4931     # 10*(2^10) chars as input seems more than enough
4932     test $ac_count -gt 10 && break
4933   done
4934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937       $ac_path_SED_found && break 3
4938     done
4939   done
4940   done
4941 IFS=$as_save_IFS
4942   if test -z "$ac_cv_path_SED"; then
4943     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4944   fi
4945 else
4946   ac_cv_path_SED=$SED
4947 fi
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4951 $as_echo "$ac_cv_path_SED" >&6; }
4952  SED="$ac_cv_path_SED"
4953   rm -f conftest.sed
4954
4955 test -z "$SED" && SED=sed
4956 Xsed="$SED -e 1s/^X//"
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4969 $as_echo_n "checking for fgrep... " >&6; }
4970 if ${ac_cv_path_FGREP+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4974    then ac_cv_path_FGREP="$GREP -F"
4975    else
4976      if test -z "$FGREP"; then
4977   ac_path_FGREP_found=false
4978   # Loop through the user's path and test for each of PROGNAME-LIST
4979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_prog in fgrep; do
4985     for ac_exec_ext in '' $ac_executable_extensions; do
4986       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4987       as_fn_executable_p "$ac_path_FGREP" || continue
4988 # Check for GNU ac_path_FGREP and select it if it is found.
4989   # Check for GNU $ac_path_FGREP
4990 case `"$ac_path_FGREP" --version 2>&1` in
4991 *GNU*)
4992   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4993 *)
4994   ac_count=0
4995   $as_echo_n 0123456789 >"conftest.in"
4996   while :
4997   do
4998     cat "conftest.in" "conftest.in" >"conftest.tmp"
4999     mv "conftest.tmp" "conftest.in"
5000     cp "conftest.in" "conftest.nl"
5001     $as_echo 'FGREP' >> "conftest.nl"
5002     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004     as_fn_arith $ac_count + 1 && ac_count=$as_val
5005     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5006       # Best one so far, save it but keep looking for a better one
5007       ac_cv_path_FGREP="$ac_path_FGREP"
5008       ac_path_FGREP_max=$ac_count
5009     fi
5010     # 10*(2^10) chars as input seems more than enough
5011     test $ac_count -gt 10 && break
5012   done
5013   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014 esac
5015
5016       $ac_path_FGREP_found && break 3
5017     done
5018   done
5019   done
5020 IFS=$as_save_IFS
5021   if test -z "$ac_cv_path_FGREP"; then
5022     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5023   fi
5024 else
5025   ac_cv_path_FGREP=$FGREP
5026 fi
5027
5028    fi
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5031 $as_echo "$ac_cv_path_FGREP" >&6; }
5032  FGREP="$ac_cv_path_FGREP"
5033
5034
5035 test -z "$GREP" && GREP=grep
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055 # Check whether --with-gnu-ld was given.
5056 if test "${with_gnu_ld+set}" = set; then :
5057   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5058 else
5059   with_gnu_ld=no
5060 fi
5061
5062 ac_prog=ld
5063 if test "$GCC" = yes; then
5064   # Check if gcc -print-prog-name=ld gives a path.
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5066 $as_echo_n "checking for ld used by $CC... " >&6; }
5067   case $host in
5068   *-*-mingw*)
5069     # gcc leaves a trailing carriage return which upsets mingw
5070     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5071   *)
5072     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5073   esac
5074   case $ac_prog in
5075     # Accept absolute paths.
5076     [\\/]* | ?:[\\/]*)
5077       re_direlt='/[^/][^/]*/\.\./'
5078       # Canonicalize the pathname of ld
5079       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5080       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5081         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5082       done
5083       test -z "$LD" && LD="$ac_prog"
5084       ;;
5085   "")
5086     # If it fails, then pretend we aren't using GCC.
5087     ac_prog=ld
5088     ;;
5089   *)
5090     # If it is relative, then search for the first ld in PATH.
5091     with_gnu_ld=unknown
5092     ;;
5093   esac
5094 elif test "$with_gnu_ld" = yes; then
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5096 $as_echo_n "checking for GNU ld... " >&6; }
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5099 $as_echo_n "checking for non-GNU ld... " >&6; }
5100 fi
5101 if ${lt_cv_path_LD+:} false; then :
5102   $as_echo_n "(cached) " >&6
5103 else
5104   if test -z "$LD"; then
5105   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5106   for ac_dir in $PATH; do
5107     IFS="$lt_save_ifs"
5108     test -z "$ac_dir" && ac_dir=.
5109     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5110       lt_cv_path_LD="$ac_dir/$ac_prog"
5111       # Check to see if the program is GNU ld.  I'd rather use --version,
5112       # but apparently some variants of GNU ld only accept -v.
5113       # Break only if it was the GNU/non-GNU ld that we prefer.
5114       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5115       *GNU* | *'with BFD'*)
5116         test "$with_gnu_ld" != no && break
5117         ;;
5118       *)
5119         test "$with_gnu_ld" != yes && break
5120         ;;
5121       esac
5122     fi
5123   done
5124   IFS="$lt_save_ifs"
5125 else
5126   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5127 fi
5128 fi
5129
5130 LD="$lt_cv_path_LD"
5131 if test -n "$LD"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5133 $as_echo "$LD" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5140 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5141 if ${lt_cv_prog_gnu_ld+:} false; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5145 case `$LD -v 2>&1 </dev/null` in
5146 *GNU* | *'with BFD'*)
5147   lt_cv_prog_gnu_ld=yes
5148   ;;
5149 *)
5150   lt_cv_prog_gnu_ld=no
5151   ;;
5152 esac
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5155 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5156 with_gnu_ld=$lt_cv_prog_gnu_ld
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5167 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5168 if ${lt_cv_path_NM+:} false; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   if test -n "$NM"; then
5172   # Let the user override the test.
5173   lt_cv_path_NM="$NM"
5174 else
5175   lt_nm_to_check="${ac_tool_prefix}nm"
5176   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5177     lt_nm_to_check="$lt_nm_to_check nm"
5178   fi
5179   for lt_tmp_nm in $lt_nm_to_check; do
5180     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5181     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5182       IFS="$lt_save_ifs"
5183       test -z "$ac_dir" && ac_dir=.
5184       tmp_nm="$ac_dir/$lt_tmp_nm"
5185       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5186         # Check to see if the nm accepts a BSD-compat flag.
5187         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5188         #   nm: unknown option "B" ignored
5189         # Tru64's nm complains that /dev/null is an invalid object file
5190         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5191         */dev/null* | *'Invalid file or object type'*)
5192           lt_cv_path_NM="$tmp_nm -B"
5193           break
5194           ;;
5195         *)
5196           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5197           */dev/null*)
5198             lt_cv_path_NM="$tmp_nm -p"
5199             break
5200             ;;
5201           *)
5202             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5203             continue # so that we can try to find one that supports BSD flags
5204             ;;
5205           esac
5206           ;;
5207         esac
5208       fi
5209     done
5210     IFS="$lt_save_ifs"
5211   done
5212   : ${lt_cv_path_NM=no}
5213 fi
5214 fi
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5216 $as_echo "$lt_cv_path_NM" >&6; }
5217 if test "$lt_cv_path_NM" != "no"; then
5218   NM="$lt_cv_path_NM"
5219 else
5220   # Didn't find any BSD compatible name lister, look for dumpbin.
5221   if test -n "$DUMPBIN"; then :
5222     # Let the user override the test.
5223   else
5224     if test -n "$ac_tool_prefix"; then
5225   for ac_prog in dumpbin "link -dump"
5226   do
5227     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_DUMPBIN+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   if test -n "$DUMPBIN"; then
5235   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242     for ac_exec_ext in '' $ac_executable_extensions; do
5243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246     break 2
5247   fi
5248 done
5249   done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 DUMPBIN=$ac_cv_prog_DUMPBIN
5255 if test -n "$DUMPBIN"; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5257 $as_echo "$DUMPBIN" >&6; }
5258 else
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263
5264     test -n "$DUMPBIN" && break
5265   done
5266 fi
5267 if test -z "$DUMPBIN"; then
5268   ac_ct_DUMPBIN=$DUMPBIN
5269   for ac_prog in dumpbin "link -dump"
5270 do
5271   # Extract the first word of "$ac_prog", so it can be a program name with args.
5272 set dummy $ac_prog; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5276   $as_echo_n "(cached) " >&6
5277 else
5278   if test -n "$ac_ct_DUMPBIN"; then
5279   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286     for ac_exec_ext in '' $ac_executable_extensions; do
5287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291   fi
5292 done
5293   done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5299 if test -n "$ac_ct_DUMPBIN"; then
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5301 $as_echo "$ac_ct_DUMPBIN" >&6; }
5302 else
5303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305 fi
5306
5307
5308   test -n "$ac_ct_DUMPBIN" && break
5309 done
5310
5311   if test "x$ac_ct_DUMPBIN" = x; then
5312     DUMPBIN=":"
5313   else
5314     case $cross_compiling:$ac_tool_warned in
5315 yes:)
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5318 ac_tool_warned=yes ;;
5319 esac
5320     DUMPBIN=$ac_ct_DUMPBIN
5321   fi
5322 fi
5323
5324     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5325     *COFF*)
5326       DUMPBIN="$DUMPBIN -symbols"
5327       ;;
5328     *)
5329       DUMPBIN=:
5330       ;;
5331     esac
5332   fi
5333
5334   if test "$DUMPBIN" != ":"; then
5335     NM="$DUMPBIN"
5336   fi
5337 fi
5338 test -z "$NM" && NM=nm
5339
5340
5341
5342
5343
5344
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5346 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5347 if ${lt_cv_nm_interface+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   lt_cv_nm_interface="BSD nm"
5351   echo "int some_variable = 0;" > conftest.$ac_ext
5352   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5353   (eval "$ac_compile" 2>conftest.err)
5354   cat conftest.err >&5
5355   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5356   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5357   cat conftest.err >&5
5358   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5359   cat conftest.out >&5
5360   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5361     lt_cv_nm_interface="MS dumpbin"
5362   fi
5363   rm -f conftest*
5364 fi
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5366 $as_echo "$lt_cv_nm_interface" >&6; }
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5369 $as_echo_n "checking whether ln -s works... " >&6; }
5370 LN_S=$as_ln_s
5371 if test "$LN_S" = "ln -s"; then
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 $as_echo "yes" >&6; }
5374 else
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5376 $as_echo "no, using $LN_S" >&6; }
5377 fi
5378
5379 # find the maximum length of command line arguments
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5381 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5382 if ${lt_cv_sys_max_cmd_len+:} false; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385     i=0
5386   teststring="ABCD"
5387
5388   case $build_os in
5389   msdosdjgpp*)
5390     # On DJGPP, this test can blow up pretty badly due to problems in libc
5391     # (any single argument exceeding 2000 bytes causes a buffer overrun
5392     # during glob expansion).  Even if it were fixed, the result of this
5393     # check would be larger than it should be.
5394     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5395     ;;
5396
5397   gnu*)
5398     # Under GNU Hurd, this test is not required because there is
5399     # no limit to the length of command line arguments.
5400     # Libtool will interpret -1 as no limit whatsoever
5401     lt_cv_sys_max_cmd_len=-1;
5402     ;;
5403
5404   cygwin* | mingw* | cegcc*)
5405     # On Win9x/ME, this test blows up -- it succeeds, but takes
5406     # about 5 minutes as the teststring grows exponentially.
5407     # Worse, since 9x/ME are not pre-emptively multitasking,
5408     # you end up with a "frozen" computer, even though with patience
5409     # the test eventually succeeds (with a max line length of 256k).
5410     # Instead, let's just punt: use the minimum linelength reported by
5411     # all of the supported platforms: 8192 (on NT/2K/XP).
5412     lt_cv_sys_max_cmd_len=8192;
5413     ;;
5414
5415   mint*)
5416     # On MiNT this can take a long time and run out of memory.
5417     lt_cv_sys_max_cmd_len=8192;
5418     ;;
5419
5420   amigaos*)
5421     # On AmigaOS with pdksh, this test takes hours, literally.
5422     # So we just punt and use a minimum line length of 8192.
5423     lt_cv_sys_max_cmd_len=8192;
5424     ;;
5425
5426   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5427     # This has been around since 386BSD, at least.  Likely further.
5428     if test -x /sbin/sysctl; then
5429       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5430     elif test -x /usr/sbin/sysctl; then
5431       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5432     else
5433       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5434     fi
5435     # And add a safety zone
5436     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5437     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5438     ;;
5439
5440   interix*)
5441     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5442     lt_cv_sys_max_cmd_len=196608
5443     ;;
5444
5445   os2*)
5446     # The test takes a long time on OS/2.
5447     lt_cv_sys_max_cmd_len=8192
5448     ;;
5449
5450   osf*)
5451     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5452     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5453     # nice to cause kernel panics so lets avoid the loop below.
5454     # First set a reasonable default.
5455     lt_cv_sys_max_cmd_len=16384
5456     #
5457     if test -x /sbin/sysconfig; then
5458       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5459         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5460       esac
5461     fi
5462     ;;
5463   sco3.2v5*)
5464     lt_cv_sys_max_cmd_len=102400
5465     ;;
5466   sysv5* | sco5v6* | sysv4.2uw2*)
5467     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5468     if test -n "$kargmax"; then
5469       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5470     else
5471       lt_cv_sys_max_cmd_len=32768
5472     fi
5473     ;;
5474   *)
5475     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5476     if test -n "$lt_cv_sys_max_cmd_len"; then
5477       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5478       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5479     else
5480       # Make teststring a little bigger before we do anything with it.
5481       # a 1K string should be a reasonable start.
5482       for i in 1 2 3 4 5 6 7 8 ; do
5483         teststring=$teststring$teststring
5484       done
5485       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5486       # If test is not a shell built-in, we'll probably end up computing a
5487       # maximum length that is only half of the actual maximum length, but
5488       # we can't tell.
5489       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5490                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5491               test $i != 17 # 1/2 MB should be enough
5492       do
5493         i=`expr $i + 1`
5494         teststring=$teststring$teststring
5495       done
5496       # Only check the string length outside the loop.
5497       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5498       teststring=
5499       # Add a significant safety factor because C++ compilers can tack on
5500       # massive amounts of additional arguments before passing them to the
5501       # linker.  It appears as though 1/2 is a usable value.
5502       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5503     fi
5504     ;;
5505   esac
5506
5507 fi
5508
5509 if test -n $lt_cv_sys_max_cmd_len ; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5511 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5512 else
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5514 $as_echo "none" >&6; }
5515 fi
5516 max_cmd_len=$lt_cv_sys_max_cmd_len
5517
5518
5519
5520
5521
5522
5523 : ${CP="cp -f"}
5524 : ${MV="mv -f"}
5525 : ${RM="rm -f"}
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5528 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5529 # Try some XSI features
5530 xsi_shell=no
5531 ( _lt_dummy="a/b/c"
5532   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5533       = c,a/b,b/c, \
5534     && eval 'test $(( 1 + 1 )) -eq 2 \
5535     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5536   && xsi_shell=yes
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5538 $as_echo "$xsi_shell" >&6; }
5539
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5542 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5543 lt_shell_append=no
5544 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5545     >/dev/null 2>&1 \
5546   && lt_shell_append=yes
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5548 $as_echo "$lt_shell_append" >&6; }
5549
5550
5551 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5552   lt_unset=unset
5553 else
5554   lt_unset=false
5555 fi
5556
5557
5558
5559
5560
5561 # test EBCDIC or ASCII
5562 case `echo X|tr X '\101'` in
5563  A) # ASCII based system
5564     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5565   lt_SP2NL='tr \040 \012'
5566   lt_NL2SP='tr \015\012 \040\040'
5567   ;;
5568  *) # EBCDIC based system
5569   lt_SP2NL='tr \100 \n'
5570   lt_NL2SP='tr \r\n \100\100'
5571   ;;
5572 esac
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5583 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5584 if ${lt_cv_to_host_file_cmd+:} false; then :
5585   $as_echo_n "(cached) " >&6
5586 else
5587   case $host in
5588   *-*-mingw* )
5589     case $build in
5590       *-*-mingw* ) # actually msys
5591         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5592         ;;
5593       *-*-cygwin* )
5594         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5595         ;;
5596       * ) # otherwise, assume *nix
5597         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5598         ;;
5599     esac
5600     ;;
5601   *-*-cygwin* )
5602     case $build in
5603       *-*-mingw* ) # actually msys
5604         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5605         ;;
5606       *-*-cygwin* )
5607         lt_cv_to_host_file_cmd=func_convert_file_noop
5608         ;;
5609       * ) # otherwise, assume *nix
5610         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5611         ;;
5612     esac
5613     ;;
5614   * ) # unhandled hosts (and "normal" native builds)
5615     lt_cv_to_host_file_cmd=func_convert_file_noop
5616     ;;
5617 esac
5618
5619 fi
5620
5621 to_host_file_cmd=$lt_cv_to_host_file_cmd
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5623 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5624
5625
5626
5627
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5630 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5631 if ${lt_cv_to_tool_file_cmd+:} false; then :
5632   $as_echo_n "(cached) " >&6
5633 else
5634   #assume ordinary cross tools, or native build.
5635 lt_cv_to_tool_file_cmd=func_convert_file_noop
5636 case $host in
5637   *-*-mingw* )
5638     case $build in
5639       *-*-mingw* ) # actually msys
5640         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5641         ;;
5642     esac
5643     ;;
5644 esac
5645
5646 fi
5647
5648 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5650 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5651
5652
5653
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5657 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5658 if ${lt_cv_ld_reload_flag+:} false; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   lt_cv_ld_reload_flag='-r'
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5664 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5665 reload_flag=$lt_cv_ld_reload_flag
5666 case $reload_flag in
5667 "" | " "*) ;;
5668 *) reload_flag=" $reload_flag" ;;
5669 esac
5670 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5671 case $host_os in
5672   cygwin* | mingw* | pw32* | cegcc*)
5673     if test "$GCC" != yes; then
5674       reload_cmds=false
5675     fi
5676     ;;
5677   darwin*)
5678     if test "$GCC" = yes; then
5679       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5680     else
5681       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5682     fi
5683     ;;
5684 esac
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 if test -n "$ac_tool_prefix"; then
5695   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5696 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_OBJDUMP+:} false; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   if test -n "$OBJDUMP"; then
5703   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708   IFS=$as_save_IFS
5709   test -z "$as_dir" && as_dir=.
5710     for ac_exec_ext in '' $ac_executable_extensions; do
5711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714     break 2
5715   fi
5716 done
5717   done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 OBJDUMP=$ac_cv_prog_OBJDUMP
5723 if test -n "$OBJDUMP"; then
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5725 $as_echo "$OBJDUMP" >&6; }
5726 else
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732 fi
5733 if test -z "$ac_cv_prog_OBJDUMP"; then
5734   ac_ct_OBJDUMP=$OBJDUMP
5735   # Extract the first word of "objdump", so it can be a program name with args.
5736 set dummy objdump; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5740   $as_echo_n "(cached) " >&6
5741 else
5742   if test -n "$ac_ct_OBJDUMP"; then
5743   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748   IFS=$as_save_IFS
5749   test -z "$as_dir" && as_dir=.
5750     for ac_exec_ext in '' $ac_executable_extensions; do
5751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754     break 2
5755   fi
5756 done
5757   done
5758 IFS=$as_save_IFS
5759
5760 fi
5761 fi
5762 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5763 if test -n "$ac_ct_OBJDUMP"; then
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5765 $as_echo "$ac_ct_OBJDUMP" >&6; }
5766 else
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770
5771   if test "x$ac_ct_OBJDUMP" = x; then
5772     OBJDUMP="false"
5773   else
5774     case $cross_compiling:$ac_tool_warned in
5775 yes:)
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778 ac_tool_warned=yes ;;
5779 esac
5780     OBJDUMP=$ac_ct_OBJDUMP
5781   fi
5782 else
5783   OBJDUMP="$ac_cv_prog_OBJDUMP"
5784 fi
5785
5786 test -z "$OBJDUMP" && OBJDUMP=objdump
5787
5788
5789
5790
5791
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5794 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5795 if ${lt_cv_deplibs_check_method+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   lt_cv_file_magic_cmd='$MAGIC_CMD'
5799 lt_cv_file_magic_test_file=
5800 lt_cv_deplibs_check_method='unknown'
5801 # Need to set the preceding variable on all platforms that support
5802 # interlibrary dependencies.
5803 # 'none' -- dependencies not supported.
5804 # `unknown' -- same as none, but documents that we really don't know.
5805 # 'pass_all' -- all dependencies passed with no checks.
5806 # 'test_compile' -- check by making test program.
5807 # 'file_magic [[regex]]' -- check by looking for files in library path
5808 # which responds to the $file_magic_cmd with a given extended regex.
5809 # If you have `file' or equivalent on your system and you're not sure
5810 # whether `pass_all' will *always* work, you probably want this one.
5811
5812 case $host_os in
5813 aix[4-9]*)
5814   lt_cv_deplibs_check_method=pass_all
5815   ;;
5816
5817 beos*)
5818   lt_cv_deplibs_check_method=pass_all
5819   ;;
5820
5821 bsdi[45]*)
5822   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5823   lt_cv_file_magic_cmd='/usr/bin/file -L'
5824   lt_cv_file_magic_test_file=/shlib/libc.so
5825   ;;
5826
5827 cygwin*)
5828   # func_win32_libid is a shell function defined in ltmain.sh
5829   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5830   lt_cv_file_magic_cmd='func_win32_libid'
5831   ;;
5832
5833 mingw* | pw32*)
5834   # Base MSYS/MinGW do not provide the 'file' command needed by
5835   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5836   # unless we find 'file', for example because we are cross-compiling.
5837   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5838   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5839     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5840     lt_cv_file_magic_cmd='func_win32_libid'
5841   else
5842     # Keep this pattern in sync with the one in func_win32_libid.
5843     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5844     lt_cv_file_magic_cmd='$OBJDUMP -f'
5845   fi
5846   ;;
5847
5848 cegcc*)
5849   # use the weaker test based on 'objdump'. See mingw*.
5850   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5851   lt_cv_file_magic_cmd='$OBJDUMP -f'
5852   ;;
5853
5854 darwin* | rhapsody*)
5855   lt_cv_deplibs_check_method=pass_all
5856   ;;
5857
5858 freebsd* | dragonfly*)
5859   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5860     case $host_cpu in
5861     i*86 )
5862       # Not sure whether the presence of OpenBSD here was a mistake.
5863       # Let's accept both of them until this is cleared up.
5864       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5865       lt_cv_file_magic_cmd=/usr/bin/file
5866       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5867       ;;
5868     esac
5869   else
5870     lt_cv_deplibs_check_method=pass_all
5871   fi
5872   ;;
5873
5874 gnu*)
5875   lt_cv_deplibs_check_method=pass_all
5876   ;;
5877
5878 haiku*)
5879   lt_cv_deplibs_check_method=pass_all
5880   ;;
5881
5882 hpux10.20* | hpux11*)
5883   lt_cv_file_magic_cmd=/usr/bin/file
5884   case $host_cpu in
5885   ia64*)
5886     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5887     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5888     ;;
5889   hppa*64*)
5890     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]'
5891     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5892     ;;
5893   *)
5894     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5895     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5896     ;;
5897   esac
5898   ;;
5899
5900 interix[3-9]*)
5901   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5902   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5903   ;;
5904
5905 irix5* | irix6* | nonstopux*)
5906   case $LD in
5907   *-32|*"-32 ") libmagic=32-bit;;
5908   *-n32|*"-n32 ") libmagic=N32;;
5909   *-64|*"-64 ") libmagic=64-bit;;
5910   *) libmagic=never-match;;
5911   esac
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5914
5915 # This must be glibc/ELF.
5916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5917   lt_cv_deplibs_check_method=pass_all
5918   ;;
5919
5920 netbsd* | netbsdelf*-gnu)
5921   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5922     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5923   else
5924     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5925   fi
5926   ;;
5927
5928 newos6*)
5929   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5930   lt_cv_file_magic_cmd=/usr/bin/file
5931   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5932   ;;
5933
5934 *nto* | *qnx*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 openbsd*)
5939   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5940     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5941   else
5942     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5943   fi
5944   ;;
5945
5946 osf3* | osf4* | osf5*)
5947   lt_cv_deplibs_check_method=pass_all
5948   ;;
5949
5950 rdos*)
5951   lt_cv_deplibs_check_method=pass_all
5952   ;;
5953
5954 solaris*)
5955   lt_cv_deplibs_check_method=pass_all
5956   ;;
5957
5958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5959   lt_cv_deplibs_check_method=pass_all
5960   ;;
5961
5962 sysv4 | sysv4.3*)
5963   case $host_vendor in
5964   motorola)
5965     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]'
5966     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5967     ;;
5968   ncr)
5969     lt_cv_deplibs_check_method=pass_all
5970     ;;
5971   sequent)
5972     lt_cv_file_magic_cmd='/bin/file'
5973     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5974     ;;
5975   sni)
5976     lt_cv_file_magic_cmd='/bin/file'
5977     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5978     lt_cv_file_magic_test_file=/lib/libc.so
5979     ;;
5980   siemens)
5981     lt_cv_deplibs_check_method=pass_all
5982     ;;
5983   pc)
5984     lt_cv_deplibs_check_method=pass_all
5985     ;;
5986   esac
5987   ;;
5988
5989 tpf*)
5990   lt_cv_deplibs_check_method=pass_all
5991   ;;
5992 esac
5993
5994 fi
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5996 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5997
5998 file_magic_glob=
5999 want_nocaseglob=no
6000 if test "$build" = "$host"; then
6001   case $host_os in
6002   mingw* | pw32*)
6003     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6004       want_nocaseglob=yes
6005     else
6006       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6007     fi
6008     ;;
6009   esac
6010 fi
6011
6012 file_magic_cmd=$lt_cv_file_magic_cmd
6013 deplibs_check_method=$lt_cv_deplibs_check_method
6014 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 if test -n "$ac_tool_prefix"; then
6038   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_DLLTOOL+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   if test -n "$DLLTOOL"; then
6046   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053     for ac_exec_ext in '' $ac_executable_extensions; do
6054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060   done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 DLLTOOL=$ac_cv_prog_DLLTOOL
6066 if test -n "$DLLTOOL"; then
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6068 $as_echo "$DLLTOOL" >&6; }
6069 else
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074
6075 fi
6076 if test -z "$ac_cv_prog_DLLTOOL"; then
6077   ac_ct_DLLTOOL=$DLLTOOL
6078   # Extract the first word of "dlltool", so it can be a program name with args.
6079 set dummy dlltool; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   if test -n "$ac_ct_DLLTOOL"; then
6086   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100   done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6106 if test -n "$ac_ct_DLLTOOL"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6108 $as_echo "$ac_ct_DLLTOOL" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114   if test "x$ac_ct_DLLTOOL" = x; then
6115     DLLTOOL="false"
6116   else
6117     case $cross_compiling:$ac_tool_warned in
6118 yes:)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121 ac_tool_warned=yes ;;
6122 esac
6123     DLLTOOL=$ac_ct_DLLTOOL
6124   fi
6125 else
6126   DLLTOOL="$ac_cv_prog_DLLTOOL"
6127 fi
6128
6129 test -z "$DLLTOOL" && DLLTOOL=dlltool
6130
6131
6132
6133
6134
6135
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6138 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6139 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   lt_cv_sharedlib_from_linklib_cmd='unknown'
6143
6144 case $host_os in
6145 cygwin* | mingw* | pw32* | cegcc*)
6146   # two different shell functions defined in ltmain.sh
6147   # decide which to use based on capabilities of $DLLTOOL
6148   case `$DLLTOOL --help 2>&1` in
6149   *--identify-strict*)
6150     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6151     ;;
6152   *)
6153     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6154     ;;
6155   esac
6156   ;;
6157 *)
6158   # fallback: assume linklib IS sharedlib
6159   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6160   ;;
6161 esac
6162
6163 fi
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6165 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6166 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6167 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6168
6169
6170
6171
6172
6173
6174
6175 if test -n "$ac_tool_prefix"; then
6176   for ac_prog in ar
6177   do
6178     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_AR+:} false; then :
6183   $as_echo_n "(cached) " >&6
6184 else
6185   if test -n "$AR"; then
6186   ac_cv_prog_AR="$AR" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191   IFS=$as_save_IFS
6192   test -z "$as_dir" && as_dir=.
6193     for ac_exec_ext in '' $ac_executable_extensions; do
6194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197     break 2
6198   fi
6199 done
6200   done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 AR=$ac_cv_prog_AR
6206 if test -n "$AR"; then
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6208 $as_echo "$AR" >&6; }
6209 else
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214
6215     test -n "$AR" && break
6216   done
6217 fi
6218 if test -z "$AR"; then
6219   ac_ct_AR=$AR
6220   for ac_prog in ar
6221 do
6222   # Extract the first word of "$ac_prog", so it can be a program name with args.
6223 set dummy $ac_prog; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   if test -n "$ac_ct_AR"; then
6230   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237     for ac_exec_ext in '' $ac_executable_extensions; do
6238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239     ac_cv_prog_ac_ct_AR="$ac_prog"
6240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244   done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250 if test -n "$ac_ct_AR"; then
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6252 $as_echo "$ac_ct_AR" >&6; }
6253 else
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258
6259   test -n "$ac_ct_AR" && break
6260 done
6261
6262   if test "x$ac_ct_AR" = x; then
6263     AR="false"
6264   else
6265     case $cross_compiling:$ac_tool_warned in
6266 yes:)
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned=yes ;;
6270 esac
6271     AR=$ac_ct_AR
6272   fi
6273 fi
6274
6275 : ${AR=ar}
6276 : ${AR_FLAGS=cru}
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6289 $as_echo_n "checking for archiver @FILE support... " >&6; }
6290 if ${lt_cv_ar_at_file+:} false; then :
6291   $as_echo_n "(cached) " >&6
6292 else
6293   lt_cv_ar_at_file=no
6294    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h.  */
6296
6297 int
6298 main ()
6299 {
6300
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 if ac_fn_c_try_compile "$LINENO"; then :
6306   echo conftest.$ac_objext > conftest.lst
6307       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6308       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6309   (eval $lt_ar_try) 2>&5
6310   ac_status=$?
6311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312   test $ac_status = 0; }
6313       if test "$ac_status" -eq 0; then
6314         # Ensure the archiver fails upon bogus file names.
6315         rm -f conftest.$ac_objext libconftest.a
6316         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6317   (eval $lt_ar_try) 2>&5
6318   ac_status=$?
6319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320   test $ac_status = 0; }
6321         if test "$ac_status" -ne 0; then
6322           lt_cv_ar_at_file=@
6323         fi
6324       fi
6325       rm -f conftest.* libconftest.a
6326
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330 fi
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6332 $as_echo "$lt_cv_ar_at_file" >&6; }
6333
6334 if test "x$lt_cv_ar_at_file" = xno; then
6335   archiver_list_spec=
6336 else
6337   archiver_list_spec=$lt_cv_ar_at_file
6338 fi
6339
6340
6341
6342
6343
6344
6345
6346 if test -n "$ac_tool_prefix"; then
6347   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}strip; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_STRIP+:} false; then :
6352   $as_echo_n "(cached) " >&6
6353 else
6354   if test -n "$STRIP"; then
6355   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360   IFS=$as_save_IFS
6361   test -z "$as_dir" && as_dir=.
6362     for ac_exec_ext in '' $ac_executable_extensions; do
6363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366     break 2
6367   fi
6368 done
6369   done
6370 IFS=$as_save_IFS
6371
6372 fi
6373 fi
6374 STRIP=$ac_cv_prog_STRIP
6375 if test -n "$STRIP"; then
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6377 $as_echo "$STRIP" >&6; }
6378 else
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6381 fi
6382
6383
6384 fi
6385 if test -z "$ac_cv_prog_STRIP"; then
6386   ac_ct_STRIP=$STRIP
6387   # Extract the first word of "strip", so it can be a program name with args.
6388 set dummy strip; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6392   $as_echo_n "(cached) " >&6
6393 else
6394   if test -n "$ac_ct_STRIP"; then
6395   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402     for ac_exec_ext in '' $ac_executable_extensions; do
6403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404     ac_cv_prog_ac_ct_STRIP="strip"
6405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409   done
6410 IFS=$as_save_IFS
6411
6412 fi
6413 fi
6414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6415 if test -n "$ac_ct_STRIP"; then
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6417 $as_echo "$ac_ct_STRIP" >&6; }
6418 else
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422
6423   if test "x$ac_ct_STRIP" = x; then
6424     STRIP=":"
6425   else
6426     case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432     STRIP=$ac_ct_STRIP
6433   fi
6434 else
6435   STRIP="$ac_cv_prog_STRIP"
6436 fi
6437
6438 test -z "$STRIP" && STRIP=:
6439
6440
6441
6442
6443
6444
6445 if test -n "$ac_tool_prefix"; then
6446   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_RANLIB+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   if test -n "$RANLIB"; then
6454   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461     for ac_exec_ext in '' $ac_executable_extensions; do
6462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468   done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 RANLIB=$ac_cv_prog_RANLIB
6474 if test -n "$RANLIB"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6476 $as_echo "$RANLIB" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482
6483 fi
6484 if test -z "$ac_cv_prog_RANLIB"; then
6485   ac_ct_RANLIB=$RANLIB
6486   # Extract the first word of "ranlib", so it can be a program name with args.
6487 set dummy ranlib; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   if test -n "$ac_ct_RANLIB"; then
6494   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503     ac_cv_prog_ac_ct_RANLIB="ranlib"
6504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508   done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6514 if test -n "$ac_ct_RANLIB"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6516 $as_echo "$ac_ct_RANLIB" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522   if test "x$ac_ct_RANLIB" = x; then
6523     RANLIB=":"
6524   else
6525     case $cross_compiling:$ac_tool_warned in
6526 yes:)
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6530 esac
6531     RANLIB=$ac_ct_RANLIB
6532   fi
6533 else
6534   RANLIB="$ac_cv_prog_RANLIB"
6535 fi
6536
6537 test -z "$RANLIB" && RANLIB=:
6538
6539
6540
6541
6542
6543
6544 # Determine commands to create old-style static archives.
6545 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6546 old_postinstall_cmds='chmod 644 $oldlib'
6547 old_postuninstall_cmds=
6548
6549 if test -n "$RANLIB"; then
6550   case $host_os in
6551   openbsd*)
6552     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6553     ;;
6554   *)
6555     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6556     ;;
6557   esac
6558   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6559 fi
6560
6561 case $host_os in
6562   darwin*)
6563     lock_old_archive_extraction=yes ;;
6564   *)
6565     lock_old_archive_extraction=no ;;
6566 esac
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606 # If no C compiler was specified, use CC.
6607 LTCC=${LTCC-"$CC"}
6608
6609 # If no C compiler flags were specified, use CFLAGS.
6610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6611
6612 # Allow CC to be a program name with arguments.
6613 compiler=$CC
6614
6615
6616 # Check for command to grab the raw symbol name followed by C symbol from nm.
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6618 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6619 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622
6623 # These are sane defaults that work on at least a few old systems.
6624 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6625
6626 # Character class describing NM global symbol codes.
6627 symcode='[BCDEGRST]'
6628
6629 # Regexp to match symbols that can be accessed directly from C.
6630 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6631
6632 # Define system-specific variables.
6633 case $host_os in
6634 aix*)
6635   symcode='[BCDT]'
6636   ;;
6637 cygwin* | mingw* | pw32* | cegcc*)
6638   symcode='[ABCDGISTW]'
6639   ;;
6640 hpux*)
6641   if test "$host_cpu" = ia64; then
6642     symcode='[ABCDEGRST]'
6643   fi
6644   ;;
6645 irix* | nonstopux*)
6646   symcode='[BCDEGRST]'
6647   ;;
6648 osf*)
6649   symcode='[BCDEGQRST]'
6650   ;;
6651 solaris*)
6652   symcode='[BDRT]'
6653   ;;
6654 sco3.2v5*)
6655   symcode='[DT]'
6656   ;;
6657 sysv4.2uw2*)
6658   symcode='[DT]'
6659   ;;
6660 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6661   symcode='[ABDT]'
6662   ;;
6663 sysv4)
6664   symcode='[DFNSTU]'
6665   ;;
6666 esac
6667
6668 # If we're using GNU nm, then use its standard symbol codes.
6669 case `$NM -V 2>&1` in
6670 *GNU* | *'with BFD'*)
6671   symcode='[ABCDGIRSTW]' ;;
6672 esac
6673
6674 # Transform an extracted symbol line into a proper C declaration.
6675 # Some systems (esp. on ia64) link data and code symbols differently,
6676 # so use this general approach.
6677 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6678
6679 # Transform an extracted symbol line into symbol name and symbol address
6680 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6681 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'"
6682
6683 # Handle CRLF in mingw tool chain
6684 opt_cr=
6685 case $build_os in
6686 mingw*)
6687   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6688   ;;
6689 esac
6690
6691 # Try without a prefix underscore, then with it.
6692 for ac_symprfx in "" "_"; do
6693
6694   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6695   symxfrm="\\1 $ac_symprfx\\2 \\2"
6696
6697   # Write the raw and C identifiers.
6698   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6699     # Fake it for dumpbin and say T for any non-static function
6700     # and D for any global variable.
6701     # Also find C++ and __fastcall symbols from MSVC++,
6702     # which start with @ or ?.
6703     lt_cv_sys_global_symbol_pipe="$AWK '"\
6704 "     {last_section=section; section=\$ 3};"\
6705 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6706 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6707 "     \$ 0!~/External *\|/{next};"\
6708 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6709 "     {if(hide[section]) next};"\
6710 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6711 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6712 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6713 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6714 "     ' prfx=^$ac_symprfx"
6715   else
6716     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6717   fi
6718   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6719
6720   # Check to see that the pipe works correctly.
6721   pipe_works=no
6722
6723   rm -f conftest*
6724   cat > conftest.$ac_ext <<_LT_EOF
6725 #ifdef __cplusplus
6726 extern "C" {
6727 #endif
6728 char nm_test_var;
6729 void nm_test_func(void);
6730 void nm_test_func(void){}
6731 #ifdef __cplusplus
6732 }
6733 #endif
6734 int main(){nm_test_var='a';nm_test_func();return(0);}
6735 _LT_EOF
6736
6737   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6738   (eval $ac_compile) 2>&5
6739   ac_status=$?
6740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741   test $ac_status = 0; }; then
6742     # Now try to grab the symbols.
6743     nlist=conftest.nm
6744     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6745   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6746   ac_status=$?
6747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748   test $ac_status = 0; } && test -s "$nlist"; then
6749       # Try sorting and uniquifying the output.
6750       if sort "$nlist" | uniq > "$nlist"T; then
6751         mv -f "$nlist"T "$nlist"
6752       else
6753         rm -f "$nlist"T
6754       fi
6755
6756       # Make sure that we snagged all the symbols we need.
6757       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6758         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6759           cat <<_LT_EOF > conftest.$ac_ext
6760 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6761 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6762 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6763    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6764 # define LT_DLSYM_CONST
6765 #elif defined(__osf__)
6766 /* This system does not cope well with relocations in const data.  */
6767 # define LT_DLSYM_CONST
6768 #else
6769 # define LT_DLSYM_CONST const
6770 #endif
6771
6772 #ifdef __cplusplus
6773 extern "C" {
6774 #endif
6775
6776 _LT_EOF
6777           # Now generate the symbol file.
6778           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6779
6780           cat <<_LT_EOF >> conftest.$ac_ext
6781
6782 /* The mapping between symbol names and symbols.  */
6783 LT_DLSYM_CONST struct {
6784   const char *name;
6785   void       *address;
6786 }
6787 lt__PROGRAM__LTX_preloaded_symbols[] =
6788 {
6789   { "@PROGRAM@", (void *) 0 },
6790 _LT_EOF
6791           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6792           cat <<\_LT_EOF >> conftest.$ac_ext
6793   {0, (void *) 0}
6794 };
6795
6796 /* This works around a problem in FreeBSD linker */
6797 #ifdef FREEBSD_WORKAROUND
6798 static const void *lt_preloaded_setup() {
6799   return lt__PROGRAM__LTX_preloaded_symbols;
6800 }
6801 #endif
6802
6803 #ifdef __cplusplus
6804 }
6805 #endif
6806 _LT_EOF
6807           # Now try linking the two files.
6808           mv conftest.$ac_objext conftstm.$ac_objext
6809           lt_globsym_save_LIBS=$LIBS
6810           lt_globsym_save_CFLAGS=$CFLAGS
6811           LIBS="conftstm.$ac_objext"
6812           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6813           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6814   (eval $ac_link) 2>&5
6815   ac_status=$?
6816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6818             pipe_works=yes
6819           fi
6820           LIBS=$lt_globsym_save_LIBS
6821           CFLAGS=$lt_globsym_save_CFLAGS
6822         else
6823           echo "cannot find nm_test_func in $nlist" >&5
6824         fi
6825       else
6826         echo "cannot find nm_test_var in $nlist" >&5
6827       fi
6828     else
6829       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6830     fi
6831   else
6832     echo "$progname: failed program was:" >&5
6833     cat conftest.$ac_ext >&5
6834   fi
6835   rm -rf conftest* conftst*
6836
6837   # Do not use the global_symbol_pipe unless it works.
6838   if test "$pipe_works" = yes; then
6839     break
6840   else
6841     lt_cv_sys_global_symbol_pipe=
6842   fi
6843 done
6844
6845 fi
6846
6847 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6848   lt_cv_sys_global_symbol_to_cdecl=
6849 fi
6850 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6852 $as_echo "failed" >&6; }
6853 else
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6855 $as_echo "ok" >&6; }
6856 fi
6857
6858 # Response file support.
6859 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6860   nm_file_list_spec='@'
6861 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6862   nm_file_list_spec='@'
6863 fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6892 $as_echo_n "checking for sysroot... " >&6; }
6893
6894 # Check whether --with-sysroot was given.
6895 if test "${with_sysroot+set}" = set; then :
6896   withval=$with_sysroot;
6897 else
6898   with_sysroot=no
6899 fi
6900
6901
6902 lt_sysroot=
6903 case ${with_sysroot} in #(
6904  yes)
6905    if test "$GCC" = yes; then
6906      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6907    fi
6908    ;; #(
6909  /*)
6910    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6911    ;; #(
6912  no|'')
6913    ;; #(
6914  *)
6915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6916 $as_echo "${with_sysroot}" >&6; }
6917    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6918    ;;
6919 esac
6920
6921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6922 $as_echo "${lt_sysroot:-no}" >&6; }
6923
6924
6925
6926
6927
6928 # Check whether --enable-libtool-lock was given.
6929 if test "${enable_libtool_lock+set}" = set; then :
6930   enableval=$enable_libtool_lock;
6931 fi
6932
6933 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6934
6935 # Some flags need to be propagated to the compiler or linker for good
6936 # libtool support.
6937 case $host in
6938 ia64-*-hpux*)
6939   # Find out which ABI we are using.
6940   echo 'int i;' > conftest.$ac_ext
6941   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942   (eval $ac_compile) 2>&5
6943   ac_status=$?
6944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945   test $ac_status = 0; }; then
6946     case `/usr/bin/file conftest.$ac_objext` in
6947       *ELF-32*)
6948         HPUX_IA64_MODE="32"
6949         ;;
6950       *ELF-64*)
6951         HPUX_IA64_MODE="64"
6952         ;;
6953     esac
6954   fi
6955   rm -rf conftest*
6956   ;;
6957 *-*-irix6*)
6958   # Find out which ABI we are using.
6959   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6960   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961   (eval $ac_compile) 2>&5
6962   ac_status=$?
6963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964   test $ac_status = 0; }; then
6965     if test "$lt_cv_prog_gnu_ld" = yes; then
6966       case `/usr/bin/file conftest.$ac_objext` in
6967         *32-bit*)
6968           LD="${LD-ld} -melf32bsmip"
6969           ;;
6970         *N32*)
6971           LD="${LD-ld} -melf32bmipn32"
6972           ;;
6973         *64-bit*)
6974           LD="${LD-ld} -melf64bmip"
6975         ;;
6976       esac
6977     else
6978       case `/usr/bin/file conftest.$ac_objext` in
6979         *32-bit*)
6980           LD="${LD-ld} -32"
6981           ;;
6982         *N32*)
6983           LD="${LD-ld} -n32"
6984           ;;
6985         *64-bit*)
6986           LD="${LD-ld} -64"
6987           ;;
6988       esac
6989     fi
6990   fi
6991   rm -rf conftest*
6992   ;;
6993
6994 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6995 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6996   # Find out which ABI we are using.
6997   echo 'int i;' > conftest.$ac_ext
6998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999   (eval $ac_compile) 2>&5
7000   ac_status=$?
7001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002   test $ac_status = 0; }; then
7003     case `/usr/bin/file conftest.o` in
7004       *32-bit*)
7005         case $host in
7006           x86_64-*kfreebsd*-gnu)
7007             LD="${LD-ld} -m elf_i386_fbsd"
7008             ;;
7009           x86_64-*linux*)
7010             LD="${LD-ld} -m elf_i386"
7011             ;;
7012          powerpc64le-*)
7013            LD="${LD-ld} -m elf32lppclinux"
7014            ;;
7015          powerpc64-*)
7016             LD="${LD-ld} -m elf32ppclinux"
7017             ;;
7018           s390x-*linux*)
7019             LD="${LD-ld} -m elf_s390"
7020             ;;
7021           sparc64-*linux*)
7022             LD="${LD-ld} -m elf32_sparc"
7023             ;;
7024         esac
7025         ;;
7026       *64-bit*)
7027         case $host in
7028           x86_64-*kfreebsd*-gnu)
7029             LD="${LD-ld} -m elf_x86_64_fbsd"
7030             ;;
7031           x86_64-*linux*)
7032             LD="${LD-ld} -m elf_x86_64"
7033             ;;
7034          powerpcle-*)
7035            LD="${LD-ld} -m elf64lppc"
7036            ;;
7037          powerpc-*)
7038             LD="${LD-ld} -m elf64ppc"
7039             ;;
7040           s390*-*linux*|s390*-*tpf*)
7041             LD="${LD-ld} -m elf64_s390"
7042             ;;
7043           sparc*-*linux*)
7044             LD="${LD-ld} -m elf64_sparc"
7045             ;;
7046         esac
7047         ;;
7048     esac
7049   fi
7050   rm -rf conftest*
7051   ;;
7052
7053 *-*-sco3.2v5*)
7054   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7055   SAVE_CFLAGS="$CFLAGS"
7056   CFLAGS="$CFLAGS -belf"
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7058 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7059 if ${lt_cv_cc_needs_belf+:} false; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   ac_ext=c
7063 ac_cpp='$CPP $CPPFLAGS'
7064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067
7068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h.  */
7070
7071 int
7072 main ()
7073 {
7074
7075   ;
7076   return 0;
7077 }
7078 _ACEOF
7079 if ac_fn_c_try_link "$LINENO"; then :
7080   lt_cv_cc_needs_belf=yes
7081 else
7082   lt_cv_cc_needs_belf=no
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext \
7085     conftest$ac_exeext conftest.$ac_ext
7086      ac_ext=c
7087 ac_cpp='$CPP $CPPFLAGS'
7088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7091
7092 fi
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7094 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7095   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7096     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7097     CFLAGS="$SAVE_CFLAGS"
7098   fi
7099   ;;
7100 *-*solaris*)
7101   # Find out which ABI we are using.
7102   echo 'int i;' > conftest.$ac_ext
7103   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7104   (eval $ac_compile) 2>&5
7105   ac_status=$?
7106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107   test $ac_status = 0; }; then
7108     case `/usr/bin/file conftest.o` in
7109     *64-bit*)
7110       case $lt_cv_prog_gnu_ld in
7111       yes*)
7112         case $host in
7113         i?86-*-solaris*)
7114           LD="${LD-ld} -m elf_x86_64"
7115           ;;
7116         sparc*-*-solaris*)
7117           LD="${LD-ld} -m elf64_sparc"
7118           ;;
7119         esac
7120         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7121         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7122           LD="${LD-ld}_sol2"
7123         fi
7124         ;;
7125       *)
7126         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7127           LD="${LD-ld} -64"
7128         fi
7129         ;;
7130       esac
7131       ;;
7132     esac
7133   fi
7134   rm -rf conftest*
7135   ;;
7136 esac
7137
7138 need_locks="$enable_libtool_lock"
7139
7140 if test -n "$ac_tool_prefix"; then
7141   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}mt; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   if test -n "$MANIFEST_TOOL"; then
7149   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156     for ac_exec_ext in '' $ac_executable_extensions; do
7157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163   done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7169 if test -n "$MANIFEST_TOOL"; then
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7171 $as_echo "$MANIFEST_TOOL" >&6; }
7172 else
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176
7177
7178 fi
7179 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7180   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7181   # Extract the first word of "mt", so it can be a program name with args.
7182 set dummy mt; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   if test -n "$ac_ct_MANIFEST_TOOL"; then
7189   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196     for ac_exec_ext in '' $ac_executable_extensions; do
7197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203   done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7209 if test -n "$ac_ct_MANIFEST_TOOL"; then
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7211 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7212 else
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216
7217   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7218     MANIFEST_TOOL=":"
7219   else
7220     case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7227   fi
7228 else
7229   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7230 fi
7231
7232 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7234 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7235 if ${lt_cv_path_mainfest_tool+:} false; then :
7236   $as_echo_n "(cached) " >&6
7237 else
7238   lt_cv_path_mainfest_tool=no
7239   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7240   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7241   cat conftest.err >&5
7242   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7243     lt_cv_path_mainfest_tool=yes
7244   fi
7245   rm -f conftest*
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7248 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7249 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7250   MANIFEST_TOOL=:
7251 fi
7252
7253
7254
7255
7256
7257
7258   case $host_os in
7259     rhapsody* | darwin*)
7260     if test -n "$ac_tool_prefix"; then
7261   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268   if test -n "$DSYMUTIL"; then
7269   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276     for ac_exec_ext in '' $ac_executable_extensions; do
7277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283   done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7289 if test -n "$DSYMUTIL"; then
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7291 $as_echo "$DSYMUTIL" >&6; }
7292 else
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299 if test -z "$ac_cv_prog_DSYMUTIL"; then
7300   ac_ct_DSYMUTIL=$DSYMUTIL
7301   # Extract the first word of "dsymutil", so it can be a program name with args.
7302 set dummy dsymutil; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   if test -n "$ac_ct_DSYMUTIL"; then
7309   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7329 if test -n "$ac_ct_DSYMUTIL"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7331 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337   if test "x$ac_ct_DSYMUTIL" = x; then
7338     DSYMUTIL=":"
7339   else
7340     case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346     DSYMUTIL=$ac_ct_DSYMUTIL
7347   fi
7348 else
7349   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7350 fi
7351
7352     if test -n "$ac_tool_prefix"; then
7353   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_NMEDIT+:} false; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   if test -n "$NMEDIT"; then
7361   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366   IFS=$as_save_IFS
7367   test -z "$as_dir" && as_dir=.
7368     for ac_exec_ext in '' $ac_executable_extensions; do
7369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372     break 2
7373   fi
7374 done
7375   done
7376 IFS=$as_save_IFS
7377
7378 fi
7379 fi
7380 NMEDIT=$ac_cv_prog_NMEDIT
7381 if test -n "$NMEDIT"; then
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7383 $as_echo "$NMEDIT" >&6; }
7384 else
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388
7389
7390 fi
7391 if test -z "$ac_cv_prog_NMEDIT"; then
7392   ac_ct_NMEDIT=$NMEDIT
7393   # Extract the first word of "nmedit", so it can be a program name with args.
7394 set dummy nmedit; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   if test -n "$ac_ct_NMEDIT"; then
7401   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408     for ac_exec_ext in '' $ac_executable_extensions; do
7409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415   done
7416 IFS=$as_save_IFS
7417
7418 fi
7419 fi
7420 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7421 if test -n "$ac_ct_NMEDIT"; then
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7423 $as_echo "$ac_ct_NMEDIT" >&6; }
7424 else
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428
7429   if test "x$ac_ct_NMEDIT" = x; then
7430     NMEDIT=":"
7431   else
7432     case $cross_compiling:$ac_tool_warned in
7433 yes:)
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7437 esac
7438     NMEDIT=$ac_ct_NMEDIT
7439   fi
7440 else
7441   NMEDIT="$ac_cv_prog_NMEDIT"
7442 fi
7443
7444     if test -n "$ac_tool_prefix"; then
7445   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_LIPO+:} false; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   if test -n "$LIPO"; then
7453   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460     for ac_exec_ext in '' $ac_executable_extensions; do
7461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467   done
7468 IFS=$as_save_IFS
7469
7470 fi
7471 fi
7472 LIPO=$ac_cv_prog_LIPO
7473 if test -n "$LIPO"; then
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7475 $as_echo "$LIPO" >&6; }
7476 else
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479 fi
7480
7481
7482 fi
7483 if test -z "$ac_cv_prog_LIPO"; then
7484   ac_ct_LIPO=$LIPO
7485   # Extract the first word of "lipo", so it can be a program name with args.
7486 set dummy lipo; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   if test -n "$ac_ct_LIPO"; then
7493   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500     for ac_exec_ext in '' $ac_executable_extensions; do
7501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502     ac_cv_prog_ac_ct_LIPO="lipo"
7503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507   done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7513 if test -n "$ac_ct_LIPO"; then
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7515 $as_echo "$ac_ct_LIPO" >&6; }
7516 else
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521   if test "x$ac_ct_LIPO" = x; then
7522     LIPO=":"
7523   else
7524     case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530     LIPO=$ac_ct_LIPO
7531   fi
7532 else
7533   LIPO="$ac_cv_prog_LIPO"
7534 fi
7535
7536     if test -n "$ac_tool_prefix"; then
7537   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}otool; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_OTOOL+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   if test -n "$OTOOL"; then
7545   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552     for ac_exec_ext in '' $ac_executable_extensions; do
7553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559   done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 OTOOL=$ac_cv_prog_OTOOL
7565 if test -n "$OTOOL"; then
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7567 $as_echo "$OTOOL" >&6; }
7568 else
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_OTOOL"; then
7576   ac_ct_OTOOL=$OTOOL
7577   # Extract the first word of "otool", so it can be a program name with args.
7578 set dummy otool; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584   if test -n "$ac_ct_OTOOL"; then
7585   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592     for ac_exec_ext in '' $ac_executable_extensions; do
7593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594     ac_cv_prog_ac_ct_OTOOL="otool"
7595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599   done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7605 if test -n "$ac_ct_OTOOL"; then
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7607 $as_echo "$ac_ct_OTOOL" >&6; }
7608 else
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613   if test "x$ac_ct_OTOOL" = x; then
7614     OTOOL=":"
7615   else
7616     case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622     OTOOL=$ac_ct_OTOOL
7623   fi
7624 else
7625   OTOOL="$ac_cv_prog_OTOOL"
7626 fi
7627
7628     if test -n "$ac_tool_prefix"; then
7629   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_OTOOL64+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   if test -n "$OTOOL64"; then
7637   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651   done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 OTOOL64=$ac_cv_prog_OTOOL64
7657 if test -n "$OTOOL64"; then
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7659 $as_echo "$OTOOL64" >&6; }
7660 else
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7663 fi
7664
7665
7666 fi
7667 if test -z "$ac_cv_prog_OTOOL64"; then
7668   ac_ct_OTOOL64=$OTOOL64
7669   # Extract the first word of "otool64", so it can be a program name with args.
7670 set dummy otool64; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676   if test -n "$ac_ct_OTOOL64"; then
7677   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684     for ac_exec_ext in '' $ac_executable_extensions; do
7685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686     ac_cv_prog_ac_ct_OTOOL64="otool64"
7687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691   done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7697 if test -n "$ac_ct_OTOOL64"; then
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7699 $as_echo "$ac_ct_OTOOL64" >&6; }
7700 else
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705   if test "x$ac_ct_OTOOL64" = x; then
7706     OTOOL64=":"
7707   else
7708     case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714     OTOOL64=$ac_ct_OTOOL64
7715   fi
7716 else
7717   OTOOL64="$ac_cv_prog_OTOOL64"
7718 fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7747 $as_echo_n "checking for -single_module linker flag... " >&6; }
7748 if ${lt_cv_apple_cc_single_mod+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   lt_cv_apple_cc_single_mod=no
7752       if test -z "${LT_MULTI_MODULE}"; then
7753         # By default we will add the -single_module flag. You can override
7754         # by either setting the environment variable LT_MULTI_MODULE
7755         # non-empty at configure time, or by adding -multi_module to the
7756         # link flags.
7757         rm -rf libconftest.dylib*
7758         echo "int foo(void){return 1;}" > conftest.c
7759         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7760 -dynamiclib -Wl,-single_module conftest.c" >&5
7761         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7762           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7763         _lt_result=$?
7764         # If there is a non-empty error log, and "single_module"
7765         # appears in it, assume the flag caused a linker warning
7766         if test -s conftest.err && $GREP single_module conftest.err; then
7767           cat conftest.err >&5
7768         # Otherwise, if the output was created with a 0 exit code from
7769         # the compiler, it worked.
7770         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7771           lt_cv_apple_cc_single_mod=yes
7772         else
7773           cat conftest.err >&5
7774         fi
7775         rm -rf libconftest.dylib*
7776         rm -f conftest.*
7777       fi
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7780 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7781
7782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7783 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7784 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7785   $as_echo_n "(cached) " >&6
7786 else
7787   lt_cv_ld_exported_symbols_list=no
7788       save_LDFLAGS=$LDFLAGS
7789       echo "_main" > conftest.sym
7790       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h.  */
7793
7794 int
7795 main ()
7796 {
7797
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 if ac_fn_c_try_link "$LINENO"; then :
7803   lt_cv_ld_exported_symbols_list=yes
7804 else
7805   lt_cv_ld_exported_symbols_list=no
7806 fi
7807 rm -f core conftest.err conftest.$ac_objext \
7808     conftest$ac_exeext conftest.$ac_ext
7809         LDFLAGS="$save_LDFLAGS"
7810
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7813 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7814
7815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7816 $as_echo_n "checking for -force_load linker flag... " >&6; }
7817 if ${lt_cv_ld_force_load+:} false; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820   lt_cv_ld_force_load=no
7821       cat > conftest.c << _LT_EOF
7822 int forced_loaded() { return 2;}
7823 _LT_EOF
7824       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7825       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7826       echo "$AR cru libconftest.a conftest.o" >&5
7827       $AR cru libconftest.a conftest.o 2>&5
7828       echo "$RANLIB libconftest.a" >&5
7829       $RANLIB libconftest.a 2>&5
7830       cat > conftest.c << _LT_EOF
7831 int main() { return 0;}
7832 _LT_EOF
7833       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7834       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7835       _lt_result=$?
7836       if test -s conftest.err && $GREP force_load conftest.err; then
7837         cat conftest.err >&5
7838       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7839         lt_cv_ld_force_load=yes
7840       else
7841         cat conftest.err >&5
7842       fi
7843         rm -f conftest.err libconftest.a conftest conftest.c
7844         rm -rf conftest.dSYM
7845
7846 fi
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7848 $as_echo "$lt_cv_ld_force_load" >&6; }
7849     case $host_os in
7850     rhapsody* | darwin1.[012])
7851       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7852     darwin1.*)
7853       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7854     darwin*)
7855       case ${MACOSX_DEPLOYMENT_TARGET},$host in
7856         10.[012]*,*|,*powerpc*)
7857           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7858         *)
7859           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7860       esac
7861     ;;
7862   esac
7863     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7864       _lt_dar_single_mod='$single_module'
7865     fi
7866     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7867       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7868     else
7869       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7870     fi
7871     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7872       _lt_dsymutil='~$DSYMUTIL $lib || :'
7873     else
7874       _lt_dsymutil=
7875     fi
7876     ;;
7877   esac
7878
7879 for ac_header in dlfcn.h
7880 do :
7881   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7882 "
7883 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7884   cat >>confdefs.h <<_ACEOF
7885 #define HAVE_DLFCN_H 1
7886 _ACEOF
7887
7888 fi
7889
7890 done
7891
7892
7893
7894
7895
7896 # Set options
7897 enable_win32_dll=yes
7898
7899 case $host in
7900 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7901   if test -n "$ac_tool_prefix"; then
7902   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7903 set dummy ${ac_tool_prefix}as; ac_word=$2
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 $as_echo_n "checking for $ac_word... " >&6; }
7906 if ${ac_cv_prog_AS+:} false; then :
7907   $as_echo_n "(cached) " >&6
7908 else
7909   if test -n "$AS"; then
7910   ac_cv_prog_AS="$AS" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915   IFS=$as_save_IFS
7916   test -z "$as_dir" && as_dir=.
7917     for ac_exec_ext in '' $ac_executable_extensions; do
7918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919     ac_cv_prog_AS="${ac_tool_prefix}as"
7920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921     break 2
7922   fi
7923 done
7924   done
7925 IFS=$as_save_IFS
7926
7927 fi
7928 fi
7929 AS=$ac_cv_prog_AS
7930 if test -n "$AS"; then
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7932 $as_echo "$AS" >&6; }
7933 else
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 fi
7937
7938
7939 fi
7940 if test -z "$ac_cv_prog_AS"; then
7941   ac_ct_AS=$AS
7942   # Extract the first word of "as", so it can be a program name with args.
7943 set dummy as; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7947   $as_echo_n "(cached) " >&6
7948 else
7949   if test -n "$ac_ct_AS"; then
7950   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955   IFS=$as_save_IFS
7956   test -z "$as_dir" && as_dir=.
7957     for ac_exec_ext in '' $ac_executable_extensions; do
7958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959     ac_cv_prog_ac_ct_AS="as"
7960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961     break 2
7962   fi
7963 done
7964   done
7965 IFS=$as_save_IFS
7966
7967 fi
7968 fi
7969 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7970 if test -n "$ac_ct_AS"; then
7971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7972 $as_echo "$ac_ct_AS" >&6; }
7973 else
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978   if test "x$ac_ct_AS" = x; then
7979     AS="false"
7980   else
7981     case $cross_compiling:$ac_tool_warned in
7982 yes:)
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985 ac_tool_warned=yes ;;
7986 esac
7987     AS=$ac_ct_AS
7988   fi
7989 else
7990   AS="$ac_cv_prog_AS"
7991 fi
7992
7993   if test -n "$ac_tool_prefix"; then
7994   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7995 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_prog_DLLTOOL+:} false; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   if test -n "$DLLTOOL"; then
8002   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007   IFS=$as_save_IFS
8008   test -z "$as_dir" && as_dir=.
8009     for ac_exec_ext in '' $ac_executable_extensions; do
8010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013     break 2
8014   fi
8015 done
8016   done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 DLLTOOL=$ac_cv_prog_DLLTOOL
8022 if test -n "$DLLTOOL"; then
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8024 $as_echo "$DLLTOOL" >&6; }
8025 else
8026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030
8031 fi
8032 if test -z "$ac_cv_prog_DLLTOOL"; then
8033   ac_ct_DLLTOOL=$DLLTOOL
8034   # Extract the first word of "dlltool", so it can be a program name with args.
8035 set dummy dlltool; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041   if test -n "$ac_ct_DLLTOOL"; then
8042   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047   IFS=$as_save_IFS
8048   test -z "$as_dir" && as_dir=.
8049     for ac_exec_ext in '' $ac_executable_extensions; do
8050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053     break 2
8054   fi
8055 done
8056   done
8057 IFS=$as_save_IFS
8058
8059 fi
8060 fi
8061 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8062 if test -n "$ac_ct_DLLTOOL"; then
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8064 $as_echo "$ac_ct_DLLTOOL" >&6; }
8065 else
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068 fi
8069
8070   if test "x$ac_ct_DLLTOOL" = x; then
8071     DLLTOOL="false"
8072   else
8073     case $cross_compiling:$ac_tool_warned in
8074 yes:)
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8077 ac_tool_warned=yes ;;
8078 esac
8079     DLLTOOL=$ac_ct_DLLTOOL
8080   fi
8081 else
8082   DLLTOOL="$ac_cv_prog_DLLTOOL"
8083 fi
8084
8085   if test -n "$ac_tool_prefix"; then
8086   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8087 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_OBJDUMP+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   if test -n "$OBJDUMP"; then
8094   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099   IFS=$as_save_IFS
8100   test -z "$as_dir" && as_dir=.
8101     for ac_exec_ext in '' $ac_executable_extensions; do
8102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105     break 2
8106   fi
8107 done
8108   done
8109 IFS=$as_save_IFS
8110
8111 fi
8112 fi
8113 OBJDUMP=$ac_cv_prog_OBJDUMP
8114 if test -n "$OBJDUMP"; then
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8116 $as_echo "$OBJDUMP" >&6; }
8117 else
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 fi
8124 if test -z "$ac_cv_prog_OBJDUMP"; then
8125   ac_ct_OBJDUMP=$OBJDUMP
8126   # Extract the first word of "objdump", so it can be a program name with args.
8127 set dummy objdump; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   if test -n "$ac_ct_OBJDUMP"; then
8134   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139   IFS=$as_save_IFS
8140   test -z "$as_dir" && as_dir=.
8141     for ac_exec_ext in '' $ac_executable_extensions; do
8142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145     break 2
8146   fi
8147 done
8148   done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8154 if test -n "$ac_ct_OBJDUMP"; then
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8156 $as_echo "$ac_ct_OBJDUMP" >&6; }
8157 else
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162   if test "x$ac_ct_OBJDUMP" = x; then
8163     OBJDUMP="false"
8164   else
8165     case $cross_compiling:$ac_tool_warned in
8166 yes:)
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169 ac_tool_warned=yes ;;
8170 esac
8171     OBJDUMP=$ac_ct_OBJDUMP
8172   fi
8173 else
8174   OBJDUMP="$ac_cv_prog_OBJDUMP"
8175 fi
8176
8177   ;;
8178 esac
8179
8180 test -z "$AS" && AS=as
8181
8182
8183
8184
8185
8186 test -z "$DLLTOOL" && DLLTOOL=dlltool
8187
8188
8189
8190
8191
8192 test -z "$OBJDUMP" && OBJDUMP=objdump
8193
8194
8195
8196
8197 # Check whether --enable-static was given.
8198 if test "${enable_static+set}" = set; then :
8199   enableval=$enable_static; p=${PACKAGE-default}
8200     case $enableval in
8201     yes) enable_static=yes ;;
8202     no) enable_static=no ;;
8203     *)
8204      enable_static=no
8205       # Look at the argument we got.  We use all the common list separators.
8206       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8207       for pkg in $enableval; do
8208         IFS="$lt_save_ifs"
8209         if test "X$pkg" = "X$p"; then
8210           enable_static=yes
8211         fi
8212       done
8213       IFS="$lt_save_ifs"
8214       ;;
8215     esac
8216 else
8217   enable_static=no
8218 fi
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229         enable_dlopen=no
8230
8231
8232
8233             # Check whether --enable-shared was given.
8234 if test "${enable_shared+set}" = set; then :
8235   enableval=$enable_shared; p=${PACKAGE-default}
8236     case $enableval in
8237     yes) enable_shared=yes ;;
8238     no) enable_shared=no ;;
8239     *)
8240       enable_shared=no
8241       # Look at the argument we got.  We use all the common list separators.
8242       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8243       for pkg in $enableval; do
8244         IFS="$lt_save_ifs"
8245         if test "X$pkg" = "X$p"; then
8246           enable_shared=yes
8247         fi
8248       done
8249       IFS="$lt_save_ifs"
8250       ;;
8251     esac
8252 else
8253   enable_shared=yes
8254 fi
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266 # Check whether --with-pic was given.
8267 if test "${with_pic+set}" = set; then :
8268   withval=$with_pic; lt_p=${PACKAGE-default}
8269     case $withval in
8270     yes|no) pic_mode=$withval ;;
8271     *)
8272       pic_mode=default
8273       # Look at the argument we got.  We use all the common list separators.
8274       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8275       for lt_pkg in $withval; do
8276         IFS="$lt_save_ifs"
8277         if test "X$lt_pkg" = "X$lt_p"; then
8278           pic_mode=yes
8279         fi
8280       done
8281       IFS="$lt_save_ifs"
8282       ;;
8283     esac
8284 else
8285   pic_mode=default
8286 fi
8287
8288
8289 test -z "$pic_mode" && pic_mode=default
8290
8291
8292
8293
8294
8295
8296
8297   # Check whether --enable-fast-install was given.
8298 if test "${enable_fast_install+set}" = set; then :
8299   enableval=$enable_fast_install; p=${PACKAGE-default}
8300     case $enableval in
8301     yes) enable_fast_install=yes ;;
8302     no) enable_fast_install=no ;;
8303     *)
8304       enable_fast_install=no
8305       # Look at the argument we got.  We use all the common list separators.
8306       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8307       for pkg in $enableval; do
8308         IFS="$lt_save_ifs"
8309         if test "X$pkg" = "X$p"; then
8310           enable_fast_install=yes
8311         fi
8312       done
8313       IFS="$lt_save_ifs"
8314       ;;
8315     esac
8316 else
8317   enable_fast_install=yes
8318 fi
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 # This can be used to rebuild libtool when needed
8331 LIBTOOL_DEPS="$ltmain"
8332
8333 # Always use our own libtool.
8334 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365 test -z "$LN_S" && LN_S="ln -s"
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380 if test -n "${ZSH_VERSION+set}" ; then
8381    setopt NO_GLOB_SUBST
8382 fi
8383
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8385 $as_echo_n "checking for objdir... " >&6; }
8386 if ${lt_cv_objdir+:} false; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   rm -f .libs 2>/dev/null
8390 mkdir .libs 2>/dev/null
8391 if test -d .libs; then
8392   lt_cv_objdir=.libs
8393 else
8394   # MS-DOS does not allow filenames that begin with a dot.
8395   lt_cv_objdir=_libs
8396 fi
8397 rmdir .libs 2>/dev/null
8398 fi
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8400 $as_echo "$lt_cv_objdir" >&6; }
8401 objdir=$lt_cv_objdir
8402
8403
8404
8405
8406
8407 cat >>confdefs.h <<_ACEOF
8408 #define LT_OBJDIR "$lt_cv_objdir/"
8409 _ACEOF
8410
8411
8412
8413
8414 case $host_os in
8415 aix3*)
8416   # AIX sometimes has problems with the GCC collect2 program.  For some
8417   # reason, if we set the COLLECT_NAMES environment variable, the problems
8418   # vanish in a puff of smoke.
8419   if test "X${COLLECT_NAMES+set}" != Xset; then
8420     COLLECT_NAMES=
8421     export COLLECT_NAMES
8422   fi
8423   ;;
8424 esac
8425
8426 # Global variables:
8427 ofile=libtool
8428 can_build_shared=yes
8429
8430 # All known linkers require a `.a' archive for static linking (except MSVC,
8431 # which needs '.lib').
8432 libext=a
8433
8434 with_gnu_ld="$lt_cv_prog_gnu_ld"
8435
8436 old_CC="$CC"
8437 old_CFLAGS="$CFLAGS"
8438
8439 # Set sane defaults for various variables
8440 test -z "$CC" && CC=cc
8441 test -z "$LTCC" && LTCC=$CC
8442 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8443 test -z "$LD" && LD=ld
8444 test -z "$ac_objext" && ac_objext=o
8445
8446 for cc_temp in $compiler""; do
8447   case $cc_temp in
8448     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8449     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8450     \-*) ;;
8451     *) break;;
8452   esac
8453 done
8454 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8455
8456
8457 # Only perform the check for file, if the check method requires it
8458 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8459 case $deplibs_check_method in
8460 file_magic*)
8461   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8463 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8464 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8465   $as_echo_n "(cached) " >&6
8466 else
8467   case $MAGIC_CMD in
8468 [\\/*] |  ?:[\\/]*)
8469   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470   ;;
8471 *)
8472   lt_save_MAGIC_CMD="$MAGIC_CMD"
8473   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475   for ac_dir in $ac_dummy; do
8476     IFS="$lt_save_ifs"
8477     test -z "$ac_dir" && ac_dir=.
8478     if test -f $ac_dir/${ac_tool_prefix}file; then
8479       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480       if test -n "$file_magic_test_file"; then
8481         case $deplibs_check_method in
8482         "file_magic "*)
8483           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486             $EGREP "$file_magic_regex" > /dev/null; then
8487             :
8488           else
8489             cat <<_LT_EOF 1>&2
8490
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such.  This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem.  Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8499
8500 _LT_EOF
8501           fi ;;
8502         esac
8503       fi
8504       break
8505     fi
8506   done
8507   IFS="$lt_save_ifs"
8508   MAGIC_CMD="$lt_save_MAGIC_CMD"
8509   ;;
8510 esac
8511 fi
8512
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8516 $as_echo "$MAGIC_CMD" >&6; }
8517 else
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521
8522
8523
8524
8525
8526 if test -z "$lt_cv_path_MAGIC_CMD"; then
8527   if test -n "$ac_tool_prefix"; then
8528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8529 $as_echo_n "checking for file... " >&6; }
8530 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8531   $as_echo_n "(cached) " >&6
8532 else
8533   case $MAGIC_CMD in
8534 [\\/*] |  ?:[\\/]*)
8535   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8536   ;;
8537 *)
8538   lt_save_MAGIC_CMD="$MAGIC_CMD"
8539   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8540   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8541   for ac_dir in $ac_dummy; do
8542     IFS="$lt_save_ifs"
8543     test -z "$ac_dir" && ac_dir=.
8544     if test -f $ac_dir/file; then
8545       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8546       if test -n "$file_magic_test_file"; then
8547         case $deplibs_check_method in
8548         "file_magic "*)
8549           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8550           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8551           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8552             $EGREP "$file_magic_regex" > /dev/null; then
8553             :
8554           else
8555             cat <<_LT_EOF 1>&2
8556
8557 *** Warning: the command libtool uses to detect shared libraries,
8558 *** $file_magic_cmd, produces output that libtool cannot recognize.
8559 *** The result is that libtool may fail to recognize shared libraries
8560 *** as such.  This will affect the creation of libtool libraries that
8561 *** depend on shared libraries, but programs linked with such libtool
8562 *** libraries will work regardless of this problem.  Nevertheless, you
8563 *** may want to report the problem to your system manager and/or to
8564 *** bug-libtool@gnu.org
8565
8566 _LT_EOF
8567           fi ;;
8568         esac
8569       fi
8570       break
8571     fi
8572   done
8573   IFS="$lt_save_ifs"
8574   MAGIC_CMD="$lt_save_MAGIC_CMD"
8575   ;;
8576 esac
8577 fi
8578
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if test -n "$MAGIC_CMD"; then
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8582 $as_echo "$MAGIC_CMD" >&6; }
8583 else
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589   else
8590     MAGIC_CMD=:
8591   fi
8592 fi
8593
8594   fi
8595   ;;
8596 esac
8597
8598 # Use C for the default configuration in the libtool script
8599
8600 lt_save_CC="$CC"
8601 ac_ext=c
8602 ac_cpp='$CPP $CPPFLAGS'
8603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8606
8607
8608 # Source file extension for C test sources.
8609 ac_ext=c
8610
8611 # Object file extension for compiled C test sources.
8612 objext=o
8613 objext=$objext
8614
8615 # Code to be used in simple compile tests
8616 lt_simple_compile_test_code="int some_variable = 0;"
8617
8618 # Code to be used in simple link tests
8619 lt_simple_link_test_code='int main(){return(0);}'
8620
8621
8622
8623
8624
8625
8626
8627 # If no C compiler was specified, use CC.
8628 LTCC=${LTCC-"$CC"}
8629
8630 # If no C compiler flags were specified, use CFLAGS.
8631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8632
8633 # Allow CC to be a program name with arguments.
8634 compiler=$CC
8635
8636 # Save the default compiler, since it gets overwritten when the other
8637 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8638 compiler_DEFAULT=$CC
8639
8640 # save warnings/boilerplate of simple test code
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8644 _lt_compiler_boilerplate=`cat conftest.err`
8645 $RM conftest*
8646
8647 ac_outfile=conftest.$ac_objext
8648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8650 _lt_linker_boilerplate=`cat conftest.err`
8651 $RM -r conftest*
8652
8653
8654 ## CAVEAT EMPTOR:
8655 ## There is no encapsulation within the following macros, do not change
8656 ## the running order or otherwise move them around unless you know exactly
8657 ## what you are doing...
8658 if test -n "$compiler"; then
8659
8660 lt_prog_compiler_no_builtin_flag=
8661
8662 if test "$GCC" = yes; then
8663   case $cc_basename in
8664   nvcc*)
8665     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8666   *)
8667     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8668   esac
8669
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8671 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8672 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8673   $as_echo_n "(cached) " >&6
8674 else
8675   lt_cv_prog_compiler_rtti_exceptions=no
8676    ac_outfile=conftest.$ac_objext
8677    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678    lt_compiler_flag="-fno-rtti -fno-exceptions"
8679    # Insert the option either (1) after the last *FLAGS variable, or
8680    # (2) before a word containing "conftest.", or (3) at the end.
8681    # Note that $ac_compile itself does not contain backslashes and begins
8682    # with a dollar sign (not a hyphen), so the echo should work correctly.
8683    # The option is referenced via a variable to avoid confusing sed.
8684    lt_compile=`echo "$ac_compile" | $SED \
8685    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687    -e 's:$: $lt_compiler_flag:'`
8688    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689    (eval "$lt_compile" 2>conftest.err)
8690    ac_status=$?
8691    cat conftest.err >&5
8692    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693    if (exit $ac_status) && test -s "$ac_outfile"; then
8694      # The compiler can only warn and ignore the option if not recognized
8695      # So say no if there are warnings other than the usual output.
8696      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8697      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699        lt_cv_prog_compiler_rtti_exceptions=yes
8700      fi
8701    fi
8702    $RM conftest*
8703
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8706 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8707
8708 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8709     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8710 else
8711     :
8712 fi
8713
8714 fi
8715
8716
8717
8718
8719
8720
8721   lt_prog_compiler_wl=
8722 lt_prog_compiler_pic=
8723 lt_prog_compiler_static=
8724
8725
8726   if test "$GCC" = yes; then
8727     lt_prog_compiler_wl='-Wl,'
8728     lt_prog_compiler_static='-static'
8729
8730     case $host_os in
8731       aix*)
8732       # All AIX code is PIC.
8733       if test "$host_cpu" = ia64; then
8734         # AIX 5 now supports IA64 processor
8735         lt_prog_compiler_static='-Bstatic'
8736       fi
8737       ;;
8738
8739     amigaos*)
8740       case $host_cpu in
8741       powerpc)
8742             # see comment about AmigaOS4 .so support
8743             lt_prog_compiler_pic='-fPIC'
8744         ;;
8745       m68k)
8746             # FIXME: we need at least 68020 code to build shared libraries, but
8747             # adding the `-m68020' flag to GCC prevents building anything better,
8748             # like `-m68040'.
8749             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8750         ;;
8751       esac
8752       ;;
8753
8754     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8755       # PIC is the default for these OSes.
8756       ;;
8757
8758     mingw* | cygwin* | pw32* | os2* | cegcc*)
8759       # This hack is so that the source file can tell whether it is being
8760       # built for inclusion in a dll (and should export symbols for example).
8761       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8762       # (--disable-auto-import) libraries
8763       lt_prog_compiler_pic='-DDLL_EXPORT'
8764       ;;
8765
8766     darwin* | rhapsody*)
8767       # PIC is the default on this platform
8768       # Common symbols not allowed in MH_DYLIB files
8769       lt_prog_compiler_pic='-fno-common'
8770       ;;
8771
8772     haiku*)
8773       # PIC is the default for Haiku.
8774       # The "-static" flag exists, but is broken.
8775       lt_prog_compiler_static=
8776       ;;
8777
8778     hpux*)
8779       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8780       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8781       # sets the default TLS model and affects inlining.
8782       case $host_cpu in
8783       hppa*64*)
8784         # +Z the default
8785         ;;
8786       *)
8787         lt_prog_compiler_pic='-fPIC'
8788         ;;
8789       esac
8790       ;;
8791
8792     interix[3-9]*)
8793       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8794       # Instead, we relocate shared libraries at runtime.
8795       ;;
8796
8797     msdosdjgpp*)
8798       # Just because we use GCC doesn't mean we suddenly get shared libraries
8799       # on systems that don't support them.
8800       lt_prog_compiler_can_build_shared=no
8801       enable_shared=no
8802       ;;
8803
8804     *nto* | *qnx*)
8805       # QNX uses GNU C++, but need to define -shared option too, otherwise
8806       # it will coredump.
8807       lt_prog_compiler_pic='-fPIC -shared'
8808       ;;
8809
8810     sysv4*MP*)
8811       if test -d /usr/nec; then
8812         lt_prog_compiler_pic=-Kconform_pic
8813       fi
8814       ;;
8815
8816     *)
8817       lt_prog_compiler_pic='-fPIC'
8818       ;;
8819     esac
8820
8821     case $cc_basename in
8822     nvcc*) # Cuda Compiler Driver 2.2
8823       lt_prog_compiler_wl='-Xlinker '
8824       if test -n "$lt_prog_compiler_pic"; then
8825         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8826       fi
8827       ;;
8828     esac
8829   else
8830     # PORTME Check for flag to pass linker flags through the system compiler.
8831     case $host_os in
8832     aix*)
8833       lt_prog_compiler_wl='-Wl,'
8834       if test "$host_cpu" = ia64; then
8835         # AIX 5 now supports IA64 processor
8836         lt_prog_compiler_static='-Bstatic'
8837       else
8838         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8839       fi
8840       ;;
8841
8842     mingw* | cygwin* | pw32* | os2* | cegcc*)
8843       # This hack is so that the source file can tell whether it is being
8844       # built for inclusion in a dll (and should export symbols for example).
8845       lt_prog_compiler_pic='-DDLL_EXPORT'
8846       ;;
8847
8848     hpux9* | hpux10* | hpux11*)
8849       lt_prog_compiler_wl='-Wl,'
8850       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8851       # not for PA HP-UX.
8852       case $host_cpu in
8853       hppa*64*|ia64*)
8854         # +Z the default
8855         ;;
8856       *)
8857         lt_prog_compiler_pic='+Z'
8858         ;;
8859       esac
8860       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8861       lt_prog_compiler_static='${wl}-a ${wl}archive'
8862       ;;
8863
8864     irix5* | irix6* | nonstopux*)
8865       lt_prog_compiler_wl='-Wl,'
8866       # PIC (with -KPIC) is the default.
8867       lt_prog_compiler_static='-non_shared'
8868       ;;
8869
8870     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8871       case $cc_basename in
8872       # old Intel for x86_64 which still supported -KPIC.
8873       ecc*)
8874         lt_prog_compiler_wl='-Wl,'
8875         lt_prog_compiler_pic='-KPIC'
8876         lt_prog_compiler_static='-static'
8877         ;;
8878       # icc used to be incompatible with GCC.
8879       # ICC 10 doesn't accept -KPIC any more.
8880       icc* | ifort*)
8881         lt_prog_compiler_wl='-Wl,'
8882         lt_prog_compiler_pic='-fPIC'
8883         lt_prog_compiler_static='-static'
8884         ;;
8885       # Lahey Fortran 8.1.
8886       lf95*)
8887         lt_prog_compiler_wl='-Wl,'
8888         lt_prog_compiler_pic='--shared'
8889         lt_prog_compiler_static='--static'
8890         ;;
8891       nagfor*)
8892         # NAG Fortran compiler
8893         lt_prog_compiler_wl='-Wl,-Wl,,'
8894         lt_prog_compiler_pic='-PIC'
8895         lt_prog_compiler_static='-Bstatic'
8896         ;;
8897       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8898         # Portland Group compilers (*not* the Pentium gcc compiler,
8899         # which looks to be a dead project)
8900         lt_prog_compiler_wl='-Wl,'
8901         lt_prog_compiler_pic='-fpic'
8902         lt_prog_compiler_static='-Bstatic'
8903         ;;
8904       ccc*)
8905         lt_prog_compiler_wl='-Wl,'
8906         # All Alpha code is PIC.
8907         lt_prog_compiler_static='-non_shared'
8908         ;;
8909       xl* | bgxl* | bgf* | mpixl*)
8910         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8911         lt_prog_compiler_wl='-Wl,'
8912         lt_prog_compiler_pic='-qpic'
8913         lt_prog_compiler_static='-qstaticlink'
8914         ;;
8915       *)
8916         case `$CC -V 2>&1 | sed 5q` in
8917         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8918           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8919           lt_prog_compiler_pic='-KPIC'
8920           lt_prog_compiler_static='-Bstatic'
8921           lt_prog_compiler_wl=''
8922           ;;
8923         *Sun\ F* | *Sun*Fortran*)
8924           lt_prog_compiler_pic='-KPIC'
8925           lt_prog_compiler_static='-Bstatic'
8926           lt_prog_compiler_wl='-Qoption ld '
8927           ;;
8928         *Sun\ C*)
8929           # Sun C 5.9
8930           lt_prog_compiler_pic='-KPIC'
8931           lt_prog_compiler_static='-Bstatic'
8932           lt_prog_compiler_wl='-Wl,'
8933           ;;
8934         *Intel*\ [CF]*Compiler*)
8935           lt_prog_compiler_wl='-Wl,'
8936           lt_prog_compiler_pic='-fPIC'
8937           lt_prog_compiler_static='-static'
8938           ;;
8939         *Portland\ Group*)
8940           lt_prog_compiler_wl='-Wl,'
8941           lt_prog_compiler_pic='-fpic'
8942           lt_prog_compiler_static='-Bstatic'
8943           ;;
8944         esac
8945         ;;
8946       esac
8947       ;;
8948
8949     newsos6)
8950       lt_prog_compiler_pic='-KPIC'
8951       lt_prog_compiler_static='-Bstatic'
8952       ;;
8953
8954     *nto* | *qnx*)
8955       # QNX uses GNU C++, but need to define -shared option too, otherwise
8956       # it will coredump.
8957       lt_prog_compiler_pic='-fPIC -shared'
8958       ;;
8959
8960     osf3* | osf4* | osf5*)
8961       lt_prog_compiler_wl='-Wl,'
8962       # All OSF/1 code is PIC.
8963       lt_prog_compiler_static='-non_shared'
8964       ;;
8965
8966     rdos*)
8967       lt_prog_compiler_static='-non_shared'
8968       ;;
8969
8970     solaris*)
8971       lt_prog_compiler_pic='-KPIC'
8972       lt_prog_compiler_static='-Bstatic'
8973       case $cc_basename in
8974       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8975         lt_prog_compiler_wl='-Qoption ld ';;
8976       *)
8977         lt_prog_compiler_wl='-Wl,';;
8978       esac
8979       ;;
8980
8981     sunos4*)
8982       lt_prog_compiler_wl='-Qoption ld '
8983       lt_prog_compiler_pic='-PIC'
8984       lt_prog_compiler_static='-Bstatic'
8985       ;;
8986
8987     sysv4 | sysv4.2uw2* | sysv4.3*)
8988       lt_prog_compiler_wl='-Wl,'
8989       lt_prog_compiler_pic='-KPIC'
8990       lt_prog_compiler_static='-Bstatic'
8991       ;;
8992
8993     sysv4*MP*)
8994       if test -d /usr/nec ;then
8995         lt_prog_compiler_pic='-Kconform_pic'
8996         lt_prog_compiler_static='-Bstatic'
8997       fi
8998       ;;
8999
9000     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9001       lt_prog_compiler_wl='-Wl,'
9002       lt_prog_compiler_pic='-KPIC'
9003       lt_prog_compiler_static='-Bstatic'
9004       ;;
9005
9006     unicos*)
9007       lt_prog_compiler_wl='-Wl,'
9008       lt_prog_compiler_can_build_shared=no
9009       ;;
9010
9011     uts4*)
9012       lt_prog_compiler_pic='-pic'
9013       lt_prog_compiler_static='-Bstatic'
9014       ;;
9015
9016     *)
9017       lt_prog_compiler_can_build_shared=no
9018       ;;
9019     esac
9020   fi
9021
9022 case $host_os in
9023   # For platforms which do not support PIC, -DPIC is meaningless:
9024   *djgpp*)
9025     lt_prog_compiler_pic=
9026     ;;
9027   *)
9028     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9029     ;;
9030 esac
9031
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9033 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9034 if ${lt_cv_prog_compiler_pic+:} false; then :
9035   $as_echo_n "(cached) " >&6
9036 else
9037   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9040 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9041 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9042
9043 #
9044 # Check to make sure the PIC flag actually works.
9045 #
9046 if test -n "$lt_prog_compiler_pic"; then
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9048 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9049 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   lt_cv_prog_compiler_pic_works=no
9053    ac_outfile=conftest.$ac_objext
9054    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9056    # Insert the option either (1) after the last *FLAGS variable, or
9057    # (2) before a word containing "conftest.", or (3) at the end.
9058    # Note that $ac_compile itself does not contain backslashes and begins
9059    # with a dollar sign (not a hyphen), so the echo should work correctly.
9060    # The option is referenced via a variable to avoid confusing sed.
9061    lt_compile=`echo "$ac_compile" | $SED \
9062    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064    -e 's:$: $lt_compiler_flag:'`
9065    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066    (eval "$lt_compile" 2>conftest.err)
9067    ac_status=$?
9068    cat conftest.err >&5
9069    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070    if (exit $ac_status) && test -s "$ac_outfile"; then
9071      # The compiler can only warn and ignore the option if not recognized
9072      # So say no if there are warnings other than the usual output.
9073      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9074      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9076        lt_cv_prog_compiler_pic_works=yes
9077      fi
9078    fi
9079    $RM conftest*
9080
9081 fi
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9083 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9084
9085 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9086     case $lt_prog_compiler_pic in
9087      "" | " "*) ;;
9088      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9089      esac
9090 else
9091     lt_prog_compiler_pic=
9092      lt_prog_compiler_can_build_shared=no
9093 fi
9094
9095 fi
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107 #
9108 # Check to make sure the static flag actually works.
9109 #
9110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9113 if ${lt_cv_prog_compiler_static_works+:} false; then :
9114   $as_echo_n "(cached) " >&6
9115 else
9116   lt_cv_prog_compiler_static_works=no
9117    save_LDFLAGS="$LDFLAGS"
9118    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9119    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121      # The linker can only warn and ignore the option if not recognized
9122      # So say no if there are warnings
9123      if test -s conftest.err; then
9124        # Append any errors to the config.log.
9125        cat conftest.err 1>&5
9126        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9127        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128        if diff conftest.exp conftest.er2 >/dev/null; then
9129          lt_cv_prog_compiler_static_works=yes
9130        fi
9131      else
9132        lt_cv_prog_compiler_static_works=yes
9133      fi
9134    fi
9135    $RM -r conftest*
9136    LDFLAGS="$save_LDFLAGS"
9137
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9141
9142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9143     :
9144 else
9145     lt_prog_compiler_static=
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9156 if ${lt_cv_prog_compiler_c_o+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   lt_cv_prog_compiler_c_o=no
9160    $RM -r conftest 2>/dev/null
9161    mkdir conftest
9162    cd conftest
9163    mkdir out
9164    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165
9166    lt_compiler_flag="-o out/conftest2.$ac_objext"
9167    # Insert the option either (1) after the last *FLAGS variable, or
9168    # (2) before a word containing "conftest.", or (3) at the end.
9169    # Note that $ac_compile itself does not contain backslashes and begins
9170    # with a dollar sign (not a hyphen), so the echo should work correctly.
9171    lt_compile=`echo "$ac_compile" | $SED \
9172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174    -e 's:$: $lt_compiler_flag:'`
9175    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176    (eval "$lt_compile" 2>out/conftest.err)
9177    ac_status=$?
9178    cat out/conftest.err >&5
9179    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9181    then
9182      # The compiler can only warn and ignore the option if not recognized
9183      # So say no if there are warnings
9184      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9185      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187        lt_cv_prog_compiler_c_o=yes
9188      fi
9189    fi
9190    chmod u+w . 2>&5
9191    $RM conftest*
9192    # SGI C++ compiler will create directory out/ii_files/ for
9193    # template instantiation
9194    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195    $RM out/* && rmdir out
9196    cd ..
9197    $RM -r conftest
9198    $RM conftest*
9199
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9203
9204
9205
9206
9207
9208
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9211 if ${lt_cv_prog_compiler_c_o+:} false; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   lt_cv_prog_compiler_c_o=no
9215    $RM -r conftest 2>/dev/null
9216    mkdir conftest
9217    cd conftest
9218    mkdir out
9219    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9220
9221    lt_compiler_flag="-o out/conftest2.$ac_objext"
9222    # Insert the option either (1) after the last *FLAGS variable, or
9223    # (2) before a word containing "conftest.", or (3) at the end.
9224    # Note that $ac_compile itself does not contain backslashes and begins
9225    # with a dollar sign (not a hyphen), so the echo should work correctly.
9226    lt_compile=`echo "$ac_compile" | $SED \
9227    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229    -e 's:$: $lt_compiler_flag:'`
9230    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9231    (eval "$lt_compile" 2>out/conftest.err)
9232    ac_status=$?
9233    cat out/conftest.err >&5
9234    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9236    then
9237      # The compiler can only warn and ignore the option if not recognized
9238      # So say no if there are warnings
9239      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9240      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242        lt_cv_prog_compiler_c_o=yes
9243      fi
9244    fi
9245    chmod u+w . 2>&5
9246    $RM conftest*
9247    # SGI C++ compiler will create directory out/ii_files/ for
9248    # template instantiation
9249    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250    $RM out/* && rmdir out
9251    cd ..
9252    $RM -r conftest
9253    $RM conftest*
9254
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9258
9259
9260
9261
9262 hard_links="nottested"
9263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9264   # do not overwrite the value of need_locks provided by the user
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9266 $as_echo_n "checking if we can lock with hard links... " >&6; }
9267   hard_links=yes
9268   $RM conftest*
9269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270   touch conftest.a
9271   ln conftest.a conftest.b 2>&5 || hard_links=no
9272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9274 $as_echo "$hard_links" >&6; }
9275   if test "$hard_links" = no; then
9276     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9278     need_locks=warn
9279   fi
9280 else
9281   need_locks=no
9282 fi
9283
9284
9285
9286
9287
9288
9289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9291
9292   runpath_var=
9293   allow_undefined_flag=
9294   always_export_symbols=no
9295   archive_cmds=
9296   archive_expsym_cmds=
9297   compiler_needs_object=no
9298   enable_shared_with_static_runtimes=no
9299   export_dynamic_flag_spec=
9300   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9301   hardcode_automatic=no
9302   hardcode_direct=no
9303   hardcode_direct_absolute=no
9304   hardcode_libdir_flag_spec=
9305   hardcode_libdir_separator=
9306   hardcode_minus_L=no
9307   hardcode_shlibpath_var=unsupported
9308   inherit_rpath=no
9309   link_all_deplibs=unknown
9310   module_cmds=
9311   module_expsym_cmds=
9312   old_archive_from_new_cmds=
9313   old_archive_from_expsyms_cmds=
9314   thread_safe_flag_spec=
9315   whole_archive_flag_spec=
9316   # include_expsyms should be a list of space-separated symbols to be *always*
9317   # included in the symbol list
9318   include_expsyms=
9319   # exclude_expsyms can be an extended regexp of symbols to exclude
9320   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9321   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9322   # as well as any symbol that contains `d'.
9323   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9324   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9325   # platforms (ab)use it in PIC code, but their linkers get confused if
9326   # the symbol is explicitly referenced.  Since portable code cannot
9327   # rely on this symbol name, it's probably fine to never include it in
9328   # preloaded symbol tables.
9329   # Exclude shared library initialization/finalization symbols.
9330   extract_expsyms_cmds=
9331
9332   case $host_os in
9333   cygwin* | mingw* | pw32* | cegcc*)
9334     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9335     # When not using gcc, we currently assume that we are using
9336     # Microsoft Visual C++.
9337     if test "$GCC" != yes; then
9338       with_gnu_ld=no
9339     fi
9340     ;;
9341   interix*)
9342     # we just hope/assume this is gcc and not c89 (= MSVC++)
9343     with_gnu_ld=yes
9344     ;;
9345   openbsd*)
9346     with_gnu_ld=no
9347     ;;
9348   linux* | k*bsd*-gnu | gnu*)
9349     link_all_deplibs=no
9350     ;;
9351   esac
9352
9353   ld_shlibs=yes
9354
9355   # On some targets, GNU ld is compatible enough with the native linker
9356   # that we're better off using the native interface for both.
9357   lt_use_gnu_ld_interface=no
9358   if test "$with_gnu_ld" = yes; then
9359     case $host_os in
9360       aix*)
9361         # The AIX port of GNU ld has always aspired to compatibility
9362         # with the native linker.  However, as the warning in the GNU ld
9363         # block says, versions before 2.19.5* couldn't really create working
9364         # shared libraries, regardless of the interface used.
9365         case `$LD -v 2>&1` in
9366           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9367           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9368           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9369           *)
9370             lt_use_gnu_ld_interface=yes
9371             ;;
9372         esac
9373         ;;
9374       *)
9375         lt_use_gnu_ld_interface=yes
9376         ;;
9377     esac
9378   fi
9379
9380   if test "$lt_use_gnu_ld_interface" = yes; then
9381     # If archive_cmds runs LD, not CC, wlarc should be empty
9382     wlarc='${wl}'
9383
9384     # Set some defaults for GNU ld with shared library support. These
9385     # are reset later if shared libraries are not supported. Putting them
9386     # here allows them to be overridden if necessary.
9387     runpath_var=LD_RUN_PATH
9388     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389     export_dynamic_flag_spec='${wl}--export-dynamic'
9390     # ancient GNU ld didn't support --whole-archive et. al.
9391     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9392       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9393     else
9394       whole_archive_flag_spec=
9395     fi
9396     supports_anon_versioning=no
9397     case `$LD -v 2>&1` in
9398       *GNU\ gold*) supports_anon_versioning=yes ;;
9399       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402       *\ 2.11.*) ;; # other 2.11 versions
9403       *) supports_anon_versioning=yes ;;
9404     esac
9405
9406     # See if GNU ld supports shared libraries.
9407     case $host_os in
9408     aix[3-9]*)
9409       # On AIX/PPC, the GNU linker is very broken
9410       if test "$host_cpu" != ia64; then
9411         ld_shlibs=no
9412         cat <<_LT_EOF 1>&2
9413
9414 *** Warning: the GNU linker, at least up to release 2.19, is reported
9415 *** to be unable to reliably create shared libraries on AIX.
9416 *** Therefore, libtool is disabling shared libraries support.  If you
9417 *** really care for shared libraries, you may want to install binutils
9418 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9419 *** You will then need to restart the configuration process.
9420
9421 _LT_EOF
9422       fi
9423       ;;
9424
9425     amigaos*)
9426       case $host_cpu in
9427       powerpc)
9428             # see comment about AmigaOS4 .so support
9429             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430             archive_expsym_cmds=''
9431         ;;
9432       m68k)
9433             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)'
9434             hardcode_libdir_flag_spec='-L$libdir'
9435             hardcode_minus_L=yes
9436         ;;
9437       esac
9438       ;;
9439
9440     beos*)
9441       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442         allow_undefined_flag=unsupported
9443         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444         # support --undefined.  This deserves some investigation.  FIXME
9445         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446       else
9447         ld_shlibs=no
9448       fi
9449       ;;
9450
9451     cygwin* | mingw* | pw32* | cegcc*)
9452       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453       # as there is no search path for DLLs.
9454       hardcode_libdir_flag_spec='-L$libdir'
9455       export_dynamic_flag_spec='${wl}--export-all-symbols'
9456       allow_undefined_flag=unsupported
9457       always_export_symbols=no
9458       enable_shared_with_static_runtimes=yes
9459       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'
9460       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9461
9462       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464         # If the export-symbols file already is a .def file (1st line
9465         # is EXPORTS), use it as is; otherwise, prepend...
9466         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9467           cp $export_symbols $output_objdir/$soname.def;
9468         else
9469           echo EXPORTS > $output_objdir/$soname.def;
9470           cat $export_symbols >> $output_objdir/$soname.def;
9471         fi~
9472         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9473       else
9474         ld_shlibs=no
9475       fi
9476       ;;
9477
9478     haiku*)
9479       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480       link_all_deplibs=yes
9481       ;;
9482
9483     interix[3-9]*)
9484       hardcode_direct=no
9485       hardcode_shlibpath_var=no
9486       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487       export_dynamic_flag_spec='${wl}-E'
9488       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9489       # Instead, shared libraries are loaded at an image base (0x10000000 by
9490       # default) and relocated if they conflict, which is a slow very memory
9491       # consuming and fragmenting process.  To avoid this, we pick a random,
9492       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9493       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9494       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9495       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'
9496       ;;
9497
9498     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9499       tmp_diet=no
9500       if test "$host_os" = linux-dietlibc; then
9501         case $cc_basename in
9502           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9503         esac
9504       fi
9505       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9506          && test "$tmp_diet" = no
9507       then
9508         tmp_addflag=' $pic_flag'
9509         tmp_sharedflag='-shared'
9510         case $cc_basename,$host_cpu in
9511         pgcc*)                          # Portland Group C compiler
9512           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'
9513           tmp_addflag=' $pic_flag'
9514           ;;
9515         pgf77* | pgf90* | pgf95* | pgfortran*)
9516                                         # Portland Group f77 and f90 compilers
9517           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'
9518           tmp_addflag=' $pic_flag -Mnomain' ;;
9519         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9520           tmp_addflag=' -i_dynamic' ;;
9521         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9522           tmp_addflag=' -i_dynamic -nofor_main' ;;
9523         ifc* | ifort*)                  # Intel Fortran compiler
9524           tmp_addflag=' -nofor_main' ;;
9525         lf95*)                          # Lahey Fortran 8.1
9526           whole_archive_flag_spec=
9527           tmp_sharedflag='--shared' ;;
9528         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9529           tmp_sharedflag='-qmkshrobj'
9530           tmp_addflag= ;;
9531         nvcc*)  # Cuda Compiler Driver 2.2
9532           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'
9533           compiler_needs_object=yes
9534           ;;
9535         esac
9536         case `$CC -V 2>&1 | sed 5q` in
9537         *Sun\ C*)                       # Sun C 5.9
9538           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'
9539           compiler_needs_object=yes
9540           tmp_sharedflag='-G' ;;
9541         *Sun\ F*)                       # Sun Fortran 8.3
9542           tmp_sharedflag='-G' ;;
9543         esac
9544         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9545
9546         if test "x$supports_anon_versioning" = xyes; then
9547           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549             echo "local: *; };" >> $output_objdir/$libname.ver~
9550             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9551         fi
9552
9553         case $cc_basename in
9554         xlf* | bgf* | bgxlf* | mpixlf*)
9555           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9556           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9557           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9559           if test "x$supports_anon_versioning" = xyes; then
9560             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9561               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9562               echo "local: *; };" >> $output_objdir/$libname.ver~
9563               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9564           fi
9565           ;;
9566         esac
9567       else
9568         ld_shlibs=no
9569       fi
9570       ;;
9571
9572     netbsd* | netbsdelf*-gnu)
9573       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9575         wlarc=
9576       else
9577         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579       fi
9580       ;;
9581
9582     solaris*)
9583       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9584         ld_shlibs=no
9585         cat <<_LT_EOF 1>&2
9586
9587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9588 *** create shared libraries on Solaris systems.  Therefore, libtool
9589 *** is disabling shared libraries support.  We urge you to upgrade GNU
9590 *** binutils to release 2.9.1 or newer.  Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9593
9594 _LT_EOF
9595       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598       else
9599         ld_shlibs=no
9600       fi
9601       ;;
9602
9603     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9604       case `$LD -v 2>&1` in
9605         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9606         ld_shlibs=no
9607         cat <<_LT_EOF 1>&2
9608
9609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9610 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9611 *** is disabling shared libraries support.  We urge you to upgrade GNU
9612 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9615
9616 _LT_EOF
9617         ;;
9618         *)
9619           # For security reasons, it is highly recommended that you always
9620           # use absolute paths for naming shared libraries, and exclude the
9621           # DT_RUNPATH tag from executables and libraries.  But doing so
9622           # requires that you compile everything twice, which is a pain.
9623           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9624             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9627           else
9628             ld_shlibs=no
9629           fi
9630         ;;
9631       esac
9632       ;;
9633
9634     sunos4*)
9635       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636       wlarc=
9637       hardcode_direct=yes
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     *)
9642       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9645       else
9646         ld_shlibs=no
9647       fi
9648       ;;
9649     esac
9650
9651     if test "$ld_shlibs" = no; then
9652       runpath_var=
9653       hardcode_libdir_flag_spec=
9654       export_dynamic_flag_spec=
9655       whole_archive_flag_spec=
9656     fi
9657   else
9658     # PORTME fill in a description of your system's linker (not GNU ld)
9659     case $host_os in
9660     aix3*)
9661       allow_undefined_flag=unsupported
9662       always_export_symbols=yes
9663       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'
9664       # Note: this linker hardcodes the directories in LIBPATH if there
9665       # are no directories specified by -L.
9666       hardcode_minus_L=yes
9667       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9668         # Neither direct hardcoding nor static linking is supported with a
9669         # broken collect2.
9670         hardcode_direct=unsupported
9671       fi
9672       ;;
9673
9674     aix[4-9]*)
9675       if test "$host_cpu" = ia64; then
9676         # On IA64, the linker does run time linking by default, so we don't
9677         # have to do anything special.
9678         aix_use_runtimelinking=no
9679         exp_sym_flag='-Bexport'
9680         no_entry_flag=""
9681       else
9682         # If we're using GNU nm, then we don't want the "-C" option.
9683         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9684         # Also, AIX nm treats weak defined symbols like other global
9685         # defined symbols, whereas GNU nm marks them as "W".
9686         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9687           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'
9688         else
9689           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'
9690         fi
9691         aix_use_runtimelinking=no
9692
9693         # Test if we are trying to use run time linking or normal
9694         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9695         # need to do runtime linking.
9696         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9697           for ld_flag in $LDFLAGS; do
9698           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9699             aix_use_runtimelinking=yes
9700             break
9701           fi
9702           done
9703           ;;
9704         esac
9705
9706         exp_sym_flag='-bexport'
9707         no_entry_flag='-bnoentry'
9708       fi
9709
9710       # When large executables or shared objects are built, AIX ld can
9711       # have problems creating the table of contents.  If linking a library
9712       # or program results in "error TOC overflow" add -mminimal-toc to
9713       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9714       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9715
9716       archive_cmds=''
9717       hardcode_direct=yes
9718       hardcode_direct_absolute=yes
9719       hardcode_libdir_separator=':'
9720       link_all_deplibs=yes
9721       file_list_spec='${wl}-f,'
9722
9723       if test "$GCC" = yes; then
9724         case $host_os in aix4.[012]|aix4.[012].*)
9725         # We only want to do this on AIX 4.2 and lower, the check
9726         # below for broken collect2 doesn't work under 4.3+
9727           collect2name=`${CC} -print-prog-name=collect2`
9728           if test -f "$collect2name" &&
9729            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9730           then
9731           # We have reworked collect2
9732           :
9733           else
9734           # We have old collect2
9735           hardcode_direct=unsupported
9736           # It fails to find uninstalled libraries when the uninstalled
9737           # path is not listed in the libpath.  Setting hardcode_minus_L
9738           # to unsupported forces relinking
9739           hardcode_minus_L=yes
9740           hardcode_libdir_flag_spec='-L$libdir'
9741           hardcode_libdir_separator=
9742           fi
9743           ;;
9744         esac
9745         shared_flag='-shared'
9746         if test "$aix_use_runtimelinking" = yes; then
9747           shared_flag="$shared_flag "'${wl}-G'
9748         fi
9749         link_all_deplibs=no
9750       else
9751         # not using gcc
9752         if test "$host_cpu" = ia64; then
9753         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9754         # chokes on -Wl,-G. The following line is correct:
9755           shared_flag='-G'
9756         else
9757           if test "$aix_use_runtimelinking" = yes; then
9758             shared_flag='${wl}-G'
9759           else
9760             shared_flag='${wl}-bM:SRE'
9761           fi
9762         fi
9763       fi
9764
9765       export_dynamic_flag_spec='${wl}-bexpall'
9766       # It seems that -bexpall does not export symbols beginning with
9767       # underscore (_), so it is better to generate a list of symbols to export.
9768       always_export_symbols=yes
9769       if test "$aix_use_runtimelinking" = yes; then
9770         # Warning - without using the other runtime loading flags (-brtl),
9771         # -berok will link without error, but may produce a broken library.
9772         allow_undefined_flag='-berok'
9773         # Determine the default libpath from the value encoded in an
9774         # empty executable.
9775         if test "${lt_cv_aix_libpath+set}" = set; then
9776   aix_libpath=$lt_cv_aix_libpath
9777 else
9778   if ${lt_cv_aix_libpath_+:} false; then :
9779   $as_echo_n "(cached) " >&6
9780 else
9781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h.  */
9783
9784 int
9785 main ()
9786 {
9787
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_link "$LINENO"; then :
9793
9794   lt_aix_libpath_sed='
9795       /Import File Strings/,/^$/ {
9796           /^0/ {
9797               s/^0  *\([^ ]*\) *$/\1/
9798               p
9799           }
9800       }'
9801   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802   # Check for a 64-bit object if we didn't find anything.
9803   if test -z "$lt_cv_aix_libpath_"; then
9804     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9805   fi
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext \
9808     conftest$ac_exeext conftest.$ac_ext
9809   if test -z "$lt_cv_aix_libpath_"; then
9810     lt_cv_aix_libpath_="/usr/lib:/lib"
9811   fi
9812
9813 fi
9814
9815   aix_libpath=$lt_cv_aix_libpath_
9816 fi
9817
9818         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9819         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"
9820       else
9821         if test "$host_cpu" = ia64; then
9822           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9823           allow_undefined_flag="-z nodefs"
9824           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"
9825         else
9826          # Determine the default libpath from the value encoded in an
9827          # empty executable.
9828          if test "${lt_cv_aix_libpath+set}" = set; then
9829   aix_libpath=$lt_cv_aix_libpath
9830 else
9831   if ${lt_cv_aix_libpath_+:} false; then :
9832   $as_echo_n "(cached) " >&6
9833 else
9834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h.  */
9836
9837 int
9838 main ()
9839 {
9840
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846
9847   lt_aix_libpath_sed='
9848       /Import File Strings/,/^$/ {
9849           /^0/ {
9850               s/^0  *\([^ ]*\) *$/\1/
9851               p
9852           }
9853       }'
9854   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855   # Check for a 64-bit object if we didn't find anything.
9856   if test -z "$lt_cv_aix_libpath_"; then
9857     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858   fi
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext \
9861     conftest$ac_exeext conftest.$ac_ext
9862   if test -z "$lt_cv_aix_libpath_"; then
9863     lt_cv_aix_libpath_="/usr/lib:/lib"
9864   fi
9865
9866 fi
9867
9868   aix_libpath=$lt_cv_aix_libpath_
9869 fi
9870
9871          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9872           # Warning - without using the other run time loading flags,
9873           # -berok will link without error, but may produce a broken library.
9874           no_undefined_flag=' ${wl}-bernotok'
9875           allow_undefined_flag=' ${wl}-berok'
9876           if test "$with_gnu_ld" = yes; then
9877             # We only use this code for GNU lds that support --whole-archive.
9878             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9879           else
9880             # Exported symbols can be pulled into shared objects from archives
9881             whole_archive_flag_spec='$convenience'
9882           fi
9883           archive_cmds_need_lc=yes
9884           # This is similar to how AIX traditionally builds its shared libraries.
9885           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'
9886         fi
9887       fi
9888       ;;
9889
9890     amigaos*)
9891       case $host_cpu in
9892       powerpc)
9893             # see comment about AmigaOS4 .so support
9894             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895             archive_expsym_cmds=''
9896         ;;
9897       m68k)
9898             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)'
9899             hardcode_libdir_flag_spec='-L$libdir'
9900             hardcode_minus_L=yes
9901         ;;
9902       esac
9903       ;;
9904
9905     bsdi[45]*)
9906       export_dynamic_flag_spec=-rdynamic
9907       ;;
9908
9909     cygwin* | mingw* | pw32* | cegcc*)
9910       # When not using gcc, we currently assume that we are using
9911       # Microsoft Visual C++.
9912       # hardcode_libdir_flag_spec is actually meaningless, as there is
9913       # no search path for DLLs.
9914       case $cc_basename in
9915       cl*)
9916         # Native MSVC
9917         hardcode_libdir_flag_spec=' '
9918         allow_undefined_flag=unsupported
9919         always_export_symbols=yes
9920         file_list_spec='@'
9921         # Tell ltmain to make .lib files, not .a files.
9922         libext=lib
9923         # Tell ltmain to make .dll files, not .so files.
9924         shrext_cmds=".dll"
9925         # FIXME: Setting linknames here is a bad hack.
9926         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9927         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9928             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9929           else
9930             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9931           fi~
9932           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9933           linknames='
9934         # The linker will not automatically build a static lib if we build a DLL.
9935         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9936         enable_shared_with_static_runtimes=yes
9937         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9938         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939         # Don't use ranlib
9940         old_postinstall_cmds='chmod 644 $oldlib'
9941         postlink_cmds='lt_outputfile="@OUTPUT@"~
9942           lt_tool_outputfile="@TOOL_OUTPUT@"~
9943           case $lt_outputfile in
9944             *.exe|*.EXE) ;;
9945             *)
9946               lt_outputfile="$lt_outputfile.exe"
9947               lt_tool_outputfile="$lt_tool_outputfile.exe"
9948               ;;
9949           esac~
9950           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9951             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9952             $RM "$lt_outputfile.manifest";
9953           fi'
9954         ;;
9955       *)
9956         # Assume MSVC wrapper
9957         hardcode_libdir_flag_spec=' '
9958         allow_undefined_flag=unsupported
9959         # Tell ltmain to make .lib files, not .a files.
9960         libext=lib
9961         # Tell ltmain to make .dll files, not .so files.
9962         shrext_cmds=".dll"
9963         # FIXME: Setting linknames here is a bad hack.
9964         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9965         # The linker will automatically build a .lib file if we build a DLL.
9966         old_archive_from_new_cmds='true'
9967         # FIXME: Should let the user specify the lib program.
9968         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9969         enable_shared_with_static_runtimes=yes
9970         ;;
9971       esac
9972       ;;
9973
9974     darwin* | rhapsody*)
9975
9976
9977   archive_cmds_need_lc=no
9978   hardcode_direct=no
9979   hardcode_automatic=yes
9980   hardcode_shlibpath_var=unsupported
9981   if test "$lt_cv_ld_force_load" = "yes"; then
9982     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\"`'
9983
9984   else
9985     whole_archive_flag_spec=''
9986   fi
9987   link_all_deplibs=yes
9988   allow_undefined_flag="$_lt_dar_allow_undefined"
9989   case $cc_basename in
9990      ifort*) _lt_dar_can_shared=yes ;;
9991      *) _lt_dar_can_shared=$GCC ;;
9992   esac
9993   if test "$_lt_dar_can_shared" = "yes"; then
9994     output_verbose_link_cmd=func_echo_all
9995     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9996     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9997     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}"
9998     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}"
9999
10000   else
10001   ld_shlibs=no
10002   fi
10003
10004       ;;
10005
10006     dgux*)
10007       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008       hardcode_libdir_flag_spec='-L$libdir'
10009       hardcode_shlibpath_var=no
10010       ;;
10011
10012     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10013     # support.  Future versions do this automatically, but an explicit c++rt0.o
10014     # does not break anything, and helps significantly (at the cost of a little
10015     # extra space).
10016     freebsd2.2*)
10017       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10018       hardcode_libdir_flag_spec='-R$libdir'
10019       hardcode_direct=yes
10020       hardcode_shlibpath_var=no
10021       ;;
10022
10023     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10024     freebsd2.*)
10025       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10026       hardcode_direct=yes
10027       hardcode_minus_L=yes
10028       hardcode_shlibpath_var=no
10029       ;;
10030
10031     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10032     freebsd* | dragonfly*)
10033       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10034       hardcode_libdir_flag_spec='-R$libdir'
10035       hardcode_direct=yes
10036       hardcode_shlibpath_var=no
10037       ;;
10038
10039     hpux9*)
10040       if test "$GCC" = yes; then
10041         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'
10042       else
10043         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'
10044       fi
10045       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10046       hardcode_libdir_separator=:
10047       hardcode_direct=yes
10048
10049       # hardcode_minus_L: Not really in the search PATH,
10050       # but as the default location of the library.
10051       hardcode_minus_L=yes
10052       export_dynamic_flag_spec='${wl}-E'
10053       ;;
10054
10055     hpux10*)
10056       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10057         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058       else
10059         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10060       fi
10061       if test "$with_gnu_ld" = no; then
10062         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10063         hardcode_libdir_separator=:
10064         hardcode_direct=yes
10065         hardcode_direct_absolute=yes
10066         export_dynamic_flag_spec='${wl}-E'
10067         # hardcode_minus_L: Not really in the search PATH,
10068         # but as the default location of the library.
10069         hardcode_minus_L=yes
10070       fi
10071       ;;
10072
10073     hpux11*)
10074       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10075         case $host_cpu in
10076         hppa*64*)
10077           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10078           ;;
10079         ia64*)
10080           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10081           ;;
10082         *)
10083           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084           ;;
10085         esac
10086       else
10087         case $host_cpu in
10088         hppa*64*)
10089           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090           ;;
10091         ia64*)
10092           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10093           ;;
10094         *)
10095
10096           # Older versions of the 11.00 compiler do not understand -b yet
10097           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10098           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10099 $as_echo_n "checking if $CC understands -b... " >&6; }
10100 if ${lt_cv_prog_compiler__b+:} false; then :
10101   $as_echo_n "(cached) " >&6
10102 else
10103   lt_cv_prog_compiler__b=no
10104    save_LDFLAGS="$LDFLAGS"
10105    LDFLAGS="$LDFLAGS -b"
10106    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108      # The linker can only warn and ignore the option if not recognized
10109      # So say no if there are warnings
10110      if test -s conftest.err; then
10111        # Append any errors to the config.log.
10112        cat conftest.err 1>&5
10113        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115        if diff conftest.exp conftest.er2 >/dev/null; then
10116          lt_cv_prog_compiler__b=yes
10117        fi
10118      else
10119        lt_cv_prog_compiler__b=yes
10120      fi
10121    fi
10122    $RM -r conftest*
10123    LDFLAGS="$save_LDFLAGS"
10124
10125 fi
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10127 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10128
10129 if test x"$lt_cv_prog_compiler__b" = xyes; then
10130     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10131 else
10132     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10133 fi
10134
10135           ;;
10136         esac
10137       fi
10138       if test "$with_gnu_ld" = no; then
10139         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140         hardcode_libdir_separator=:
10141
10142         case $host_cpu in
10143         hppa*64*|ia64*)
10144           hardcode_direct=no
10145           hardcode_shlibpath_var=no
10146           ;;
10147         *)
10148           hardcode_direct=yes
10149           hardcode_direct_absolute=yes
10150           export_dynamic_flag_spec='${wl}-E'
10151
10152           # hardcode_minus_L: Not really in the search PATH,
10153           # but as the default location of the library.
10154           hardcode_minus_L=yes
10155           ;;
10156         esac
10157       fi
10158       ;;
10159
10160     irix5* | irix6* | nonstopux*)
10161       if test "$GCC" = yes; then
10162         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'
10163         # Try to use the -exported_symbol ld option, if it does not
10164         # work, assume that -exports_file does not work either and
10165         # implicitly export all symbols.
10166         # This should be the same for all languages, so no per-tag cache variable.
10167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10168 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10169 if ${lt_cv_irix_exported_symbol+:} false; then :
10170   $as_echo_n "(cached) " >&6
10171 else
10172   save_LDFLAGS="$LDFLAGS"
10173            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10174            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h.  */
10176 int foo (void) { return 0; }
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179   lt_cv_irix_exported_symbol=yes
10180 else
10181   lt_cv_irix_exported_symbol=no
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext \
10184     conftest$ac_exeext conftest.$ac_ext
10185            LDFLAGS="$save_LDFLAGS"
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10188 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10189         if test "$lt_cv_irix_exported_symbol" = yes; then
10190           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'
10191         fi
10192       else
10193         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'
10194         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'
10195       fi
10196       archive_cmds_need_lc='no'
10197       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198       hardcode_libdir_separator=:
10199       inherit_rpath=yes
10200       link_all_deplibs=yes
10201       ;;
10202
10203     netbsd* | netbsdelf*-gnu)
10204       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10205         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10206       else
10207         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10208       fi
10209       hardcode_libdir_flag_spec='-R$libdir'
10210       hardcode_direct=yes
10211       hardcode_shlibpath_var=no
10212       ;;
10213
10214     newsos6)
10215       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216       hardcode_direct=yes
10217       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218       hardcode_libdir_separator=:
10219       hardcode_shlibpath_var=no
10220       ;;
10221
10222     *nto* | *qnx*)
10223       ;;
10224
10225     openbsd*)
10226       if test -f /usr/libexec/ld.so; then
10227         hardcode_direct=yes
10228         hardcode_shlibpath_var=no
10229         hardcode_direct_absolute=yes
10230         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10232           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10233           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234           export_dynamic_flag_spec='${wl}-E'
10235         else
10236           case $host_os in
10237            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10238              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10239              hardcode_libdir_flag_spec='-R$libdir'
10240              ;;
10241            *)
10242              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244              ;;
10245           esac
10246         fi
10247       else
10248         ld_shlibs=no
10249       fi
10250       ;;
10251
10252     os2*)
10253       hardcode_libdir_flag_spec='-L$libdir'
10254       hardcode_minus_L=yes
10255       allow_undefined_flag=unsupported
10256       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'
10257       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10258       ;;
10259
10260     osf3*)
10261       if test "$GCC" = yes; then
10262         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263         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'
10264       else
10265         allow_undefined_flag=' -expect_unresolved \*'
10266         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'
10267       fi
10268       archive_cmds_need_lc='no'
10269       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270       hardcode_libdir_separator=:
10271       ;;
10272
10273     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10274       if test "$GCC" = yes; then
10275         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10276         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'
10277         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278       else
10279         allow_undefined_flag=' -expect_unresolved \*'
10280         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'
10281         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~
10282         $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'
10283
10284         # Both c and cxx compiler support -rpath directly
10285         hardcode_libdir_flag_spec='-rpath $libdir'
10286       fi
10287       archive_cmds_need_lc='no'
10288       hardcode_libdir_separator=:
10289       ;;
10290
10291     solaris*)
10292       no_undefined_flag=' -z defs'
10293       if test "$GCC" = yes; then
10294         wlarc='${wl}'
10295         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297           $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'
10298       else
10299         case `$CC -V 2>&1` in
10300         *"Compilers 5.0"*)
10301           wlarc=''
10302           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10305           ;;
10306         *)
10307           wlarc='${wl}'
10308           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10311           ;;
10312         esac
10313       fi
10314       hardcode_libdir_flag_spec='-R$libdir'
10315       hardcode_shlibpath_var=no
10316       case $host_os in
10317       solaris2.[0-5] | solaris2.[0-5].*) ;;
10318       *)
10319         # The compiler driver will combine and reorder linker options,
10320         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10321         # but is careful enough not to reorder.
10322         # Supported since Solaris 2.6 (maybe 2.5.1?)
10323         if test "$GCC" = yes; then
10324           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10325         else
10326           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10327         fi
10328         ;;
10329       esac
10330       link_all_deplibs=yes
10331       ;;
10332
10333     sunos4*)
10334       if test "x$host_vendor" = xsequent; then
10335         # Use $CC to link under sequent, because it throws in some extra .o
10336         # files that make .init and .fini sections work.
10337         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338       else
10339         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340       fi
10341       hardcode_libdir_flag_spec='-L$libdir'
10342       hardcode_direct=yes
10343       hardcode_minus_L=yes
10344       hardcode_shlibpath_var=no
10345       ;;
10346
10347     sysv4)
10348       case $host_vendor in
10349         sni)
10350           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351           hardcode_direct=yes # is this really true???
10352         ;;
10353         siemens)
10354           ## LD is ld it makes a PLAMLIB
10355           ## CC just makes a GrossModule.
10356           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10357           reload_cmds='$CC -r -o $output$reload_objs'
10358           hardcode_direct=no
10359         ;;
10360         motorola)
10361           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10363         ;;
10364       esac
10365       runpath_var='LD_RUN_PATH'
10366       hardcode_shlibpath_var=no
10367       ;;
10368
10369     sysv4.3*)
10370       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371       hardcode_shlibpath_var=no
10372       export_dynamic_flag_spec='-Bexport'
10373       ;;
10374
10375     sysv4*MP*)
10376       if test -d /usr/nec; then
10377         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378         hardcode_shlibpath_var=no
10379         runpath_var=LD_RUN_PATH
10380         hardcode_runpath_var=yes
10381         ld_shlibs=yes
10382       fi
10383       ;;
10384
10385     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10386       no_undefined_flag='${wl}-z,text'
10387       archive_cmds_need_lc=no
10388       hardcode_shlibpath_var=no
10389       runpath_var='LD_RUN_PATH'
10390
10391       if test "$GCC" = yes; then
10392         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394       else
10395         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397       fi
10398       ;;
10399
10400     sysv5* | sco3.2v5* | sco5v6*)
10401       # Note: We can NOT use -z defs as we might desire, because we do not
10402       # link with -lc, and that would cause any symbols used from libc to
10403       # always be unresolved, which means just about no library would
10404       # ever link correctly.  If we're not using GNU ld we use -z text
10405       # though, which does catch some bad symbols but isn't as heavy-handed
10406       # as -z defs.
10407       no_undefined_flag='${wl}-z,text'
10408       allow_undefined_flag='${wl}-z,nodefs'
10409       archive_cmds_need_lc=no
10410       hardcode_shlibpath_var=no
10411       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10412       hardcode_libdir_separator=':'
10413       link_all_deplibs=yes
10414       export_dynamic_flag_spec='${wl}-Bexport'
10415       runpath_var='LD_RUN_PATH'
10416
10417       if test "$GCC" = yes; then
10418         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420       else
10421         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423       fi
10424       ;;
10425
10426     uts4*)
10427       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428       hardcode_libdir_flag_spec='-L$libdir'
10429       hardcode_shlibpath_var=no
10430       ;;
10431
10432     *)
10433       ld_shlibs=no
10434       ;;
10435     esac
10436
10437     if test x$host_vendor = xsni; then
10438       case $host in
10439       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10440         export_dynamic_flag_spec='${wl}-Blargedynsym'
10441         ;;
10442       esac
10443     fi
10444   fi
10445
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447 $as_echo "$ld_shlibs" >&6; }
10448 test "$ld_shlibs" = no && can_build_shared=no
10449
10450 with_gnu_ld=$with_gnu_ld
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466 #
10467 # Do we need to explicitly link libc?
10468 #
10469 case "x$archive_cmds_need_lc" in
10470 x|xyes)
10471   # Assume -lc should be added
10472   archive_cmds_need_lc=yes
10473
10474   if test "$enable_shared" = yes && test "$GCC" = yes; then
10475     case $archive_cmds in
10476     *'~'*)
10477       # FIXME: we may have to deal with multi-command sequences.
10478       ;;
10479     '$CC '*)
10480       # Test whether the compiler implicitly links with -lc since on some
10481       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10482       # to ld, don't add -lc before -lgcc.
10483       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10485 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   $RM conftest*
10489         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10490
10491         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10492   (eval $ac_compile) 2>&5
10493   ac_status=$?
10494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495   test $ac_status = 0; } 2>conftest.err; then
10496           soname=conftest
10497           lib=conftest
10498           libobjs=conftest.$ac_objext
10499           deplibs=
10500           wl=$lt_prog_compiler_wl
10501           pic_flag=$lt_prog_compiler_pic
10502           compiler_flags=-v
10503           linker_flags=-v
10504           verstring=
10505           output_objdir=.
10506           libname=conftest
10507           lt_save_allow_undefined_flag=$allow_undefined_flag
10508           allow_undefined_flag=
10509           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10510   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10511   ac_status=$?
10512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513   test $ac_status = 0; }
10514           then
10515             lt_cv_archive_cmds_need_lc=no
10516           else
10517             lt_cv_archive_cmds_need_lc=yes
10518           fi
10519           allow_undefined_flag=$lt_save_allow_undefined_flag
10520         else
10521           cat conftest.err 1>&5
10522         fi
10523         $RM conftest*
10524
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10528       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10529       ;;
10530     esac
10531   fi
10532   ;;
10533 esac
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10688
10689 if test "$GCC" = yes; then
10690   case $host_os in
10691     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10692     *) lt_awk_arg="/^libraries:/" ;;
10693   esac
10694   case $host_os in
10695     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10696     *) lt_sed_strip_eq="s,=/,/,g" ;;
10697   esac
10698   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10699   case $lt_search_path_spec in
10700   *\;*)
10701     # if the path contains ";" then we assume it to be the separator
10702     # otherwise default to the standard path separator (i.e. ":") - it is
10703     # assumed that no part of a normal pathname contains ";" but that should
10704     # okay in the real world where ";" in dirpaths is itself problematic.
10705     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10706     ;;
10707   *)
10708     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10709     ;;
10710   esac
10711   # Ok, now we have the path, separated by spaces, we can step through it
10712   # and add multilib dir if necessary.
10713   lt_tmp_lt_search_path_spec=
10714   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10715   for lt_sys_path in $lt_search_path_spec; do
10716     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10717       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10718     else
10719       test -d "$lt_sys_path" && \
10720         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10721     fi
10722   done
10723   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10724 BEGIN {RS=" "; FS="/|\n";} {
10725   lt_foo="";
10726   lt_count=0;
10727   for (lt_i = NF; lt_i > 0; lt_i--) {
10728     if ($lt_i != "" && $lt_i != ".") {
10729       if ($lt_i == "..") {
10730         lt_count++;
10731       } else {
10732         if (lt_count == 0) {
10733           lt_foo="/" $lt_i lt_foo;
10734         } else {
10735           lt_count--;
10736         }
10737       }
10738     }
10739   }
10740   if (lt_foo != "") { lt_freq[lt_foo]++; }
10741   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10742 }'`
10743   # AWK program above erroneously prepends '/' to C:/dos/paths
10744   # for these hosts.
10745   case $host_os in
10746     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10747       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10748   esac
10749   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10750 else
10751   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10752 fi
10753 library_names_spec=
10754 libname_spec='lib$name'
10755 soname_spec=
10756 shrext_cmds=".so"
10757 postinstall_cmds=
10758 postuninstall_cmds=
10759 finish_cmds=
10760 finish_eval=
10761 shlibpath_var=
10762 shlibpath_overrides_runpath=unknown
10763 version_type=none
10764 dynamic_linker="$host_os ld.so"
10765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10766 need_lib_prefix=unknown
10767 hardcode_into_libs=no
10768
10769 # when you set need_version to no, make sure it does not cause -set_version
10770 # flags to be left without arguments
10771 need_version=unknown
10772
10773 case $host_os in
10774 aix3*)
10775   version_type=linux # correct to gnu/linux during the next big refactor
10776   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10777   shlibpath_var=LIBPATH
10778
10779   # AIX 3 has no versioning support, so we append a major version to the name.
10780   soname_spec='${libname}${release}${shared_ext}$major'
10781   ;;
10782
10783 aix[4-9]*)
10784   version_type=linux # correct to gnu/linux during the next big refactor
10785   need_lib_prefix=no
10786   need_version=no
10787   hardcode_into_libs=yes
10788   if test "$host_cpu" = ia64; then
10789     # AIX 5 supports IA64
10790     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10791     shlibpath_var=LD_LIBRARY_PATH
10792   else
10793     # With GCC up to 2.95.x, collect2 would create an import file
10794     # for dependence libraries.  The import file would start with
10795     # the line `#! .'.  This would cause the generated library to
10796     # depend on `.', always an invalid library.  This was fixed in
10797     # development snapshots of GCC prior to 3.0.
10798     case $host_os in
10799       aix4 | aix4.[01] | aix4.[01].*)
10800       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10801            echo ' yes '
10802            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10803         :
10804       else
10805         can_build_shared=no
10806       fi
10807       ;;
10808     esac
10809     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10810     # soname into executable. Probably we can add versioning support to
10811     # collect2, so additional links can be useful in future.
10812     if test "$aix_use_runtimelinking" = yes; then
10813       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10814       # instead of lib<name>.a to let people know that these are not
10815       # typical AIX shared libraries.
10816       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817     else
10818       # We preserve .a as extension for shared libraries through AIX4.2
10819       # and later when we are not doing run time linking.
10820       library_names_spec='${libname}${release}.a $libname.a'
10821       soname_spec='${libname}${release}${shared_ext}$major'
10822     fi
10823     shlibpath_var=LIBPATH
10824   fi
10825   ;;
10826
10827 amigaos*)
10828   case $host_cpu in
10829   powerpc)
10830     # Since July 2007 AmigaOS4 officially supports .so libraries.
10831     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833     ;;
10834   m68k)
10835     library_names_spec='$libname.ixlibrary $libname.a'
10836     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10837     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'
10838     ;;
10839   esac
10840   ;;
10841
10842 beos*)
10843   library_names_spec='${libname}${shared_ext}'
10844   dynamic_linker="$host_os ld.so"
10845   shlibpath_var=LIBRARY_PATH
10846   ;;
10847
10848 bsdi[45]*)
10849   version_type=linux # correct to gnu/linux during the next big refactor
10850   need_version=no
10851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852   soname_spec='${libname}${release}${shared_ext}$major'
10853   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10854   shlibpath_var=LD_LIBRARY_PATH
10855   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10856   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10857   # the default ld.so.conf also contains /usr/contrib/lib and
10858   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10859   # libtool to hard-code these into programs
10860   ;;
10861
10862 cygwin* | mingw* | pw32* | cegcc*)
10863   version_type=windows
10864   shrext_cmds=".dll"
10865   need_version=no
10866   need_lib_prefix=no
10867
10868   case $GCC,$cc_basename in
10869   yes,*)
10870     # gcc
10871     library_names_spec='$libname.dll.a'
10872     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10873     postinstall_cmds='base_file=`basename \${file}`~
10874       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10875       dldir=$destdir/`dirname \$dlpath`~
10876       test -d \$dldir || mkdir -p \$dldir~
10877       $install_prog $dir/$dlname \$dldir/$dlname~
10878       chmod a+x \$dldir/$dlname~
10879       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10880         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10881       fi'
10882     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10883       dlpath=$dir/\$dldll~
10884        $RM \$dlpath'
10885     shlibpath_overrides_runpath=yes
10886
10887     case $host_os in
10888     cygwin*)
10889       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10890       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10891
10892       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10893       ;;
10894     mingw* | cegcc*)
10895       # MinGW DLLs use traditional 'lib' prefix
10896       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10897       ;;
10898     pw32*)
10899       # pw32 DLLs use 'pw' prefix rather than 'lib'
10900       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901       ;;
10902     esac
10903     dynamic_linker='Win32 ld.exe'
10904     ;;
10905
10906   *,cl*)
10907     # Native MSVC
10908     libname_spec='$name'
10909     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10910     library_names_spec='${libname}.dll.lib'
10911
10912     case $build_os in
10913     mingw*)
10914       sys_lib_search_path_spec=
10915       lt_save_ifs=$IFS
10916       IFS=';'
10917       for lt_path in $LIB
10918       do
10919         IFS=$lt_save_ifs
10920         # Let DOS variable expansion print the short 8.3 style file name.
10921         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10922         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10923       done
10924       IFS=$lt_save_ifs
10925       # Convert to MSYS style.
10926       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10927       ;;
10928     cygwin*)
10929       # Convert to unix form, then to dos form, then back to unix form
10930       # but this time dos style (no spaces!) so that the unix form looks
10931       # like /cygdrive/c/PROGRA~1:/cygdr...
10932       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10933       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10934       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10935       ;;
10936     *)
10937       sys_lib_search_path_spec="$LIB"
10938       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10939         # It is most probably a Windows format PATH.
10940         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10941       else
10942         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10943       fi
10944       # FIXME: find the short name or the path components, as spaces are
10945       # common. (e.g. "Program Files" -> "PROGRA~1")
10946       ;;
10947     esac
10948
10949     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950     postinstall_cmds='base_file=`basename \${file}`~
10951       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10952       dldir=$destdir/`dirname \$dlpath`~
10953       test -d \$dldir || mkdir -p \$dldir~
10954       $install_prog $dir/$dlname \$dldir/$dlname'
10955     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10956       dlpath=$dir/\$dldll~
10957        $RM \$dlpath'
10958     shlibpath_overrides_runpath=yes
10959     dynamic_linker='Win32 link.exe'
10960     ;;
10961
10962   *)
10963     # Assume MSVC wrapper
10964     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10965     dynamic_linker='Win32 ld.exe'
10966     ;;
10967   esac
10968   # FIXME: first we should search . and the directory the executable is in
10969   shlibpath_var=PATH
10970   ;;
10971
10972 darwin* | rhapsody*)
10973   dynamic_linker="$host_os dyld"
10974   version_type=darwin
10975   need_lib_prefix=no
10976   need_version=no
10977   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10978   soname_spec='${libname}${release}${major}$shared_ext'
10979   shlibpath_overrides_runpath=yes
10980   shlibpath_var=DYLD_LIBRARY_PATH
10981   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10982
10983   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10984   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10985   ;;
10986
10987 dgux*)
10988   version_type=linux # correct to gnu/linux during the next big refactor
10989   need_lib_prefix=no
10990   need_version=no
10991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10992   soname_spec='${libname}${release}${shared_ext}$major'
10993   shlibpath_var=LD_LIBRARY_PATH
10994   ;;
10995
10996 freebsd* | dragonfly*)
10997   # DragonFly does not have aout.  When/if they implement a new
10998   # versioning mechanism, adjust this.
10999   if test -x /usr/bin/objformat; then
11000     objformat=`/usr/bin/objformat`
11001   else
11002     case $host_os in
11003     freebsd[23].*) objformat=aout ;;
11004     *) objformat=elf ;;
11005     esac
11006   fi
11007   version_type=freebsd-$objformat
11008   case $version_type in
11009     freebsd-elf*)
11010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11011       need_version=no
11012       need_lib_prefix=no
11013       ;;
11014     freebsd-*)
11015       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11016       need_version=yes
11017       ;;
11018   esac
11019   shlibpath_var=LD_LIBRARY_PATH
11020   case $host_os in
11021   freebsd2.*)
11022     shlibpath_overrides_runpath=yes
11023     ;;
11024   freebsd3.[01]* | freebsdelf3.[01]*)
11025     shlibpath_overrides_runpath=yes
11026     hardcode_into_libs=yes
11027     ;;
11028   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11029   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11030     shlibpath_overrides_runpath=no
11031     hardcode_into_libs=yes
11032     ;;
11033   *) # from 4.6 on, and DragonFly
11034     shlibpath_overrides_runpath=yes
11035     hardcode_into_libs=yes
11036     ;;
11037   esac
11038   ;;
11039
11040 gnu*)
11041   version_type=linux # correct to gnu/linux during the next big refactor
11042   need_lib_prefix=no
11043   need_version=no
11044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11045   soname_spec='${libname}${release}${shared_ext}$major'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   shlibpath_overrides_runpath=no
11048   hardcode_into_libs=yes
11049   ;;
11050
11051 haiku*)
11052   version_type=linux # correct to gnu/linux during the next big refactor
11053   need_lib_prefix=no
11054   need_version=no
11055   dynamic_linker="$host_os runtime_loader"
11056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11057   soname_spec='${libname}${release}${shared_ext}$major'
11058   shlibpath_var=LIBRARY_PATH
11059   shlibpath_overrides_runpath=yes
11060   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11061   hardcode_into_libs=yes
11062   ;;
11063
11064 hpux9* | hpux10* | hpux11*)
11065   # Give a soname corresponding to the major version so that dld.sl refuses to
11066   # link against other versions.
11067   version_type=sunos
11068   need_lib_prefix=no
11069   need_version=no
11070   case $host_cpu in
11071   ia64*)
11072     shrext_cmds='.so'
11073     hardcode_into_libs=yes
11074     dynamic_linker="$host_os dld.so"
11075     shlibpath_var=LD_LIBRARY_PATH
11076     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078     soname_spec='${libname}${release}${shared_ext}$major'
11079     if test "X$HPUX_IA64_MODE" = X32; then
11080       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11081     else
11082       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11083     fi
11084     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11085     ;;
11086   hppa*64*)
11087     shrext_cmds='.sl'
11088     hardcode_into_libs=yes
11089     dynamic_linker="$host_os dld.sl"
11090     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11091     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093     soname_spec='${libname}${release}${shared_ext}$major'
11094     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11095     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11096     ;;
11097   *)
11098     shrext_cmds='.sl'
11099     dynamic_linker="$host_os dld.sl"
11100     shlibpath_var=SHLIB_PATH
11101     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103     soname_spec='${libname}${release}${shared_ext}$major'
11104     ;;
11105   esac
11106   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11107   postinstall_cmds='chmod 555 $lib'
11108   # or fails outright, so override atomically:
11109   install_override_mode=555
11110   ;;
11111
11112 interix[3-9]*)
11113   version_type=linux # correct to gnu/linux during the next big refactor
11114   need_lib_prefix=no
11115   need_version=no
11116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11117   soname_spec='${libname}${release}${shared_ext}$major'
11118   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11119   shlibpath_var=LD_LIBRARY_PATH
11120   shlibpath_overrides_runpath=no
11121   hardcode_into_libs=yes
11122   ;;
11123
11124 irix5* | irix6* | nonstopux*)
11125   case $host_os in
11126     nonstopux*) version_type=nonstopux ;;
11127     *)
11128         if test "$lt_cv_prog_gnu_ld" = yes; then
11129                 version_type=linux # correct to gnu/linux during the next big refactor
11130         else
11131                 version_type=irix
11132         fi ;;
11133   esac
11134   need_lib_prefix=no
11135   need_version=no
11136   soname_spec='${libname}${release}${shared_ext}$major'
11137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11138   case $host_os in
11139   irix5* | nonstopux*)
11140     libsuff= shlibsuff=
11141     ;;
11142   *)
11143     case $LD in # libtool.m4 will add one of these switches to LD
11144     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11145       libsuff= shlibsuff= libmagic=32-bit;;
11146     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11147       libsuff=32 shlibsuff=N32 libmagic=N32;;
11148     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11149       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11150     *) libsuff= shlibsuff= libmagic=never-match;;
11151     esac
11152     ;;
11153   esac
11154   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11155   shlibpath_overrides_runpath=no
11156   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11157   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11158   hardcode_into_libs=yes
11159   ;;
11160
11161 # No shared lib support for Linux oldld, aout, or coff.
11162 linux*oldld* | linux*aout* | linux*coff*)
11163   dynamic_linker=no
11164   ;;
11165
11166 linux*android*)
11167   version_type=none # Android doesn't support versioned libraries.
11168   need_lib_prefix=no
11169   need_version=no
11170   library_names_spec='$libname$release$shared_ext'
11171   soname_spec='$libname$release$shared_ext'
11172   finish_cmds=
11173   shlibpath_var=LD_LIBRARY_PATH
11174   shlibpath_overrides_runpath=yes
11175
11176   # This implies no fast_install, which is unacceptable.
11177   # Some rework will be needed to allow for fast_install
11178   # before this can be enabled.
11179   hardcode_into_libs=yes
11180
11181   dynamic_linker='Android linker'
11182   # Don't embed -rpath directories since the linker doesn't support them.
11183   hardcode_libdir_flag_spec='-L$libdir'
11184   ;;
11185
11186 # This must be glibc/ELF.
11187 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11188   version_type=linux # correct to gnu/linux during the next big refactor
11189   need_lib_prefix=no
11190   need_version=no
11191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192   soname_spec='${libname}${release}${shared_ext}$major'
11193   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11194   shlibpath_var=LD_LIBRARY_PATH
11195   shlibpath_overrides_runpath=no
11196
11197   # Some binutils ld are patched to set DT_RUNPATH
11198   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11199   $as_echo_n "(cached) " >&6
11200 else
11201   lt_cv_shlibpath_overrides_runpath=no
11202     save_LDFLAGS=$LDFLAGS
11203     save_libdir=$libdir
11204     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11205          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11206     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h.  */
11208
11209 int
11210 main ()
11211 {
11212
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 if ac_fn_c_try_link "$LINENO"; then :
11218   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11219   lt_cv_shlibpath_overrides_runpath=yes
11220 fi
11221 fi
11222 rm -f core conftest.err conftest.$ac_objext \
11223     conftest$ac_exeext conftest.$ac_ext
11224     LDFLAGS=$save_LDFLAGS
11225     libdir=$save_libdir
11226
11227 fi
11228
11229   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11230
11231   # This implies no fast_install, which is unacceptable.
11232   # Some rework will be needed to allow for fast_install
11233   # before this can be enabled.
11234   hardcode_into_libs=yes
11235
11236   # Append ld.so.conf contents to the search path
11237   if test -f /etc/ld.so.conf; then
11238     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' ' '`
11239     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11240   fi
11241
11242   # We used to test for /lib/ld.so.1 and disable shared libraries on
11243   # powerpc, because MkLinux only supported shared libraries with the
11244   # GNU dynamic linker.  Since this was broken with cross compilers,
11245   # most powerpc-linux boxes support dynamic linking these days and
11246   # people can always --disable-shared, the test was removed, and we
11247   # assume the GNU/Linux dynamic linker is in use.
11248   dynamic_linker='GNU/Linux ld.so'
11249   ;;
11250
11251 netbsdelf*-gnu)
11252   version_type=linux
11253   need_lib_prefix=no
11254   need_version=no
11255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11256   soname_spec='${libname}${release}${shared_ext}$major'
11257   shlibpath_var=LD_LIBRARY_PATH
11258   shlibpath_overrides_runpath=no
11259   hardcode_into_libs=yes
11260   dynamic_linker='NetBSD ld.elf_so'
11261   ;;
11262
11263 netbsd*)
11264   version_type=sunos
11265   need_lib_prefix=no
11266   need_version=no
11267   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11269     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11270     dynamic_linker='NetBSD (a.out) ld.so'
11271   else
11272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11273     soname_spec='${libname}${release}${shared_ext}$major'
11274     dynamic_linker='NetBSD ld.elf_so'
11275   fi
11276   shlibpath_var=LD_LIBRARY_PATH
11277   shlibpath_overrides_runpath=yes
11278   hardcode_into_libs=yes
11279   ;;
11280
11281 newsos6)
11282   version_type=linux # correct to gnu/linux during the next big refactor
11283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11284   shlibpath_var=LD_LIBRARY_PATH
11285   shlibpath_overrides_runpath=yes
11286   ;;
11287
11288 *nto* | *qnx*)
11289   version_type=qnx
11290   need_lib_prefix=no
11291   need_version=no
11292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293   soname_spec='${libname}${release}${shared_ext}$major'
11294   shlibpath_var=LD_LIBRARY_PATH
11295   shlibpath_overrides_runpath=no
11296   hardcode_into_libs=yes
11297   dynamic_linker='ldqnx.so'
11298   ;;
11299
11300 openbsd*)
11301   version_type=sunos
11302   sys_lib_dlsearch_path_spec="/usr/lib"
11303   need_lib_prefix=no
11304   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11305   case $host_os in
11306     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11307     *)                          need_version=no  ;;
11308   esac
11309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11310   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11311   shlibpath_var=LD_LIBRARY_PATH
11312   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11313     case $host_os in
11314       openbsd2.[89] | openbsd2.[89].*)
11315         shlibpath_overrides_runpath=no
11316         ;;
11317       *)
11318         shlibpath_overrides_runpath=yes
11319         ;;
11320       esac
11321   else
11322     shlibpath_overrides_runpath=yes
11323   fi
11324   ;;
11325
11326 os2*)
11327   libname_spec='$name'
11328   shrext_cmds=".dll"
11329   need_lib_prefix=no
11330   library_names_spec='$libname${shared_ext} $libname.a'
11331   dynamic_linker='OS/2 ld.exe'
11332   shlibpath_var=LIBPATH
11333   ;;
11334
11335 osf3* | osf4* | osf5*)
11336   version_type=osf
11337   need_lib_prefix=no
11338   need_version=no
11339   soname_spec='${libname}${release}${shared_ext}$major'
11340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341   shlibpath_var=LD_LIBRARY_PATH
11342   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11343   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11344   ;;
11345
11346 rdos*)
11347   dynamic_linker=no
11348   ;;
11349
11350 solaris*)
11351   version_type=linux # correct to gnu/linux during the next big refactor
11352   need_lib_prefix=no
11353   need_version=no
11354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355   soname_spec='${libname}${release}${shared_ext}$major'
11356   shlibpath_var=LD_LIBRARY_PATH
11357   shlibpath_overrides_runpath=yes
11358   hardcode_into_libs=yes
11359   # ldd complains unless libraries are executable
11360   postinstall_cmds='chmod +x $lib'
11361   ;;
11362
11363 sunos4*)
11364   version_type=sunos
11365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11366   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11367   shlibpath_var=LD_LIBRARY_PATH
11368   shlibpath_overrides_runpath=yes
11369   if test "$with_gnu_ld" = yes; then
11370     need_lib_prefix=no
11371   fi
11372   need_version=yes
11373   ;;
11374
11375 sysv4 | sysv4.3*)
11376   version_type=linux # correct to gnu/linux during the next big refactor
11377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378   soname_spec='${libname}${release}${shared_ext}$major'
11379   shlibpath_var=LD_LIBRARY_PATH
11380   case $host_vendor in
11381     sni)
11382       shlibpath_overrides_runpath=no
11383       need_lib_prefix=no
11384       runpath_var=LD_RUN_PATH
11385       ;;
11386     siemens)
11387       need_lib_prefix=no
11388       ;;
11389     motorola)
11390       need_lib_prefix=no
11391       need_version=no
11392       shlibpath_overrides_runpath=no
11393       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11394       ;;
11395   esac
11396   ;;
11397
11398 sysv4*MP*)
11399   if test -d /usr/nec ;then
11400     version_type=linux # correct to gnu/linux during the next big refactor
11401     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11402     soname_spec='$libname${shared_ext}.$major'
11403     shlibpath_var=LD_LIBRARY_PATH
11404   fi
11405   ;;
11406
11407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11408   version_type=freebsd-elf
11409   need_lib_prefix=no
11410   need_version=no
11411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11412   soname_spec='${libname}${release}${shared_ext}$major'
11413   shlibpath_var=LD_LIBRARY_PATH
11414   shlibpath_overrides_runpath=yes
11415   hardcode_into_libs=yes
11416   if test "$with_gnu_ld" = yes; then
11417     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11418   else
11419     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11420     case $host_os in
11421       sco3.2v5*)
11422         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11423         ;;
11424     esac
11425   fi
11426   sys_lib_dlsearch_path_spec='/usr/lib'
11427   ;;
11428
11429 tpf*)
11430   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11431   version_type=linux # correct to gnu/linux during the next big refactor
11432   need_lib_prefix=no
11433   need_version=no
11434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435   shlibpath_var=LD_LIBRARY_PATH
11436   shlibpath_overrides_runpath=no
11437   hardcode_into_libs=yes
11438   ;;
11439
11440 uts4*)
11441   version_type=linux # correct to gnu/linux during the next big refactor
11442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443   soname_spec='${libname}${release}${shared_ext}$major'
11444   shlibpath_var=LD_LIBRARY_PATH
11445   ;;
11446
11447 *)
11448   dynamic_linker=no
11449   ;;
11450 esac
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11452 $as_echo "$dynamic_linker" >&6; }
11453 test "$dynamic_linker" = no && can_build_shared=no
11454
11455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11456 if test "$GCC" = yes; then
11457   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11458 fi
11459
11460 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11461   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11462 fi
11463 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11464   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11465 fi
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11559 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11560 hardcode_action=
11561 if test -n "$hardcode_libdir_flag_spec" ||
11562    test -n "$runpath_var" ||
11563    test "X$hardcode_automatic" = "Xyes" ; then
11564
11565   # We can hardcode non-existent directories.
11566   if test "$hardcode_direct" != no &&
11567      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11568      # have to relink, otherwise we might link with an installed library
11569      # when we should be linking with a yet-to-be-installed one
11570      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11571      test "$hardcode_minus_L" != no; then
11572     # Linking always hardcodes the temporary library directory.
11573     hardcode_action=relink
11574   else
11575     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11576     hardcode_action=immediate
11577   fi
11578 else
11579   # We cannot hardcode anything, or else we can only hardcode existing
11580   # directories.
11581   hardcode_action=unsupported
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11584 $as_echo "$hardcode_action" >&6; }
11585
11586 if test "$hardcode_action" = relink ||
11587    test "$inherit_rpath" = yes; then
11588   # Fast installation is not supported
11589   enable_fast_install=no
11590 elif test "$shlibpath_overrides_runpath" = yes ||
11591      test "$enable_shared" = no; then
11592   # Fast installation is not necessary
11593   enable_fast_install=needless
11594 fi
11595
11596
11597
11598
11599
11600
11601   if test "x$enable_dlopen" != xyes; then
11602   enable_dlopen=unknown
11603   enable_dlopen_self=unknown
11604   enable_dlopen_self_static=unknown
11605 else
11606   lt_cv_dlopen=no
11607   lt_cv_dlopen_libs=
11608
11609   case $host_os in
11610   beos*)
11611     lt_cv_dlopen="load_add_on"
11612     lt_cv_dlopen_libs=
11613     lt_cv_dlopen_self=yes
11614     ;;
11615
11616   mingw* | pw32* | cegcc*)
11617     lt_cv_dlopen="LoadLibrary"
11618     lt_cv_dlopen_libs=
11619     ;;
11620
11621   cygwin*)
11622     lt_cv_dlopen="dlopen"
11623     lt_cv_dlopen_libs=
11624     ;;
11625
11626   darwin*)
11627   # if libdl is installed we need to link against it
11628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11629 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11630 if ${ac_cv_lib_dl_dlopen+:} false; then :
11631   $as_echo_n "(cached) " >&6
11632 else
11633   ac_check_lib_save_LIBS=$LIBS
11634 LIBS="-ldl  $LIBS"
11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h.  */
11637
11638 /* Override any GCC internal prototype to avoid an error.
11639    Use char because int might match the return type of a GCC
11640    builtin and then its argument prototype would still apply.  */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char dlopen ();
11645 int
11646 main ()
11647 {
11648 return dlopen ();
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 if ac_fn_c_try_link "$LINENO"; then :
11654   ac_cv_lib_dl_dlopen=yes
11655 else
11656   ac_cv_lib_dl_dlopen=no
11657 fi
11658 rm -f core conftest.err conftest.$ac_objext \
11659     conftest$ac_exeext conftest.$ac_ext
11660 LIBS=$ac_check_lib_save_LIBS
11661 fi
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11663 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11664 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11665   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11666 else
11667
11668     lt_cv_dlopen="dyld"
11669     lt_cv_dlopen_libs=
11670     lt_cv_dlopen_self=yes
11671
11672 fi
11673
11674     ;;
11675
11676   *)
11677     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11678 if test "x$ac_cv_func_shl_load" = xyes; then :
11679   lt_cv_dlopen="shl_load"
11680 else
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11682 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11683 if ${ac_cv_lib_dld_shl_load+:} false; then :
11684   $as_echo_n "(cached) " >&6
11685 else
11686   ac_check_lib_save_LIBS=$LIBS
11687 LIBS="-ldld  $LIBS"
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h.  */
11690
11691 /* Override any GCC internal prototype to avoid an error.
11692    Use char because int might match the return type of a GCC
11693    builtin and then its argument prototype would still apply.  */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 char shl_load ();
11698 int
11699 main ()
11700 {
11701 return shl_load ();
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 if ac_fn_c_try_link "$LINENO"; then :
11707   ac_cv_lib_dld_shl_load=yes
11708 else
11709   ac_cv_lib_dld_shl_load=no
11710 fi
11711 rm -f core conftest.err conftest.$ac_objext \
11712     conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11716 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11717 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11718   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11719 else
11720   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11721 if test "x$ac_cv_func_dlopen" = xyes; then :
11722   lt_cv_dlopen="dlopen"
11723 else
11724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11725 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11726 if ${ac_cv_lib_dl_dlopen+:} false; then :
11727   $as_echo_n "(cached) " >&6
11728 else
11729   ac_check_lib_save_LIBS=$LIBS
11730 LIBS="-ldl  $LIBS"
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h.  */
11733
11734 /* Override any GCC internal prototype to avoid an error.
11735    Use char because int might match the return type of a GCC
11736    builtin and then its argument prototype would still apply.  */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 char dlopen ();
11741 int
11742 main ()
11743 {
11744 return dlopen ();
11745   ;
11746   return 0;
11747 }
11748 _ACEOF
11749 if ac_fn_c_try_link "$LINENO"; then :
11750   ac_cv_lib_dl_dlopen=yes
11751 else
11752   ac_cv_lib_dl_dlopen=no
11753 fi
11754 rm -f core conftest.err conftest.$ac_objext \
11755     conftest$ac_exeext conftest.$ac_ext
11756 LIBS=$ac_check_lib_save_LIBS
11757 fi
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11759 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11760 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11761   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11762 else
11763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11764 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11765 if ${ac_cv_lib_svld_dlopen+:} false; then :
11766   $as_echo_n "(cached) " >&6
11767 else
11768   ac_check_lib_save_LIBS=$LIBS
11769 LIBS="-lsvld  $LIBS"
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h.  */
11772
11773 /* Override any GCC internal prototype to avoid an error.
11774    Use char because int might match the return type of a GCC
11775    builtin and then its argument prototype would still apply.  */
11776 #ifdef __cplusplus
11777 extern "C"
11778 #endif
11779 char dlopen ();
11780 int
11781 main ()
11782 {
11783 return dlopen ();
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 if ac_fn_c_try_link "$LINENO"; then :
11789   ac_cv_lib_svld_dlopen=yes
11790 else
11791   ac_cv_lib_svld_dlopen=no
11792 fi
11793 rm -f core conftest.err conftest.$ac_objext \
11794     conftest$ac_exeext conftest.$ac_ext
11795 LIBS=$ac_check_lib_save_LIBS
11796 fi
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11798 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11799 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11800   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11801 else
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11803 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11804 if ${ac_cv_lib_dld_dld_link+:} false; then :
11805   $as_echo_n "(cached) " >&6
11806 else
11807   ac_check_lib_save_LIBS=$LIBS
11808 LIBS="-ldld  $LIBS"
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h.  */
11811
11812 /* Override any GCC internal prototype to avoid an error.
11813    Use char because int might match the return type of a GCC
11814    builtin and then its argument prototype would still apply.  */
11815 #ifdef __cplusplus
11816 extern "C"
11817 #endif
11818 char dld_link ();
11819 int
11820 main ()
11821 {
11822 return dld_link ();
11823   ;
11824   return 0;
11825 }
11826 _ACEOF
11827 if ac_fn_c_try_link "$LINENO"; then :
11828   ac_cv_lib_dld_dld_link=yes
11829 else
11830   ac_cv_lib_dld_dld_link=no
11831 fi
11832 rm -f core conftest.err conftest.$ac_objext \
11833     conftest$ac_exeext conftest.$ac_ext
11834 LIBS=$ac_check_lib_save_LIBS
11835 fi
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11837 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11838 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11839   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11840 fi
11841
11842
11843 fi
11844
11845
11846 fi
11847
11848
11849 fi
11850
11851
11852 fi
11853
11854
11855 fi
11856
11857     ;;
11858   esac
11859
11860   if test "x$lt_cv_dlopen" != xno; then
11861     enable_dlopen=yes
11862   else
11863     enable_dlopen=no
11864   fi
11865
11866   case $lt_cv_dlopen in
11867   dlopen)
11868     save_CPPFLAGS="$CPPFLAGS"
11869     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11870
11871     save_LDFLAGS="$LDFLAGS"
11872     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11873
11874     save_LIBS="$LIBS"
11875     LIBS="$lt_cv_dlopen_libs $LIBS"
11876
11877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11878 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11879 if ${lt_cv_dlopen_self+:} false; then :
11880   $as_echo_n "(cached) " >&6
11881 else
11882           if test "$cross_compiling" = yes; then :
11883   lt_cv_dlopen_self=cross
11884 else
11885   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11886   lt_status=$lt_dlunknown
11887   cat > conftest.$ac_ext <<_LT_EOF
11888 #line $LINENO "configure"
11889 #include "confdefs.h"
11890
11891 #if HAVE_DLFCN_H
11892 #include <dlfcn.h>
11893 #endif
11894
11895 #include <stdio.h>
11896
11897 #ifdef RTLD_GLOBAL
11898 #  define LT_DLGLOBAL           RTLD_GLOBAL
11899 #else
11900 #  ifdef DL_GLOBAL
11901 #    define LT_DLGLOBAL         DL_GLOBAL
11902 #  else
11903 #    define LT_DLGLOBAL         0
11904 #  endif
11905 #endif
11906
11907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11908    find out it does not work in some platform. */
11909 #ifndef LT_DLLAZY_OR_NOW
11910 #  ifdef RTLD_LAZY
11911 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11912 #  else
11913 #    ifdef DL_LAZY
11914 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11915 #    else
11916 #      ifdef RTLD_NOW
11917 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11918 #      else
11919 #        ifdef DL_NOW
11920 #          define LT_DLLAZY_OR_NOW      DL_NOW
11921 #        else
11922 #          define LT_DLLAZY_OR_NOW      0
11923 #        endif
11924 #      endif
11925 #    endif
11926 #  endif
11927 #endif
11928
11929 /* When -fvisbility=hidden is used, assume the code has been annotated
11930    correspondingly for the symbols needed.  */
11931 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11932 int fnord () __attribute__((visibility("default")));
11933 #endif
11934
11935 int fnord () { return 42; }
11936 int main ()
11937 {
11938   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11939   int status = $lt_dlunknown;
11940
11941   if (self)
11942     {
11943       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11944       else
11945         {
11946           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11947           else puts (dlerror ());
11948         }
11949       /* dlclose (self); */
11950     }
11951   else
11952     puts (dlerror ());
11953
11954   return status;
11955 }
11956 _LT_EOF
11957   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11958   (eval $ac_link) 2>&5
11959   ac_status=$?
11960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11961   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11962     (./conftest; exit; ) >&5 2>/dev/null
11963     lt_status=$?
11964     case x$lt_status in
11965       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11966       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11967       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11968     esac
11969   else :
11970     # compilation failed
11971     lt_cv_dlopen_self=no
11972   fi
11973 fi
11974 rm -fr conftest*
11975
11976
11977 fi
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11979 $as_echo "$lt_cv_dlopen_self" >&6; }
11980
11981     if test "x$lt_cv_dlopen_self" = xyes; then
11982       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11983       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11984 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11985 if ${lt_cv_dlopen_self_static+:} false; then :
11986   $as_echo_n "(cached) " >&6
11987 else
11988           if test "$cross_compiling" = yes; then :
11989   lt_cv_dlopen_self_static=cross
11990 else
11991   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11992   lt_status=$lt_dlunknown
11993   cat > conftest.$ac_ext <<_LT_EOF
11994 #line $LINENO "configure"
11995 #include "confdefs.h"
11996
11997 #if HAVE_DLFCN_H
11998 #include <dlfcn.h>
11999 #endif
12000
12001 #include <stdio.h>
12002
12003 #ifdef RTLD_GLOBAL
12004 #  define LT_DLGLOBAL           RTLD_GLOBAL
12005 #else
12006 #  ifdef DL_GLOBAL
12007 #    define LT_DLGLOBAL         DL_GLOBAL
12008 #  else
12009 #    define LT_DLGLOBAL         0
12010 #  endif
12011 #endif
12012
12013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12014    find out it does not work in some platform. */
12015 #ifndef LT_DLLAZY_OR_NOW
12016 #  ifdef RTLD_LAZY
12017 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12018 #  else
12019 #    ifdef DL_LAZY
12020 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12021 #    else
12022 #      ifdef RTLD_NOW
12023 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12024 #      else
12025 #        ifdef DL_NOW
12026 #          define LT_DLLAZY_OR_NOW      DL_NOW
12027 #        else
12028 #          define LT_DLLAZY_OR_NOW      0
12029 #        endif
12030 #      endif
12031 #    endif
12032 #  endif
12033 #endif
12034
12035 /* When -fvisbility=hidden is used, assume the code has been annotated
12036    correspondingly for the symbols needed.  */
12037 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12038 int fnord () __attribute__((visibility("default")));
12039 #endif
12040
12041 int fnord () { return 42; }
12042 int main ()
12043 {
12044   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12045   int status = $lt_dlunknown;
12046
12047   if (self)
12048     {
12049       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12050       else
12051         {
12052           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12053           else puts (dlerror ());
12054         }
12055       /* dlclose (self); */
12056     }
12057   else
12058     puts (dlerror ());
12059
12060   return status;
12061 }
12062 _LT_EOF
12063   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12064   (eval $ac_link) 2>&5
12065   ac_status=$?
12066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12067   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12068     (./conftest; exit; ) >&5 2>/dev/null
12069     lt_status=$?
12070     case x$lt_status in
12071       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12072       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12073       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12074     esac
12075   else :
12076     # compilation failed
12077     lt_cv_dlopen_self_static=no
12078   fi
12079 fi
12080 rm -fr conftest*
12081
12082
12083 fi
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12085 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12086     fi
12087
12088     CPPFLAGS="$save_CPPFLAGS"
12089     LDFLAGS="$save_LDFLAGS"
12090     LIBS="$save_LIBS"
12091     ;;
12092   esac
12093
12094   case $lt_cv_dlopen_self in
12095   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12096   *) enable_dlopen_self=unknown ;;
12097   esac
12098
12099   case $lt_cv_dlopen_self_static in
12100   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12101   *) enable_dlopen_self_static=unknown ;;
12102   esac
12103 fi
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121 striplib=
12122 old_striplib=
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12124 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12125 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12126   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12127   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130 else
12131 # FIXME - insert some real tests, host_os isn't really good enough
12132   case $host_os in
12133   darwin*)
12134     if test -n "$STRIP" ; then
12135       striplib="$STRIP -x"
12136       old_striplib="$STRIP -S"
12137       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12138 $as_echo "yes" >&6; }
12139     else
12140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12142     fi
12143     ;;
12144   *)
12145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147     ;;
12148   esac
12149 fi
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162   # Report which library types will actually be built
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12164 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12166 $as_echo "$can_build_shared" >&6; }
12167
12168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12169 $as_echo_n "checking whether to build shared libraries... " >&6; }
12170   test "$can_build_shared" = "no" && enable_shared=no
12171
12172   # On AIX, shared libraries and static libraries use the same namespace, and
12173   # are all built from PIC.
12174   case $host_os in
12175   aix3*)
12176     test "$enable_shared" = yes && enable_static=no
12177     if test -n "$RANLIB"; then
12178       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12179       postinstall_cmds='$RANLIB $lib'
12180     fi
12181     ;;
12182
12183   aix[4-9]*)
12184     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12185       test "$enable_shared" = yes && enable_static=no
12186     fi
12187     ;;
12188   esac
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12190 $as_echo "$enable_shared" >&6; }
12191
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12193 $as_echo_n "checking whether to build static libraries... " >&6; }
12194   # Make sure either enable_shared or enable_static is yes.
12195   test "$enable_shared" = yes || enable_static=yes
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12197 $as_echo "$enable_static" >&6; }
12198
12199
12200
12201
12202 fi
12203 ac_ext=c
12204 ac_cpp='$CPP $CPPFLAGS'
12205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12208
12209 CC="$lt_save_CC"
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225         ac_config_commands="$ac_config_commands libtool"
12226
12227
12228
12229
12230 # Only expand once:
12231
12232
12233 if test -n "$ac_tool_prefix"; then
12234   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12235 set dummy ${ac_tool_prefix}windres; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_prog_RC+:} false; then :
12239   $as_echo_n "(cached) " >&6
12240 else
12241   if test -n "$RC"; then
12242   ac_cv_prog_RC="$RC" # Let the user override the test.
12243 else
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12246 do
12247   IFS=$as_save_IFS
12248   test -z "$as_dir" && as_dir=.
12249     for ac_exec_ext in '' $ac_executable_extensions; do
12250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251     ac_cv_prog_RC="${ac_tool_prefix}windres"
12252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253     break 2
12254   fi
12255 done
12256   done
12257 IFS=$as_save_IFS
12258
12259 fi
12260 fi
12261 RC=$ac_cv_prog_RC
12262 if test -n "$RC"; then
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12264 $as_echo "$RC" >&6; }
12265 else
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12268 fi
12269
12270
12271 fi
12272 if test -z "$ac_cv_prog_RC"; then
12273   ac_ct_RC=$RC
12274   # Extract the first word of "windres", so it can be a program name with args.
12275 set dummy windres; ac_word=$2
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277 $as_echo_n "checking for $ac_word... " >&6; }
12278 if ${ac_cv_prog_ac_ct_RC+:} false; then :
12279   $as_echo_n "(cached) " >&6
12280 else
12281   if test -n "$ac_ct_RC"; then
12282   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12283 else
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12286 do
12287   IFS=$as_save_IFS
12288   test -z "$as_dir" && as_dir=.
12289     for ac_exec_ext in '' $ac_executable_extensions; do
12290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12291     ac_cv_prog_ac_ct_RC="windres"
12292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293     break 2
12294   fi
12295 done
12296   done
12297 IFS=$as_save_IFS
12298
12299 fi
12300 fi
12301 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12302 if test -n "$ac_ct_RC"; then
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12304 $as_echo "$ac_ct_RC" >&6; }
12305 else
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12308 fi
12309
12310   if test "x$ac_ct_RC" = x; then
12311     RC=""
12312   else
12313     case $cross_compiling:$ac_tool_warned in
12314 yes:)
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12317 ac_tool_warned=yes ;;
12318 esac
12319     RC=$ac_ct_RC
12320   fi
12321 else
12322   RC="$ac_cv_prog_RC"
12323 fi
12324
12325
12326
12327
12328 # Source file extension for RC test sources.
12329 ac_ext=rc
12330
12331 # Object file extension for compiled RC test sources.
12332 objext=o
12333 objext_RC=$objext
12334
12335 # Code to be used in simple compile tests
12336 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12337
12338 # Code to be used in simple link tests
12339 lt_simple_link_test_code="$lt_simple_compile_test_code"
12340
12341 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12342
12343
12344
12345
12346
12347
12348 # If no C compiler was specified, use CC.
12349 LTCC=${LTCC-"$CC"}
12350
12351 # If no C compiler flags were specified, use CFLAGS.
12352 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12353
12354 # Allow CC to be a program name with arguments.
12355 compiler=$CC
12356
12357
12358 # save warnings/boilerplate of simple test code
12359 ac_outfile=conftest.$ac_objext
12360 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12361 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12362 _lt_compiler_boilerplate=`cat conftest.err`
12363 $RM conftest*
12364
12365 ac_outfile=conftest.$ac_objext
12366 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12367 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12368 _lt_linker_boilerplate=`cat conftest.err`
12369 $RM -r conftest*
12370
12371
12372 # Allow CC to be a program name with arguments.
12373 lt_save_CC="$CC"
12374 lt_save_CFLAGS=$CFLAGS
12375 lt_save_GCC=$GCC
12376 GCC=
12377 CC=${RC-"windres"}
12378 CFLAGS=
12379 compiler=$CC
12380 compiler_RC=$CC
12381 for cc_temp in $compiler""; do
12382   case $cc_temp in
12383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12385     \-*) ;;
12386     *) break;;
12387   esac
12388 done
12389 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12390
12391 lt_cv_prog_compiler_c_o_RC=yes
12392
12393 if test -n "$compiler"; then
12394   :
12395
12396
12397
12398 fi
12399
12400 GCC=$lt_save_GCC
12401 ac_ext=c
12402 ac_cpp='$CPP $CPPFLAGS'
12403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12406
12407 CC=$lt_save_CC
12408 CFLAGS=$lt_save_CFLAGS
12409
12410
12411
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12413 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12414     # Check whether --enable-maintainer-mode was given.
12415 if test "${enable_maintainer_mode+set}" = set; then :
12416   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12417 else
12418   USE_MAINTAINER_MODE=no
12419 fi
12420
12421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12422 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12423    if test $USE_MAINTAINER_MODE = yes; then
12424   MAINTAINER_MODE_TRUE=
12425   MAINTAINER_MODE_FALSE='#'
12426 else
12427   MAINTAINER_MODE_TRUE='#'
12428   MAINTAINER_MODE_FALSE=
12429 fi
12430
12431   MAINT=$MAINTAINER_MODE_TRUE
12432
12433
12434
12435 # We need to compile and run a program on the build machine.
12436 # Put a plausible default for CC_FOR_BUILD in Makefile.
12437 if test -z "$CC_FOR_BUILD"; then
12438   if test "x$cross_compiling" = "xno"; then
12439     CC_FOR_BUILD='$(CC)'
12440   else
12441     CC_FOR_BUILD=gcc
12442   fi
12443 fi
12444
12445 # Also set EXEEXT_FOR_BUILD.
12446 if test "x$cross_compiling" = "xno"; then
12447   EXEEXT_FOR_BUILD='$(EXEEXT)'
12448 else
12449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12450 $as_echo_n "checking for build system executable suffix... " >&6; }
12451 if ${bfd_cv_build_exeext+:} false; then :
12452   $as_echo_n "(cached) " >&6
12453 else
12454   rm -f conftest*
12455      echo 'int main () { return 0; }' > conftest.c
12456      bfd_cv_build_exeext=
12457      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12458      for file in conftest.*; do
12459        case $file in
12460        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12461        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12462        esac
12463      done
12464      rm -f conftest*
12465      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12468 $as_echo "$bfd_cv_build_exeext" >&6; }
12469   EXEEXT_FOR_BUILD=""
12470   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12471 fi
12472
12473
12474
12475
12476
12477
12478 VERSION_NUMBER=0x010603
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488 # Checks for programs.
12489 missing_dir=`cd $ac_aux_dir && pwd`
12490
12491 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
12492
12493
12494 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12495
12496
12497 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
12498
12499
12500 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12501
12502
12503 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12504
12505 # Check whether --enable-silent-rules was given.
12506 if test "${enable_silent_rules+set}" = set; then :
12507   enableval=$enable_silent_rules;
12508 fi
12509
12510 case $enable_silent_rules in # (((
12511   yes) AM_DEFAULT_VERBOSITY=0;;
12512    no) AM_DEFAULT_VERBOSITY=1;;
12513     *) AM_DEFAULT_VERBOSITY=1;;
12514 esac
12515 am_make=${MAKE-make}
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12517 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12518 if ${am_cv_make_support_nested_variables+:} false; then :
12519   $as_echo_n "(cached) " >&6
12520 else
12521   if $as_echo 'TRUE=$(BAR$(V))
12522 BAR0=false
12523 BAR1=true
12524 V=1
12525 am__doit:
12526         @$(TRUE)
12527 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12528   am_cv_make_support_nested_variables=yes
12529 else
12530   am_cv_make_support_nested_variables=no
12531 fi
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12534 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12535 if test $am_cv_make_support_nested_variables = yes; then
12536     AM_V='$(V)'
12537   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12538 else
12539   AM_V=$AM_DEFAULT_VERBOSITY
12540   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12541 fi
12542 AM_BACKSLASH='\'
12543
12544 for ac_prog in gawk mawk nawk awk
12545 do
12546   # Extract the first word of "$ac_prog", so it can be a program name with args.
12547 set dummy $ac_prog; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_prog_AWK+:} false; then :
12551   $as_echo_n "(cached) " >&6
12552 else
12553   if test -n "$AWK"; then
12554   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12555 else
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in $PATH
12558 do
12559   IFS=$as_save_IFS
12560   test -z "$as_dir" && as_dir=.
12561     for ac_exec_ext in '' $ac_executable_extensions; do
12562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12563     ac_cv_prog_AWK="$ac_prog"
12564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565     break 2
12566   fi
12567 done
12568   done
12569 IFS=$as_save_IFS
12570
12571 fi
12572 fi
12573 AWK=$ac_cv_prog_AWK
12574 if test -n "$AWK"; then
12575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12576 $as_echo "$AWK" >&6; }
12577 else
12578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581
12582
12583   test -n "$AWK" && break
12584 done
12585
12586 ac_ext=c
12587 ac_cpp='$CPP $CPPFLAGS'
12588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12591 if test -n "$ac_tool_prefix"; then
12592   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_prog_CC+:} false; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599   if test -n "$CC"; then
12600   ac_cv_prog_CC="$CC" # Let the user override the test.
12601 else
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605   IFS=$as_save_IFS
12606   test -z "$as_dir" && as_dir=.
12607     for ac_exec_ext in '' $ac_executable_extensions; do
12608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611     break 2
12612   fi
12613 done
12614   done
12615 IFS=$as_save_IFS
12616
12617 fi
12618 fi
12619 CC=$ac_cv_prog_CC
12620 if test -n "$CC"; then
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12622 $as_echo "$CC" >&6; }
12623 else
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627
12628
12629 fi
12630 if test -z "$ac_cv_prog_CC"; then
12631   ac_ct_CC=$CC
12632   # Extract the first word of "gcc", so it can be a program name with args.
12633 set dummy gcc; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12637   $as_echo_n "(cached) " >&6
12638 else
12639   if test -n "$ac_ct_CC"; then
12640   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12641 else
12642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643 for as_dir in $PATH
12644 do
12645   IFS=$as_save_IFS
12646   test -z "$as_dir" && as_dir=.
12647     for ac_exec_ext in '' $ac_executable_extensions; do
12648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12649     ac_cv_prog_ac_ct_CC="gcc"
12650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12651     break 2
12652   fi
12653 done
12654   done
12655 IFS=$as_save_IFS
12656
12657 fi
12658 fi
12659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12660 if test -n "$ac_ct_CC"; then
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12662 $as_echo "$ac_ct_CC" >&6; }
12663 else
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12666 fi
12667
12668   if test "x$ac_ct_CC" = x; then
12669     CC=""
12670   else
12671     case $cross_compiling:$ac_tool_warned in
12672 yes:)
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12675 ac_tool_warned=yes ;;
12676 esac
12677     CC=$ac_ct_CC
12678   fi
12679 else
12680   CC="$ac_cv_prog_CC"
12681 fi
12682
12683 if test -z "$CC"; then
12684           if test -n "$ac_tool_prefix"; then
12685     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12686 set dummy ${ac_tool_prefix}cc; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_prog_CC+:} false; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   if test -n "$CC"; then
12693   ac_cv_prog_CC="$CC" # Let the user override the test.
12694 else
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12697 do
12698   IFS=$as_save_IFS
12699   test -z "$as_dir" && as_dir=.
12700     for ac_exec_ext in '' $ac_executable_extensions; do
12701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12702     ac_cv_prog_CC="${ac_tool_prefix}cc"
12703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704     break 2
12705   fi
12706 done
12707   done
12708 IFS=$as_save_IFS
12709
12710 fi
12711 fi
12712 CC=$ac_cv_prog_CC
12713 if test -n "$CC"; then
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12715 $as_echo "$CC" >&6; }
12716 else
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720
12721
12722   fi
12723 fi
12724 if test -z "$CC"; then
12725   # Extract the first word of "cc", so it can be a program name with args.
12726 set dummy cc; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_prog_CC+:} false; then :
12730   $as_echo_n "(cached) " >&6
12731 else
12732   if test -n "$CC"; then
12733   ac_cv_prog_CC="$CC" # Let the user override the test.
12734 else
12735   ac_prog_rejected=no
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12738 do
12739   IFS=$as_save_IFS
12740   test -z "$as_dir" && as_dir=.
12741     for ac_exec_ext in '' $ac_executable_extensions; do
12742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12744        ac_prog_rejected=yes
12745        continue
12746      fi
12747     ac_cv_prog_CC="cc"
12748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749     break 2
12750   fi
12751 done
12752   done
12753 IFS=$as_save_IFS
12754
12755 if test $ac_prog_rejected = yes; then
12756   # We found a bogon in the path, so make sure we never use it.
12757   set dummy $ac_cv_prog_CC
12758   shift
12759   if test $# != 0; then
12760     # We chose a different compiler from the bogus one.
12761     # However, it has the same basename, so the bogon will be chosen
12762     # first if we set CC to just the basename; use the full file name.
12763     shift
12764     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12765   fi
12766 fi
12767 fi
12768 fi
12769 CC=$ac_cv_prog_CC
12770 if test -n "$CC"; then
12771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12772 $as_echo "$CC" >&6; }
12773 else
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12776 fi
12777
12778
12779 fi
12780 if test -z "$CC"; then
12781   if test -n "$ac_tool_prefix"; then
12782   for ac_prog in cl.exe
12783   do
12784     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787 $as_echo_n "checking for $ac_word... " >&6; }
12788 if ${ac_cv_prog_CC+:} false; then :
12789   $as_echo_n "(cached) " >&6
12790 else
12791   if test -n "$CC"; then
12792   ac_cv_prog_CC="$CC" # Let the user override the test.
12793 else
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12796 do
12797   IFS=$as_save_IFS
12798   test -z "$as_dir" && as_dir=.
12799     for ac_exec_ext in '' $ac_executable_extensions; do
12800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803     break 2
12804   fi
12805 done
12806   done
12807 IFS=$as_save_IFS
12808
12809 fi
12810 fi
12811 CC=$ac_cv_prog_CC
12812 if test -n "$CC"; then
12813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12814 $as_echo "$CC" >&6; }
12815 else
12816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12818 fi
12819
12820
12821     test -n "$CC" && break
12822   done
12823 fi
12824 if test -z "$CC"; then
12825   ac_ct_CC=$CC
12826   for ac_prog in cl.exe
12827 do
12828   # Extract the first word of "$ac_prog", so it can be a program name with args.
12829 set dummy $ac_prog; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12833   $as_echo_n "(cached) " >&6
12834 else
12835   if test -n "$ac_ct_CC"; then
12836   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12837 else
12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839 for as_dir in $PATH
12840 do
12841   IFS=$as_save_IFS
12842   test -z "$as_dir" && as_dir=.
12843     for ac_exec_ext in '' $ac_executable_extensions; do
12844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12845     ac_cv_prog_ac_ct_CC="$ac_prog"
12846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847     break 2
12848   fi
12849 done
12850   done
12851 IFS=$as_save_IFS
12852
12853 fi
12854 fi
12855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12856 if test -n "$ac_ct_CC"; then
12857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12858 $as_echo "$ac_ct_CC" >&6; }
12859 else
12860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861 $as_echo "no" >&6; }
12862 fi
12863
12864
12865   test -n "$ac_ct_CC" && break
12866 done
12867
12868   if test "x$ac_ct_CC" = x; then
12869     CC=""
12870   else
12871     case $cross_compiling:$ac_tool_warned in
12872 yes:)
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12875 ac_tool_warned=yes ;;
12876 esac
12877     CC=$ac_ct_CC
12878   fi
12879 fi
12880
12881 fi
12882
12883
12884 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12886 as_fn_error $? "no acceptable C compiler found in \$PATH
12887 See \`config.log' for more details" "$LINENO" 5; }
12888
12889 # Provide some information about the compiler.
12890 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12891 set X $ac_compile
12892 ac_compiler=$2
12893 for ac_option in --version -v -V -qversion; do
12894   { { ac_try="$ac_compiler $ac_option >&5"
12895 case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12900 $as_echo "$ac_try_echo"; } >&5
12901   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12902   ac_status=$?
12903   if test -s conftest.err; then
12904     sed '10a\
12905 ... rest of stderr output deleted ...
12906          10q' conftest.err >conftest.er1
12907     cat conftest.er1 >&5
12908   fi
12909   rm -f conftest.er1 conftest.err
12910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911   test $ac_status = 0; }
12912 done
12913
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12915 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12916 if ${ac_cv_c_compiler_gnu+:} false; then :
12917   $as_echo_n "(cached) " >&6
12918 else
12919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h.  */
12921
12922 int
12923 main ()
12924 {
12925 #ifndef __GNUC__
12926        choke me
12927 #endif
12928
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 if ac_fn_c_try_compile "$LINENO"; then :
12934   ac_compiler_gnu=yes
12935 else
12936   ac_compiler_gnu=no
12937 fi
12938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12940
12941 fi
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12943 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12944 if test $ac_compiler_gnu = yes; then
12945   GCC=yes
12946 else
12947   GCC=
12948 fi
12949 ac_test_CFLAGS=${CFLAGS+set}
12950 ac_save_CFLAGS=$CFLAGS
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12952 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12953 if ${ac_cv_prog_cc_g+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   ac_save_c_werror_flag=$ac_c_werror_flag
12957    ac_c_werror_flag=yes
12958    ac_cv_prog_cc_g=no
12959    CFLAGS="-g"
12960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h.  */
12962
12963 int
12964 main ()
12965 {
12966
12967   ;
12968   return 0;
12969 }
12970 _ACEOF
12971 if ac_fn_c_try_compile "$LINENO"; then :
12972   ac_cv_prog_cc_g=yes
12973 else
12974   CFLAGS=""
12975       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h.  */
12977
12978 int
12979 main ()
12980 {
12981
12982   ;
12983   return 0;
12984 }
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987
12988 else
12989   ac_c_werror_flag=$ac_save_c_werror_flag
12990          CFLAGS="-g"
12991          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h.  */
12993
12994 int
12995 main ()
12996 {
12997
12998   ;
12999   return 0;
13000 }
13001 _ACEOF
13002 if ac_fn_c_try_compile "$LINENO"; then :
13003   ac_cv_prog_cc_g=yes
13004 fi
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006 fi
13007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010    ac_c_werror_flag=$ac_save_c_werror_flag
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13013 $as_echo "$ac_cv_prog_cc_g" >&6; }
13014 if test "$ac_test_CFLAGS" = set; then
13015   CFLAGS=$ac_save_CFLAGS
13016 elif test $ac_cv_prog_cc_g = yes; then
13017   if test "$GCC" = yes; then
13018     CFLAGS="-g -O2"
13019   else
13020     CFLAGS="-g"
13021   fi
13022 else
13023   if test "$GCC" = yes; then
13024     CFLAGS="-O2"
13025   else
13026     CFLAGS=
13027   fi
13028 fi
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13030 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13031 if ${ac_cv_prog_cc_c89+:} false; then :
13032   $as_echo_n "(cached) " >&6
13033 else
13034   ac_cv_prog_cc_c89=no
13035 ac_save_CC=$CC
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h.  */
13038 #include <stdarg.h>
13039 #include <stdio.h>
13040 struct stat;
13041 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13042 struct buf { int x; };
13043 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13044 static char *e (p, i)
13045      char **p;
13046      int i;
13047 {
13048   return p[i];
13049 }
13050 static char *f (char * (*g) (char **, int), char **p, ...)
13051 {
13052   char *s;
13053   va_list v;
13054   va_start (v,p);
13055   s = g (p, va_arg (v,int));
13056   va_end (v);
13057   return s;
13058 }
13059
13060 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13061    function prototypes and stuff, but not '\xHH' hex character constants.
13062    These don't provoke an error unfortunately, instead are silently treated
13063    as 'x'.  The following induces an error, until -std is added to get
13064    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13065    array size at least.  It's necessary to write '\x00'==0 to get something
13066    that's true only with -std.  */
13067 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13068
13069 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13070    inside strings and character constants.  */
13071 #define FOO(x) 'x'
13072 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13073
13074 int test (int i, double x);
13075 struct s1 {int (*f) (int a);};
13076 struct s2 {int (*f) (double a);};
13077 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13078 int argc;
13079 char **argv;
13080 int
13081 main ()
13082 {
13083 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13084   ;
13085   return 0;
13086 }
13087 _ACEOF
13088 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13089         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13090 do
13091   CC="$ac_save_CC $ac_arg"
13092   if ac_fn_c_try_compile "$LINENO"; then :
13093   ac_cv_prog_cc_c89=$ac_arg
13094 fi
13095 rm -f core conftest.err conftest.$ac_objext
13096   test "x$ac_cv_prog_cc_c89" != "xno" && break
13097 done
13098 rm -f conftest.$ac_ext
13099 CC=$ac_save_CC
13100
13101 fi
13102 # AC_CACHE_VAL
13103 case "x$ac_cv_prog_cc_c89" in
13104   x)
13105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13106 $as_echo "none needed" >&6; } ;;
13107   xno)
13108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13109 $as_echo "unsupported" >&6; } ;;
13110   *)
13111     CC="$CC $ac_cv_prog_cc_c89"
13112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13113 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13114 esac
13115 if test "x$ac_cv_prog_cc_c89" != xno; then :
13116
13117 fi
13118
13119 ac_ext=c
13120 ac_cpp='$CPP $CPPFLAGS'
13121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13124
13125 ac_ext=c
13126 ac_cpp='$CPP $CPPFLAGS'
13127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13131 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13132 if ${am_cv_prog_cc_c_o+:} false; then :
13133   $as_echo_n "(cached) " >&6
13134 else
13135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h.  */
13137
13138 int
13139 main ()
13140 {
13141
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146   # Make sure it works both with $CC and with simple cc.
13147   # Following AC_PROG_CC_C_O, we do the test twice because some
13148   # compilers refuse to overwrite an existing .o file with -o,
13149   # though they will create one.
13150   am_cv_prog_cc_c_o=yes
13151   for am_i in 1 2; do
13152     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13153    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13154    ac_status=$?
13155    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156    (exit $ac_status); } \
13157          && test -f conftest2.$ac_objext; then
13158       : OK
13159     else
13160       am_cv_prog_cc_c_o=no
13161       break
13162     fi
13163   done
13164   rm -f core conftest*
13165   unset am_i
13166 fi
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13168 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13169 if test "$am_cv_prog_cc_c_o" != yes; then
13170    # Losing compiler, so override with the script.
13171    # FIXME: It is wrong to rewrite CC.
13172    # But if we don't then we get into trouble of one sort or another.
13173    # A longer-term fix would be to have automake use am__CC in this case,
13174    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13175    CC="$am_aux_dir/compile $CC"
13176 fi
13177 ac_ext=c
13178 ac_cpp='$CPP $CPPFLAGS'
13179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13182
13183
13184 depcc="$CC"   am_compiler_list=
13185
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13187 $as_echo_n "checking dependency style of $depcc... " >&6; }
13188 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13189   $as_echo_n "(cached) " >&6
13190 else
13191   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13192   # We make a subdir and do the tests there.  Otherwise we can end up
13193   # making bogus files that we don't know about and never remove.  For
13194   # instance it was reported that on HP-UX the gcc test will end up
13195   # making a dummy file named 'D' -- because '-MD' means "put the output
13196   # in D".
13197   rm -rf conftest.dir
13198   mkdir conftest.dir
13199   # Copy depcomp to subdir because otherwise we won't find it if we're
13200   # using a relative directory.
13201   cp "$am_depcomp" conftest.dir
13202   cd conftest.dir
13203   # We will build objects and dependencies in a subdirectory because
13204   # it helps to detect inapplicable dependency modes.  For instance
13205   # both Tru64's cc and ICC support -MD to output dependencies as a
13206   # side effect of compilation, but ICC will put the dependencies in
13207   # the current directory while Tru64 will put them in the object
13208   # directory.
13209   mkdir sub
13210
13211   am_cv_CC_dependencies_compiler_type=none
13212   if test "$am_compiler_list" = ""; then
13213      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13214   fi
13215   am__universal=false
13216   case " $depcc " in #(
13217      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13218      esac
13219
13220   for depmode in $am_compiler_list; do
13221     # Setup a source with many dependencies, because some compilers
13222     # like to wrap large dependency lists on column 80 (with \), and
13223     # we should not choose a depcomp mode which is confused by this.
13224     #
13225     # We need to recreate these files for each test, as the compiler may
13226     # overwrite some of them when testing with obscure command lines.
13227     # This happens at least with the AIX C compiler.
13228     : > sub/conftest.c
13229     for i in 1 2 3 4 5 6; do
13230       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13231       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13232       # Solaris 10 /bin/sh.
13233       echo '/* dummy */' > sub/conftst$i.h
13234     done
13235     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13236
13237     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13238     # mode.  It turns out that the SunPro C++ compiler does not properly
13239     # handle '-M -o', and we need to detect this.  Also, some Intel
13240     # versions had trouble with output in subdirs.
13241     am__obj=sub/conftest.${OBJEXT-o}
13242     am__minus_obj="-o $am__obj"
13243     case $depmode in
13244     gcc)
13245       # This depmode causes a compiler race in universal mode.
13246       test "$am__universal" = false || continue
13247       ;;
13248     nosideeffect)
13249       # After this tag, mechanisms are not by side-effect, so they'll
13250       # only be used when explicitly requested.
13251       if test "x$enable_dependency_tracking" = xyes; then
13252         continue
13253       else
13254         break
13255       fi
13256       ;;
13257     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13258       # This compiler won't grok '-c -o', but also, the minuso test has
13259       # not run yet.  These depmodes are late enough in the game, and
13260       # so weak that their functioning should not be impacted.
13261       am__obj=conftest.${OBJEXT-o}
13262       am__minus_obj=
13263       ;;
13264     none) break ;;
13265     esac
13266     if depmode=$depmode \
13267        source=sub/conftest.c object=$am__obj \
13268        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13269        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13270          >/dev/null 2>conftest.err &&
13271        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13272        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13273        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13274        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13275       # icc doesn't choke on unknown options, it will just issue warnings
13276       # or remarks (even with -Werror).  So we grep stderr for any message
13277       # that says an option was ignored or not supported.
13278       # When given -MP, icc 7.0 and 7.1 complain thusly:
13279       #   icc: Command line warning: ignoring option '-M'; no argument required
13280       # The diagnosis changed in icc 8.0:
13281       #   icc: Command line remark: option '-MP' not supported
13282       if (grep 'ignoring option' conftest.err ||
13283           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13284         am_cv_CC_dependencies_compiler_type=$depmode
13285         break
13286       fi
13287     fi
13288   done
13289
13290   cd ..
13291   rm -rf conftest.dir
13292 else
13293   am_cv_CC_dependencies_compiler_type=none
13294 fi
13295
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13298 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13299 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13300
13301  if
13302   test "x$enable_dependency_tracking" != xno \
13303   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13304   am__fastdepCC_TRUE=
13305   am__fastdepCC_FALSE='#'
13306 else
13307   am__fastdepCC_TRUE='#'
13308   am__fastdepCC_FALSE=
13309 fi
13310
13311
13312 ac_ext=c
13313 ac_cpp='$CPP $CPPFLAGS'
13314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13318 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13319 # On Suns, sometimes $CPP names a directory.
13320 if test -n "$CPP" && test -d "$CPP"; then
13321   CPP=
13322 fi
13323 if test -z "$CPP"; then
13324   if ${ac_cv_prog_CPP+:} false; then :
13325   $as_echo_n "(cached) " >&6
13326 else
13327       # Double quotes because CPP needs to be expanded
13328     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13329     do
13330       ac_preproc_ok=false
13331 for ac_c_preproc_warn_flag in '' yes
13332 do
13333   # Use a header file that comes with gcc, so configuring glibc
13334   # with a fresh cross-compiler works.
13335   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13336   # <limits.h> exists even on freestanding compilers.
13337   # On the NeXT, cc -E runs the code through the compiler's parser,
13338   # not just through cpp. "Syntax error" is here to catch this case.
13339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h.  */
13341 #ifdef __STDC__
13342 # include <limits.h>
13343 #else
13344 # include <assert.h>
13345 #endif
13346                      Syntax error
13347 _ACEOF
13348 if ac_fn_c_try_cpp "$LINENO"; then :
13349
13350 else
13351   # Broken: fails on valid input.
13352 continue
13353 fi
13354 rm -f conftest.err conftest.i conftest.$ac_ext
13355
13356   # OK, works on sane cases.  Now check whether nonexistent headers
13357   # can be detected and how.
13358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h.  */
13360 #include <ac_nonexistent.h>
13361 _ACEOF
13362 if ac_fn_c_try_cpp "$LINENO"; then :
13363   # Broken: success on invalid input.
13364 continue
13365 else
13366   # Passes both tests.
13367 ac_preproc_ok=:
13368 break
13369 fi
13370 rm -f conftest.err conftest.i conftest.$ac_ext
13371
13372 done
13373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13374 rm -f conftest.i conftest.err conftest.$ac_ext
13375 if $ac_preproc_ok; then :
13376   break
13377 fi
13378
13379     done
13380     ac_cv_prog_CPP=$CPP
13381
13382 fi
13383   CPP=$ac_cv_prog_CPP
13384 else
13385   ac_cv_prog_CPP=$CPP
13386 fi
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13388 $as_echo "$CPP" >&6; }
13389 ac_preproc_ok=false
13390 for ac_c_preproc_warn_flag in '' yes
13391 do
13392   # Use a header file that comes with gcc, so configuring glibc
13393   # with a fresh cross-compiler works.
13394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13395   # <limits.h> exists even on freestanding compilers.
13396   # On the NeXT, cc -E runs the code through the compiler's parser,
13397   # not just through cpp. "Syntax error" is here to catch this case.
13398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h.  */
13400 #ifdef __STDC__
13401 # include <limits.h>
13402 #else
13403 # include <assert.h>
13404 #endif
13405                      Syntax error
13406 _ACEOF
13407 if ac_fn_c_try_cpp "$LINENO"; then :
13408
13409 else
13410   # Broken: fails on valid input.
13411 continue
13412 fi
13413 rm -f conftest.err conftest.i conftest.$ac_ext
13414
13415   # OK, works on sane cases.  Now check whether nonexistent headers
13416   # can be detected and how.
13417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h.  */
13419 #include <ac_nonexistent.h>
13420 _ACEOF
13421 if ac_fn_c_try_cpp "$LINENO"; then :
13422   # Broken: success on invalid input.
13423 continue
13424 else
13425   # Passes both tests.
13426 ac_preproc_ok=:
13427 break
13428 fi
13429 rm -f conftest.err conftest.i conftest.$ac_ext
13430
13431 done
13432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13433 rm -f conftest.i conftest.err conftest.$ac_ext
13434 if $ac_preproc_ok; then :
13435
13436 else
13437   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13439 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13440 See \`config.log' for more details" "$LINENO" 5; }
13441 fi
13442
13443 ac_ext=c
13444 ac_cpp='$CPP $CPPFLAGS'
13445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13448
13449
13450 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
13451   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
13452 fi
13453
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13455 $as_echo_n "checking whether ln -s works... " >&6; }
13456 LN_S=$as_ln_s
13457 if test "$LN_S" = "ln -s"; then
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13459 $as_echo "yes" >&6; }
13460 else
13461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13462 $as_echo "no, using $LN_S" >&6; }
13463 fi
13464
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13466 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13467 set x ${MAKE-make}
13468 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13469 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13470   $as_echo_n "(cached) " >&6
13471 else
13472   cat >conftest.make <<\_ACEOF
13473 SHELL = /bin/sh
13474 all:
13475         @echo '@@@%%%=$(MAKE)=@@@%%%'
13476 _ACEOF
13477 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13479   *@@@%%%=?*=@@@%%%*)
13480     eval ac_cv_prog_make_${ac_make}_set=yes;;
13481   *)
13482     eval ac_cv_prog_make_${ac_make}_set=no;;
13483 esac
13484 rm -f conftest.make
13485 fi
13486 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488 $as_echo "yes" >&6; }
13489   SET_MAKE=
13490 else
13491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13493   SET_MAKE="MAKE=${MAKE-make}"
13494 fi
13495
13496
13497
13498 #AC_ARG_PROGRAM
13499 for ac_prog in 'bison -y' byacc
13500 do
13501   # Extract the first word of "$ac_prog", so it can be a program name with args.
13502 set dummy $ac_prog; ac_word=$2
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 $as_echo_n "checking for $ac_word... " >&6; }
13505 if ${ac_cv_prog_YACC+:} false; then :
13506   $as_echo_n "(cached) " >&6
13507 else
13508   if test -n "$YACC"; then
13509   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13510 else
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13513 do
13514   IFS=$as_save_IFS
13515   test -z "$as_dir" && as_dir=.
13516     for ac_exec_ext in '' $ac_executable_extensions; do
13517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13518     ac_cv_prog_YACC="$ac_prog"
13519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520     break 2
13521   fi
13522 done
13523   done
13524 IFS=$as_save_IFS
13525
13526 fi
13527 fi
13528 YACC=$ac_cv_prog_YACC
13529 if test -n "$YACC"; then
13530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13531 $as_echo "$YACC" >&6; }
13532 else
13533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13535 fi
13536
13537
13538   test -n "$YACC" && break
13539 done
13540 test -n "$YACC" || YACC="yacc"
13541
13542
13543
13544
13545
13546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
13547 $as_echo_n "checking if bison is the parser generator... " >&6; }
13548 if ${ax_cv_prog_bison+:} false; then :
13549   $as_echo_n "(cached) " >&6
13550 else
13551
13552     if $YACC --version 2>/dev/null | $EGREP -q '^bison '; then :
13553   ax_cv_prog_bison=yes
13554 else
13555   ax_cv_prog_bison=no
13556 fi
13557
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
13560 $as_echo "$ax_cv_prog_bison" >&6; }
13561   if test "$ax_cv_prog_bison" = "yes"; then :
13562
13563                               YACC="${YACC% -y} -o y.tab.c"
13564      have_bison=yes
13565 else
13566   have_bison=no
13567
13568 fi
13569
13570
13571 if test "$USE_MAINTAINER_MODE" = "yes"; then
13572         for ac_prog in gcov
13573 do
13574   # Extract the first word of "$ac_prog", so it can be a program name with args.
13575 set dummy $ac_prog; ac_word=$2
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13577 $as_echo_n "checking for $ac_word... " >&6; }
13578 if ${ac_cv_prog_GCOV+:} false; then :
13579   $as_echo_n "(cached) " >&6
13580 else
13581   if test -n "$GCOV"; then
13582   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
13583 else
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13586 do
13587   IFS=$as_save_IFS
13588   test -z "$as_dir" && as_dir=.
13589     for ac_exec_ext in '' $ac_executable_extensions; do
13590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13591     ac_cv_prog_GCOV="$ac_prog"
13592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13593     break 2
13594   fi
13595 done
13596   done
13597 IFS=$as_save_IFS
13598
13599 fi
13600 fi
13601 GCOV=$ac_cv_prog_GCOV
13602 if test -n "$GCOV"; then
13603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
13604 $as_echo "$GCOV" >&6; }
13605 else
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13608 fi
13609
13610
13611   test -n "$GCOV" && break
13612 done
13613 test -n "$GCOV" || GCOV="gcov"
13614
13615         # gcov coverage reporting
13616
13617   # Check whether --enable-gcov was given.
13618 if test "${enable_gcov+set}" = set; then :
13619   enableval=$enable_gcov; use_gcov=yes
13620 else
13621   use_gcov=no
13622 fi
13623
13624
13625    if test "x$use_gcov" = "xyes"; then
13626   HAVE_GCOV_TRUE=
13627   HAVE_GCOV_FALSE='#'
13628 else
13629   HAVE_GCOV_TRUE='#'
13630   HAVE_GCOV_FALSE=
13631 fi
13632
13633
13634   if test "x$use_gcov" = "xyes"; then
13635   # we need gcc:
13636   if test "$GCC" != "yes"; then
13637     as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
13638   fi
13639
13640   # Check if ccache is being used
13641   # Extract the first word of "shtool", so it can be a program name with args.
13642 set dummy shtool; ac_word=$2
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644 $as_echo_n "checking for $ac_word... " >&6; }
13645 if ${ac_cv_prog_SHTOOL+:} false; then :
13646   $as_echo_n "(cached) " >&6
13647 else
13648   if test -n "$SHTOOL"; then
13649   ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
13650 else
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13653 do
13654   IFS=$as_save_IFS
13655   test -z "$as_dir" && as_dir=.
13656     for ac_exec_ext in '' $ac_executable_extensions; do
13657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658     ac_cv_prog_SHTOOL="shtool"
13659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660     break 2
13661   fi
13662 done
13663   done
13664 IFS=$as_save_IFS
13665
13666 fi
13667 fi
13668 SHTOOL=$ac_cv_prog_SHTOOL
13669 if test -n "$SHTOOL"; then
13670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
13671 $as_echo "$SHTOOL" >&6; }
13672 else
13673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13675 fi
13676
13677
13678   if test "$SHTOOL"; then
13679     case `$SHTOOL path $CC` in #(
13680   *ccache*) :
13681     gcc_ccache=yes ;; #(
13682   *) :
13683     gcc_ccache=no ;;
13684 esac
13685   fi
13686
13687   if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
13688     as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
13689   fi
13690
13691   lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13"
13692   # Extract the first word of "lcov", so it can be a program name with args.
13693 set dummy lcov; ac_word=$2
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695 $as_echo_n "checking for $ac_word... " >&6; }
13696 if ${ac_cv_prog_LCOV+:} false; then :
13697   $as_echo_n "(cached) " >&6
13698 else
13699   if test -n "$LCOV"; then
13700   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
13701 else
13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703 for as_dir in $PATH
13704 do
13705   IFS=$as_save_IFS
13706   test -z "$as_dir" && as_dir=.
13707     for ac_exec_ext in '' $ac_executable_extensions; do
13708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13709     ac_cv_prog_LCOV="lcov"
13710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13711     break 2
13712   fi
13713 done
13714   done
13715 IFS=$as_save_IFS
13716
13717 fi
13718 fi
13719 LCOV=$ac_cv_prog_LCOV
13720 if test -n "$LCOV"; then
13721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
13722 $as_echo "$LCOV" >&6; }
13723 else
13724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13726 fi
13727
13728
13729   # Extract the first word of "genhtml", so it can be a program name with args.
13730 set dummy genhtml; ac_word=$2
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732 $as_echo_n "checking for $ac_word... " >&6; }
13733 if ${ac_cv_prog_GENHTML+:} false; then :
13734   $as_echo_n "(cached) " >&6
13735 else
13736   if test -n "$GENHTML"; then
13737   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
13738 else
13739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740 for as_dir in $PATH
13741 do
13742   IFS=$as_save_IFS
13743   test -z "$as_dir" && as_dir=.
13744     for ac_exec_ext in '' $ac_executable_extensions; do
13745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13746     ac_cv_prog_GENHTML="genhtml"
13747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13748     break 2
13749   fi
13750 done
13751   done
13752 IFS=$as_save_IFS
13753
13754 fi
13755 fi
13756 GENHTML=$ac_cv_prog_GENHTML
13757 if test -n "$GENHTML"; then
13758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
13759 $as_echo "$GENHTML" >&6; }
13760 else
13761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762 $as_echo "no" >&6; }
13763 fi
13764
13765
13766
13767   if test "$LCOV"; then
13768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
13769 $as_echo_n "checking for lcov version... " >&6; }
13770 if ${glib_cv_lcov_version+:} false; then :
13771   $as_echo_n "(cached) " >&6
13772 else
13773
13774       glib_cv_lcov_version=invalid
13775       lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
13776       for lcov_check_version in $lcov_version_list; do
13777         if test "$lcov_version" = "$lcov_check_version"; then
13778           glib_cv_lcov_version="$lcov_check_version (ok)"
13779         fi
13780       done
13781
13782 fi
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_lcov_version" >&5
13784 $as_echo "$glib_cv_lcov_version" >&6; }
13785   else
13786     lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
13787     as_fn_error $? "$lcov_msg" "$LINENO" 5
13788   fi
13789
13790   case $glib_cv_lcov_version in
13791     ""|invalid)
13792       lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
13793       as_fn_error $? "$lcov_msg" "$LINENO" 5
13794       LCOV="exit 0;"
13795       ;;
13796   esac
13797
13798   if test -z "$GENHTML"; then
13799     as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
13800   fi
13801
13802   # Remove all optimization flags from CFLAGS
13803
13804   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
13805   CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-O[0-9]*//g'`
13806
13807
13808   # Add the special gcc flags
13809   COVERAGE_CFLAGS="--coverage -DDEBUG"
13810   COVERAGE_CXXFLAGS="--coverage -DDEBUG"
13811   COVERAGE_LDFLAGS="--coverage -lgcov"
13812
13813 fi
13814
13815
13816
13817 else
13818          if false; then
13819   HAVE_GCOV_TRUE=
13820   HAVE_GCOV_FALSE='#'
13821 else
13822   HAVE_GCOV_TRUE='#'
13823   HAVE_GCOV_FALSE=
13824 fi
13825
13826 fi
13827
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13829 $as_echo_n "checking for inline... " >&6; }
13830 if ${ac_cv_c_inline+:} false; then :
13831   $as_echo_n "(cached) " >&6
13832 else
13833   ac_cv_c_inline=no
13834 for ac_kw in inline __inline__ __inline; do
13835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h.  */
13837 #ifndef __cplusplus
13838 typedef int foo_t;
13839 static $ac_kw foo_t static_foo () {return 0; }
13840 $ac_kw foo_t foo () {return 0; }
13841 #endif
13842
13843 _ACEOF
13844 if ac_fn_c_try_compile "$LINENO"; then :
13845   ac_cv_c_inline=$ac_kw
13846 fi
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848   test "$ac_cv_c_inline" != no && break
13849 done
13850
13851 fi
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13853 $as_echo "$ac_cv_c_inline" >&6; }
13854
13855 case $ac_cv_c_inline in
13856   inline | yes) ;;
13857   *)
13858     case $ac_cv_c_inline in
13859       no) ac_val=;;
13860       *) ac_val=$ac_cv_c_inline;;
13861     esac
13862     cat >>confdefs.h <<_ACEOF
13863 #ifndef __cplusplus
13864 #define inline $ac_val
13865 #endif
13866 _ACEOF
13867     ;;
13868 esac
13869
13870
13871 # We need to compile and run a program on the build machine.
13872 #   The AC_PROG_CC_FOR_BUILD macro in the AC archive is broken for
13873 #   autoconf 2.57.
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
13875 $as_echo_n "checking for cc for build... " >&6; }
13876 if test "$cross_compiling" = "yes"; then
13877   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
13878 else
13879   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
13880 fi
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13882 $as_echo "$CC_FOR_BUILD" >&6; }
13883
13884
13885
13886 # This is handy for debugging so the compiler doesn't rearrange
13887 # things and eliminate variables.
13888 # Check whether --enable-optimization was given.
13889 if test "${enable_optimization+set}" = set; then :
13890   enableval=$enable_optimization; if test $enableval = no ; then
13891                          CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
13892                        fi
13893 fi
13894
13895
13896 if test "$GCC" = yes; then
13897     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
13898
13899     if test "$USE_MAINTAINER_MODE" = "yes"; then
13900         CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
13901
13902         # We use -W only if -Wno-missing-field-initializers is supported.
13903         # -W is important because it detects errors like "if (foo);"
13904         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
13905 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
13906         _gcc_cflags_save=$CFLAGS
13907         CFLAGS="-Wno-missing-field-initializers"
13908         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h.  */
13910
13911 int
13912 main ()
13913 {
13914
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_compile "$LINENO"; then :
13920   _gcc_wopt=yes
13921 else
13922   _gcc_wopt=no
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13926 $as_echo "$_gcc_wopt" >&6; }
13927         CFLAGS=$_gcc_cflags_save;
13928         if test x"$_gcc_wopt" = xyes ; then
13929           CFLAGS="$CFLAGS -W -Wno-sign-compare -Wno-missing-field-initializers"
13930         fi
13931
13932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
13933 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
13934         _gcc_cflags_save=$CFLAGS
13935         CFLAGS="-Wdeclaration-after-statement"
13936         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h.  */
13938
13939 int
13940 main ()
13941 {
13942
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 if ac_fn_c_try_compile "$LINENO"; then :
13948   _gcc_wopt=yes
13949 else
13950   _gcc_wopt=no
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13954 $as_echo "$_gcc_wopt" >&6; }
13955         CFLAGS=$_gcc_cflags_save;
13956         if test x"$_gcc_wopt" = xyes ; then
13957           CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13958         fi
13959     fi
13960
13961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
13962 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
13963     _gcc_cflags_save=$CFLAGS
13964     CFLAGS="-Wpointer-arith"
13965     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h.  */
13967
13968 int
13969 main ()
13970 {
13971
13972   ;
13973   return 0;
13974 }
13975 _ACEOF
13976 if ac_fn_c_try_compile "$LINENO"; then :
13977   _gcc_wopt=yes
13978 else
13979   _gcc_wopt=no
13980 fi
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13983 $as_echo "$_gcc_wopt" >&6; }
13984     CFLAGS=$_gcc_cflags_save;
13985     if test x"$_gcc_wopt" = xyes ; then
13986        CFLAGS="$CFLAGS -Wpointer-arith"
13987     fi
13988
13989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
13990 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
13991     _gcc_cflags_save=$CFLAGS
13992     CFLAGS="-Wno-pointer-sign"
13993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h.  */
13995
13996 int
13997 main ()
13998 {
13999
14000   ;
14001   return 0;
14002 }
14003 _ACEOF
14004 if ac_fn_c_try_compile "$LINENO"; then :
14005   _gcc_psign=yes
14006 else
14007   _gcc_psign=no
14008 fi
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
14011 $as_echo "$_gcc_psign" >&6; }
14012     CFLAGS=$_gcc_cflags_save;
14013     if test x"$_gcc_psign" = xyes ; then
14014        CFLAGS="$CFLAGS -Wno-pointer-sign"
14015     fi
14016
14017 fi
14018
14019 # Setup some stuff depending on host.
14020 have_w32_system=no
14021 have_w32ce_system=no
14022 case "${host}" in
14023     *-*-mingw32ce*)
14024       have_w32_system=yes
14025       have_w32ce_system=yes
14026       ;;
14027     *-*-mingw32*)
14028       have_w32_system=yes
14029       ;;
14030      *-apple-darwin*)
14031
14032 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
14033
14034       ;;
14035     *)
14036       ;;
14037 esac
14038 if test "$have_w32_system" = yes; then
14039
14040 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
14041
14042    if test "$have_w32ce_system" = yes; then
14043
14044 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
14045
14046    fi
14047 fi
14048  if test "$have_w32_system" = yes; then
14049   HAVE_W32_SYSTEM_TRUE=
14050   HAVE_W32_SYSTEM_FALSE='#'
14051 else
14052   HAVE_W32_SYSTEM_TRUE='#'
14053   HAVE_W32_SYSTEM_FALSE=
14054 fi
14055
14056  if test "$have_w32ce_system" = yes; then
14057   HAVE_W32CE_SYSTEM_TRUE=
14058   HAVE_W32CE_SYSTEM_FALSE='#'
14059 else
14060   HAVE_W32CE_SYSTEM_TRUE='#'
14061   HAVE_W32CE_SYSTEM_FALSE=
14062 fi
14063
14064
14065
14066 # For some systems we know that we have ld_version scripts.
14067 # Use it then as default.
14068 have_ld_version_script=no
14069 case "${host}" in
14070     *-*-linux*)
14071         have_ld_version_script=yes
14072         ;;
14073     *-*-gnu*)
14074         have_ld_version_script=yes
14075         ;;
14076 esac
14077 # Check whether --enable-ld-version-script was given.
14078 if test "${enable_ld_version_script+set}" = set; then :
14079   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
14080 else
14081    :
14082 fi
14083
14084  if test "$have_ld_version_script" = "yes"; then
14085   HAVE_LD_VERSION_SCRIPT_TRUE=
14086   HAVE_LD_VERSION_SCRIPT_FALSE='#'
14087 else
14088   HAVE_LD_VERSION_SCRIPT_TRUE='#'
14089   HAVE_LD_VERSION_SCRIPT_FALSE=
14090 fi
14091
14092
14093
14094 #
14095 # Check for ELF visibility support.
14096 #
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
14098 $as_echo_n "checking whether the visibility attribute is supported... " >&6; }
14099 if ${ksba_cv_visibility_attribute+:} false; then :
14100   $as_echo_n "(cached) " >&6
14101 else
14102   ksba_cv_visibility_attribute=no
14103         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h.  */
14105 int foo __attribute__ ((visibility ("hidden"))) = 1;
14106             int bar __attribute__ ((visibility ("protected"))) = 1;
14107
14108 _ACEOF
14109
14110         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14111                   1>&5 2>&5 ; then
14112             if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
14113                 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
14114                     ksba_cv_visibility_attribute=yes
14115                 fi
14116             fi
14117         fi
14118
14119 fi
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_visibility_attribute" >&5
14121 $as_echo "$ksba_cv_visibility_attribute" >&6; }
14122 if test "$ksba_cv_visibility_attribute" = "yes"; then
14123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
14124 $as_echo_n "checking for broken visibility attribute... " >&6; }
14125 if ${ksba_cv_broken_visibility_attribute+:} false; then :
14126   $as_echo_n "(cached) " >&6
14127 else
14128   ksba_cv_broken_visibility_attribute=yes
14129         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h.  */
14131 int foo (int x);
14132             int bar (int x) __asm__ ("foo")
14133                             __attribute__ ((visibility ("hidden")));
14134             int bar (int x) { return x; }
14135
14136 _ACEOF
14137
14138         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14139                   1>&5 2>&5 ; then
14140            if grep '\.hidden[   _]foo' conftest.s >/dev/null 2>&1;
14141             then
14142                ksba_cv_broken_visibility_attribute=no
14143            fi
14144         fi
14145
14146 fi
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_visibility_attribute" >&5
14148 $as_echo "$ksba_cv_broken_visibility_attribute" >&6; }
14149 fi
14150 if test "$ksba_cv_visibility_attribute" = "yes"; then
14151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
14152 $as_echo_n "checking for broken alias attribute... " >&6; }
14153 if ${ksba_cv_broken_alias_attribute+:} false; then :
14154   $as_echo_n "(cached) " >&6
14155 else
14156   ksba_cv_broken_alias_attribute=yes
14157         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h.  */
14159 extern int foo (int x) __asm ("xyzzy");
14160             int bar (int x) { return x; }
14161             extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
14162             extern int dfoo;
14163             extern __typeof (dfoo) dfoo __asm ("abccb");
14164             int dfoo = 1;
14165
14166 _ACEOF
14167
14168         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14169                   1>&5 2>&5 ; then
14170            if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
14171               grep 'abccb' conftest.s >/dev/null 2>&1; then
14172               ksba_cv_broken_alias_attribute=no
14173            fi
14174         fi
14175
14176 fi
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_alias_attribute" >&5
14178 $as_echo "$ksba_cv_broken_alias_attribute" >&6; }
14179 fi
14180 if test "$ksba_cv_visibility_attribute" = "yes"; then
14181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
14182 $as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
14183 if ${ksba_cv_gcc_has_f_visibility+:} false; then :
14184   $as_echo_n "(cached) " >&6
14185 else
14186   ksba_cv_gcc_has_f_visibility=no
14187         _gcc_cflags_save=$CFLAGS
14188         CFLAGS="-fvisibility=hidden"
14189         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h.  */
14191
14192 int
14193 main ()
14194 {
14195
14196   ;
14197   return 0;
14198 }
14199 _ACEOF
14200 if ac_fn_c_try_compile "$LINENO"; then :
14201   ksba_cv_gcc_has_f_visibility=yes
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204         CFLAGS=$_gcc_cflags_save;
14205
14206 fi
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_gcc_has_f_visibility" >&5
14208 $as_echo "$ksba_cv_gcc_has_f_visibility" >&6; }
14209 fi
14210 if test "$ksba_cv_visibility_attribute" = "yes" \
14211    && test "$ksba_cv_broken_visibility_attribute" != "yes" \
14212    && test "$ksba_cv_broken_alias_attribute" != "yes" \
14213    && test "$ksba_cv_gcc_has_f_visibility" = "yes"
14214  then
14215
14216 $as_echo "#define KSBA_USE_VISIBILITY 1" >>confdefs.h
14217
14218    CFLAGS="$CFLAGS -fvisibility=hidden"
14219 fi
14220
14221
14222 #
14223 # Checks for libraries.
14224 #
14225
14226   gpg_error_config_prefix=""
14227
14228 # Check whether --with-libgpg-error-prefix was given.
14229 if test "${with_libgpg_error_prefix+set}" = set; then :
14230   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
14231 fi
14232
14233
14234
14235 # Check whether --with-gpg-error-prefix was given.
14236 if test "${with_gpg_error_prefix+set}" = set; then :
14237   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
14238 fi
14239
14240
14241   if test x"${GPG_ERROR_CONFIG}" = x ; then
14242      if test x"${gpg_error_config_prefix}" != x ; then
14243         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
14244      else
14245        case "${SYSROOT}" in
14246          /*)
14247            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
14248              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
14249            fi
14250            ;;
14251          '')
14252            ;;
14253           *)
14254            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
14255 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
14256            ;;
14257        esac
14258      fi
14259   fi
14260
14261   # Extract the first word of "gpg-error-config", so it can be a program name with args.
14262 set dummy gpg-error-config; ac_word=$2
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14264 $as_echo_n "checking for $ac_word... " >&6; }
14265 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
14266   $as_echo_n "(cached) " >&6
14267 else
14268   case $GPG_ERROR_CONFIG in
14269   [\\/]* | ?:[\\/]*)
14270   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
14271   ;;
14272   *)
14273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14275 do
14276   IFS=$as_save_IFS
14277   test -z "$as_dir" && as_dir=.
14278     for ac_exec_ext in '' $ac_executable_extensions; do
14279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14280     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14282     break 2
14283   fi
14284 done
14285   done
14286 IFS=$as_save_IFS
14287
14288   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
14289   ;;
14290 esac
14291 fi
14292 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
14293 if test -n "$GPG_ERROR_CONFIG"; then
14294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
14295 $as_echo "$GPG_ERROR_CONFIG" >&6; }
14296 else
14297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14299 fi
14300
14301
14302   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
14303   ok=no
14304
14305   # Extract the first word of "gpgrt-config", so it can be a program name with args.
14306 set dummy gpgrt-config; ac_word=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308 $as_echo_n "checking for $ac_word... " >&6; }
14309 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
14310   $as_echo_n "(cached) " >&6
14311 else
14312   case $GPGRT_CONFIG in
14313   [\\/]* | ?:[\\/]*)
14314   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
14315   ;;
14316   *)
14317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318 as_dummy="$prefix/bin:$PATH"
14319 for as_dir in $as_dummy
14320 do
14321   IFS=$as_save_IFS
14322   test -z "$as_dir" && as_dir=.
14323     for ac_exec_ext in '' $ac_executable_extensions; do
14324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14325     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14327     break 2
14328   fi
14329 done
14330   done
14331 IFS=$as_save_IFS
14332
14333   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
14334   ;;
14335 esac
14336 fi
14337 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
14338 if test -n "$GPGRT_CONFIG"; then
14339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
14340 $as_echo "$GPGRT_CONFIG" >&6; }
14341 else
14342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14344 fi
14345
14346
14347   if test "$GPGRT_CONFIG" != "no"; then
14348     # Determine gpgrt_libdir
14349     #
14350     # Get the prefix of gpgrt-config assuming it's something like:
14351     #   <PREFIX>/bin/gpgrt-config
14352     gpgrt_prefix=${GPGRT_CONFIG%/*/*}
14353     possible_libdir1=${gpgrt_prefix}/lib
14354     # Determine by using system libdir-format with CC, it's like:
14355     #   Normal style: /usr/lib
14356     #   GNU cross style: /usr/<triplet>/lib
14357     #   Debian style: /usr/lib/<multiarch-name>
14358     #   Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
14359     # It is assumed that CC is specified to the one of host on cross build.
14360     if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
14361           sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
14362 /g;p;}"); then
14363       # From the output of -print-search-dirs, select valid pkgconfig dirs.
14364       libdir_candidates=$(for dir in $libdir_candidates; do
14365         if p=$(cd $dir 2>/dev/null && pwd); then
14366           test -d "$p/pkgconfig" && echo $p;
14367         fi
14368       done)
14369
14370       for possible_libdir0 in $libdir_candidates; do
14371         # possible_libdir0:
14372         #   Fallback candidate, the one of system-installed (by $CC)
14373         #   (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
14374         # possible_libdir1:
14375         #   Another candidate, user-locally-installed
14376         #   (<gpgrt_prefix>/lib)
14377         # possible_libdir2
14378         #   Most preferred
14379         #   (<gpgrt_prefix>/<triplet>/lib,
14380         #    <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
14381         if test "${possible_libdir0##*/}" = "lib"; then
14382           possible_prefix0=${possible_libdir0%/lib}
14383           possible_prefix0_triplet=${possible_prefix0##*/}
14384           if test -z "$possible_prefix0_triplet"; then
14385             continue
14386           fi
14387           possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
14388         else
14389           possible_prefix0=${possible_libdir0%%/lib*}
14390           possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
14391         fi
14392         if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
14393           gpgrt_libdir=${possible_libdir2}
14394         elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
14395           gpgrt_libdir=${possible_libdir1}
14396         elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
14397           gpgrt_libdir=${possible_libdir0}
14398         fi
14399         if test -n "$gpgrt_libdir"; then break; fi
14400       done
14401       if test -z "$libdir_candidates"; then
14402         # No valid pkgconfig dir in any of the system directories, fallback
14403         gpgrt_libdir=${possible_libdir1}
14404       fi
14405     else
14406       # When we cannot determine system libdir-format, use this:
14407       gpgrt_libdir=${possible_libdir1}
14408     fi
14409   else
14410     unset GPGRT_CONFIG
14411   fi
14412
14413   if test -n "$gpgrt_libdir"; then
14414     GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
14415     if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
14416       GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
14417       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
14418 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
14419       gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
14420     else
14421       unset GPGRT_CONFIG
14422     fi
14423   elif test "$GPG_ERROR_CONFIG" != "no"; then
14424     gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
14425     unset GPGRT_CONFIG
14426   fi
14427   if test "$GPG_ERROR_CONFIG" != "no"; then
14428     req_major=`echo $min_gpg_error_version | \
14429                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
14430     req_minor=`echo $min_gpg_error_version | \
14431                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
14432     major=`echo $gpg_error_config_version | \
14433                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
14434     minor=`echo $gpg_error_config_version | \
14435                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
14436     if test "$major" -gt "$req_major"; then
14437         ok=yes
14438     else
14439         if test "$major" -eq "$req_major"; then
14440             if test "$minor" -ge "$req_minor"; then
14441                ok=yes
14442             fi
14443         fi
14444     fi
14445   fi
14446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
14447 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
14448   if test $ok = yes; then
14449     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
14450     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
14451     if test -z "$GPGRT_CONFIG"; then
14452       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
14453       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
14454     else
14455       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
14456       GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
14457       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
14458       GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
14459     fi
14460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
14461 $as_echo "yes ($gpg_error_config_version)" >&6; }
14462     :
14463     if test -z "$GPGRT_CONFIG"; then
14464       gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
14465     else
14466       gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
14467     fi
14468     if test x"$gpg_error_config_host" != xnone ; then
14469       if test x"$gpg_error_config_host" != x"$host" ; then
14470   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14471 ***
14472 *** The config script \"$GPG_ERROR_CONFIG\" was
14473 *** built for $gpg_error_config_host and thus may not match the
14474 *** used host $host.
14475 *** You may want to use the configure option --with-libgpg-error-prefix
14476 *** to specify a matching config script or use \$SYSROOT.
14477 ***" >&5
14478 $as_echo "$as_me: WARNING:
14479 ***
14480 *** The config script \"$GPG_ERROR_CONFIG\" was
14481 *** built for $gpg_error_config_host and thus may not match the
14482 *** used host $host.
14483 *** You may want to use the configure option --with-libgpg-error-prefix
14484 *** to specify a matching config script or use \$SYSROOT.
14485 ***" >&2;}
14486         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
14487       fi
14488     fi
14489   else
14490     GPG_ERROR_CFLAGS=""
14491     GPG_ERROR_LIBS=""
14492     GPG_ERROR_MT_CFLAGS=""
14493     GPG_ERROR_MT_LIBS=""
14494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14495 $as_echo "no" >&6; }
14496     :
14497   fi
14498
14499
14500
14501
14502
14503 if test "x$GPG_ERROR_LIBS" = "x"; then
14504   as_fn_error $? "libgpg-error is needed.
14505                 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
14506 fi
14507
14508
14509 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_KSBA" >>confdefs.h
14510
14511
14512  if test -n "$GPGRT_CONFIG" \
14513                                   -a "$ac_cv_path_GPG_ERROR_CONFIG" = no; then
14514   USE_GPGRT_CONFIG_TRUE=
14515   USE_GPGRT_CONFIG_FALSE='#'
14516 else
14517   USE_GPGRT_CONFIG_TRUE='#'
14518   USE_GPGRT_CONFIG_FALSE=
14519 fi
14520
14521
14522 # Checks for header files.
14523
14524 # Checks for typedefs, structures, and compiler characteristics.
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14526 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14527 if ${ac_cv_c_const+:} false; then :
14528   $as_echo_n "(cached) " >&6
14529 else
14530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h.  */
14532
14533 int
14534 main ()
14535 {
14536
14537 #ifndef __cplusplus
14538   /* Ultrix mips cc rejects this sort of thing.  */
14539   typedef int charset[2];
14540   const charset cs = { 0, 0 };
14541   /* SunOS 4.1.1 cc rejects this.  */
14542   char const *const *pcpcc;
14543   char **ppc;
14544   /* NEC SVR4.0.2 mips cc rejects this.  */
14545   struct point {int x, y;};
14546   static struct point const zero = {0,0};
14547   /* AIX XL C 1.02.0.0 rejects this.
14548      It does not let you subtract one const X* pointer from another in
14549      an arm of an if-expression whose if-part is not a constant
14550      expression */
14551   const char *g = "string";
14552   pcpcc = &g + (g ? g-g : 0);
14553   /* HPUX 7.0 cc rejects these. */
14554   ++pcpcc;
14555   ppc = (char**) pcpcc;
14556   pcpcc = (char const *const *) ppc;
14557   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14558     char tx;
14559     char *t = &tx;
14560     char const *s = 0 ? (char *) 0 : (char const *) 0;
14561
14562     *t++ = 0;
14563     if (s) return 0;
14564   }
14565   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14566     int x[] = {25, 17};
14567     const int *foo = &x[0];
14568     ++foo;
14569   }
14570   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14571     typedef const int *iptr;
14572     iptr p = 0;
14573     ++p;
14574   }
14575   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14576        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14577     struct s { int j; const int *ap[3]; } bx;
14578     struct s *b = &bx; b->j = 5;
14579   }
14580   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14581     const int foo = 10;
14582     if (!foo) return 0;
14583   }
14584   return !cs[0] && !zero.x;
14585 #endif
14586
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 if ac_fn_c_try_compile "$LINENO"; then :
14592   ac_cv_c_const=yes
14593 else
14594   ac_cv_c_const=no
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14599 $as_echo "$ac_cv_c_const" >&6; }
14600 if test $ac_cv_c_const = no; then
14601
14602 $as_echo "#define const /**/" >>confdefs.h
14603
14604 fi
14605
14606
14607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14608 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14609 if ${ac_cv_c_bigendian+:} false; then :
14610   $as_echo_n "(cached) " >&6
14611 else
14612   ac_cv_c_bigendian=unknown
14613     # See if we're dealing with a universal compiler.
14614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h.  */
14616 #ifndef __APPLE_CC__
14617                not a universal capable compiler
14618              #endif
14619              typedef int dummy;
14620
14621 _ACEOF
14622 if ac_fn_c_try_compile "$LINENO"; then :
14623
14624         # Check for potential -arch flags.  It is not universal unless
14625         # there are at least two -arch flags with different values.
14626         ac_arch=
14627         ac_prev=
14628         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14629          if test -n "$ac_prev"; then
14630            case $ac_word in
14631              i?86 | x86_64 | ppc | ppc64)
14632                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14633                  ac_arch=$ac_word
14634                else
14635                  ac_cv_c_bigendian=universal
14636                  break
14637                fi
14638                ;;
14639            esac
14640            ac_prev=
14641          elif test "x$ac_word" = "x-arch"; then
14642            ac_prev=arch
14643          fi
14644        done
14645 fi
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647     if test $ac_cv_c_bigendian = unknown; then
14648       # See if sys/param.h defines the BYTE_ORDER macro.
14649       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h.  */
14651 #include <sys/types.h>
14652              #include <sys/param.h>
14653
14654 int
14655 main ()
14656 {
14657 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14658                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14659                      && LITTLE_ENDIAN)
14660               bogus endian macros
14661              #endif
14662
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 if ac_fn_c_try_compile "$LINENO"; then :
14668   # It does; now see whether it defined to BIG_ENDIAN or not.
14669          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h.  */
14671 #include <sys/types.h>
14672                 #include <sys/param.h>
14673
14674 int
14675 main ()
14676 {
14677 #if BYTE_ORDER != BIG_ENDIAN
14678                  not big endian
14679                 #endif
14680
14681   ;
14682   return 0;
14683 }
14684 _ACEOF
14685 if ac_fn_c_try_compile "$LINENO"; then :
14686   ac_cv_c_bigendian=yes
14687 else
14688   ac_cv_c_bigendian=no
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 fi
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693     fi
14694     if test $ac_cv_c_bigendian = unknown; then
14695       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14696       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h.  */
14698 #include <limits.h>
14699
14700 int
14701 main ()
14702 {
14703 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14704               bogus endian macros
14705              #endif
14706
14707   ;
14708   return 0;
14709 }
14710 _ACEOF
14711 if ac_fn_c_try_compile "$LINENO"; then :
14712   # It does; now see whether it defined to _BIG_ENDIAN or not.
14713          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h.  */
14715 #include <limits.h>
14716
14717 int
14718 main ()
14719 {
14720 #ifndef _BIG_ENDIAN
14721                  not big endian
14722                 #endif
14723
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 if ac_fn_c_try_compile "$LINENO"; then :
14729   ac_cv_c_bigendian=yes
14730 else
14731   ac_cv_c_bigendian=no
14732 fi
14733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14734 fi
14735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736     fi
14737     if test $ac_cv_c_bigendian = unknown; then
14738       # Compile a test program.
14739       if test "$cross_compiling" = yes; then :
14740   # Try to guess by grepping values from an object file.
14741          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h.  */
14743 short int ascii_mm[] =
14744                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14745                 short int ascii_ii[] =
14746                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14747                 int use_ascii (int i) {
14748                   return ascii_mm[i] + ascii_ii[i];
14749                 }
14750                 short int ebcdic_ii[] =
14751                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14752                 short int ebcdic_mm[] =
14753                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14754                 int use_ebcdic (int i) {
14755                   return ebcdic_mm[i] + ebcdic_ii[i];
14756                 }
14757                 extern int foo;
14758
14759 int
14760 main ()
14761 {
14762 return use_ascii (foo) == use_ebcdic (foo);
14763   ;
14764   return 0;
14765 }
14766 _ACEOF
14767 if ac_fn_c_try_compile "$LINENO"; then :
14768   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14769               ac_cv_c_bigendian=yes
14770             fi
14771             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14772               if test "$ac_cv_c_bigendian" = unknown; then
14773                 ac_cv_c_bigendian=no
14774               else
14775                 # finding both strings is unlikely to happen, but who knows?
14776                 ac_cv_c_bigendian=unknown
14777               fi
14778             fi
14779 fi
14780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14781 else
14782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h.  */
14784 $ac_includes_default
14785 int
14786 main ()
14787 {
14788
14789              /* Are we little or big endian?  From Harbison&Steele.  */
14790              union
14791              {
14792                long int l;
14793                char c[sizeof (long int)];
14794              } u;
14795              u.l = 1;
14796              return u.c[sizeof (long int) - 1] == 1;
14797
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 if ac_fn_c_try_run "$LINENO"; then :
14803   ac_cv_c_bigendian=no
14804 else
14805   ac_cv_c_bigendian=yes
14806 fi
14807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14808   conftest.$ac_objext conftest.beam conftest.$ac_ext
14809 fi
14810
14811     fi
14812 fi
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14814 $as_echo "$ac_cv_c_bigendian" >&6; }
14815  case $ac_cv_c_bigendian in #(
14816    yes)
14817      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14818 ;; #(
14819    no)
14820       ;; #(
14821    universal)
14822
14823 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14824
14825      ;; #(
14826    *)
14827      as_fn_error $? "unknown endianness
14828  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14829  esac
14830
14831
14832 # The cast to long int works around a bug in the HP C Compiler
14833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14835 # This bug is HP SR number 8606223364.
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14837 $as_echo_n "checking size of unsigned int... " >&6; }
14838 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14839   $as_echo_n "(cached) " >&6
14840 else
14841   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
14842
14843 else
14844   if test "$ac_cv_type_unsigned_int" = yes; then
14845      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14847 as_fn_error 77 "cannot compute sizeof (unsigned int)
14848 See \`config.log' for more details" "$LINENO" 5; }
14849    else
14850      ac_cv_sizeof_unsigned_int=0
14851    fi
14852 fi
14853
14854 fi
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14856 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14857
14858
14859
14860 cat >>confdefs.h <<_ACEOF
14861 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14862 _ACEOF
14863
14864
14865 # The cast to long int works around a bug in the HP C Compiler
14866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14868 # This bug is HP SR number 8606223364.
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14870 $as_echo_n "checking size of unsigned long... " >&6; }
14871 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14872   $as_echo_n "(cached) " >&6
14873 else
14874   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14875
14876 else
14877   if test "$ac_cv_type_unsigned_long" = yes; then
14878      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14880 as_fn_error 77 "cannot compute sizeof (unsigned long)
14881 See \`config.log' for more details" "$LINENO" 5; }
14882    else
14883      ac_cv_sizeof_unsigned_long=0
14884    fi
14885 fi
14886
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14889 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14890
14891
14892
14893 cat >>confdefs.h <<_ACEOF
14894 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14895 _ACEOF
14896
14897
14898 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14899 if test "x$ac_cv_type_u32" = xyes; then :
14900
14901 cat >>confdefs.h <<_ACEOF
14902 #define HAVE_U32 1
14903 _ACEOF
14904
14905
14906 fi
14907
14908
14909
14910 # Checks for library functions.
14911 for ac_func in stpcpy gmtime_r getenv
14912 do :
14913   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14915 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14916   cat >>confdefs.h <<_ACEOF
14917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14918 _ACEOF
14919
14920 fi
14921 done
14922
14923
14924
14925 # GNUlib checks
14926
14927
14928
14929 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14930 if test "x$ac_cv_type_size_t" = xyes; then :
14931
14932 else
14933
14934 cat >>confdefs.h <<_ACEOF
14935 #define size_t unsigned int
14936 _ACEOF
14937
14938 fi
14939
14940 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14941 # for constant arguments.  Useless!
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14943 $as_echo_n "checking for working alloca.h... " >&6; }
14944 if ${ac_cv_working_alloca_h+:} false; then :
14945   $as_echo_n "(cached) " >&6
14946 else
14947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h.  */
14949 #include <alloca.h>
14950 int
14951 main ()
14952 {
14953 char *p = (char *) alloca (2 * sizeof (int));
14954                           if (p) return 0;
14955   ;
14956   return 0;
14957 }
14958 _ACEOF
14959 if ac_fn_c_try_link "$LINENO"; then :
14960   ac_cv_working_alloca_h=yes
14961 else
14962   ac_cv_working_alloca_h=no
14963 fi
14964 rm -f core conftest.err conftest.$ac_objext \
14965     conftest$ac_exeext conftest.$ac_ext
14966 fi
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14968 $as_echo "$ac_cv_working_alloca_h" >&6; }
14969 if test $ac_cv_working_alloca_h = yes; then
14970
14971 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14972
14973 fi
14974
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14976 $as_echo_n "checking for alloca... " >&6; }
14977 if ${ac_cv_func_alloca_works+:} false; then :
14978   $as_echo_n "(cached) " >&6
14979 else
14980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h.  */
14982 #ifdef __GNUC__
14983 # define alloca __builtin_alloca
14984 #else
14985 # ifdef _MSC_VER
14986 #  include <malloc.h>
14987 #  define alloca _alloca
14988 # else
14989 #  ifdef HAVE_ALLOCA_H
14990 #   include <alloca.h>
14991 #  else
14992 #   ifdef _AIX
14993  #pragma alloca
14994 #   else
14995 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14996 void *alloca (size_t);
14997 #    endif
14998 #   endif
14999 #  endif
15000 # endif
15001 #endif
15002
15003 int
15004 main ()
15005 {
15006 char *p = (char *) alloca (1);
15007                                     if (p) return 0;
15008   ;
15009   return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_link "$LINENO"; then :
15013   ac_cv_func_alloca_works=yes
15014 else
15015   ac_cv_func_alloca_works=no
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext \
15018     conftest$ac_exeext conftest.$ac_ext
15019 fi
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15021 $as_echo "$ac_cv_func_alloca_works" >&6; }
15022
15023 if test $ac_cv_func_alloca_works = yes; then
15024
15025 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15026
15027 else
15028   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15029 # that cause trouble.  Some versions do not even contain alloca or
15030 # contain a buggy version.  If you still want to use their alloca,
15031 # use ar to extract alloca.o from them instead of compiling alloca.c.
15032
15033 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15034
15035 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15036
15037
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15039 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15040 if ${ac_cv_os_cray+:} false; then :
15041   $as_echo_n "(cached) " >&6
15042 else
15043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h.  */
15045 #if defined CRAY && ! defined CRAY2
15046 webecray
15047 #else
15048 wenotbecray
15049 #endif
15050
15051 _ACEOF
15052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15053   $EGREP "webecray" >/dev/null 2>&1; then :
15054   ac_cv_os_cray=yes
15055 else
15056   ac_cv_os_cray=no
15057 fi
15058 rm -f conftest*
15059
15060 fi
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15062 $as_echo "$ac_cv_os_cray" >&6; }
15063 if test $ac_cv_os_cray = yes; then
15064   for ac_func in _getb67 GETB67 getb67; do
15065     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15066 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15067 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15068
15069 cat >>confdefs.h <<_ACEOF
15070 #define CRAY_STACKSEG_END $ac_func
15071 _ACEOF
15072
15073     break
15074 fi
15075
15076   done
15077 fi
15078
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15080 $as_echo_n "checking stack direction for C alloca... " >&6; }
15081 if ${ac_cv_c_stack_direction+:} false; then :
15082   $as_echo_n "(cached) " >&6
15083 else
15084   if test "$cross_compiling" = yes; then :
15085   ac_cv_c_stack_direction=0
15086 else
15087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h.  */
15089 $ac_includes_default
15090 int
15091 find_stack_direction (int *addr, int depth)
15092 {
15093   int dir, dummy = 0;
15094   if (! addr)
15095     addr = &dummy;
15096   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15097   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15098   return dir + dummy;
15099 }
15100
15101 int
15102 main (int argc, char **argv)
15103 {
15104   return find_stack_direction (0, argc + !argv + 20) < 0;
15105 }
15106 _ACEOF
15107 if ac_fn_c_try_run "$LINENO"; then :
15108   ac_cv_c_stack_direction=1
15109 else
15110   ac_cv_c_stack_direction=-1
15111 fi
15112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15113   conftest.$ac_objext conftest.beam conftest.$ac_ext
15114 fi
15115
15116 fi
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15118 $as_echo "$ac_cv_c_stack_direction" >&6; }
15119 cat >>confdefs.h <<_ACEOF
15120 #define STACK_DIRECTION $ac_cv_c_stack_direction
15121 _ACEOF
15122
15123
15124 fi
15125
15126
15127 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
15128
15129
15130
15131
15132
15133
15134   if test $ac_cv_func_alloca_works = no; then
15135     :
15136   fi
15137
15138   # Define an additional variable used in the Makefile substitution.
15139   if test $ac_cv_working_alloca_h = yes; then
15140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h.  */
15142
15143 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
15144         Need own alloca
15145 #endif
15146
15147 _ACEOF
15148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15149   $EGREP "Need own alloca" >/dev/null 2>&1; then :
15150
15151 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15152
15153        ALLOCA_H=alloca.h
15154 else
15155   ALLOCA_H=
15156 fi
15157 rm -f conftest*
15158
15159   else
15160     ALLOCA_H=alloca.h
15161   fi
15162
15163
15164
15165 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15166
15167
15168
15169   # Check whether --enable-valgrind-tests was given.
15170 if test "${enable_valgrind_tests+set}" = set; then :
15171   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
15172 else
15173   opt_valgrind_tests=yes
15174 fi
15175
15176
15177   # Run self-tests under valgrind?
15178   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
15179     for ac_prog in valgrind
15180 do
15181   # Extract the first word of "$ac_prog", so it can be a program name with args.
15182 set dummy $ac_prog; ac_word=$2
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15184 $as_echo_n "checking for $ac_word... " >&6; }
15185 if ${ac_cv_prog_VALGRIND+:} false; then :
15186   $as_echo_n "(cached) " >&6
15187 else
15188   if test -n "$VALGRIND"; then
15189   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
15190 else
15191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $PATH
15193 do
15194   IFS=$as_save_IFS
15195   test -z "$as_dir" && as_dir=.
15196     for ac_exec_ext in '' $ac_executable_extensions; do
15197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198     ac_cv_prog_VALGRIND="$ac_prog"
15199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15200     break 2
15201   fi
15202 done
15203   done
15204 IFS=$as_save_IFS
15205
15206 fi
15207 fi
15208 VALGRIND=$ac_cv_prog_VALGRIND
15209 if test -n "$VALGRIND"; then
15210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
15211 $as_echo "$VALGRIND" >&6; }
15212 else
15213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214 $as_echo "no" >&6; }
15215 fi
15216
15217
15218   test -n "$VALGRIND" && break
15219 done
15220
15221   fi
15222
15223   OPTS="-q --error-exitcode=1 --leak-check=full"
15224
15225   if test -n "$VALGRIND" \
15226      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
15227     opt_valgrind_tests=yes
15228     VALGRIND="$VALGRIND $OPTS"
15229   else
15230     opt_valgrind_tests=no
15231     VALGRIND=
15232   fi
15233
15234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
15235 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
15236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
15237 $as_echo "$opt_valgrind_tests" >&6; }
15238
15239
15240
15241 # To be used in ksba-config
15242 KSBA_CONFIG_LIBS="-lksba"
15243 KSBA_CONFIG_CFLAGS=""
15244 KSBA_CONFIG_HOST="$host"
15245
15246
15247
15248
15249
15250 # The Makefiles need to know about cross compiling
15251  if test x$cross_compiling != xno; then
15252   CROSS_COMPILING_TRUE=
15253   CROSS_COMPILING_FALSE='#'
15254 else
15255   CROSS_COMPILING_TRUE='#'
15256   CROSS_COMPILING_FALSE=
15257 fi
15258
15259
15260
15261 # Generate extended version information for W32.
15262 if test "$have_w32_system" = yes; then
15263       BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
15264       BUILD_FILEVERSION="${BUILD_FILEVERSION}49146"
15265 fi
15266
15267
15268 BUILD_REVISION="bffa9b3"
15269
15270
15271 cat >>confdefs.h <<_ACEOF
15272 #define BUILD_REVISION "$BUILD_REVISION"
15273 _ACEOF
15274
15275
15276 # Check whether --enable-build-timestamp was given.
15277 if test "${enable_build_timestamp+set}" = set; then :
15278   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
15279         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
15280       else
15281         BUILD_TIMESTAMP="$enableval"
15282       fi
15283 else
15284   BUILD_TIMESTAMP="<none>"
15285 fi
15286
15287
15288
15289 cat >>confdefs.h <<_ACEOF
15290 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
15291 _ACEOF
15292
15293
15294 build_doc=yes
15295 # Check whether --enable-doc was given.
15296 if test "${enable_doc+set}" = set; then :
15297   enableval=$enable_doc; build_doc=$enableval
15298 else
15299   build_doc=yes
15300 fi
15301
15302  if test "x$build_doc" != xno; then
15303   BUILD_DOC_TRUE=
15304   BUILD_DOC_FALSE='#'
15305 else
15306   BUILD_DOC_TRUE='#'
15307   BUILD_DOC_FALSE=
15308 fi
15309
15310
15311
15312 ac_config_files="$ac_config_files Makefile m4/Makefile gl/Makefile src/Makefile src/ksba.h src/ksba-config src/ksba.pc src/versioninfo.rc tests/Makefile doc/Makefile"
15313
15314 cat >confcache <<\_ACEOF
15315 # This file is a shell script that caches the results of configure
15316 # tests run on this system so they can be shared between configure
15317 # scripts and configure runs, see configure's option --config-cache.
15318 # It is not useful on other systems.  If it contains results you don't
15319 # want to keep, you may remove or edit it.
15320 #
15321 # config.status only pays attention to the cache file if you give it
15322 # the --recheck option to rerun configure.
15323 #
15324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15326 # following values.
15327
15328 _ACEOF
15329
15330 # The following way of writing the cache mishandles newlines in values,
15331 # but we know of no workaround that is simple, portable, and efficient.
15332 # So, we kill variables containing newlines.
15333 # Ultrix sh set writes to stderr and can't be redirected directly,
15334 # and sets the high bit in the cache file unless we assign to the vars.
15335 (
15336   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15337     eval ac_val=\$$ac_var
15338     case $ac_val in #(
15339     *${as_nl}*)
15340       case $ac_var in #(
15341       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15342 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15343       esac
15344       case $ac_var in #(
15345       _ | IFS | as_nl) ;; #(
15346       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15347       *) { eval $ac_var=; unset $ac_var;} ;;
15348       esac ;;
15349     esac
15350   done
15351
15352   (set) 2>&1 |
15353     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15354     *${as_nl}ac_space=\ *)
15355       # `set' does not quote correctly, so add quotes: double-quote
15356       # substitution turns \\\\ into \\, and sed turns \\ into \.
15357       sed -n \
15358         "s/'/'\\\\''/g;
15359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15360       ;; #(
15361     *)
15362       # `set' quotes correctly as required by POSIX, so do not add quotes.
15363       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15364       ;;
15365     esac |
15366     sort
15367 ) |
15368   sed '
15369      /^ac_cv_env_/b end
15370      t clear
15371      :clear
15372      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15373      t end
15374      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15375      :end' >>confcache
15376 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15377   if test -w "$cache_file"; then
15378     if test "x$cache_file" != "x/dev/null"; then
15379       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15380 $as_echo "$as_me: updating cache $cache_file" >&6;}
15381       if test ! -f "$cache_file" || test -h "$cache_file"; then
15382         cat confcache >"$cache_file"
15383       else
15384         case $cache_file in #(
15385         */* | ?:*)
15386           mv -f confcache "$cache_file"$$ &&
15387           mv -f "$cache_file"$$ "$cache_file" ;; #(
15388         *)
15389           mv -f confcache "$cache_file" ;;
15390         esac
15391       fi
15392     fi
15393   else
15394     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15395 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15396   fi
15397 fi
15398 rm -f confcache
15399
15400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15401 # Let make expand exec_prefix.
15402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15403
15404 DEFS=-DHAVE_CONFIG_H
15405
15406 ac_libobjs=
15407 ac_ltlibobjs=
15408 U=
15409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15410   # 1. Remove the extension, and $U if already installed.
15411   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15412   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15413   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15414   #    will be set to the directory where LIBOBJS objects are built.
15415   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15416   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15417 done
15418 LIBOBJS=$ac_libobjs
15419
15420 LTLIBOBJS=$ac_ltlibobjs
15421
15422
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15424 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15425    if test -n "$am_sleep_pid"; then
15426      # Hide warnings about reused PIDs.
15427      wait $am_sleep_pid 2>/dev/null
15428    fi
15429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15430 $as_echo "done" >&6; }
15431  if test -n "$EXEEXT"; then
15432   am__EXEEXT_TRUE=
15433   am__EXEEXT_FALSE='#'
15434 else
15435   am__EXEEXT_TRUE='#'
15436   am__EXEEXT_FALSE=
15437 fi
15438
15439 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15440   as_fn_error $? "conditional \"AMDEP\" was never defined.
15441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15442 fi
15443 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15444   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15446 fi
15447 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15448   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15450 fi
15451 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15452   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15454 fi
15455 if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
15456   as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
15457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15458 fi
15459 if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
15460   as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
15461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15462 fi
15463 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
15464   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
15465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15466 fi
15467 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
15468   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
15469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15470 fi
15471 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
15472   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
15473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15474 fi
15475 if test -z "${USE_GPGRT_CONFIG_TRUE}" && test -z "${USE_GPGRT_CONFIG_FALSE}"; then
15476   as_fn_error $? "conditional \"USE_GPGRT_CONFIG\" was never defined.
15477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15478 fi
15479
15480 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
15481   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
15482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15483 fi
15484 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
15485   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
15486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15487 fi
15488
15489 : "${CONFIG_STATUS=./config.status}"
15490 ac_write_fail=0
15491 ac_clean_files_save=$ac_clean_files
15492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15494 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15495 as_write_fail=0
15496 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15497 #! $SHELL
15498 # Generated by $as_me.
15499 # Run this file to recreate the current configuration.
15500 # Compiler output produced by configure, useful for debugging
15501 # configure, is in config.log if it exists.
15502
15503 debug=false
15504 ac_cs_recheck=false
15505 ac_cs_silent=false
15506
15507 SHELL=\${CONFIG_SHELL-$SHELL}
15508 export SHELL
15509 _ASEOF
15510 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15511 ## -------------------- ##
15512 ## M4sh Initialization. ##
15513 ## -------------------- ##
15514
15515 # Be more Bourne compatible
15516 DUALCASE=1; export DUALCASE # for MKS sh
15517 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15518   emulate sh
15519   NULLCMD=:
15520   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15521   # is contrary to our usage.  Disable this feature.
15522   alias -g '${1+"$@"}'='"$@"'
15523   setopt NO_GLOB_SUBST
15524 else
15525   case `(set -o) 2>/dev/null` in #(
15526   *posix*) :
15527     set -o posix ;; #(
15528   *) :
15529      ;;
15530 esac
15531 fi
15532
15533
15534 as_nl='
15535 '
15536 export as_nl
15537 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15538 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15539 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15540 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15541 # Prefer a ksh shell builtin over an external printf program on Solaris,
15542 # but without wasting forks for bash or zsh.
15543 if test -z "$BASH_VERSION$ZSH_VERSION" \
15544     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15545   as_echo='print -r --'
15546   as_echo_n='print -rn --'
15547 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15548   as_echo='printf %s\n'
15549   as_echo_n='printf %s'
15550 else
15551   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15552     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15553     as_echo_n='/usr/ucb/echo -n'
15554   else
15555     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15556     as_echo_n_body='eval
15557       arg=$1;
15558       case $arg in #(
15559       *"$as_nl"*)
15560         expr "X$arg" : "X\\(.*\\)$as_nl";
15561         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15562       esac;
15563       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15564     '
15565     export as_echo_n_body
15566     as_echo_n='sh -c $as_echo_n_body as_echo'
15567   fi
15568   export as_echo_body
15569   as_echo='sh -c $as_echo_body as_echo'
15570 fi
15571
15572 # The user is always right.
15573 if test "${PATH_SEPARATOR+set}" != set; then
15574   PATH_SEPARATOR=:
15575   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15576     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15577       PATH_SEPARATOR=';'
15578   }
15579 fi
15580
15581
15582 # IFS
15583 # We need space, tab and new line, in precisely that order.  Quoting is
15584 # there to prevent editors from complaining about space-tab.
15585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15586 # splitting by setting IFS to empty value.)
15587 IFS=" ""        $as_nl"
15588
15589 # Find who we are.  Look in the path if we contain no directory separator.
15590 as_myself=
15591 case $0 in #((
15592   *[\\/]* ) as_myself=$0 ;;
15593   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15594 for as_dir in $PATH
15595 do
15596   IFS=$as_save_IFS
15597   test -z "$as_dir" && as_dir=.
15598     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15599   done
15600 IFS=$as_save_IFS
15601
15602      ;;
15603 esac
15604 # We did not find ourselves, most probably we were run as `sh COMMAND'
15605 # in which case we are not to be found in the path.
15606 if test "x$as_myself" = x; then
15607   as_myself=$0
15608 fi
15609 if test ! -f "$as_myself"; then
15610   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15611   exit 1
15612 fi
15613
15614 # Unset variables that we do not need and which cause bugs (e.g. in
15615 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15616 # suppresses any "Segmentation fault" message there.  '((' could
15617 # trigger a bug in pdksh 5.2.14.
15618 for as_var in BASH_ENV ENV MAIL MAILPATH
15619 do eval test x\${$as_var+set} = xset \
15620   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15621 done
15622 PS1='$ '
15623 PS2='> '
15624 PS4='+ '
15625
15626 # NLS nuisances.
15627 LC_ALL=C
15628 export LC_ALL
15629 LANGUAGE=C
15630 export LANGUAGE
15631
15632 # CDPATH.
15633 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15634
15635
15636 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15637 # ----------------------------------------
15638 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15639 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15640 # script with STATUS, using 1 if that was 0.
15641 as_fn_error ()
15642 {
15643   as_status=$1; test $as_status -eq 0 && as_status=1
15644   if test "$4"; then
15645     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15646     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15647   fi
15648   $as_echo "$as_me: error: $2" >&2
15649   as_fn_exit $as_status
15650 } # as_fn_error
15651
15652
15653 # as_fn_set_status STATUS
15654 # -----------------------
15655 # Set $? to STATUS, without forking.
15656 as_fn_set_status ()
15657 {
15658   return $1
15659 } # as_fn_set_status
15660
15661 # as_fn_exit STATUS
15662 # -----------------
15663 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15664 as_fn_exit ()
15665 {
15666   set +e
15667   as_fn_set_status $1
15668   exit $1
15669 } # as_fn_exit
15670
15671 # as_fn_unset VAR
15672 # ---------------
15673 # Portably unset VAR.
15674 as_fn_unset ()
15675 {
15676   { eval $1=; unset $1;}
15677 }
15678 as_unset=as_fn_unset
15679 # as_fn_append VAR VALUE
15680 # ----------------------
15681 # Append the text in VALUE to the end of the definition contained in VAR. Take
15682 # advantage of any shell optimizations that allow amortized linear growth over
15683 # repeated appends, instead of the typical quadratic growth present in naive
15684 # implementations.
15685 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15686   eval 'as_fn_append ()
15687   {
15688     eval $1+=\$2
15689   }'
15690 else
15691   as_fn_append ()
15692   {
15693     eval $1=\$$1\$2
15694   }
15695 fi # as_fn_append
15696
15697 # as_fn_arith ARG...
15698 # ------------------
15699 # Perform arithmetic evaluation on the ARGs, and store the result in the
15700 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15701 # must be portable across $(()) and expr.
15702 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15703   eval 'as_fn_arith ()
15704   {
15705     as_val=$(( $* ))
15706   }'
15707 else
15708   as_fn_arith ()
15709   {
15710     as_val=`expr "$@" || test $? -eq 1`
15711   }
15712 fi # as_fn_arith
15713
15714
15715 if expr a : '\(a\)' >/dev/null 2>&1 &&
15716    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15717   as_expr=expr
15718 else
15719   as_expr=false
15720 fi
15721
15722 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15723   as_basename=basename
15724 else
15725   as_basename=false
15726 fi
15727
15728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15729   as_dirname=dirname
15730 else
15731   as_dirname=false
15732 fi
15733
15734 as_me=`$as_basename -- "$0" ||
15735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15736          X"$0" : 'X\(//\)$' \| \
15737          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15738 $as_echo X/"$0" |
15739     sed '/^.*\/\([^/][^/]*\)\/*$/{
15740             s//\1/
15741             q
15742           }
15743           /^X\/\(\/\/\)$/{
15744             s//\1/
15745             q
15746           }
15747           /^X\/\(\/\).*/{
15748             s//\1/
15749             q
15750           }
15751           s/.*/./; q'`
15752
15753 # Avoid depending upon Character Ranges.
15754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15757 as_cr_digits='0123456789'
15758 as_cr_alnum=$as_cr_Letters$as_cr_digits
15759
15760 ECHO_C= ECHO_N= ECHO_T=
15761 case `echo -n x` in #(((((
15762 -n*)
15763   case `echo 'xy\c'` in
15764   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15765   xy)  ECHO_C='\c';;
15766   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15767        ECHO_T=' ';;
15768   esac;;
15769 *)
15770   ECHO_N='-n';;
15771 esac
15772
15773 rm -f conf$$ conf$$.exe conf$$.file
15774 if test -d conf$$.dir; then
15775   rm -f conf$$.dir/conf$$.file
15776 else
15777   rm -f conf$$.dir
15778   mkdir conf$$.dir 2>/dev/null
15779 fi
15780 if (echo >conf$$.file) 2>/dev/null; then
15781   if ln -s conf$$.file conf$$ 2>/dev/null; then
15782     as_ln_s='ln -s'
15783     # ... but there are two gotchas:
15784     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15785     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15786     # In both cases, we have to default to `cp -pR'.
15787     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15788       as_ln_s='cp -pR'
15789   elif ln conf$$.file conf$$ 2>/dev/null; then
15790     as_ln_s=ln
15791   else
15792     as_ln_s='cp -pR'
15793   fi
15794 else
15795   as_ln_s='cp -pR'
15796 fi
15797 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15798 rmdir conf$$.dir 2>/dev/null
15799
15800
15801 # as_fn_mkdir_p
15802 # -------------
15803 # Create "$as_dir" as a directory, including parents if necessary.
15804 as_fn_mkdir_p ()
15805 {
15806
15807   case $as_dir in #(
15808   -*) as_dir=./$as_dir;;
15809   esac
15810   test -d "$as_dir" || eval $as_mkdir_p || {
15811     as_dirs=
15812     while :; do
15813       case $as_dir in #(
15814       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15815       *) as_qdir=$as_dir;;
15816       esac
15817       as_dirs="'$as_qdir' $as_dirs"
15818       as_dir=`$as_dirname -- "$as_dir" ||
15819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15820          X"$as_dir" : 'X\(//\)[^/]' \| \
15821          X"$as_dir" : 'X\(//\)$' \| \
15822          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15823 $as_echo X"$as_dir" |
15824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15825             s//\1/
15826             q
15827           }
15828           /^X\(\/\/\)[^/].*/{
15829             s//\1/
15830             q
15831           }
15832           /^X\(\/\/\)$/{
15833             s//\1/
15834             q
15835           }
15836           /^X\(\/\).*/{
15837             s//\1/
15838             q
15839           }
15840           s/.*/./; q'`
15841       test -d "$as_dir" && break
15842     done
15843     test -z "$as_dirs" || eval "mkdir $as_dirs"
15844   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15845
15846
15847 } # as_fn_mkdir_p
15848 if mkdir -p . 2>/dev/null; then
15849   as_mkdir_p='mkdir -p "$as_dir"'
15850 else
15851   test -d ./-p && rmdir ./-p
15852   as_mkdir_p=false
15853 fi
15854
15855
15856 # as_fn_executable_p FILE
15857 # -----------------------
15858 # Test if FILE is an executable regular file.
15859 as_fn_executable_p ()
15860 {
15861   test -f "$1" && test -x "$1"
15862 } # as_fn_executable_p
15863 as_test_x='test -x'
15864 as_executable_p=as_fn_executable_p
15865
15866 # Sed expression to map a string onto a valid CPP name.
15867 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15868
15869 # Sed expression to map a string onto a valid variable name.
15870 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15871
15872
15873 exec 6>&1
15874 ## ----------------------------------- ##
15875 ## Main body of $CONFIG_STATUS script. ##
15876 ## ----------------------------------- ##
15877 _ASEOF
15878 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15879
15880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15881 # Save the log message, to keep $0 and so on meaningful, and to
15882 # report actual input values of CONFIG_FILES etc. instead of their
15883 # values after options handling.
15884 ac_log="
15885 This file was extended by libksba $as_me 1.6.3, which was
15886 generated by GNU Autoconf 2.69.  Invocation command line was
15887
15888   CONFIG_FILES    = $CONFIG_FILES
15889   CONFIG_HEADERS  = $CONFIG_HEADERS
15890   CONFIG_LINKS    = $CONFIG_LINKS
15891   CONFIG_COMMANDS = $CONFIG_COMMANDS
15892   $ $0 $@
15893
15894 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15895 "
15896
15897 _ACEOF
15898
15899 case $ac_config_files in *"
15900 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15901 esac
15902
15903 case $ac_config_headers in *"
15904 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15905 esac
15906
15907
15908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15909 # Files that config.status was made for.
15910 config_files="$ac_config_files"
15911 config_headers="$ac_config_headers"
15912 config_commands="$ac_config_commands"
15913
15914 _ACEOF
15915
15916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15917 ac_cs_usage="\
15918 \`$as_me' instantiates files and other configuration actions
15919 from templates according to the current configuration.  Unless the files
15920 and actions are specified as TAGs, all are instantiated by default.
15921
15922 Usage: $0 [OPTION]... [TAG]...
15923
15924   -h, --help       print this help, then exit
15925   -V, --version    print version number and configuration settings, then exit
15926       --config     print configuration, then exit
15927   -q, --quiet, --silent
15928                    do not print progress messages
15929   -d, --debug      don't remove temporary files
15930       --recheck    update $as_me by reconfiguring in the same conditions
15931       --file=FILE[:TEMPLATE]
15932                    instantiate the configuration file FILE
15933       --header=FILE[:TEMPLATE]
15934                    instantiate the configuration header FILE
15935
15936 Configuration files:
15937 $config_files
15938
15939 Configuration headers:
15940 $config_headers
15941
15942 Configuration commands:
15943 $config_commands
15944
15945 Report bugs to <https://bugs.gnupg.org>."
15946
15947 _ACEOF
15948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15949 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15950 ac_cs_version="\\
15951 libksba config.status 1.6.3
15952 configured by $0, generated by GNU Autoconf 2.69,
15953   with options \\"\$ac_cs_config\\"
15954
15955 Copyright (C) 2012 Free Software Foundation, Inc.
15956 This config.status script is free software; the Free Software Foundation
15957 gives unlimited permission to copy, distribute and modify it."
15958
15959 ac_pwd='$ac_pwd'
15960 srcdir='$srcdir'
15961 INSTALL='$INSTALL'
15962 MKDIR_P='$MKDIR_P'
15963 AWK='$AWK'
15964 test -n "\$AWK" || AWK=awk
15965 _ACEOF
15966
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 # The default lists apply if the user does not specify any file.
15969 ac_need_defaults=:
15970 while test $# != 0
15971 do
15972   case $1 in
15973   --*=?*)
15974     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15975     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15976     ac_shift=:
15977     ;;
15978   --*=)
15979     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15980     ac_optarg=
15981     ac_shift=:
15982     ;;
15983   *)
15984     ac_option=$1
15985     ac_optarg=$2
15986     ac_shift=shift
15987     ;;
15988   esac
15989
15990   case $ac_option in
15991   # Handling of the options.
15992   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15993     ac_cs_recheck=: ;;
15994   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15995     $as_echo "$ac_cs_version"; exit ;;
15996   --config | --confi | --conf | --con | --co | --c )
15997     $as_echo "$ac_cs_config"; exit ;;
15998   --debug | --debu | --deb | --de | --d | -d )
15999     debug=: ;;
16000   --file | --fil | --fi | --f )
16001     $ac_shift
16002     case $ac_optarg in
16003     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16004     '') as_fn_error $? "missing file argument" ;;
16005     esac
16006     as_fn_append CONFIG_FILES " '$ac_optarg'"
16007     ac_need_defaults=false;;
16008   --header | --heade | --head | --hea )
16009     $ac_shift
16010     case $ac_optarg in
16011     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16012     esac
16013     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16014     ac_need_defaults=false;;
16015   --he | --h)
16016     # Conflict between --help and --header
16017     as_fn_error $? "ambiguous option: \`$1'
16018 Try \`$0 --help' for more information.";;
16019   --help | --hel | -h )
16020     $as_echo "$ac_cs_usage"; exit ;;
16021   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16022   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16023     ac_cs_silent=: ;;
16024
16025   # This is an error.
16026   -*) as_fn_error $? "unrecognized option: \`$1'
16027 Try \`$0 --help' for more information." ;;
16028
16029   *) as_fn_append ac_config_targets " $1"
16030      ac_need_defaults=false ;;
16031
16032   esac
16033   shift
16034 done
16035
16036 ac_configure_extra_args=
16037
16038 if $ac_cs_silent; then
16039   exec 6>/dev/null
16040   ac_configure_extra_args="$ac_configure_extra_args --silent"
16041 fi
16042
16043 _ACEOF
16044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045 if \$ac_cs_recheck; then
16046   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16047   shift
16048   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16049   CONFIG_SHELL='$SHELL'
16050   export CONFIG_SHELL
16051   exec "\$@"
16052 fi
16053
16054 _ACEOF
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 exec 5>>config.log
16057 {
16058   echo
16059   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16060 ## Running $as_me. ##
16061 _ASBOX
16062   $as_echo "$ac_log"
16063 } >&5
16064
16065 _ACEOF
16066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16067 #
16068 # INIT-COMMANDS
16069 #
16070 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16071
16072
16073 # The HP-UX ksh and POSIX shell print the target directory to stdout
16074 # if CDPATH is set.
16075 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16076
16077 sed_quote_subst='$sed_quote_subst'
16078 double_quote_subst='$double_quote_subst'
16079 delay_variable_subst='$delay_variable_subst'
16080 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16081 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16082 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16083 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16084 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16085 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16086 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16087 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16088 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16089 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16090 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16091 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16092 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16093 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16094 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16095 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16096 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16097 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16098 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16099 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16100 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16101 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16102 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16103 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16104 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16105 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16106 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16107 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16108 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16109 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16110 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16111 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16112 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16113 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16114 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16115 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16116 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16117 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16118 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16119 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16120 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16121 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16122 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16123 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16124 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16125 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16126 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16127 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16128 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16129 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16130 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16131 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16132 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16133 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16134 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16135 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16136 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16137 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"`'
16138 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16139 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16140 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16141 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16142 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16143 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16144 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16145 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16146 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16147 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16148 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16149 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16150 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16151 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16152 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16153 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16154 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16155 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16156 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16157 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16158 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16159 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16160 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16161 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16162 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16163 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16164 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16165 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16166 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16167 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16168 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16169 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16170 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16171 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16172 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16173 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16174 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16175 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16176 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16177 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16178 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16179 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16180 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16181 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16182 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16183 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16184 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16185 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16186 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16187 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16188 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16189 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16190 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16191 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16192 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16193 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16194 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16195 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16196 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16197 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16198 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16199 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16200 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16201 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16202 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16203 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16204 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16205 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16206 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16207 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16208 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16209 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16210 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16211 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
16212 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
16213 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
16214 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16215 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
16216 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
16217 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
16218 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
16219 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
16220 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
16221 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
16222 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
16223 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
16224 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16225 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16226 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
16227 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
16228 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
16229 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16230 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16231 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
16232 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16233 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16234 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16235 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16236 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16237 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16238 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16239 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16240 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16241 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16242 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16243 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16244 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16245 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16246 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16247 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16248 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16249 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16250 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16251 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16252 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16253
16254 LTCC='$LTCC'
16255 LTCFLAGS='$LTCFLAGS'
16256 compiler='$compiler_DEFAULT'
16257
16258 # A function that is used when there is no print builtin or printf.
16259 func_fallback_echo ()
16260 {
16261   eval 'cat <<_LTECHO_EOF
16262 \$1
16263 _LTECHO_EOF'
16264 }
16265
16266 # Quote evaled strings.
16267 for var in AS \
16268 DLLTOOL \
16269 OBJDUMP \
16270 SHELL \
16271 ECHO \
16272 PATH_SEPARATOR \
16273 SED \
16274 GREP \
16275 EGREP \
16276 FGREP \
16277 LD \
16278 NM \
16279 LN_S \
16280 lt_SP2NL \
16281 lt_NL2SP \
16282 reload_flag \
16283 deplibs_check_method \
16284 file_magic_cmd \
16285 file_magic_glob \
16286 want_nocaseglob \
16287 sharedlib_from_linklib_cmd \
16288 AR \
16289 AR_FLAGS \
16290 archiver_list_spec \
16291 STRIP \
16292 RANLIB \
16293 CC \
16294 CFLAGS \
16295 compiler \
16296 lt_cv_sys_global_symbol_pipe \
16297 lt_cv_sys_global_symbol_to_cdecl \
16298 lt_cv_sys_global_symbol_to_c_name_address \
16299 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16300 nm_file_list_spec \
16301 lt_prog_compiler_no_builtin_flag \
16302 lt_prog_compiler_pic \
16303 lt_prog_compiler_wl \
16304 lt_prog_compiler_static \
16305 lt_cv_prog_compiler_c_o \
16306 need_locks \
16307 MANIFEST_TOOL \
16308 DSYMUTIL \
16309 NMEDIT \
16310 LIPO \
16311 OTOOL \
16312 OTOOL64 \
16313 shrext_cmds \
16314 export_dynamic_flag_spec \
16315 whole_archive_flag_spec \
16316 compiler_needs_object \
16317 with_gnu_ld \
16318 allow_undefined_flag \
16319 no_undefined_flag \
16320 hardcode_libdir_flag_spec \
16321 hardcode_libdir_separator \
16322 exclude_expsyms \
16323 include_expsyms \
16324 file_list_spec \
16325 variables_saved_for_relink \
16326 libname_spec \
16327 library_names_spec \
16328 soname_spec \
16329 install_override_mode \
16330 finish_eval \
16331 old_striplib \
16332 striplib \
16333 LD_RC \
16334 reload_flag_RC \
16335 compiler_RC \
16336 lt_prog_compiler_no_builtin_flag_RC \
16337 lt_prog_compiler_pic_RC \
16338 lt_prog_compiler_wl_RC \
16339 lt_prog_compiler_static_RC \
16340 lt_cv_prog_compiler_c_o_RC \
16341 export_dynamic_flag_spec_RC \
16342 whole_archive_flag_spec_RC \
16343 compiler_needs_object_RC \
16344 with_gnu_ld_RC \
16345 allow_undefined_flag_RC \
16346 no_undefined_flag_RC \
16347 hardcode_libdir_flag_spec_RC \
16348 hardcode_libdir_separator_RC \
16349 exclude_expsyms_RC \
16350 include_expsyms_RC \
16351 file_list_spec_RC; do
16352     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16353     *[\\\\\\\`\\"\\\$]*)
16354       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16355       ;;
16356     *)
16357       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16358       ;;
16359     esac
16360 done
16361
16362 # Double-quote double-evaled strings.
16363 for var in reload_cmds \
16364 old_postinstall_cmds \
16365 old_postuninstall_cmds \
16366 old_archive_cmds \
16367 extract_expsyms_cmds \
16368 old_archive_from_new_cmds \
16369 old_archive_from_expsyms_cmds \
16370 archive_cmds \
16371 archive_expsym_cmds \
16372 module_cmds \
16373 module_expsym_cmds \
16374 export_symbols_cmds \
16375 prelink_cmds \
16376 postlink_cmds \
16377 postinstall_cmds \
16378 postuninstall_cmds \
16379 finish_cmds \
16380 sys_lib_search_path_spec \
16381 sys_lib_dlsearch_path_spec \
16382 reload_cmds_RC \
16383 old_archive_cmds_RC \
16384 old_archive_from_new_cmds_RC \
16385 old_archive_from_expsyms_cmds_RC \
16386 archive_cmds_RC \
16387 archive_expsym_cmds_RC \
16388 module_cmds_RC \
16389 module_expsym_cmds_RC \
16390 export_symbols_cmds_RC \
16391 prelink_cmds_RC \
16392 postlink_cmds_RC; do
16393     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16394     *[\\\\\\\`\\"\\\$]*)
16395       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16396       ;;
16397     *)
16398       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16399       ;;
16400     esac
16401 done
16402
16403 ac_aux_dir='$ac_aux_dir'
16404 xsi_shell='$xsi_shell'
16405 lt_shell_append='$lt_shell_append'
16406
16407 # See if we are running on zsh, and set the options which allow our
16408 # commands through without removal of \ escapes INIT.
16409 if test -n "\${ZSH_VERSION+set}" ; then
16410    setopt NO_GLOB_SUBST
16411 fi
16412
16413
16414     PACKAGE='$PACKAGE'
16415     VERSION='$VERSION'
16416     TIMESTAMP='$TIMESTAMP'
16417     RM='$RM'
16418     ofile='$ofile'
16419
16420
16421
16422
16423
16424
16425 _ACEOF
16426
16427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16428
16429 # Handling of arguments.
16430 for ac_config_target in $ac_config_targets
16431 do
16432   case $ac_config_target in
16433     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16434     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16435     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16436     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16437     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16438     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
16439     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16440     "src/ksba.h") CONFIG_FILES="$CONFIG_FILES src/ksba.h" ;;
16441     "src/ksba-config") CONFIG_FILES="$CONFIG_FILES src/ksba-config" ;;
16442     "src/ksba.pc") CONFIG_FILES="$CONFIG_FILES src/ksba.pc" ;;
16443     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
16444     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16445     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16446
16447   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16448   esac
16449 done
16450
16451
16452 # If the user did not use the arguments to specify the items to instantiate,
16453 # then the envvar interface is used.  Set only those that are not.
16454 # We use the long form for the default assignment because of an extremely
16455 # bizarre bug on SunOS 4.1.3.
16456 if $ac_need_defaults; then
16457   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16458   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16459   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16460 fi
16461
16462 # Have a temporary directory for convenience.  Make it in the build tree
16463 # simply because there is no reason against having it here, and in addition,
16464 # creating and moving files from /tmp can sometimes cause problems.
16465 # Hook for its removal unless debugging.
16466 # Note that there is a small window in which the directory will not be cleaned:
16467 # after its creation but before its name has been assigned to `$tmp'.
16468 $debug ||
16469 {
16470   tmp= ac_tmp=
16471   trap 'exit_status=$?
16472   : "${ac_tmp:=$tmp}"
16473   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16474 ' 0
16475   trap 'as_fn_exit 1' 1 2 13 15
16476 }
16477 # Create a (secure) tmp directory for tmp files.
16478
16479 {
16480   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16481   test -d "$tmp"
16482 }  ||
16483 {
16484   tmp=./conf$$-$RANDOM
16485   (umask 077 && mkdir "$tmp")
16486 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16487 ac_tmp=$tmp
16488
16489 # Set up the scripts for CONFIG_FILES section.
16490 # No need to generate them if there are no CONFIG_FILES.
16491 # This happens for instance with `./config.status config.h'.
16492 if test -n "$CONFIG_FILES"; then
16493
16494
16495 ac_cr=`echo X | tr X '\015'`
16496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16497 # But we know of no other shell where ac_cr would be empty at this
16498 # point, so we can use a bashism as a fallback.
16499 if test "x$ac_cr" = x; then
16500   eval ac_cr=\$\'\\r\'
16501 fi
16502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16504   ac_cs_awk_cr='\\r'
16505 else
16506   ac_cs_awk_cr=$ac_cr
16507 fi
16508
16509 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16510 _ACEOF
16511
16512
16513 {
16514   echo "cat >conf$$subs.awk <<_ACEOF" &&
16515   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16516   echo "_ACEOF"
16517 } >conf$$subs.sh ||
16518   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16519 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16520 ac_delim='%!_!# '
16521 for ac_last_try in false false false false false :; do
16522   . ./conf$$subs.sh ||
16523     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16524
16525   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16526   if test $ac_delim_n = $ac_delim_num; then
16527     break
16528   elif $ac_last_try; then
16529     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16530   else
16531     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16532   fi
16533 done
16534 rm -f conf$$subs.sh
16535
16536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16537 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16538 _ACEOF
16539 sed -n '
16540 h
16541 s/^/S["/; s/!.*/"]=/
16542 p
16543 g
16544 s/^[^!]*!//
16545 :repl
16546 t repl
16547 s/'"$ac_delim"'$//
16548 t delim
16549 :nl
16550 h
16551 s/\(.\{148\}\)..*/\1/
16552 t more1
16553 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16554 p
16555 n
16556 b repl
16557 :more1
16558 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16559 p
16560 g
16561 s/.\{148\}//
16562 t nl
16563 :delim
16564 h
16565 s/\(.\{148\}\)..*/\1/
16566 t more2
16567 s/["\\]/\\&/g; s/^/"/; s/$/"/
16568 p
16569 b
16570 :more2
16571 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16572 p
16573 g
16574 s/.\{148\}//
16575 t delim
16576 ' <conf$$subs.awk | sed '
16577 /^[^""]/{
16578   N
16579   s/\n//
16580 }
16581 ' >>$CONFIG_STATUS || ac_write_fail=1
16582 rm -f conf$$subs.awk
16583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16584 _ACAWK
16585 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16586   for (key in S) S_is_set[key] = 1
16587   FS = "\a"
16588
16589 }
16590 {
16591   line = $ 0
16592   nfields = split(line, field, "@")
16593   substed = 0
16594   len = length(field[1])
16595   for (i = 2; i < nfields; i++) {
16596     key = field[i]
16597     keylen = length(key)
16598     if (S_is_set[key]) {
16599       value = S[key]
16600       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16601       len += length(value) + length(field[++i])
16602       substed = 1
16603     } else
16604       len += 1 + keylen
16605   }
16606
16607   print line
16608 }
16609
16610 _ACAWK
16611 _ACEOF
16612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16613 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16614   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16615 else
16616   cat
16617 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16618   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16619 _ACEOF
16620
16621 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16622 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16623 # trailing colons and then remove the whole line if VPATH becomes empty
16624 # (actually we leave an empty line to preserve line numbers).
16625 if test "x$srcdir" = x.; then
16626   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16627 h
16628 s///
16629 s/^/:/
16630 s/[      ]*$/:/
16631 s/:\$(srcdir):/:/g
16632 s/:\${srcdir}:/:/g
16633 s/:@srcdir@:/:/g
16634 s/^:*//
16635 s/:*$//
16636 x
16637 s/\(=[   ]*\).*/\1/
16638 G
16639 s/\n//
16640 s/^[^=]*=[       ]*$//
16641 }'
16642 fi
16643
16644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16645 fi # test -n "$CONFIG_FILES"
16646
16647 # Set up the scripts for CONFIG_HEADERS section.
16648 # No need to generate them if there are no CONFIG_HEADERS.
16649 # This happens for instance with `./config.status Makefile'.
16650 if test -n "$CONFIG_HEADERS"; then
16651 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16652 BEGIN {
16653 _ACEOF
16654
16655 # Transform confdefs.h into an awk script `defines.awk', embedded as
16656 # here-document in config.status, that substitutes the proper values into
16657 # config.h.in to produce config.h.
16658
16659 # Create a delimiter string that does not exist in confdefs.h, to ease
16660 # handling of long lines.
16661 ac_delim='%!_!# '
16662 for ac_last_try in false false :; do
16663   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16664   if test -z "$ac_tt"; then
16665     break
16666   elif $ac_last_try; then
16667     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16668   else
16669     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16670   fi
16671 done
16672
16673 # For the awk script, D is an array of macro values keyed by name,
16674 # likewise P contains macro parameters if any.  Preserve backslash
16675 # newline sequences.
16676
16677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16678 sed -n '
16679 s/.\{148\}/&'"$ac_delim"'/g
16680 t rset
16681 :rset
16682 s/^[     ]*#[    ]*define[       ][      ]*/ /
16683 t def
16684 d
16685 :def
16686 s/\\$//
16687 t bsnl
16688 s/["\\]/\\&/g
16689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16690 D["\1"]=" \3"/p
16691 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16692 d
16693 :bsnl
16694 s/["\\]/\\&/g
16695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16696 D["\1"]=" \3\\\\\\n"\\/p
16697 t cont
16698 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16699 t cont
16700 d
16701 :cont
16702 n
16703 s/.\{148\}/&'"$ac_delim"'/g
16704 t clear
16705 :clear
16706 s/\\$//
16707 t bsnlc
16708 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16709 d
16710 :bsnlc
16711 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16712 b cont
16713 ' <confdefs.h | sed '
16714 s/'"$ac_delim"'/"\\\
16715 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16716
16717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16718   for (key in D) D_is_set[key] = 1
16719   FS = "\a"
16720 }
16721 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16722   line = \$ 0
16723   split(line, arg, " ")
16724   if (arg[1] == "#") {
16725     defundef = arg[2]
16726     mac1 = arg[3]
16727   } else {
16728     defundef = substr(arg[1], 2)
16729     mac1 = arg[2]
16730   }
16731   split(mac1, mac2, "(") #)
16732   macro = mac2[1]
16733   prefix = substr(line, 1, index(line, defundef) - 1)
16734   if (D_is_set[macro]) {
16735     # Preserve the white space surrounding the "#".
16736     print prefix "define", macro P[macro] D[macro]
16737     next
16738   } else {
16739     # Replace #undef with comments.  This is necessary, for example,
16740     # in the case of _POSIX_SOURCE, which is predefined and required
16741     # on some systems where configure will not decide to define it.
16742     if (defundef == "undef") {
16743       print "/*", prefix defundef, macro, "*/"
16744       next
16745     }
16746   }
16747 }
16748 { print }
16749 _ACAWK
16750 _ACEOF
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16752   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16753 fi # test -n "$CONFIG_HEADERS"
16754
16755
16756 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16757 shift
16758 for ac_tag
16759 do
16760   case $ac_tag in
16761   :[FHLC]) ac_mode=$ac_tag; continue;;
16762   esac
16763   case $ac_mode$ac_tag in
16764   :[FHL]*:*);;
16765   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16766   :[FH]-) ac_tag=-:-;;
16767   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16768   esac
16769   ac_save_IFS=$IFS
16770   IFS=:
16771   set x $ac_tag
16772   IFS=$ac_save_IFS
16773   shift
16774   ac_file=$1
16775   shift
16776
16777   case $ac_mode in
16778   :L) ac_source=$1;;
16779   :[FH])
16780     ac_file_inputs=
16781     for ac_f
16782     do
16783       case $ac_f in
16784       -) ac_f="$ac_tmp/stdin";;
16785       *) # Look for the file first in the build tree, then in the source tree
16786          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16787          # because $ac_f cannot contain `:'.
16788          test -f "$ac_f" ||
16789            case $ac_f in
16790            [\\/$]*) false;;
16791            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16792            esac ||
16793            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16794       esac
16795       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16796       as_fn_append ac_file_inputs " '$ac_f'"
16797     done
16798
16799     # Let's still pretend it is `configure' which instantiates (i.e., don't
16800     # use $as_me), people would be surprised to read:
16801     #    /* config.h.  Generated by config.status.  */
16802     configure_input='Generated from '`
16803           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16804         `' by configure.'
16805     if test x"$ac_file" != x-; then
16806       configure_input="$ac_file.  $configure_input"
16807       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16808 $as_echo "$as_me: creating $ac_file" >&6;}
16809     fi
16810     # Neutralize special characters interpreted by sed in replacement strings.
16811     case $configure_input in #(
16812     *\&* | *\|* | *\\* )
16813        ac_sed_conf_input=`$as_echo "$configure_input" |
16814        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16815     *) ac_sed_conf_input=$configure_input;;
16816     esac
16817
16818     case $ac_tag in
16819     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16820       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16821     esac
16822     ;;
16823   esac
16824
16825   ac_dir=`$as_dirname -- "$ac_file" ||
16826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16827          X"$ac_file" : 'X\(//\)[^/]' \| \
16828          X"$ac_file" : 'X\(//\)$' \| \
16829          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16830 $as_echo X"$ac_file" |
16831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16832             s//\1/
16833             q
16834           }
16835           /^X\(\/\/\)[^/].*/{
16836             s//\1/
16837             q
16838           }
16839           /^X\(\/\/\)$/{
16840             s//\1/
16841             q
16842           }
16843           /^X\(\/\).*/{
16844             s//\1/
16845             q
16846           }
16847           s/.*/./; q'`
16848   as_dir="$ac_dir"; as_fn_mkdir_p
16849   ac_builddir=.
16850
16851 case "$ac_dir" in
16852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16853 *)
16854   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16855   # A ".." for each directory in $ac_dir_suffix.
16856   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16857   case $ac_top_builddir_sub in
16858   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16859   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16860   esac ;;
16861 esac
16862 ac_abs_top_builddir=$ac_pwd
16863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16864 # for backward compatibility:
16865 ac_top_builddir=$ac_top_build_prefix
16866
16867 case $srcdir in
16868   .)  # We are building in place.
16869     ac_srcdir=.
16870     ac_top_srcdir=$ac_top_builddir_sub
16871     ac_abs_top_srcdir=$ac_pwd ;;
16872   [\\/]* | ?:[\\/]* )  # Absolute name.
16873     ac_srcdir=$srcdir$ac_dir_suffix;
16874     ac_top_srcdir=$srcdir
16875     ac_abs_top_srcdir=$srcdir ;;
16876   *) # Relative name.
16877     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16878     ac_top_srcdir=$ac_top_build_prefix$srcdir
16879     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16880 esac
16881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16882
16883
16884   case $ac_mode in
16885   :F)
16886   #
16887   # CONFIG_FILE
16888   #
16889
16890   case $INSTALL in
16891   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16892   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16893   esac
16894   ac_MKDIR_P=$MKDIR_P
16895   case $MKDIR_P in
16896   [\\/$]* | ?:[\\/]* ) ;;
16897   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16898   esac
16899 _ACEOF
16900
16901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16902 # If the template does not know about datarootdir, expand it.
16903 # FIXME: This hack should be removed a few years after 2.60.
16904 ac_datarootdir_hack=; ac_datarootdir_seen=
16905 ac_sed_dataroot='
16906 /datarootdir/ {
16907   p
16908   q
16909 }
16910 /@datadir@/p
16911 /@docdir@/p
16912 /@infodir@/p
16913 /@localedir@/p
16914 /@mandir@/p'
16915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16916 *datarootdir*) ac_datarootdir_seen=yes;;
16917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16918   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16919 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16920 _ACEOF
16921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16922   ac_datarootdir_hack='
16923   s&@datadir@&$datadir&g
16924   s&@docdir@&$docdir&g
16925   s&@infodir@&$infodir&g
16926   s&@localedir@&$localedir&g
16927   s&@mandir@&$mandir&g
16928   s&\\\${datarootdir}&$datarootdir&g' ;;
16929 esac
16930 _ACEOF
16931
16932 # Neutralize VPATH when `$srcdir' = `.'.
16933 # Shell code in configure.ac might set extrasub.
16934 # FIXME: do we really want to maintain this feature?
16935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16936 ac_sed_extra="$ac_vpsub
16937 $extrasub
16938 _ACEOF
16939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16940 :t
16941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16942 s|@configure_input@|$ac_sed_conf_input|;t t
16943 s&@top_builddir@&$ac_top_builddir_sub&;t t
16944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16945 s&@srcdir@&$ac_srcdir&;t t
16946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16947 s&@top_srcdir@&$ac_top_srcdir&;t t
16948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16949 s&@builddir@&$ac_builddir&;t t
16950 s&@abs_builddir@&$ac_abs_builddir&;t t
16951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16952 s&@INSTALL@&$ac_INSTALL&;t t
16953 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16954 $ac_datarootdir_hack
16955 "
16956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16957   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16958
16959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16960   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16961   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16962       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16964 which seems to be undefined.  Please make sure it is defined" >&5
16965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16966 which seems to be undefined.  Please make sure it is defined" >&2;}
16967
16968   rm -f "$ac_tmp/stdin"
16969   case $ac_file in
16970   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16971   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16972   esac \
16973   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16974  ;;
16975   :H)
16976   #
16977   # CONFIG_HEADER
16978   #
16979   if test x"$ac_file" != x-; then
16980     {
16981       $as_echo "/* $configure_input  */" \
16982       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16983     } >"$ac_tmp/config.h" \
16984       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16985     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16986       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16988     else
16989       rm -f "$ac_file"
16990       mv "$ac_tmp/config.h" "$ac_file" \
16991         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16992     fi
16993   else
16994     $as_echo "/* $configure_input  */" \
16995       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16996       || as_fn_error $? "could not create -" "$LINENO" 5
16997   fi
16998 # Compute "$ac_file"'s index in $config_headers.
16999 _am_arg="$ac_file"
17000 _am_stamp_count=1
17001 for _am_header in $config_headers :; do
17002   case $_am_header in
17003     $_am_arg | $_am_arg:* )
17004       break ;;
17005     * )
17006       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17007   esac
17008 done
17009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17011          X"$_am_arg" : 'X\(//\)[^/]' \| \
17012          X"$_am_arg" : 'X\(//\)$' \| \
17013          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17014 $as_echo X"$_am_arg" |
17015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17016             s//\1/
17017             q
17018           }
17019           /^X\(\/\/\)[^/].*/{
17020             s//\1/
17021             q
17022           }
17023           /^X\(\/\/\)$/{
17024             s//\1/
17025             q
17026           }
17027           /^X\(\/\).*/{
17028             s//\1/
17029             q
17030           }
17031           s/.*/./; q'`/stamp-h$_am_stamp_count
17032  ;;
17033
17034   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17035 $as_echo "$as_me: executing $ac_file commands" >&6;}
17036  ;;
17037   esac
17038
17039
17040   case $ac_file$ac_mode in
17041     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17042   # Older Autoconf quotes --file arguments for eval, but not when files
17043   # are listed without --file.  Let's play safe and only enable the eval
17044   # if we detect the quoting.
17045   # TODO: see whether this extra hack can be removed once we start
17046   # requiring Autoconf 2.70 or later.
17047   case $CONFIG_FILES in #(
17048   *\'*) :
17049     eval set x "$CONFIG_FILES" ;; #(
17050   *) :
17051     set x $CONFIG_FILES ;; #(
17052   *) :
17053      ;;
17054 esac
17055   shift
17056   # Used to flag and report bootstrapping failures.
17057   am_rc=0
17058   for am_mf
17059   do
17060     # Strip MF so we end up with the name of the file.
17061     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17062     # Check whether this is an Automake generated Makefile which includes
17063     # dependency-tracking related rules and includes.
17064     # Grep'ing the whole file directly is not great: AIX grep has a line
17065     # limit of 2048, but all sed's we know have understand at least 4000.
17066     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17067       || continue
17068     am_dirpart=`$as_dirname -- "$am_mf" ||
17069 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17070          X"$am_mf" : 'X\(//\)[^/]' \| \
17071          X"$am_mf" : 'X\(//\)$' \| \
17072          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17073 $as_echo X"$am_mf" |
17074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17075             s//\1/
17076             q
17077           }
17078           /^X\(\/\/\)[^/].*/{
17079             s//\1/
17080             q
17081           }
17082           /^X\(\/\/\)$/{
17083             s//\1/
17084             q
17085           }
17086           /^X\(\/\).*/{
17087             s//\1/
17088             q
17089           }
17090           s/.*/./; q'`
17091     am_filepart=`$as_basename -- "$am_mf" ||
17092 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17093          X"$am_mf" : 'X\(//\)$' \| \
17094          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17095 $as_echo X/"$am_mf" |
17096     sed '/^.*\/\([^/][^/]*\)\/*$/{
17097             s//\1/
17098             q
17099           }
17100           /^X\/\(\/\/\)$/{
17101             s//\1/
17102             q
17103           }
17104           /^X\/\(\/\).*/{
17105             s//\1/
17106             q
17107           }
17108           s/.*/./; q'`
17109     { echo "$as_me:$LINENO: cd "$am_dirpart" \
17110       && sed -e '/# am--include-marker/d' "$am_filepart" \
17111         | $MAKE -f - am--depfiles" >&5
17112    (cd "$am_dirpart" \
17113       && sed -e '/# am--include-marker/d' "$am_filepart" \
17114         | $MAKE -f - am--depfiles) >&5 2>&5
17115    ac_status=$?
17116    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117    (exit $ac_status); } || am_rc=$?
17118   done
17119   if test $am_rc -ne 0; then
17120     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17122 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17123     for automatic dependency tracking.  If GNU make was not used, consider
17124     re-running the configure script with MAKE=\"gmake\" (or whatever is
17125     necessary).  You can also try re-running configure with the
17126     '--disable-dependency-tracking' option to at least be able to build
17127     the package (albeit without support for automatic dependency tracking).
17128 See \`config.log' for more details" "$LINENO" 5; }
17129   fi
17130   { am_dirpart=; unset am_dirpart;}
17131   { am_filepart=; unset am_filepart;}
17132   { am_mf=; unset am_mf;}
17133   { am_rc=; unset am_rc;}
17134   rm -f conftest-deps.mk
17135 }
17136  ;;
17137     "libtool":C)
17138
17139     # See if we are running on zsh, and set the options which allow our
17140     # commands through without removal of \ escapes.
17141     if test -n "${ZSH_VERSION+set}" ; then
17142       setopt NO_GLOB_SUBST
17143     fi
17144
17145     cfgfile="${ofile}T"
17146     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17147     $RM "$cfgfile"
17148
17149     cat <<_LT_EOF >> "$cfgfile"
17150 #! $SHELL
17151
17152 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17153 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17155 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17156 #
17157 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17158 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17159 #                 Foundation, Inc.
17160 #   Written by Gordon Matzigkeit, 1996
17161 #
17162 #   This file is part of GNU Libtool.
17163 #
17164 # GNU Libtool is free software; you can redistribute it and/or
17165 # modify it under the terms of the GNU General Public License as
17166 # published by the Free Software Foundation; either version 2 of
17167 # the License, or (at your option) any later version.
17168 #
17169 # As a special exception to the GNU General Public License,
17170 # if you distribute this file as part of a program or library that
17171 # is built using GNU Libtool, you may include this file under the
17172 # same distribution terms that you use for the rest of that program.
17173 #
17174 # GNU Libtool is distributed in the hope that it will be useful,
17175 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17176 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17177 # GNU General Public License for more details.
17178 #
17179 # You should have received a copy of the GNU General Public License
17180 # along with GNU Libtool; see the file COPYING.  If not, a copy
17181 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
17182 # obtained by writing to the Free Software Foundation, Inc.,
17183 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17184
17185
17186 # The names of the tagged configurations supported by this script.
17187 available_tags="RC "
17188
17189 # ### BEGIN LIBTOOL CONFIG
17190
17191 # Which release of libtool.m4 was used?
17192 macro_version=$macro_version
17193 macro_revision=$macro_revision
17194
17195 # Assembler program.
17196 AS=$lt_AS
17197
17198 # DLL creation program.
17199 DLLTOOL=$lt_DLLTOOL
17200
17201 # Object dumper program.
17202 OBJDUMP=$lt_OBJDUMP
17203
17204 # Whether or not to build static libraries.
17205 build_old_libs=$enable_static
17206
17207 # Whether or not to build shared libraries.
17208 build_libtool_libs=$enable_shared
17209
17210 # What type of objects to build.
17211 pic_mode=$pic_mode
17212
17213 # Whether or not to optimize for fast installation.
17214 fast_install=$enable_fast_install
17215
17216 # Shell to use when invoking shell scripts.
17217 SHELL=$lt_SHELL
17218
17219 # An echo program that protects backslashes.
17220 ECHO=$lt_ECHO
17221
17222 # The PATH separator for the build system.
17223 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17224
17225 # The host system.
17226 host_alias=$host_alias
17227 host=$host
17228 host_os=$host_os
17229
17230 # The build system.
17231 build_alias=$build_alias
17232 build=$build
17233 build_os=$build_os
17234
17235 # A sed program that does not truncate output.
17236 SED=$lt_SED
17237
17238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17239 Xsed="\$SED -e 1s/^X//"
17240
17241 # A grep program that handles long lines.
17242 GREP=$lt_GREP
17243
17244 # An ERE matcher.
17245 EGREP=$lt_EGREP
17246
17247 # A literal string matcher.
17248 FGREP=$lt_FGREP
17249
17250 # A BSD- or MS-compatible name lister.
17251 NM=$lt_NM
17252
17253 # Whether we need soft or hard links.
17254 LN_S=$lt_LN_S
17255
17256 # What is the maximum length of a command?
17257 max_cmd_len=$max_cmd_len
17258
17259 # Object file suffix (normally "o").
17260 objext=$ac_objext
17261
17262 # Executable file suffix (normally "").
17263 exeext=$exeext
17264
17265 # whether the shell understands "unset".
17266 lt_unset=$lt_unset
17267
17268 # turn spaces into newlines.
17269 SP2NL=$lt_lt_SP2NL
17270
17271 # turn newlines into spaces.
17272 NL2SP=$lt_lt_NL2SP
17273
17274 # convert \$build file names to \$host format.
17275 to_host_file_cmd=$lt_cv_to_host_file_cmd
17276
17277 # convert \$build files to toolchain format.
17278 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17279
17280 # Method to check whether dependent libraries are shared objects.
17281 deplibs_check_method=$lt_deplibs_check_method
17282
17283 # Command to use when deplibs_check_method = "file_magic".
17284 file_magic_cmd=$lt_file_magic_cmd
17285
17286 # How to find potential files when deplibs_check_method = "file_magic".
17287 file_magic_glob=$lt_file_magic_glob
17288
17289 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17290 want_nocaseglob=$lt_want_nocaseglob
17291
17292 # Command to associate shared and link libraries.
17293 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17294
17295 # The archiver.
17296 AR=$lt_AR
17297
17298 # Flags to create an archive.
17299 AR_FLAGS=$lt_AR_FLAGS
17300
17301 # How to feed a file listing to the archiver.
17302 archiver_list_spec=$lt_archiver_list_spec
17303
17304 # A symbol stripping program.
17305 STRIP=$lt_STRIP
17306
17307 # Commands used to install an old-style archive.
17308 RANLIB=$lt_RANLIB
17309 old_postinstall_cmds=$lt_old_postinstall_cmds
17310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17311
17312 # Whether to use a lock for old archive extraction.
17313 lock_old_archive_extraction=$lock_old_archive_extraction
17314
17315 # A C compiler.
17316 LTCC=$lt_CC
17317
17318 # LTCC compiler flags.
17319 LTCFLAGS=$lt_CFLAGS
17320
17321 # Take the output of nm and produce a listing of raw symbols and C names.
17322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17323
17324 # Transform the output of nm in a proper C declaration.
17325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17326
17327 # Transform the output of nm in a C name address pair.
17328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17329
17330 # Transform the output of nm in a C name address pair when lib prefix is needed.
17331 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17332
17333 # Specify filename containing input files for \$NM.
17334 nm_file_list_spec=$lt_nm_file_list_spec
17335
17336 # The root where to search for dependent libraries,and in which our libraries should be installed.
17337 lt_sysroot=$lt_sysroot
17338
17339 # The name of the directory that contains temporary libtool files.
17340 objdir=$objdir
17341
17342 # Used to examine libraries when file_magic_cmd begins with "file".
17343 MAGIC_CMD=$MAGIC_CMD
17344
17345 # Must we lock files when doing compilation?
17346 need_locks=$lt_need_locks
17347
17348 # Manifest tool.
17349 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17350
17351 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17352 DSYMUTIL=$lt_DSYMUTIL
17353
17354 # Tool to change global to local symbols on Mac OS X.
17355 NMEDIT=$lt_NMEDIT
17356
17357 # Tool to manipulate fat objects and archives on Mac OS X.
17358 LIPO=$lt_LIPO
17359
17360 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17361 OTOOL=$lt_OTOOL
17362
17363 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17364 OTOOL64=$lt_OTOOL64
17365
17366 # Old archive suffix (normally "a").
17367 libext=$libext
17368
17369 # Shared library suffix (normally ".so").
17370 shrext_cmds=$lt_shrext_cmds
17371
17372 # The commands to extract the exported symbol list from a shared archive.
17373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17374
17375 # Variables whose values should be saved in libtool wrapper scripts and
17376 # restored at link time.
17377 variables_saved_for_relink=$lt_variables_saved_for_relink
17378
17379 # Do we need the "lib" prefix for modules?
17380 need_lib_prefix=$need_lib_prefix
17381
17382 # Do we need a version for libraries?
17383 need_version=$need_version
17384
17385 # Library versioning type.
17386 version_type=$version_type
17387
17388 # Shared library runtime path variable.
17389 runpath_var=$runpath_var
17390
17391 # Shared library path variable.
17392 shlibpath_var=$shlibpath_var
17393
17394 # Is shlibpath searched before the hard-coded library search path?
17395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17396
17397 # Format of library name prefix.
17398 libname_spec=$lt_libname_spec
17399
17400 # List of archive names.  First name is the real one, the rest are links.
17401 # The last name is the one that the linker finds with -lNAME
17402 library_names_spec=$lt_library_names_spec
17403
17404 # The coded name of the library, if different from the real name.
17405 soname_spec=$lt_soname_spec
17406
17407 # Permission mode override for installation of shared libraries.
17408 install_override_mode=$lt_install_override_mode
17409
17410 # Command to use after installation of a shared archive.
17411 postinstall_cmds=$lt_postinstall_cmds
17412
17413 # Command to use after uninstallation of a shared archive.
17414 postuninstall_cmds=$lt_postuninstall_cmds
17415
17416 # Commands used to finish a libtool library installation in a directory.
17417 finish_cmds=$lt_finish_cmds
17418
17419 # As "finish_cmds", except a single script fragment to be evaled but
17420 # not shown.
17421 finish_eval=$lt_finish_eval
17422
17423 # Whether we should hardcode library paths into libraries.
17424 hardcode_into_libs=$hardcode_into_libs
17425
17426 # Compile-time system search path for libraries.
17427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17428
17429 # Run-time system search path for libraries.
17430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17431
17432 # Whether dlopen is supported.
17433 dlopen_support=$enable_dlopen
17434
17435 # Whether dlopen of programs is supported.
17436 dlopen_self=$enable_dlopen_self
17437
17438 # Whether dlopen of statically linked programs is supported.
17439 dlopen_self_static=$enable_dlopen_self_static
17440
17441 # Commands to strip libraries.
17442 old_striplib=$lt_old_striplib
17443 striplib=$lt_striplib
17444
17445
17446 # The linker used to build libraries.
17447 LD=$lt_LD
17448
17449 # How to create reloadable object files.
17450 reload_flag=$lt_reload_flag
17451 reload_cmds=$lt_reload_cmds
17452
17453 # Commands used to build an old-style archive.
17454 old_archive_cmds=$lt_old_archive_cmds
17455
17456 # A language specific compiler.
17457 CC=$lt_compiler
17458
17459 # Is the compiler the GNU compiler?
17460 with_gcc=$GCC
17461
17462 # Compiler flag to turn off builtin functions.
17463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17464
17465 # Additional compiler flags for building library objects.
17466 pic_flag=$lt_lt_prog_compiler_pic
17467
17468 # How to pass a linker flag through the compiler.
17469 wl=$lt_lt_prog_compiler_wl
17470
17471 # Compiler flag to prevent dynamic linking.
17472 link_static_flag=$lt_lt_prog_compiler_static
17473
17474 # Does compiler simultaneously support -c and -o options?
17475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17476
17477 # Whether or not to add -lc for building shared libraries.
17478 build_libtool_need_lc=$archive_cmds_need_lc
17479
17480 # Whether or not to disallow shared libs when runtime libs are static.
17481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17482
17483 # Compiler flag to allow reflexive dlopens.
17484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17485
17486 # Compiler flag to generate shared objects directly from archives.
17487 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17488
17489 # Whether the compiler copes with passing no objects directly.
17490 compiler_needs_object=$lt_compiler_needs_object
17491
17492 # Create an old-style archive from a shared archive.
17493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17494
17495 # Create a temporary old-style archive to link instead of a shared archive.
17496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17497
17498 # Commands used to build a shared archive.
17499 archive_cmds=$lt_archive_cmds
17500 archive_expsym_cmds=$lt_archive_expsym_cmds
17501
17502 # Commands used to build a loadable module if different from building
17503 # a shared archive.
17504 module_cmds=$lt_module_cmds
17505 module_expsym_cmds=$lt_module_expsym_cmds
17506
17507 # Whether we are building with GNU ld or not.
17508 with_gnu_ld=$lt_with_gnu_ld
17509
17510 # Flag that allows shared libraries with undefined symbols to be built.
17511 allow_undefined_flag=$lt_allow_undefined_flag
17512
17513 # Flag that enforces no undefined symbols.
17514 no_undefined_flag=$lt_no_undefined_flag
17515
17516 # Flag to hardcode \$libdir into a binary during linking.
17517 # This must work even if \$libdir does not exist
17518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17519
17520 # Whether we need a single "-rpath" flag with a separated argument.
17521 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17522
17523 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17524 # DIR into the resulting binary.
17525 hardcode_direct=$hardcode_direct
17526
17527 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17528 # DIR into the resulting binary and the resulting library dependency is
17529 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17530 # library is relocated.
17531 hardcode_direct_absolute=$hardcode_direct_absolute
17532
17533 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17534 # into the resulting binary.
17535 hardcode_minus_L=$hardcode_minus_L
17536
17537 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17538 # into the resulting binary.
17539 hardcode_shlibpath_var=$hardcode_shlibpath_var
17540
17541 # Set to "yes" if building a shared library automatically hardcodes DIR
17542 # into the library and all subsequent libraries and executables linked
17543 # against it.
17544 hardcode_automatic=$hardcode_automatic
17545
17546 # Set to yes if linker adds runtime paths of dependent libraries
17547 # to runtime path list.
17548 inherit_rpath=$inherit_rpath
17549
17550 # Whether libtool must link a program against all its dependency libraries.
17551 link_all_deplibs=$link_all_deplibs
17552
17553 # Set to "yes" if exported symbols are required.
17554 always_export_symbols=$always_export_symbols
17555
17556 # The commands to list exported symbols.
17557 export_symbols_cmds=$lt_export_symbols_cmds
17558
17559 # Symbols that should not be listed in the preloaded symbols.
17560 exclude_expsyms=$lt_exclude_expsyms
17561
17562 # Symbols that must always be exported.
17563 include_expsyms=$lt_include_expsyms
17564
17565 # Commands necessary for linking programs (against libraries) with templates.
17566 prelink_cmds=$lt_prelink_cmds
17567
17568 # Commands necessary for finishing linking programs.
17569 postlink_cmds=$lt_postlink_cmds
17570
17571 # Specify filename containing input files.
17572 file_list_spec=$lt_file_list_spec
17573
17574 # How to hardcode a shared library path into an executable.
17575 hardcode_action=$hardcode_action
17576
17577 # ### END LIBTOOL CONFIG
17578
17579 _LT_EOF
17580
17581   case $host_os in
17582   aix3*)
17583     cat <<\_LT_EOF >> "$cfgfile"
17584 # AIX sometimes has problems with the GCC collect2 program.  For some
17585 # reason, if we set the COLLECT_NAMES environment variable, the problems
17586 # vanish in a puff of smoke.
17587 if test "X${COLLECT_NAMES+set}" != Xset; then
17588   COLLECT_NAMES=
17589   export COLLECT_NAMES
17590 fi
17591 _LT_EOF
17592     ;;
17593   esac
17594
17595
17596 ltmain="$ac_aux_dir/ltmain.sh"
17597
17598
17599   # We use sed instead of cat because bash on DJGPP gets confused if
17600   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17601   # text mode, it properly converts lines to CR/LF.  This bash problem
17602   # is reportedly fixed, but why not run on old versions too?
17603   sed '$q' "$ltmain" >> "$cfgfile" \
17604      || (rm -f "$cfgfile"; exit 1)
17605
17606   if test x"$xsi_shell" = xyes; then
17607   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17608 func_dirname ()\
17609 {\
17610 \    case ${1} in\
17611 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17612 \      *  ) func_dirname_result="${3}" ;;\
17613 \    esac\
17614 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17615   && mv -f "$cfgfile.tmp" "$cfgfile" \
17616     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17617 test 0 -eq $? || _lt_function_replace_fail=:
17618
17619
17620   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17621 func_basename ()\
17622 {\
17623 \    func_basename_result="${1##*/}"\
17624 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17625   && mv -f "$cfgfile.tmp" "$cfgfile" \
17626     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17627 test 0 -eq $? || _lt_function_replace_fail=:
17628
17629
17630   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17631 func_dirname_and_basename ()\
17632 {\
17633 \    case ${1} in\
17634 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17635 \      *  ) func_dirname_result="${3}" ;;\
17636 \    esac\
17637 \    func_basename_result="${1##*/}"\
17638 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17639   && mv -f "$cfgfile.tmp" "$cfgfile" \
17640     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17641 test 0 -eq $? || _lt_function_replace_fail=:
17642
17643
17644   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17645 func_stripname ()\
17646 {\
17647 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17648 \    # positional parameters, so assign one to ordinary parameter first.\
17649 \    func_stripname_result=${3}\
17650 \    func_stripname_result=${func_stripname_result#"${1}"}\
17651 \    func_stripname_result=${func_stripname_result%"${2}"}\
17652 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17653   && mv -f "$cfgfile.tmp" "$cfgfile" \
17654     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17655 test 0 -eq $? || _lt_function_replace_fail=:
17656
17657
17658   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17659 func_split_long_opt ()\
17660 {\
17661 \    func_split_long_opt_name=${1%%=*}\
17662 \    func_split_long_opt_arg=${1#*=}\
17663 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17664   && mv -f "$cfgfile.tmp" "$cfgfile" \
17665     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17666 test 0 -eq $? || _lt_function_replace_fail=:
17667
17668
17669   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17670 func_split_short_opt ()\
17671 {\
17672 \    func_split_short_opt_arg=${1#??}\
17673 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17674 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17675   && mv -f "$cfgfile.tmp" "$cfgfile" \
17676     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17677 test 0 -eq $? || _lt_function_replace_fail=:
17678
17679
17680   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17681 func_lo2o ()\
17682 {\
17683 \    case ${1} in\
17684 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17685 \      *)    func_lo2o_result=${1} ;;\
17686 \    esac\
17687 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17688   && mv -f "$cfgfile.tmp" "$cfgfile" \
17689     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17690 test 0 -eq $? || _lt_function_replace_fail=:
17691
17692
17693   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17694 func_xform ()\
17695 {\
17696     func_xform_result=${1%.*}.lo\
17697 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17698   && mv -f "$cfgfile.tmp" "$cfgfile" \
17699     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17700 test 0 -eq $? || _lt_function_replace_fail=:
17701
17702
17703   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17704 func_arith ()\
17705 {\
17706     func_arith_result=$(( $* ))\
17707 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17708   && mv -f "$cfgfile.tmp" "$cfgfile" \
17709     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17710 test 0 -eq $? || _lt_function_replace_fail=:
17711
17712
17713   sed -e '/^func_len ()$/,/^} # func_len /c\
17714 func_len ()\
17715 {\
17716     func_len_result=${#1}\
17717 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17718   && mv -f "$cfgfile.tmp" "$cfgfile" \
17719     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17720 test 0 -eq $? || _lt_function_replace_fail=:
17721
17722 fi
17723
17724 if test x"$lt_shell_append" = xyes; then
17725   sed -e '/^func_append ()$/,/^} # func_append /c\
17726 func_append ()\
17727 {\
17728     eval "${1}+=\\${2}"\
17729 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17730   && mv -f "$cfgfile.tmp" "$cfgfile" \
17731     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17732 test 0 -eq $? || _lt_function_replace_fail=:
17733
17734
17735   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17736 func_append_quoted ()\
17737 {\
17738 \    func_quote_for_eval "${2}"\
17739 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17740 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17741   && mv -f "$cfgfile.tmp" "$cfgfile" \
17742     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17743 test 0 -eq $? || _lt_function_replace_fail=:
17744
17745
17746   # Save a `func_append' function call where possible by direct use of '+='
17747   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17748     && mv -f "$cfgfile.tmp" "$cfgfile" \
17749       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17750   test 0 -eq $? || _lt_function_replace_fail=:
17751 else
17752   # Save a `func_append' function call even when '+=' is not available
17753   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17754     && mv -f "$cfgfile.tmp" "$cfgfile" \
17755       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17756   test 0 -eq $? || _lt_function_replace_fail=:
17757 fi
17758
17759 if test x"$_lt_function_replace_fail" = x":"; then
17760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17761 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17762 fi
17763
17764
17765    mv -f "$cfgfile" "$ofile" ||
17766     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17767   chmod +x "$ofile"
17768
17769
17770     cat <<_LT_EOF >> "$ofile"
17771
17772 # ### BEGIN LIBTOOL TAG CONFIG: RC
17773
17774 # The linker used to build libraries.
17775 LD=$lt_LD_RC
17776
17777 # How to create reloadable object files.
17778 reload_flag=$lt_reload_flag_RC
17779 reload_cmds=$lt_reload_cmds_RC
17780
17781 # Commands used to build an old-style archive.
17782 old_archive_cmds=$lt_old_archive_cmds_RC
17783
17784 # A language specific compiler.
17785 CC=$lt_compiler_RC
17786
17787 # Is the compiler the GNU compiler?
17788 with_gcc=$GCC_RC
17789
17790 # Compiler flag to turn off builtin functions.
17791 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17792
17793 # Additional compiler flags for building library objects.
17794 pic_flag=$lt_lt_prog_compiler_pic_RC
17795
17796 # How to pass a linker flag through the compiler.
17797 wl=$lt_lt_prog_compiler_wl_RC
17798
17799 # Compiler flag to prevent dynamic linking.
17800 link_static_flag=$lt_lt_prog_compiler_static_RC
17801
17802 # Does compiler simultaneously support -c and -o options?
17803 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17804
17805 # Whether or not to add -lc for building shared libraries.
17806 build_libtool_need_lc=$archive_cmds_need_lc_RC
17807
17808 # Whether or not to disallow shared libs when runtime libs are static.
17809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17810
17811 # Compiler flag to allow reflexive dlopens.
17812 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17813
17814 # Compiler flag to generate shared objects directly from archives.
17815 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17816
17817 # Whether the compiler copes with passing no objects directly.
17818 compiler_needs_object=$lt_compiler_needs_object_RC
17819
17820 # Create an old-style archive from a shared archive.
17821 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17822
17823 # Create a temporary old-style archive to link instead of a shared archive.
17824 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17825
17826 # Commands used to build a shared archive.
17827 archive_cmds=$lt_archive_cmds_RC
17828 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17829
17830 # Commands used to build a loadable module if different from building
17831 # a shared archive.
17832 module_cmds=$lt_module_cmds_RC
17833 module_expsym_cmds=$lt_module_expsym_cmds_RC
17834
17835 # Whether we are building with GNU ld or not.
17836 with_gnu_ld=$lt_with_gnu_ld_RC
17837
17838 # Flag that allows shared libraries with undefined symbols to be built.
17839 allow_undefined_flag=$lt_allow_undefined_flag_RC
17840
17841 # Flag that enforces no undefined symbols.
17842 no_undefined_flag=$lt_no_undefined_flag_RC
17843
17844 # Flag to hardcode \$libdir into a binary during linking.
17845 # This must work even if \$libdir does not exist
17846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17847
17848 # Whether we need a single "-rpath" flag with a separated argument.
17849 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17850
17851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17852 # DIR into the resulting binary.
17853 hardcode_direct=$hardcode_direct_RC
17854
17855 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17856 # DIR into the resulting binary and the resulting library dependency is
17857 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17858 # library is relocated.
17859 hardcode_direct_absolute=$hardcode_direct_absolute_RC
17860
17861 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17862 # into the resulting binary.
17863 hardcode_minus_L=$hardcode_minus_L_RC
17864
17865 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17866 # into the resulting binary.
17867 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17868
17869 # Set to "yes" if building a shared library automatically hardcodes DIR
17870 # into the library and all subsequent libraries and executables linked
17871 # against it.
17872 hardcode_automatic=$hardcode_automatic_RC
17873
17874 # Set to yes if linker adds runtime paths of dependent libraries
17875 # to runtime path list.
17876 inherit_rpath=$inherit_rpath_RC
17877
17878 # Whether libtool must link a program against all its dependency libraries.
17879 link_all_deplibs=$link_all_deplibs_RC
17880
17881 # Set to "yes" if exported symbols are required.
17882 always_export_symbols=$always_export_symbols_RC
17883
17884 # The commands to list exported symbols.
17885 export_symbols_cmds=$lt_export_symbols_cmds_RC
17886
17887 # Symbols that should not be listed in the preloaded symbols.
17888 exclude_expsyms=$lt_exclude_expsyms_RC
17889
17890 # Symbols that must always be exported.
17891 include_expsyms=$lt_include_expsyms_RC
17892
17893 # Commands necessary for linking programs (against libraries) with templates.
17894 prelink_cmds=$lt_prelink_cmds_RC
17895
17896 # Commands necessary for finishing linking programs.
17897 postlink_cmds=$lt_postlink_cmds_RC
17898
17899 # Specify filename containing input files.
17900 file_list_spec=$lt_file_list_spec_RC
17901
17902 # How to hardcode a shared library path into an executable.
17903 hardcode_action=$hardcode_action_RC
17904
17905 # ### END LIBTOOL TAG CONFIG: RC
17906 _LT_EOF
17907
17908  ;;
17909
17910   esac
17911 done # for ac_tag
17912
17913
17914 as_fn_exit 0
17915 _ACEOF
17916 ac_clean_files=$ac_clean_files_save
17917
17918 test $ac_write_fail = 0 ||
17919   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17920
17921
17922 # configure is writing to config.log, and then calls config.status.
17923 # config.status does its own redirection, appending to config.log.
17924 # Unfortunately, on DOS this fails, as config.log is still kept open
17925 # by configure, so config.status won't be able to write to it; its
17926 # output is simply discarded.  So we exec the FD to /dev/null,
17927 # effectively closing config.log, so it can be properly (re)opened and
17928 # appended to by config.status.  When coming back to configure, we
17929 # need to make the FD available again.
17930 if test "$no_create" != yes; then
17931   ac_cs_success=:
17932   ac_config_status_args=
17933   test "$silent" = yes &&
17934     ac_config_status_args="$ac_config_status_args --quiet"
17935   exec 5>/dev/null
17936   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17937   exec 5>>config.log
17938   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17939   # would make configure fail if this is the last instruction.
17940   $ac_cs_success || as_fn_exit 1
17941 fi
17942 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17943   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17944 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17945 fi
17946
17947
17948 if test x"$have_bison" = xno; then
17949     { $as_echo "$as_me:${as_lineno-$LINENO}:
17950 ***
17951 *** Note: The installed yacc version is not GNU Bison.  You need
17952 *** to install Bison if you want to change any grammar (.y) file.
17953 ***" >&5
17954 $as_echo "$as_me:
17955 ***
17956 *** Note: The installed yacc version is not GNU Bison.  You need
17957 *** to install Bison if you want to change any grammar (.y) file.
17958 ***" >&6;}
17959 fi
17960
17961 echo "
17962         Libksba v${VERSION} has been configured as follows:
17963
17964         Revision:  bffa9b3  (49146)
17965         Platform:  $host
17966
17967 "