Imported Upstream version 1.3.4
[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.3.4.
4 #
5 # Report bugs to <http://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libksba'
592 PACKAGE_TARNAME='libksba'
593 PACKAGE_VERSION='1.3.4'
594 PACKAGE_STRING='libksba 1.3.4'
595 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/ksba.h"
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_TIMESTAMP
640 BUILD_FILEVERSION
641 BUILD_REVISION
642 CROSS_COMPILING_FALSE
643 CROSS_COMPILING_TRUE
644 KSBA_CONFIG_HOST
645 KSBA_CONFIG_API_VERSION
646 KSBA_CONFIG_CFLAGS
647 KSBA_CONFIG_LIBS
648 VALGRIND
649 ALLOCA_H
650 ALLOCA
651 LTALLOCA
652 GPG_ERROR_MT_LIBS
653 GPG_ERROR_MT_CFLAGS
654 GPG_ERROR_LIBS
655 GPG_ERROR_CFLAGS
656 GPG_ERROR_CONFIG
657 HAVE_LD_VERSION_SCRIPT_FALSE
658 HAVE_LD_VERSION_SCRIPT_TRUE
659 HAVE_W32CE_SYSTEM_FALSE
660 HAVE_W32CE_SYSTEM_TRUE
661 HAVE_W32_SYSTEM_FALSE
662 HAVE_W32_SYSTEM_TRUE
663 CC_FOR_BUILD
664 YFLAGS
665 YACC
666 LIBKSBA_LT_REVISION
667 LIBKSBA_LT_AGE
668 LIBKSBA_LT_CURRENT
669 MAINT
670 MAINTAINER_MODE_FALSE
671 MAINTAINER_MODE_TRUE
672 RC
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
681 AR
682 LN_S
683 NM
684 ac_ct_DUMPBIN
685 DUMPBIN
686 LD
687 FGREP
688 SED
689 LIBTOOL
690 OBJDUMP
691 DLLTOOL
692 AS
693 EGREP
694 GREP
695 CPP
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_silent_rules
790 enable_dependency_tracking
791 enable_static
792 enable_shared
793 with_pic
794 enable_fast_install
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 enable_maintainer_mode
799 enable_optimization
800 enable_ld_version_script
801 with_libgpg_error_prefix
802 with_gpg_error_prefix
803 enable_valgrind_tests
804 enable_build_timestamp
805 '
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP
815 YACC
816 YFLAGS
817 CC_FOR_BUILD'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *=)   ac_optarg= ;;
882   *)    ac_optarg=yes ;;
883   esac
884
885   # Accept the important Cygnus configure options, so we can diagnose typos.
886
887   case $ac_dashdash$ac_option in
888   --)
889     ac_dashdash=yes ;;
890
891   -bindir | --bindir | --bindi | --bind | --bin | --bi)
892     ac_prev=bindir ;;
893   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894     bindir=$ac_optarg ;;
895
896   -build | --build | --buil | --bui | --bu)
897     ac_prev=build_alias ;;
898   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899     build_alias=$ac_optarg ;;
900
901   -cache-file | --cache-file | --cache-fil | --cache-fi \
902   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903     ac_prev=cache_file ;;
904   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906     cache_file=$ac_optarg ;;
907
908   --config-cache | -C)
909     cache_file=config.cache ;;
910
911   -datadir | --datadir | --datadi | --datad)
912     ac_prev=datadir ;;
913   -datadir=* | --datadir=* | --datadi=* | --datad=*)
914     datadir=$ac_optarg ;;
915
916   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917   | --dataroo | --dataro | --datar)
918     ac_prev=datarootdir ;;
919   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921     datarootdir=$ac_optarg ;;
922
923   -disable-* | --disable-*)
924     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927       as_fn_error $? "invalid feature name: $ac_useropt"
928     ac_useropt_orig=$ac_useropt
929     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930     case $ac_user_opts in
931       *"
932 "enable_$ac_useropt"
933 "*) ;;
934       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935          ac_unrecognized_sep=', ';;
936     esac
937     eval enable_$ac_useropt=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error $? "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=\$ac_optarg ;;
964
965   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967   | --exec | --exe | --ex)
968     ac_prev=exec_prefix ;;
969   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971   | --exec=* | --exe=* | --ex=*)
972     exec_prefix=$ac_optarg ;;
973
974   -gas | --gas | --ga | --g)
975     # Obsolete; use --with-gas.
976     with_gas=yes ;;
977
978   -help | --help | --hel | --he | -h)
979     ac_init_help=long ;;
980   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981     ac_init_help=recursive ;;
982   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983     ac_init_help=short ;;
984
985   -host | --host | --hos | --ho)
986     ac_prev=host_alias ;;
987   -host=* | --host=* | --hos=* | --ho=*)
988     host_alias=$ac_optarg ;;
989
990   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991     ac_prev=htmldir ;;
992   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993   | --ht=*)
994     htmldir=$ac_optarg ;;
995
996   -includedir | --includedir | --includedi | --included | --include \
997   | --includ | --inclu | --incl | --inc)
998     ac_prev=includedir ;;
999   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000   | --includ=* | --inclu=* | --incl=* | --inc=*)
1001     includedir=$ac_optarg ;;
1002
1003   -infodir | --infodir | --infodi | --infod | --info | --inf)
1004     ac_prev=infodir ;;
1005   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006     infodir=$ac_optarg ;;
1007
1008   -libdir | --libdir | --libdi | --libd)
1009     ac_prev=libdir ;;
1010   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011     libdir=$ac_optarg ;;
1012
1013   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014   | --libexe | --libex | --libe)
1015     ac_prev=libexecdir ;;
1016   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017   | --libexe=* | --libex=* | --libe=*)
1018     libexecdir=$ac_optarg ;;
1019
1020   -localedir | --localedir | --localedi | --localed | --locale)
1021     ac_prev=localedir ;;
1022   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023     localedir=$ac_optarg ;;
1024
1025   -localstatedir | --localstatedir | --localstatedi | --localstated \
1026   | --localstate | --localstat | --localsta | --localst | --locals)
1027     ac_prev=localstatedir ;;
1028   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030     localstatedir=$ac_optarg ;;
1031
1032   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033     ac_prev=mandir ;;
1034   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035     mandir=$ac_optarg ;;
1036
1037   -nfp | --nfp | --nf)
1038     # Obsolete; use --without-fp.
1039     with_fp=no ;;
1040
1041   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042   | --no-cr | --no-c | -n)
1043     no_create=yes ;;
1044
1045   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047     no_recursion=yes ;;
1048
1049   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051   | --oldin | --oldi | --old | --ol | --o)
1052     ac_prev=oldincludedir ;;
1053   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056     oldincludedir=$ac_optarg ;;
1057
1058   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059     ac_prev=prefix ;;
1060   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061     prefix=$ac_optarg ;;
1062
1063   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064   | --program-pre | --program-pr | --program-p)
1065     ac_prev=program_prefix ;;
1066   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068     program_prefix=$ac_optarg ;;
1069
1070   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071   | --program-suf | --program-su | --program-s)
1072     ac_prev=program_suffix ;;
1073   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075     program_suffix=$ac_optarg ;;
1076
1077   -program-transform-name | --program-transform-name \
1078   | --program-transform-nam | --program-transform-na \
1079   | --program-transform-n | --program-transform- \
1080   | --program-transform | --program-transfor \
1081   | --program-transfo | --program-transf \
1082   | --program-trans | --program-tran \
1083   | --progr-tra | --program-tr | --program-t)
1084     ac_prev=program_transform_name ;;
1085   -program-transform-name=* | --program-transform-name=* \
1086   | --program-transform-nam=* | --program-transform-na=* \
1087   | --program-transform-n=* | --program-transform-=* \
1088   | --program-transform=* | --program-transfor=* \
1089   | --program-transfo=* | --program-transf=* \
1090   | --program-trans=* | --program-tran=* \
1091   | --progr-tra=* | --program-tr=* | --program-t=*)
1092     program_transform_name=$ac_optarg ;;
1093
1094   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095     ac_prev=pdfdir ;;
1096   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097     pdfdir=$ac_optarg ;;
1098
1099   -psdir | --psdir | --psdi | --psd | --ps)
1100     ac_prev=psdir ;;
1101   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102     psdir=$ac_optarg ;;
1103
1104   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105   | -silent | --silent | --silen | --sile | --sil)
1106     silent=yes ;;
1107
1108   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109     ac_prev=sbindir ;;
1110   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111   | --sbi=* | --sb=*)
1112     sbindir=$ac_optarg ;;
1113
1114   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116   | --sharedst | --shareds | --shared | --share | --shar \
1117   | --sha | --sh)
1118     ac_prev=sharedstatedir ;;
1119   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122   | --sha=* | --sh=*)
1123     sharedstatedir=$ac_optarg ;;
1124
1125   -site | --site | --sit)
1126     ac_prev=site ;;
1127   -site=* | --site=* | --sit=*)
1128     site=$ac_optarg ;;
1129
1130   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131     ac_prev=srcdir ;;
1132   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133     srcdir=$ac_optarg ;;
1134
1135   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136   | --syscon | --sysco | --sysc | --sys | --sy)
1137     ac_prev=sysconfdir ;;
1138   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140     sysconfdir=$ac_optarg ;;
1141
1142   -target | --target | --targe | --targ | --tar | --ta | --t)
1143     ac_prev=target_alias ;;
1144   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145     target_alias=$ac_optarg ;;
1146
1147   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148     verbose=yes ;;
1149
1150   -version | --version | --versio | --versi | --vers | -V)
1151     ac_init_version=: ;;
1152
1153   -with-* | --with-*)
1154     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157       as_fn_error $? "invalid package name: $ac_useropt"
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval with_$ac_useropt=\$ac_optarg ;;
1168
1169   -without-* | --without-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=no ;;
1184
1185   --x)
1186     # Obsolete; use --with-x.
1187     with_x=yes ;;
1188
1189   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190   | --x-incl | --x-inc | --x-in | --x-i)
1191     ac_prev=x_includes ;;
1192   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194     x_includes=$ac_optarg ;;
1195
1196   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198     ac_prev=x_libraries ;;
1199   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201     x_libraries=$ac_optarg ;;
1202
1203   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1205     ;;
1206
1207   *=*)
1208     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209     # Reject names that are not valid shell variable names.
1210     case $ac_envvar in #(
1211       '' | [0-9]* | *[!_$as_cr_alnum]* )
1212       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213     esac
1214     eval $ac_envvar=\$ac_optarg
1215     export $ac_envvar ;;
1216
1217   *)
1218     # FIXME: should be removed in autoconf 3.0.
1219     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223     ;;
1224
1225   esac
1226 done
1227
1228 if test -n "$ac_prev"; then
1229   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230   as_fn_error $? "missing argument to $ac_option"
1231 fi
1232
1233 if test -n "$ac_unrecognized_opts"; then
1234   case $enable_option_checking in
1235     no) ;;
1236     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238   esac
1239 fi
1240
1241 # Check all directory arguments for consistency.
1242 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243                 datadir sysconfdir sharedstatedir localstatedir includedir \
1244                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245                 libdir localedir mandir
1246 do
1247   eval ac_val=\$$ac_var
1248   # Remove trailing slashes.
1249   case $ac_val in
1250     */ )
1251       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252       eval $ac_var=\$ac_val;;
1253   esac
1254   # Be sure to have absolute directory names.
1255   case $ac_val in
1256     [\\/$]* | ?:[\\/]* )  continue;;
1257     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258   esac
1259   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271   if test "x$build_alias" = x; then
1272     cross_compiling=maybe
1273   elif test "x$build_alias" != "x$host_alias"; then
1274     cross_compiling=yes
1275   fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287   as_fn_error $? "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289   as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294   ac_srcdir_defaulted=yes
1295   # Try the directory containing this script, then the parent directory.
1296   ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298          X"$as_myself" : 'X\(//\)[^/]' \| \
1299          X"$as_myself" : 'X\(//\)$' \| \
1300          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\/\)[^/].*/{
1307             s//\1/
1308             q
1309           }
1310           /^X\(\/\/\)$/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\).*/{
1315             s//\1/
1316             q
1317           }
1318           s/.*/./; q'`
1319   srcdir=$ac_confdir
1320   if test ! -r "$srcdir/$ac_unique_file"; then
1321     srcdir=..
1322   fi
1323 else
1324   ac_srcdir_defaulted=no
1325 fi
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333         pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336   srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346   eval ac_env_${ac_var}_value=\$${ac_var}
1347   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1350
1351 #
1352 # Report the --help message.
1353 #
1354 if test "$ac_init_help" = "long"; then
1355   # Omit some internal or obsolete options to make the list less imposing.
1356   # This message is too long to be a string in the A/UX 3.1 sh.
1357   cat <<_ACEOF
1358 \`configure' configures libksba 1.3.4 to adapt to many kinds of systems.
1359
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE.  See below for descriptions of some of the useful variables.
1364
1365 Defaults for the options are specified in brackets.
1366
1367 Configuration:
1368   -h, --help              display this help and exit
1369       --help=short        display options specific to this package
1370       --help=recursive    display the short help of all the included packages
1371   -V, --version           display version information and exit
1372   -q, --quiet, --silent   do not print \`checking ...' messages
1373       --cache-file=FILE   cache test results in FILE [disabled]
1374   -C, --config-cache      alias for \`--cache-file=config.cache'
1375   -n, --no-create         do not create output files
1376       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1377
1378 Installation directories:
1379   --prefix=PREFIX         install architecture-independent files in PREFIX
1380                           [$ac_default_prefix]
1381   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1382                           [PREFIX]
1383
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1388
1389 For better control, use the options below.
1390
1391 Fine tuning of the installation directories:
1392   --bindir=DIR            user executables [EPREFIX/bin]
1393   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1394   --libexecdir=DIR        program executables [EPREFIX/libexec]
1395   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1396   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1397   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1398   --libdir=DIR            object code libraries [EPREFIX/lib]
1399   --includedir=DIR        C header files [PREFIX/include]
1400   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403   --infodir=DIR           info documentation [DATAROOTDIR/info]
1404   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405   --mandir=DIR            man documentation [DATAROOTDIR/man]
1406   --docdir=DIR            documentation root [DATAROOTDIR/doc/libksba]
1407   --htmldir=DIR           html documentation [DOCDIR]
1408   --dvidir=DIR            dvi documentation [DOCDIR]
1409   --pdfdir=DIR            pdf documentation [DOCDIR]
1410   --psdir=DIR             ps documentation [DOCDIR]
1411 _ACEOF
1412
1413   cat <<\_ACEOF
1414
1415 Program names:
1416   --program-prefix=PREFIX            prepend PREFIX to installed program names
1417   --program-suffix=SUFFIX            append SUFFIX to installed program names
1418   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420 System types:
1421   --build=BUILD     configure for building on BUILD [guessed]
1422   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427   case $ac_init_help in
1428      short | recursive ) echo "Configuration of libksba 1.3.4:";;
1429    esac
1430   cat <<\_ACEOF
1431
1432 Optional Features:
1433   --disable-option-checking  ignore unrecognized --enable/--with options
1434   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436   --enable-silent-rules   less verbose build output (undo: "make V=1")
1437   --disable-silent-rules  verbose build output (undo: "make V=0")
1438   --enable-dependency-tracking
1439                           do not reject slow dependency extractors
1440   --disable-dependency-tracking
1441                           speeds up one-time build
1442   --enable-static[=PKGS]  build static libraries [default=no]
1443   --enable-shared[=PKGS]  build shared libraries [default=yes]
1444   --enable-fast-install[=PKGS]
1445                           optimize for fast installation [default=yes]
1446   --disable-libtool-lock  avoid locking (might break parallel builds)
1447   --enable-maintainer-mode
1448                           enable make rules and dependencies not useful (and
1449                           sometimes confusing) to the casual installer
1450   --disable-optimization  disable compiler optimization
1451   --enable-ld-version-script
1452                           enable/disable use of linker version script.
1453                           (default is system dependent)
1454   --enable-valgrind-tests run self tests under valgrind
1455   --enable-build-timestamp
1456                           set an explicit build timestamp for reproducibility.
1457                           (default is the current time in ISO-8601 format)
1458
1459 Optional Packages:
1460   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1463                           both]
1464   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465   --with-sysroot=DIR Search for dependent libraries within DIR
1466                         (or the compiler's sysroot if not specified).
1467   --with-libgpg-error-prefix=PFX
1468                           prefix where GPG Error is installed (optional)
1469
1470
1471 Some influential environment variables:
1472   CC          C compiler command
1473   CFLAGS      C compiler flags
1474   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1475               nonstandard directory <lib dir>
1476   LIBS        libraries to pass to the linker, e.g. -l<library>
1477   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478               you have headers in a nonstandard directory <include dir>
1479   CPP         C preprocessor
1480   YACC        The `Yet Another Compiler Compiler' implementation to use.
1481               Defaults to the first program found out of: `bison -y', `byacc',
1482               `yacc'.
1483   YFLAGS      The list of arguments that will be passed by default to $YACC.
1484               This script will default YFLAGS to the empty string to avoid a
1485               default value of `-d' given by some make applications.
1486   CC_FOR_BUILD
1487               build system C compiler
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <http://bugs.gnupg.org>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" ||
1501       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502       continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for guested configure.
1539     if test -f "$ac_srcdir/configure.gnu"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542     elif test -f "$ac_srcdir/configure"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure" --help=recursive
1545     else
1546       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547     fi || ac_status=$?
1548     cd "$ac_pwd" || { ac_status=$?; break; }
1549   done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 libksba configure 1.3.4
1556 generated by GNU Autoconf 2.69
1557
1558 Copyright (C) 2012 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562   exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   rm -f conftest.$ac_objext
1576   if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579   *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583   (eval "$ac_compile") 2>conftest.err
1584   ac_status=$?
1585   if test -s conftest.err; then
1586     grep -v '^ *+' conftest.err >conftest.er1
1587     cat conftest.er1 >&5
1588     mv -f conftest.er1 conftest.err
1589   fi
1590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591   test $ac_status = 0; } && {
1592          test -z "$ac_c_werror_flag" ||
1593          test ! -s conftest.err
1594        } && test -s conftest.$ac_objext; then :
1595   ac_retval=0
1596 else
1597   $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600         ac_retval=1
1601 fi
1602   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603   as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_compile
1606
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_cpp ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } > conftest.i && {
1629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        }; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637     ac_retval=1
1638 fi
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_cpp
1643
1644 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647 # the include files in INCLUDES and setting the cache variable VAR
1648 # accordingly.
1649 ac_fn_c_check_header_mongrel ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   if eval \${$3+:} false; then :
1653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if eval \${$3+:} false; then :
1656   $as_echo_n "(cached) " >&6
1657 fi
1658 eval ac_res=\$$3
1659                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 else
1662   # Is the header compilable?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664 $as_echo_n "checking $2 usability... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h.  */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671   ac_header_compiler=yes
1672 else
1673   ac_header_compiler=no
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677 $as_echo "$ac_header_compiler" >&6; }
1678
1679 # Is the header present?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681 $as_echo_n "checking $2 presence... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h.  */
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_cpp "$LINENO"; then :
1687   ac_header_preproc=yes
1688 else
1689   ac_header_preproc=no
1690 fi
1691 rm -f conftest.err conftest.i conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693 $as_echo "$ac_header_preproc" >&6; }
1694
1695 # So?  What about this header?
1696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1697   yes:no: )
1698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702     ;;
1703   no:yes:* )
1704     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1707 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1708     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1711 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1712     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ( $as_echo "## ------------------------------------ ##
1715 ## Report this to http://bugs.gnupg.org ##
1716 ## ------------------------------------ ##"
1717      ) | sed "s/^/$as_me: WARNING:     /" >&2
1718     ;;
1719 esac
1720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723   $as_echo_n "(cached) " >&6
1724 else
1725   eval "$3=\$ac_header_compiler"
1726 fi
1727 eval ac_res=\$$3
1728                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 fi
1731   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_mongrel
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742   if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745   *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749   (eval "$ac_link") 2>&5
1750   ac_status=$?
1751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753   { { case "(($ac_try" in
1754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755   *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759   (eval "$ac_try") 2>&5
1760   ac_status=$?
1761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762   test $ac_status = 0; }; }; then :
1763   ac_retval=0
1764 else
1765   $as_echo "$as_me: program exited with status $ac_status" >&5
1766        $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769        ac_retval=$ac_status
1770 fi
1771   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773   as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1782 {
1783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787   $as_echo_n "(cached) " >&6
1788 else
1789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h.  */
1791 $4
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795   eval "$3=yes"
1796 else
1797   eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_header_compile
1807
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_link ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   rm -f conftest.$ac_objext conftest$ac_exeext
1815   if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_link") 2>conftest.err
1823   ac_status=$?
1824   if test -s conftest.err; then
1825     grep -v '^ *+' conftest.err >conftest.er1
1826     cat conftest.er1 >&5
1827     mv -f conftest.er1 conftest.err
1828   fi
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; } && {
1831          test -z "$ac_c_werror_flag" ||
1832          test ! -s conftest.err
1833        } && test -s conftest$ac_exeext && {
1834          test "$cross_compiling" = yes ||
1835          test -x conftest$ac_exeext
1836        }; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842         ac_retval=1
1843 fi
1844   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846   # interfere with the next link command; also delete a directory that is
1847   # left behind by Apple's compiler.  We do this before executing the actions.
1848   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850   as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_link
1853
1854 # ac_fn_c_check_func LINENO FUNC VAR
1855 # ----------------------------------
1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863   $as_echo_n "(cached) " >&6
1864 else
1865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h.  */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1869 #define $2 innocuous_$2
1870
1871 /* System header to define __stub macros and hopefully few prototypes,
1872     which can conflict with char $2 (); below.
1873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874     <limits.h> exists even on freestanding compilers.  */
1875
1876 #ifdef __STDC__
1877 # include <limits.h>
1878 #else
1879 # include <assert.h>
1880 #endif
1881
1882 #undef $2
1883
1884 /* Override any GCC internal prototype to avoid an error.
1885    Use char because int might match the return type of a GCC
1886    builtin and then its argument prototype would still apply.  */
1887 #ifdef __cplusplus
1888 extern "C"
1889 #endif
1890 char $2 ();
1891 /* The GNU C library defines this for functions which it implements
1892     to always fail with ENOSYS.  Some functions are actually named
1893     something starting with __ and the normal name is an alias.  */
1894 #if defined __stub_$2 || defined __stub___$2
1895 choke me
1896 #endif
1897
1898 int
1899 main ()
1900 {
1901 return $2 ();
1902   ;
1903   return 0;
1904 }
1905 _ACEOF
1906 if ac_fn_c_try_link "$LINENO"; then :
1907   eval "$3=yes"
1908 else
1909   eval "$3=no"
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext \
1912     conftest$ac_exeext conftest.$ac_ext
1913 fi
1914 eval ac_res=\$$3
1915                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919 } # ac_fn_c_check_func
1920
1921 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1922 # --------------------------------------------
1923 # Tries to find the compile-time value of EXPR in a program that includes
1924 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1925 # computed
1926 ac_fn_c_compute_int ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   if test "$cross_compiling" = yes; then
1930     # Depending upon the size, compute the lo and hi bounds.
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h.  */
1933 $4
1934 int
1935 main ()
1936 {
1937 static int test_array [1 - 2 * !(($2) >= 0)];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946   ac_lo=0 ac_mid=0
1947   while :; do
1948     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h.  */
1950 $4
1951 int
1952 main ()
1953 {
1954 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1955 test_array [0] = 0;
1956 return test_array [0];
1957
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963   ac_hi=$ac_mid; break
1964 else
1965   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1966                         if test $ac_lo -le $ac_mid; then
1967                           ac_lo= ac_hi=
1968                           break
1969                         fi
1970                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973   done
1974 else
1975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h.  */
1977 $4
1978 int
1979 main ()
1980 {
1981 static int test_array [1 - 2 * !(($2) < 0)];
1982 test_array [0] = 0;
1983 return test_array [0];
1984
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990   ac_hi=-1 ac_mid=-1
1991   while :; do
1992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h.  */
1994 $4
1995 int
1996 main ()
1997 {
1998 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1999 test_array [0] = 0;
2000 return test_array [0];
2001
2002   ;
2003   return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007   ac_lo=$ac_mid; break
2008 else
2009   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2010                         if test $ac_mid -le $ac_hi; then
2011                           ac_lo= ac_hi=
2012                           break
2013                         fi
2014                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017   done
2018 else
2019   ac_lo= ac_hi=
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 # Binary search between lo and hi bounds.
2025 while test "x$ac_lo" != "x$ac_hi"; do
2026   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 int
2031 main ()
2032 {
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2034 test_array [0] = 0;
2035 return test_array [0];
2036
2037   ;
2038   return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042   ac_hi=$ac_mid
2043 else
2044   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 done
2048 case $ac_lo in #((
2049 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2050 '') ac_retval=1 ;;
2051 esac
2052   else
2053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h.  */
2055 $4
2056 static long int longval () { return $2; }
2057 static unsigned long int ulongval () { return $2; }
2058 #include <stdio.h>
2059 #include <stdlib.h>
2060 int
2061 main ()
2062 {
2063
2064   FILE *f = fopen ("conftest.val", "w");
2065   if (! f)
2066     return 1;
2067   if (($2) < 0)
2068     {
2069       long int i = longval ();
2070       if (i != ($2))
2071         return 1;
2072       fprintf (f, "%ld", i);
2073     }
2074   else
2075     {
2076       unsigned long int i = ulongval ();
2077       if (i != ($2))
2078         return 1;
2079       fprintf (f, "%lu", i);
2080     }
2081   /* Do not output a trailing newline, as this causes \r\n confusion
2082      on some platforms.  */
2083   return ferror (f) || fclose (f) != 0;
2084
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_run "$LINENO"; then :
2090   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2091 else
2092   ac_retval=1
2093 fi
2094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2095   conftest.$ac_objext conftest.beam conftest.$ac_ext
2096 rm -f conftest.val
2097
2098   fi
2099   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100   as_fn_set_status $ac_retval
2101
2102 } # ac_fn_c_compute_int
2103
2104 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2105 # -------------------------------------------
2106 # Tests whether TYPE exists after having included INCLUDES, setting cache
2107 # variable VAR accordingly.
2108 ac_fn_c_check_type ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114   $as_echo_n "(cached) " >&6
2115 else
2116   eval "$3=no"
2117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h.  */
2119 $4
2120 int
2121 main ()
2122 {
2123 if (sizeof ($2))
2124          return 0;
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 $4
2133 int
2134 main ()
2135 {
2136 if (sizeof (($2)))
2137             return 0;
2138   ;
2139   return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143
2144 else
2145   eval "$3=yes"
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 eval ac_res=\$$3
2152                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155
2156 } # ac_fn_c_check_type
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2160
2161 It was created by libksba $as_me 1.3.4, which was
2162 generated by GNU Autoconf 2.69.  Invocation command line was
2163
2164   $ $0 $@
2165
2166 _ACEOF
2167 exec 5>>config.log
2168 {
2169 cat <<_ASUNAME
2170 ## --------- ##
2171 ## Platform. ##
2172 ## --------- ##
2173
2174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2179
2180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2182
2183 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2184 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2187 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2188 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2189 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2190
2191 _ASUNAME
2192
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198     $as_echo "PATH: $as_dir"
2199   done
2200 IFS=$as_save_IFS
2201
2202 } >&5
2203
2204 cat >&5 <<_ACEOF
2205
2206
2207 ## ----------- ##
2208 ## Core tests. ##
2209 ## ----------- ##
2210
2211 _ACEOF
2212
2213
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_configure_args=
2220 ac_configure_args0=
2221 ac_configure_args1=
2222 ac_must_keep_next=false
2223 for ac_pass in 1 2
2224 do
2225   for ac_arg
2226   do
2227     case $ac_arg in
2228     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230     | -silent | --silent | --silen | --sile | --sil)
2231       continue ;;
2232     *\'*)
2233       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234     esac
2235     case $ac_pass in
2236     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2237     2)
2238       as_fn_append ac_configure_args1 " '$ac_arg'"
2239       if test $ac_must_keep_next = true; then
2240         ac_must_keep_next=false # Got value, back to normal.
2241       else
2242         case $ac_arg in
2243           *=* | --config-cache | -C | -disable-* | --disable-* \
2244           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246           | -with-* | --with-* | -without-* | --without-* | --x)
2247             case "$ac_configure_args0 " in
2248               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249             esac
2250             ;;
2251           -* ) ac_must_keep_next=true ;;
2252         esac
2253       fi
2254       as_fn_append ac_configure_args " '$ac_arg'"
2255       ;;
2256     esac
2257   done
2258 done
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2261
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log.  We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268   # Save into config.log some information that might help in debugging.
2269   {
2270     echo
2271
2272     $as_echo "## ---------------- ##
2273 ## Cache variables. ##
2274 ## ---------------- ##"
2275     echo
2276     # The following way of writing the cache mishandles newlines in values,
2277 (
2278   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279     eval ac_val=\$$ac_var
2280     case $ac_val in #(
2281     *${as_nl}*)
2282       case $ac_var in #(
2283       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2285       esac
2286       case $ac_var in #(
2287       _ | IFS | as_nl) ;; #(
2288       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289       *) { eval $ac_var=; unset $ac_var;} ;;
2290       esac ;;
2291     esac
2292   done
2293   (set) 2>&1 |
2294     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295     *${as_nl}ac_space=\ *)
2296       sed -n \
2297         "s/'\''/'\''\\\\'\'''\''/g;
2298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2299       ;; #(
2300     *)
2301       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2302       ;;
2303     esac |
2304     sort
2305 )
2306     echo
2307
2308     $as_echo "## ----------------- ##
2309 ## Output variables. ##
2310 ## ----------------- ##"
2311     echo
2312     for ac_var in $ac_subst_vars
2313     do
2314       eval ac_val=\$$ac_var
2315       case $ac_val in
2316       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317       esac
2318       $as_echo "$ac_var='\''$ac_val'\''"
2319     done | sort
2320     echo
2321
2322     if test -n "$ac_subst_files"; then
2323       $as_echo "## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##"
2326       echo
2327       for ac_var in $ac_subst_files
2328       do
2329         eval ac_val=\$$ac_var
2330         case $ac_val in
2331         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332         esac
2333         $as_echo "$ac_var='\''$ac_val'\''"
2334       done | sort
2335       echo
2336     fi
2337
2338     if test -s confdefs.h; then
2339       $as_echo "## ----------- ##
2340 ## confdefs.h. ##
2341 ## ----------- ##"
2342       echo
2343       cat confdefs.h
2344       echo
2345     fi
2346     test "$ac_signal" != 0 &&
2347       $as_echo "$as_me: caught signal $ac_signal"
2348     $as_echo "$as_me: exit $exit_status"
2349   } >&5
2350   rm -f core *.core core.conftest.* &&
2351     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2352     exit $exit_status
2353 ' 0
2354 for ac_signal in 1 2 13 15; do
2355   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2356 done
2357 ac_signal=0
2358
2359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2360 rm -f -r conftest* confdefs.h
2361
2362 $as_echo "/* confdefs.h */" > confdefs.h
2363
2364 # Predefined preprocessor variables.
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_NAME "$PACKAGE_NAME"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2372 _ACEOF
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2376 _ACEOF
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_STRING "$PACKAGE_STRING"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2384 _ACEOF
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_URL "$PACKAGE_URL"
2388 _ACEOF
2389
2390
2391 # Let the site file select an alternate cache file if it wants to.
2392 # Prefer an explicitly selected file to automatically selected ones.
2393 ac_site_file1=NONE
2394 ac_site_file2=NONE
2395 if test -n "$CONFIG_SITE"; then
2396   # We do not want a PATH search for config.site.
2397   case $CONFIG_SITE in #((
2398     -*)  ac_site_file1=./$CONFIG_SITE;;
2399     */*) ac_site_file1=$CONFIG_SITE;;
2400     *)   ac_site_file1=./$CONFIG_SITE;;
2401   esac
2402 elif test "x$prefix" != xNONE; then
2403   ac_site_file1=$prefix/share/config.site
2404   ac_site_file2=$prefix/etc/config.site
2405 else
2406   ac_site_file1=$ac_default_prefix/share/config.site
2407   ac_site_file2=$ac_default_prefix/etc/config.site
2408 fi
2409 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2410 do
2411   test "x$ac_site_file" = xNONE && continue
2412   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2413     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2414 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2415     sed 's/^/| /' "$ac_site_file" >&5
2416     . "$ac_site_file" \
2417       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 as_fn_error $? "failed to load site script $ac_site_file
2420 See \`config.log' for more details" "$LINENO" 5; }
2421   fi
2422 done
2423
2424 if test -r "$cache_file"; then
2425   # Some versions of bash will fail to source /dev/null (special files
2426   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2427   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2428     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2429 $as_echo "$as_me: loading cache $cache_file" >&6;}
2430     case $cache_file in
2431       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432       *)                      . "./$cache_file";;
2433     esac
2434   fi
2435 else
2436   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2437 $as_echo "$as_me: creating cache $cache_file" >&6;}
2438   >$cache_file
2439 fi
2440
2441 # Check that the precious variables saved in the cache have kept the same
2442 # value.
2443 ac_cache_corrupted=false
2444 for ac_var in $ac_precious_vars; do
2445   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2446   eval ac_new_set=\$ac_env_${ac_var}_set
2447   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2448   eval ac_new_val=\$ac_env_${ac_var}_value
2449   case $ac_old_set,$ac_new_set in
2450     set,)
2451       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2453       ac_cache_corrupted=: ;;
2454     ,set)
2455       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2456 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2457       ac_cache_corrupted=: ;;
2458     ,);;
2459     *)
2460       if test "x$ac_old_val" != "x$ac_new_val"; then
2461         # differences in whitespace do not lead to failure.
2462         ac_old_val_w=`echo x $ac_old_val`
2463         ac_new_val_w=`echo x $ac_new_val`
2464         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2465           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2466 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2467           ac_cache_corrupted=:
2468         else
2469           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2470 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2471           eval $ac_var=\$ac_old_val
2472         fi
2473         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2474 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2475         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2476 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2477       fi;;
2478   esac
2479   # Pass precious variables to config.status.
2480   if test "$ac_new_set" = set; then
2481     case $ac_new_val in
2482     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2483     *) ac_arg=$ac_var=$ac_new_val ;;
2484     esac
2485     case " $ac_configure_args " in
2486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2487       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2488     esac
2489   fi
2490 done
2491 if $ac_cache_corrupted; then
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2495 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2496   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2497 fi
2498 ## -------------------- ##
2499 ## Main body of script. ##
2500 ## -------------------- ##
2501
2502 ac_ext=c
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507
2508
2509
2510 # LT Version numbers: Remember to change them just *before* a release.
2511 #   (Interfaces removed:    CURRENT++, AGE=0, REVISION=0)
2512 #   (Interfaces added:      CURRENT++, AGE++, REVISION=0)
2513 #   (No interfaces changed:                   REVISION++)
2514 # Please remember to document interface changes in the NEWS file.
2515 LIBKSBA_LT_CURRENT=19
2516 LIBKSBA_LT_AGE=11
2517 LIBKSBA_LT_REVISION=5
2518 #-------------------
2519 # If the API is changed in an incompatible way: increment the next counter.
2520 KSBA_CONFIG_API_VERSION=1
2521
2522
2523 NEED_GPG_ERROR_VERSION=1.8
2524
2525
2526 PACKAGE=$PACKAGE_NAME
2527 VERSION=$PACKAGE_VERSION
2528
2529 ac_aux_dir=
2530 for ac_dir in build-aux "$srcdir"/build-aux; do
2531   if test -f "$ac_dir/install-sh"; then
2532     ac_aux_dir=$ac_dir
2533     ac_install_sh="$ac_aux_dir/install-sh -c"
2534     break
2535   elif test -f "$ac_dir/install.sh"; then
2536     ac_aux_dir=$ac_dir
2537     ac_install_sh="$ac_aux_dir/install.sh -c"
2538     break
2539   elif test -f "$ac_dir/shtool"; then
2540     ac_aux_dir=$ac_dir
2541     ac_install_sh="$ac_aux_dir/shtool install -c"
2542     break
2543   fi
2544 done
2545 if test -z "$ac_aux_dir"; then
2546   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2547 fi
2548
2549 # These three variables are undocumented and unsupported,
2550 # and are intended to be withdrawn in a future Autoconf release.
2551 # They can cause serious problems if a builder's source tree is in a directory
2552 # whose full name contains unusual characters.
2553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2555 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2556
2557
2558
2559 am__api_version='1.14'
2560
2561 # Find a good install program.  We prefer a C program (faster),
2562 # so one script is as good as another.  But avoid the broken or
2563 # incompatible versions:
2564 # SysV /etc/install, /usr/sbin/install
2565 # SunOS /usr/etc/install
2566 # IRIX /sbin/install
2567 # AIX /bin/install
2568 # AmigaOS /C/install, which installs bootblocks on floppy discs
2569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572 # OS/2's system install, which has a completely different semantic
2573 # ./install, which can be erroneously created by make from ./install.sh.
2574 # Reject install programs that cannot install multiple files.
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2577 if test -z "$INSTALL"; then
2578 if ${ac_cv_path_install+:} false; then :
2579   $as_echo_n "(cached) " >&6
2580 else
2581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586     # Account for people who put trailing slashes in PATH elements.
2587 case $as_dir/ in #((
2588   ./ | .// | /[cC]/* | \
2589   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591   /usr/ucb/* ) ;;
2592   *)
2593     # OSF1 and SCO ODT 3.0 have their own names for install.
2594     # Don't use installbsd from OSF since it installs stuff as root
2595     # by default.
2596     for ac_prog in ginstall scoinst install; do
2597       for ac_exec_ext in '' $ac_executable_extensions; do
2598         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2599           if test $ac_prog = install &&
2600             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601             # AIX install.  It has an incompatible calling convention.
2602             :
2603           elif test $ac_prog = install &&
2604             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605             # program-specific install script used by HP pwplus--don't use.
2606             :
2607           else
2608             rm -rf conftest.one conftest.two conftest.dir
2609             echo one > conftest.one
2610             echo two > conftest.two
2611             mkdir conftest.dir
2612             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613               test -s conftest.one && test -s conftest.two &&
2614               test -s conftest.dir/conftest.one &&
2615               test -s conftest.dir/conftest.two
2616             then
2617               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618               break 3
2619             fi
2620           fi
2621         fi
2622       done
2623     done
2624     ;;
2625 esac
2626
2627   done
2628 IFS=$as_save_IFS
2629
2630 rm -rf conftest.one conftest.two conftest.dir
2631
2632 fi
2633   if test "${ac_cv_path_install+set}" = set; then
2634     INSTALL=$ac_cv_path_install
2635   else
2636     # As a last resort, use the slow shell script.  Don't cache a
2637     # value for INSTALL within a source directory, because that will
2638     # break other packages using the cache if that directory is
2639     # removed, or if the value is a relative name.
2640     INSTALL=$ac_install_sh
2641   fi
2642 fi
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644 $as_echo "$INSTALL" >&6; }
2645
2646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647 # It thinks the first close brace ends the variable substitution.
2648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2649
2650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2651
2652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655 $as_echo_n "checking whether build environment is sane... " >&6; }
2656 # Reject unsafe characters in $srcdir or the absolute working directory
2657 # name.  Accept space and tab only in the latter.
2658 am_lf='
2659 '
2660 case `pwd` in
2661   *[\\\"\#\$\&\'\`$am_lf]*)
2662     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2663 esac
2664 case $srcdir in
2665   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2666     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2667 esac
2668
2669 # Do 'set' in a subshell so we don't clobber the current shell's
2670 # arguments.  Must try -L first in case configure is actually a
2671 # symlink; some systems play weird games with the mod time of symlinks
2672 # (eg FreeBSD returns the mod time of the symlink's containing
2673 # directory).
2674 if (
2675    am_has_slept=no
2676    for am_try in 1 2; do
2677      echo "timestamp, slept: $am_has_slept" > conftest.file
2678      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679      if test "$*" = "X"; then
2680         # -L didn't work.
2681         set X `ls -t "$srcdir/configure" conftest.file`
2682      fi
2683      if test "$*" != "X $srcdir/configure conftest.file" \
2684         && test "$*" != "X conftest.file $srcdir/configure"; then
2685
2686         # If neither matched, then we have a broken ls.  This can happen
2687         # if, for instance, CONFIG_SHELL is bash and it inherits a
2688         # broken ls alias from the environment.  This has actually
2689         # happened.  Such a system could not be considered "sane".
2690         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2691   alias in your environment" "$LINENO" 5
2692      fi
2693      if test "$2" = conftest.file || test $am_try -eq 2; then
2694        break
2695      fi
2696      # Just in case.
2697      sleep 1
2698      am_has_slept=yes
2699    done
2700    test "$2" = conftest.file
2701    )
2702 then
2703    # Ok.
2704    :
2705 else
2706    as_fn_error $? "newly created file is older than distributed files!
2707 Check your system clock" "$LINENO" 5
2708 fi
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2710 $as_echo "yes" >&6; }
2711 # If we didn't sleep, we still need to ensure time stamps of config.status and
2712 # generated files are strictly newer.
2713 am_sleep_pid=
2714 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2715   ( sleep 1 ) &
2716   am_sleep_pid=$!
2717 fi
2718
2719 rm -f conftest.file
2720
2721 test "$program_prefix" != NONE &&
2722   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2723 # Use a double $ so make ignores it.
2724 test "$program_suffix" != NONE &&
2725   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2726 # Double any \ or $.
2727 # By default was `s,x,x', remove it if useless.
2728 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2729 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2730
2731 # Expand $ac_aux_dir to an absolute path.
2732 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2733
2734 if test x"${MISSING+set}" != xset; then
2735   case $am_aux_dir in
2736   *\ * | *\     *)
2737     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2738   *)
2739     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2740   esac
2741 fi
2742 # Use eval to expand $SHELL
2743 if eval "$MISSING --is-lightweight"; then
2744   am_missing_run="$MISSING "
2745 else
2746   am_missing_run=
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2748 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2749 fi
2750
2751 if test x"${install_sh}" != xset; then
2752   case $am_aux_dir in
2753   *\ * | *\     *)
2754     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2755   *)
2756     install_sh="\${SHELL} $am_aux_dir/install-sh"
2757   esac
2758 fi
2759
2760 # Installed binaries are usually stripped using 'strip' when the user
2761 # run "make install-strip".  However 'strip' might not be the right
2762 # tool to use in cross-compilation environments, therefore Automake
2763 # will honor the 'STRIP' environment variable to overrule this program.
2764 if test "$cross_compiling" != no; then
2765   if test -n "$ac_tool_prefix"; then
2766   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}strip; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_STRIP+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   if test -n "$STRIP"; then
2774   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_exec_ext in '' $ac_executable_extensions; do
2782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788   done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 STRIP=$ac_cv_prog_STRIP
2794 if test -n "$STRIP"; then
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2796 $as_echo "$STRIP" >&6; }
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803 fi
2804 if test -z "$ac_cv_prog_STRIP"; then
2805   ac_ct_STRIP=$STRIP
2806   # Extract the first word of "strip", so it can be a program name with args.
2807 set dummy strip; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test -n "$ac_ct_STRIP"; then
2814   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     for ac_exec_ext in '' $ac_executable_extensions; do
2822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823     ac_cv_prog_ac_ct_STRIP="strip"
2824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828   done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2834 if test -n "$ac_ct_STRIP"; then
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2836 $as_echo "$ac_ct_STRIP" >&6; }
2837 else
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842   if test "x$ac_ct_STRIP" = x; then
2843     STRIP=":"
2844   else
2845     case $cross_compiling:$ac_tool_warned in
2846 yes:)
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851     STRIP=$ac_ct_STRIP
2852   fi
2853 else
2854   STRIP="$ac_cv_prog_STRIP"
2855 fi
2856
2857 fi
2858 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2861 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2862 if test -z "$MKDIR_P"; then
2863   if ${ac_cv_path_mkdir+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2868 do
2869   IFS=$as_save_IFS
2870   test -z "$as_dir" && as_dir=.
2871     for ac_prog in mkdir gmkdir; do
2872          for ac_exec_ext in '' $ac_executable_extensions; do
2873            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2874            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2875              'mkdir (GNU coreutils) '* | \
2876              'mkdir (coreutils) '* | \
2877              'mkdir (fileutils) '4.1*)
2878                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2879                break 3;;
2880            esac
2881          done
2882        done
2883   done
2884 IFS=$as_save_IFS
2885
2886 fi
2887
2888   test -d ./--version && rmdir ./--version
2889   if test "${ac_cv_path_mkdir+set}" = set; then
2890     MKDIR_P="$ac_cv_path_mkdir -p"
2891   else
2892     # As a last resort, use the slow shell script.  Don't cache a
2893     # value for MKDIR_P within a source directory, because that will
2894     # break other packages using the cache if that directory is
2895     # removed, or if the value is a relative name.
2896     MKDIR_P="$ac_install_sh -d"
2897   fi
2898 fi
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2900 $as_echo "$MKDIR_P" >&6; }
2901
2902 for ac_prog in gawk mawk nawk awk
2903 do
2904   # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy $ac_prog; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if ${ac_cv_prog_AWK+:} false; then :
2909   $as_echo_n "(cached) " >&6
2910 else
2911   if test -n "$AWK"; then
2912   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917   IFS=$as_save_IFS
2918   test -z "$as_dir" && as_dir=.
2919     for ac_exec_ext in '' $ac_executable_extensions; do
2920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921     ac_cv_prog_AWK="$ac_prog"
2922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923     break 2
2924   fi
2925 done
2926   done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 AWK=$ac_cv_prog_AWK
2932 if test -n "$AWK"; then
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2934 $as_echo "$AWK" >&6; }
2935 else
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 fi
2939
2940
2941   test -n "$AWK" && break
2942 done
2943
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2945 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2946 set x ${MAKE-make}
2947 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2948 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2949   $as_echo_n "(cached) " >&6
2950 else
2951   cat >conftest.make <<\_ACEOF
2952 SHELL = /bin/sh
2953 all:
2954         @echo '@@@%%%=$(MAKE)=@@@%%%'
2955 _ACEOF
2956 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958   *@@@%%%=?*=@@@%%%*)
2959     eval ac_cv_prog_make_${ac_make}_set=yes;;
2960   *)
2961     eval ac_cv_prog_make_${ac_make}_set=no;;
2962 esac
2963 rm -f conftest.make
2964 fi
2965 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967 $as_echo "yes" >&6; }
2968   SET_MAKE=
2969 else
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972   SET_MAKE="MAKE=${MAKE-make}"
2973 fi
2974
2975 rm -rf .tst 2>/dev/null
2976 mkdir .tst 2>/dev/null
2977 if test -d .tst; then
2978   am__leading_dot=.
2979 else
2980   am__leading_dot=_
2981 fi
2982 rmdir .tst 2>/dev/null
2983
2984 # Check whether --enable-silent-rules was given.
2985 if test "${enable_silent_rules+set}" = set; then :
2986   enableval=$enable_silent_rules;
2987 fi
2988
2989 case $enable_silent_rules in # (((
2990   yes) AM_DEFAULT_VERBOSITY=0;;
2991    no) AM_DEFAULT_VERBOSITY=1;;
2992     *) AM_DEFAULT_VERBOSITY=1;;
2993 esac
2994 am_make=${MAKE-make}
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2996 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2997 if ${am_cv_make_support_nested_variables+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   if $as_echo 'TRUE=$(BAR$(V))
3001 BAR0=false
3002 BAR1=true
3003 V=1
3004 am__doit:
3005         @$(TRUE)
3006 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3007   am_cv_make_support_nested_variables=yes
3008 else
3009   am_cv_make_support_nested_variables=no
3010 fi
3011 fi
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3013 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3014 if test $am_cv_make_support_nested_variables = yes; then
3015     AM_V='$(V)'
3016   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3017 else
3018   AM_V=$AM_DEFAULT_VERBOSITY
3019   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3020 fi
3021 AM_BACKSLASH='\'
3022
3023 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3024   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3025   # is not polluted with repeated "-I."
3026   am__isrc=' -I$(srcdir)'
3027   # test to see if srcdir already configured
3028   if test -f $srcdir/config.status; then
3029     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3030   fi
3031 fi
3032
3033 # test whether we have cygpath
3034 if test -z "$CYGPATH_W"; then
3035   if (cygpath --version) >/dev/null 2>/dev/null; then
3036     CYGPATH_W='cygpath -w'
3037   else
3038     CYGPATH_W=echo
3039   fi
3040 fi
3041
3042
3043 # Define the identity of the package.
3044  PACKAGE='libksba'
3045  VERSION='1.3.4'
3046
3047
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE "$PACKAGE"
3050 _ACEOF
3051
3052
3053 cat >>confdefs.h <<_ACEOF
3054 #define VERSION "$VERSION"
3055 _ACEOF
3056
3057 # Some tools Automake needs.
3058
3059 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060
3061
3062 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063
3064
3065 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066
3067
3068 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069
3070
3071 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072
3073 # For better backward compatibility.  To be removed once Automake 1.9.x
3074 # dies out for good.  For more background, see:
3075 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3076 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3077 mkdir_p='$(MKDIR_P)'
3078
3079 # We need awk for the "check" target.  The system "awk" is bad on
3080 # some platforms.
3081 # Always define AMTAR for backward compatibility.  Yes, it's still used
3082 # in the wild :-(  We should find a proper way to deprecate it ...
3083 AMTAR='$${TAR-tar}'
3084
3085
3086 # We'll loop over all known methods to create a tar archive until one works.
3087 _am_tools='gnutar  pax cpio none'
3088
3089 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3090
3091
3092
3093
3094
3095
3096 # POSIX will say in a future version that running "rm -f" with no argument
3097 # is OK; and we want to be able to make that assumption in our Makefile
3098 # recipes.  So use an aggressive probe to check that the usage we want is
3099 # actually supported "in the wild" to an acceptable degree.
3100 # See automake bug#10828.
3101 # To make any issue more visible, cause the running configure to be aborted
3102 # by default if the 'rm' program in use doesn't match our expectations; the
3103 # user can still override this though.
3104 if rm -f && rm -fr && rm -rf; then : OK; else
3105   cat >&2 <<'END'
3106 Oops!
3107
3108 Your 'rm' program seems unable to run without file operands specified
3109 on the command line, even when the '-f' option is present.  This is contrary
3110 to the behaviour of most rm programs out there, and not conforming with
3111 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3112
3113 Please tell bug-automake@gnu.org about your system, including the value
3114 of your $PATH and any error possibly output before this message.  This
3115 can help us improve future automake versions.
3116
3117 END
3118   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3119     echo 'Configuration will proceed anyway, since you have set the' >&2
3120     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3121     echo >&2
3122   else
3123     cat >&2 <<'END'
3124 Aborting the configuration process, to ensure you take notice of the issue.
3125
3126 You can download and install GNU coreutils to get an 'rm' implementation
3127 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3128
3129 If you want to complete the configuration process using your problematic
3130 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3131 to "yes", and re-run configure.
3132
3133 END
3134     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3135   fi
3136 fi
3137
3138 ac_config_headers="$ac_config_headers config.h"
3139
3140
3141 # Make sure we can run config.sub.
3142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3143   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3146 $as_echo_n "checking build system type... " >&6; }
3147 if ${ac_cv_build+:} false; then :
3148   $as_echo_n "(cached) " >&6
3149 else
3150   ac_build_alias=$build_alias
3151 test "x$ac_build_alias" = x &&
3152   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3153 test "x$ac_build_alias" = x &&
3154   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3155 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3156   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3157
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3160 $as_echo "$ac_cv_build" >&6; }
3161 case $ac_cv_build in
3162 *-*-*) ;;
3163 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3164 esac
3165 build=$ac_cv_build
3166 ac_save_IFS=$IFS; IFS='-'
3167 set x $ac_cv_build
3168 shift
3169 build_cpu=$1
3170 build_vendor=$2
3171 shift; shift
3172 # Remember, the first character of IFS is used to create $*,
3173 # except with old shells:
3174 build_os=$*
3175 IFS=$ac_save_IFS
3176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3177
3178
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3180 $as_echo_n "checking host system type... " >&6; }
3181 if ${ac_cv_host+:} false; then :
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test "x$host_alias" = x; then
3185   ac_cv_host=$ac_cv_build
3186 else
3187   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3188     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3189 fi
3190
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3193 $as_echo "$ac_cv_host" >&6; }
3194 case $ac_cv_host in
3195 *-*-*) ;;
3196 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3197 esac
3198 host=$ac_cv_host
3199 ac_save_IFS=$IFS; IFS='-'
3200 set x $ac_cv_host
3201 shift
3202 host_cpu=$1
3203 host_vendor=$2
3204 shift; shift
3205 # Remember, the first character of IFS is used to create $*,
3206 # except with old shells:
3207 host_os=$*
3208 IFS=$ac_save_IFS
3209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3210
3211
3212
3213
3214
3215
3216         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3217 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3218         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3219 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3220         hostname=`hostname`
3221         if test "$hostname"; then
3222            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3223 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3224         fi
3225
3226         date=`date +%Y%m%d-%H%M%S`
3227         if test "$?" != 0; then
3228            date=`date`
3229         fi
3230         if test "$date"; then
3231            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3232 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3233         fi
3234
3235
3236 DEPDIR="${am__leading_dot}deps"
3237
3238 ac_config_commands="$ac_config_commands depfiles"
3239
3240
3241 am_make=${MAKE-make}
3242 cat > confinc << 'END'
3243 am__doit:
3244         @echo this is the am__doit target
3245 .PHONY: am__doit
3246 END
3247 # If we don't find an include directive, just comment out the code.
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3249 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3250 am__include="#"
3251 am__quote=
3252 _am_result=none
3253 # First try GNU make style include.
3254 echo "include confinc" > confmf
3255 # Ignore all kinds of additional output from 'make'.
3256 case `$am_make -s -f confmf 2> /dev/null` in #(
3257 *the\ am__doit\ target*)
3258   am__include=include
3259   am__quote=
3260   _am_result=GNU
3261   ;;
3262 esac
3263 # Now try BSD make style include.
3264 if test "$am__include" = "#"; then
3265    echo '.include "confinc"' > confmf
3266    case `$am_make -s -f confmf 2> /dev/null` in #(
3267    *the\ am__doit\ target*)
3268      am__include=.include
3269      am__quote="\""
3270      _am_result=BSD
3271      ;;
3272    esac
3273 fi
3274
3275
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3277 $as_echo "$_am_result" >&6; }
3278 rm -f confinc confmf
3279
3280 # Check whether --enable-dependency-tracking was given.
3281 if test "${enable_dependency_tracking+set}" = set; then :
3282   enableval=$enable_dependency_tracking;
3283 fi
3284
3285 if test "x$enable_dependency_tracking" != xno; then
3286   am_depcomp="$ac_aux_dir/depcomp"
3287   AMDEPBACKSLASH='\'
3288   am__nodep='_no'
3289 fi
3290  if test "x$enable_dependency_tracking" != xno; then
3291   AMDEP_TRUE=
3292   AMDEP_FALSE='#'
3293 else
3294   AMDEP_TRUE='#'
3295   AMDEP_FALSE=
3296 fi
3297
3298
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 if test -n "$ac_tool_prefix"; then
3305   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3306 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_CC+:} false; then :
3310   $as_echo_n "(cached) " >&6
3311 else
3312   if test -n "$CC"; then
3313   ac_cv_prog_CC="$CC" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318   IFS=$as_save_IFS
3319   test -z "$as_dir" && as_dir=.
3320     for ac_exec_ext in '' $ac_executable_extensions; do
3321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324     break 2
3325   fi
3326 done
3327   done
3328 IFS=$as_save_IFS
3329
3330 fi
3331 fi
3332 CC=$ac_cv_prog_CC
3333 if test -n "$CC"; then
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3335 $as_echo "$CC" >&6; }
3336 else
3337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 fi
3340
3341
3342 fi
3343 if test -z "$ac_cv_prog_CC"; then
3344   ac_ct_CC=$CC
3345   # Extract the first word of "gcc", so it can be a program name with args.
3346 set dummy gcc; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3350   $as_echo_n "(cached) " >&6
3351 else
3352   if test -n "$ac_ct_CC"; then
3353   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358   IFS=$as_save_IFS
3359   test -z "$as_dir" && as_dir=.
3360     for ac_exec_ext in '' $ac_executable_extensions; do
3361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362     ac_cv_prog_ac_ct_CC="gcc"
3363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364     break 2
3365   fi
3366 done
3367   done
3368 IFS=$as_save_IFS
3369
3370 fi
3371 fi
3372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3373 if test -n "$ac_ct_CC"; then
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3375 $as_echo "$ac_ct_CC" >&6; }
3376 else
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381   if test "x$ac_ct_CC" = x; then
3382     CC=""
3383   else
3384     case $cross_compiling:$ac_tool_warned in
3385 yes:)
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3388 ac_tool_warned=yes ;;
3389 esac
3390     CC=$ac_ct_CC
3391   fi
3392 else
3393   CC="$ac_cv_prog_CC"
3394 fi
3395
3396 if test -z "$CC"; then
3397           if test -n "$ac_tool_prefix"; then
3398     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}cc; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_CC+:} false; then :
3403   $as_echo_n "(cached) " >&6
3404 else
3405   if test -n "$CC"; then
3406   ac_cv_prog_CC="$CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413     for ac_exec_ext in '' $ac_executable_extensions; do
3414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415     ac_cv_prog_CC="${ac_tool_prefix}cc"
3416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417     break 2
3418   fi
3419 done
3420   done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428 $as_echo "$CC" >&6; }
3429 else
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434
3435   fi
3436 fi
3437 if test -z "$CC"; then
3438   # Extract the first word of "cc", so it can be a program name with args.
3439 set dummy cc; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if ${ac_cv_prog_CC+:} false; then :
3443   $as_echo_n "(cached) " >&6
3444 else
3445   if test -n "$CC"; then
3446   ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448   ac_prog_rejected=no
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452   IFS=$as_save_IFS
3453   test -z "$as_dir" && as_dir=.
3454     for ac_exec_ext in '' $ac_executable_extensions; do
3455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3457        ac_prog_rejected=yes
3458        continue
3459      fi
3460     ac_cv_prog_CC="cc"
3461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462     break 2
3463   fi
3464 done
3465   done
3466 IFS=$as_save_IFS
3467
3468 if test $ac_prog_rejected = yes; then
3469   # We found a bogon in the path, so make sure we never use it.
3470   set dummy $ac_cv_prog_CC
3471   shift
3472   if test $# != 0; then
3473     # We chose a different compiler from the bogus one.
3474     # However, it has the same basename, so the bogon will be chosen
3475     # first if we set CC to just the basename; use the full file name.
3476     shift
3477     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3478   fi
3479 fi
3480 fi
3481 fi
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3486 else
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492 fi
3493 if test -z "$CC"; then
3494   if test -n "$ac_tool_prefix"; then
3495   for ac_prog in cl.exe
3496   do
3497     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if ${ac_cv_prog_CC+:} false; then :
3502   $as_echo_n "(cached) " >&6
3503 else
3504   if test -n "$CC"; then
3505   ac_cv_prog_CC="$CC" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510   IFS=$as_save_IFS
3511   test -z "$as_dir" && as_dir=.
3512     for ac_exec_ext in '' $ac_executable_extensions; do
3513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516     break 2
3517   fi
3518 done
3519   done
3520 IFS=$as_save_IFS
3521
3522 fi
3523 fi
3524 CC=$ac_cv_prog_CC
3525 if test -n "$CC"; then
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527 $as_echo "$CC" >&6; }
3528 else
3529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3531 fi
3532
3533
3534     test -n "$CC" && break
3535   done
3536 fi
3537 if test -z "$CC"; then
3538   ac_ct_CC=$CC
3539   for ac_prog in cl.exe
3540 do
3541   # Extract the first word of "$ac_prog", so it can be a program name with args.
3542 set dummy $ac_prog; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3546   $as_echo_n "(cached) " >&6
3547 else
3548   if test -n "$ac_ct_CC"; then
3549   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556     for ac_exec_ext in '' $ac_executable_extensions; do
3557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558     ac_cv_prog_ac_ct_CC="$ac_prog"
3559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563   done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3569 if test -n "$ac_ct_CC"; then
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3571 $as_echo "$ac_ct_CC" >&6; }
3572 else
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577
3578   test -n "$ac_ct_CC" && break
3579 done
3580
3581   if test "x$ac_ct_CC" = x; then
3582     CC=""
3583   else
3584     case $cross_compiling:$ac_tool_warned in
3585 yes:)
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588 ac_tool_warned=yes ;;
3589 esac
3590     CC=$ac_ct_CC
3591   fi
3592 fi
3593
3594 fi
3595
3596
3597 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 as_fn_error $? "no acceptable C compiler found in \$PATH
3600 See \`config.log' for more details" "$LINENO" 5; }
3601
3602 # Provide some information about the compiler.
3603 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3604 set X $ac_compile
3605 ac_compiler=$2
3606 for ac_option in --version -v -V -qversion; do
3607   { { ac_try="$ac_compiler $ac_option >&5"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3615   ac_status=$?
3616   if test -s conftest.err; then
3617     sed '10a\
3618 ... rest of stderr output deleted ...
3619          10q' conftest.err >conftest.er1
3620     cat conftest.er1 >&5
3621   fi
3622   rm -f conftest.er1 conftest.err
3623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624   test $ac_status = 0; }
3625 done
3626
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h.  */
3629
3630 int
3631 main ()
3632 {
3633
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 ac_clean_files_save=$ac_clean_files
3639 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3640 # Try to create an executable without -o first, disregard a.out.
3641 # It will help us diagnose broken compilers, and finding out an intuition
3642 # of exeext.
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3644 $as_echo_n "checking whether the C compiler works... " >&6; }
3645 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3646
3647 # The possible output files:
3648 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3649
3650 ac_rmfiles=
3651 for ac_file in $ac_files
3652 do
3653   case $ac_file in
3654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3655     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3656   esac
3657 done
3658 rm -f $ac_rmfiles
3659
3660 if { { ac_try="$ac_link_default"
3661 case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667   (eval "$ac_link_default") 2>&5
3668   ac_status=$?
3669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670   test $ac_status = 0; }; then :
3671   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3672 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3673 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3674 # so that the user can short-circuit this test for compilers unknown to
3675 # Autoconf.
3676 for ac_file in $ac_files ''
3677 do
3678   test -f "$ac_file" || continue
3679   case $ac_file in
3680     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3681         ;;
3682     [ab].out )
3683         # We found the default executable, but exeext='' is most
3684         # certainly right.
3685         break;;
3686     *.* )
3687         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3688         then :; else
3689            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690         fi
3691         # We set ac_cv_exeext here because the later test for it is not
3692         # safe: cross compilers may not add the suffix if given an `-o'
3693         # argument, so we may need to know it at that point already.
3694         # Even if this section looks crufty: it has the advantage of
3695         # actually working.
3696         break;;
3697     * )
3698         break;;
3699   esac
3700 done
3701 test "$ac_cv_exeext" = no && ac_cv_exeext=
3702
3703 else
3704   ac_file=''
3705 fi
3706 if test -z "$ac_file"; then :
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error 77 "C compiler cannot create executables
3715 See \`config.log' for more details" "$LINENO" 5; }
3716 else
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3718 $as_echo "yes" >&6; }
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3721 $as_echo_n "checking for C compiler default output file name... " >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3723 $as_echo "$ac_file" >&6; }
3724 ac_exeext=$ac_cv_exeext
3725
3726 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3727 ac_clean_files=$ac_clean_files_save
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3729 $as_echo_n "checking for suffix of executables... " >&6; }
3730 if { { ac_try="$ac_link"
3731 case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737   (eval "$ac_link") 2>&5
3738   ac_status=$?
3739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740   test $ac_status = 0; }; then :
3741   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3742 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3743 # work properly (i.e., refer to `conftest.exe'), while it won't with
3744 # `rm'.
3745 for ac_file in conftest.exe conftest conftest.*; do
3746   test -f "$ac_file" || continue
3747   case $ac_file in
3748     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3749     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3750           break;;
3751     * ) break;;
3752   esac
3753 done
3754 else
3755   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details" "$LINENO" 5; }
3759 fi
3760 rm -f conftest conftest$ac_cv_exeext
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3762 $as_echo "$ac_cv_exeext" >&6; }
3763
3764 rm -f conftest.$ac_ext
3765 EXEEXT=$ac_cv_exeext
3766 ac_exeext=$EXEEXT
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h.  */
3769 #include <stdio.h>
3770 int
3771 main ()
3772 {
3773 FILE *f = fopen ("conftest.out", "w");
3774  return ferror (f) || fclose (f) != 0;
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 ac_clean_files="$ac_clean_files conftest.out"
3781 # Check that the compiler produces executables we can run.  If not, either
3782 # the compiler is broken, or we cross compile.
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3784 $as_echo_n "checking whether we are cross compiling... " >&6; }
3785 if test "$cross_compiling" != yes; then
3786   { { ac_try="$ac_link"
3787 case "(($ac_try" in
3788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789   *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793   (eval "$ac_link") 2>&5
3794   ac_status=$?
3795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796   test $ac_status = 0; }
3797   if { ac_try='./conftest$ac_cv_exeext'
3798   { { case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_try") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }; }; then
3808     cross_compiling=no
3809   else
3810     if test "$cross_compiling" = maybe; then
3811         cross_compiling=yes
3812     else
3813         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 as_fn_error $? "cannot run C compiled programs.
3816 If you meant to cross compile, use \`--host'.
3817 See \`config.log' for more details" "$LINENO" 5; }
3818     fi
3819   fi
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3822 $as_echo "$cross_compiling" >&6; }
3823
3824 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3825 ac_clean_files=$ac_clean_files_save
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3827 $as_echo_n "checking for suffix of object files... " >&6; }
3828 if ${ac_cv_objext+:} false; then :
3829   $as_echo_n "(cached) " >&6
3830 else
3831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h.  */
3833
3834 int
3835 main ()
3836 {
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.o conftest.obj
3843 if { { ac_try="$ac_compile"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850   (eval "$ac_compile") 2>&5
3851   ac_status=$?
3852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853   test $ac_status = 0; }; then :
3854   for ac_file in conftest.o conftest.obj conftest.*; do
3855   test -f "$ac_file" || continue;
3856   case $ac_file in
3857     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3858     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3859        break;;
3860   esac
3861 done
3862 else
3863   $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "cannot compute suffix of object files: cannot compile
3869 See \`config.log' for more details" "$LINENO" 5; }
3870 fi
3871 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3872 fi
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3874 $as_echo "$ac_cv_objext" >&6; }
3875 OBJEXT=$ac_cv_objext
3876 ac_objext=$OBJEXT
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3878 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3879 if ${ac_cv_c_compiler_gnu+:} false; then :
3880   $as_echo_n "(cached) " >&6
3881 else
3882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h.  */
3884
3885 int
3886 main ()
3887 {
3888 #ifndef __GNUC__
3889        choke me
3890 #endif
3891
3892   ;
3893   return 0;
3894 }
3895 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897   ac_compiler_gnu=yes
3898 else
3899   ac_compiler_gnu=no
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3903
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3906 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3907 if test $ac_compiler_gnu = yes; then
3908   GCC=yes
3909 else
3910   GCC=
3911 fi
3912 ac_test_CFLAGS=${CFLAGS+set}
3913 ac_save_CFLAGS=$CFLAGS
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3915 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3916 if ${ac_cv_prog_cc_g+:} false; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   ac_save_c_werror_flag=$ac_c_werror_flag
3920    ac_c_werror_flag=yes
3921    ac_cv_prog_cc_g=no
3922    CFLAGS="-g"
3923    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h.  */
3925
3926 int
3927 main ()
3928 {
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 if ac_fn_c_try_compile "$LINENO"; then :
3935   ac_cv_prog_cc_g=yes
3936 else
3937   CFLAGS=""
3938       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950
3951 else
3952   ac_c_werror_flag=$ac_save_c_werror_flag
3953          CFLAGS="-g"
3954          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h.  */
3956
3957 int
3958 main ()
3959 {
3960
3961   ;
3962   return 0;
3963 }
3964 _ACEOF
3965 if ac_fn_c_try_compile "$LINENO"; then :
3966   ac_cv_prog_cc_g=yes
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973    ac_c_werror_flag=$ac_save_c_werror_flag
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3976 $as_echo "$ac_cv_prog_cc_g" >&6; }
3977 if test "$ac_test_CFLAGS" = set; then
3978   CFLAGS=$ac_save_CFLAGS
3979 elif test $ac_cv_prog_cc_g = yes; then
3980   if test "$GCC" = yes; then
3981     CFLAGS="-g -O2"
3982   else
3983     CFLAGS="-g"
3984   fi
3985 else
3986   if test "$GCC" = yes; then
3987     CFLAGS="-O2"
3988   else
3989     CFLAGS=
3990   fi
3991 fi
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3993 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3994 if ${ac_cv_prog_cc_c89+:} false; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   ac_cv_prog_cc_c89=no
3998 ac_save_CC=$CC
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h.  */
4001 #include <stdarg.h>
4002 #include <stdio.h>
4003 struct stat;
4004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4005 struct buf { int x; };
4006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4007 static char *e (p, i)
4008      char **p;
4009      int i;
4010 {
4011   return p[i];
4012 }
4013 static char *f (char * (*g) (char **, int), char **p, ...)
4014 {
4015   char *s;
4016   va_list v;
4017   va_start (v,p);
4018   s = g (p, va_arg (v,int));
4019   va_end (v);
4020   return s;
4021 }
4022
4023 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4024    function prototypes and stuff, but not '\xHH' hex character constants.
4025    These don't provoke an error unfortunately, instead are silently treated
4026    as 'x'.  The following induces an error, until -std is added to get
4027    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4028    array size at least.  It's necessary to write '\x00'==0 to get something
4029    that's true only with -std.  */
4030 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4031
4032 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4033    inside strings and character constants.  */
4034 #define FOO(x) 'x'
4035 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4036
4037 int test (int i, double x);
4038 struct s1 {int (*f) (int a);};
4039 struct s2 {int (*f) (double a);};
4040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4041 int argc;
4042 char **argv;
4043 int
4044 main ()
4045 {
4046 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4052         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4053 do
4054   CC="$ac_save_CC $ac_arg"
4055   if ac_fn_c_try_compile "$LINENO"; then :
4056   ac_cv_prog_cc_c89=$ac_arg
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext
4059   test "x$ac_cv_prog_cc_c89" != "xno" && break
4060 done
4061 rm -f conftest.$ac_ext
4062 CC=$ac_save_CC
4063
4064 fi
4065 # AC_CACHE_VAL
4066 case "x$ac_cv_prog_cc_c89" in
4067   x)
4068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069 $as_echo "none needed" >&6; } ;;
4070   xno)
4071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4072 $as_echo "unsupported" >&6; } ;;
4073   *)
4074     CC="$CC $ac_cv_prog_cc_c89"
4075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4076 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4077 esac
4078 if test "x$ac_cv_prog_cc_c89" != xno; then :
4079
4080 fi
4081
4082 ac_ext=c
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4094 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4095 if ${am_cv_prog_cc_c_o+:} false; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h.  */
4100
4101 int
4102 main ()
4103 {
4104
4105   ;
4106   return 0;
4107 }
4108 _ACEOF
4109   # Make sure it works both with $CC and with simple cc.
4110   # Following AC_PROG_CC_C_O, we do the test twice because some
4111   # compilers refuse to overwrite an existing .o file with -o,
4112   # though they will create one.
4113   am_cv_prog_cc_c_o=yes
4114   for am_i in 1 2; do
4115     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4116    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4117    ac_status=$?
4118    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119    (exit $ac_status); } \
4120          && test -f conftest2.$ac_objext; then
4121       : OK
4122     else
4123       am_cv_prog_cc_c_o=no
4124       break
4125     fi
4126   done
4127   rm -f core conftest*
4128   unset am_i
4129 fi
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4131 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4132 if test "$am_cv_prog_cc_c_o" != yes; then
4133    # Losing compiler, so override with the script.
4134    # FIXME: It is wrong to rewrite CC.
4135    # But if we don't then we get into trouble of one sort or another.
4136    # A longer-term fix would be to have automake use am__CC in this case,
4137    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4138    CC="$am_aux_dir/compile $CC"
4139 fi
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146
4147 depcc="$CC"   am_compiler_list=
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4150 $as_echo_n "checking dependency style of $depcc... " >&6; }
4151 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4155   # We make a subdir and do the tests there.  Otherwise we can end up
4156   # making bogus files that we don't know about and never remove.  For
4157   # instance it was reported that on HP-UX the gcc test will end up
4158   # making a dummy file named 'D' -- because '-MD' means "put the output
4159   # in D".
4160   rm -rf conftest.dir
4161   mkdir conftest.dir
4162   # Copy depcomp to subdir because otherwise we won't find it if we're
4163   # using a relative directory.
4164   cp "$am_depcomp" conftest.dir
4165   cd conftest.dir
4166   # We will build objects and dependencies in a subdirectory because
4167   # it helps to detect inapplicable dependency modes.  For instance
4168   # both Tru64's cc and ICC support -MD to output dependencies as a
4169   # side effect of compilation, but ICC will put the dependencies in
4170   # the current directory while Tru64 will put them in the object
4171   # directory.
4172   mkdir sub
4173
4174   am_cv_CC_dependencies_compiler_type=none
4175   if test "$am_compiler_list" = ""; then
4176      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4177   fi
4178   am__universal=false
4179   case " $depcc " in #(
4180      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4181      esac
4182
4183   for depmode in $am_compiler_list; do
4184     # Setup a source with many dependencies, because some compilers
4185     # like to wrap large dependency lists on column 80 (with \), and
4186     # we should not choose a depcomp mode which is confused by this.
4187     #
4188     # We need to recreate these files for each test, as the compiler may
4189     # overwrite some of them when testing with obscure command lines.
4190     # This happens at least with the AIX C compiler.
4191     : > sub/conftest.c
4192     for i in 1 2 3 4 5 6; do
4193       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4194       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4195       # Solaris 10 /bin/sh.
4196       echo '/* dummy */' > sub/conftst$i.h
4197     done
4198     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4199
4200     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4201     # mode.  It turns out that the SunPro C++ compiler does not properly
4202     # handle '-M -o', and we need to detect this.  Also, some Intel
4203     # versions had trouble with output in subdirs.
4204     am__obj=sub/conftest.${OBJEXT-o}
4205     am__minus_obj="-o $am__obj"
4206     case $depmode in
4207     gcc)
4208       # This depmode causes a compiler race in universal mode.
4209       test "$am__universal" = false || continue
4210       ;;
4211     nosideeffect)
4212       # After this tag, mechanisms are not by side-effect, so they'll
4213       # only be used when explicitly requested.
4214       if test "x$enable_dependency_tracking" = xyes; then
4215         continue
4216       else
4217         break
4218       fi
4219       ;;
4220     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4221       # This compiler won't grok '-c -o', but also, the minuso test has
4222       # not run yet.  These depmodes are late enough in the game, and
4223       # so weak that their functioning should not be impacted.
4224       am__obj=conftest.${OBJEXT-o}
4225       am__minus_obj=
4226       ;;
4227     none) break ;;
4228     esac
4229     if depmode=$depmode \
4230        source=sub/conftest.c object=$am__obj \
4231        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4232        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4233          >/dev/null 2>conftest.err &&
4234        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4235        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4236        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4237        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4238       # icc doesn't choke on unknown options, it will just issue warnings
4239       # or remarks (even with -Werror).  So we grep stderr for any message
4240       # that says an option was ignored or not supported.
4241       # When given -MP, icc 7.0 and 7.1 complain thusly:
4242       #   icc: Command line warning: ignoring option '-M'; no argument required
4243       # The diagnosis changed in icc 8.0:
4244       #   icc: Command line remark: option '-MP' not supported
4245       if (grep 'ignoring option' conftest.err ||
4246           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4247         am_cv_CC_dependencies_compiler_type=$depmode
4248         break
4249       fi
4250     fi
4251   done
4252
4253   cd ..
4254   rm -rf conftest.dir
4255 else
4256   am_cv_CC_dependencies_compiler_type=none
4257 fi
4258
4259 fi
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4263
4264  if
4265   test "x$enable_dependency_tracking" != xno \
4266   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4267   am__fastdepCC_TRUE=
4268   am__fastdepCC_FALSE='#'
4269 else
4270   am__fastdepCC_TRUE='#'
4271   am__fastdepCC_FALSE=
4272 fi
4273
4274
4275
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4282 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4283 # On Suns, sometimes $CPP names a directory.
4284 if test -n "$CPP" && test -d "$CPP"; then
4285   CPP=
4286 fi
4287 if test -z "$CPP"; then
4288   if ${ac_cv_prog_CPP+:} false; then :
4289   $as_echo_n "(cached) " >&6
4290 else
4291       # Double quotes because CPP needs to be expanded
4292     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4293     do
4294       ac_preproc_ok=false
4295 for ac_c_preproc_warn_flag in '' yes
4296 do
4297   # Use a header file that comes with gcc, so configuring glibc
4298   # with a fresh cross-compiler works.
4299   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4300   # <limits.h> exists even on freestanding compilers.
4301   # On the NeXT, cc -E runs the code through the compiler's parser,
4302   # not just through cpp. "Syntax error" is here to catch this case.
4303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h.  */
4305 #ifdef __STDC__
4306 # include <limits.h>
4307 #else
4308 # include <assert.h>
4309 #endif
4310                      Syntax error
4311 _ACEOF
4312 if ac_fn_c_try_cpp "$LINENO"; then :
4313
4314 else
4315   # Broken: fails on valid input.
4316 continue
4317 fi
4318 rm -f conftest.err conftest.i conftest.$ac_ext
4319
4320   # OK, works on sane cases.  Now check whether nonexistent headers
4321   # can be detected and how.
4322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h.  */
4324 #include <ac_nonexistent.h>
4325 _ACEOF
4326 if ac_fn_c_try_cpp "$LINENO"; then :
4327   # Broken: success on invalid input.
4328 continue
4329 else
4330   # Passes both tests.
4331 ac_preproc_ok=:
4332 break
4333 fi
4334 rm -f conftest.err conftest.i conftest.$ac_ext
4335
4336 done
4337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4338 rm -f conftest.i conftest.err conftest.$ac_ext
4339 if $ac_preproc_ok; then :
4340   break
4341 fi
4342
4343     done
4344     ac_cv_prog_CPP=$CPP
4345
4346 fi
4347   CPP=$ac_cv_prog_CPP
4348 else
4349   ac_cv_prog_CPP=$CPP
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4352 $as_echo "$CPP" >&6; }
4353 ac_preproc_ok=false
4354 for ac_c_preproc_warn_flag in '' yes
4355 do
4356   # Use a header file that comes with gcc, so configuring glibc
4357   # with a fresh cross-compiler works.
4358   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359   # <limits.h> exists even on freestanding compilers.
4360   # On the NeXT, cc -E runs the code through the compiler's parser,
4361   # not just through cpp. "Syntax error" is here to catch this case.
4362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h.  */
4364 #ifdef __STDC__
4365 # include <limits.h>
4366 #else
4367 # include <assert.h>
4368 #endif
4369                      Syntax error
4370 _ACEOF
4371 if ac_fn_c_try_cpp "$LINENO"; then :
4372
4373 else
4374   # Broken: fails on valid input.
4375 continue
4376 fi
4377 rm -f conftest.err conftest.i conftest.$ac_ext
4378
4379   # OK, works on sane cases.  Now check whether nonexistent headers
4380   # can be detected and how.
4381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h.  */
4383 #include <ac_nonexistent.h>
4384 _ACEOF
4385 if ac_fn_c_try_cpp "$LINENO"; then :
4386   # Broken: success on invalid input.
4387 continue
4388 else
4389   # Passes both tests.
4390 ac_preproc_ok=:
4391 break
4392 fi
4393 rm -f conftest.err conftest.i conftest.$ac_ext
4394
4395 done
4396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4397 rm -f conftest.i conftest.err conftest.$ac_ext
4398 if $ac_preproc_ok; then :
4399
4400 else
4401   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4404 See \`config.log' for more details" "$LINENO" 5; }
4405 fi
4406
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
4413
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4415 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4416 if ${ac_cv_path_GREP+:} false; then :
4417   $as_echo_n "(cached) " >&6
4418 else
4419   if test -z "$GREP"; then
4420   ac_path_GREP_found=false
4421   # Loop through the user's path and test for each of PROGNAME-LIST
4422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424 do
4425   IFS=$as_save_IFS
4426   test -z "$as_dir" && as_dir=.
4427     for ac_prog in grep ggrep; do
4428     for ac_exec_ext in '' $ac_executable_extensions; do
4429       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4430       as_fn_executable_p "$ac_path_GREP" || continue
4431 # Check for GNU ac_path_GREP and select it if it is found.
4432   # Check for GNU $ac_path_GREP
4433 case `"$ac_path_GREP" --version 2>&1` in
4434 *GNU*)
4435   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4436 *)
4437   ac_count=0
4438   $as_echo_n 0123456789 >"conftest.in"
4439   while :
4440   do
4441     cat "conftest.in" "conftest.in" >"conftest.tmp"
4442     mv "conftest.tmp" "conftest.in"
4443     cp "conftest.in" "conftest.nl"
4444     $as_echo 'GREP' >> "conftest.nl"
4445     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4446     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4447     as_fn_arith $ac_count + 1 && ac_count=$as_val
4448     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4449       # Best one so far, save it but keep looking for a better one
4450       ac_cv_path_GREP="$ac_path_GREP"
4451       ac_path_GREP_max=$ac_count
4452     fi
4453     # 10*(2^10) chars as input seems more than enough
4454     test $ac_count -gt 10 && break
4455   done
4456   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457 esac
4458
4459       $ac_path_GREP_found && break 3
4460     done
4461   done
4462   done
4463 IFS=$as_save_IFS
4464   if test -z "$ac_cv_path_GREP"; then
4465     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4466   fi
4467 else
4468   ac_cv_path_GREP=$GREP
4469 fi
4470
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4473 $as_echo "$ac_cv_path_GREP" >&6; }
4474  GREP="$ac_cv_path_GREP"
4475
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4478 $as_echo_n "checking for egrep... " >&6; }
4479 if ${ac_cv_path_EGREP+:} false; then :
4480   $as_echo_n "(cached) " >&6
4481 else
4482   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4483    then ac_cv_path_EGREP="$GREP -E"
4484    else
4485      if test -z "$EGREP"; then
4486   ac_path_EGREP_found=false
4487   # Loop through the user's path and test for each of PROGNAME-LIST
4488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493     for ac_prog in egrep; do
4494     for ac_exec_ext in '' $ac_executable_extensions; do
4495       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4496       as_fn_executable_p "$ac_path_EGREP" || continue
4497 # Check for GNU ac_path_EGREP and select it if it is found.
4498   # Check for GNU $ac_path_EGREP
4499 case `"$ac_path_EGREP" --version 2>&1` in
4500 *GNU*)
4501   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4502 *)
4503   ac_count=0
4504   $as_echo_n 0123456789 >"conftest.in"
4505   while :
4506   do
4507     cat "conftest.in" "conftest.in" >"conftest.tmp"
4508     mv "conftest.tmp" "conftest.in"
4509     cp "conftest.in" "conftest.nl"
4510     $as_echo 'EGREP' >> "conftest.nl"
4511     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513     as_fn_arith $ac_count + 1 && ac_count=$as_val
4514     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4515       # Best one so far, save it but keep looking for a better one
4516       ac_cv_path_EGREP="$ac_path_EGREP"
4517       ac_path_EGREP_max=$ac_count
4518     fi
4519     # 10*(2^10) chars as input seems more than enough
4520     test $ac_count -gt 10 && break
4521   done
4522   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523 esac
4524
4525       $ac_path_EGREP_found && break 3
4526     done
4527   done
4528   done
4529 IFS=$as_save_IFS
4530   if test -z "$ac_cv_path_EGREP"; then
4531     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4532   fi
4533 else
4534   ac_cv_path_EGREP=$EGREP
4535 fi
4536
4537    fi
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4540 $as_echo "$ac_cv_path_EGREP" >&6; }
4541  EGREP="$ac_cv_path_EGREP"
4542
4543
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4545 $as_echo_n "checking for ANSI C header files... " >&6; }
4546 if ${ac_cv_header_stdc+:} false; then :
4547   $as_echo_n "(cached) " >&6
4548 else
4549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h.  */
4551 #include <stdlib.h>
4552 #include <stdarg.h>
4553 #include <string.h>
4554 #include <float.h>
4555
4556 int
4557 main ()
4558 {
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565   ac_cv_header_stdc=yes
4566 else
4567   ac_cv_header_stdc=no
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570
4571 if test $ac_cv_header_stdc = yes; then
4572   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h.  */
4575 #include <string.h>
4576
4577 _ACEOF
4578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4579   $EGREP "memchr" >/dev/null 2>&1; then :
4580
4581 else
4582   ac_cv_header_stdc=no
4583 fi
4584 rm -f conftest*
4585
4586 fi
4587
4588 if test $ac_cv_header_stdc = yes; then
4589   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h.  */
4592 #include <stdlib.h>
4593
4594 _ACEOF
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596   $EGREP "free" >/dev/null 2>&1; then :
4597
4598 else
4599   ac_cv_header_stdc=no
4600 fi
4601 rm -f conftest*
4602
4603 fi
4604
4605 if test $ac_cv_header_stdc = yes; then
4606   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4607   if test "$cross_compiling" = yes; then :
4608   :
4609 else
4610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h.  */
4612 #include <ctype.h>
4613 #include <stdlib.h>
4614 #if ((' ' & 0x0FF) == 0x020)
4615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4617 #else
4618 # define ISLOWER(c) \
4619                    (('a' <= (c) && (c) <= 'i') \
4620                      || ('j' <= (c) && (c) <= 'r') \
4621                      || ('s' <= (c) && (c) <= 'z'))
4622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4623 #endif
4624
4625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4626 int
4627 main ()
4628 {
4629   int i;
4630   for (i = 0; i < 256; i++)
4631     if (XOR (islower (i), ISLOWER (i))
4632         || toupper (i) != TOUPPER (i))
4633       return 2;
4634   return 0;
4635 }
4636 _ACEOF
4637 if ac_fn_c_try_run "$LINENO"; then :
4638
4639 else
4640   ac_cv_header_stdc=no
4641 fi
4642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4643   conftest.$ac_objext conftest.beam conftest.$ac_ext
4644 fi
4645
4646 fi
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4649 $as_echo "$ac_cv_header_stdc" >&6; }
4650 if test $ac_cv_header_stdc = yes; then
4651
4652 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4653
4654 fi
4655
4656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4657 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4658                   inttypes.h stdint.h unistd.h
4659 do :
4660   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4661 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4662 "
4663 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4664   cat >>confdefs.h <<_ACEOF
4665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4666 _ACEOF
4667
4668 fi
4669
4670 done
4671
4672
4673
4674   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4675 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4676   MINIX=yes
4677 else
4678   MINIX=
4679 fi
4680
4681
4682   if test "$MINIX" = yes; then
4683
4684 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4685
4686
4687 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4688
4689
4690 $as_echo "#define _MINIX 1" >>confdefs.h
4691
4692   fi
4693
4694
4695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4696 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4697 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702
4703 #         define __EXTENSIONS__ 1
4704           $ac_includes_default
4705 int
4706 main ()
4707 {
4708
4709   ;
4710   return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714   ac_cv_safe_to_define___extensions__=yes
4715 else
4716   ac_cv_safe_to_define___extensions__=no
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 fi
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4721 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4722   test $ac_cv_safe_to_define___extensions__ = yes &&
4723     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4724
4725   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4726
4727   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4728
4729   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4730
4731   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4732
4733
4734
4735
4736
4737 case `pwd` in
4738   *\ * | *\     *)
4739     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4740 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4741 esac
4742
4743
4744
4745 macro_version='2.4.2'
4746 macro_revision='1.3337'
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760 ltmain="$ac_aux_dir/ltmain.sh"
4761
4762 # Backslashify metacharacters that are still active within
4763 # double-quoted strings.
4764 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4765
4766 # Same as above, but do not quote variable references.
4767 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4768
4769 # Sed substitution to delay expansion of an escaped shell variable in a
4770 # double_quote_subst'ed string.
4771 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4772
4773 # Sed substitution to delay expansion of an escaped single quote.
4774 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4775
4776 # Sed substitution to avoid accidental globbing in evaled expressions
4777 no_glob_subst='s/\*/\\\*/g'
4778
4779 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4780 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4781 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4784 $as_echo_n "checking how to print strings... " >&6; }
4785 # Test print first, because it will be a builtin if present.
4786 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4787    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4788   ECHO='print -r --'
4789 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4790   ECHO='printf %s\n'
4791 else
4792   # Use this function as a fallback that always works.
4793   func_fallback_echo ()
4794   {
4795     eval 'cat <<_LTECHO_EOF
4796 $1
4797 _LTECHO_EOF'
4798   }
4799   ECHO='func_fallback_echo'
4800 fi
4801
4802 # func_echo_all arg...
4803 # Invoke $ECHO with all args, space-separated.
4804 func_echo_all ()
4805 {
4806     $ECHO ""
4807 }
4808
4809 case "$ECHO" in
4810   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4811 $as_echo "printf" >&6; } ;;
4812   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4813 $as_echo "print -r" >&6; } ;;
4814   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4815 $as_echo "cat" >&6; } ;;
4816 esac
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4832 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4833 if ${ac_cv_path_SED+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4837      for ac_i in 1 2 3 4 5 6 7; do
4838        ac_script="$ac_script$as_nl$ac_script"
4839      done
4840      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4841      { ac_script=; unset ac_script;}
4842      if test -z "$SED"; then
4843   ac_path_SED_found=false
4844   # Loop through the user's path and test for each of PROGNAME-LIST
4845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848   IFS=$as_save_IFS
4849   test -z "$as_dir" && as_dir=.
4850     for ac_prog in sed gsed; do
4851     for ac_exec_ext in '' $ac_executable_extensions; do
4852       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4853       as_fn_executable_p "$ac_path_SED" || continue
4854 # Check for GNU ac_path_SED and select it if it is found.
4855   # Check for GNU $ac_path_SED
4856 case `"$ac_path_SED" --version 2>&1` in
4857 *GNU*)
4858   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4859 *)
4860   ac_count=0
4861   $as_echo_n 0123456789 >"conftest.in"
4862   while :
4863   do
4864     cat "conftest.in" "conftest.in" >"conftest.tmp"
4865     mv "conftest.tmp" "conftest.in"
4866     cp "conftest.in" "conftest.nl"
4867     $as_echo '' >> "conftest.nl"
4868     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870     as_fn_arith $ac_count + 1 && ac_count=$as_val
4871     if test $ac_count -gt ${ac_path_SED_max-0}; then
4872       # Best one so far, save it but keep looking for a better one
4873       ac_cv_path_SED="$ac_path_SED"
4874       ac_path_SED_max=$ac_count
4875     fi
4876     # 10*(2^10) chars as input seems more than enough
4877     test $ac_count -gt 10 && break
4878   done
4879   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880 esac
4881
4882       $ac_path_SED_found && break 3
4883     done
4884   done
4885   done
4886 IFS=$as_save_IFS
4887   if test -z "$ac_cv_path_SED"; then
4888     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4889   fi
4890 else
4891   ac_cv_path_SED=$SED
4892 fi
4893
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4896 $as_echo "$ac_cv_path_SED" >&6; }
4897  SED="$ac_cv_path_SED"
4898   rm -f conftest.sed
4899
4900 test -z "$SED" && SED=sed
4901 Xsed="$SED -e 1s/^X//"
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4914 $as_echo_n "checking for fgrep... " >&6; }
4915 if ${ac_cv_path_FGREP+:} false; then :
4916   $as_echo_n "(cached) " >&6
4917 else
4918   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4919    then ac_cv_path_FGREP="$GREP -F"
4920    else
4921      if test -z "$FGREP"; then
4922   ac_path_FGREP_found=false
4923   # Loop through the user's path and test for each of PROGNAME-LIST
4924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4926 do
4927   IFS=$as_save_IFS
4928   test -z "$as_dir" && as_dir=.
4929     for ac_prog in fgrep; do
4930     for ac_exec_ext in '' $ac_executable_extensions; do
4931       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4932       as_fn_executable_p "$ac_path_FGREP" || continue
4933 # Check for GNU ac_path_FGREP and select it if it is found.
4934   # Check for GNU $ac_path_FGREP
4935 case `"$ac_path_FGREP" --version 2>&1` in
4936 *GNU*)
4937   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4938 *)
4939   ac_count=0
4940   $as_echo_n 0123456789 >"conftest.in"
4941   while :
4942   do
4943     cat "conftest.in" "conftest.in" >"conftest.tmp"
4944     mv "conftest.tmp" "conftest.in"
4945     cp "conftest.in" "conftest.nl"
4946     $as_echo 'FGREP' >> "conftest.nl"
4947     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4948     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4949     as_fn_arith $ac_count + 1 && ac_count=$as_val
4950     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4951       # Best one so far, save it but keep looking for a better one
4952       ac_cv_path_FGREP="$ac_path_FGREP"
4953       ac_path_FGREP_max=$ac_count
4954     fi
4955     # 10*(2^10) chars as input seems more than enough
4956     test $ac_count -gt 10 && break
4957   done
4958   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4959 esac
4960
4961       $ac_path_FGREP_found && break 3
4962     done
4963   done
4964   done
4965 IFS=$as_save_IFS
4966   if test -z "$ac_cv_path_FGREP"; then
4967     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4968   fi
4969 else
4970   ac_cv_path_FGREP=$FGREP
4971 fi
4972
4973    fi
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4976 $as_echo "$ac_cv_path_FGREP" >&6; }
4977  FGREP="$ac_cv_path_FGREP"
4978
4979
4980 test -z "$GREP" && GREP=grep
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000 # Check whether --with-gnu-ld was given.
5001 if test "${with_gnu_ld+set}" = set; then :
5002   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5003 else
5004   with_gnu_ld=no
5005 fi
5006
5007 ac_prog=ld
5008 if test "$GCC" = yes; then
5009   # Check if gcc -print-prog-name=ld gives a path.
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5011 $as_echo_n "checking for ld used by $CC... " >&6; }
5012   case $host in
5013   *-*-mingw*)
5014     # gcc leaves a trailing carriage return which upsets mingw
5015     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5016   *)
5017     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5018   esac
5019   case $ac_prog in
5020     # Accept absolute paths.
5021     [\\/]* | ?:[\\/]*)
5022       re_direlt='/[^/][^/]*/\.\./'
5023       # Canonicalize the pathname of ld
5024       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5025       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5026         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5027       done
5028       test -z "$LD" && LD="$ac_prog"
5029       ;;
5030   "")
5031     # If it fails, then pretend we aren't using GCC.
5032     ac_prog=ld
5033     ;;
5034   *)
5035     # If it is relative, then search for the first ld in PATH.
5036     with_gnu_ld=unknown
5037     ;;
5038   esac
5039 elif test "$with_gnu_ld" = yes; then
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5041 $as_echo_n "checking for GNU ld... " >&6; }
5042 else
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5044 $as_echo_n "checking for non-GNU ld... " >&6; }
5045 fi
5046 if ${lt_cv_path_LD+:} false; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   if test -z "$LD"; then
5050   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5051   for ac_dir in $PATH; do
5052     IFS="$lt_save_ifs"
5053     test -z "$ac_dir" && ac_dir=.
5054     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5055       lt_cv_path_LD="$ac_dir/$ac_prog"
5056       # Check to see if the program is GNU ld.  I'd rather use --version,
5057       # but apparently some variants of GNU ld only accept -v.
5058       # Break only if it was the GNU/non-GNU ld that we prefer.
5059       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5060       *GNU* | *'with BFD'*)
5061         test "$with_gnu_ld" != no && break
5062         ;;
5063       *)
5064         test "$with_gnu_ld" != yes && break
5065         ;;
5066       esac
5067     fi
5068   done
5069   IFS="$lt_save_ifs"
5070 else
5071   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5072 fi
5073 fi
5074
5075 LD="$lt_cv_path_LD"
5076 if test -n "$LD"; then
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5078 $as_echo "$LD" >&6; }
5079 else
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5085 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5086 if ${lt_cv_prog_gnu_ld+:} false; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5090 case `$LD -v 2>&1 </dev/null` in
5091 *GNU* | *'with BFD'*)
5092   lt_cv_prog_gnu_ld=yes
5093   ;;
5094 *)
5095   lt_cv_prog_gnu_ld=no
5096   ;;
5097 esac
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5100 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5101 with_gnu_ld=$lt_cv_prog_gnu_ld
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5112 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5113 if ${lt_cv_path_NM+:} false; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   if test -n "$NM"; then
5117   # Let the user override the test.
5118   lt_cv_path_NM="$NM"
5119 else
5120   lt_nm_to_check="${ac_tool_prefix}nm"
5121   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5122     lt_nm_to_check="$lt_nm_to_check nm"
5123   fi
5124   for lt_tmp_nm in $lt_nm_to_check; do
5125     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5126     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5127       IFS="$lt_save_ifs"
5128       test -z "$ac_dir" && ac_dir=.
5129       tmp_nm="$ac_dir/$lt_tmp_nm"
5130       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5131         # Check to see if the nm accepts a BSD-compat flag.
5132         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5133         #   nm: unknown option "B" ignored
5134         # Tru64's nm complains that /dev/null is an invalid object file
5135         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5136         */dev/null* | *'Invalid file or object type'*)
5137           lt_cv_path_NM="$tmp_nm -B"
5138           break
5139           ;;
5140         *)
5141           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5142           */dev/null*)
5143             lt_cv_path_NM="$tmp_nm -p"
5144             break
5145             ;;
5146           *)
5147             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5148             continue # so that we can try to find one that supports BSD flags
5149             ;;
5150           esac
5151           ;;
5152         esac
5153       fi
5154     done
5155     IFS="$lt_save_ifs"
5156   done
5157   : ${lt_cv_path_NM=no}
5158 fi
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5161 $as_echo "$lt_cv_path_NM" >&6; }
5162 if test "$lt_cv_path_NM" != "no"; then
5163   NM="$lt_cv_path_NM"
5164 else
5165   # Didn't find any BSD compatible name lister, look for dumpbin.
5166   if test -n "$DUMPBIN"; then :
5167     # Let the user override the test.
5168   else
5169     if test -n "$ac_tool_prefix"; then
5170   for ac_prog in dumpbin "link -dump"
5171   do
5172     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_DUMPBIN+:} false; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179   if test -n "$DUMPBIN"; then
5180   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185   IFS=$as_save_IFS
5186   test -z "$as_dir" && as_dir=.
5187     for ac_exec_ext in '' $ac_executable_extensions; do
5188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191     break 2
5192   fi
5193 done
5194   done
5195 IFS=$as_save_IFS
5196
5197 fi
5198 fi
5199 DUMPBIN=$ac_cv_prog_DUMPBIN
5200 if test -n "$DUMPBIN"; then
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5202 $as_echo "$DUMPBIN" >&6; }
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208
5209     test -n "$DUMPBIN" && break
5210   done
5211 fi
5212 if test -z "$DUMPBIN"; then
5213   ac_ct_DUMPBIN=$DUMPBIN
5214   for ac_prog in dumpbin "link -dump"
5215 do
5216   # Extract the first word of "$ac_prog", so it can be a program name with args.
5217 set dummy $ac_prog; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   if test -n "$ac_ct_DUMPBIN"; then
5224   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231     for ac_exec_ext in '' $ac_executable_extensions; do
5232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235     break 2
5236   fi
5237 done
5238   done
5239 IFS=$as_save_IFS
5240
5241 fi
5242 fi
5243 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5244 if test -n "$ac_ct_DUMPBIN"; then
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5246 $as_echo "$ac_ct_DUMPBIN" >&6; }
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252
5253   test -n "$ac_ct_DUMPBIN" && break
5254 done
5255
5256   if test "x$ac_ct_DUMPBIN" = x; then
5257     DUMPBIN=":"
5258   else
5259     case $cross_compiling:$ac_tool_warned in
5260 yes:)
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5263 ac_tool_warned=yes ;;
5264 esac
5265     DUMPBIN=$ac_ct_DUMPBIN
5266   fi
5267 fi
5268
5269     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5270     *COFF*)
5271       DUMPBIN="$DUMPBIN -symbols"
5272       ;;
5273     *)
5274       DUMPBIN=:
5275       ;;
5276     esac
5277   fi
5278
5279   if test "$DUMPBIN" != ":"; then
5280     NM="$DUMPBIN"
5281   fi
5282 fi
5283 test -z "$NM" && NM=nm
5284
5285
5286
5287
5288
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5291 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5292 if ${lt_cv_nm_interface+:} false; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295   lt_cv_nm_interface="BSD nm"
5296   echo "int some_variable = 0;" > conftest.$ac_ext
5297   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5298   (eval "$ac_compile" 2>conftest.err)
5299   cat conftest.err >&5
5300   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5301   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5302   cat conftest.err >&5
5303   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5304   cat conftest.out >&5
5305   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5306     lt_cv_nm_interface="MS dumpbin"
5307   fi
5308   rm -f conftest*
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5311 $as_echo "$lt_cv_nm_interface" >&6; }
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5314 $as_echo_n "checking whether ln -s works... " >&6; }
5315 LN_S=$as_ln_s
5316 if test "$LN_S" = "ln -s"; then
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5318 $as_echo "yes" >&6; }
5319 else
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5321 $as_echo "no, using $LN_S" >&6; }
5322 fi
5323
5324 # find the maximum length of command line arguments
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5326 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5327 if ${lt_cv_sys_max_cmd_len+:} false; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330     i=0
5331   teststring="ABCD"
5332
5333   case $build_os in
5334   msdosdjgpp*)
5335     # On DJGPP, this test can blow up pretty badly due to problems in libc
5336     # (any single argument exceeding 2000 bytes causes a buffer overrun
5337     # during glob expansion).  Even if it were fixed, the result of this
5338     # check would be larger than it should be.
5339     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5340     ;;
5341
5342   gnu*)
5343     # Under GNU Hurd, this test is not required because there is
5344     # no limit to the length of command line arguments.
5345     # Libtool will interpret -1 as no limit whatsoever
5346     lt_cv_sys_max_cmd_len=-1;
5347     ;;
5348
5349   cygwin* | mingw* | cegcc*)
5350     # On Win9x/ME, this test blows up -- it succeeds, but takes
5351     # about 5 minutes as the teststring grows exponentially.
5352     # Worse, since 9x/ME are not pre-emptively multitasking,
5353     # you end up with a "frozen" computer, even though with patience
5354     # the test eventually succeeds (with a max line length of 256k).
5355     # Instead, let's just punt: use the minimum linelength reported by
5356     # all of the supported platforms: 8192 (on NT/2K/XP).
5357     lt_cv_sys_max_cmd_len=8192;
5358     ;;
5359
5360   mint*)
5361     # On MiNT this can take a long time and run out of memory.
5362     lt_cv_sys_max_cmd_len=8192;
5363     ;;
5364
5365   amigaos*)
5366     # On AmigaOS with pdksh, this test takes hours, literally.
5367     # So we just punt and use a minimum line length of 8192.
5368     lt_cv_sys_max_cmd_len=8192;
5369     ;;
5370
5371   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5372     # This has been around since 386BSD, at least.  Likely further.
5373     if test -x /sbin/sysctl; then
5374       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5375     elif test -x /usr/sbin/sysctl; then
5376       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5377     else
5378       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5379     fi
5380     # And add a safety zone
5381     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5382     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5383     ;;
5384
5385   interix*)
5386     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5387     lt_cv_sys_max_cmd_len=196608
5388     ;;
5389
5390   os2*)
5391     # The test takes a long time on OS/2.
5392     lt_cv_sys_max_cmd_len=8192
5393     ;;
5394
5395   osf*)
5396     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5397     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5398     # nice to cause kernel panics so lets avoid the loop below.
5399     # First set a reasonable default.
5400     lt_cv_sys_max_cmd_len=16384
5401     #
5402     if test -x /sbin/sysconfig; then
5403       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5404         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5405       esac
5406     fi
5407     ;;
5408   sco3.2v5*)
5409     lt_cv_sys_max_cmd_len=102400
5410     ;;
5411   sysv5* | sco5v6* | sysv4.2uw2*)
5412     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5413     if test -n "$kargmax"; then
5414       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5415     else
5416       lt_cv_sys_max_cmd_len=32768
5417     fi
5418     ;;
5419   *)
5420     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5421     if test -n "$lt_cv_sys_max_cmd_len"; then
5422       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5423       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5424     else
5425       # Make teststring a little bigger before we do anything with it.
5426       # a 1K string should be a reasonable start.
5427       for i in 1 2 3 4 5 6 7 8 ; do
5428         teststring=$teststring$teststring
5429       done
5430       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5431       # If test is not a shell built-in, we'll probably end up computing a
5432       # maximum length that is only half of the actual maximum length, but
5433       # we can't tell.
5434       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5435                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5436               test $i != 17 # 1/2 MB should be enough
5437       do
5438         i=`expr $i + 1`
5439         teststring=$teststring$teststring
5440       done
5441       # Only check the string length outside the loop.
5442       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5443       teststring=
5444       # Add a significant safety factor because C++ compilers can tack on
5445       # massive amounts of additional arguments before passing them to the
5446       # linker.  It appears as though 1/2 is a usable value.
5447       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5448     fi
5449     ;;
5450   esac
5451
5452 fi
5453
5454 if test -n $lt_cv_sys_max_cmd_len ; then
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5456 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5457 else
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5459 $as_echo "none" >&6; }
5460 fi
5461 max_cmd_len=$lt_cv_sys_max_cmd_len
5462
5463
5464
5465
5466
5467
5468 : ${CP="cp -f"}
5469 : ${MV="mv -f"}
5470 : ${RM="rm -f"}
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5473 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5474 # Try some XSI features
5475 xsi_shell=no
5476 ( _lt_dummy="a/b/c"
5477   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5478       = c,a/b,b/c, \
5479     && eval 'test $(( 1 + 1 )) -eq 2 \
5480     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5481   && xsi_shell=yes
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5483 $as_echo "$xsi_shell" >&6; }
5484
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5487 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5488 lt_shell_append=no
5489 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5490     >/dev/null 2>&1 \
5491   && lt_shell_append=yes
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5493 $as_echo "$lt_shell_append" >&6; }
5494
5495
5496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5497   lt_unset=unset
5498 else
5499   lt_unset=false
5500 fi
5501
5502
5503
5504
5505
5506 # test EBCDIC or ASCII
5507 case `echo X|tr X '\101'` in
5508  A) # ASCII based system
5509     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5510   lt_SP2NL='tr \040 \012'
5511   lt_NL2SP='tr \015\012 \040\040'
5512   ;;
5513  *) # EBCDIC based system
5514   lt_SP2NL='tr \100 \n'
5515   lt_NL2SP='tr \r\n \100\100'
5516   ;;
5517 esac
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5528 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5529 if ${lt_cv_to_host_file_cmd+:} false; then :
5530   $as_echo_n "(cached) " >&6
5531 else
5532   case $host in
5533   *-*-mingw* )
5534     case $build in
5535       *-*-mingw* ) # actually msys
5536         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5537         ;;
5538       *-*-cygwin* )
5539         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5540         ;;
5541       * ) # otherwise, assume *nix
5542         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5543         ;;
5544     esac
5545     ;;
5546   *-*-cygwin* )
5547     case $build in
5548       *-*-mingw* ) # actually msys
5549         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5550         ;;
5551       *-*-cygwin* )
5552         lt_cv_to_host_file_cmd=func_convert_file_noop
5553         ;;
5554       * ) # otherwise, assume *nix
5555         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5556         ;;
5557     esac
5558     ;;
5559   * ) # unhandled hosts (and "normal" native builds)
5560     lt_cv_to_host_file_cmd=func_convert_file_noop
5561     ;;
5562 esac
5563
5564 fi
5565
5566 to_host_file_cmd=$lt_cv_to_host_file_cmd
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5568 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5569
5570
5571
5572
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5575 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5576 if ${lt_cv_to_tool_file_cmd+:} false; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579   #assume ordinary cross tools, or native build.
5580 lt_cv_to_tool_file_cmd=func_convert_file_noop
5581 case $host in
5582   *-*-mingw* )
5583     case $build in
5584       *-*-mingw* ) # actually msys
5585         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5586         ;;
5587     esac
5588     ;;
5589 esac
5590
5591 fi
5592
5593 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5595 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5596
5597
5598
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5602 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5603 if ${lt_cv_ld_reload_flag+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   lt_cv_ld_reload_flag='-r'
5607 fi
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5609 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5610 reload_flag=$lt_cv_ld_reload_flag
5611 case $reload_flag in
5612 "" | " "*) ;;
5613 *) reload_flag=" $reload_flag" ;;
5614 esac
5615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5616 case $host_os in
5617   cygwin* | mingw* | pw32* | cegcc*)
5618     if test "$GCC" != yes; then
5619       reload_cmds=false
5620     fi
5621     ;;
5622   darwin*)
5623     if test "$GCC" = yes; then
5624       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5625     else
5626       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5627     fi
5628     ;;
5629 esac
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 if test -n "$ac_tool_prefix"; then
5640   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5641 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_OBJDUMP+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   if test -n "$OBJDUMP"; then
5648   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653   IFS=$as_save_IFS
5654   test -z "$as_dir" && as_dir=.
5655     for ac_exec_ext in '' $ac_executable_extensions; do
5656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659     break 2
5660   fi
5661 done
5662   done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 OBJDUMP=$ac_cv_prog_OBJDUMP
5668 if test -n "$OBJDUMP"; then
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5670 $as_echo "$OBJDUMP" >&6; }
5671 else
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676
5677 fi
5678 if test -z "$ac_cv_prog_OBJDUMP"; then
5679   ac_ct_OBJDUMP=$OBJDUMP
5680   # Extract the first word of "objdump", so it can be a program name with args.
5681 set dummy objdump; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   if test -n "$ac_ct_OBJDUMP"; then
5688   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695     for ac_exec_ext in '' $ac_executable_extensions; do
5696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699     break 2
5700   fi
5701 done
5702   done
5703 IFS=$as_save_IFS
5704
5705 fi
5706 fi
5707 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5708 if test -n "$ac_ct_OBJDUMP"; then
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5710 $as_echo "$ac_ct_OBJDUMP" >&6; }
5711 else
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5714 fi
5715
5716   if test "x$ac_ct_OBJDUMP" = x; then
5717     OBJDUMP="false"
5718   else
5719     case $cross_compiling:$ac_tool_warned in
5720 yes:)
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723 ac_tool_warned=yes ;;
5724 esac
5725     OBJDUMP=$ac_ct_OBJDUMP
5726   fi
5727 else
5728   OBJDUMP="$ac_cv_prog_OBJDUMP"
5729 fi
5730
5731 test -z "$OBJDUMP" && OBJDUMP=objdump
5732
5733
5734
5735
5736
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5739 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5740 if ${lt_cv_deplibs_check_method+:} false; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   lt_cv_file_magic_cmd='$MAGIC_CMD'
5744 lt_cv_file_magic_test_file=
5745 lt_cv_deplibs_check_method='unknown'
5746 # Need to set the preceding variable on all platforms that support
5747 # interlibrary dependencies.
5748 # 'none' -- dependencies not supported.
5749 # `unknown' -- same as none, but documents that we really don't know.
5750 # 'pass_all' -- all dependencies passed with no checks.
5751 # 'test_compile' -- check by making test program.
5752 # 'file_magic [[regex]]' -- check by looking for files in library path
5753 # which responds to the $file_magic_cmd with a given extended regex.
5754 # If you have `file' or equivalent on your system and you're not sure
5755 # whether `pass_all' will *always* work, you probably want this one.
5756
5757 case $host_os in
5758 aix[4-9]*)
5759   lt_cv_deplibs_check_method=pass_all
5760   ;;
5761
5762 beos*)
5763   lt_cv_deplibs_check_method=pass_all
5764   ;;
5765
5766 bsdi[45]*)
5767   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5768   lt_cv_file_magic_cmd='/usr/bin/file -L'
5769   lt_cv_file_magic_test_file=/shlib/libc.so
5770   ;;
5771
5772 cygwin*)
5773   # func_win32_libid is a shell function defined in ltmain.sh
5774   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5775   lt_cv_file_magic_cmd='func_win32_libid'
5776   ;;
5777
5778 mingw* | pw32*)
5779   # Base MSYS/MinGW do not provide the 'file' command needed by
5780   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5781   # unless we find 'file', for example because we are cross-compiling.
5782   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5783   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5784     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5785     lt_cv_file_magic_cmd='func_win32_libid'
5786   else
5787     # Keep this pattern in sync with the one in func_win32_libid.
5788     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5789     lt_cv_file_magic_cmd='$OBJDUMP -f'
5790   fi
5791   ;;
5792
5793 cegcc*)
5794   # use the weaker test based on 'objdump'. See mingw*.
5795   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5796   lt_cv_file_magic_cmd='$OBJDUMP -f'
5797   ;;
5798
5799 darwin* | rhapsody*)
5800   lt_cv_deplibs_check_method=pass_all
5801   ;;
5802
5803 freebsd* | dragonfly*)
5804   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5805     case $host_cpu in
5806     i*86 )
5807       # Not sure whether the presence of OpenBSD here was a mistake.
5808       # Let's accept both of them until this is cleared up.
5809       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5810       lt_cv_file_magic_cmd=/usr/bin/file
5811       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5812       ;;
5813     esac
5814   else
5815     lt_cv_deplibs_check_method=pass_all
5816   fi
5817   ;;
5818
5819 gnu*)
5820   lt_cv_deplibs_check_method=pass_all
5821   ;;
5822
5823 haiku*)
5824   lt_cv_deplibs_check_method=pass_all
5825   ;;
5826
5827 hpux10.20* | hpux11*)
5828   lt_cv_file_magic_cmd=/usr/bin/file
5829   case $host_cpu in
5830   ia64*)
5831     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5832     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5833     ;;
5834   hppa*64*)
5835     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]'
5836     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5837     ;;
5838   *)
5839     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5840     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5841     ;;
5842   esac
5843   ;;
5844
5845 interix[3-9]*)
5846   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5847   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5848   ;;
5849
5850 irix5* | irix6* | nonstopux*)
5851   case $LD in
5852   *-32|*"-32 ") libmagic=32-bit;;
5853   *-n32|*"-n32 ") libmagic=N32;;
5854   *-64|*"-64 ") libmagic=64-bit;;
5855   *) libmagic=never-match;;
5856   esac
5857   lt_cv_deplibs_check_method=pass_all
5858   ;;
5859
5860 # This must be glibc/ELF.
5861 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5862   lt_cv_deplibs_check_method=pass_all
5863   ;;
5864
5865 netbsd* | netbsdelf*-gnu)
5866   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5867     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5868   else
5869     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5870   fi
5871   ;;
5872
5873 newos6*)
5874   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5875   lt_cv_file_magic_cmd=/usr/bin/file
5876   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5877   ;;
5878
5879 *nto* | *qnx*)
5880   lt_cv_deplibs_check_method=pass_all
5881   ;;
5882
5883 openbsd*)
5884   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5885     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5886   else
5887     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5888   fi
5889   ;;
5890
5891 osf3* | osf4* | osf5*)
5892   lt_cv_deplibs_check_method=pass_all
5893   ;;
5894
5895 rdos*)
5896   lt_cv_deplibs_check_method=pass_all
5897   ;;
5898
5899 solaris*)
5900   lt_cv_deplibs_check_method=pass_all
5901   ;;
5902
5903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5904   lt_cv_deplibs_check_method=pass_all
5905   ;;
5906
5907 sysv4 | sysv4.3*)
5908   case $host_vendor in
5909   motorola)
5910     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]'
5911     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5912     ;;
5913   ncr)
5914     lt_cv_deplibs_check_method=pass_all
5915     ;;
5916   sequent)
5917     lt_cv_file_magic_cmd='/bin/file'
5918     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5919     ;;
5920   sni)
5921     lt_cv_file_magic_cmd='/bin/file'
5922     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5923     lt_cv_file_magic_test_file=/lib/libc.so
5924     ;;
5925   siemens)
5926     lt_cv_deplibs_check_method=pass_all
5927     ;;
5928   pc)
5929     lt_cv_deplibs_check_method=pass_all
5930     ;;
5931   esac
5932   ;;
5933
5934 tpf*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937 esac
5938
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5942
5943 file_magic_glob=
5944 want_nocaseglob=no
5945 if test "$build" = "$host"; then
5946   case $host_os in
5947   mingw* | pw32*)
5948     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5949       want_nocaseglob=yes
5950     else
5951       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5952     fi
5953     ;;
5954   esac
5955 fi
5956
5957 file_magic_cmd=$lt_cv_file_magic_cmd
5958 deplibs_check_method=$lt_cv_deplibs_check_method
5959 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982 if test -n "$ac_tool_prefix"; then
5983   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_DLLTOOL+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   if test -n "$DLLTOOL"; then
5991   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998     for ac_exec_ext in '' $ac_executable_extensions; do
5999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005   done
6006 IFS=$as_save_IFS
6007
6008 fi
6009 fi
6010 DLLTOOL=$ac_cv_prog_DLLTOOL
6011 if test -n "$DLLTOOL"; then
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6013 $as_echo "$DLLTOOL" >&6; }
6014 else
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018
6019
6020 fi
6021 if test -z "$ac_cv_prog_DLLTOOL"; then
6022   ac_ct_DLLTOOL=$DLLTOOL
6023   # Extract the first word of "dlltool", so it can be a program name with args.
6024 set dummy dlltool; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   if test -n "$ac_ct_DLLTOOL"; then
6031   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6051 if test -n "$ac_ct_DLLTOOL"; then
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6053 $as_echo "$ac_ct_DLLTOOL" >&6; }
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059   if test "x$ac_ct_DLLTOOL" = x; then
6060     DLLTOOL="false"
6061   else
6062     case $cross_compiling:$ac_tool_warned in
6063 yes:)
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066 ac_tool_warned=yes ;;
6067 esac
6068     DLLTOOL=$ac_ct_DLLTOOL
6069   fi
6070 else
6071   DLLTOOL="$ac_cv_prog_DLLTOOL"
6072 fi
6073
6074 test -z "$DLLTOOL" && DLLTOOL=dlltool
6075
6076
6077
6078
6079
6080
6081
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6083 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6084 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   lt_cv_sharedlib_from_linklib_cmd='unknown'
6088
6089 case $host_os in
6090 cygwin* | mingw* | pw32* | cegcc*)
6091   # two different shell functions defined in ltmain.sh
6092   # decide which to use based on capabilities of $DLLTOOL
6093   case `$DLLTOOL --help 2>&1` in
6094   *--identify-strict*)
6095     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6096     ;;
6097   *)
6098     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6099     ;;
6100   esac
6101   ;;
6102 *)
6103   # fallback: assume linklib IS sharedlib
6104   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6105   ;;
6106 esac
6107
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6110 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6111 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6112 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6113
6114
6115
6116
6117
6118
6119
6120 if test -n "$ac_tool_prefix"; then
6121   for ac_prog in ar
6122   do
6123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_AR+:} false; then :
6128   $as_echo_n "(cached) " >&6
6129 else
6130   if test -n "$AR"; then
6131   ac_cv_prog_AR="$AR" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136   IFS=$as_save_IFS
6137   test -z "$as_dir" && as_dir=.
6138     for ac_exec_ext in '' $ac_executable_extensions; do
6139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142     break 2
6143   fi
6144 done
6145   done
6146 IFS=$as_save_IFS
6147
6148 fi
6149 fi
6150 AR=$ac_cv_prog_AR
6151 if test -n "$AR"; then
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6153 $as_echo "$AR" >&6; }
6154 else
6155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6157 fi
6158
6159
6160     test -n "$AR" && break
6161   done
6162 fi
6163 if test -z "$AR"; then
6164   ac_ct_AR=$AR
6165   for ac_prog in ar
6166 do
6167   # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6172   $as_echo_n "(cached) " >&6
6173 else
6174   if test -n "$ac_ct_AR"; then
6175   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182     for ac_exec_ext in '' $ac_executable_extensions; do
6183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184     ac_cv_prog_ac_ct_AR="$ac_prog"
6185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189   done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6195 if test -n "$ac_ct_AR"; then
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6197 $as_echo "$ac_ct_AR" >&6; }
6198 else
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203
6204   test -n "$ac_ct_AR" && break
6205 done
6206
6207   if test "x$ac_ct_AR" = x; then
6208     AR="false"
6209   else
6210     case $cross_compiling:$ac_tool_warned in
6211 yes:)
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6215 esac
6216     AR=$ac_ct_AR
6217   fi
6218 fi
6219
6220 : ${AR=ar}
6221 : ${AR_FLAGS=cru}
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6234 $as_echo_n "checking for archiver @FILE support... " >&6; }
6235 if ${lt_cv_ar_at_file+:} false; then :
6236   $as_echo_n "(cached) " >&6
6237 else
6238   lt_cv_ar_at_file=no
6239    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h.  */
6241
6242 int
6243 main ()
6244 {
6245
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251   echo conftest.$ac_objext > conftest.lst
6252       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6253       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6254   (eval $lt_ar_try) 2>&5
6255   ac_status=$?
6256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6257   test $ac_status = 0; }
6258       if test "$ac_status" -eq 0; then
6259         # Ensure the archiver fails upon bogus file names.
6260         rm -f conftest.$ac_objext libconftest.a
6261         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6262   (eval $lt_ar_try) 2>&5
6263   ac_status=$?
6264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265   test $ac_status = 0; }
6266         if test "$ac_status" -ne 0; then
6267           lt_cv_ar_at_file=@
6268         fi
6269       fi
6270       rm -f conftest.* libconftest.a
6271
6272 fi
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6277 $as_echo "$lt_cv_ar_at_file" >&6; }
6278
6279 if test "x$lt_cv_ar_at_file" = xno; then
6280   archiver_list_spec=
6281 else
6282   archiver_list_spec=$lt_cv_ar_at_file
6283 fi
6284
6285
6286
6287
6288
6289
6290
6291 if test -n "$ac_tool_prefix"; then
6292   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6293 set dummy ${ac_tool_prefix}strip; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_STRIP+:} false; then :
6297   $as_echo_n "(cached) " >&6
6298 else
6299   if test -n "$STRIP"; then
6300   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305   IFS=$as_save_IFS
6306   test -z "$as_dir" && as_dir=.
6307     for ac_exec_ext in '' $ac_executable_extensions; do
6308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311     break 2
6312   fi
6313 done
6314   done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 STRIP=$ac_cv_prog_STRIP
6320 if test -n "$STRIP"; then
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6322 $as_echo "$STRIP" >&6; }
6323 else
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327
6328
6329 fi
6330 if test -z "$ac_cv_prog_STRIP"; then
6331   ac_ct_STRIP=$STRIP
6332   # Extract the first word of "strip", so it can be a program name with args.
6333 set dummy strip; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6337   $as_echo_n "(cached) " >&6
6338 else
6339   if test -n "$ac_ct_STRIP"; then
6340   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347     for ac_exec_ext in '' $ac_executable_extensions; do
6348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349     ac_cv_prog_ac_ct_STRIP="strip"
6350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354   done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360 if test -n "$ac_ct_STRIP"; then
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6362 $as_echo "$ac_ct_STRIP" >&6; }
6363 else
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368   if test "x$ac_ct_STRIP" = x; then
6369     STRIP=":"
6370   else
6371     case $cross_compiling:$ac_tool_warned in
6372 yes:)
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6376 esac
6377     STRIP=$ac_ct_STRIP
6378   fi
6379 else
6380   STRIP="$ac_cv_prog_STRIP"
6381 fi
6382
6383 test -z "$STRIP" && STRIP=:
6384
6385
6386
6387
6388
6389
6390 if test -n "$ac_tool_prefix"; then
6391   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_RANLIB+:} false; then :
6396   $as_echo_n "(cached) " >&6
6397 else
6398   if test -n "$RANLIB"; then
6399   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406     for ac_exec_ext in '' $ac_executable_extensions; do
6407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413   done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 RANLIB=$ac_cv_prog_RANLIB
6419 if test -n "$RANLIB"; then
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6421 $as_echo "$RANLIB" >&6; }
6422 else
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427
6428 fi
6429 if test -z "$ac_cv_prog_RANLIB"; then
6430   ac_ct_RANLIB=$RANLIB
6431   # Extract the first word of "ranlib", so it can be a program name with args.
6432 set dummy ranlib; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6436   $as_echo_n "(cached) " >&6
6437 else
6438   if test -n "$ac_ct_RANLIB"; then
6439   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446     for ac_exec_ext in '' $ac_executable_extensions; do
6447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448     ac_cv_prog_ac_ct_RANLIB="ranlib"
6449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453   done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459 if test -n "$ac_ct_RANLIB"; then
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6461 $as_echo "$ac_ct_RANLIB" >&6; }
6462 else
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467   if test "x$ac_ct_RANLIB" = x; then
6468     RANLIB=":"
6469   else
6470     case $cross_compiling:$ac_tool_warned in
6471 yes:)
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474 ac_tool_warned=yes ;;
6475 esac
6476     RANLIB=$ac_ct_RANLIB
6477   fi
6478 else
6479   RANLIB="$ac_cv_prog_RANLIB"
6480 fi
6481
6482 test -z "$RANLIB" && RANLIB=:
6483
6484
6485
6486
6487
6488
6489 # Determine commands to create old-style static archives.
6490 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6491 old_postinstall_cmds='chmod 644 $oldlib'
6492 old_postuninstall_cmds=
6493
6494 if test -n "$RANLIB"; then
6495   case $host_os in
6496   openbsd*)
6497     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6498     ;;
6499   *)
6500     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6501     ;;
6502   esac
6503   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6504 fi
6505
6506 case $host_os in
6507   darwin*)
6508     lock_old_archive_extraction=yes ;;
6509   *)
6510     lock_old_archive_extraction=no ;;
6511 esac
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 # If no C compiler was specified, use CC.
6552 LTCC=${LTCC-"$CC"}
6553
6554 # If no C compiler flags were specified, use CFLAGS.
6555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6556
6557 # Allow CC to be a program name with arguments.
6558 compiler=$CC
6559
6560
6561 # Check for command to grab the raw symbol name followed by C symbol from nm.
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6563 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6564 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6565   $as_echo_n "(cached) " >&6
6566 else
6567
6568 # These are sane defaults that work on at least a few old systems.
6569 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6570
6571 # Character class describing NM global symbol codes.
6572 symcode='[BCDEGRST]'
6573
6574 # Regexp to match symbols that can be accessed directly from C.
6575 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6576
6577 # Define system-specific variables.
6578 case $host_os in
6579 aix*)
6580   symcode='[BCDT]'
6581   ;;
6582 cygwin* | mingw* | pw32* | cegcc*)
6583   symcode='[ABCDGISTW]'
6584   ;;
6585 hpux*)
6586   if test "$host_cpu" = ia64; then
6587     symcode='[ABCDEGRST]'
6588   fi
6589   ;;
6590 irix* | nonstopux*)
6591   symcode='[BCDEGRST]'
6592   ;;
6593 osf*)
6594   symcode='[BCDEGQRST]'
6595   ;;
6596 solaris*)
6597   symcode='[BDRT]'
6598   ;;
6599 sco3.2v5*)
6600   symcode='[DT]'
6601   ;;
6602 sysv4.2uw2*)
6603   symcode='[DT]'
6604   ;;
6605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6606   symcode='[ABDT]'
6607   ;;
6608 sysv4)
6609   symcode='[DFNSTU]'
6610   ;;
6611 esac
6612
6613 # If we're using GNU nm, then use its standard symbol codes.
6614 case `$NM -V 2>&1` in
6615 *GNU* | *'with BFD'*)
6616   symcode='[ABCDGIRSTW]' ;;
6617 esac
6618
6619 # Transform an extracted symbol line into a proper C declaration.
6620 # Some systems (esp. on ia64) link data and code symbols differently,
6621 # so use this general approach.
6622 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6623
6624 # Transform an extracted symbol line into symbol name and symbol address
6625 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6626 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'"
6627
6628 # Handle CRLF in mingw tool chain
6629 opt_cr=
6630 case $build_os in
6631 mingw*)
6632   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6633   ;;
6634 esac
6635
6636 # Try without a prefix underscore, then with it.
6637 for ac_symprfx in "" "_"; do
6638
6639   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6640   symxfrm="\\1 $ac_symprfx\\2 \\2"
6641
6642   # Write the raw and C identifiers.
6643   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6644     # Fake it for dumpbin and say T for any non-static function
6645     # and D for any global variable.
6646     # Also find C++ and __fastcall symbols from MSVC++,
6647     # which start with @ or ?.
6648     lt_cv_sys_global_symbol_pipe="$AWK '"\
6649 "     {last_section=section; section=\$ 3};"\
6650 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6651 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6652 "     \$ 0!~/External *\|/{next};"\
6653 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6654 "     {if(hide[section]) next};"\
6655 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6656 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6657 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6658 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6659 "     ' prfx=^$ac_symprfx"
6660   else
6661     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6662   fi
6663   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6664
6665   # Check to see that the pipe works correctly.
6666   pipe_works=no
6667
6668   rm -f conftest*
6669   cat > conftest.$ac_ext <<_LT_EOF
6670 #ifdef __cplusplus
6671 extern "C" {
6672 #endif
6673 char nm_test_var;
6674 void nm_test_func(void);
6675 void nm_test_func(void){}
6676 #ifdef __cplusplus
6677 }
6678 #endif
6679 int main(){nm_test_var='a';nm_test_func();return(0);}
6680 _LT_EOF
6681
6682   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683   (eval $ac_compile) 2>&5
6684   ac_status=$?
6685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686   test $ac_status = 0; }; then
6687     # Now try to grab the symbols.
6688     nlist=conftest.nm
6689     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6690   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6691   ac_status=$?
6692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693   test $ac_status = 0; } && test -s "$nlist"; then
6694       # Try sorting and uniquifying the output.
6695       if sort "$nlist" | uniq > "$nlist"T; then
6696         mv -f "$nlist"T "$nlist"
6697       else
6698         rm -f "$nlist"T
6699       fi
6700
6701       # Make sure that we snagged all the symbols we need.
6702       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6703         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6704           cat <<_LT_EOF > conftest.$ac_ext
6705 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6706 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6707 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6708    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6709 # define LT_DLSYM_CONST
6710 #elif defined(__osf__)
6711 /* This system does not cope well with relocations in const data.  */
6712 # define LT_DLSYM_CONST
6713 #else
6714 # define LT_DLSYM_CONST const
6715 #endif
6716
6717 #ifdef __cplusplus
6718 extern "C" {
6719 #endif
6720
6721 _LT_EOF
6722           # Now generate the symbol file.
6723           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6724
6725           cat <<_LT_EOF >> conftest.$ac_ext
6726
6727 /* The mapping between symbol names and symbols.  */
6728 LT_DLSYM_CONST struct {
6729   const char *name;
6730   void       *address;
6731 }
6732 lt__PROGRAM__LTX_preloaded_symbols[] =
6733 {
6734   { "@PROGRAM@", (void *) 0 },
6735 _LT_EOF
6736           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6737           cat <<\_LT_EOF >> conftest.$ac_ext
6738   {0, (void *) 0}
6739 };
6740
6741 /* This works around a problem in FreeBSD linker */
6742 #ifdef FREEBSD_WORKAROUND
6743 static const void *lt_preloaded_setup() {
6744   return lt__PROGRAM__LTX_preloaded_symbols;
6745 }
6746 #endif
6747
6748 #ifdef __cplusplus
6749 }
6750 #endif
6751 _LT_EOF
6752           # Now try linking the two files.
6753           mv conftest.$ac_objext conftstm.$ac_objext
6754           lt_globsym_save_LIBS=$LIBS
6755           lt_globsym_save_CFLAGS=$CFLAGS
6756           LIBS="conftstm.$ac_objext"
6757           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6758           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6759   (eval $ac_link) 2>&5
6760   ac_status=$?
6761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6763             pipe_works=yes
6764           fi
6765           LIBS=$lt_globsym_save_LIBS
6766           CFLAGS=$lt_globsym_save_CFLAGS
6767         else
6768           echo "cannot find nm_test_func in $nlist" >&5
6769         fi
6770       else
6771         echo "cannot find nm_test_var in $nlist" >&5
6772       fi
6773     else
6774       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6775     fi
6776   else
6777     echo "$progname: failed program was:" >&5
6778     cat conftest.$ac_ext >&5
6779   fi
6780   rm -rf conftest* conftst*
6781
6782   # Do not use the global_symbol_pipe unless it works.
6783   if test "$pipe_works" = yes; then
6784     break
6785   else
6786     lt_cv_sys_global_symbol_pipe=
6787   fi
6788 done
6789
6790 fi
6791
6792 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6793   lt_cv_sys_global_symbol_to_cdecl=
6794 fi
6795 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6797 $as_echo "failed" >&6; }
6798 else
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6800 $as_echo "ok" >&6; }
6801 fi
6802
6803 # Response file support.
6804 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6805   nm_file_list_spec='@'
6806 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6807   nm_file_list_spec='@'
6808 fi
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6837 $as_echo_n "checking for sysroot... " >&6; }
6838
6839 # Check whether --with-sysroot was given.
6840 if test "${with_sysroot+set}" = set; then :
6841   withval=$with_sysroot;
6842 else
6843   with_sysroot=no
6844 fi
6845
6846
6847 lt_sysroot=
6848 case ${with_sysroot} in #(
6849  yes)
6850    if test "$GCC" = yes; then
6851      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6852    fi
6853    ;; #(
6854  /*)
6855    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6856    ;; #(
6857  no|'')
6858    ;; #(
6859  *)
6860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6861 $as_echo "${with_sysroot}" >&6; }
6862    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6863    ;;
6864 esac
6865
6866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6867 $as_echo "${lt_sysroot:-no}" >&6; }
6868
6869
6870
6871
6872
6873 # Check whether --enable-libtool-lock was given.
6874 if test "${enable_libtool_lock+set}" = set; then :
6875   enableval=$enable_libtool_lock;
6876 fi
6877
6878 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6879
6880 # Some flags need to be propagated to the compiler or linker for good
6881 # libtool support.
6882 case $host in
6883 ia64-*-hpux*)
6884   # Find out which ABI we are using.
6885   echo 'int i;' > conftest.$ac_ext
6886   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887   (eval $ac_compile) 2>&5
6888   ac_status=$?
6889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890   test $ac_status = 0; }; then
6891     case `/usr/bin/file conftest.$ac_objext` in
6892       *ELF-32*)
6893         HPUX_IA64_MODE="32"
6894         ;;
6895       *ELF-64*)
6896         HPUX_IA64_MODE="64"
6897         ;;
6898     esac
6899   fi
6900   rm -rf conftest*
6901   ;;
6902 *-*-irix6*)
6903   # Find out which ABI we are using.
6904   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6906   (eval $ac_compile) 2>&5
6907   ac_status=$?
6908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909   test $ac_status = 0; }; then
6910     if test "$lt_cv_prog_gnu_ld" = yes; then
6911       case `/usr/bin/file conftest.$ac_objext` in
6912         *32-bit*)
6913           LD="${LD-ld} -melf32bsmip"
6914           ;;
6915         *N32*)
6916           LD="${LD-ld} -melf32bmipn32"
6917           ;;
6918         *64-bit*)
6919           LD="${LD-ld} -melf64bmip"
6920         ;;
6921       esac
6922     else
6923       case `/usr/bin/file conftest.$ac_objext` in
6924         *32-bit*)
6925           LD="${LD-ld} -32"
6926           ;;
6927         *N32*)
6928           LD="${LD-ld} -n32"
6929           ;;
6930         *64-bit*)
6931           LD="${LD-ld} -64"
6932           ;;
6933       esac
6934     fi
6935   fi
6936   rm -rf conftest*
6937   ;;
6938
6939 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6940 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6941   # Find out which ABI we are using.
6942   echo 'int i;' > conftest.$ac_ext
6943   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6944   (eval $ac_compile) 2>&5
6945   ac_status=$?
6946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947   test $ac_status = 0; }; then
6948     case `/usr/bin/file conftest.o` in
6949       *32-bit*)
6950         case $host in
6951           x86_64-*kfreebsd*-gnu)
6952             LD="${LD-ld} -m elf_i386_fbsd"
6953             ;;
6954           x86_64-*linux*)
6955             LD="${LD-ld} -m elf_i386"
6956             ;;
6957          powerpc64le-*)
6958            LD="${LD-ld} -m elf32lppclinux"
6959            ;;
6960          powerpc64-*)
6961             LD="${LD-ld} -m elf32ppclinux"
6962             ;;
6963           s390x-*linux*)
6964             LD="${LD-ld} -m elf_s390"
6965             ;;
6966           sparc64-*linux*)
6967             LD="${LD-ld} -m elf32_sparc"
6968             ;;
6969         esac
6970         ;;
6971       *64-bit*)
6972         case $host in
6973           x86_64-*kfreebsd*-gnu)
6974             LD="${LD-ld} -m elf_x86_64_fbsd"
6975             ;;
6976           x86_64-*linux*)
6977             LD="${LD-ld} -m elf_x86_64"
6978             ;;
6979          powerpcle-*)
6980            LD="${LD-ld} -m elf64lppc"
6981            ;;
6982          powerpc-*)
6983             LD="${LD-ld} -m elf64ppc"
6984             ;;
6985           s390*-*linux*|s390*-*tpf*)
6986             LD="${LD-ld} -m elf64_s390"
6987             ;;
6988           sparc*-*linux*)
6989             LD="${LD-ld} -m elf64_sparc"
6990             ;;
6991         esac
6992         ;;
6993     esac
6994   fi
6995   rm -rf conftest*
6996   ;;
6997
6998 *-*-sco3.2v5*)
6999   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7000   SAVE_CFLAGS="$CFLAGS"
7001   CFLAGS="$CFLAGS -belf"
7002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7003 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7004 if ${lt_cv_cc_needs_belf+:} false; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h.  */
7015
7016 int
7017 main ()
7018 {
7019
7020   ;
7021   return 0;
7022 }
7023 _ACEOF
7024 if ac_fn_c_try_link "$LINENO"; then :
7025   lt_cv_cc_needs_belf=yes
7026 else
7027   lt_cv_cc_needs_belf=no
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext \
7030     conftest$ac_exeext conftest.$ac_ext
7031      ac_ext=c
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7039 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7040   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7041     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7042     CFLAGS="$SAVE_CFLAGS"
7043   fi
7044   ;;
7045 *-*solaris*)
7046   # Find out which ABI we are using.
7047   echo 'int i;' > conftest.$ac_ext
7048   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7049   (eval $ac_compile) 2>&5
7050   ac_status=$?
7051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052   test $ac_status = 0; }; then
7053     case `/usr/bin/file conftest.o` in
7054     *64-bit*)
7055       case $lt_cv_prog_gnu_ld in
7056       yes*)
7057         case $host in
7058         i?86-*-solaris*)
7059           LD="${LD-ld} -m elf_x86_64"
7060           ;;
7061         sparc*-*-solaris*)
7062           LD="${LD-ld} -m elf64_sparc"
7063           ;;
7064         esac
7065         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7066         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7067           LD="${LD-ld}_sol2"
7068         fi
7069         ;;
7070       *)
7071         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7072           LD="${LD-ld} -64"
7073         fi
7074         ;;
7075       esac
7076       ;;
7077     esac
7078   fi
7079   rm -rf conftest*
7080   ;;
7081 esac
7082
7083 need_locks="$enable_libtool_lock"
7084
7085 if test -n "$ac_tool_prefix"; then
7086   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7087 set dummy ${ac_tool_prefix}mt; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7091   $as_echo_n "(cached) " >&6
7092 else
7093   if test -n "$MANIFEST_TOOL"; then
7094   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099   IFS=$as_save_IFS
7100   test -z "$as_dir" && as_dir=.
7101     for ac_exec_ext in '' $ac_executable_extensions; do
7102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105     break 2
7106   fi
7107 done
7108   done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7114 if test -n "$MANIFEST_TOOL"; then
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7116 $as_echo "$MANIFEST_TOOL" >&6; }
7117 else
7118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121
7122
7123 fi
7124 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7125   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7126   # Extract the first word of "mt", so it can be a program name with args.
7127 set dummy mt; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   if test -n "$ac_ct_MANIFEST_TOOL"; then
7134   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141     for ac_exec_ext in '' $ac_executable_extensions; do
7142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148   done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7154 if test -n "$ac_ct_MANIFEST_TOOL"; then
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7156 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7157 else
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7163     MANIFEST_TOOL=":"
7164   else
7165     case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7172   fi
7173 else
7174   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7175 fi
7176
7177 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7179 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7180 if ${lt_cv_path_mainfest_tool+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183   lt_cv_path_mainfest_tool=no
7184   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7185   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7186   cat conftest.err >&5
7187   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7188     lt_cv_path_mainfest_tool=yes
7189   fi
7190   rm -f conftest*
7191 fi
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7193 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7194 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7195   MANIFEST_TOOL=:
7196 fi
7197
7198
7199
7200
7201
7202
7203   case $host_os in
7204     rhapsody* | darwin*)
7205     if test -n "$ac_tool_prefix"; then
7206   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$DSYMUTIL"; then
7214   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7234 if test -n "$DSYMUTIL"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7236 $as_echo "$DSYMUTIL" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_DSYMUTIL"; then
7245   ac_ct_DSYMUTIL=$DSYMUTIL
7246   # Extract the first word of "dsymutil", so it can be a program name with args.
7247 set dummy dsymutil; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   if test -n "$ac_ct_DSYMUTIL"; then
7254   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261     for ac_exec_ext in '' $ac_executable_extensions; do
7262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268   done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7274 if test -n "$ac_ct_DSYMUTIL"; then
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7276 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282   if test "x$ac_ct_DSYMUTIL" = x; then
7283     DSYMUTIL=":"
7284   else
7285     case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291     DSYMUTIL=$ac_ct_DSYMUTIL
7292   fi
7293 else
7294   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7295 fi
7296
7297     if test -n "$ac_tool_prefix"; then
7298   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_NMEDIT+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   if test -n "$NMEDIT"; then
7306   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 NMEDIT=$ac_cv_prog_NMEDIT
7326 if test -n "$NMEDIT"; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7328 $as_echo "$NMEDIT" >&6; }
7329 else
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334
7335 fi
7336 if test -z "$ac_cv_prog_NMEDIT"; then
7337   ac_ct_NMEDIT=$NMEDIT
7338   # Extract the first word of "nmedit", so it can be a program name with args.
7339 set dummy nmedit; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7343   $as_echo_n "(cached) " >&6
7344 else
7345   if test -n "$ac_ct_NMEDIT"; then
7346   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353     for ac_exec_ext in '' $ac_executable_extensions; do
7354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360   done
7361 IFS=$as_save_IFS
7362
7363 fi
7364 fi
7365 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7366 if test -n "$ac_ct_NMEDIT"; then
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7368 $as_echo "$ac_ct_NMEDIT" >&6; }
7369 else
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374   if test "x$ac_ct_NMEDIT" = x; then
7375     NMEDIT=":"
7376   else
7377     case $cross_compiling:$ac_tool_warned in
7378 yes:)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7382 esac
7383     NMEDIT=$ac_ct_NMEDIT
7384   fi
7385 else
7386   NMEDIT="$ac_cv_prog_NMEDIT"
7387 fi
7388
7389     if test -n "$ac_tool_prefix"; then
7390   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7391 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_LIPO+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test -n "$LIPO"; then
7398   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 LIPO=$ac_cv_prog_LIPO
7418 if test -n "$LIPO"; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7420 $as_echo "$LIPO" >&6; }
7421 else
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426
7427 fi
7428 if test -z "$ac_cv_prog_LIPO"; then
7429   ac_ct_LIPO=$LIPO
7430   # Extract the first word of "lipo", so it can be a program name with args.
7431 set dummy lipo; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7435   $as_echo_n "(cached) " >&6
7436 else
7437   if test -n "$ac_ct_LIPO"; then
7438   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443   IFS=$as_save_IFS
7444   test -z "$as_dir" && as_dir=.
7445     for ac_exec_ext in '' $ac_executable_extensions; do
7446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447     ac_cv_prog_ac_ct_LIPO="lipo"
7448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449     break 2
7450   fi
7451 done
7452   done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7458 if test -n "$ac_ct_LIPO"; then
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7460 $as_echo "$ac_ct_LIPO" >&6; }
7461 else
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466   if test "x$ac_ct_LIPO" = x; then
7467     LIPO=":"
7468   else
7469     case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475     LIPO=$ac_ct_LIPO
7476   fi
7477 else
7478   LIPO="$ac_cv_prog_LIPO"
7479 fi
7480
7481     if test -n "$ac_tool_prefix"; then
7482   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7483 set dummy ${ac_tool_prefix}otool; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_OTOOL+:} false; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   if test -n "$OTOOL"; then
7490   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495   IFS=$as_save_IFS
7496   test -z "$as_dir" && as_dir=.
7497     for ac_exec_ext in '' $ac_executable_extensions; do
7498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501     break 2
7502   fi
7503 done
7504   done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 OTOOL=$ac_cv_prog_OTOOL
7510 if test -n "$OTOOL"; then
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7512 $as_echo "$OTOOL" >&6; }
7513 else
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518
7519 fi
7520 if test -z "$ac_cv_prog_OTOOL"; then
7521   ac_ct_OTOOL=$OTOOL
7522   # Extract the first word of "otool", so it can be a program name with args.
7523 set dummy otool; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7527   $as_echo_n "(cached) " >&6
7528 else
7529   if test -n "$ac_ct_OTOOL"; then
7530   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535   IFS=$as_save_IFS
7536   test -z "$as_dir" && as_dir=.
7537     for ac_exec_ext in '' $ac_executable_extensions; do
7538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539     ac_cv_prog_ac_ct_OTOOL="otool"
7540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541     break 2
7542   fi
7543 done
7544   done
7545 IFS=$as_save_IFS
7546
7547 fi
7548 fi
7549 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7550 if test -n "$ac_ct_OTOOL"; then
7551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7552 $as_echo "$ac_ct_OTOOL" >&6; }
7553 else
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558   if test "x$ac_ct_OTOOL" = x; then
7559     OTOOL=":"
7560   else
7561     case $cross_compiling:$ac_tool_warned in
7562 yes:)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7566 esac
7567     OTOOL=$ac_ct_OTOOL
7568   fi
7569 else
7570   OTOOL="$ac_cv_prog_OTOOL"
7571 fi
7572
7573     if test -n "$ac_tool_prefix"; then
7574   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_OTOOL64+:} false; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   if test -n "$OTOOL64"; then
7582   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 OTOOL64=$ac_cv_prog_OTOOL64
7602 if test -n "$OTOOL64"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7604 $as_echo "$OTOOL64" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610
7611 fi
7612 if test -z "$ac_cv_prog_OTOOL64"; then
7613   ac_ct_OTOOL64=$OTOOL64
7614   # Extract the first word of "otool64", so it can be a program name with args.
7615 set dummy otool64; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   if test -n "$ac_ct_OTOOL64"; then
7622   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627   IFS=$as_save_IFS
7628   test -z "$as_dir" && as_dir=.
7629     for ac_exec_ext in '' $ac_executable_extensions; do
7630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631     ac_cv_prog_ac_ct_OTOOL64="otool64"
7632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633     break 2
7634   fi
7635 done
7636   done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7642 if test -n "$ac_ct_OTOOL64"; then
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7644 $as_echo "$ac_ct_OTOOL64" >&6; }
7645 else
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650   if test "x$ac_ct_OTOOL64" = x; then
7651     OTOOL64=":"
7652   else
7653     case $cross_compiling:$ac_tool_warned in
7654 yes:)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657 ac_tool_warned=yes ;;
7658 esac
7659     OTOOL64=$ac_ct_OTOOL64
7660   fi
7661 else
7662   OTOOL64="$ac_cv_prog_OTOOL64"
7663 fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7692 $as_echo_n "checking for -single_module linker flag... " >&6; }
7693 if ${lt_cv_apple_cc_single_mod+:} false; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   lt_cv_apple_cc_single_mod=no
7697       if test -z "${LT_MULTI_MODULE}"; then
7698         # By default we will add the -single_module flag. You can override
7699         # by either setting the environment variable LT_MULTI_MODULE
7700         # non-empty at configure time, or by adding -multi_module to the
7701         # link flags.
7702         rm -rf libconftest.dylib*
7703         echo "int foo(void){return 1;}" > conftest.c
7704         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7705 -dynamiclib -Wl,-single_module conftest.c" >&5
7706         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7707           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7708         _lt_result=$?
7709         # If there is a non-empty error log, and "single_module"
7710         # appears in it, assume the flag caused a linker warning
7711         if test -s conftest.err && $GREP single_module conftest.err; then
7712           cat conftest.err >&5
7713         # Otherwise, if the output was created with a 0 exit code from
7714         # the compiler, it worked.
7715         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7716           lt_cv_apple_cc_single_mod=yes
7717         else
7718           cat conftest.err >&5
7719         fi
7720         rm -rf libconftest.dylib*
7721         rm -f conftest.*
7722       fi
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7725 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7726
7727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7728 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7729 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732   lt_cv_ld_exported_symbols_list=no
7733       save_LDFLAGS=$LDFLAGS
7734       echo "_main" > conftest.sym
7735       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7736       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h.  */
7738
7739 int
7740 main ()
7741 {
7742
7743   ;
7744   return 0;
7745 }
7746 _ACEOF
7747 if ac_fn_c_try_link "$LINENO"; then :
7748   lt_cv_ld_exported_symbols_list=yes
7749 else
7750   lt_cv_ld_exported_symbols_list=no
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext \
7753     conftest$ac_exeext conftest.$ac_ext
7754         LDFLAGS="$save_LDFLAGS"
7755
7756 fi
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7758 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7759
7760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7761 $as_echo_n "checking for -force_load linker flag... " >&6; }
7762 if ${lt_cv_ld_force_load+:} false; then :
7763   $as_echo_n "(cached) " >&6
7764 else
7765   lt_cv_ld_force_load=no
7766       cat > conftest.c << _LT_EOF
7767 int forced_loaded() { return 2;}
7768 _LT_EOF
7769       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7770       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7771       echo "$AR cru libconftest.a conftest.o" >&5
7772       $AR cru libconftest.a conftest.o 2>&5
7773       echo "$RANLIB libconftest.a" >&5
7774       $RANLIB libconftest.a 2>&5
7775       cat > conftest.c << _LT_EOF
7776 int main() { return 0;}
7777 _LT_EOF
7778       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7779       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7780       _lt_result=$?
7781       if test -s conftest.err && $GREP force_load conftest.err; then
7782         cat conftest.err >&5
7783       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7784         lt_cv_ld_force_load=yes
7785       else
7786         cat conftest.err >&5
7787       fi
7788         rm -f conftest.err libconftest.a conftest conftest.c
7789         rm -rf conftest.dSYM
7790
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7793 $as_echo "$lt_cv_ld_force_load" >&6; }
7794     case $host_os in
7795     rhapsody* | darwin1.[012])
7796       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7797     darwin1.*)
7798       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7799     darwin*) # darwin 5.x on
7800       # if running on 10.5 or later, the deployment target defaults
7801       # to the OS version, if on x86, and 10.4, the deployment
7802       # target defaults to 10.4. Don't you love it?
7803       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7804         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7805           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7806         10.[012]*)
7807           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7808         10.*)
7809           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7810       esac
7811     ;;
7812   esac
7813     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7814       _lt_dar_single_mod='$single_module'
7815     fi
7816     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7817       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7818     else
7819       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7820     fi
7821     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7822       _lt_dsymutil='~$DSYMUTIL $lib || :'
7823     else
7824       _lt_dsymutil=
7825     fi
7826     ;;
7827   esac
7828
7829 for ac_header in dlfcn.h
7830 do :
7831   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7832 "
7833 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7834   cat >>confdefs.h <<_ACEOF
7835 #define HAVE_DLFCN_H 1
7836 _ACEOF
7837
7838 fi
7839
7840 done
7841
7842
7843
7844
7845
7846 # Set options
7847 enable_win32_dll=yes
7848
7849 case $host in
7850 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7851   if test -n "$ac_tool_prefix"; then
7852   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7853 set dummy ${ac_tool_prefix}as; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_AS+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   if test -n "$AS"; then
7860   ac_cv_prog_AS="$AS" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867     for ac_exec_ext in '' $ac_executable_extensions; do
7868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869     ac_cv_prog_AS="${ac_tool_prefix}as"
7870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874   done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 AS=$ac_cv_prog_AS
7880 if test -n "$AS"; then
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7882 $as_echo "$AS" >&6; }
7883 else
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888
7889 fi
7890 if test -z "$ac_cv_prog_AS"; then
7891   ac_ct_AS=$AS
7892   # Extract the first word of "as", so it can be a program name with args.
7893 set dummy as; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7897   $as_echo_n "(cached) " >&6
7898 else
7899   if test -n "$ac_ct_AS"; then
7900   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905   IFS=$as_save_IFS
7906   test -z "$as_dir" && as_dir=.
7907     for ac_exec_ext in '' $ac_executable_extensions; do
7908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909     ac_cv_prog_ac_ct_AS="as"
7910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911     break 2
7912   fi
7913 done
7914   done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7920 if test -n "$ac_ct_AS"; then
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7922 $as_echo "$ac_ct_AS" >&6; }
7923 else
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7926 fi
7927
7928   if test "x$ac_ct_AS" = x; then
7929     AS="false"
7930   else
7931     case $cross_compiling:$ac_tool_warned in
7932 yes:)
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935 ac_tool_warned=yes ;;
7936 esac
7937     AS=$ac_ct_AS
7938   fi
7939 else
7940   AS="$ac_cv_prog_AS"
7941 fi
7942
7943   if test -n "$ac_tool_prefix"; then
7944   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7945 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if ${ac_cv_prog_DLLTOOL+:} false; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   if test -n "$DLLTOOL"; then
7952   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959     for ac_exec_ext in '' $ac_executable_extensions; do
7960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966   done
7967 IFS=$as_save_IFS
7968
7969 fi
7970 fi
7971 DLLTOOL=$ac_cv_prog_DLLTOOL
7972 if test -n "$DLLTOOL"; then
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7974 $as_echo "$DLLTOOL" >&6; }
7975 else
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980
7981 fi
7982 if test -z "$ac_cv_prog_DLLTOOL"; then
7983   ac_ct_DLLTOOL=$DLLTOOL
7984   # Extract the first word of "dlltool", so it can be a program name with args.
7985 set dummy dlltool; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7989   $as_echo_n "(cached) " >&6
7990 else
7991   if test -n "$ac_ct_DLLTOOL"; then
7992   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7996 do
7997   IFS=$as_save_IFS
7998   test -z "$as_dir" && as_dir=.
7999     for ac_exec_ext in '' $ac_executable_extensions; do
8000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8001     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003     break 2
8004   fi
8005 done
8006   done
8007 IFS=$as_save_IFS
8008
8009 fi
8010 fi
8011 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8012 if test -n "$ac_ct_DLLTOOL"; then
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8014 $as_echo "$ac_ct_DLLTOOL" >&6; }
8015 else
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019
8020   if test "x$ac_ct_DLLTOOL" = x; then
8021     DLLTOOL="false"
8022   else
8023     case $cross_compiling:$ac_tool_warned in
8024 yes:)
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8027 ac_tool_warned=yes ;;
8028 esac
8029     DLLTOOL=$ac_ct_DLLTOOL
8030   fi
8031 else
8032   DLLTOOL="$ac_cv_prog_DLLTOOL"
8033 fi
8034
8035   if test -n "$ac_tool_prefix"; then
8036   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8037 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_OBJDUMP+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   if test -n "$OBJDUMP"; then
8044   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049   IFS=$as_save_IFS
8050   test -z "$as_dir" && as_dir=.
8051     for ac_exec_ext in '' $ac_executable_extensions; do
8052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055     break 2
8056   fi
8057 done
8058   done
8059 IFS=$as_save_IFS
8060
8061 fi
8062 fi
8063 OBJDUMP=$ac_cv_prog_OBJDUMP
8064 if test -n "$OBJDUMP"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8066 $as_echo "$OBJDUMP" >&6; }
8067 else
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071
8072
8073 fi
8074 if test -z "$ac_cv_prog_OBJDUMP"; then
8075   ac_ct_OBJDUMP=$OBJDUMP
8076   # Extract the first word of "objdump", so it can be a program name with args.
8077 set dummy objdump; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8081   $as_echo_n "(cached) " >&6
8082 else
8083   if test -n "$ac_ct_OBJDUMP"; then
8084   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8085 else
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8088 do
8089   IFS=$as_save_IFS
8090   test -z "$as_dir" && as_dir=.
8091     for ac_exec_ext in '' $ac_executable_extensions; do
8092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095     break 2
8096   fi
8097 done
8098   done
8099 IFS=$as_save_IFS
8100
8101 fi
8102 fi
8103 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8104 if test -n "$ac_ct_OBJDUMP"; then
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8106 $as_echo "$ac_ct_OBJDUMP" >&6; }
8107 else
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110 fi
8111
8112   if test "x$ac_ct_OBJDUMP" = x; then
8113     OBJDUMP="false"
8114   else
8115     case $cross_compiling:$ac_tool_warned in
8116 yes:)
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119 ac_tool_warned=yes ;;
8120 esac
8121     OBJDUMP=$ac_ct_OBJDUMP
8122   fi
8123 else
8124   OBJDUMP="$ac_cv_prog_OBJDUMP"
8125 fi
8126
8127   ;;
8128 esac
8129
8130 test -z "$AS" && AS=as
8131
8132
8133
8134
8135
8136 test -z "$DLLTOOL" && DLLTOOL=dlltool
8137
8138
8139
8140
8141
8142 test -z "$OBJDUMP" && OBJDUMP=objdump
8143
8144
8145
8146
8147 # Check whether --enable-static was given.
8148 if test "${enable_static+set}" = set; then :
8149   enableval=$enable_static; p=${PACKAGE-default}
8150     case $enableval in
8151     yes) enable_static=yes ;;
8152     no) enable_static=no ;;
8153     *)
8154      enable_static=no
8155       # Look at the argument we got.  We use all the common list separators.
8156       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8157       for pkg in $enableval; do
8158         IFS="$lt_save_ifs"
8159         if test "X$pkg" = "X$p"; then
8160           enable_static=yes
8161         fi
8162       done
8163       IFS="$lt_save_ifs"
8164       ;;
8165     esac
8166 else
8167   enable_static=no
8168 fi
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179         enable_dlopen=no
8180
8181
8182
8183             # Check whether --enable-shared was given.
8184 if test "${enable_shared+set}" = set; then :
8185   enableval=$enable_shared; p=${PACKAGE-default}
8186     case $enableval in
8187     yes) enable_shared=yes ;;
8188     no) enable_shared=no ;;
8189     *)
8190       enable_shared=no
8191       # Look at the argument we got.  We use all the common list separators.
8192       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8193       for pkg in $enableval; do
8194         IFS="$lt_save_ifs"
8195         if test "X$pkg" = "X$p"; then
8196           enable_shared=yes
8197         fi
8198       done
8199       IFS="$lt_save_ifs"
8200       ;;
8201     esac
8202 else
8203   enable_shared=yes
8204 fi
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216 # Check whether --with-pic was given.
8217 if test "${with_pic+set}" = set; then :
8218   withval=$with_pic; lt_p=${PACKAGE-default}
8219     case $withval in
8220     yes|no) pic_mode=$withval ;;
8221     *)
8222       pic_mode=default
8223       # Look at the argument we got.  We use all the common list separators.
8224       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8225       for lt_pkg in $withval; do
8226         IFS="$lt_save_ifs"
8227         if test "X$lt_pkg" = "X$lt_p"; then
8228           pic_mode=yes
8229         fi
8230       done
8231       IFS="$lt_save_ifs"
8232       ;;
8233     esac
8234 else
8235   pic_mode=default
8236 fi
8237
8238
8239 test -z "$pic_mode" && pic_mode=default
8240
8241
8242
8243
8244
8245
8246
8247   # Check whether --enable-fast-install was given.
8248 if test "${enable_fast_install+set}" = set; then :
8249   enableval=$enable_fast_install; p=${PACKAGE-default}
8250     case $enableval in
8251     yes) enable_fast_install=yes ;;
8252     no) enable_fast_install=no ;;
8253     *)
8254       enable_fast_install=no
8255       # Look at the argument we got.  We use all the common list separators.
8256       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8257       for pkg in $enableval; do
8258         IFS="$lt_save_ifs"
8259         if test "X$pkg" = "X$p"; then
8260           enable_fast_install=yes
8261         fi
8262       done
8263       IFS="$lt_save_ifs"
8264       ;;
8265     esac
8266 else
8267   enable_fast_install=yes
8268 fi
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280 # This can be used to rebuild libtool when needed
8281 LIBTOOL_DEPS="$ltmain"
8282
8283 # Always use our own libtool.
8284 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315 test -z "$LN_S" && LN_S="ln -s"
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 if test -n "${ZSH_VERSION+set}" ; then
8331    setopt NO_GLOB_SUBST
8332 fi
8333
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8335 $as_echo_n "checking for objdir... " >&6; }
8336 if ${lt_cv_objdir+:} false; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   rm -f .libs 2>/dev/null
8340 mkdir .libs 2>/dev/null
8341 if test -d .libs; then
8342   lt_cv_objdir=.libs
8343 else
8344   # MS-DOS does not allow filenames that begin with a dot.
8345   lt_cv_objdir=_libs
8346 fi
8347 rmdir .libs 2>/dev/null
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8350 $as_echo "$lt_cv_objdir" >&6; }
8351 objdir=$lt_cv_objdir
8352
8353
8354
8355
8356
8357 cat >>confdefs.h <<_ACEOF
8358 #define LT_OBJDIR "$lt_cv_objdir/"
8359 _ACEOF
8360
8361
8362
8363
8364 case $host_os in
8365 aix3*)
8366   # AIX sometimes has problems with the GCC collect2 program.  For some
8367   # reason, if we set the COLLECT_NAMES environment variable, the problems
8368   # vanish in a puff of smoke.
8369   if test "X${COLLECT_NAMES+set}" != Xset; then
8370     COLLECT_NAMES=
8371     export COLLECT_NAMES
8372   fi
8373   ;;
8374 esac
8375
8376 # Global variables:
8377 ofile=libtool
8378 can_build_shared=yes
8379
8380 # All known linkers require a `.a' archive for static linking (except MSVC,
8381 # which needs '.lib').
8382 libext=a
8383
8384 with_gnu_ld="$lt_cv_prog_gnu_ld"
8385
8386 old_CC="$CC"
8387 old_CFLAGS="$CFLAGS"
8388
8389 # Set sane defaults for various variables
8390 test -z "$CC" && CC=cc
8391 test -z "$LTCC" && LTCC=$CC
8392 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8393 test -z "$LD" && LD=ld
8394 test -z "$ac_objext" && ac_objext=o
8395
8396 for cc_temp in $compiler""; do
8397   case $cc_temp in
8398     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8399     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8400     \-*) ;;
8401     *) break;;
8402   esac
8403 done
8404 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8405
8406
8407 # Only perform the check for file, if the check method requires it
8408 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8409 case $deplibs_check_method in
8410 file_magic*)
8411   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8413 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8414 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8415   $as_echo_n "(cached) " >&6
8416 else
8417   case $MAGIC_CMD in
8418 [\\/*] |  ?:[\\/]*)
8419   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8420   ;;
8421 *)
8422   lt_save_MAGIC_CMD="$MAGIC_CMD"
8423   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8424   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8425   for ac_dir in $ac_dummy; do
8426     IFS="$lt_save_ifs"
8427     test -z "$ac_dir" && ac_dir=.
8428     if test -f $ac_dir/${ac_tool_prefix}file; then
8429       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8430       if test -n "$file_magic_test_file"; then
8431         case $deplibs_check_method in
8432         "file_magic "*)
8433           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8434           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8435           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8436             $EGREP "$file_magic_regex" > /dev/null; then
8437             :
8438           else
8439             cat <<_LT_EOF 1>&2
8440
8441 *** Warning: the command libtool uses to detect shared libraries,
8442 *** $file_magic_cmd, produces output that libtool cannot recognize.
8443 *** The result is that libtool may fail to recognize shared libraries
8444 *** as such.  This will affect the creation of libtool libraries that
8445 *** depend on shared libraries, but programs linked with such libtool
8446 *** libraries will work regardless of this problem.  Nevertheless, you
8447 *** may want to report the problem to your system manager and/or to
8448 *** bug-libtool@gnu.org
8449
8450 _LT_EOF
8451           fi ;;
8452         esac
8453       fi
8454       break
8455     fi
8456   done
8457   IFS="$lt_save_ifs"
8458   MAGIC_CMD="$lt_save_MAGIC_CMD"
8459   ;;
8460 esac
8461 fi
8462
8463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8464 if test -n "$MAGIC_CMD"; then
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8466 $as_echo "$MAGIC_CMD" >&6; }
8467 else
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8470 fi
8471
8472
8473
8474
8475
8476 if test -z "$lt_cv_path_MAGIC_CMD"; then
8477   if test -n "$ac_tool_prefix"; then
8478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8479 $as_echo_n "checking for file... " >&6; }
8480 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8481   $as_echo_n "(cached) " >&6
8482 else
8483   case $MAGIC_CMD in
8484 [\\/*] |  ?:[\\/]*)
8485   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8486   ;;
8487 *)
8488   lt_save_MAGIC_CMD="$MAGIC_CMD"
8489   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8490   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8491   for ac_dir in $ac_dummy; do
8492     IFS="$lt_save_ifs"
8493     test -z "$ac_dir" && ac_dir=.
8494     if test -f $ac_dir/file; then
8495       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8496       if test -n "$file_magic_test_file"; then
8497         case $deplibs_check_method in
8498         "file_magic "*)
8499           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8500           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8501           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8502             $EGREP "$file_magic_regex" > /dev/null; then
8503             :
8504           else
8505             cat <<_LT_EOF 1>&2
8506
8507 *** Warning: the command libtool uses to detect shared libraries,
8508 *** $file_magic_cmd, produces output that libtool cannot recognize.
8509 *** The result is that libtool may fail to recognize shared libraries
8510 *** as such.  This will affect the creation of libtool libraries that
8511 *** depend on shared libraries, but programs linked with such libtool
8512 *** libraries will work regardless of this problem.  Nevertheless, you
8513 *** may want to report the problem to your system manager and/or to
8514 *** bug-libtool@gnu.org
8515
8516 _LT_EOF
8517           fi ;;
8518         esac
8519       fi
8520       break
8521     fi
8522   done
8523   IFS="$lt_save_ifs"
8524   MAGIC_CMD="$lt_save_MAGIC_CMD"
8525   ;;
8526 esac
8527 fi
8528
8529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8530 if test -n "$MAGIC_CMD"; then
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8532 $as_echo "$MAGIC_CMD" >&6; }
8533 else
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 fi
8537
8538
8539   else
8540     MAGIC_CMD=:
8541   fi
8542 fi
8543
8544   fi
8545   ;;
8546 esac
8547
8548 # Use C for the default configuration in the libtool script
8549
8550 lt_save_CC="$CC"
8551 ac_ext=c
8552 ac_cpp='$CPP $CPPFLAGS'
8553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8556
8557
8558 # Source file extension for C test sources.
8559 ac_ext=c
8560
8561 # Object file extension for compiled C test sources.
8562 objext=o
8563 objext=$objext
8564
8565 # Code to be used in simple compile tests
8566 lt_simple_compile_test_code="int some_variable = 0;"
8567
8568 # Code to be used in simple link tests
8569 lt_simple_link_test_code='int main(){return(0);}'
8570
8571
8572
8573
8574
8575
8576
8577 # If no C compiler was specified, use CC.
8578 LTCC=${LTCC-"$CC"}
8579
8580 # If no C compiler flags were specified, use CFLAGS.
8581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8582
8583 # Allow CC to be a program name with arguments.
8584 compiler=$CC
8585
8586 # Save the default compiler, since it gets overwritten when the other
8587 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8588 compiler_DEFAULT=$CC
8589
8590 # save warnings/boilerplate of simple test code
8591 ac_outfile=conftest.$ac_objext
8592 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8594 _lt_compiler_boilerplate=`cat conftest.err`
8595 $RM conftest*
8596
8597 ac_outfile=conftest.$ac_objext
8598 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8600 _lt_linker_boilerplate=`cat conftest.err`
8601 $RM -r conftest*
8602
8603
8604 ## CAVEAT EMPTOR:
8605 ## There is no encapsulation within the following macros, do not change
8606 ## the running order or otherwise move them around unless you know exactly
8607 ## what you are doing...
8608 if test -n "$compiler"; then
8609
8610 lt_prog_compiler_no_builtin_flag=
8611
8612 if test "$GCC" = yes; then
8613   case $cc_basename in
8614   nvcc*)
8615     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8616   *)
8617     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8618   esac
8619
8620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8621 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8622 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8623   $as_echo_n "(cached) " >&6
8624 else
8625   lt_cv_prog_compiler_rtti_exceptions=no
8626    ac_outfile=conftest.$ac_objext
8627    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628    lt_compiler_flag="-fno-rtti -fno-exceptions"
8629    # Insert the option either (1) after the last *FLAGS variable, or
8630    # (2) before a word containing "conftest.", or (3) at the end.
8631    # Note that $ac_compile itself does not contain backslashes and begins
8632    # with a dollar sign (not a hyphen), so the echo should work correctly.
8633    # The option is referenced via a variable to avoid confusing sed.
8634    lt_compile=`echo "$ac_compile" | $SED \
8635    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8636    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8637    -e 's:$: $lt_compiler_flag:'`
8638    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8639    (eval "$lt_compile" 2>conftest.err)
8640    ac_status=$?
8641    cat conftest.err >&5
8642    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643    if (exit $ac_status) && test -s "$ac_outfile"; then
8644      # The compiler can only warn and ignore the option if not recognized
8645      # So say no if there are warnings other than the usual output.
8646      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8647      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8648      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8649        lt_cv_prog_compiler_rtti_exceptions=yes
8650      fi
8651    fi
8652    $RM conftest*
8653
8654 fi
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8656 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8657
8658 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8659     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8660 else
8661     :
8662 fi
8663
8664 fi
8665
8666
8667
8668
8669
8670
8671   lt_prog_compiler_wl=
8672 lt_prog_compiler_pic=
8673 lt_prog_compiler_static=
8674
8675
8676   if test "$GCC" = yes; then
8677     lt_prog_compiler_wl='-Wl,'
8678     lt_prog_compiler_static='-static'
8679
8680     case $host_os in
8681       aix*)
8682       # All AIX code is PIC.
8683       if test "$host_cpu" = ia64; then
8684         # AIX 5 now supports IA64 processor
8685         lt_prog_compiler_static='-Bstatic'
8686       fi
8687       ;;
8688
8689     amigaos*)
8690       case $host_cpu in
8691       powerpc)
8692             # see comment about AmigaOS4 .so support
8693             lt_prog_compiler_pic='-fPIC'
8694         ;;
8695       m68k)
8696             # FIXME: we need at least 68020 code to build shared libraries, but
8697             # adding the `-m68020' flag to GCC prevents building anything better,
8698             # like `-m68040'.
8699             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8700         ;;
8701       esac
8702       ;;
8703
8704     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8705       # PIC is the default for these OSes.
8706       ;;
8707
8708     mingw* | cygwin* | pw32* | os2* | cegcc*)
8709       # This hack is so that the source file can tell whether it is being
8710       # built for inclusion in a dll (and should export symbols for example).
8711       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8712       # (--disable-auto-import) libraries
8713       lt_prog_compiler_pic='-DDLL_EXPORT'
8714       ;;
8715
8716     darwin* | rhapsody*)
8717       # PIC is the default on this platform
8718       # Common symbols not allowed in MH_DYLIB files
8719       lt_prog_compiler_pic='-fno-common'
8720       ;;
8721
8722     haiku*)
8723       # PIC is the default for Haiku.
8724       # The "-static" flag exists, but is broken.
8725       lt_prog_compiler_static=
8726       ;;
8727
8728     hpux*)
8729       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8730       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8731       # sets the default TLS model and affects inlining.
8732       case $host_cpu in
8733       hppa*64*)
8734         # +Z the default
8735         ;;
8736       *)
8737         lt_prog_compiler_pic='-fPIC'
8738         ;;
8739       esac
8740       ;;
8741
8742     interix[3-9]*)
8743       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8744       # Instead, we relocate shared libraries at runtime.
8745       ;;
8746
8747     msdosdjgpp*)
8748       # Just because we use GCC doesn't mean we suddenly get shared libraries
8749       # on systems that don't support them.
8750       lt_prog_compiler_can_build_shared=no
8751       enable_shared=no
8752       ;;
8753
8754     *nto* | *qnx*)
8755       # QNX uses GNU C++, but need to define -shared option too, otherwise
8756       # it will coredump.
8757       lt_prog_compiler_pic='-fPIC -shared'
8758       ;;
8759
8760     sysv4*MP*)
8761       if test -d /usr/nec; then
8762         lt_prog_compiler_pic=-Kconform_pic
8763       fi
8764       ;;
8765
8766     *)
8767       lt_prog_compiler_pic='-fPIC'
8768       ;;
8769     esac
8770
8771     case $cc_basename in
8772     nvcc*) # Cuda Compiler Driver 2.2
8773       lt_prog_compiler_wl='-Xlinker '
8774       if test -n "$lt_prog_compiler_pic"; then
8775         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8776       fi
8777       ;;
8778     esac
8779   else
8780     # PORTME Check for flag to pass linker flags through the system compiler.
8781     case $host_os in
8782     aix*)
8783       lt_prog_compiler_wl='-Wl,'
8784       if test "$host_cpu" = ia64; then
8785         # AIX 5 now supports IA64 processor
8786         lt_prog_compiler_static='-Bstatic'
8787       else
8788         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8789       fi
8790       ;;
8791
8792     mingw* | cygwin* | pw32* | os2* | cegcc*)
8793       # This hack is so that the source file can tell whether it is being
8794       # built for inclusion in a dll (and should export symbols for example).
8795       lt_prog_compiler_pic='-DDLL_EXPORT'
8796       ;;
8797
8798     hpux9* | hpux10* | hpux11*)
8799       lt_prog_compiler_wl='-Wl,'
8800       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8801       # not for PA HP-UX.
8802       case $host_cpu in
8803       hppa*64*|ia64*)
8804         # +Z the default
8805         ;;
8806       *)
8807         lt_prog_compiler_pic='+Z'
8808         ;;
8809       esac
8810       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8811       lt_prog_compiler_static='${wl}-a ${wl}archive'
8812       ;;
8813
8814     irix5* | irix6* | nonstopux*)
8815       lt_prog_compiler_wl='-Wl,'
8816       # PIC (with -KPIC) is the default.
8817       lt_prog_compiler_static='-non_shared'
8818       ;;
8819
8820     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8821       case $cc_basename in
8822       # old Intel for x86_64 which still supported -KPIC.
8823       ecc*)
8824         lt_prog_compiler_wl='-Wl,'
8825         lt_prog_compiler_pic='-KPIC'
8826         lt_prog_compiler_static='-static'
8827         ;;
8828       # icc used to be incompatible with GCC.
8829       # ICC 10 doesn't accept -KPIC any more.
8830       icc* | ifort*)
8831         lt_prog_compiler_wl='-Wl,'
8832         lt_prog_compiler_pic='-fPIC'
8833         lt_prog_compiler_static='-static'
8834         ;;
8835       # Lahey Fortran 8.1.
8836       lf95*)
8837         lt_prog_compiler_wl='-Wl,'
8838         lt_prog_compiler_pic='--shared'
8839         lt_prog_compiler_static='--static'
8840         ;;
8841       nagfor*)
8842         # NAG Fortran compiler
8843         lt_prog_compiler_wl='-Wl,-Wl,,'
8844         lt_prog_compiler_pic='-PIC'
8845         lt_prog_compiler_static='-Bstatic'
8846         ;;
8847       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8848         # Portland Group compilers (*not* the Pentium gcc compiler,
8849         # which looks to be a dead project)
8850         lt_prog_compiler_wl='-Wl,'
8851         lt_prog_compiler_pic='-fpic'
8852         lt_prog_compiler_static='-Bstatic'
8853         ;;
8854       ccc*)
8855         lt_prog_compiler_wl='-Wl,'
8856         # All Alpha code is PIC.
8857         lt_prog_compiler_static='-non_shared'
8858         ;;
8859       xl* | bgxl* | bgf* | mpixl*)
8860         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8861         lt_prog_compiler_wl='-Wl,'
8862         lt_prog_compiler_pic='-qpic'
8863         lt_prog_compiler_static='-qstaticlink'
8864         ;;
8865       *)
8866         case `$CC -V 2>&1 | sed 5q` in
8867         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8868           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8869           lt_prog_compiler_pic='-KPIC'
8870           lt_prog_compiler_static='-Bstatic'
8871           lt_prog_compiler_wl=''
8872           ;;
8873         *Sun\ F* | *Sun*Fortran*)
8874           lt_prog_compiler_pic='-KPIC'
8875           lt_prog_compiler_static='-Bstatic'
8876           lt_prog_compiler_wl='-Qoption ld '
8877           ;;
8878         *Sun\ C*)
8879           # Sun C 5.9
8880           lt_prog_compiler_pic='-KPIC'
8881           lt_prog_compiler_static='-Bstatic'
8882           lt_prog_compiler_wl='-Wl,'
8883           ;;
8884         *Intel*\ [CF]*Compiler*)
8885           lt_prog_compiler_wl='-Wl,'
8886           lt_prog_compiler_pic='-fPIC'
8887           lt_prog_compiler_static='-static'
8888           ;;
8889         *Portland\ Group*)
8890           lt_prog_compiler_wl='-Wl,'
8891           lt_prog_compiler_pic='-fpic'
8892           lt_prog_compiler_static='-Bstatic'
8893           ;;
8894         esac
8895         ;;
8896       esac
8897       ;;
8898
8899     newsos6)
8900       lt_prog_compiler_pic='-KPIC'
8901       lt_prog_compiler_static='-Bstatic'
8902       ;;
8903
8904     *nto* | *qnx*)
8905       # QNX uses GNU C++, but need to define -shared option too, otherwise
8906       # it will coredump.
8907       lt_prog_compiler_pic='-fPIC -shared'
8908       ;;
8909
8910     osf3* | osf4* | osf5*)
8911       lt_prog_compiler_wl='-Wl,'
8912       # All OSF/1 code is PIC.
8913       lt_prog_compiler_static='-non_shared'
8914       ;;
8915
8916     rdos*)
8917       lt_prog_compiler_static='-non_shared'
8918       ;;
8919
8920     solaris*)
8921       lt_prog_compiler_pic='-KPIC'
8922       lt_prog_compiler_static='-Bstatic'
8923       case $cc_basename in
8924       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8925         lt_prog_compiler_wl='-Qoption ld ';;
8926       *)
8927         lt_prog_compiler_wl='-Wl,';;
8928       esac
8929       ;;
8930
8931     sunos4*)
8932       lt_prog_compiler_wl='-Qoption ld '
8933       lt_prog_compiler_pic='-PIC'
8934       lt_prog_compiler_static='-Bstatic'
8935       ;;
8936
8937     sysv4 | sysv4.2uw2* | sysv4.3*)
8938       lt_prog_compiler_wl='-Wl,'
8939       lt_prog_compiler_pic='-KPIC'
8940       lt_prog_compiler_static='-Bstatic'
8941       ;;
8942
8943     sysv4*MP*)
8944       if test -d /usr/nec ;then
8945         lt_prog_compiler_pic='-Kconform_pic'
8946         lt_prog_compiler_static='-Bstatic'
8947       fi
8948       ;;
8949
8950     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8951       lt_prog_compiler_wl='-Wl,'
8952       lt_prog_compiler_pic='-KPIC'
8953       lt_prog_compiler_static='-Bstatic'
8954       ;;
8955
8956     unicos*)
8957       lt_prog_compiler_wl='-Wl,'
8958       lt_prog_compiler_can_build_shared=no
8959       ;;
8960
8961     uts4*)
8962       lt_prog_compiler_pic='-pic'
8963       lt_prog_compiler_static='-Bstatic'
8964       ;;
8965
8966     *)
8967       lt_prog_compiler_can_build_shared=no
8968       ;;
8969     esac
8970   fi
8971
8972 case $host_os in
8973   # For platforms which do not support PIC, -DPIC is meaningless:
8974   *djgpp*)
8975     lt_prog_compiler_pic=
8976     ;;
8977   *)
8978     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8979     ;;
8980 esac
8981
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8983 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8984 if ${lt_cv_prog_compiler_pic+:} false; then :
8985   $as_echo_n "(cached) " >&6
8986 else
8987   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8990 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8991 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8992
8993 #
8994 # Check to make sure the PIC flag actually works.
8995 #
8996 if test -n "$lt_prog_compiler_pic"; then
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8998 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8999 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   lt_cv_prog_compiler_pic_works=no
9003    ac_outfile=conftest.$ac_objext
9004    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9006    # Insert the option either (1) after the last *FLAGS variable, or
9007    # (2) before a word containing "conftest.", or (3) at the end.
9008    # Note that $ac_compile itself does not contain backslashes and begins
9009    # with a dollar sign (not a hyphen), so the echo should work correctly.
9010    # The option is referenced via a variable to avoid confusing sed.
9011    lt_compile=`echo "$ac_compile" | $SED \
9012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014    -e 's:$: $lt_compiler_flag:'`
9015    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016    (eval "$lt_compile" 2>conftest.err)
9017    ac_status=$?
9018    cat conftest.err >&5
9019    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020    if (exit $ac_status) && test -s "$ac_outfile"; then
9021      # The compiler can only warn and ignore the option if not recognized
9022      # So say no if there are warnings other than the usual output.
9023      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9024      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9025      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9026        lt_cv_prog_compiler_pic_works=yes
9027      fi
9028    fi
9029    $RM conftest*
9030
9031 fi
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9033 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9034
9035 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9036     case $lt_prog_compiler_pic in
9037      "" | " "*) ;;
9038      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9039      esac
9040 else
9041     lt_prog_compiler_pic=
9042      lt_prog_compiler_can_build_shared=no
9043 fi
9044
9045 fi
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057 #
9058 # Check to make sure the static flag actually works.
9059 #
9060 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9062 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9063 if ${lt_cv_prog_compiler_static_works+:} false; then :
9064   $as_echo_n "(cached) " >&6
9065 else
9066   lt_cv_prog_compiler_static_works=no
9067    save_LDFLAGS="$LDFLAGS"
9068    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9069    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9070    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9071      # The linker can only warn and ignore the option if not recognized
9072      # So say no if there are warnings
9073      if test -s conftest.err; then
9074        # Append any errors to the config.log.
9075        cat conftest.err 1>&5
9076        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9077        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9078        if diff conftest.exp conftest.er2 >/dev/null; then
9079          lt_cv_prog_compiler_static_works=yes
9080        fi
9081      else
9082        lt_cv_prog_compiler_static_works=yes
9083      fi
9084    fi
9085    $RM -r conftest*
9086    LDFLAGS="$save_LDFLAGS"
9087
9088 fi
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9090 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9091
9092 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9093     :
9094 else
9095     lt_prog_compiler_static=
9096 fi
9097
9098
9099
9100
9101
9102
9103
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9105 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9106 if ${lt_cv_prog_compiler_c_o+:} false; then :
9107   $as_echo_n "(cached) " >&6
9108 else
9109   lt_cv_prog_compiler_c_o=no
9110    $RM -r conftest 2>/dev/null
9111    mkdir conftest
9112    cd conftest
9113    mkdir out
9114    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9115
9116    lt_compiler_flag="-o out/conftest2.$ac_objext"
9117    # Insert the option either (1) after the last *FLAGS variable, or
9118    # (2) before a word containing "conftest.", or (3) at the end.
9119    # Note that $ac_compile itself does not contain backslashes and begins
9120    # with a dollar sign (not a hyphen), so the echo should work correctly.
9121    lt_compile=`echo "$ac_compile" | $SED \
9122    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9123    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9124    -e 's:$: $lt_compiler_flag:'`
9125    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9126    (eval "$lt_compile" 2>out/conftest.err)
9127    ac_status=$?
9128    cat out/conftest.err >&5
9129    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9131    then
9132      # The compiler can only warn and ignore the option if not recognized
9133      # So say no if there are warnings
9134      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9135      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9136      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9137        lt_cv_prog_compiler_c_o=yes
9138      fi
9139    fi
9140    chmod u+w . 2>&5
9141    $RM conftest*
9142    # SGI C++ compiler will create directory out/ii_files/ for
9143    # template instantiation
9144    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9145    $RM out/* && rmdir out
9146    cd ..
9147    $RM -r conftest
9148    $RM conftest*
9149
9150 fi
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9152 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9153
9154
9155
9156
9157
9158
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9161 if ${lt_cv_prog_compiler_c_o+:} false; then :
9162   $as_echo_n "(cached) " >&6
9163 else
9164   lt_cv_prog_compiler_c_o=no
9165    $RM -r conftest 2>/dev/null
9166    mkdir conftest
9167    cd conftest
9168    mkdir out
9169    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9170
9171    lt_compiler_flag="-o out/conftest2.$ac_objext"
9172    # Insert the option either (1) after the last *FLAGS variable, or
9173    # (2) before a word containing "conftest.", or (3) at the end.
9174    # Note that $ac_compile itself does not contain backslashes and begins
9175    # with a dollar sign (not a hyphen), so the echo should work correctly.
9176    lt_compile=`echo "$ac_compile" | $SED \
9177    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9178    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9179    -e 's:$: $lt_compiler_flag:'`
9180    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9181    (eval "$lt_compile" 2>out/conftest.err)
9182    ac_status=$?
9183    cat out/conftest.err >&5
9184    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9186    then
9187      # The compiler can only warn and ignore the option if not recognized
9188      # So say no if there are warnings
9189      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9190      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9191      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9192        lt_cv_prog_compiler_c_o=yes
9193      fi
9194    fi
9195    chmod u+w . 2>&5
9196    $RM conftest*
9197    # SGI C++ compiler will create directory out/ii_files/ for
9198    # template instantiation
9199    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9200    $RM out/* && rmdir out
9201    cd ..
9202    $RM -r conftest
9203    $RM conftest*
9204
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9207 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9208
9209
9210
9211
9212 hard_links="nottested"
9213 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9214   # do not overwrite the value of need_locks provided by the user
9215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9216 $as_echo_n "checking if we can lock with hard links... " >&6; }
9217   hard_links=yes
9218   $RM conftest*
9219   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9220   touch conftest.a
9221   ln conftest.a conftest.b 2>&5 || hard_links=no
9222   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9224 $as_echo "$hard_links" >&6; }
9225   if test "$hard_links" = no; then
9226     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9227 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9228     need_locks=warn
9229   fi
9230 else
9231   need_locks=no
9232 fi
9233
9234
9235
9236
9237
9238
9239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9240 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9241
9242   runpath_var=
9243   allow_undefined_flag=
9244   always_export_symbols=no
9245   archive_cmds=
9246   archive_expsym_cmds=
9247   compiler_needs_object=no
9248   enable_shared_with_static_runtimes=no
9249   export_dynamic_flag_spec=
9250   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9251   hardcode_automatic=no
9252   hardcode_direct=no
9253   hardcode_direct_absolute=no
9254   hardcode_libdir_flag_spec=
9255   hardcode_libdir_separator=
9256   hardcode_minus_L=no
9257   hardcode_shlibpath_var=unsupported
9258   inherit_rpath=no
9259   link_all_deplibs=unknown
9260   module_cmds=
9261   module_expsym_cmds=
9262   old_archive_from_new_cmds=
9263   old_archive_from_expsyms_cmds=
9264   thread_safe_flag_spec=
9265   whole_archive_flag_spec=
9266   # include_expsyms should be a list of space-separated symbols to be *always*
9267   # included in the symbol list
9268   include_expsyms=
9269   # exclude_expsyms can be an extended regexp of symbols to exclude
9270   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9271   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9272   # as well as any symbol that contains `d'.
9273   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9274   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9275   # platforms (ab)use it in PIC code, but their linkers get confused if
9276   # the symbol is explicitly referenced.  Since portable code cannot
9277   # rely on this symbol name, it's probably fine to never include it in
9278   # preloaded symbol tables.
9279   # Exclude shared library initialization/finalization symbols.
9280   extract_expsyms_cmds=
9281
9282   case $host_os in
9283   cygwin* | mingw* | pw32* | cegcc*)
9284     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9285     # When not using gcc, we currently assume that we are using
9286     # Microsoft Visual C++.
9287     if test "$GCC" != yes; then
9288       with_gnu_ld=no
9289     fi
9290     ;;
9291   interix*)
9292     # we just hope/assume this is gcc and not c89 (= MSVC++)
9293     with_gnu_ld=yes
9294     ;;
9295   openbsd*)
9296     with_gnu_ld=no
9297     ;;
9298   linux* | k*bsd*-gnu | gnu*)
9299     link_all_deplibs=no
9300     ;;
9301   esac
9302
9303   ld_shlibs=yes
9304
9305   # On some targets, GNU ld is compatible enough with the native linker
9306   # that we're better off using the native interface for both.
9307   lt_use_gnu_ld_interface=no
9308   if test "$with_gnu_ld" = yes; then
9309     case $host_os in
9310       aix*)
9311         # The AIX port of GNU ld has always aspired to compatibility
9312         # with the native linker.  However, as the warning in the GNU ld
9313         # block says, versions before 2.19.5* couldn't really create working
9314         # shared libraries, regardless of the interface used.
9315         case `$LD -v 2>&1` in
9316           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9317           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9318           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9319           *)
9320             lt_use_gnu_ld_interface=yes
9321             ;;
9322         esac
9323         ;;
9324       *)
9325         lt_use_gnu_ld_interface=yes
9326         ;;
9327     esac
9328   fi
9329
9330   if test "$lt_use_gnu_ld_interface" = yes; then
9331     # If archive_cmds runs LD, not CC, wlarc should be empty
9332     wlarc='${wl}'
9333
9334     # Set some defaults for GNU ld with shared library support. These
9335     # are reset later if shared libraries are not supported. Putting them
9336     # here allows them to be overridden if necessary.
9337     runpath_var=LD_RUN_PATH
9338     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9339     export_dynamic_flag_spec='${wl}--export-dynamic'
9340     # ancient GNU ld didn't support --whole-archive et. al.
9341     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9342       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9343     else
9344       whole_archive_flag_spec=
9345     fi
9346     supports_anon_versioning=no
9347     case `$LD -v 2>&1` in
9348       *GNU\ gold*) supports_anon_versioning=yes ;;
9349       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9350       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9351       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9352       *\ 2.11.*) ;; # other 2.11 versions
9353       *) supports_anon_versioning=yes ;;
9354     esac
9355
9356     # See if GNU ld supports shared libraries.
9357     case $host_os in
9358     aix[3-9]*)
9359       # On AIX/PPC, the GNU linker is very broken
9360       if test "$host_cpu" != ia64; then
9361         ld_shlibs=no
9362         cat <<_LT_EOF 1>&2
9363
9364 *** Warning: the GNU linker, at least up to release 2.19, is reported
9365 *** to be unable to reliably create shared libraries on AIX.
9366 *** Therefore, libtool is disabling shared libraries support.  If you
9367 *** really care for shared libraries, you may want to install binutils
9368 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9369 *** You will then need to restart the configuration process.
9370
9371 _LT_EOF
9372       fi
9373       ;;
9374
9375     amigaos*)
9376       case $host_cpu in
9377       powerpc)
9378             # see comment about AmigaOS4 .so support
9379             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380             archive_expsym_cmds=''
9381         ;;
9382       m68k)
9383             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)'
9384             hardcode_libdir_flag_spec='-L$libdir'
9385             hardcode_minus_L=yes
9386         ;;
9387       esac
9388       ;;
9389
9390     beos*)
9391       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9392         allow_undefined_flag=unsupported
9393         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9394         # support --undefined.  This deserves some investigation.  FIXME
9395         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9396       else
9397         ld_shlibs=no
9398       fi
9399       ;;
9400
9401     cygwin* | mingw* | pw32* | cegcc*)
9402       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9403       # as there is no search path for DLLs.
9404       hardcode_libdir_flag_spec='-L$libdir'
9405       export_dynamic_flag_spec='${wl}--export-all-symbols'
9406       allow_undefined_flag=unsupported
9407       always_export_symbols=no
9408       enable_shared_with_static_runtimes=yes
9409       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'
9410       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9411
9412       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9413         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9414         # If the export-symbols file already is a .def file (1st line
9415         # is EXPORTS), use it as is; otherwise, prepend...
9416         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9417           cp $export_symbols $output_objdir/$soname.def;
9418         else
9419           echo EXPORTS > $output_objdir/$soname.def;
9420           cat $export_symbols >> $output_objdir/$soname.def;
9421         fi~
9422         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9423       else
9424         ld_shlibs=no
9425       fi
9426       ;;
9427
9428     haiku*)
9429       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430       link_all_deplibs=yes
9431       ;;
9432
9433     interix[3-9]*)
9434       hardcode_direct=no
9435       hardcode_shlibpath_var=no
9436       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9437       export_dynamic_flag_spec='${wl}-E'
9438       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9439       # Instead, shared libraries are loaded at an image base (0x10000000 by
9440       # default) and relocated if they conflict, which is a slow very memory
9441       # consuming and fragmenting process.  To avoid this, we pick a random,
9442       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9443       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9444       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9445       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'
9446       ;;
9447
9448     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9449       tmp_diet=no
9450       if test "$host_os" = linux-dietlibc; then
9451         case $cc_basename in
9452           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9453         esac
9454       fi
9455       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9456          && test "$tmp_diet" = no
9457       then
9458         tmp_addflag=' $pic_flag'
9459         tmp_sharedflag='-shared'
9460         case $cc_basename,$host_cpu in
9461         pgcc*)                          # Portland Group C compiler
9462           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'
9463           tmp_addflag=' $pic_flag'
9464           ;;
9465         pgf77* | pgf90* | pgf95* | pgfortran*)
9466                                         # Portland Group f77 and f90 compilers
9467           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'
9468           tmp_addflag=' $pic_flag -Mnomain' ;;
9469         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9470           tmp_addflag=' -i_dynamic' ;;
9471         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9472           tmp_addflag=' -i_dynamic -nofor_main' ;;
9473         ifc* | ifort*)                  # Intel Fortran compiler
9474           tmp_addflag=' -nofor_main' ;;
9475         lf95*)                          # Lahey Fortran 8.1
9476           whole_archive_flag_spec=
9477           tmp_sharedflag='--shared' ;;
9478         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9479           tmp_sharedflag='-qmkshrobj'
9480           tmp_addflag= ;;
9481         nvcc*)  # Cuda Compiler Driver 2.2
9482           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'
9483           compiler_needs_object=yes
9484           ;;
9485         esac
9486         case `$CC -V 2>&1 | sed 5q` in
9487         *Sun\ C*)                       # Sun C 5.9
9488           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'
9489           compiler_needs_object=yes
9490           tmp_sharedflag='-G' ;;
9491         *Sun\ F*)                       # Sun Fortran 8.3
9492           tmp_sharedflag='-G' ;;
9493         esac
9494         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495
9496         if test "x$supports_anon_versioning" = xyes; then
9497           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9498             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9499             echo "local: *; };" >> $output_objdir/$libname.ver~
9500             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9501         fi
9502
9503         case $cc_basename in
9504         xlf* | bgf* | bgxlf* | mpixlf*)
9505           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9506           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9507           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9509           if test "x$supports_anon_versioning" = xyes; then
9510             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9511               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9512               echo "local: *; };" >> $output_objdir/$libname.ver~
9513               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9514           fi
9515           ;;
9516         esac
9517       else
9518         ld_shlibs=no
9519       fi
9520       ;;
9521
9522     netbsd* | netbsdelf*-gnu)
9523       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9524         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9525         wlarc=
9526       else
9527         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9529       fi
9530       ;;
9531
9532     solaris*)
9533       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9534         ld_shlibs=no
9535         cat <<_LT_EOF 1>&2
9536
9537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9538 *** create shared libraries on Solaris systems.  Therefore, libtool
9539 *** is disabling shared libraries support.  We urge you to upgrade GNU
9540 *** binutils to release 2.9.1 or newer.  Another option is to modify
9541 *** your PATH or compiler configuration so that the native linker is
9542 *** used, and then restart.
9543
9544 _LT_EOF
9545       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548       else
9549         ld_shlibs=no
9550       fi
9551       ;;
9552
9553     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9554       case `$LD -v 2>&1` in
9555         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9556         ld_shlibs=no
9557         cat <<_LT_EOF 1>&2
9558
9559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9560 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9561 *** is disabling shared libraries support.  We urge you to upgrade GNU
9562 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9563 *** your PATH or compiler configuration so that the native linker is
9564 *** used, and then restart.
9565
9566 _LT_EOF
9567         ;;
9568         *)
9569           # For security reasons, it is highly recommended that you always
9570           # use absolute paths for naming shared libraries, and exclude the
9571           # DT_RUNPATH tag from executables and libraries.  But doing so
9572           # requires that you compile everything twice, which is a pain.
9573           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9577           else
9578             ld_shlibs=no
9579           fi
9580         ;;
9581       esac
9582       ;;
9583
9584     sunos4*)
9585       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9586       wlarc=
9587       hardcode_direct=yes
9588       hardcode_shlibpath_var=no
9589       ;;
9590
9591     *)
9592       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9593         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9595       else
9596         ld_shlibs=no
9597       fi
9598       ;;
9599     esac
9600
9601     if test "$ld_shlibs" = no; then
9602       runpath_var=
9603       hardcode_libdir_flag_spec=
9604       export_dynamic_flag_spec=
9605       whole_archive_flag_spec=
9606     fi
9607   else
9608     # PORTME fill in a description of your system's linker (not GNU ld)
9609     case $host_os in
9610     aix3*)
9611       allow_undefined_flag=unsupported
9612       always_export_symbols=yes
9613       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'
9614       # Note: this linker hardcodes the directories in LIBPATH if there
9615       # are no directories specified by -L.
9616       hardcode_minus_L=yes
9617       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9618         # Neither direct hardcoding nor static linking is supported with a
9619         # broken collect2.
9620         hardcode_direct=unsupported
9621       fi
9622       ;;
9623
9624     aix[4-9]*)
9625       if test "$host_cpu" = ia64; then
9626         # On IA64, the linker does run time linking by default, so we don't
9627         # have to do anything special.
9628         aix_use_runtimelinking=no
9629         exp_sym_flag='-Bexport'
9630         no_entry_flag=""
9631       else
9632         # If we're using GNU nm, then we don't want the "-C" option.
9633         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9634         # Also, AIX nm treats weak defined symbols like other global
9635         # defined symbols, whereas GNU nm marks them as "W".
9636         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9637           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'
9638         else
9639           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'
9640         fi
9641         aix_use_runtimelinking=no
9642
9643         # Test if we are trying to use run time linking or normal
9644         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9645         # need to do runtime linking.
9646         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9647           for ld_flag in $LDFLAGS; do
9648           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9649             aix_use_runtimelinking=yes
9650             break
9651           fi
9652           done
9653           ;;
9654         esac
9655
9656         exp_sym_flag='-bexport'
9657         no_entry_flag='-bnoentry'
9658       fi
9659
9660       # When large executables or shared objects are built, AIX ld can
9661       # have problems creating the table of contents.  If linking a library
9662       # or program results in "error TOC overflow" add -mminimal-toc to
9663       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9664       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9665
9666       archive_cmds=''
9667       hardcode_direct=yes
9668       hardcode_direct_absolute=yes
9669       hardcode_libdir_separator=':'
9670       link_all_deplibs=yes
9671       file_list_spec='${wl}-f,'
9672
9673       if test "$GCC" = yes; then
9674         case $host_os in aix4.[012]|aix4.[012].*)
9675         # We only want to do this on AIX 4.2 and lower, the check
9676         # below for broken collect2 doesn't work under 4.3+
9677           collect2name=`${CC} -print-prog-name=collect2`
9678           if test -f "$collect2name" &&
9679            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9680           then
9681           # We have reworked collect2
9682           :
9683           else
9684           # We have old collect2
9685           hardcode_direct=unsupported
9686           # It fails to find uninstalled libraries when the uninstalled
9687           # path is not listed in the libpath.  Setting hardcode_minus_L
9688           # to unsupported forces relinking
9689           hardcode_minus_L=yes
9690           hardcode_libdir_flag_spec='-L$libdir'
9691           hardcode_libdir_separator=
9692           fi
9693           ;;
9694         esac
9695         shared_flag='-shared'
9696         if test "$aix_use_runtimelinking" = yes; then
9697           shared_flag="$shared_flag "'${wl}-G'
9698         fi
9699         link_all_deplibs=no
9700       else
9701         # not using gcc
9702         if test "$host_cpu" = ia64; then
9703         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9704         # chokes on -Wl,-G. The following line is correct:
9705           shared_flag='-G'
9706         else
9707           if test "$aix_use_runtimelinking" = yes; then
9708             shared_flag='${wl}-G'
9709           else
9710             shared_flag='${wl}-bM:SRE'
9711           fi
9712         fi
9713       fi
9714
9715       export_dynamic_flag_spec='${wl}-bexpall'
9716       # It seems that -bexpall does not export symbols beginning with
9717       # underscore (_), so it is better to generate a list of symbols to export.
9718       always_export_symbols=yes
9719       if test "$aix_use_runtimelinking" = yes; then
9720         # Warning - without using the other runtime loading flags (-brtl),
9721         # -berok will link without error, but may produce a broken library.
9722         allow_undefined_flag='-berok'
9723         # Determine the default libpath from the value encoded in an
9724         # empty executable.
9725         if test "${lt_cv_aix_libpath+set}" = set; then
9726   aix_libpath=$lt_cv_aix_libpath
9727 else
9728   if ${lt_cv_aix_libpath_+:} false; then :
9729   $as_echo_n "(cached) " >&6
9730 else
9731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h.  */
9733
9734 int
9735 main ()
9736 {
9737
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 if ac_fn_c_try_link "$LINENO"; then :
9743
9744   lt_aix_libpath_sed='
9745       /Import File Strings/,/^$/ {
9746           /^0/ {
9747               s/^0  *\([^ ]*\) *$/\1/
9748               p
9749           }
9750       }'
9751   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9752   # Check for a 64-bit object if we didn't find anything.
9753   if test -z "$lt_cv_aix_libpath_"; then
9754     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9755   fi
9756 fi
9757 rm -f core conftest.err conftest.$ac_objext \
9758     conftest$ac_exeext conftest.$ac_ext
9759   if test -z "$lt_cv_aix_libpath_"; then
9760     lt_cv_aix_libpath_="/usr/lib:/lib"
9761   fi
9762
9763 fi
9764
9765   aix_libpath=$lt_cv_aix_libpath_
9766 fi
9767
9768         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9769         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"
9770       else
9771         if test "$host_cpu" = ia64; then
9772           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9773           allow_undefined_flag="-z nodefs"
9774           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"
9775         else
9776          # Determine the default libpath from the value encoded in an
9777          # empty executable.
9778          if test "${lt_cv_aix_libpath+set}" = set; then
9779   aix_libpath=$lt_cv_aix_libpath
9780 else
9781   if ${lt_cv_aix_libpath_+:} false; then :
9782   $as_echo_n "(cached) " >&6
9783 else
9784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h.  */
9786
9787 int
9788 main ()
9789 {
9790
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 if ac_fn_c_try_link "$LINENO"; then :
9796
9797   lt_aix_libpath_sed='
9798       /Import File Strings/,/^$/ {
9799           /^0/ {
9800               s/^0  *\([^ ]*\) *$/\1/
9801               p
9802           }
9803       }'
9804   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9805   # Check for a 64-bit object if we didn't find anything.
9806   if test -z "$lt_cv_aix_libpath_"; then
9807     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9808   fi
9809 fi
9810 rm -f core conftest.err conftest.$ac_objext \
9811     conftest$ac_exeext conftest.$ac_ext
9812   if test -z "$lt_cv_aix_libpath_"; then
9813     lt_cv_aix_libpath_="/usr/lib:/lib"
9814   fi
9815
9816 fi
9817
9818   aix_libpath=$lt_cv_aix_libpath_
9819 fi
9820
9821          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9822           # Warning - without using the other run time loading flags,
9823           # -berok will link without error, but may produce a broken library.
9824           no_undefined_flag=' ${wl}-bernotok'
9825           allow_undefined_flag=' ${wl}-berok'
9826           if test "$with_gnu_ld" = yes; then
9827             # We only use this code for GNU lds that support --whole-archive.
9828             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9829           else
9830             # Exported symbols can be pulled into shared objects from archives
9831             whole_archive_flag_spec='$convenience'
9832           fi
9833           archive_cmds_need_lc=yes
9834           # This is similar to how AIX traditionally builds its shared libraries.
9835           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'
9836         fi
9837       fi
9838       ;;
9839
9840     amigaos*)
9841       case $host_cpu in
9842       powerpc)
9843             # see comment about AmigaOS4 .so support
9844             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845             archive_expsym_cmds=''
9846         ;;
9847       m68k)
9848             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)'
9849             hardcode_libdir_flag_spec='-L$libdir'
9850             hardcode_minus_L=yes
9851         ;;
9852       esac
9853       ;;
9854
9855     bsdi[45]*)
9856       export_dynamic_flag_spec=-rdynamic
9857       ;;
9858
9859     cygwin* | mingw* | pw32* | cegcc*)
9860       # When not using gcc, we currently assume that we are using
9861       # Microsoft Visual C++.
9862       # hardcode_libdir_flag_spec is actually meaningless, as there is
9863       # no search path for DLLs.
9864       case $cc_basename in
9865       cl*)
9866         # Native MSVC
9867         hardcode_libdir_flag_spec=' '
9868         allow_undefined_flag=unsupported
9869         always_export_symbols=yes
9870         file_list_spec='@'
9871         # Tell ltmain to make .lib files, not .a files.
9872         libext=lib
9873         # Tell ltmain to make .dll files, not .so files.
9874         shrext_cmds=".dll"
9875         # FIXME: Setting linknames here is a bad hack.
9876         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9877         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9878             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9879           else
9880             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9881           fi~
9882           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9883           linknames='
9884         # The linker will not automatically build a static lib if we build a DLL.
9885         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9886         enable_shared_with_static_runtimes=yes
9887         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9888         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9889         # Don't use ranlib
9890         old_postinstall_cmds='chmod 644 $oldlib'
9891         postlink_cmds='lt_outputfile="@OUTPUT@"~
9892           lt_tool_outputfile="@TOOL_OUTPUT@"~
9893           case $lt_outputfile in
9894             *.exe|*.EXE) ;;
9895             *)
9896               lt_outputfile="$lt_outputfile.exe"
9897               lt_tool_outputfile="$lt_tool_outputfile.exe"
9898               ;;
9899           esac~
9900           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9901             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9902             $RM "$lt_outputfile.manifest";
9903           fi'
9904         ;;
9905       *)
9906         # Assume MSVC wrapper
9907         hardcode_libdir_flag_spec=' '
9908         allow_undefined_flag=unsupported
9909         # Tell ltmain to make .lib files, not .a files.
9910         libext=lib
9911         # Tell ltmain to make .dll files, not .so files.
9912         shrext_cmds=".dll"
9913         # FIXME: Setting linknames here is a bad hack.
9914         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9915         # The linker will automatically build a .lib file if we build a DLL.
9916         old_archive_from_new_cmds='true'
9917         # FIXME: Should let the user specify the lib program.
9918         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9919         enable_shared_with_static_runtimes=yes
9920         ;;
9921       esac
9922       ;;
9923
9924     darwin* | rhapsody*)
9925
9926
9927   archive_cmds_need_lc=no
9928   hardcode_direct=no
9929   hardcode_automatic=yes
9930   hardcode_shlibpath_var=unsupported
9931   if test "$lt_cv_ld_force_load" = "yes"; then
9932     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\"`'
9933
9934   else
9935     whole_archive_flag_spec=''
9936   fi
9937   link_all_deplibs=yes
9938   allow_undefined_flag="$_lt_dar_allow_undefined"
9939   case $cc_basename in
9940      ifort*) _lt_dar_can_shared=yes ;;
9941      *) _lt_dar_can_shared=$GCC ;;
9942   esac
9943   if test "$_lt_dar_can_shared" = "yes"; then
9944     output_verbose_link_cmd=func_echo_all
9945     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9946     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9947     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}"
9948     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}"
9949
9950   else
9951   ld_shlibs=no
9952   fi
9953
9954       ;;
9955
9956     dgux*)
9957       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958       hardcode_libdir_flag_spec='-L$libdir'
9959       hardcode_shlibpath_var=no
9960       ;;
9961
9962     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9963     # support.  Future versions do this automatically, but an explicit c++rt0.o
9964     # does not break anything, and helps significantly (at the cost of a little
9965     # extra space).
9966     freebsd2.2*)
9967       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9968       hardcode_libdir_flag_spec='-R$libdir'
9969       hardcode_direct=yes
9970       hardcode_shlibpath_var=no
9971       ;;
9972
9973     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9974     freebsd2.*)
9975       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9976       hardcode_direct=yes
9977       hardcode_minus_L=yes
9978       hardcode_shlibpath_var=no
9979       ;;
9980
9981     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9982     freebsd* | dragonfly*)
9983       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9984       hardcode_libdir_flag_spec='-R$libdir'
9985       hardcode_direct=yes
9986       hardcode_shlibpath_var=no
9987       ;;
9988
9989     hpux9*)
9990       if test "$GCC" = yes; then
9991         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'
9992       else
9993         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'
9994       fi
9995       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9996       hardcode_libdir_separator=:
9997       hardcode_direct=yes
9998
9999       # hardcode_minus_L: Not really in the search PATH,
10000       # but as the default location of the library.
10001       hardcode_minus_L=yes
10002       export_dynamic_flag_spec='${wl}-E'
10003       ;;
10004
10005     hpux10*)
10006       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10007         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10008       else
10009         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10010       fi
10011       if test "$with_gnu_ld" = no; then
10012         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10013         hardcode_libdir_separator=:
10014         hardcode_direct=yes
10015         hardcode_direct_absolute=yes
10016         export_dynamic_flag_spec='${wl}-E'
10017         # hardcode_minus_L: Not really in the search PATH,
10018         # but as the default location of the library.
10019         hardcode_minus_L=yes
10020       fi
10021       ;;
10022
10023     hpux11*)
10024       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10025         case $host_cpu in
10026         hppa*64*)
10027           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028           ;;
10029         ia64*)
10030           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10031           ;;
10032         *)
10033           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10034           ;;
10035         esac
10036       else
10037         case $host_cpu in
10038         hppa*64*)
10039           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10040           ;;
10041         ia64*)
10042           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10043           ;;
10044         *)
10045
10046           # Older versions of the 11.00 compiler do not understand -b yet
10047           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10048           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10049 $as_echo_n "checking if $CC understands -b... " >&6; }
10050 if ${lt_cv_prog_compiler__b+:} false; then :
10051   $as_echo_n "(cached) " >&6
10052 else
10053   lt_cv_prog_compiler__b=no
10054    save_LDFLAGS="$LDFLAGS"
10055    LDFLAGS="$LDFLAGS -b"
10056    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10057    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10058      # The linker can only warn and ignore the option if not recognized
10059      # So say no if there are warnings
10060      if test -s conftest.err; then
10061        # Append any errors to the config.log.
10062        cat conftest.err 1>&5
10063        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10064        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10065        if diff conftest.exp conftest.er2 >/dev/null; then
10066          lt_cv_prog_compiler__b=yes
10067        fi
10068      else
10069        lt_cv_prog_compiler__b=yes
10070      fi
10071    fi
10072    $RM -r conftest*
10073    LDFLAGS="$save_LDFLAGS"
10074
10075 fi
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10077 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10078
10079 if test x"$lt_cv_prog_compiler__b" = xyes; then
10080     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10081 else
10082     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10083 fi
10084
10085           ;;
10086         esac
10087       fi
10088       if test "$with_gnu_ld" = no; then
10089         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10090         hardcode_libdir_separator=:
10091
10092         case $host_cpu in
10093         hppa*64*|ia64*)
10094           hardcode_direct=no
10095           hardcode_shlibpath_var=no
10096           ;;
10097         *)
10098           hardcode_direct=yes
10099           hardcode_direct_absolute=yes
10100           export_dynamic_flag_spec='${wl}-E'
10101
10102           # hardcode_minus_L: Not really in the search PATH,
10103           # but as the default location of the library.
10104           hardcode_minus_L=yes
10105           ;;
10106         esac
10107       fi
10108       ;;
10109
10110     irix5* | irix6* | nonstopux*)
10111       if test "$GCC" = yes; then
10112         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'
10113         # Try to use the -exported_symbol ld option, if it does not
10114         # work, assume that -exports_file does not work either and
10115         # implicitly export all symbols.
10116         # This should be the same for all languages, so no per-tag cache variable.
10117         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10118 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10119 if ${lt_cv_irix_exported_symbol+:} false; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122   save_LDFLAGS="$LDFLAGS"
10123            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10124            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h.  */
10126 int foo (void) { return 0; }
10127 _ACEOF
10128 if ac_fn_c_try_link "$LINENO"; then :
10129   lt_cv_irix_exported_symbol=yes
10130 else
10131   lt_cv_irix_exported_symbol=no
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext \
10134     conftest$ac_exeext conftest.$ac_ext
10135            LDFLAGS="$save_LDFLAGS"
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10138 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10139         if test "$lt_cv_irix_exported_symbol" = yes; then
10140           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'
10141         fi
10142       else
10143         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'
10144         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'
10145       fi
10146       archive_cmds_need_lc='no'
10147       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148       hardcode_libdir_separator=:
10149       inherit_rpath=yes
10150       link_all_deplibs=yes
10151       ;;
10152
10153     netbsd* | netbsdelf*-gnu)
10154       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10155         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10156       else
10157         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10158       fi
10159       hardcode_libdir_flag_spec='-R$libdir'
10160       hardcode_direct=yes
10161       hardcode_shlibpath_var=no
10162       ;;
10163
10164     newsos6)
10165       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166       hardcode_direct=yes
10167       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10168       hardcode_libdir_separator=:
10169       hardcode_shlibpath_var=no
10170       ;;
10171
10172     *nto* | *qnx*)
10173       ;;
10174
10175     openbsd*)
10176       if test -f /usr/libexec/ld.so; then
10177         hardcode_direct=yes
10178         hardcode_shlibpath_var=no
10179         hardcode_direct_absolute=yes
10180         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10181           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10182           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10183           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10184           export_dynamic_flag_spec='${wl}-E'
10185         else
10186           case $host_os in
10187            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10188              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10189              hardcode_libdir_flag_spec='-R$libdir'
10190              ;;
10191            *)
10192              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10193              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10194              ;;
10195           esac
10196         fi
10197       else
10198         ld_shlibs=no
10199       fi
10200       ;;
10201
10202     os2*)
10203       hardcode_libdir_flag_spec='-L$libdir'
10204       hardcode_minus_L=yes
10205       allow_undefined_flag=unsupported
10206       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'
10207       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10208       ;;
10209
10210     osf3*)
10211       if test "$GCC" = yes; then
10212         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10213         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'
10214       else
10215         allow_undefined_flag=' -expect_unresolved \*'
10216         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'
10217       fi
10218       archive_cmds_need_lc='no'
10219       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10220       hardcode_libdir_separator=:
10221       ;;
10222
10223     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10224       if test "$GCC" = yes; then
10225         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10226         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'
10227         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10228       else
10229         allow_undefined_flag=' -expect_unresolved \*'
10230         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'
10231         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~
10232         $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'
10233
10234         # Both c and cxx compiler support -rpath directly
10235         hardcode_libdir_flag_spec='-rpath $libdir'
10236       fi
10237       archive_cmds_need_lc='no'
10238       hardcode_libdir_separator=:
10239       ;;
10240
10241     solaris*)
10242       no_undefined_flag=' -z defs'
10243       if test "$GCC" = yes; then
10244         wlarc='${wl}'
10245         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10246         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10247           $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'
10248       else
10249         case `$CC -V 2>&1` in
10250         *"Compilers 5.0"*)
10251           wlarc=''
10252           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10254           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10255           ;;
10256         *)
10257           wlarc='${wl}'
10258           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10259           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10260           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10261           ;;
10262         esac
10263       fi
10264       hardcode_libdir_flag_spec='-R$libdir'
10265       hardcode_shlibpath_var=no
10266       case $host_os in
10267       solaris2.[0-5] | solaris2.[0-5].*) ;;
10268       *)
10269         # The compiler driver will combine and reorder linker options,
10270         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10271         # but is careful enough not to reorder.
10272         # Supported since Solaris 2.6 (maybe 2.5.1?)
10273         if test "$GCC" = yes; then
10274           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10275         else
10276           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10277         fi
10278         ;;
10279       esac
10280       link_all_deplibs=yes
10281       ;;
10282
10283     sunos4*)
10284       if test "x$host_vendor" = xsequent; then
10285         # Use $CC to link under sequent, because it throws in some extra .o
10286         # files that make .init and .fini sections work.
10287         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10288       else
10289         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10290       fi
10291       hardcode_libdir_flag_spec='-L$libdir'
10292       hardcode_direct=yes
10293       hardcode_minus_L=yes
10294       hardcode_shlibpath_var=no
10295       ;;
10296
10297     sysv4)
10298       case $host_vendor in
10299         sni)
10300           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301           hardcode_direct=yes # is this really true???
10302         ;;
10303         siemens)
10304           ## LD is ld it makes a PLAMLIB
10305           ## CC just makes a GrossModule.
10306           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10307           reload_cmds='$CC -r -o $output$reload_objs'
10308           hardcode_direct=no
10309         ;;
10310         motorola)
10311           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10313         ;;
10314       esac
10315       runpath_var='LD_RUN_PATH'
10316       hardcode_shlibpath_var=no
10317       ;;
10318
10319     sysv4.3*)
10320       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321       hardcode_shlibpath_var=no
10322       export_dynamic_flag_spec='-Bexport'
10323       ;;
10324
10325     sysv4*MP*)
10326       if test -d /usr/nec; then
10327         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10328         hardcode_shlibpath_var=no
10329         runpath_var=LD_RUN_PATH
10330         hardcode_runpath_var=yes
10331         ld_shlibs=yes
10332       fi
10333       ;;
10334
10335     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10336       no_undefined_flag='${wl}-z,text'
10337       archive_cmds_need_lc=no
10338       hardcode_shlibpath_var=no
10339       runpath_var='LD_RUN_PATH'
10340
10341       if test "$GCC" = yes; then
10342         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10343         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344       else
10345         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347       fi
10348       ;;
10349
10350     sysv5* | sco3.2v5* | sco5v6*)
10351       # Note: We can NOT use -z defs as we might desire, because we do not
10352       # link with -lc, and that would cause any symbols used from libc to
10353       # always be unresolved, which means just about no library would
10354       # ever link correctly.  If we're not using GNU ld we use -z text
10355       # though, which does catch some bad symbols but isn't as heavy-handed
10356       # as -z defs.
10357       no_undefined_flag='${wl}-z,text'
10358       allow_undefined_flag='${wl}-z,nodefs'
10359       archive_cmds_need_lc=no
10360       hardcode_shlibpath_var=no
10361       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10362       hardcode_libdir_separator=':'
10363       link_all_deplibs=yes
10364       export_dynamic_flag_spec='${wl}-Bexport'
10365       runpath_var='LD_RUN_PATH'
10366
10367       if test "$GCC" = yes; then
10368         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10370       else
10371         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10373       fi
10374       ;;
10375
10376     uts4*)
10377       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378       hardcode_libdir_flag_spec='-L$libdir'
10379       hardcode_shlibpath_var=no
10380       ;;
10381
10382     *)
10383       ld_shlibs=no
10384       ;;
10385     esac
10386
10387     if test x$host_vendor = xsni; then
10388       case $host in
10389       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10390         export_dynamic_flag_spec='${wl}-Blargedynsym'
10391         ;;
10392       esac
10393     fi
10394   fi
10395
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10397 $as_echo "$ld_shlibs" >&6; }
10398 test "$ld_shlibs" = no && can_build_shared=no
10399
10400 with_gnu_ld=$with_gnu_ld
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416 #
10417 # Do we need to explicitly link libc?
10418 #
10419 case "x$archive_cmds_need_lc" in
10420 x|xyes)
10421   # Assume -lc should be added
10422   archive_cmds_need_lc=yes
10423
10424   if test "$enable_shared" = yes && test "$GCC" = yes; then
10425     case $archive_cmds in
10426     *'~'*)
10427       # FIXME: we may have to deal with multi-command sequences.
10428       ;;
10429     '$CC '*)
10430       # Test whether the compiler implicitly links with -lc since on some
10431       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10432       # to ld, don't add -lc before -lgcc.
10433       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10434 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10435 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10436   $as_echo_n "(cached) " >&6
10437 else
10438   $RM conftest*
10439         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10440
10441         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10442   (eval $ac_compile) 2>&5
10443   ac_status=$?
10444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10445   test $ac_status = 0; } 2>conftest.err; then
10446           soname=conftest
10447           lib=conftest
10448           libobjs=conftest.$ac_objext
10449           deplibs=
10450           wl=$lt_prog_compiler_wl
10451           pic_flag=$lt_prog_compiler_pic
10452           compiler_flags=-v
10453           linker_flags=-v
10454           verstring=
10455           output_objdir=.
10456           libname=conftest
10457           lt_save_allow_undefined_flag=$allow_undefined_flag
10458           allow_undefined_flag=
10459           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10460   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10461   ac_status=$?
10462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10463   test $ac_status = 0; }
10464           then
10465             lt_cv_archive_cmds_need_lc=no
10466           else
10467             lt_cv_archive_cmds_need_lc=yes
10468           fi
10469           allow_undefined_flag=$lt_save_allow_undefined_flag
10470         else
10471           cat conftest.err 1>&5
10472         fi
10473         $RM conftest*
10474
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10477 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10478       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10479       ;;
10480     esac
10481   fi
10482   ;;
10483 esac
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10637 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10638
10639 if test "$GCC" = yes; then
10640   case $host_os in
10641     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10642     *) lt_awk_arg="/^libraries:/" ;;
10643   esac
10644   case $host_os in
10645     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10646     *) lt_sed_strip_eq="s,=/,/,g" ;;
10647   esac
10648   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10649   case $lt_search_path_spec in
10650   *\;*)
10651     # if the path contains ";" then we assume it to be the separator
10652     # otherwise default to the standard path separator (i.e. ":") - it is
10653     # assumed that no part of a normal pathname contains ";" but that should
10654     # okay in the real world where ";" in dirpaths is itself problematic.
10655     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10656     ;;
10657   *)
10658     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10659     ;;
10660   esac
10661   # Ok, now we have the path, separated by spaces, we can step through it
10662   # and add multilib dir if necessary.
10663   lt_tmp_lt_search_path_spec=
10664   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10665   for lt_sys_path in $lt_search_path_spec; do
10666     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10667       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10668     else
10669       test -d "$lt_sys_path" && \
10670         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10671     fi
10672   done
10673   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10674 BEGIN {RS=" "; FS="/|\n";} {
10675   lt_foo="";
10676   lt_count=0;
10677   for (lt_i = NF; lt_i > 0; lt_i--) {
10678     if ($lt_i != "" && $lt_i != ".") {
10679       if ($lt_i == "..") {
10680         lt_count++;
10681       } else {
10682         if (lt_count == 0) {
10683           lt_foo="/" $lt_i lt_foo;
10684         } else {
10685           lt_count--;
10686         }
10687       }
10688     }
10689   }
10690   if (lt_foo != "") { lt_freq[lt_foo]++; }
10691   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10692 }'`
10693   # AWK program above erroneously prepends '/' to C:/dos/paths
10694   # for these hosts.
10695   case $host_os in
10696     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10697       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10698   esac
10699   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10700 else
10701   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10702 fi
10703 library_names_spec=
10704 libname_spec='lib$name'
10705 soname_spec=
10706 shrext_cmds=".so"
10707 postinstall_cmds=
10708 postuninstall_cmds=
10709 finish_cmds=
10710 finish_eval=
10711 shlibpath_var=
10712 shlibpath_overrides_runpath=unknown
10713 version_type=none
10714 dynamic_linker="$host_os ld.so"
10715 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10716 need_lib_prefix=unknown
10717 hardcode_into_libs=no
10718
10719 # when you set need_version to no, make sure it does not cause -set_version
10720 # flags to be left without arguments
10721 need_version=unknown
10722
10723 case $host_os in
10724 aix3*)
10725   version_type=linux # correct to gnu/linux during the next big refactor
10726   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10727   shlibpath_var=LIBPATH
10728
10729   # AIX 3 has no versioning support, so we append a major version to the name.
10730   soname_spec='${libname}${release}${shared_ext}$major'
10731   ;;
10732
10733 aix[4-9]*)
10734   version_type=linux # correct to gnu/linux during the next big refactor
10735   need_lib_prefix=no
10736   need_version=no
10737   hardcode_into_libs=yes
10738   if test "$host_cpu" = ia64; then
10739     # AIX 5 supports IA64
10740     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10741     shlibpath_var=LD_LIBRARY_PATH
10742   else
10743     # With GCC up to 2.95.x, collect2 would create an import file
10744     # for dependence libraries.  The import file would start with
10745     # the line `#! .'.  This would cause the generated library to
10746     # depend on `.', always an invalid library.  This was fixed in
10747     # development snapshots of GCC prior to 3.0.
10748     case $host_os in
10749       aix4 | aix4.[01] | aix4.[01].*)
10750       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10751            echo ' yes '
10752            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10753         :
10754       else
10755         can_build_shared=no
10756       fi
10757       ;;
10758     esac
10759     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10760     # soname into executable. Probably we can add versioning support to
10761     # collect2, so additional links can be useful in future.
10762     if test "$aix_use_runtimelinking" = yes; then
10763       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10764       # instead of lib<name>.a to let people know that these are not
10765       # typical AIX shared libraries.
10766       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767     else
10768       # We preserve .a as extension for shared libraries through AIX4.2
10769       # and later when we are not doing run time linking.
10770       library_names_spec='${libname}${release}.a $libname.a'
10771       soname_spec='${libname}${release}${shared_ext}$major'
10772     fi
10773     shlibpath_var=LIBPATH
10774   fi
10775   ;;
10776
10777 amigaos*)
10778   case $host_cpu in
10779   powerpc)
10780     # Since July 2007 AmigaOS4 officially supports .so libraries.
10781     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783     ;;
10784   m68k)
10785     library_names_spec='$libname.ixlibrary $libname.a'
10786     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10787     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'
10788     ;;
10789   esac
10790   ;;
10791
10792 beos*)
10793   library_names_spec='${libname}${shared_ext}'
10794   dynamic_linker="$host_os ld.so"
10795   shlibpath_var=LIBRARY_PATH
10796   ;;
10797
10798 bsdi[45]*)
10799   version_type=linux # correct to gnu/linux during the next big refactor
10800   need_version=no
10801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802   soname_spec='${libname}${release}${shared_ext}$major'
10803   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10804   shlibpath_var=LD_LIBRARY_PATH
10805   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10806   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10807   # the default ld.so.conf also contains /usr/contrib/lib and
10808   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10809   # libtool to hard-code these into programs
10810   ;;
10811
10812 cygwin* | mingw* | pw32* | cegcc*)
10813   version_type=windows
10814   shrext_cmds=".dll"
10815   need_version=no
10816   need_lib_prefix=no
10817
10818   case $GCC,$cc_basename in
10819   yes,*)
10820     # gcc
10821     library_names_spec='$libname.dll.a'
10822     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10823     postinstall_cmds='base_file=`basename \${file}`~
10824       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10825       dldir=$destdir/`dirname \$dlpath`~
10826       test -d \$dldir || mkdir -p \$dldir~
10827       $install_prog $dir/$dlname \$dldir/$dlname~
10828       chmod a+x \$dldir/$dlname~
10829       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10830         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10831       fi'
10832     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10833       dlpath=$dir/\$dldll~
10834        $RM \$dlpath'
10835     shlibpath_overrides_runpath=yes
10836
10837     case $host_os in
10838     cygwin*)
10839       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10840       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10841
10842       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10843       ;;
10844     mingw* | cegcc*)
10845       # MinGW DLLs use traditional 'lib' prefix
10846       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847       ;;
10848     pw32*)
10849       # pw32 DLLs use 'pw' prefix rather than 'lib'
10850       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10851       ;;
10852     esac
10853     dynamic_linker='Win32 ld.exe'
10854     ;;
10855
10856   *,cl*)
10857     # Native MSVC
10858     libname_spec='$name'
10859     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10860     library_names_spec='${libname}.dll.lib'
10861
10862     case $build_os in
10863     mingw*)
10864       sys_lib_search_path_spec=
10865       lt_save_ifs=$IFS
10866       IFS=';'
10867       for lt_path in $LIB
10868       do
10869         IFS=$lt_save_ifs
10870         # Let DOS variable expansion print the short 8.3 style file name.
10871         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10872         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10873       done
10874       IFS=$lt_save_ifs
10875       # Convert to MSYS style.
10876       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10877       ;;
10878     cygwin*)
10879       # Convert to unix form, then to dos form, then back to unix form
10880       # but this time dos style (no spaces!) so that the unix form looks
10881       # like /cygdrive/c/PROGRA~1:/cygdr...
10882       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10883       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10884       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10885       ;;
10886     *)
10887       sys_lib_search_path_spec="$LIB"
10888       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10889         # It is most probably a Windows format PATH.
10890         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10891       else
10892         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10893       fi
10894       # FIXME: find the short name or the path components, as spaces are
10895       # common. (e.g. "Program Files" -> "PROGRA~1")
10896       ;;
10897     esac
10898
10899     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10900     postinstall_cmds='base_file=`basename \${file}`~
10901       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10902       dldir=$destdir/`dirname \$dlpath`~
10903       test -d \$dldir || mkdir -p \$dldir~
10904       $install_prog $dir/$dlname \$dldir/$dlname'
10905     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10906       dlpath=$dir/\$dldll~
10907        $RM \$dlpath'
10908     shlibpath_overrides_runpath=yes
10909     dynamic_linker='Win32 link.exe'
10910     ;;
10911
10912   *)
10913     # Assume MSVC wrapper
10914     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10915     dynamic_linker='Win32 ld.exe'
10916     ;;
10917   esac
10918   # FIXME: first we should search . and the directory the executable is in
10919   shlibpath_var=PATH
10920   ;;
10921
10922 darwin* | rhapsody*)
10923   dynamic_linker="$host_os dyld"
10924   version_type=darwin
10925   need_lib_prefix=no
10926   need_version=no
10927   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10928   soname_spec='${libname}${release}${major}$shared_ext'
10929   shlibpath_overrides_runpath=yes
10930   shlibpath_var=DYLD_LIBRARY_PATH
10931   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10932
10933   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10934   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10935   ;;
10936
10937 dgux*)
10938   version_type=linux # correct to gnu/linux during the next big refactor
10939   need_lib_prefix=no
10940   need_version=no
10941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10942   soname_spec='${libname}${release}${shared_ext}$major'
10943   shlibpath_var=LD_LIBRARY_PATH
10944   ;;
10945
10946 freebsd* | dragonfly*)
10947   # DragonFly does not have aout.  When/if they implement a new
10948   # versioning mechanism, adjust this.
10949   if test -x /usr/bin/objformat; then
10950     objformat=`/usr/bin/objformat`
10951   else
10952     case $host_os in
10953     freebsd[23].*) objformat=aout ;;
10954     *) objformat=elf ;;
10955     esac
10956   fi
10957   version_type=freebsd-$objformat
10958   case $version_type in
10959     freebsd-elf*)
10960       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10961       need_version=no
10962       need_lib_prefix=no
10963       ;;
10964     freebsd-*)
10965       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10966       need_version=yes
10967       ;;
10968   esac
10969   shlibpath_var=LD_LIBRARY_PATH
10970   case $host_os in
10971   freebsd2.*)
10972     shlibpath_overrides_runpath=yes
10973     ;;
10974   freebsd3.[01]* | freebsdelf3.[01]*)
10975     shlibpath_overrides_runpath=yes
10976     hardcode_into_libs=yes
10977     ;;
10978   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10979   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10980     shlibpath_overrides_runpath=no
10981     hardcode_into_libs=yes
10982     ;;
10983   *) # from 4.6 on, and DragonFly
10984     shlibpath_overrides_runpath=yes
10985     hardcode_into_libs=yes
10986     ;;
10987   esac
10988   ;;
10989
10990 gnu*)
10991   version_type=linux # correct to gnu/linux during the next big refactor
10992   need_lib_prefix=no
10993   need_version=no
10994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10995   soname_spec='${libname}${release}${shared_ext}$major'
10996   shlibpath_var=LD_LIBRARY_PATH
10997   shlibpath_overrides_runpath=no
10998   hardcode_into_libs=yes
10999   ;;
11000
11001 haiku*)
11002   version_type=linux # correct to gnu/linux during the next big refactor
11003   need_lib_prefix=no
11004   need_version=no
11005   dynamic_linker="$host_os runtime_loader"
11006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11007   soname_spec='${libname}${release}${shared_ext}$major'
11008   shlibpath_var=LIBRARY_PATH
11009   shlibpath_overrides_runpath=yes
11010   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11011   hardcode_into_libs=yes
11012   ;;
11013
11014 hpux9* | hpux10* | hpux11*)
11015   # Give a soname corresponding to the major version so that dld.sl refuses to
11016   # link against other versions.
11017   version_type=sunos
11018   need_lib_prefix=no
11019   need_version=no
11020   case $host_cpu in
11021   ia64*)
11022     shrext_cmds='.so'
11023     hardcode_into_libs=yes
11024     dynamic_linker="$host_os dld.so"
11025     shlibpath_var=LD_LIBRARY_PATH
11026     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028     soname_spec='${libname}${release}${shared_ext}$major'
11029     if test "X$HPUX_IA64_MODE" = X32; then
11030       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11031     else
11032       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11033     fi
11034     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11035     ;;
11036   hppa*64*)
11037     shrext_cmds='.sl'
11038     hardcode_into_libs=yes
11039     dynamic_linker="$host_os dld.sl"
11040     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11041     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043     soname_spec='${libname}${release}${shared_ext}$major'
11044     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11045     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11046     ;;
11047   *)
11048     shrext_cmds='.sl'
11049     dynamic_linker="$host_os dld.sl"
11050     shlibpath_var=SHLIB_PATH
11051     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053     soname_spec='${libname}${release}${shared_ext}$major'
11054     ;;
11055   esac
11056   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11057   postinstall_cmds='chmod 555 $lib'
11058   # or fails outright, so override atomically:
11059   install_override_mode=555
11060   ;;
11061
11062 interix[3-9]*)
11063   version_type=linux # correct to gnu/linux during the next big refactor
11064   need_lib_prefix=no
11065   need_version=no
11066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11067   soname_spec='${libname}${release}${shared_ext}$major'
11068   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11069   shlibpath_var=LD_LIBRARY_PATH
11070   shlibpath_overrides_runpath=no
11071   hardcode_into_libs=yes
11072   ;;
11073
11074 irix5* | irix6* | nonstopux*)
11075   case $host_os in
11076     nonstopux*) version_type=nonstopux ;;
11077     *)
11078         if test "$lt_cv_prog_gnu_ld" = yes; then
11079                 version_type=linux # correct to gnu/linux during the next big refactor
11080         else
11081                 version_type=irix
11082         fi ;;
11083   esac
11084   need_lib_prefix=no
11085   need_version=no
11086   soname_spec='${libname}${release}${shared_ext}$major'
11087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11088   case $host_os in
11089   irix5* | nonstopux*)
11090     libsuff= shlibsuff=
11091     ;;
11092   *)
11093     case $LD in # libtool.m4 will add one of these switches to LD
11094     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11095       libsuff= shlibsuff= libmagic=32-bit;;
11096     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11097       libsuff=32 shlibsuff=N32 libmagic=N32;;
11098     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11099       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11100     *) libsuff= shlibsuff= libmagic=never-match;;
11101     esac
11102     ;;
11103   esac
11104   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11105   shlibpath_overrides_runpath=no
11106   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11107   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11108   hardcode_into_libs=yes
11109   ;;
11110
11111 # No shared lib support for Linux oldld, aout, or coff.
11112 linux*oldld* | linux*aout* | linux*coff*)
11113   dynamic_linker=no
11114   ;;
11115
11116 linux*android*)
11117   version_type=none # Android doesn't support versioned libraries.
11118   need_lib_prefix=no
11119   need_version=no
11120   library_names_spec='$libname$release$shared_ext'
11121   soname_spec='$libname$release$shared_ext'
11122   finish_cmds=
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=yes
11125
11126   # This implies no fast_install, which is unacceptable.
11127   # Some rework will be needed to allow for fast_install
11128   # before this can be enabled.
11129   hardcode_into_libs=yes
11130
11131   dynamic_linker='Android linker'
11132   # Don't embed -rpath directories since the linker doesn't support them.
11133   hardcode_libdir_flag_spec='-L$libdir'
11134   ;;
11135
11136 # This must be glibc/ELF.
11137 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11138   version_type=linux # correct to gnu/linux during the next big refactor
11139   need_lib_prefix=no
11140   need_version=no
11141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142   soname_spec='${libname}${release}${shared_ext}$major'
11143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11144   shlibpath_var=LD_LIBRARY_PATH
11145   shlibpath_overrides_runpath=no
11146
11147   # Some binutils ld are patched to set DT_RUNPATH
11148   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11149   $as_echo_n "(cached) " >&6
11150 else
11151   lt_cv_shlibpath_overrides_runpath=no
11152     save_LDFLAGS=$LDFLAGS
11153     save_libdir=$libdir
11154     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11155          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11156     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h.  */
11158
11159 int
11160 main ()
11161 {
11162
11163   ;
11164   return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11169   lt_cv_shlibpath_overrides_runpath=yes
11170 fi
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext \
11173     conftest$ac_exeext conftest.$ac_ext
11174     LDFLAGS=$save_LDFLAGS
11175     libdir=$save_libdir
11176
11177 fi
11178
11179   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11180
11181   # This implies no fast_install, which is unacceptable.
11182   # Some rework will be needed to allow for fast_install
11183   # before this can be enabled.
11184   hardcode_into_libs=yes
11185
11186   # Append ld.so.conf contents to the search path
11187   if test -f /etc/ld.so.conf; then
11188     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' ' '`
11189     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11190   fi
11191
11192   # We used to test for /lib/ld.so.1 and disable shared libraries on
11193   # powerpc, because MkLinux only supported shared libraries with the
11194   # GNU dynamic linker.  Since this was broken with cross compilers,
11195   # most powerpc-linux boxes support dynamic linking these days and
11196   # people can always --disable-shared, the test was removed, and we
11197   # assume the GNU/Linux dynamic linker is in use.
11198   dynamic_linker='GNU/Linux ld.so'
11199   ;;
11200
11201 netbsdelf*-gnu)
11202   version_type=linux
11203   need_lib_prefix=no
11204   need_version=no
11205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11206   soname_spec='${libname}${release}${shared_ext}$major'
11207   shlibpath_var=LD_LIBRARY_PATH
11208   shlibpath_overrides_runpath=no
11209   hardcode_into_libs=yes
11210   dynamic_linker='NetBSD ld.elf_so'
11211   ;;
11212
11213 netbsd*)
11214   version_type=sunos
11215   need_lib_prefix=no
11216   need_version=no
11217   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11219     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11220     dynamic_linker='NetBSD (a.out) ld.so'
11221   else
11222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11223     soname_spec='${libname}${release}${shared_ext}$major'
11224     dynamic_linker='NetBSD ld.elf_so'
11225   fi
11226   shlibpath_var=LD_LIBRARY_PATH
11227   shlibpath_overrides_runpath=yes
11228   hardcode_into_libs=yes
11229   ;;
11230
11231 newsos6)
11232   version_type=linux # correct to gnu/linux during the next big refactor
11233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234   shlibpath_var=LD_LIBRARY_PATH
11235   shlibpath_overrides_runpath=yes
11236   ;;
11237
11238 *nto* | *qnx*)
11239   version_type=qnx
11240   need_lib_prefix=no
11241   need_version=no
11242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11243   soname_spec='${libname}${release}${shared_ext}$major'
11244   shlibpath_var=LD_LIBRARY_PATH
11245   shlibpath_overrides_runpath=no
11246   hardcode_into_libs=yes
11247   dynamic_linker='ldqnx.so'
11248   ;;
11249
11250 openbsd*)
11251   version_type=sunos
11252   sys_lib_dlsearch_path_spec="/usr/lib"
11253   need_lib_prefix=no
11254   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11255   case $host_os in
11256     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11257     *)                          need_version=no  ;;
11258   esac
11259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11261   shlibpath_var=LD_LIBRARY_PATH
11262   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11263     case $host_os in
11264       openbsd2.[89] | openbsd2.[89].*)
11265         shlibpath_overrides_runpath=no
11266         ;;
11267       *)
11268         shlibpath_overrides_runpath=yes
11269         ;;
11270       esac
11271   else
11272     shlibpath_overrides_runpath=yes
11273   fi
11274   ;;
11275
11276 os2*)
11277   libname_spec='$name'
11278   shrext_cmds=".dll"
11279   need_lib_prefix=no
11280   library_names_spec='$libname${shared_ext} $libname.a'
11281   dynamic_linker='OS/2 ld.exe'
11282   shlibpath_var=LIBPATH
11283   ;;
11284
11285 osf3* | osf4* | osf5*)
11286   version_type=osf
11287   need_lib_prefix=no
11288   need_version=no
11289   soname_spec='${libname}${release}${shared_ext}$major'
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291   shlibpath_var=LD_LIBRARY_PATH
11292   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11293   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11294   ;;
11295
11296 rdos*)
11297   dynamic_linker=no
11298   ;;
11299
11300 solaris*)
11301   version_type=linux # correct to gnu/linux during the next big refactor
11302   need_lib_prefix=no
11303   need_version=no
11304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305   soname_spec='${libname}${release}${shared_ext}$major'
11306   shlibpath_var=LD_LIBRARY_PATH
11307   shlibpath_overrides_runpath=yes
11308   hardcode_into_libs=yes
11309   # ldd complains unless libraries are executable
11310   postinstall_cmds='chmod +x $lib'
11311   ;;
11312
11313 sunos4*)
11314   version_type=sunos
11315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11316   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11317   shlibpath_var=LD_LIBRARY_PATH
11318   shlibpath_overrides_runpath=yes
11319   if test "$with_gnu_ld" = yes; then
11320     need_lib_prefix=no
11321   fi
11322   need_version=yes
11323   ;;
11324
11325 sysv4 | sysv4.3*)
11326   version_type=linux # correct to gnu/linux during the next big refactor
11327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328   soname_spec='${libname}${release}${shared_ext}$major'
11329   shlibpath_var=LD_LIBRARY_PATH
11330   case $host_vendor in
11331     sni)
11332       shlibpath_overrides_runpath=no
11333       need_lib_prefix=no
11334       runpath_var=LD_RUN_PATH
11335       ;;
11336     siemens)
11337       need_lib_prefix=no
11338       ;;
11339     motorola)
11340       need_lib_prefix=no
11341       need_version=no
11342       shlibpath_overrides_runpath=no
11343       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11344       ;;
11345   esac
11346   ;;
11347
11348 sysv4*MP*)
11349   if test -d /usr/nec ;then
11350     version_type=linux # correct to gnu/linux during the next big refactor
11351     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11352     soname_spec='$libname${shared_ext}.$major'
11353     shlibpath_var=LD_LIBRARY_PATH
11354   fi
11355   ;;
11356
11357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11358   version_type=freebsd-elf
11359   need_lib_prefix=no
11360   need_version=no
11361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11362   soname_spec='${libname}${release}${shared_ext}$major'
11363   shlibpath_var=LD_LIBRARY_PATH
11364   shlibpath_overrides_runpath=yes
11365   hardcode_into_libs=yes
11366   if test "$with_gnu_ld" = yes; then
11367     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11368   else
11369     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11370     case $host_os in
11371       sco3.2v5*)
11372         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11373         ;;
11374     esac
11375   fi
11376   sys_lib_dlsearch_path_spec='/usr/lib'
11377   ;;
11378
11379 tpf*)
11380   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11381   version_type=linux # correct to gnu/linux during the next big refactor
11382   need_lib_prefix=no
11383   need_version=no
11384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385   shlibpath_var=LD_LIBRARY_PATH
11386   shlibpath_overrides_runpath=no
11387   hardcode_into_libs=yes
11388   ;;
11389
11390 uts4*)
11391   version_type=linux # correct to gnu/linux during the next big refactor
11392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393   soname_spec='${libname}${release}${shared_ext}$major'
11394   shlibpath_var=LD_LIBRARY_PATH
11395   ;;
11396
11397 *)
11398   dynamic_linker=no
11399   ;;
11400 esac
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11402 $as_echo "$dynamic_linker" >&6; }
11403 test "$dynamic_linker" = no && can_build_shared=no
11404
11405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11406 if test "$GCC" = yes; then
11407   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11408 fi
11409
11410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11411   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11412 fi
11413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11414   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11415 fi
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11509 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11510 hardcode_action=
11511 if test -n "$hardcode_libdir_flag_spec" ||
11512    test -n "$runpath_var" ||
11513    test "X$hardcode_automatic" = "Xyes" ; then
11514
11515   # We can hardcode non-existent directories.
11516   if test "$hardcode_direct" != no &&
11517      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11518      # have to relink, otherwise we might link with an installed library
11519      # when we should be linking with a yet-to-be-installed one
11520      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11521      test "$hardcode_minus_L" != no; then
11522     # Linking always hardcodes the temporary library directory.
11523     hardcode_action=relink
11524   else
11525     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11526     hardcode_action=immediate
11527   fi
11528 else
11529   # We cannot hardcode anything, or else we can only hardcode existing
11530   # directories.
11531   hardcode_action=unsupported
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11534 $as_echo "$hardcode_action" >&6; }
11535
11536 if test "$hardcode_action" = relink ||
11537    test "$inherit_rpath" = yes; then
11538   # Fast installation is not supported
11539   enable_fast_install=no
11540 elif test "$shlibpath_overrides_runpath" = yes ||
11541      test "$enable_shared" = no; then
11542   # Fast installation is not necessary
11543   enable_fast_install=needless
11544 fi
11545
11546
11547
11548
11549
11550
11551   if test "x$enable_dlopen" != xyes; then
11552   enable_dlopen=unknown
11553   enable_dlopen_self=unknown
11554   enable_dlopen_self_static=unknown
11555 else
11556   lt_cv_dlopen=no
11557   lt_cv_dlopen_libs=
11558
11559   case $host_os in
11560   beos*)
11561     lt_cv_dlopen="load_add_on"
11562     lt_cv_dlopen_libs=
11563     lt_cv_dlopen_self=yes
11564     ;;
11565
11566   mingw* | pw32* | cegcc*)
11567     lt_cv_dlopen="LoadLibrary"
11568     lt_cv_dlopen_libs=
11569     ;;
11570
11571   cygwin*)
11572     lt_cv_dlopen="dlopen"
11573     lt_cv_dlopen_libs=
11574     ;;
11575
11576   darwin*)
11577   # if libdl is installed we need to link against it
11578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11579 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11580 if ${ac_cv_lib_dl_dlopen+:} false; then :
11581   $as_echo_n "(cached) " >&6
11582 else
11583   ac_check_lib_save_LIBS=$LIBS
11584 LIBS="-ldl  $LIBS"
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h.  */
11587
11588 /* Override any GCC internal prototype to avoid an error.
11589    Use char because int might match the return type of a GCC
11590    builtin and then its argument prototype would still apply.  */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 char dlopen ();
11595 int
11596 main ()
11597 {
11598 return dlopen ();
11599   ;
11600   return 0;
11601 }
11602 _ACEOF
11603 if ac_fn_c_try_link "$LINENO"; then :
11604   ac_cv_lib_dl_dlopen=yes
11605 else
11606   ac_cv_lib_dl_dlopen=no
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext \
11609     conftest$ac_exeext conftest.$ac_ext
11610 LIBS=$ac_check_lib_save_LIBS
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11613 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11614 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11616 else
11617
11618     lt_cv_dlopen="dyld"
11619     lt_cv_dlopen_libs=
11620     lt_cv_dlopen_self=yes
11621
11622 fi
11623
11624     ;;
11625
11626   *)
11627     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11628 if test "x$ac_cv_func_shl_load" = xyes; then :
11629   lt_cv_dlopen="shl_load"
11630 else
11631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11632 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11633 if ${ac_cv_lib_dld_shl_load+:} false; then :
11634   $as_echo_n "(cached) " >&6
11635 else
11636   ac_check_lib_save_LIBS=$LIBS
11637 LIBS="-ldld  $LIBS"
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h.  */
11640
11641 /* Override any GCC internal prototype to avoid an error.
11642    Use char because int might match the return type of a GCC
11643    builtin and then its argument prototype would still apply.  */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char shl_load ();
11648 int
11649 main ()
11650 {
11651 return shl_load ();
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657   ac_cv_lib_dld_shl_load=yes
11658 else
11659   ac_cv_lib_dld_shl_load=no
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext \
11662     conftest$ac_exeext conftest.$ac_ext
11663 LIBS=$ac_check_lib_save_LIBS
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11666 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11667 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11668   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11669 else
11670   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11671 if test "x$ac_cv_func_dlopen" = xyes; then :
11672   lt_cv_dlopen="dlopen"
11673 else
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11675 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11676 if ${ac_cv_lib_dl_dlopen+:} false; then :
11677   $as_echo_n "(cached) " >&6
11678 else
11679   ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-ldl  $LIBS"
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h.  */
11683
11684 /* Override any GCC internal prototype to avoid an error.
11685    Use char because int might match the return type of a GCC
11686    builtin and then its argument prototype would still apply.  */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 char dlopen ();
11691 int
11692 main ()
11693 {
11694 return dlopen ();
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700   ac_cv_lib_dl_dlopen=yes
11701 else
11702   ac_cv_lib_dl_dlopen=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext \
11705     conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11710 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11711   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11712 else
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11714 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11715 if ${ac_cv_lib_svld_dlopen+:} false; then :
11716   $as_echo_n "(cached) " >&6
11717 else
11718   ac_check_lib_save_LIBS=$LIBS
11719 LIBS="-lsvld  $LIBS"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h.  */
11722
11723 /* Override any GCC internal prototype to avoid an error.
11724    Use char because int might match the return type of a GCC
11725    builtin and then its argument prototype would still apply.  */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 char dlopen ();
11730 int
11731 main ()
11732 {
11733 return dlopen ();
11734   ;
11735   return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_c_try_link "$LINENO"; then :
11739   ac_cv_lib_svld_dlopen=yes
11740 else
11741   ac_cv_lib_svld_dlopen=no
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext \
11744     conftest$ac_exeext conftest.$ac_ext
11745 LIBS=$ac_check_lib_save_LIBS
11746 fi
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11748 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11749 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11750   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11751 else
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11753 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11754 if ${ac_cv_lib_dld_dld_link+:} false; then :
11755   $as_echo_n "(cached) " >&6
11756 else
11757   ac_check_lib_save_LIBS=$LIBS
11758 LIBS="-ldld  $LIBS"
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h.  */
11761
11762 /* Override any GCC internal prototype to avoid an error.
11763    Use char because int might match the return type of a GCC
11764    builtin and then its argument prototype would still apply.  */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 char dld_link ();
11769 int
11770 main ()
11771 {
11772 return dld_link ();
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 if ac_fn_c_try_link "$LINENO"; then :
11778   ac_cv_lib_dld_dld_link=yes
11779 else
11780   ac_cv_lib_dld_dld_link=no
11781 fi
11782 rm -f core conftest.err conftest.$ac_objext \
11783     conftest$ac_exeext conftest.$ac_ext
11784 LIBS=$ac_check_lib_save_LIBS
11785 fi
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11788 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11789   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11790 fi
11791
11792
11793 fi
11794
11795
11796 fi
11797
11798
11799 fi
11800
11801
11802 fi
11803
11804
11805 fi
11806
11807     ;;
11808   esac
11809
11810   if test "x$lt_cv_dlopen" != xno; then
11811     enable_dlopen=yes
11812   else
11813     enable_dlopen=no
11814   fi
11815
11816   case $lt_cv_dlopen in
11817   dlopen)
11818     save_CPPFLAGS="$CPPFLAGS"
11819     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11820
11821     save_LDFLAGS="$LDFLAGS"
11822     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11823
11824     save_LIBS="$LIBS"
11825     LIBS="$lt_cv_dlopen_libs $LIBS"
11826
11827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11828 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11829 if ${lt_cv_dlopen_self+:} false; then :
11830   $as_echo_n "(cached) " >&6
11831 else
11832           if test "$cross_compiling" = yes; then :
11833   lt_cv_dlopen_self=cross
11834 else
11835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11836   lt_status=$lt_dlunknown
11837   cat > conftest.$ac_ext <<_LT_EOF
11838 #line $LINENO "configure"
11839 #include "confdefs.h"
11840
11841 #if HAVE_DLFCN_H
11842 #include <dlfcn.h>
11843 #endif
11844
11845 #include <stdio.h>
11846
11847 #ifdef RTLD_GLOBAL
11848 #  define LT_DLGLOBAL           RTLD_GLOBAL
11849 #else
11850 #  ifdef DL_GLOBAL
11851 #    define LT_DLGLOBAL         DL_GLOBAL
11852 #  else
11853 #    define LT_DLGLOBAL         0
11854 #  endif
11855 #endif
11856
11857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11858    find out it does not work in some platform. */
11859 #ifndef LT_DLLAZY_OR_NOW
11860 #  ifdef RTLD_LAZY
11861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11862 #  else
11863 #    ifdef DL_LAZY
11864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11865 #    else
11866 #      ifdef RTLD_NOW
11867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11868 #      else
11869 #        ifdef DL_NOW
11870 #          define LT_DLLAZY_OR_NOW      DL_NOW
11871 #        else
11872 #          define LT_DLLAZY_OR_NOW      0
11873 #        endif
11874 #      endif
11875 #    endif
11876 #  endif
11877 #endif
11878
11879 /* When -fvisbility=hidden is used, assume the code has been annotated
11880    correspondingly for the symbols needed.  */
11881 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11882 int fnord () __attribute__((visibility("default")));
11883 #endif
11884
11885 int fnord () { return 42; }
11886 int main ()
11887 {
11888   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11889   int status = $lt_dlunknown;
11890
11891   if (self)
11892     {
11893       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11894       else
11895         {
11896           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11897           else puts (dlerror ());
11898         }
11899       /* dlclose (self); */
11900     }
11901   else
11902     puts (dlerror ());
11903
11904   return status;
11905 }
11906 _LT_EOF
11907   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11908   (eval $ac_link) 2>&5
11909   ac_status=$?
11910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11911   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11912     (./conftest; exit; ) >&5 2>/dev/null
11913     lt_status=$?
11914     case x$lt_status in
11915       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11916       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11917       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11918     esac
11919   else :
11920     # compilation failed
11921     lt_cv_dlopen_self=no
11922   fi
11923 fi
11924 rm -fr conftest*
11925
11926
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11929 $as_echo "$lt_cv_dlopen_self" >&6; }
11930
11931     if test "x$lt_cv_dlopen_self" = xyes; then
11932       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11933       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11934 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11935 if ${lt_cv_dlopen_self_static+:} false; then :
11936   $as_echo_n "(cached) " >&6
11937 else
11938           if test "$cross_compiling" = yes; then :
11939   lt_cv_dlopen_self_static=cross
11940 else
11941   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11942   lt_status=$lt_dlunknown
11943   cat > conftest.$ac_ext <<_LT_EOF
11944 #line $LINENO "configure"
11945 #include "confdefs.h"
11946
11947 #if HAVE_DLFCN_H
11948 #include <dlfcn.h>
11949 #endif
11950
11951 #include <stdio.h>
11952
11953 #ifdef RTLD_GLOBAL
11954 #  define LT_DLGLOBAL           RTLD_GLOBAL
11955 #else
11956 #  ifdef DL_GLOBAL
11957 #    define LT_DLGLOBAL         DL_GLOBAL
11958 #  else
11959 #    define LT_DLGLOBAL         0
11960 #  endif
11961 #endif
11962
11963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11964    find out it does not work in some platform. */
11965 #ifndef LT_DLLAZY_OR_NOW
11966 #  ifdef RTLD_LAZY
11967 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11968 #  else
11969 #    ifdef DL_LAZY
11970 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11971 #    else
11972 #      ifdef RTLD_NOW
11973 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11974 #      else
11975 #        ifdef DL_NOW
11976 #          define LT_DLLAZY_OR_NOW      DL_NOW
11977 #        else
11978 #          define LT_DLLAZY_OR_NOW      0
11979 #        endif
11980 #      endif
11981 #    endif
11982 #  endif
11983 #endif
11984
11985 /* When -fvisbility=hidden is used, assume the code has been annotated
11986    correspondingly for the symbols needed.  */
11987 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11988 int fnord () __attribute__((visibility("default")));
11989 #endif
11990
11991 int fnord () { return 42; }
11992 int main ()
11993 {
11994   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11995   int status = $lt_dlunknown;
11996
11997   if (self)
11998     {
11999       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12000       else
12001         {
12002           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12003           else puts (dlerror ());
12004         }
12005       /* dlclose (self); */
12006     }
12007   else
12008     puts (dlerror ());
12009
12010   return status;
12011 }
12012 _LT_EOF
12013   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12014   (eval $ac_link) 2>&5
12015   ac_status=$?
12016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12017   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12018     (./conftest; exit; ) >&5 2>/dev/null
12019     lt_status=$?
12020     case x$lt_status in
12021       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12022       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12023       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12024     esac
12025   else :
12026     # compilation failed
12027     lt_cv_dlopen_self_static=no
12028   fi
12029 fi
12030 rm -fr conftest*
12031
12032
12033 fi
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12035 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12036     fi
12037
12038     CPPFLAGS="$save_CPPFLAGS"
12039     LDFLAGS="$save_LDFLAGS"
12040     LIBS="$save_LIBS"
12041     ;;
12042   esac
12043
12044   case $lt_cv_dlopen_self in
12045   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12046   *) enable_dlopen_self=unknown ;;
12047   esac
12048
12049   case $lt_cv_dlopen_self_static in
12050   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12051   *) enable_dlopen_self_static=unknown ;;
12052   esac
12053 fi
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071 striplib=
12072 old_striplib=
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12074 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12075 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12076   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12077   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12079 $as_echo "yes" >&6; }
12080 else
12081 # FIXME - insert some real tests, host_os isn't really good enough
12082   case $host_os in
12083   darwin*)
12084     if test -n "$STRIP" ; then
12085       striplib="$STRIP -x"
12086       old_striplib="$STRIP -S"
12087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088 $as_echo "yes" >&6; }
12089     else
12090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092     fi
12093     ;;
12094   *)
12095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12097     ;;
12098   esac
12099 fi
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112   # Report which library types will actually be built
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12114 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12116 $as_echo "$can_build_shared" >&6; }
12117
12118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12119 $as_echo_n "checking whether to build shared libraries... " >&6; }
12120   test "$can_build_shared" = "no" && enable_shared=no
12121
12122   # On AIX, shared libraries and static libraries use the same namespace, and
12123   # are all built from PIC.
12124   case $host_os in
12125   aix3*)
12126     test "$enable_shared" = yes && enable_static=no
12127     if test -n "$RANLIB"; then
12128       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12129       postinstall_cmds='$RANLIB $lib'
12130     fi
12131     ;;
12132
12133   aix[4-9]*)
12134     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12135       test "$enable_shared" = yes && enable_static=no
12136     fi
12137     ;;
12138   esac
12139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12140 $as_echo "$enable_shared" >&6; }
12141
12142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12143 $as_echo_n "checking whether to build static libraries... " >&6; }
12144   # Make sure either enable_shared or enable_static is yes.
12145   test "$enable_shared" = yes || enable_static=yes
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12147 $as_echo "$enable_static" >&6; }
12148
12149
12150
12151
12152 fi
12153 ac_ext=c
12154 ac_cpp='$CPP $CPPFLAGS'
12155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12158
12159 CC="$lt_save_CC"
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175         ac_config_commands="$ac_config_commands libtool"
12176
12177
12178
12179
12180 # Only expand once:
12181
12182
12183 if test -n "$ac_tool_prefix"; then
12184   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12185 set dummy ${ac_tool_prefix}windres; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if ${ac_cv_prog_RC+:} false; then :
12189   $as_echo_n "(cached) " >&6
12190 else
12191   if test -n "$RC"; then
12192   ac_cv_prog_RC="$RC" # Let the user override the test.
12193 else
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12196 do
12197   IFS=$as_save_IFS
12198   test -z "$as_dir" && as_dir=.
12199     for ac_exec_ext in '' $ac_executable_extensions; do
12200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12201     ac_cv_prog_RC="${ac_tool_prefix}windres"
12202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203     break 2
12204   fi
12205 done
12206   done
12207 IFS=$as_save_IFS
12208
12209 fi
12210 fi
12211 RC=$ac_cv_prog_RC
12212 if test -n "$RC"; then
12213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12214 $as_echo "$RC" >&6; }
12215 else
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12218 fi
12219
12220
12221 fi
12222 if test -z "$ac_cv_prog_RC"; then
12223   ac_ct_RC=$RC
12224   # Extract the first word of "windres", so it can be a program name with args.
12225 set dummy windres; ac_word=$2
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227 $as_echo_n "checking for $ac_word... " >&6; }
12228 if ${ac_cv_prog_ac_ct_RC+:} false; then :
12229   $as_echo_n "(cached) " >&6
12230 else
12231   if test -n "$ac_ct_RC"; then
12232   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12233 else
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12236 do
12237   IFS=$as_save_IFS
12238   test -z "$as_dir" && as_dir=.
12239     for ac_exec_ext in '' $ac_executable_extensions; do
12240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241     ac_cv_prog_ac_ct_RC="windres"
12242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243     break 2
12244   fi
12245 done
12246   done
12247 IFS=$as_save_IFS
12248
12249 fi
12250 fi
12251 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12252 if test -n "$ac_ct_RC"; then
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12254 $as_echo "$ac_ct_RC" >&6; }
12255 else
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12258 fi
12259
12260   if test "x$ac_ct_RC" = x; then
12261     RC=""
12262   else
12263     case $cross_compiling:$ac_tool_warned in
12264 yes:)
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12267 ac_tool_warned=yes ;;
12268 esac
12269     RC=$ac_ct_RC
12270   fi
12271 else
12272   RC="$ac_cv_prog_RC"
12273 fi
12274
12275
12276
12277
12278 # Source file extension for RC test sources.
12279 ac_ext=rc
12280
12281 # Object file extension for compiled RC test sources.
12282 objext=o
12283 objext_RC=$objext
12284
12285 # Code to be used in simple compile tests
12286 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12287
12288 # Code to be used in simple link tests
12289 lt_simple_link_test_code="$lt_simple_compile_test_code"
12290
12291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12292
12293
12294
12295
12296
12297
12298 # If no C compiler was specified, use CC.
12299 LTCC=${LTCC-"$CC"}
12300
12301 # If no C compiler flags were specified, use CFLAGS.
12302 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12303
12304 # Allow CC to be a program name with arguments.
12305 compiler=$CC
12306
12307
12308 # save warnings/boilerplate of simple test code
12309 ac_outfile=conftest.$ac_objext
12310 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12311 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12312 _lt_compiler_boilerplate=`cat conftest.err`
12313 $RM conftest*
12314
12315 ac_outfile=conftest.$ac_objext
12316 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12317 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12318 _lt_linker_boilerplate=`cat conftest.err`
12319 $RM -r conftest*
12320
12321
12322 # Allow CC to be a program name with arguments.
12323 lt_save_CC="$CC"
12324 lt_save_CFLAGS=$CFLAGS
12325 lt_save_GCC=$GCC
12326 GCC=
12327 CC=${RC-"windres"}
12328 CFLAGS=
12329 compiler=$CC
12330 compiler_RC=$CC
12331 for cc_temp in $compiler""; do
12332   case $cc_temp in
12333     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12334     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12335     \-*) ;;
12336     *) break;;
12337   esac
12338 done
12339 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12340
12341 lt_cv_prog_compiler_c_o_RC=yes
12342
12343 if test -n "$compiler"; then
12344   :
12345
12346
12347
12348 fi
12349
12350 GCC=$lt_save_GCC
12351 ac_ext=c
12352 ac_cpp='$CPP $CPPFLAGS'
12353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12356
12357 CC=$lt_save_CC
12358 CFLAGS=$lt_save_CFLAGS
12359
12360
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12363 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12364     # Check whether --enable-maintainer-mode was given.
12365 if test "${enable_maintainer_mode+set}" = set; then :
12366   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12367 else
12368   USE_MAINTAINER_MODE=no
12369 fi
12370
12371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12372 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12373    if test $USE_MAINTAINER_MODE = yes; then
12374   MAINTAINER_MODE_TRUE=
12375   MAINTAINER_MODE_FALSE='#'
12376 else
12377   MAINTAINER_MODE_TRUE='#'
12378   MAINTAINER_MODE_FALSE=
12379 fi
12380
12381   MAINT=$MAINTAINER_MODE_TRUE
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392 cat >>confdefs.h <<_ACEOF
12393 #define PACKAGE "$PACKAGE"
12394 _ACEOF
12395
12396
12397 cat >>confdefs.h <<_ACEOF
12398 #define VERSION "$VERSION"
12399 _ACEOF
12400
12401
12402
12403
12404
12405
12406
12407
12408 # Checks for programs.
12409 missing_dir=`cd $ac_aux_dir && pwd`
12410
12411 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
12412
12413
12414 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12415
12416
12417 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
12418
12419
12420 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12421
12422
12423 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12424
12425 # Check whether --enable-silent-rules was given.
12426 if test "${enable_silent_rules+set}" = set; then :
12427   enableval=$enable_silent_rules;
12428 fi
12429
12430 case $enable_silent_rules in # (((
12431   yes) AM_DEFAULT_VERBOSITY=0;;
12432    no) AM_DEFAULT_VERBOSITY=1;;
12433     *) AM_DEFAULT_VERBOSITY=1;;
12434 esac
12435 am_make=${MAKE-make}
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12437 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12438 if ${am_cv_make_support_nested_variables+:} false; then :
12439   $as_echo_n "(cached) " >&6
12440 else
12441   if $as_echo 'TRUE=$(BAR$(V))
12442 BAR0=false
12443 BAR1=true
12444 V=1
12445 am__doit:
12446         @$(TRUE)
12447 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12448   am_cv_make_support_nested_variables=yes
12449 else
12450   am_cv_make_support_nested_variables=no
12451 fi
12452 fi
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12454 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12455 if test $am_cv_make_support_nested_variables = yes; then
12456     AM_V='$(V)'
12457   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12458 else
12459   AM_V=$AM_DEFAULT_VERBOSITY
12460   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12461 fi
12462 AM_BACKSLASH='\'
12463
12464 for ac_prog in gawk mawk nawk awk
12465 do
12466   # Extract the first word of "$ac_prog", so it can be a program name with args.
12467 set dummy $ac_prog; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if ${ac_cv_prog_AWK+:} false; then :
12471   $as_echo_n "(cached) " >&6
12472 else
12473   if test -n "$AWK"; then
12474   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12475 else
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479   IFS=$as_save_IFS
12480   test -z "$as_dir" && as_dir=.
12481     for ac_exec_ext in '' $ac_executable_extensions; do
12482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483     ac_cv_prog_AWK="$ac_prog"
12484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485     break 2
12486   fi
12487 done
12488   done
12489 IFS=$as_save_IFS
12490
12491 fi
12492 fi
12493 AWK=$ac_cv_prog_AWK
12494 if test -n "$AWK"; then
12495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12496 $as_echo "$AWK" >&6; }
12497 else
12498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500 fi
12501
12502
12503   test -n "$AWK" && break
12504 done
12505
12506 ac_ext=c
12507 ac_cpp='$CPP $CPPFLAGS'
12508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511 if test -n "$ac_tool_prefix"; then
12512   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_prog_CC+:} false; then :
12517   $as_echo_n "(cached) " >&6
12518 else
12519   if test -n "$CC"; then
12520   ac_cv_prog_CC="$CC" # Let the user override the test.
12521 else
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12524 do
12525   IFS=$as_save_IFS
12526   test -z "$as_dir" && as_dir=.
12527     for ac_exec_ext in '' $ac_executable_extensions; do
12528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531     break 2
12532   fi
12533 done
12534   done
12535 IFS=$as_save_IFS
12536
12537 fi
12538 fi
12539 CC=$ac_cv_prog_CC
12540 if test -n "$CC"; then
12541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12542 $as_echo "$CC" >&6; }
12543 else
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12546 fi
12547
12548
12549 fi
12550 if test -z "$ac_cv_prog_CC"; then
12551   ac_ct_CC=$CC
12552   # Extract the first word of "gcc", so it can be a program name with args.
12553 set dummy gcc; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12557   $as_echo_n "(cached) " >&6
12558 else
12559   if test -n "$ac_ct_CC"; then
12560   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12561 else
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12564 do
12565   IFS=$as_save_IFS
12566   test -z "$as_dir" && as_dir=.
12567     for ac_exec_ext in '' $ac_executable_extensions; do
12568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569     ac_cv_prog_ac_ct_CC="gcc"
12570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571     break 2
12572   fi
12573 done
12574   done
12575 IFS=$as_save_IFS
12576
12577 fi
12578 fi
12579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12580 if test -n "$ac_ct_CC"; then
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12582 $as_echo "$ac_ct_CC" >&6; }
12583 else
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12586 fi
12587
12588   if test "x$ac_ct_CC" = x; then
12589     CC=""
12590   else
12591     case $cross_compiling:$ac_tool_warned in
12592 yes:)
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12595 ac_tool_warned=yes ;;
12596 esac
12597     CC=$ac_ct_CC
12598   fi
12599 else
12600   CC="$ac_cv_prog_CC"
12601 fi
12602
12603 if test -z "$CC"; then
12604           if test -n "$ac_tool_prefix"; then
12605     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12606 set dummy ${ac_tool_prefix}cc; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if ${ac_cv_prog_CC+:} false; then :
12610   $as_echo_n "(cached) " >&6
12611 else
12612   if test -n "$CC"; then
12613   ac_cv_prog_CC="$CC" # Let the user override the test.
12614 else
12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12617 do
12618   IFS=$as_save_IFS
12619   test -z "$as_dir" && as_dir=.
12620     for ac_exec_ext in '' $ac_executable_extensions; do
12621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12622     ac_cv_prog_CC="${ac_tool_prefix}cc"
12623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624     break 2
12625   fi
12626 done
12627   done
12628 IFS=$as_save_IFS
12629
12630 fi
12631 fi
12632 CC=$ac_cv_prog_CC
12633 if test -n "$CC"; then
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12635 $as_echo "$CC" >&6; }
12636 else
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12639 fi
12640
12641
12642   fi
12643 fi
12644 if test -z "$CC"; then
12645   # Extract the first word of "cc", so it can be a program name with args.
12646 set dummy cc; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_prog_CC+:} false; then :
12650   $as_echo_n "(cached) " >&6
12651 else
12652   if test -n "$CC"; then
12653   ac_cv_prog_CC="$CC" # Let the user override the test.
12654 else
12655   ac_prog_rejected=no
12656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12658 do
12659   IFS=$as_save_IFS
12660   test -z "$as_dir" && as_dir=.
12661     for ac_exec_ext in '' $ac_executable_extensions; do
12662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12664        ac_prog_rejected=yes
12665        continue
12666      fi
12667     ac_cv_prog_CC="cc"
12668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669     break 2
12670   fi
12671 done
12672   done
12673 IFS=$as_save_IFS
12674
12675 if test $ac_prog_rejected = yes; then
12676   # We found a bogon in the path, so make sure we never use it.
12677   set dummy $ac_cv_prog_CC
12678   shift
12679   if test $# != 0; then
12680     # We chose a different compiler from the bogus one.
12681     # However, it has the same basename, so the bogon will be chosen
12682     # first if we set CC to just the basename; use the full file name.
12683     shift
12684     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12685   fi
12686 fi
12687 fi
12688 fi
12689 CC=$ac_cv_prog_CC
12690 if test -n "$CC"; then
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12692 $as_echo "$CC" >&6; }
12693 else
12694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12696 fi
12697
12698
12699 fi
12700 if test -z "$CC"; then
12701   if test -n "$ac_tool_prefix"; then
12702   for ac_prog in cl.exe
12703   do
12704     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707 $as_echo_n "checking for $ac_word... " >&6; }
12708 if ${ac_cv_prog_CC+:} false; then :
12709   $as_echo_n "(cached) " >&6
12710 else
12711   if test -n "$CC"; then
12712   ac_cv_prog_CC="$CC" # Let the user override the test.
12713 else
12714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12716 do
12717   IFS=$as_save_IFS
12718   test -z "$as_dir" && as_dir=.
12719     for ac_exec_ext in '' $ac_executable_extensions; do
12720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12721     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723     break 2
12724   fi
12725 done
12726   done
12727 IFS=$as_save_IFS
12728
12729 fi
12730 fi
12731 CC=$ac_cv_prog_CC
12732 if test -n "$CC"; then
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12734 $as_echo "$CC" >&6; }
12735 else
12736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12738 fi
12739
12740
12741     test -n "$CC" && break
12742   done
12743 fi
12744 if test -z "$CC"; then
12745   ac_ct_CC=$CC
12746   for ac_prog in cl.exe
12747 do
12748   # Extract the first word of "$ac_prog", so it can be a program name with args.
12749 set dummy $ac_prog; ac_word=$2
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751 $as_echo_n "checking for $ac_word... " >&6; }
12752 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12753   $as_echo_n "(cached) " >&6
12754 else
12755   if test -n "$ac_ct_CC"; then
12756   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12757 else
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12760 do
12761   IFS=$as_save_IFS
12762   test -z "$as_dir" && as_dir=.
12763     for ac_exec_ext in '' $ac_executable_extensions; do
12764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765     ac_cv_prog_ac_ct_CC="$ac_prog"
12766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767     break 2
12768   fi
12769 done
12770   done
12771 IFS=$as_save_IFS
12772
12773 fi
12774 fi
12775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12776 if test -n "$ac_ct_CC"; then
12777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12778 $as_echo "$ac_ct_CC" >&6; }
12779 else
12780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12782 fi
12783
12784
12785   test -n "$ac_ct_CC" && break
12786 done
12787
12788   if test "x$ac_ct_CC" = x; then
12789     CC=""
12790   else
12791     case $cross_compiling:$ac_tool_warned in
12792 yes:)
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12795 ac_tool_warned=yes ;;
12796 esac
12797     CC=$ac_ct_CC
12798   fi
12799 fi
12800
12801 fi
12802
12803
12804 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12806 as_fn_error $? "no acceptable C compiler found in \$PATH
12807 See \`config.log' for more details" "$LINENO" 5; }
12808
12809 # Provide some information about the compiler.
12810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12811 set X $ac_compile
12812 ac_compiler=$2
12813 for ac_option in --version -v -V -qversion; do
12814   { { ac_try="$ac_compiler $ac_option >&5"
12815 case "(($ac_try" in
12816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817   *) ac_try_echo=$ac_try;;
12818 esac
12819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12820 $as_echo "$ac_try_echo"; } >&5
12821   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12822   ac_status=$?
12823   if test -s conftest.err; then
12824     sed '10a\
12825 ... rest of stderr output deleted ...
12826          10q' conftest.err >conftest.er1
12827     cat conftest.er1 >&5
12828   fi
12829   rm -f conftest.er1 conftest.err
12830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831   test $ac_status = 0; }
12832 done
12833
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12836 if ${ac_cv_c_compiler_gnu+:} false; then :
12837   $as_echo_n "(cached) " >&6
12838 else
12839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h.  */
12841
12842 int
12843 main ()
12844 {
12845 #ifndef __GNUC__
12846        choke me
12847 #endif
12848
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854   ac_compiler_gnu=yes
12855 else
12856   ac_compiler_gnu=no
12857 fi
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12860
12861 fi
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12864 if test $ac_compiler_gnu = yes; then
12865   GCC=yes
12866 else
12867   GCC=
12868 fi
12869 ac_test_CFLAGS=${CFLAGS+set}
12870 ac_save_CFLAGS=$CFLAGS
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12873 if ${ac_cv_prog_cc_g+:} false; then :
12874   $as_echo_n "(cached) " >&6
12875 else
12876   ac_save_c_werror_flag=$ac_c_werror_flag
12877    ac_c_werror_flag=yes
12878    ac_cv_prog_cc_g=no
12879    CFLAGS="-g"
12880    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h.  */
12882
12883 int
12884 main ()
12885 {
12886
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 if ac_fn_c_try_compile "$LINENO"; then :
12892   ac_cv_prog_cc_g=yes
12893 else
12894   CFLAGS=""
12895       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h.  */
12897
12898 int
12899 main ()
12900 {
12901
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 if ac_fn_c_try_compile "$LINENO"; then :
12907
12908 else
12909   ac_c_werror_flag=$ac_save_c_werror_flag
12910          CFLAGS="-g"
12911          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h.  */
12913
12914 int
12915 main ()
12916 {
12917
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 if ac_fn_c_try_compile "$LINENO"; then :
12923   ac_cv_prog_cc_g=yes
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 fi
12929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930    ac_c_werror_flag=$ac_save_c_werror_flag
12931 fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12933 $as_echo "$ac_cv_prog_cc_g" >&6; }
12934 if test "$ac_test_CFLAGS" = set; then
12935   CFLAGS=$ac_save_CFLAGS
12936 elif test $ac_cv_prog_cc_g = yes; then
12937   if test "$GCC" = yes; then
12938     CFLAGS="-g -O2"
12939   else
12940     CFLAGS="-g"
12941   fi
12942 else
12943   if test "$GCC" = yes; then
12944     CFLAGS="-O2"
12945   else
12946     CFLAGS=
12947   fi
12948 fi
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12950 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12951 if ${ac_cv_prog_cc_c89+:} false; then :
12952   $as_echo_n "(cached) " >&6
12953 else
12954   ac_cv_prog_cc_c89=no
12955 ac_save_CC=$CC
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h.  */
12958 #include <stdarg.h>
12959 #include <stdio.h>
12960 struct stat;
12961 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12962 struct buf { int x; };
12963 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12964 static char *e (p, i)
12965      char **p;
12966      int i;
12967 {
12968   return p[i];
12969 }
12970 static char *f (char * (*g) (char **, int), char **p, ...)
12971 {
12972   char *s;
12973   va_list v;
12974   va_start (v,p);
12975   s = g (p, va_arg (v,int));
12976   va_end (v);
12977   return s;
12978 }
12979
12980 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12981    function prototypes and stuff, but not '\xHH' hex character constants.
12982    These don't provoke an error unfortunately, instead are silently treated
12983    as 'x'.  The following induces an error, until -std is added to get
12984    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12985    array size at least.  It's necessary to write '\x00'==0 to get something
12986    that's true only with -std.  */
12987 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12988
12989 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12990    inside strings and character constants.  */
12991 #define FOO(x) 'x'
12992 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12993
12994 int test (int i, double x);
12995 struct s1 {int (*f) (int a);};
12996 struct s2 {int (*f) (double a);};
12997 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12998 int argc;
12999 char **argv;
13000 int
13001 main ()
13002 {
13003 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13009         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13010 do
13011   CC="$ac_save_CC $ac_arg"
13012   if ac_fn_c_try_compile "$LINENO"; then :
13013   ac_cv_prog_cc_c89=$ac_arg
13014 fi
13015 rm -f core conftest.err conftest.$ac_objext
13016   test "x$ac_cv_prog_cc_c89" != "xno" && break
13017 done
13018 rm -f conftest.$ac_ext
13019 CC=$ac_save_CC
13020
13021 fi
13022 # AC_CACHE_VAL
13023 case "x$ac_cv_prog_cc_c89" in
13024   x)
13025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13026 $as_echo "none needed" >&6; } ;;
13027   xno)
13028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13029 $as_echo "unsupported" >&6; } ;;
13030   *)
13031     CC="$CC $ac_cv_prog_cc_c89"
13032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13033 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13034 esac
13035 if test "x$ac_cv_prog_cc_c89" != xno; then :
13036
13037 fi
13038
13039 ac_ext=c
13040 ac_cpp='$CPP $CPPFLAGS'
13041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13044
13045 ac_ext=c
13046 ac_cpp='$CPP $CPPFLAGS'
13047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13051 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13052 if ${am_cv_prog_cc_c_o+:} false; then :
13053   $as_echo_n "(cached) " >&6
13054 else
13055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h.  */
13057
13058 int
13059 main ()
13060 {
13061
13062   ;
13063   return 0;
13064 }
13065 _ACEOF
13066   # Make sure it works both with $CC and with simple cc.
13067   # Following AC_PROG_CC_C_O, we do the test twice because some
13068   # compilers refuse to overwrite an existing .o file with -o,
13069   # though they will create one.
13070   am_cv_prog_cc_c_o=yes
13071   for am_i in 1 2; do
13072     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13073    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13074    ac_status=$?
13075    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076    (exit $ac_status); } \
13077          && test -f conftest2.$ac_objext; then
13078       : OK
13079     else
13080       am_cv_prog_cc_c_o=no
13081       break
13082     fi
13083   done
13084   rm -f core conftest*
13085   unset am_i
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13088 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13089 if test "$am_cv_prog_cc_c_o" != yes; then
13090    # Losing compiler, so override with the script.
13091    # FIXME: It is wrong to rewrite CC.
13092    # But if we don't then we get into trouble of one sort or another.
13093    # A longer-term fix would be to have automake use am__CC in this case,
13094    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13095    CC="$am_aux_dir/compile $CC"
13096 fi
13097 ac_ext=c
13098 ac_cpp='$CPP $CPPFLAGS'
13099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13102
13103
13104 depcc="$CC"   am_compiler_list=
13105
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13107 $as_echo_n "checking dependency style of $depcc... " >&6; }
13108 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13109   $as_echo_n "(cached) " >&6
13110 else
13111   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13112   # We make a subdir and do the tests there.  Otherwise we can end up
13113   # making bogus files that we don't know about and never remove.  For
13114   # instance it was reported that on HP-UX the gcc test will end up
13115   # making a dummy file named 'D' -- because '-MD' means "put the output
13116   # in D".
13117   rm -rf conftest.dir
13118   mkdir conftest.dir
13119   # Copy depcomp to subdir because otherwise we won't find it if we're
13120   # using a relative directory.
13121   cp "$am_depcomp" conftest.dir
13122   cd conftest.dir
13123   # We will build objects and dependencies in a subdirectory because
13124   # it helps to detect inapplicable dependency modes.  For instance
13125   # both Tru64's cc and ICC support -MD to output dependencies as a
13126   # side effect of compilation, but ICC will put the dependencies in
13127   # the current directory while Tru64 will put them in the object
13128   # directory.
13129   mkdir sub
13130
13131   am_cv_CC_dependencies_compiler_type=none
13132   if test "$am_compiler_list" = ""; then
13133      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13134   fi
13135   am__universal=false
13136   case " $depcc " in #(
13137      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13138      esac
13139
13140   for depmode in $am_compiler_list; do
13141     # Setup a source with many dependencies, because some compilers
13142     # like to wrap large dependency lists on column 80 (with \), and
13143     # we should not choose a depcomp mode which is confused by this.
13144     #
13145     # We need to recreate these files for each test, as the compiler may
13146     # overwrite some of them when testing with obscure command lines.
13147     # This happens at least with the AIX C compiler.
13148     : > sub/conftest.c
13149     for i in 1 2 3 4 5 6; do
13150       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13151       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13152       # Solaris 10 /bin/sh.
13153       echo '/* dummy */' > sub/conftst$i.h
13154     done
13155     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13156
13157     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13158     # mode.  It turns out that the SunPro C++ compiler does not properly
13159     # handle '-M -o', and we need to detect this.  Also, some Intel
13160     # versions had trouble with output in subdirs.
13161     am__obj=sub/conftest.${OBJEXT-o}
13162     am__minus_obj="-o $am__obj"
13163     case $depmode in
13164     gcc)
13165       # This depmode causes a compiler race in universal mode.
13166       test "$am__universal" = false || continue
13167       ;;
13168     nosideeffect)
13169       # After this tag, mechanisms are not by side-effect, so they'll
13170       # only be used when explicitly requested.
13171       if test "x$enable_dependency_tracking" = xyes; then
13172         continue
13173       else
13174         break
13175       fi
13176       ;;
13177     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13178       # This compiler won't grok '-c -o', but also, the minuso test has
13179       # not run yet.  These depmodes are late enough in the game, and
13180       # so weak that their functioning should not be impacted.
13181       am__obj=conftest.${OBJEXT-o}
13182       am__minus_obj=
13183       ;;
13184     none) break ;;
13185     esac
13186     if depmode=$depmode \
13187        source=sub/conftest.c object=$am__obj \
13188        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13189        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13190          >/dev/null 2>conftest.err &&
13191        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13192        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13193        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13194        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13195       # icc doesn't choke on unknown options, it will just issue warnings
13196       # or remarks (even with -Werror).  So we grep stderr for any message
13197       # that says an option was ignored or not supported.
13198       # When given -MP, icc 7.0 and 7.1 complain thusly:
13199       #   icc: Command line warning: ignoring option '-M'; no argument required
13200       # The diagnosis changed in icc 8.0:
13201       #   icc: Command line remark: option '-MP' not supported
13202       if (grep 'ignoring option' conftest.err ||
13203           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13204         am_cv_CC_dependencies_compiler_type=$depmode
13205         break
13206       fi
13207     fi
13208   done
13209
13210   cd ..
13211   rm -rf conftest.dir
13212 else
13213   am_cv_CC_dependencies_compiler_type=none
13214 fi
13215
13216 fi
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13218 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13220
13221  if
13222   test "x$enable_dependency_tracking" != xno \
13223   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13224   am__fastdepCC_TRUE=
13225   am__fastdepCC_FALSE='#'
13226 else
13227   am__fastdepCC_TRUE='#'
13228   am__fastdepCC_FALSE=
13229 fi
13230
13231
13232 ac_ext=c
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13238 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13239 # On Suns, sometimes $CPP names a directory.
13240 if test -n "$CPP" && test -d "$CPP"; then
13241   CPP=
13242 fi
13243 if test -z "$CPP"; then
13244   if ${ac_cv_prog_CPP+:} false; then :
13245   $as_echo_n "(cached) " >&6
13246 else
13247       # Double quotes because CPP needs to be expanded
13248     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13249     do
13250       ac_preproc_ok=false
13251 for ac_c_preproc_warn_flag in '' yes
13252 do
13253   # Use a header file that comes with gcc, so configuring glibc
13254   # with a fresh cross-compiler works.
13255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13256   # <limits.h> exists even on freestanding compilers.
13257   # On the NeXT, cc -E runs the code through the compiler's parser,
13258   # not just through cpp. "Syntax error" is here to catch this case.
13259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h.  */
13261 #ifdef __STDC__
13262 # include <limits.h>
13263 #else
13264 # include <assert.h>
13265 #endif
13266                      Syntax error
13267 _ACEOF
13268 if ac_fn_c_try_cpp "$LINENO"; then :
13269
13270 else
13271   # Broken: fails on valid input.
13272 continue
13273 fi
13274 rm -f conftest.err conftest.i conftest.$ac_ext
13275
13276   # OK, works on sane cases.  Now check whether nonexistent headers
13277   # can be detected and how.
13278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h.  */
13280 #include <ac_nonexistent.h>
13281 _ACEOF
13282 if ac_fn_c_try_cpp "$LINENO"; then :
13283   # Broken: success on invalid input.
13284 continue
13285 else
13286   # Passes both tests.
13287 ac_preproc_ok=:
13288 break
13289 fi
13290 rm -f conftest.err conftest.i conftest.$ac_ext
13291
13292 done
13293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13294 rm -f conftest.i conftest.err conftest.$ac_ext
13295 if $ac_preproc_ok; then :
13296   break
13297 fi
13298
13299     done
13300     ac_cv_prog_CPP=$CPP
13301
13302 fi
13303   CPP=$ac_cv_prog_CPP
13304 else
13305   ac_cv_prog_CPP=$CPP
13306 fi
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13308 $as_echo "$CPP" >&6; }
13309 ac_preproc_ok=false
13310 for ac_c_preproc_warn_flag in '' yes
13311 do
13312   # Use a header file that comes with gcc, so configuring glibc
13313   # with a fresh cross-compiler works.
13314   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13315   # <limits.h> exists even on freestanding compilers.
13316   # On the NeXT, cc -E runs the code through the compiler's parser,
13317   # not just through cpp. "Syntax error" is here to catch this case.
13318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h.  */
13320 #ifdef __STDC__
13321 # include <limits.h>
13322 #else
13323 # include <assert.h>
13324 #endif
13325                      Syntax error
13326 _ACEOF
13327 if ac_fn_c_try_cpp "$LINENO"; then :
13328
13329 else
13330   # Broken: fails on valid input.
13331 continue
13332 fi
13333 rm -f conftest.err conftest.i conftest.$ac_ext
13334
13335   # OK, works on sane cases.  Now check whether nonexistent headers
13336   # can be detected and how.
13337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h.  */
13339 #include <ac_nonexistent.h>
13340 _ACEOF
13341 if ac_fn_c_try_cpp "$LINENO"; then :
13342   # Broken: success on invalid input.
13343 continue
13344 else
13345   # Passes both tests.
13346 ac_preproc_ok=:
13347 break
13348 fi
13349 rm -f conftest.err conftest.i conftest.$ac_ext
13350
13351 done
13352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13353 rm -f conftest.i conftest.err conftest.$ac_ext
13354 if $ac_preproc_ok; then :
13355
13356 else
13357   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13359 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13360 See \`config.log' for more details" "$LINENO" 5; }
13361 fi
13362
13363 ac_ext=c
13364 ac_cpp='$CPP $CPPFLAGS'
13365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13368
13369
13370 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
13371   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
13372 fi
13373
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13375 $as_echo_n "checking whether ln -s works... " >&6; }
13376 LN_S=$as_ln_s
13377 if test "$LN_S" = "ln -s"; then
13378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13379 $as_echo "yes" >&6; }
13380 else
13381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13382 $as_echo "no, using $LN_S" >&6; }
13383 fi
13384
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13386 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13387 set x ${MAKE-make}
13388 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13389 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13390   $as_echo_n "(cached) " >&6
13391 else
13392   cat >conftest.make <<\_ACEOF
13393 SHELL = /bin/sh
13394 all:
13395         @echo '@@@%%%=$(MAKE)=@@@%%%'
13396 _ACEOF
13397 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13398 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13399   *@@@%%%=?*=@@@%%%*)
13400     eval ac_cv_prog_make_${ac_make}_set=yes;;
13401   *)
13402     eval ac_cv_prog_make_${ac_make}_set=no;;
13403 esac
13404 rm -f conftest.make
13405 fi
13406 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13408 $as_echo "yes" >&6; }
13409   SET_MAKE=
13410 else
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13413   SET_MAKE="MAKE=${MAKE-make}"
13414 fi
13415
13416
13417
13418 #AC_ARG_PROGRAM
13419 for ac_prog in 'bison -y' byacc
13420 do
13421   # Extract the first word of "$ac_prog", so it can be a program name with args.
13422 set dummy $ac_prog; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if ${ac_cv_prog_YACC+:} false; then :
13426   $as_echo_n "(cached) " >&6
13427 else
13428   if test -n "$YACC"; then
13429   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13430 else
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13433 do
13434   IFS=$as_save_IFS
13435   test -z "$as_dir" && as_dir=.
13436     for ac_exec_ext in '' $ac_executable_extensions; do
13437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13438     ac_cv_prog_YACC="$ac_prog"
13439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440     break 2
13441   fi
13442 done
13443   done
13444 IFS=$as_save_IFS
13445
13446 fi
13447 fi
13448 YACC=$ac_cv_prog_YACC
13449 if test -n "$YACC"; then
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13451 $as_echo "$YACC" >&6; }
13452 else
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 fi
13456
13457
13458   test -n "$YACC" && break
13459 done
13460 test -n "$YACC" || YACC="yacc"
13461
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13463 $as_echo_n "checking for inline... " >&6; }
13464 if ${ac_cv_c_inline+:} false; then :
13465   $as_echo_n "(cached) " >&6
13466 else
13467   ac_cv_c_inline=no
13468 for ac_kw in inline __inline__ __inline; do
13469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h.  */
13471 #ifndef __cplusplus
13472 typedef int foo_t;
13473 static $ac_kw foo_t static_foo () {return 0; }
13474 $ac_kw foo_t foo () {return 0; }
13475 #endif
13476
13477 _ACEOF
13478 if ac_fn_c_try_compile "$LINENO"; then :
13479   ac_cv_c_inline=$ac_kw
13480 fi
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482   test "$ac_cv_c_inline" != no && break
13483 done
13484
13485 fi
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13487 $as_echo "$ac_cv_c_inline" >&6; }
13488
13489 case $ac_cv_c_inline in
13490   inline | yes) ;;
13491   *)
13492     case $ac_cv_c_inline in
13493       no) ac_val=;;
13494       *) ac_val=$ac_cv_c_inline;;
13495     esac
13496     cat >>confdefs.h <<_ACEOF
13497 #ifndef __cplusplus
13498 #define inline $ac_val
13499 #endif
13500 _ACEOF
13501     ;;
13502 esac
13503
13504
13505 # We need to compile and run a program on the build machine.
13506 #   The AC_PROG_CC_FOR_BUILD macro in the AC archive is broken for
13507 #   autoconf 2.57.
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
13509 $as_echo_n "checking for cc for build... " >&6; }
13510 if test "$cross_compiling" = "yes"; then
13511   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
13512 else
13513   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
13514 fi
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13516 $as_echo "$CC_FOR_BUILD" >&6; }
13517
13518
13519
13520 # This is handy for debugging so the compiler doesn't rearrange
13521 # things and eliminate variables.
13522 # Check whether --enable-optimization was given.
13523 if test "${enable_optimization+set}" = set; then :
13524   enableval=$enable_optimization; if test $enableval = no ; then
13525                          CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
13526                        fi
13527 fi
13528
13529
13530 if test "$GCC" = yes; then
13531     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
13532
13533     if test "$USE_MAINTAINER_MODE" = "yes"; then
13534         CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
13535
13536         # We use -W only if -Wno-missing-field-initializers is supported.
13537         # -W is important because it detects errors like "if (foo);"
13538         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
13539 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
13540         _gcc_cflags_save=$CFLAGS
13541         CFLAGS="-Wno-missing-field-initializers"
13542         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h.  */
13544
13545 int
13546 main ()
13547 {
13548
13549   ;
13550   return 0;
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_compile "$LINENO"; then :
13554   _gcc_wopt=yes
13555 else
13556   _gcc_wopt=no
13557 fi
13558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13560 $as_echo "$_gcc_wopt" >&6; }
13561         CFLAGS=$_gcc_cflags_save;
13562         if test x"$_gcc_wopt" = xyes ; then
13563           CFLAGS="$CFLAGS -W -Wno-sign-compare -Wno-missing-field-initializers"
13564         fi
13565
13566         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
13567 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
13568         _gcc_cflags_save=$CFLAGS
13569         CFLAGS="-Wdeclaration-after-statement"
13570         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h.  */
13572
13573 int
13574 main ()
13575 {
13576
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_compile "$LINENO"; then :
13582   _gcc_wopt=yes
13583 else
13584   _gcc_wopt=no
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13588 $as_echo "$_gcc_wopt" >&6; }
13589         CFLAGS=$_gcc_cflags_save;
13590         if test x"$_gcc_wopt" = xyes ; then
13591           CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13592         fi
13593     fi
13594
13595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
13596 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
13597     _gcc_cflags_save=$CFLAGS
13598     CFLAGS="-Wpointer-arith"
13599     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h.  */
13601
13602 int
13603 main ()
13604 {
13605
13606   ;
13607   return 0;
13608 }
13609 _ACEOF
13610 if ac_fn_c_try_compile "$LINENO"; then :
13611   _gcc_wopt=yes
13612 else
13613   _gcc_wopt=no
13614 fi
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13617 $as_echo "$_gcc_wopt" >&6; }
13618     CFLAGS=$_gcc_cflags_save;
13619     if test x"$_gcc_wopt" = xyes ; then
13620        CFLAGS="$CFLAGS -Wpointer-arith"
13621     fi
13622
13623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
13624 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
13625     _gcc_cflags_save=$CFLAGS
13626     CFLAGS="-Wno-pointer-sign"
13627     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h.  */
13629
13630 int
13631 main ()
13632 {
13633
13634   ;
13635   return 0;
13636 }
13637 _ACEOF
13638 if ac_fn_c_try_compile "$LINENO"; then :
13639   _gcc_psign=yes
13640 else
13641   _gcc_psign=no
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
13645 $as_echo "$_gcc_psign" >&6; }
13646     CFLAGS=$_gcc_cflags_save;
13647     if test x"$_gcc_psign" = xyes ; then
13648        CFLAGS="$CFLAGS -Wno-pointer-sign"
13649     fi
13650
13651 fi
13652
13653 # Setup some stuff depending on host.
13654 have_w32_system=no
13655 have_w32ce_system=no
13656 case "${host}" in
13657     *-*-mingw32ce*)
13658       have_w32_system=yes
13659       have_w32ce_system=yes
13660       ;;
13661     *-*-mingw32*)
13662       have_w32_system=yes
13663       ;;
13664     *)
13665       ;;
13666 esac
13667 if test "$have_w32_system" = yes; then
13668
13669 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
13670
13671    if test "$have_w32ce_system" = yes; then
13672
13673 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
13674
13675    fi
13676 fi
13677  if test "$have_w32_system" = yes; then
13678   HAVE_W32_SYSTEM_TRUE=
13679   HAVE_W32_SYSTEM_FALSE='#'
13680 else
13681   HAVE_W32_SYSTEM_TRUE='#'
13682   HAVE_W32_SYSTEM_FALSE=
13683 fi
13684
13685  if test "$have_w32ce_system" = yes; then
13686   HAVE_W32CE_SYSTEM_TRUE=
13687   HAVE_W32CE_SYSTEM_FALSE='#'
13688 else
13689   HAVE_W32CE_SYSTEM_TRUE='#'
13690   HAVE_W32CE_SYSTEM_FALSE=
13691 fi
13692
13693
13694
13695 # For some systems we know that we have ld_version scripts.
13696 # Use it then as default.
13697 have_ld_version_script=no
13698 case "${host}" in
13699     *-*-linux*)
13700         have_ld_version_script=yes
13701         ;;
13702     *-*-gnu*)
13703         have_ld_version_script=yes
13704         ;;
13705 esac
13706 # Check whether --enable-ld-version-script was given.
13707 if test "${enable_ld_version_script+set}" = set; then :
13708   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
13709 else
13710    :
13711 fi
13712
13713  if test "$have_ld_version_script" = "yes"; then
13714   HAVE_LD_VERSION_SCRIPT_TRUE=
13715   HAVE_LD_VERSION_SCRIPT_FALSE='#'
13716 else
13717   HAVE_LD_VERSION_SCRIPT_TRUE='#'
13718   HAVE_LD_VERSION_SCRIPT_FALSE=
13719 fi
13720
13721
13722
13723 #
13724 # Check for ELF visibility support.
13725 #
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
13727 $as_echo_n "checking whether the visibility attribute is supported... " >&6; }
13728 if ${ksba_cv_visibility_attribute+:} false; then :
13729   $as_echo_n "(cached) " >&6
13730 else
13731   ksba_cv_visibility_attribute=no
13732         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h.  */
13734 int foo __attribute__ ((visibility ("hidden"))) = 1;
13735             int bar __attribute__ ((visibility ("protected"))) = 1;
13736
13737 _ACEOF
13738
13739         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
13740                   1>&5 2>&5 ; then
13741             if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
13742                 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
13743                     ksba_cv_visibility_attribute=yes
13744                 fi
13745             fi
13746         fi
13747
13748 fi
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_visibility_attribute" >&5
13750 $as_echo "$ksba_cv_visibility_attribute" >&6; }
13751 if test "$ksba_cv_visibility_attribute" = "yes"; then
13752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
13753 $as_echo_n "checking for broken visibility attribute... " >&6; }
13754 if ${ksba_cv_broken_visibility_attribute+:} false; then :
13755   $as_echo_n "(cached) " >&6
13756 else
13757   ksba_cv_broken_visibility_attribute=yes
13758         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h.  */
13760 int foo (int x);
13761             int bar (int x) __asm__ ("foo")
13762                             __attribute__ ((visibility ("hidden")));
13763             int bar (int x) { return x; }
13764
13765 _ACEOF
13766
13767         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
13768                   1>&5 2>&5 ; then
13769            if grep '\.hidden[   _]foo' conftest.s >/dev/null 2>&1;
13770             then
13771                ksba_cv_broken_visibility_attribute=no
13772            fi
13773         fi
13774
13775 fi
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_visibility_attribute" >&5
13777 $as_echo "$ksba_cv_broken_visibility_attribute" >&6; }
13778 fi
13779 if test "$ksba_cv_visibility_attribute" = "yes"; then
13780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
13781 $as_echo_n "checking for broken alias attribute... " >&6; }
13782 if ${ksba_cv_broken_alias_attribute+:} false; then :
13783   $as_echo_n "(cached) " >&6
13784 else
13785   ksba_cv_broken_alias_attribute=yes
13786         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h.  */
13788 extern int foo (int x) __asm ("xyzzy");
13789             int bar (int x) { return x; }
13790             extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
13791             extern int dfoo;
13792             extern __typeof (dfoo) dfoo __asm ("abccb");
13793             int dfoo = 1;
13794
13795 _ACEOF
13796
13797         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
13798                   1>&5 2>&5 ; then
13799            if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
13800               grep 'abccb' conftest.s >/dev/null 2>&1; then
13801               ksba_cv_broken_alias_attribute=no
13802            fi
13803         fi
13804
13805 fi
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_alias_attribute" >&5
13807 $as_echo "$ksba_cv_broken_alias_attribute" >&6; }
13808 fi
13809 if test "$ksba_cv_visibility_attribute" = "yes"; then
13810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
13811 $as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
13812 if ${ksba_cv_gcc_has_f_visibility+:} false; then :
13813   $as_echo_n "(cached) " >&6
13814 else
13815   ksba_cv_gcc_has_f_visibility=no
13816         _gcc_cflags_save=$CFLAGS
13817         CFLAGS="-fvisibility=hidden"
13818         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h.  */
13820
13821 int
13822 main ()
13823 {
13824
13825   ;
13826   return 0;
13827 }
13828 _ACEOF
13829 if ac_fn_c_try_compile "$LINENO"; then :
13830   ksba_cv_gcc_has_f_visibility=yes
13831 fi
13832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833         CFLAGS=$_gcc_cflags_save;
13834
13835 fi
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_gcc_has_f_visibility" >&5
13837 $as_echo "$ksba_cv_gcc_has_f_visibility" >&6; }
13838 fi
13839 if test "$ksba_cv_visibility_attribute" = "yes" \
13840    && test "$ksba_cv_broken_visibility_attribute" != "yes" \
13841    && test "$ksba_cv_broken_alias_attribute" != "yes" \
13842    && test "$ksba_cv_gcc_has_f_visibility" = "yes"
13843  then
13844
13845 $as_echo "#define KSBA_USE_VISIBILITY 1" >>confdefs.h
13846
13847    CFLAGS="$CFLAGS -fvisibility=hidden"
13848 fi
13849
13850
13851 #
13852 # Checks for libraries.
13853 #
13854
13855   gpg_error_config_prefix=""
13856
13857 # Check whether --with-libgpg-error-prefix was given.
13858 if test "${with_libgpg_error_prefix+set}" = set; then :
13859   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
13860 fi
13861
13862
13863
13864 # Check whether --with-gpg-error-prefix was given.
13865 if test "${with_gpg_error_prefix+set}" = set; then :
13866   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
13867 fi
13868
13869
13870   if test x"${GPG_ERROR_CONFIG}" = x ; then
13871      if test x"${gpg_error_config_prefix}" != x ; then
13872         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
13873      else
13874        case "${SYSROOT}" in
13875          /*)
13876            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
13877              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
13878            fi
13879            ;;
13880          '')
13881            ;;
13882           *)
13883            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
13884 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
13885            ;;
13886        esac
13887      fi
13888   fi
13889
13890   # Extract the first word of "gpg-error-config", so it can be a program name with args.
13891 set dummy gpg-error-config; ac_word=$2
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13893 $as_echo_n "checking for $ac_word... " >&6; }
13894 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
13895   $as_echo_n "(cached) " >&6
13896 else
13897   case $GPG_ERROR_CONFIG in
13898   [\\/]* | ?:[\\/]*)
13899   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
13900   ;;
13901   *)
13902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13904 do
13905   IFS=$as_save_IFS
13906   test -z "$as_dir" && as_dir=.
13907     for ac_exec_ext in '' $ac_executable_extensions; do
13908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13909     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13911     break 2
13912   fi
13913 done
13914   done
13915 IFS=$as_save_IFS
13916
13917   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
13918   ;;
13919 esac
13920 fi
13921 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
13922 if test -n "$GPG_ERROR_CONFIG"; then
13923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
13924 $as_echo "$GPG_ERROR_CONFIG" >&6; }
13925 else
13926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13927 $as_echo "no" >&6; }
13928 fi
13929
13930
13931   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
13932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
13933 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
13934   ok=no
13935   if test "$GPG_ERROR_CONFIG" != "no" \
13936      && test -f "$GPG_ERROR_CONFIG" ; then
13937     req_major=`echo $min_gpg_error_version | \
13938                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
13939     req_minor=`echo $min_gpg_error_version | \
13940                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
13941     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
13942     major=`echo $gpg_error_config_version | \
13943                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
13944     minor=`echo $gpg_error_config_version | \
13945                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
13946     if test "$major" -gt "$req_major"; then
13947         ok=yes
13948     else
13949         if test "$major" -eq "$req_major"; then
13950             if test "$minor" -ge "$req_minor"; then
13951                ok=yes
13952             fi
13953         fi
13954     fi
13955   fi
13956   if test $ok = yes; then
13957     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
13958     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
13959     GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
13960     GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
13961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
13962 $as_echo "yes ($gpg_error_config_version)" >&6; }
13963     :
13964     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
13965     if test x"$gpg_error_config_host" != xnone ; then
13966       if test x"$gpg_error_config_host" != x"$host" ; then
13967   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13968 ***
13969 *** The config script $GPG_ERROR_CONFIG was
13970 *** built for $gpg_error_config_host and thus may not match the
13971 *** used host $host.
13972 *** You may want to use the configure option --with-gpg-error-prefix
13973 *** to specify a matching config script or use \$SYSROOT.
13974 ***" >&5
13975 $as_echo "$as_me: WARNING:
13976 ***
13977 *** The config script $GPG_ERROR_CONFIG was
13978 *** built for $gpg_error_config_host and thus may not match the
13979 *** used host $host.
13980 *** You may want to use the configure option --with-gpg-error-prefix
13981 *** to specify a matching config script or use \$SYSROOT.
13982 ***" >&2;}
13983         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
13984       fi
13985     fi
13986   else
13987     GPG_ERROR_CFLAGS=""
13988     GPG_ERROR_LIBS=""
13989     GPG_ERROR_MT_CFLAGS=""
13990     GPG_ERROR_MT_LIBS=""
13991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13993     :
13994   fi
13995
13996
13997
13998
13999
14000 if test "x$GPG_ERROR_LIBS" = "x"; then
14001   as_fn_error $? "libgpg-error is needed.
14002                 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
14003 fi
14004
14005
14006 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_KSBA" >>confdefs.h
14007
14008
14009
14010 # Checks for header files.
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14012 $as_echo_n "checking for ANSI C header files... " >&6; }
14013 if ${ac_cv_header_stdc+:} false; then :
14014   $as_echo_n "(cached) " >&6
14015 else
14016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h.  */
14018 #include <stdlib.h>
14019 #include <stdarg.h>
14020 #include <string.h>
14021 #include <float.h>
14022
14023 int
14024 main ()
14025 {
14026
14027   ;
14028   return 0;
14029 }
14030 _ACEOF
14031 if ac_fn_c_try_compile "$LINENO"; then :
14032   ac_cv_header_stdc=yes
14033 else
14034   ac_cv_header_stdc=no
14035 fi
14036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14037
14038 if test $ac_cv_header_stdc = yes; then
14039   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h.  */
14042 #include <string.h>
14043
14044 _ACEOF
14045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14046   $EGREP "memchr" >/dev/null 2>&1; then :
14047
14048 else
14049   ac_cv_header_stdc=no
14050 fi
14051 rm -f conftest*
14052
14053 fi
14054
14055 if test $ac_cv_header_stdc = yes; then
14056   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h.  */
14059 #include <stdlib.h>
14060
14061 _ACEOF
14062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14063   $EGREP "free" >/dev/null 2>&1; then :
14064
14065 else
14066   ac_cv_header_stdc=no
14067 fi
14068 rm -f conftest*
14069
14070 fi
14071
14072 if test $ac_cv_header_stdc = yes; then
14073   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14074   if test "$cross_compiling" = yes; then :
14075   :
14076 else
14077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h.  */
14079 #include <ctype.h>
14080 #include <stdlib.h>
14081 #if ((' ' & 0x0FF) == 0x020)
14082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14084 #else
14085 # define ISLOWER(c) \
14086                    (('a' <= (c) && (c) <= 'i') \
14087                      || ('j' <= (c) && (c) <= 'r') \
14088                      || ('s' <= (c) && (c) <= 'z'))
14089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14090 #endif
14091
14092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14093 int
14094 main ()
14095 {
14096   int i;
14097   for (i = 0; i < 256; i++)
14098     if (XOR (islower (i), ISLOWER (i))
14099         || toupper (i) != TOUPPER (i))
14100       return 2;
14101   return 0;
14102 }
14103 _ACEOF
14104 if ac_fn_c_try_run "$LINENO"; then :
14105
14106 else
14107   ac_cv_header_stdc=no
14108 fi
14109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14110   conftest.$ac_objext conftest.beam conftest.$ac_ext
14111 fi
14112
14113 fi
14114 fi
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14116 $as_echo "$ac_cv_header_stdc" >&6; }
14117 if test $ac_cv_header_stdc = yes; then
14118
14119 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14120
14121 fi
14122
14123 for ac_header in string.h
14124 do :
14125   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14126 if test "x$ac_cv_header_string_h" = xyes; then :
14127   cat >>confdefs.h <<_ACEOF
14128 #define HAVE_STRING_H 1
14129 _ACEOF
14130
14131 fi
14132
14133 done
14134
14135
14136 # Checks for typedefs, structures, and compiler characteristics.
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14138 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14139 if ${ac_cv_c_const+:} false; then :
14140   $as_echo_n "(cached) " >&6
14141 else
14142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h.  */
14144
14145 int
14146 main ()
14147 {
14148
14149 #ifndef __cplusplus
14150   /* Ultrix mips cc rejects this sort of thing.  */
14151   typedef int charset[2];
14152   const charset cs = { 0, 0 };
14153   /* SunOS 4.1.1 cc rejects this.  */
14154   char const *const *pcpcc;
14155   char **ppc;
14156   /* NEC SVR4.0.2 mips cc rejects this.  */
14157   struct point {int x, y;};
14158   static struct point const zero = {0,0};
14159   /* AIX XL C 1.02.0.0 rejects this.
14160      It does not let you subtract one const X* pointer from another in
14161      an arm of an if-expression whose if-part is not a constant
14162      expression */
14163   const char *g = "string";
14164   pcpcc = &g + (g ? g-g : 0);
14165   /* HPUX 7.0 cc rejects these. */
14166   ++pcpcc;
14167   ppc = (char**) pcpcc;
14168   pcpcc = (char const *const *) ppc;
14169   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14170     char tx;
14171     char *t = &tx;
14172     char const *s = 0 ? (char *) 0 : (char const *) 0;
14173
14174     *t++ = 0;
14175     if (s) return 0;
14176   }
14177   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14178     int x[] = {25, 17};
14179     const int *foo = &x[0];
14180     ++foo;
14181   }
14182   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14183     typedef const int *iptr;
14184     iptr p = 0;
14185     ++p;
14186   }
14187   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14188        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14189     struct s { int j; const int *ap[3]; } bx;
14190     struct s *b = &bx; b->j = 5;
14191   }
14192   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14193     const int foo = 10;
14194     if (!foo) return 0;
14195   }
14196   return !cs[0] && !zero.x;
14197 #endif
14198
14199   ;
14200   return 0;
14201 }
14202 _ACEOF
14203 if ac_fn_c_try_compile "$LINENO"; then :
14204   ac_cv_c_const=yes
14205 else
14206   ac_cv_c_const=no
14207 fi
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209 fi
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14211 $as_echo "$ac_cv_c_const" >&6; }
14212 if test $ac_cv_c_const = no; then
14213
14214 $as_echo "#define const /**/" >>confdefs.h
14215
14216 fi
14217
14218
14219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14220 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14221 if ${ac_cv_c_bigendian+:} false; then :
14222   $as_echo_n "(cached) " >&6
14223 else
14224   ac_cv_c_bigendian=unknown
14225     # See if we're dealing with a universal compiler.
14226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h.  */
14228 #ifndef __APPLE_CC__
14229                not a universal capable compiler
14230              #endif
14231              typedef int dummy;
14232
14233 _ACEOF
14234 if ac_fn_c_try_compile "$LINENO"; then :
14235
14236         # Check for potential -arch flags.  It is not universal unless
14237         # there are at least two -arch flags with different values.
14238         ac_arch=
14239         ac_prev=
14240         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14241          if test -n "$ac_prev"; then
14242            case $ac_word in
14243              i?86 | x86_64 | ppc | ppc64)
14244                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14245                  ac_arch=$ac_word
14246                else
14247                  ac_cv_c_bigendian=universal
14248                  break
14249                fi
14250                ;;
14251            esac
14252            ac_prev=
14253          elif test "x$ac_word" = "x-arch"; then
14254            ac_prev=arch
14255          fi
14256        done
14257 fi
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259     if test $ac_cv_c_bigendian = unknown; then
14260       # See if sys/param.h defines the BYTE_ORDER macro.
14261       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h.  */
14263 #include <sys/types.h>
14264              #include <sys/param.h>
14265
14266 int
14267 main ()
14268 {
14269 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14270                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14271                      && LITTLE_ENDIAN)
14272               bogus endian macros
14273              #endif
14274
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 if ac_fn_c_try_compile "$LINENO"; then :
14280   # It does; now see whether it defined to BIG_ENDIAN or not.
14281          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h.  */
14283 #include <sys/types.h>
14284                 #include <sys/param.h>
14285
14286 int
14287 main ()
14288 {
14289 #if BYTE_ORDER != BIG_ENDIAN
14290                  not big endian
14291                 #endif
14292
14293   ;
14294   return 0;
14295 }
14296 _ACEOF
14297 if ac_fn_c_try_compile "$LINENO"; then :
14298   ac_cv_c_bigendian=yes
14299 else
14300   ac_cv_c_bigendian=no
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14305     fi
14306     if test $ac_cv_c_bigendian = unknown; then
14307       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14308       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h.  */
14310 #include <limits.h>
14311
14312 int
14313 main ()
14314 {
14315 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14316               bogus endian macros
14317              #endif
14318
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 if ac_fn_c_try_compile "$LINENO"; then :
14324   # It does; now see whether it defined to _BIG_ENDIAN or not.
14325          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h.  */
14327 #include <limits.h>
14328
14329 int
14330 main ()
14331 {
14332 #ifndef _BIG_ENDIAN
14333                  not big endian
14334                 #endif
14335
14336   ;
14337   return 0;
14338 }
14339 _ACEOF
14340 if ac_fn_c_try_compile "$LINENO"; then :
14341   ac_cv_c_bigendian=yes
14342 else
14343   ac_cv_c_bigendian=no
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 fi
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348     fi
14349     if test $ac_cv_c_bigendian = unknown; then
14350       # Compile a test program.
14351       if test "$cross_compiling" = yes; then :
14352   # Try to guess by grepping values from an object file.
14353          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h.  */
14355 short int ascii_mm[] =
14356                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14357                 short int ascii_ii[] =
14358                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14359                 int use_ascii (int i) {
14360                   return ascii_mm[i] + ascii_ii[i];
14361                 }
14362                 short int ebcdic_ii[] =
14363                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14364                 short int ebcdic_mm[] =
14365                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14366                 int use_ebcdic (int i) {
14367                   return ebcdic_mm[i] + ebcdic_ii[i];
14368                 }
14369                 extern int foo;
14370
14371 int
14372 main ()
14373 {
14374 return use_ascii (foo) == use_ebcdic (foo);
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 if ac_fn_c_try_compile "$LINENO"; then :
14380   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14381               ac_cv_c_bigendian=yes
14382             fi
14383             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14384               if test "$ac_cv_c_bigendian" = unknown; then
14385                 ac_cv_c_bigendian=no
14386               else
14387                 # finding both strings is unlikely to happen, but who knows?
14388                 ac_cv_c_bigendian=unknown
14389               fi
14390             fi
14391 fi
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 else
14394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h.  */
14396 $ac_includes_default
14397 int
14398 main ()
14399 {
14400
14401              /* Are we little or big endian?  From Harbison&Steele.  */
14402              union
14403              {
14404                long int l;
14405                char c[sizeof (long int)];
14406              } u;
14407              u.l = 1;
14408              return u.c[sizeof (long int) - 1] == 1;
14409
14410   ;
14411   return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_run "$LINENO"; then :
14415   ac_cv_c_bigendian=no
14416 else
14417   ac_cv_c_bigendian=yes
14418 fi
14419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14420   conftest.$ac_objext conftest.beam conftest.$ac_ext
14421 fi
14422
14423     fi
14424 fi
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14426 $as_echo "$ac_cv_c_bigendian" >&6; }
14427  case $ac_cv_c_bigendian in #(
14428    yes)
14429      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14430 ;; #(
14431    no)
14432       ;; #(
14433    universal)
14434
14435 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14436
14437      ;; #(
14438    *)
14439      as_fn_error $? "unknown endianness
14440  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14441  esac
14442
14443
14444 # The cast to long int works around a bug in the HP C Compiler
14445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14447 # This bug is HP SR number 8606223364.
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14449 $as_echo_n "checking size of unsigned int... " >&6; }
14450 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14451   $as_echo_n "(cached) " >&6
14452 else
14453   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
14454
14455 else
14456   if test "$ac_cv_type_unsigned_int" = yes; then
14457      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14459 as_fn_error 77 "cannot compute sizeof (unsigned int)
14460 See \`config.log' for more details" "$LINENO" 5; }
14461    else
14462      ac_cv_sizeof_unsigned_int=0
14463    fi
14464 fi
14465
14466 fi
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14468 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14469
14470
14471
14472 cat >>confdefs.h <<_ACEOF
14473 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14474 _ACEOF
14475
14476
14477 # The cast to long int works around a bug in the HP C Compiler
14478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14480 # This bug is HP SR number 8606223364.
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14482 $as_echo_n "checking size of unsigned long... " >&6; }
14483 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14484   $as_echo_n "(cached) " >&6
14485 else
14486   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14487
14488 else
14489   if test "$ac_cv_type_unsigned_long" = yes; then
14490      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14492 as_fn_error 77 "cannot compute sizeof (unsigned long)
14493 See \`config.log' for more details" "$LINENO" 5; }
14494    else
14495      ac_cv_sizeof_unsigned_long=0
14496    fi
14497 fi
14498
14499 fi
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14501 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14502
14503
14504
14505 cat >>confdefs.h <<_ACEOF
14506 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14507 _ACEOF
14508
14509
14510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
14511 $as_echo_n "checking for u32 typedef... " >&6; }
14512     if ${gnupg_cv_typedef_u32+:} false; then :
14513   $as_echo_n "(cached) " >&6
14514 else
14515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h.  */
14517 #define _GNU_SOURCE 1
14518     #include <stdlib.h>
14519     #include <sys/types.h>
14520 int
14521 main ()
14522 {
14523
14524     #undef u32
14525     int a = sizeof(u32);
14526
14527   ;
14528   return 0;
14529 }
14530 _ACEOF
14531 if ac_fn_c_try_compile "$LINENO"; then :
14532   gnupg_cv_typedef_u32=yes
14533 else
14534   gnupg_cv_typedef_u32=no
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 fi
14538
14539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
14540 $as_echo "$gnupg_cv_typedef_u32" >&6; }
14541     if test "$gnupg_cv_typedef_u32" = yes; then
14542
14543 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
14544
14545     fi
14546
14547
14548
14549 # Checks for library functions.
14550 for ac_func in memmove strchr strtol strtoul stpcpy gmtime_r getenv
14551 do :
14552   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14553 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14554 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14555   cat >>confdefs.h <<_ACEOF
14556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14557 _ACEOF
14558
14559 fi
14560 done
14561
14562
14563
14564 # GNUlib checks
14565
14566
14567
14568 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14569 if test "x$ac_cv_type_size_t" = xyes; then :
14570
14571 else
14572
14573 cat >>confdefs.h <<_ACEOF
14574 #define size_t unsigned int
14575 _ACEOF
14576
14577 fi
14578
14579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14580 # for constant arguments.  Useless!
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14582 $as_echo_n "checking for working alloca.h... " >&6; }
14583 if ${ac_cv_working_alloca_h+:} false; then :
14584   $as_echo_n "(cached) " >&6
14585 else
14586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h.  */
14588 #include <alloca.h>
14589 int
14590 main ()
14591 {
14592 char *p = (char *) alloca (2 * sizeof (int));
14593                           if (p) return 0;
14594   ;
14595   return 0;
14596 }
14597 _ACEOF
14598 if ac_fn_c_try_link "$LINENO"; then :
14599   ac_cv_working_alloca_h=yes
14600 else
14601   ac_cv_working_alloca_h=no
14602 fi
14603 rm -f core conftest.err conftest.$ac_objext \
14604     conftest$ac_exeext conftest.$ac_ext
14605 fi
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14607 $as_echo "$ac_cv_working_alloca_h" >&6; }
14608 if test $ac_cv_working_alloca_h = yes; then
14609
14610 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14611
14612 fi
14613
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14615 $as_echo_n "checking for alloca... " >&6; }
14616 if ${ac_cv_func_alloca_works+:} false; then :
14617   $as_echo_n "(cached) " >&6
14618 else
14619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h.  */
14621 #ifdef __GNUC__
14622 # define alloca __builtin_alloca
14623 #else
14624 # ifdef _MSC_VER
14625 #  include <malloc.h>
14626 #  define alloca _alloca
14627 # else
14628 #  ifdef HAVE_ALLOCA_H
14629 #   include <alloca.h>
14630 #  else
14631 #   ifdef _AIX
14632  #pragma alloca
14633 #   else
14634 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14635 void *alloca (size_t);
14636 #    endif
14637 #   endif
14638 #  endif
14639 # endif
14640 #endif
14641
14642 int
14643 main ()
14644 {
14645 char *p = (char *) alloca (1);
14646                                     if (p) return 0;
14647   ;
14648   return 0;
14649 }
14650 _ACEOF
14651 if ac_fn_c_try_link "$LINENO"; then :
14652   ac_cv_func_alloca_works=yes
14653 else
14654   ac_cv_func_alloca_works=no
14655 fi
14656 rm -f core conftest.err conftest.$ac_objext \
14657     conftest$ac_exeext conftest.$ac_ext
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14660 $as_echo "$ac_cv_func_alloca_works" >&6; }
14661
14662 if test $ac_cv_func_alloca_works = yes; then
14663
14664 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14665
14666 else
14667   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14668 # that cause trouble.  Some versions do not even contain alloca or
14669 # contain a buggy version.  If you still want to use their alloca,
14670 # use ar to extract alloca.o from them instead of compiling alloca.c.
14671
14672 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14673
14674 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14675
14676
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14678 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14679 if ${ac_cv_os_cray+:} false; then :
14680   $as_echo_n "(cached) " >&6
14681 else
14682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h.  */
14684 #if defined CRAY && ! defined CRAY2
14685 webecray
14686 #else
14687 wenotbecray
14688 #endif
14689
14690 _ACEOF
14691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14692   $EGREP "webecray" >/dev/null 2>&1; then :
14693   ac_cv_os_cray=yes
14694 else
14695   ac_cv_os_cray=no
14696 fi
14697 rm -f conftest*
14698
14699 fi
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14701 $as_echo "$ac_cv_os_cray" >&6; }
14702 if test $ac_cv_os_cray = yes; then
14703   for ac_func in _getb67 GETB67 getb67; do
14704     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14706 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14707
14708 cat >>confdefs.h <<_ACEOF
14709 #define CRAY_STACKSEG_END $ac_func
14710 _ACEOF
14711
14712     break
14713 fi
14714
14715   done
14716 fi
14717
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14719 $as_echo_n "checking stack direction for C alloca... " >&6; }
14720 if ${ac_cv_c_stack_direction+:} false; then :
14721   $as_echo_n "(cached) " >&6
14722 else
14723   if test "$cross_compiling" = yes; then :
14724   ac_cv_c_stack_direction=0
14725 else
14726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h.  */
14728 $ac_includes_default
14729 int
14730 find_stack_direction (int *addr, int depth)
14731 {
14732   int dir, dummy = 0;
14733   if (! addr)
14734     addr = &dummy;
14735   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14736   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14737   return dir + dummy;
14738 }
14739
14740 int
14741 main (int argc, char **argv)
14742 {
14743   return find_stack_direction (0, argc + !argv + 20) < 0;
14744 }
14745 _ACEOF
14746 if ac_fn_c_try_run "$LINENO"; then :
14747   ac_cv_c_stack_direction=1
14748 else
14749   ac_cv_c_stack_direction=-1
14750 fi
14751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14752   conftest.$ac_objext conftest.beam conftest.$ac_ext
14753 fi
14754
14755 fi
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14757 $as_echo "$ac_cv_c_stack_direction" >&6; }
14758 cat >>confdefs.h <<_ACEOF
14759 #define STACK_DIRECTION $ac_cv_c_stack_direction
14760 _ACEOF
14761
14762
14763 fi
14764
14765
14766 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
14767
14768
14769
14770
14771
14772
14773   if test $ac_cv_func_alloca_works = no; then
14774     :
14775   fi
14776
14777   # Define an additional variable used in the Makefile substitution.
14778   if test $ac_cv_working_alloca_h = yes; then
14779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h.  */
14781
14782 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
14783         Need own alloca
14784 #endif
14785
14786 _ACEOF
14787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14788   $EGREP "Need own alloca" >/dev/null 2>&1; then :
14789
14790 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14791
14792        ALLOCA_H=alloca.h
14793 else
14794   ALLOCA_H=
14795 fi
14796 rm -f conftest*
14797
14798   else
14799     ALLOCA_H=alloca.h
14800   fi
14801
14802
14803
14804 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14805
14806
14807
14808   # Check whether --enable-valgrind-tests was given.
14809 if test "${enable_valgrind_tests+set}" = set; then :
14810   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
14811 else
14812   opt_valgrind_tests=yes
14813 fi
14814
14815
14816   # Run self-tests under valgrind?
14817   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
14818     for ac_prog in valgrind
14819 do
14820   # Extract the first word of "$ac_prog", so it can be a program name with args.
14821 set dummy $ac_prog; ac_word=$2
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14823 $as_echo_n "checking for $ac_word... " >&6; }
14824 if ${ac_cv_prog_VALGRIND+:} false; then :
14825   $as_echo_n "(cached) " >&6
14826 else
14827   if test -n "$VALGRIND"; then
14828   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
14829 else
14830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831 for as_dir in $PATH
14832 do
14833   IFS=$as_save_IFS
14834   test -z "$as_dir" && as_dir=.
14835     for ac_exec_ext in '' $ac_executable_extensions; do
14836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14837     ac_cv_prog_VALGRIND="$ac_prog"
14838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14839     break 2
14840   fi
14841 done
14842   done
14843 IFS=$as_save_IFS
14844
14845 fi
14846 fi
14847 VALGRIND=$ac_cv_prog_VALGRIND
14848 if test -n "$VALGRIND"; then
14849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
14850 $as_echo "$VALGRIND" >&6; }
14851 else
14852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853 $as_echo "no" >&6; }
14854 fi
14855
14856
14857   test -n "$VALGRIND" && break
14858 done
14859
14860   fi
14861
14862   OPTS="-q --error-exitcode=1 --leak-check=full"
14863
14864   if test -n "$VALGRIND" \
14865      && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
14866     opt_valgrind_tests=yes
14867     VALGRIND="$VALGRIND $OPTS"
14868   else
14869     opt_valgrind_tests=no
14870     VALGRIND=
14871   fi
14872
14873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
14874 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
14875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
14876 $as_echo "$opt_valgrind_tests" >&6; }
14877
14878
14879
14880 # To be used in ksba-config
14881 KSBA_CONFIG_LIBS="-lksba"
14882 KSBA_CONFIG_CFLAGS=""
14883 KSBA_CONFIG_HOST="$host"
14884
14885
14886
14887
14888
14889 # The Makefiles need to know about cross compiling
14890  if test x$cross_compiling != xno; then
14891   CROSS_COMPILING_TRUE=
14892   CROSS_COMPILING_FALSE='#'
14893 else
14894   CROSS_COMPILING_TRUE='#'
14895   CROSS_COMPILING_FALSE=
14896 fi
14897
14898
14899
14900 # Generate extended version information for W32.
14901 if test "$have_w32_system" = yes; then
14902       BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
14903       BUILD_FILEVERSION="${BUILD_FILEVERSION}14994"
14904 fi
14905
14906
14907 BUILD_REVISION="3a92e8c"
14908
14909
14910 cat >>confdefs.h <<_ACEOF
14911 #define BUILD_REVISION "$BUILD_REVISION"
14912 _ACEOF
14913
14914
14915 # Check whether --enable-build-timestamp was given.
14916 if test "${enable_build_timestamp+set}" = set; then :
14917   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
14918         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
14919       else
14920         BUILD_TIMESTAMP="$enableval"
14921       fi
14922 else
14923   BUILD_TIMESTAMP="<none>"
14924 fi
14925
14926
14927
14928 cat >>confdefs.h <<_ACEOF
14929 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
14930 _ACEOF
14931
14932
14933
14934 ac_config_files="$ac_config_files Makefile m4/Makefile gl/Makefile src/Makefile src/ksba-config src/versioninfo.rc tests/Makefile doc/Makefile"
14935
14936 cat >confcache <<\_ACEOF
14937 # This file is a shell script that caches the results of configure
14938 # tests run on this system so they can be shared between configure
14939 # scripts and configure runs, see configure's option --config-cache.
14940 # It is not useful on other systems.  If it contains results you don't
14941 # want to keep, you may remove or edit it.
14942 #
14943 # config.status only pays attention to the cache file if you give it
14944 # the --recheck option to rerun configure.
14945 #
14946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14948 # following values.
14949
14950 _ACEOF
14951
14952 # The following way of writing the cache mishandles newlines in values,
14953 # but we know of no workaround that is simple, portable, and efficient.
14954 # So, we kill variables containing newlines.
14955 # Ultrix sh set writes to stderr and can't be redirected directly,
14956 # and sets the high bit in the cache file unless we assign to the vars.
14957 (
14958   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14959     eval ac_val=\$$ac_var
14960     case $ac_val in #(
14961     *${as_nl}*)
14962       case $ac_var in #(
14963       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14965       esac
14966       case $ac_var in #(
14967       _ | IFS | as_nl) ;; #(
14968       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14969       *) { eval $ac_var=; unset $ac_var;} ;;
14970       esac ;;
14971     esac
14972   done
14973
14974   (set) 2>&1 |
14975     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14976     *${as_nl}ac_space=\ *)
14977       # `set' does not quote correctly, so add quotes: double-quote
14978       # substitution turns \\\\ into \\, and sed turns \\ into \.
14979       sed -n \
14980         "s/'/'\\\\''/g;
14981           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14982       ;; #(
14983     *)
14984       # `set' quotes correctly as required by POSIX, so do not add quotes.
14985       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14986       ;;
14987     esac |
14988     sort
14989 ) |
14990   sed '
14991      /^ac_cv_env_/b end
14992      t clear
14993      :clear
14994      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14995      t end
14996      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14997      :end' >>confcache
14998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14999   if test -w "$cache_file"; then
15000     if test "x$cache_file" != "x/dev/null"; then
15001       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15002 $as_echo "$as_me: updating cache $cache_file" >&6;}
15003       if test ! -f "$cache_file" || test -h "$cache_file"; then
15004         cat confcache >"$cache_file"
15005       else
15006         case $cache_file in #(
15007         */* | ?:*)
15008           mv -f confcache "$cache_file"$$ &&
15009           mv -f "$cache_file"$$ "$cache_file" ;; #(
15010         *)
15011           mv -f confcache "$cache_file" ;;
15012         esac
15013       fi
15014     fi
15015   else
15016     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15017 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15018   fi
15019 fi
15020 rm -f confcache
15021
15022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15023 # Let make expand exec_prefix.
15024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15025
15026 DEFS=-DHAVE_CONFIG_H
15027
15028 ac_libobjs=
15029 ac_ltlibobjs=
15030 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15031   # 1. Remove the extension, and $U if already installed.
15032   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15033   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15034   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15035   #    will be set to the directory where LIBOBJS objects are built.
15036   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15037   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15038 done
15039 LIBOBJS=$ac_libobjs
15040
15041 LTLIBOBJS=$ac_ltlibobjs
15042
15043
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15045 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15046    if test -n "$am_sleep_pid"; then
15047      # Hide warnings about reused PIDs.
15048      wait $am_sleep_pid 2>/dev/null
15049    fi
15050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15051 $as_echo "done" >&6; }
15052  if test -n "$EXEEXT"; then
15053   am__EXEEXT_TRUE=
15054   am__EXEEXT_FALSE='#'
15055 else
15056   am__EXEEXT_TRUE='#'
15057   am__EXEEXT_FALSE=
15058 fi
15059
15060 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15061   as_fn_error $? "conditional \"AMDEP\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15063 fi
15064 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15065   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15067 fi
15068 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15069   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15071 fi
15072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15073   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15075 fi
15076 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
15077   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15079 fi
15080 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
15081   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
15082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15083 fi
15084 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
15085   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
15086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15087 fi
15088
15089 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
15090   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
15091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15092 fi
15093
15094 : "${CONFIG_STATUS=./config.status}"
15095 ac_write_fail=0
15096 ac_clean_files_save=$ac_clean_files
15097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15099 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15100 as_write_fail=0
15101 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15102 #! $SHELL
15103 # Generated by $as_me.
15104 # Run this file to recreate the current configuration.
15105 # Compiler output produced by configure, useful for debugging
15106 # configure, is in config.log if it exists.
15107
15108 debug=false
15109 ac_cs_recheck=false
15110 ac_cs_silent=false
15111
15112 SHELL=\${CONFIG_SHELL-$SHELL}
15113 export SHELL
15114 _ASEOF
15115 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15116 ## -------------------- ##
15117 ## M4sh Initialization. ##
15118 ## -------------------- ##
15119
15120 # Be more Bourne compatible
15121 DUALCASE=1; export DUALCASE # for MKS sh
15122 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15123   emulate sh
15124   NULLCMD=:
15125   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15126   # is contrary to our usage.  Disable this feature.
15127   alias -g '${1+"$@"}'='"$@"'
15128   setopt NO_GLOB_SUBST
15129 else
15130   case `(set -o) 2>/dev/null` in #(
15131   *posix*) :
15132     set -o posix ;; #(
15133   *) :
15134      ;;
15135 esac
15136 fi
15137
15138
15139 as_nl='
15140 '
15141 export as_nl
15142 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15143 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15144 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15146 # Prefer a ksh shell builtin over an external printf program on Solaris,
15147 # but without wasting forks for bash or zsh.
15148 if test -z "$BASH_VERSION$ZSH_VERSION" \
15149     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15150   as_echo='print -r --'
15151   as_echo_n='print -rn --'
15152 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15153   as_echo='printf %s\n'
15154   as_echo_n='printf %s'
15155 else
15156   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15157     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15158     as_echo_n='/usr/ucb/echo -n'
15159   else
15160     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15161     as_echo_n_body='eval
15162       arg=$1;
15163       case $arg in #(
15164       *"$as_nl"*)
15165         expr "X$arg" : "X\\(.*\\)$as_nl";
15166         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15167       esac;
15168       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15169     '
15170     export as_echo_n_body
15171     as_echo_n='sh -c $as_echo_n_body as_echo'
15172   fi
15173   export as_echo_body
15174   as_echo='sh -c $as_echo_body as_echo'
15175 fi
15176
15177 # The user is always right.
15178 if test "${PATH_SEPARATOR+set}" != set; then
15179   PATH_SEPARATOR=:
15180   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15181     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15182       PATH_SEPARATOR=';'
15183   }
15184 fi
15185
15186
15187 # IFS
15188 # We need space, tab and new line, in precisely that order.  Quoting is
15189 # there to prevent editors from complaining about space-tab.
15190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15191 # splitting by setting IFS to empty value.)
15192 IFS=" ""        $as_nl"
15193
15194 # Find who we are.  Look in the path if we contain no directory separator.
15195 as_myself=
15196 case $0 in #((
15197   *[\\/]* ) as_myself=$0 ;;
15198   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199 for as_dir in $PATH
15200 do
15201   IFS=$as_save_IFS
15202   test -z "$as_dir" && as_dir=.
15203     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15204   done
15205 IFS=$as_save_IFS
15206
15207      ;;
15208 esac
15209 # We did not find ourselves, most probably we were run as `sh COMMAND'
15210 # in which case we are not to be found in the path.
15211 if test "x$as_myself" = x; then
15212   as_myself=$0
15213 fi
15214 if test ! -f "$as_myself"; then
15215   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15216   exit 1
15217 fi
15218
15219 # Unset variables that we do not need and which cause bugs (e.g. in
15220 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15221 # suppresses any "Segmentation fault" message there.  '((' could
15222 # trigger a bug in pdksh 5.2.14.
15223 for as_var in BASH_ENV ENV MAIL MAILPATH
15224 do eval test x\${$as_var+set} = xset \
15225   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15226 done
15227 PS1='$ '
15228 PS2='> '
15229 PS4='+ '
15230
15231 # NLS nuisances.
15232 LC_ALL=C
15233 export LC_ALL
15234 LANGUAGE=C
15235 export LANGUAGE
15236
15237 # CDPATH.
15238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15239
15240
15241 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15242 # ----------------------------------------
15243 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15244 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15245 # script with STATUS, using 1 if that was 0.
15246 as_fn_error ()
15247 {
15248   as_status=$1; test $as_status -eq 0 && as_status=1
15249   if test "$4"; then
15250     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15251     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15252   fi
15253   $as_echo "$as_me: error: $2" >&2
15254   as_fn_exit $as_status
15255 } # as_fn_error
15256
15257
15258 # as_fn_set_status STATUS
15259 # -----------------------
15260 # Set $? to STATUS, without forking.
15261 as_fn_set_status ()
15262 {
15263   return $1
15264 } # as_fn_set_status
15265
15266 # as_fn_exit STATUS
15267 # -----------------
15268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15269 as_fn_exit ()
15270 {
15271   set +e
15272   as_fn_set_status $1
15273   exit $1
15274 } # as_fn_exit
15275
15276 # as_fn_unset VAR
15277 # ---------------
15278 # Portably unset VAR.
15279 as_fn_unset ()
15280 {
15281   { eval $1=; unset $1;}
15282 }
15283 as_unset=as_fn_unset
15284 # as_fn_append VAR VALUE
15285 # ----------------------
15286 # Append the text in VALUE to the end of the definition contained in VAR. Take
15287 # advantage of any shell optimizations that allow amortized linear growth over
15288 # repeated appends, instead of the typical quadratic growth present in naive
15289 # implementations.
15290 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15291   eval 'as_fn_append ()
15292   {
15293     eval $1+=\$2
15294   }'
15295 else
15296   as_fn_append ()
15297   {
15298     eval $1=\$$1\$2
15299   }
15300 fi # as_fn_append
15301
15302 # as_fn_arith ARG...
15303 # ------------------
15304 # Perform arithmetic evaluation on the ARGs, and store the result in the
15305 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15306 # must be portable across $(()) and expr.
15307 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15308   eval 'as_fn_arith ()
15309   {
15310     as_val=$(( $* ))
15311   }'
15312 else
15313   as_fn_arith ()
15314   {
15315     as_val=`expr "$@" || test $? -eq 1`
15316   }
15317 fi # as_fn_arith
15318
15319
15320 if expr a : '\(a\)' >/dev/null 2>&1 &&
15321    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15322   as_expr=expr
15323 else
15324   as_expr=false
15325 fi
15326
15327 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15328   as_basename=basename
15329 else
15330   as_basename=false
15331 fi
15332
15333 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15334   as_dirname=dirname
15335 else
15336   as_dirname=false
15337 fi
15338
15339 as_me=`$as_basename -- "$0" ||
15340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15341          X"$0" : 'X\(//\)$' \| \
15342          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15343 $as_echo X/"$0" |
15344     sed '/^.*\/\([^/][^/]*\)\/*$/{
15345             s//\1/
15346             q
15347           }
15348           /^X\/\(\/\/\)$/{
15349             s//\1/
15350             q
15351           }
15352           /^X\/\(\/\).*/{
15353             s//\1/
15354             q
15355           }
15356           s/.*/./; q'`
15357
15358 # Avoid depending upon Character Ranges.
15359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15362 as_cr_digits='0123456789'
15363 as_cr_alnum=$as_cr_Letters$as_cr_digits
15364
15365 ECHO_C= ECHO_N= ECHO_T=
15366 case `echo -n x` in #(((((
15367 -n*)
15368   case `echo 'xy\c'` in
15369   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15370   xy)  ECHO_C='\c';;
15371   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15372        ECHO_T=' ';;
15373   esac;;
15374 *)
15375   ECHO_N='-n';;
15376 esac
15377
15378 rm -f conf$$ conf$$.exe conf$$.file
15379 if test -d conf$$.dir; then
15380   rm -f conf$$.dir/conf$$.file
15381 else
15382   rm -f conf$$.dir
15383   mkdir conf$$.dir 2>/dev/null
15384 fi
15385 if (echo >conf$$.file) 2>/dev/null; then
15386   if ln -s conf$$.file conf$$ 2>/dev/null; then
15387     as_ln_s='ln -s'
15388     # ... but there are two gotchas:
15389     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15390     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15391     # In both cases, we have to default to `cp -pR'.
15392     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15393       as_ln_s='cp -pR'
15394   elif ln conf$$.file conf$$ 2>/dev/null; then
15395     as_ln_s=ln
15396   else
15397     as_ln_s='cp -pR'
15398   fi
15399 else
15400   as_ln_s='cp -pR'
15401 fi
15402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15403 rmdir conf$$.dir 2>/dev/null
15404
15405
15406 # as_fn_mkdir_p
15407 # -------------
15408 # Create "$as_dir" as a directory, including parents if necessary.
15409 as_fn_mkdir_p ()
15410 {
15411
15412   case $as_dir in #(
15413   -*) as_dir=./$as_dir;;
15414   esac
15415   test -d "$as_dir" || eval $as_mkdir_p || {
15416     as_dirs=
15417     while :; do
15418       case $as_dir in #(
15419       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15420       *) as_qdir=$as_dir;;
15421       esac
15422       as_dirs="'$as_qdir' $as_dirs"
15423       as_dir=`$as_dirname -- "$as_dir" ||
15424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15425          X"$as_dir" : 'X\(//\)[^/]' \| \
15426          X"$as_dir" : 'X\(//\)$' \| \
15427          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15428 $as_echo X"$as_dir" |
15429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15430             s//\1/
15431             q
15432           }
15433           /^X\(\/\/\)[^/].*/{
15434             s//\1/
15435             q
15436           }
15437           /^X\(\/\/\)$/{
15438             s//\1/
15439             q
15440           }
15441           /^X\(\/\).*/{
15442             s//\1/
15443             q
15444           }
15445           s/.*/./; q'`
15446       test -d "$as_dir" && break
15447     done
15448     test -z "$as_dirs" || eval "mkdir $as_dirs"
15449   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15450
15451
15452 } # as_fn_mkdir_p
15453 if mkdir -p . 2>/dev/null; then
15454   as_mkdir_p='mkdir -p "$as_dir"'
15455 else
15456   test -d ./-p && rmdir ./-p
15457   as_mkdir_p=false
15458 fi
15459
15460
15461 # as_fn_executable_p FILE
15462 # -----------------------
15463 # Test if FILE is an executable regular file.
15464 as_fn_executable_p ()
15465 {
15466   test -f "$1" && test -x "$1"
15467 } # as_fn_executable_p
15468 as_test_x='test -x'
15469 as_executable_p=as_fn_executable_p
15470
15471 # Sed expression to map a string onto a valid CPP name.
15472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15473
15474 # Sed expression to map a string onto a valid variable name.
15475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15476
15477
15478 exec 6>&1
15479 ## ----------------------------------- ##
15480 ## Main body of $CONFIG_STATUS script. ##
15481 ## ----------------------------------- ##
15482 _ASEOF
15483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15484
15485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15486 # Save the log message, to keep $0 and so on meaningful, and to
15487 # report actual input values of CONFIG_FILES etc. instead of their
15488 # values after options handling.
15489 ac_log="
15490 This file was extended by libksba $as_me 1.3.4, which was
15491 generated by GNU Autoconf 2.69.  Invocation command line was
15492
15493   CONFIG_FILES    = $CONFIG_FILES
15494   CONFIG_HEADERS  = $CONFIG_HEADERS
15495   CONFIG_LINKS    = $CONFIG_LINKS
15496   CONFIG_COMMANDS = $CONFIG_COMMANDS
15497   $ $0 $@
15498
15499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15500 "
15501
15502 _ACEOF
15503
15504 case $ac_config_files in *"
15505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15506 esac
15507
15508 case $ac_config_headers in *"
15509 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15510 esac
15511
15512
15513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15514 # Files that config.status was made for.
15515 config_files="$ac_config_files"
15516 config_headers="$ac_config_headers"
15517 config_commands="$ac_config_commands"
15518
15519 _ACEOF
15520
15521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15522 ac_cs_usage="\
15523 \`$as_me' instantiates files and other configuration actions
15524 from templates according to the current configuration.  Unless the files
15525 and actions are specified as TAGs, all are instantiated by default.
15526
15527 Usage: $0 [OPTION]... [TAG]...
15528
15529   -h, --help       print this help, then exit
15530   -V, --version    print version number and configuration settings, then exit
15531       --config     print configuration, then exit
15532   -q, --quiet, --silent
15533                    do not print progress messages
15534   -d, --debug      don't remove temporary files
15535       --recheck    update $as_me by reconfiguring in the same conditions
15536       --file=FILE[:TEMPLATE]
15537                    instantiate the configuration file FILE
15538       --header=FILE[:TEMPLATE]
15539                    instantiate the configuration header FILE
15540
15541 Configuration files:
15542 $config_files
15543
15544 Configuration headers:
15545 $config_headers
15546
15547 Configuration commands:
15548 $config_commands
15549
15550 Report bugs to <http://bugs.gnupg.org>."
15551
15552 _ACEOF
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15555 ac_cs_version="\\
15556 libksba config.status 1.3.4
15557 configured by $0, generated by GNU Autoconf 2.69,
15558   with options \\"\$ac_cs_config\\"
15559
15560 Copyright (C) 2012 Free Software Foundation, Inc.
15561 This config.status script is free software; the Free Software Foundation
15562 gives unlimited permission to copy, distribute and modify it."
15563
15564 ac_pwd='$ac_pwd'
15565 srcdir='$srcdir'
15566 INSTALL='$INSTALL'
15567 MKDIR_P='$MKDIR_P'
15568 AWK='$AWK'
15569 test -n "\$AWK" || AWK=awk
15570 _ACEOF
15571
15572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573 # The default lists apply if the user does not specify any file.
15574 ac_need_defaults=:
15575 while test $# != 0
15576 do
15577   case $1 in
15578   --*=?*)
15579     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15580     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15581     ac_shift=:
15582     ;;
15583   --*=)
15584     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15585     ac_optarg=
15586     ac_shift=:
15587     ;;
15588   *)
15589     ac_option=$1
15590     ac_optarg=$2
15591     ac_shift=shift
15592     ;;
15593   esac
15594
15595   case $ac_option in
15596   # Handling of the options.
15597   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15598     ac_cs_recheck=: ;;
15599   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15600     $as_echo "$ac_cs_version"; exit ;;
15601   --config | --confi | --conf | --con | --co | --c )
15602     $as_echo "$ac_cs_config"; exit ;;
15603   --debug | --debu | --deb | --de | --d | -d )
15604     debug=: ;;
15605   --file | --fil | --fi | --f )
15606     $ac_shift
15607     case $ac_optarg in
15608     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15609     '') as_fn_error $? "missing file argument" ;;
15610     esac
15611     as_fn_append CONFIG_FILES " '$ac_optarg'"
15612     ac_need_defaults=false;;
15613   --header | --heade | --head | --hea )
15614     $ac_shift
15615     case $ac_optarg in
15616     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15617     esac
15618     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15619     ac_need_defaults=false;;
15620   --he | --h)
15621     # Conflict between --help and --header
15622     as_fn_error $? "ambiguous option: \`$1'
15623 Try \`$0 --help' for more information.";;
15624   --help | --hel | -h )
15625     $as_echo "$ac_cs_usage"; exit ;;
15626   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15627   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15628     ac_cs_silent=: ;;
15629
15630   # This is an error.
15631   -*) as_fn_error $? "unrecognized option: \`$1'
15632 Try \`$0 --help' for more information." ;;
15633
15634   *) as_fn_append ac_config_targets " $1"
15635      ac_need_defaults=false ;;
15636
15637   esac
15638   shift
15639 done
15640
15641 ac_configure_extra_args=
15642
15643 if $ac_cs_silent; then
15644   exec 6>/dev/null
15645   ac_configure_extra_args="$ac_configure_extra_args --silent"
15646 fi
15647
15648 _ACEOF
15649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15650 if \$ac_cs_recheck; then
15651   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15652   shift
15653   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15654   CONFIG_SHELL='$SHELL'
15655   export CONFIG_SHELL
15656   exec "\$@"
15657 fi
15658
15659 _ACEOF
15660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15661 exec 5>>config.log
15662 {
15663   echo
15664   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15665 ## Running $as_me. ##
15666 _ASBOX
15667   $as_echo "$ac_log"
15668 } >&5
15669
15670 _ACEOF
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672 #
15673 # INIT-COMMANDS
15674 #
15675 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15676
15677
15678 # The HP-UX ksh and POSIX shell print the target directory to stdout
15679 # if CDPATH is set.
15680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15681
15682 sed_quote_subst='$sed_quote_subst'
15683 double_quote_subst='$double_quote_subst'
15684 delay_variable_subst='$delay_variable_subst'
15685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15687 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15688 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15689 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15690 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15691 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15692 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15693 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15694 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15695 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15696 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15697 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15698 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15699 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15700 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15701 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15702 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15703 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15704 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15705 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15706 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15707 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15708 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15709 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15710 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15711 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15712 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15713 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15714 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15715 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15716 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15717 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15718 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15719 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15720 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15721 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15722 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15723 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15724 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15725 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15726 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15727 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15728 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15729 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15730 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15731 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15732 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15733 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15734 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15735 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15736 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15737 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15738 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15739 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15740 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15741 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15742 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"`'
15743 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15744 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15745 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15746 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15747 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15748 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15749 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15750 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15751 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15752 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15753 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15754 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15755 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15756 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15757 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15758 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15759 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15760 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15761 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15762 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15763 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15764 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15765 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15766 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15767 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15768 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15769 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15770 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15771 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15772 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15773 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15774 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15775 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15776 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15777 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15778 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15779 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15780 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15781 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15782 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15783 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15784 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15785 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15786 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15787 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15788 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15789 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15790 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15791 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15792 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15793 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15794 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15795 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15796 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15797 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15798 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15799 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15800 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15801 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15802 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15803 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15804 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15805 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15806 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15807 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15808 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15809 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15810 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15811 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15812 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15813 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15814 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15815 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15816 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
15817 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
15818 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
15819 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15820 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
15821 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
15822 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
15823 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
15824 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
15825 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
15826 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
15827 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
15828 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
15829 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15830 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15831 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
15832 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
15833 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
15834 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15835 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
15836 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
15837 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
15838 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
15839 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
15840 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
15841 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15842 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
15843 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
15844 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
15845 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
15846 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
15847 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
15848 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
15849 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
15850 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
15851 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
15852 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
15853 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
15854 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
15855 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
15856 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
15857 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
15858
15859 LTCC='$LTCC'
15860 LTCFLAGS='$LTCFLAGS'
15861 compiler='$compiler_DEFAULT'
15862
15863 # A function that is used when there is no print builtin or printf.
15864 func_fallback_echo ()
15865 {
15866   eval 'cat <<_LTECHO_EOF
15867 \$1
15868 _LTECHO_EOF'
15869 }
15870
15871 # Quote evaled strings.
15872 for var in AS \
15873 DLLTOOL \
15874 OBJDUMP \
15875 SHELL \
15876 ECHO \
15877 PATH_SEPARATOR \
15878 SED \
15879 GREP \
15880 EGREP \
15881 FGREP \
15882 LD \
15883 NM \
15884 LN_S \
15885 lt_SP2NL \
15886 lt_NL2SP \
15887 reload_flag \
15888 deplibs_check_method \
15889 file_magic_cmd \
15890 file_magic_glob \
15891 want_nocaseglob \
15892 sharedlib_from_linklib_cmd \
15893 AR \
15894 AR_FLAGS \
15895 archiver_list_spec \
15896 STRIP \
15897 RANLIB \
15898 CC \
15899 CFLAGS \
15900 compiler \
15901 lt_cv_sys_global_symbol_pipe \
15902 lt_cv_sys_global_symbol_to_cdecl \
15903 lt_cv_sys_global_symbol_to_c_name_address \
15904 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15905 nm_file_list_spec \
15906 lt_prog_compiler_no_builtin_flag \
15907 lt_prog_compiler_pic \
15908 lt_prog_compiler_wl \
15909 lt_prog_compiler_static \
15910 lt_cv_prog_compiler_c_o \
15911 need_locks \
15912 MANIFEST_TOOL \
15913 DSYMUTIL \
15914 NMEDIT \
15915 LIPO \
15916 OTOOL \
15917 OTOOL64 \
15918 shrext_cmds \
15919 export_dynamic_flag_spec \
15920 whole_archive_flag_spec \
15921 compiler_needs_object \
15922 with_gnu_ld \
15923 allow_undefined_flag \
15924 no_undefined_flag \
15925 hardcode_libdir_flag_spec \
15926 hardcode_libdir_separator \
15927 exclude_expsyms \
15928 include_expsyms \
15929 file_list_spec \
15930 variables_saved_for_relink \
15931 libname_spec \
15932 library_names_spec \
15933 soname_spec \
15934 install_override_mode \
15935 finish_eval \
15936 old_striplib \
15937 striplib \
15938 LD_RC \
15939 reload_flag_RC \
15940 compiler_RC \
15941 lt_prog_compiler_no_builtin_flag_RC \
15942 lt_prog_compiler_pic_RC \
15943 lt_prog_compiler_wl_RC \
15944 lt_prog_compiler_static_RC \
15945 lt_cv_prog_compiler_c_o_RC \
15946 export_dynamic_flag_spec_RC \
15947 whole_archive_flag_spec_RC \
15948 compiler_needs_object_RC \
15949 with_gnu_ld_RC \
15950 allow_undefined_flag_RC \
15951 no_undefined_flag_RC \
15952 hardcode_libdir_flag_spec_RC \
15953 hardcode_libdir_separator_RC \
15954 exclude_expsyms_RC \
15955 include_expsyms_RC \
15956 file_list_spec_RC; do
15957     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15958     *[\\\\\\\`\\"\\\$]*)
15959       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15960       ;;
15961     *)
15962       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15963       ;;
15964     esac
15965 done
15966
15967 # Double-quote double-evaled strings.
15968 for var in reload_cmds \
15969 old_postinstall_cmds \
15970 old_postuninstall_cmds \
15971 old_archive_cmds \
15972 extract_expsyms_cmds \
15973 old_archive_from_new_cmds \
15974 old_archive_from_expsyms_cmds \
15975 archive_cmds \
15976 archive_expsym_cmds \
15977 module_cmds \
15978 module_expsym_cmds \
15979 export_symbols_cmds \
15980 prelink_cmds \
15981 postlink_cmds \
15982 postinstall_cmds \
15983 postuninstall_cmds \
15984 finish_cmds \
15985 sys_lib_search_path_spec \
15986 sys_lib_dlsearch_path_spec \
15987 reload_cmds_RC \
15988 old_archive_cmds_RC \
15989 old_archive_from_new_cmds_RC \
15990 old_archive_from_expsyms_cmds_RC \
15991 archive_cmds_RC \
15992 archive_expsym_cmds_RC \
15993 module_cmds_RC \
15994 module_expsym_cmds_RC \
15995 export_symbols_cmds_RC \
15996 prelink_cmds_RC \
15997 postlink_cmds_RC; do
15998     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15999     *[\\\\\\\`\\"\\\$]*)
16000       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16001       ;;
16002     *)
16003       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16004       ;;
16005     esac
16006 done
16007
16008 ac_aux_dir='$ac_aux_dir'
16009 xsi_shell='$xsi_shell'
16010 lt_shell_append='$lt_shell_append'
16011
16012 # See if we are running on zsh, and set the options which allow our
16013 # commands through without removal of \ escapes INIT.
16014 if test -n "\${ZSH_VERSION+set}" ; then
16015    setopt NO_GLOB_SUBST
16016 fi
16017
16018
16019     PACKAGE='$PACKAGE'
16020     VERSION='$VERSION'
16021     TIMESTAMP='$TIMESTAMP'
16022     RM='$RM'
16023     ofile='$ofile'
16024
16025
16026
16027
16028
16029
16030 _ACEOF
16031
16032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033
16034 # Handling of arguments.
16035 for ac_config_target in $ac_config_targets
16036 do
16037   case $ac_config_target in
16038     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16039     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16040     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16041     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16042     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16043     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
16044     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16045     "src/ksba-config") CONFIG_FILES="$CONFIG_FILES src/ksba-config" ;;
16046     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
16047     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16048     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16049
16050   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16051   esac
16052 done
16053
16054
16055 # If the user did not use the arguments to specify the items to instantiate,
16056 # then the envvar interface is used.  Set only those that are not.
16057 # We use the long form for the default assignment because of an extremely
16058 # bizarre bug on SunOS 4.1.3.
16059 if $ac_need_defaults; then
16060   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16061   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16062   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16063 fi
16064
16065 # Have a temporary directory for convenience.  Make it in the build tree
16066 # simply because there is no reason against having it here, and in addition,
16067 # creating and moving files from /tmp can sometimes cause problems.
16068 # Hook for its removal unless debugging.
16069 # Note that there is a small window in which the directory will not be cleaned:
16070 # after its creation but before its name has been assigned to `$tmp'.
16071 $debug ||
16072 {
16073   tmp= ac_tmp=
16074   trap 'exit_status=$?
16075   : "${ac_tmp:=$tmp}"
16076   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16077 ' 0
16078   trap 'as_fn_exit 1' 1 2 13 15
16079 }
16080 # Create a (secure) tmp directory for tmp files.
16081
16082 {
16083   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16084   test -d "$tmp"
16085 }  ||
16086 {
16087   tmp=./conf$$-$RANDOM
16088   (umask 077 && mkdir "$tmp")
16089 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16090 ac_tmp=$tmp
16091
16092 # Set up the scripts for CONFIG_FILES section.
16093 # No need to generate them if there are no CONFIG_FILES.
16094 # This happens for instance with `./config.status config.h'.
16095 if test -n "$CONFIG_FILES"; then
16096
16097
16098 ac_cr=`echo X | tr X '\015'`
16099 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16100 # But we know of no other shell where ac_cr would be empty at this
16101 # point, so we can use a bashism as a fallback.
16102 if test "x$ac_cr" = x; then
16103   eval ac_cr=\$\'\\r\'
16104 fi
16105 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16106 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16107   ac_cs_awk_cr='\\r'
16108 else
16109   ac_cs_awk_cr=$ac_cr
16110 fi
16111
16112 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16113 _ACEOF
16114
16115
16116 {
16117   echo "cat >conf$$subs.awk <<_ACEOF" &&
16118   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16119   echo "_ACEOF"
16120 } >conf$$subs.sh ||
16121   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16122 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16123 ac_delim='%!_!# '
16124 for ac_last_try in false false false false false :; do
16125   . ./conf$$subs.sh ||
16126     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16127
16128   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16129   if test $ac_delim_n = $ac_delim_num; then
16130     break
16131   elif $ac_last_try; then
16132     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16133   else
16134     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16135   fi
16136 done
16137 rm -f conf$$subs.sh
16138
16139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16140 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16141 _ACEOF
16142 sed -n '
16143 h
16144 s/^/S["/; s/!.*/"]=/
16145 p
16146 g
16147 s/^[^!]*!//
16148 :repl
16149 t repl
16150 s/'"$ac_delim"'$//
16151 t delim
16152 :nl
16153 h
16154 s/\(.\{148\}\)..*/\1/
16155 t more1
16156 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16157 p
16158 n
16159 b repl
16160 :more1
16161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16162 p
16163 g
16164 s/.\{148\}//
16165 t nl
16166 :delim
16167 h
16168 s/\(.\{148\}\)..*/\1/
16169 t more2
16170 s/["\\]/\\&/g; s/^/"/; s/$/"/
16171 p
16172 b
16173 :more2
16174 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16175 p
16176 g
16177 s/.\{148\}//
16178 t delim
16179 ' <conf$$subs.awk | sed '
16180 /^[^""]/{
16181   N
16182   s/\n//
16183 }
16184 ' >>$CONFIG_STATUS || ac_write_fail=1
16185 rm -f conf$$subs.awk
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 _ACAWK
16188 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16189   for (key in S) S_is_set[key] = 1
16190   FS = "\a"
16191
16192 }
16193 {
16194   line = $ 0
16195   nfields = split(line, field, "@")
16196   substed = 0
16197   len = length(field[1])
16198   for (i = 2; i < nfields; i++) {
16199     key = field[i]
16200     keylen = length(key)
16201     if (S_is_set[key]) {
16202       value = S[key]
16203       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16204       len += length(value) + length(field[++i])
16205       substed = 1
16206     } else
16207       len += 1 + keylen
16208   }
16209
16210   print line
16211 }
16212
16213 _ACAWK
16214 _ACEOF
16215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16216 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16217   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16218 else
16219   cat
16220 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16221   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16222 _ACEOF
16223
16224 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16225 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16226 # trailing colons and then remove the whole line if VPATH becomes empty
16227 # (actually we leave an empty line to preserve line numbers).
16228 if test "x$srcdir" = x.; then
16229   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16230 h
16231 s///
16232 s/^/:/
16233 s/[      ]*$/:/
16234 s/:\$(srcdir):/:/g
16235 s/:\${srcdir}:/:/g
16236 s/:@srcdir@:/:/g
16237 s/^:*//
16238 s/:*$//
16239 x
16240 s/\(=[   ]*\).*/\1/
16241 G
16242 s/\n//
16243 s/^[^=]*=[       ]*$//
16244 }'
16245 fi
16246
16247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16248 fi # test -n "$CONFIG_FILES"
16249
16250 # Set up the scripts for CONFIG_HEADERS section.
16251 # No need to generate them if there are no CONFIG_HEADERS.
16252 # This happens for instance with `./config.status Makefile'.
16253 if test -n "$CONFIG_HEADERS"; then
16254 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16255 BEGIN {
16256 _ACEOF
16257
16258 # Transform confdefs.h into an awk script `defines.awk', embedded as
16259 # here-document in config.status, that substitutes the proper values into
16260 # config.h.in to produce config.h.
16261
16262 # Create a delimiter string that does not exist in confdefs.h, to ease
16263 # handling of long lines.
16264 ac_delim='%!_!# '
16265 for ac_last_try in false false :; do
16266   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16267   if test -z "$ac_tt"; then
16268     break
16269   elif $ac_last_try; then
16270     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16271   else
16272     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16273   fi
16274 done
16275
16276 # For the awk script, D is an array of macro values keyed by name,
16277 # likewise P contains macro parameters if any.  Preserve backslash
16278 # newline sequences.
16279
16280 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16281 sed -n '
16282 s/.\{148\}/&'"$ac_delim"'/g
16283 t rset
16284 :rset
16285 s/^[     ]*#[    ]*define[       ][      ]*/ /
16286 t def
16287 d
16288 :def
16289 s/\\$//
16290 t bsnl
16291 s/["\\]/\\&/g
16292 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16293 D["\1"]=" \3"/p
16294 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16295 d
16296 :bsnl
16297 s/["\\]/\\&/g
16298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16299 D["\1"]=" \3\\\\\\n"\\/p
16300 t cont
16301 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16302 t cont
16303 d
16304 :cont
16305 n
16306 s/.\{148\}/&'"$ac_delim"'/g
16307 t clear
16308 :clear
16309 s/\\$//
16310 t bsnlc
16311 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16312 d
16313 :bsnlc
16314 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16315 b cont
16316 ' <confdefs.h | sed '
16317 s/'"$ac_delim"'/"\\\
16318 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16319
16320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321   for (key in D) D_is_set[key] = 1
16322   FS = "\a"
16323 }
16324 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16325   line = \$ 0
16326   split(line, arg, " ")
16327   if (arg[1] == "#") {
16328     defundef = arg[2]
16329     mac1 = arg[3]
16330   } else {
16331     defundef = substr(arg[1], 2)
16332     mac1 = arg[2]
16333   }
16334   split(mac1, mac2, "(") #)
16335   macro = mac2[1]
16336   prefix = substr(line, 1, index(line, defundef) - 1)
16337   if (D_is_set[macro]) {
16338     # Preserve the white space surrounding the "#".
16339     print prefix "define", macro P[macro] D[macro]
16340     next
16341   } else {
16342     # Replace #undef with comments.  This is necessary, for example,
16343     # in the case of _POSIX_SOURCE, which is predefined and required
16344     # on some systems where configure will not decide to define it.
16345     if (defundef == "undef") {
16346       print "/*", prefix defundef, macro, "*/"
16347       next
16348     }
16349   }
16350 }
16351 { print }
16352 _ACAWK
16353 _ACEOF
16354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16355   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16356 fi # test -n "$CONFIG_HEADERS"
16357
16358
16359 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16360 shift
16361 for ac_tag
16362 do
16363   case $ac_tag in
16364   :[FHLC]) ac_mode=$ac_tag; continue;;
16365   esac
16366   case $ac_mode$ac_tag in
16367   :[FHL]*:*);;
16368   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16369   :[FH]-) ac_tag=-:-;;
16370   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16371   esac
16372   ac_save_IFS=$IFS
16373   IFS=:
16374   set x $ac_tag
16375   IFS=$ac_save_IFS
16376   shift
16377   ac_file=$1
16378   shift
16379
16380   case $ac_mode in
16381   :L) ac_source=$1;;
16382   :[FH])
16383     ac_file_inputs=
16384     for ac_f
16385     do
16386       case $ac_f in
16387       -) ac_f="$ac_tmp/stdin";;
16388       *) # Look for the file first in the build tree, then in the source tree
16389          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16390          # because $ac_f cannot contain `:'.
16391          test -f "$ac_f" ||
16392            case $ac_f in
16393            [\\/$]*) false;;
16394            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16395            esac ||
16396            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16397       esac
16398       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16399       as_fn_append ac_file_inputs " '$ac_f'"
16400     done
16401
16402     # Let's still pretend it is `configure' which instantiates (i.e., don't
16403     # use $as_me), people would be surprised to read:
16404     #    /* config.h.  Generated by config.status.  */
16405     configure_input='Generated from '`
16406           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16407         `' by configure.'
16408     if test x"$ac_file" != x-; then
16409       configure_input="$ac_file.  $configure_input"
16410       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16411 $as_echo "$as_me: creating $ac_file" >&6;}
16412     fi
16413     # Neutralize special characters interpreted by sed in replacement strings.
16414     case $configure_input in #(
16415     *\&* | *\|* | *\\* )
16416        ac_sed_conf_input=`$as_echo "$configure_input" |
16417        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16418     *) ac_sed_conf_input=$configure_input;;
16419     esac
16420
16421     case $ac_tag in
16422     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16423       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16424     esac
16425     ;;
16426   esac
16427
16428   ac_dir=`$as_dirname -- "$ac_file" ||
16429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16430          X"$ac_file" : 'X\(//\)[^/]' \| \
16431          X"$ac_file" : 'X\(//\)$' \| \
16432          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16433 $as_echo X"$ac_file" |
16434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16435             s//\1/
16436             q
16437           }
16438           /^X\(\/\/\)[^/].*/{
16439             s//\1/
16440             q
16441           }
16442           /^X\(\/\/\)$/{
16443             s//\1/
16444             q
16445           }
16446           /^X\(\/\).*/{
16447             s//\1/
16448             q
16449           }
16450           s/.*/./; q'`
16451   as_dir="$ac_dir"; as_fn_mkdir_p
16452   ac_builddir=.
16453
16454 case "$ac_dir" in
16455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16456 *)
16457   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16458   # A ".." for each directory in $ac_dir_suffix.
16459   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16460   case $ac_top_builddir_sub in
16461   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16462   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16463   esac ;;
16464 esac
16465 ac_abs_top_builddir=$ac_pwd
16466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16467 # for backward compatibility:
16468 ac_top_builddir=$ac_top_build_prefix
16469
16470 case $srcdir in
16471   .)  # We are building in place.
16472     ac_srcdir=.
16473     ac_top_srcdir=$ac_top_builddir_sub
16474     ac_abs_top_srcdir=$ac_pwd ;;
16475   [\\/]* | ?:[\\/]* )  # Absolute name.
16476     ac_srcdir=$srcdir$ac_dir_suffix;
16477     ac_top_srcdir=$srcdir
16478     ac_abs_top_srcdir=$srcdir ;;
16479   *) # Relative name.
16480     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16481     ac_top_srcdir=$ac_top_build_prefix$srcdir
16482     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16483 esac
16484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16485
16486
16487   case $ac_mode in
16488   :F)
16489   #
16490   # CONFIG_FILE
16491   #
16492
16493   case $INSTALL in
16494   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16495   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16496   esac
16497   ac_MKDIR_P=$MKDIR_P
16498   case $MKDIR_P in
16499   [\\/$]* | ?:[\\/]* ) ;;
16500   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16501   esac
16502 _ACEOF
16503
16504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505 # If the template does not know about datarootdir, expand it.
16506 # FIXME: This hack should be removed a few years after 2.60.
16507 ac_datarootdir_hack=; ac_datarootdir_seen=
16508 ac_sed_dataroot='
16509 /datarootdir/ {
16510   p
16511   q
16512 }
16513 /@datadir@/p
16514 /@docdir@/p
16515 /@infodir@/p
16516 /@localedir@/p
16517 /@mandir@/p'
16518 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16519 *datarootdir*) ac_datarootdir_seen=yes;;
16520 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16521   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16522 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16523 _ACEOF
16524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525   ac_datarootdir_hack='
16526   s&@datadir@&$datadir&g
16527   s&@docdir@&$docdir&g
16528   s&@infodir@&$infodir&g
16529   s&@localedir@&$localedir&g
16530   s&@mandir@&$mandir&g
16531   s&\\\${datarootdir}&$datarootdir&g' ;;
16532 esac
16533 _ACEOF
16534
16535 # Neutralize VPATH when `$srcdir' = `.'.
16536 # Shell code in configure.ac might set extrasub.
16537 # FIXME: do we really want to maintain this feature?
16538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16539 ac_sed_extra="$ac_vpsub
16540 $extrasub
16541 _ACEOF
16542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16543 :t
16544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16545 s|@configure_input@|$ac_sed_conf_input|;t t
16546 s&@top_builddir@&$ac_top_builddir_sub&;t t
16547 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16548 s&@srcdir@&$ac_srcdir&;t t
16549 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16550 s&@top_srcdir@&$ac_top_srcdir&;t t
16551 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16552 s&@builddir@&$ac_builddir&;t t
16553 s&@abs_builddir@&$ac_abs_builddir&;t t
16554 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16555 s&@INSTALL@&$ac_INSTALL&;t t
16556 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16557 $ac_datarootdir_hack
16558 "
16559 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16560   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16561
16562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16563   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16564   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16565       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16566   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16567 which seems to be undefined.  Please make sure it is defined" >&5
16568 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16569 which seems to be undefined.  Please make sure it is defined" >&2;}
16570
16571   rm -f "$ac_tmp/stdin"
16572   case $ac_file in
16573   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16574   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16575   esac \
16576   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16577  ;;
16578   :H)
16579   #
16580   # CONFIG_HEADER
16581   #
16582   if test x"$ac_file" != x-; then
16583     {
16584       $as_echo "/* $configure_input  */" \
16585       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16586     } >"$ac_tmp/config.h" \
16587       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16588     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16589       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16590 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16591     else
16592       rm -f "$ac_file"
16593       mv "$ac_tmp/config.h" "$ac_file" \
16594         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16595     fi
16596   else
16597     $as_echo "/* $configure_input  */" \
16598       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16599       || as_fn_error $? "could not create -" "$LINENO" 5
16600   fi
16601 # Compute "$ac_file"'s index in $config_headers.
16602 _am_arg="$ac_file"
16603 _am_stamp_count=1
16604 for _am_header in $config_headers :; do
16605   case $_am_header in
16606     $_am_arg | $_am_arg:* )
16607       break ;;
16608     * )
16609       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16610   esac
16611 done
16612 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16613 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16614          X"$_am_arg" : 'X\(//\)[^/]' \| \
16615          X"$_am_arg" : 'X\(//\)$' \| \
16616          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16617 $as_echo X"$_am_arg" |
16618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16619             s//\1/
16620             q
16621           }
16622           /^X\(\/\/\)[^/].*/{
16623             s//\1/
16624             q
16625           }
16626           /^X\(\/\/\)$/{
16627             s//\1/
16628             q
16629           }
16630           /^X\(\/\).*/{
16631             s//\1/
16632             q
16633           }
16634           s/.*/./; q'`/stamp-h$_am_stamp_count
16635  ;;
16636
16637   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16638 $as_echo "$as_me: executing $ac_file commands" >&6;}
16639  ;;
16640   esac
16641
16642
16643   case $ac_file$ac_mode in
16644     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16645   # Older Autoconf quotes --file arguments for eval, but not when files
16646   # are listed without --file.  Let's play safe and only enable the eval
16647   # if we detect the quoting.
16648   case $CONFIG_FILES in
16649   *\'*) eval set x "$CONFIG_FILES" ;;
16650   *)   set x $CONFIG_FILES ;;
16651   esac
16652   shift
16653   for mf
16654   do
16655     # Strip MF so we end up with the name of the file.
16656     mf=`echo "$mf" | sed -e 's/:.*$//'`
16657     # Check whether this is an Automake generated Makefile or not.
16658     # We used to match only the files named 'Makefile.in', but
16659     # some people rename them; so instead we look at the file content.
16660     # Grep'ing the first line is not enough: some people post-process
16661     # each Makefile.in and add a new line on top of each file to say so.
16662     # Grep'ing the whole file is not good either: AIX grep has a line
16663     # limit of 2048, but all sed's we know have understand at least 4000.
16664     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16665       dirpart=`$as_dirname -- "$mf" ||
16666 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16667          X"$mf" : 'X\(//\)[^/]' \| \
16668          X"$mf" : 'X\(//\)$' \| \
16669          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16670 $as_echo X"$mf" |
16671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16672             s//\1/
16673             q
16674           }
16675           /^X\(\/\/\)[^/].*/{
16676             s//\1/
16677             q
16678           }
16679           /^X\(\/\/\)$/{
16680             s//\1/
16681             q
16682           }
16683           /^X\(\/\).*/{
16684             s//\1/
16685             q
16686           }
16687           s/.*/./; q'`
16688     else
16689       continue
16690     fi
16691     # Extract the definition of DEPDIR, am__include, and am__quote
16692     # from the Makefile without running 'make'.
16693     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16694     test -z "$DEPDIR" && continue
16695     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16696     test -z "$am__include" && continue
16697     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16698     # Find all dependency output files, they are included files with
16699     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16700     # simplest approach to changing $(DEPDIR) to its actual value in the
16701     # expansion.
16702     for file in `sed -n "
16703       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16704          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16705       # Make sure the directory exists.
16706       test -f "$dirpart/$file" && continue
16707       fdir=`$as_dirname -- "$file" ||
16708 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16709          X"$file" : 'X\(//\)[^/]' \| \
16710          X"$file" : 'X\(//\)$' \| \
16711          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16712 $as_echo X"$file" |
16713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16714             s//\1/
16715             q
16716           }
16717           /^X\(\/\/\)[^/].*/{
16718             s//\1/
16719             q
16720           }
16721           /^X\(\/\/\)$/{
16722             s//\1/
16723             q
16724           }
16725           /^X\(\/\).*/{
16726             s//\1/
16727             q
16728           }
16729           s/.*/./; q'`
16730       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16731       # echo "creating $dirpart/$file"
16732       echo '# dummy' > "$dirpart/$file"
16733     done
16734   done
16735 }
16736  ;;
16737     "libtool":C)
16738
16739     # See if we are running on zsh, and set the options which allow our
16740     # commands through without removal of \ escapes.
16741     if test -n "${ZSH_VERSION+set}" ; then
16742       setopt NO_GLOB_SUBST
16743     fi
16744
16745     cfgfile="${ofile}T"
16746     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16747     $RM "$cfgfile"
16748
16749     cat <<_LT_EOF >> "$cfgfile"
16750 #! $SHELL
16751
16752 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16753 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16755 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16756 #
16757 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16758 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16759 #                 Foundation, Inc.
16760 #   Written by Gordon Matzigkeit, 1996
16761 #
16762 #   This file is part of GNU Libtool.
16763 #
16764 # GNU Libtool is free software; you can redistribute it and/or
16765 # modify it under the terms of the GNU General Public License as
16766 # published by the Free Software Foundation; either version 2 of
16767 # the License, or (at your option) any later version.
16768 #
16769 # As a special exception to the GNU General Public License,
16770 # if you distribute this file as part of a program or library that
16771 # is built using GNU Libtool, you may include this file under the
16772 # same distribution terms that you use for the rest of that program.
16773 #
16774 # GNU Libtool is distributed in the hope that it will be useful,
16775 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16776 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16777 # GNU General Public License for more details.
16778 #
16779 # You should have received a copy of the GNU General Public License
16780 # along with GNU Libtool; see the file COPYING.  If not, a copy
16781 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16782 # obtained by writing to the Free Software Foundation, Inc.,
16783 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16784
16785
16786 # The names of the tagged configurations supported by this script.
16787 available_tags="RC "
16788
16789 # ### BEGIN LIBTOOL CONFIG
16790
16791 # Which release of libtool.m4 was used?
16792 macro_version=$macro_version
16793 macro_revision=$macro_revision
16794
16795 # Assembler program.
16796 AS=$lt_AS
16797
16798 # DLL creation program.
16799 DLLTOOL=$lt_DLLTOOL
16800
16801 # Object dumper program.
16802 OBJDUMP=$lt_OBJDUMP
16803
16804 # Whether or not to build static libraries.
16805 build_old_libs=$enable_static
16806
16807 # Whether or not to build shared libraries.
16808 build_libtool_libs=$enable_shared
16809
16810 # What type of objects to build.
16811 pic_mode=$pic_mode
16812
16813 # Whether or not to optimize for fast installation.
16814 fast_install=$enable_fast_install
16815
16816 # Shell to use when invoking shell scripts.
16817 SHELL=$lt_SHELL
16818
16819 # An echo program that protects backslashes.
16820 ECHO=$lt_ECHO
16821
16822 # The PATH separator for the build system.
16823 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16824
16825 # The host system.
16826 host_alias=$host_alias
16827 host=$host
16828 host_os=$host_os
16829
16830 # The build system.
16831 build_alias=$build_alias
16832 build=$build
16833 build_os=$build_os
16834
16835 # A sed program that does not truncate output.
16836 SED=$lt_SED
16837
16838 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16839 Xsed="\$SED -e 1s/^X//"
16840
16841 # A grep program that handles long lines.
16842 GREP=$lt_GREP
16843
16844 # An ERE matcher.
16845 EGREP=$lt_EGREP
16846
16847 # A literal string matcher.
16848 FGREP=$lt_FGREP
16849
16850 # A BSD- or MS-compatible name lister.
16851 NM=$lt_NM
16852
16853 # Whether we need soft or hard links.
16854 LN_S=$lt_LN_S
16855
16856 # What is the maximum length of a command?
16857 max_cmd_len=$max_cmd_len
16858
16859 # Object file suffix (normally "o").
16860 objext=$ac_objext
16861
16862 # Executable file suffix (normally "").
16863 exeext=$exeext
16864
16865 # whether the shell understands "unset".
16866 lt_unset=$lt_unset
16867
16868 # turn spaces into newlines.
16869 SP2NL=$lt_lt_SP2NL
16870
16871 # turn newlines into spaces.
16872 NL2SP=$lt_lt_NL2SP
16873
16874 # convert \$build file names to \$host format.
16875 to_host_file_cmd=$lt_cv_to_host_file_cmd
16876
16877 # convert \$build files to toolchain format.
16878 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16879
16880 # Method to check whether dependent libraries are shared objects.
16881 deplibs_check_method=$lt_deplibs_check_method
16882
16883 # Command to use when deplibs_check_method = "file_magic".
16884 file_magic_cmd=$lt_file_magic_cmd
16885
16886 # How to find potential files when deplibs_check_method = "file_magic".
16887 file_magic_glob=$lt_file_magic_glob
16888
16889 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16890 want_nocaseglob=$lt_want_nocaseglob
16891
16892 # Command to associate shared and link libraries.
16893 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16894
16895 # The archiver.
16896 AR=$lt_AR
16897
16898 # Flags to create an archive.
16899 AR_FLAGS=$lt_AR_FLAGS
16900
16901 # How to feed a file listing to the archiver.
16902 archiver_list_spec=$lt_archiver_list_spec
16903
16904 # A symbol stripping program.
16905 STRIP=$lt_STRIP
16906
16907 # Commands used to install an old-style archive.
16908 RANLIB=$lt_RANLIB
16909 old_postinstall_cmds=$lt_old_postinstall_cmds
16910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16911
16912 # Whether to use a lock for old archive extraction.
16913 lock_old_archive_extraction=$lock_old_archive_extraction
16914
16915 # A C compiler.
16916 LTCC=$lt_CC
16917
16918 # LTCC compiler flags.
16919 LTCFLAGS=$lt_CFLAGS
16920
16921 # Take the output of nm and produce a listing of raw symbols and C names.
16922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16923
16924 # Transform the output of nm in a proper C declaration.
16925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16926
16927 # Transform the output of nm in a C name address pair.
16928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16929
16930 # Transform the output of nm in a C name address pair when lib prefix is needed.
16931 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16932
16933 # Specify filename containing input files for \$NM.
16934 nm_file_list_spec=$lt_nm_file_list_spec
16935
16936 # The root where to search for dependent libraries,and in which our libraries should be installed.
16937 lt_sysroot=$lt_sysroot
16938
16939 # The name of the directory that contains temporary libtool files.
16940 objdir=$objdir
16941
16942 # Used to examine libraries when file_magic_cmd begins with "file".
16943 MAGIC_CMD=$MAGIC_CMD
16944
16945 # Must we lock files when doing compilation?
16946 need_locks=$lt_need_locks
16947
16948 # Manifest tool.
16949 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16950
16951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16952 DSYMUTIL=$lt_DSYMUTIL
16953
16954 # Tool to change global to local symbols on Mac OS X.
16955 NMEDIT=$lt_NMEDIT
16956
16957 # Tool to manipulate fat objects and archives on Mac OS X.
16958 LIPO=$lt_LIPO
16959
16960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16961 OTOOL=$lt_OTOOL
16962
16963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16964 OTOOL64=$lt_OTOOL64
16965
16966 # Old archive suffix (normally "a").
16967 libext=$libext
16968
16969 # Shared library suffix (normally ".so").
16970 shrext_cmds=$lt_shrext_cmds
16971
16972 # The commands to extract the exported symbol list from a shared archive.
16973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16974
16975 # Variables whose values should be saved in libtool wrapper scripts and
16976 # restored at link time.
16977 variables_saved_for_relink=$lt_variables_saved_for_relink
16978
16979 # Do we need the "lib" prefix for modules?
16980 need_lib_prefix=$need_lib_prefix
16981
16982 # Do we need a version for libraries?
16983 need_version=$need_version
16984
16985 # Library versioning type.
16986 version_type=$version_type
16987
16988 # Shared library runtime path variable.
16989 runpath_var=$runpath_var
16990
16991 # Shared library path variable.
16992 shlibpath_var=$shlibpath_var
16993
16994 # Is shlibpath searched before the hard-coded library search path?
16995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16996
16997 # Format of library name prefix.
16998 libname_spec=$lt_libname_spec
16999
17000 # List of archive names.  First name is the real one, the rest are links.
17001 # The last name is the one that the linker finds with -lNAME
17002 library_names_spec=$lt_library_names_spec
17003
17004 # The coded name of the library, if different from the real name.
17005 soname_spec=$lt_soname_spec
17006
17007 # Permission mode override for installation of shared libraries.
17008 install_override_mode=$lt_install_override_mode
17009
17010 # Command to use after installation of a shared archive.
17011 postinstall_cmds=$lt_postinstall_cmds
17012
17013 # Command to use after uninstallation of a shared archive.
17014 postuninstall_cmds=$lt_postuninstall_cmds
17015
17016 # Commands used to finish a libtool library installation in a directory.
17017 finish_cmds=$lt_finish_cmds
17018
17019 # As "finish_cmds", except a single script fragment to be evaled but
17020 # not shown.
17021 finish_eval=$lt_finish_eval
17022
17023 # Whether we should hardcode library paths into libraries.
17024 hardcode_into_libs=$hardcode_into_libs
17025
17026 # Compile-time system search path for libraries.
17027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17028
17029 # Run-time system search path for libraries.
17030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17031
17032 # Whether dlopen is supported.
17033 dlopen_support=$enable_dlopen
17034
17035 # Whether dlopen of programs is supported.
17036 dlopen_self=$enable_dlopen_self
17037
17038 # Whether dlopen of statically linked programs is supported.
17039 dlopen_self_static=$enable_dlopen_self_static
17040
17041 # Commands to strip libraries.
17042 old_striplib=$lt_old_striplib
17043 striplib=$lt_striplib
17044
17045
17046 # The linker used to build libraries.
17047 LD=$lt_LD
17048
17049 # How to create reloadable object files.
17050 reload_flag=$lt_reload_flag
17051 reload_cmds=$lt_reload_cmds
17052
17053 # Commands used to build an old-style archive.
17054 old_archive_cmds=$lt_old_archive_cmds
17055
17056 # A language specific compiler.
17057 CC=$lt_compiler
17058
17059 # Is the compiler the GNU compiler?
17060 with_gcc=$GCC
17061
17062 # Compiler flag to turn off builtin functions.
17063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17064
17065 # Additional compiler flags for building library objects.
17066 pic_flag=$lt_lt_prog_compiler_pic
17067
17068 # How to pass a linker flag through the compiler.
17069 wl=$lt_lt_prog_compiler_wl
17070
17071 # Compiler flag to prevent dynamic linking.
17072 link_static_flag=$lt_lt_prog_compiler_static
17073
17074 # Does compiler simultaneously support -c and -o options?
17075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17076
17077 # Whether or not to add -lc for building shared libraries.
17078 build_libtool_need_lc=$archive_cmds_need_lc
17079
17080 # Whether or not to disallow shared libs when runtime libs are static.
17081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17082
17083 # Compiler flag to allow reflexive dlopens.
17084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17085
17086 # Compiler flag to generate shared objects directly from archives.
17087 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17088
17089 # Whether the compiler copes with passing no objects directly.
17090 compiler_needs_object=$lt_compiler_needs_object
17091
17092 # Create an old-style archive from a shared archive.
17093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17094
17095 # Create a temporary old-style archive to link instead of a shared archive.
17096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17097
17098 # Commands used to build a shared archive.
17099 archive_cmds=$lt_archive_cmds
17100 archive_expsym_cmds=$lt_archive_expsym_cmds
17101
17102 # Commands used to build a loadable module if different from building
17103 # a shared archive.
17104 module_cmds=$lt_module_cmds
17105 module_expsym_cmds=$lt_module_expsym_cmds
17106
17107 # Whether we are building with GNU ld or not.
17108 with_gnu_ld=$lt_with_gnu_ld
17109
17110 # Flag that allows shared libraries with undefined symbols to be built.
17111 allow_undefined_flag=$lt_allow_undefined_flag
17112
17113 # Flag that enforces no undefined symbols.
17114 no_undefined_flag=$lt_no_undefined_flag
17115
17116 # Flag to hardcode \$libdir into a binary during linking.
17117 # This must work even if \$libdir does not exist
17118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17119
17120 # Whether we need a single "-rpath" flag with a separated argument.
17121 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17122
17123 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17124 # DIR into the resulting binary.
17125 hardcode_direct=$hardcode_direct
17126
17127 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17128 # DIR into the resulting binary and the resulting library dependency is
17129 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17130 # library is relocated.
17131 hardcode_direct_absolute=$hardcode_direct_absolute
17132
17133 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17134 # into the resulting binary.
17135 hardcode_minus_L=$hardcode_minus_L
17136
17137 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17138 # into the resulting binary.
17139 hardcode_shlibpath_var=$hardcode_shlibpath_var
17140
17141 # Set to "yes" if building a shared library automatically hardcodes DIR
17142 # into the library and all subsequent libraries and executables linked
17143 # against it.
17144 hardcode_automatic=$hardcode_automatic
17145
17146 # Set to yes if linker adds runtime paths of dependent libraries
17147 # to runtime path list.
17148 inherit_rpath=$inherit_rpath
17149
17150 # Whether libtool must link a program against all its dependency libraries.
17151 link_all_deplibs=$link_all_deplibs
17152
17153 # Set to "yes" if exported symbols are required.
17154 always_export_symbols=$always_export_symbols
17155
17156 # The commands to list exported symbols.
17157 export_symbols_cmds=$lt_export_symbols_cmds
17158
17159 # Symbols that should not be listed in the preloaded symbols.
17160 exclude_expsyms=$lt_exclude_expsyms
17161
17162 # Symbols that must always be exported.
17163 include_expsyms=$lt_include_expsyms
17164
17165 # Commands necessary for linking programs (against libraries) with templates.
17166 prelink_cmds=$lt_prelink_cmds
17167
17168 # Commands necessary for finishing linking programs.
17169 postlink_cmds=$lt_postlink_cmds
17170
17171 # Specify filename containing input files.
17172 file_list_spec=$lt_file_list_spec
17173
17174 # How to hardcode a shared library path into an executable.
17175 hardcode_action=$hardcode_action
17176
17177 # ### END LIBTOOL CONFIG
17178
17179 _LT_EOF
17180
17181   case $host_os in
17182   aix3*)
17183     cat <<\_LT_EOF >> "$cfgfile"
17184 # AIX sometimes has problems with the GCC collect2 program.  For some
17185 # reason, if we set the COLLECT_NAMES environment variable, the problems
17186 # vanish in a puff of smoke.
17187 if test "X${COLLECT_NAMES+set}" != Xset; then
17188   COLLECT_NAMES=
17189   export COLLECT_NAMES
17190 fi
17191 _LT_EOF
17192     ;;
17193   esac
17194
17195
17196 ltmain="$ac_aux_dir/ltmain.sh"
17197
17198
17199   # We use sed instead of cat because bash on DJGPP gets confused if
17200   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17201   # text mode, it properly converts lines to CR/LF.  This bash problem
17202   # is reportedly fixed, but why not run on old versions too?
17203   sed '$q' "$ltmain" >> "$cfgfile" \
17204      || (rm -f "$cfgfile"; exit 1)
17205
17206   if test x"$xsi_shell" = xyes; then
17207   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17208 func_dirname ()\
17209 {\
17210 \    case ${1} in\
17211 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17212 \      *  ) func_dirname_result="${3}" ;;\
17213 \    esac\
17214 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17215   && mv -f "$cfgfile.tmp" "$cfgfile" \
17216     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17217 test 0 -eq $? || _lt_function_replace_fail=:
17218
17219
17220   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17221 func_basename ()\
17222 {\
17223 \    func_basename_result="${1##*/}"\
17224 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17225   && mv -f "$cfgfile.tmp" "$cfgfile" \
17226     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17227 test 0 -eq $? || _lt_function_replace_fail=:
17228
17229
17230   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17231 func_dirname_and_basename ()\
17232 {\
17233 \    case ${1} in\
17234 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17235 \      *  ) func_dirname_result="${3}" ;;\
17236 \    esac\
17237 \    func_basename_result="${1##*/}"\
17238 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17239   && mv -f "$cfgfile.tmp" "$cfgfile" \
17240     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17241 test 0 -eq $? || _lt_function_replace_fail=:
17242
17243
17244   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17245 func_stripname ()\
17246 {\
17247 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17248 \    # positional parameters, so assign one to ordinary parameter first.\
17249 \    func_stripname_result=${3}\
17250 \    func_stripname_result=${func_stripname_result#"${1}"}\
17251 \    func_stripname_result=${func_stripname_result%"${2}"}\
17252 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17253   && mv -f "$cfgfile.tmp" "$cfgfile" \
17254     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17255 test 0 -eq $? || _lt_function_replace_fail=:
17256
17257
17258   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17259 func_split_long_opt ()\
17260 {\
17261 \    func_split_long_opt_name=${1%%=*}\
17262 \    func_split_long_opt_arg=${1#*=}\
17263 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17264   && mv -f "$cfgfile.tmp" "$cfgfile" \
17265     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17266 test 0 -eq $? || _lt_function_replace_fail=:
17267
17268
17269   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17270 func_split_short_opt ()\
17271 {\
17272 \    func_split_short_opt_arg=${1#??}\
17273 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17274 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17275   && mv -f "$cfgfile.tmp" "$cfgfile" \
17276     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17277 test 0 -eq $? || _lt_function_replace_fail=:
17278
17279
17280   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17281 func_lo2o ()\
17282 {\
17283 \    case ${1} in\
17284 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17285 \      *)    func_lo2o_result=${1} ;;\
17286 \    esac\
17287 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17288   && mv -f "$cfgfile.tmp" "$cfgfile" \
17289     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17290 test 0 -eq $? || _lt_function_replace_fail=:
17291
17292
17293   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17294 func_xform ()\
17295 {\
17296     func_xform_result=${1%.*}.lo\
17297 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17298   && mv -f "$cfgfile.tmp" "$cfgfile" \
17299     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17300 test 0 -eq $? || _lt_function_replace_fail=:
17301
17302
17303   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17304 func_arith ()\
17305 {\
17306     func_arith_result=$(( $* ))\
17307 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17308   && mv -f "$cfgfile.tmp" "$cfgfile" \
17309     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17310 test 0 -eq $? || _lt_function_replace_fail=:
17311
17312
17313   sed -e '/^func_len ()$/,/^} # func_len /c\
17314 func_len ()\
17315 {\
17316     func_len_result=${#1}\
17317 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17318   && mv -f "$cfgfile.tmp" "$cfgfile" \
17319     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17320 test 0 -eq $? || _lt_function_replace_fail=:
17321
17322 fi
17323
17324 if test x"$lt_shell_append" = xyes; then
17325   sed -e '/^func_append ()$/,/^} # func_append /c\
17326 func_append ()\
17327 {\
17328     eval "${1}+=\\${2}"\
17329 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17330   && mv -f "$cfgfile.tmp" "$cfgfile" \
17331     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17332 test 0 -eq $? || _lt_function_replace_fail=:
17333
17334
17335   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17336 func_append_quoted ()\
17337 {\
17338 \    func_quote_for_eval "${2}"\
17339 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17340 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17341   && mv -f "$cfgfile.tmp" "$cfgfile" \
17342     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17343 test 0 -eq $? || _lt_function_replace_fail=:
17344
17345
17346   # Save a `func_append' function call where possible by direct use of '+='
17347   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17348     && mv -f "$cfgfile.tmp" "$cfgfile" \
17349       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17350   test 0 -eq $? || _lt_function_replace_fail=:
17351 else
17352   # Save a `func_append' function call even when '+=' is not available
17353   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17354     && mv -f "$cfgfile.tmp" "$cfgfile" \
17355       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17356   test 0 -eq $? || _lt_function_replace_fail=:
17357 fi
17358
17359 if test x"$_lt_function_replace_fail" = x":"; then
17360   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17361 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17362 fi
17363
17364
17365    mv -f "$cfgfile" "$ofile" ||
17366     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17367   chmod +x "$ofile"
17368
17369
17370     cat <<_LT_EOF >> "$ofile"
17371
17372 # ### BEGIN LIBTOOL TAG CONFIG: RC
17373
17374 # The linker used to build libraries.
17375 LD=$lt_LD_RC
17376
17377 # How to create reloadable object files.
17378 reload_flag=$lt_reload_flag_RC
17379 reload_cmds=$lt_reload_cmds_RC
17380
17381 # Commands used to build an old-style archive.
17382 old_archive_cmds=$lt_old_archive_cmds_RC
17383
17384 # A language specific compiler.
17385 CC=$lt_compiler_RC
17386
17387 # Is the compiler the GNU compiler?
17388 with_gcc=$GCC_RC
17389
17390 # Compiler flag to turn off builtin functions.
17391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17392
17393 # Additional compiler flags for building library objects.
17394 pic_flag=$lt_lt_prog_compiler_pic_RC
17395
17396 # How to pass a linker flag through the compiler.
17397 wl=$lt_lt_prog_compiler_wl_RC
17398
17399 # Compiler flag to prevent dynamic linking.
17400 link_static_flag=$lt_lt_prog_compiler_static_RC
17401
17402 # Does compiler simultaneously support -c and -o options?
17403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17404
17405 # Whether or not to add -lc for building shared libraries.
17406 build_libtool_need_lc=$archive_cmds_need_lc_RC
17407
17408 # Whether or not to disallow shared libs when runtime libs are static.
17409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17410
17411 # Compiler flag to allow reflexive dlopens.
17412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17413
17414 # Compiler flag to generate shared objects directly from archives.
17415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17416
17417 # Whether the compiler copes with passing no objects directly.
17418 compiler_needs_object=$lt_compiler_needs_object_RC
17419
17420 # Create an old-style archive from a shared archive.
17421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17422
17423 # Create a temporary old-style archive to link instead of a shared archive.
17424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17425
17426 # Commands used to build a shared archive.
17427 archive_cmds=$lt_archive_cmds_RC
17428 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17429
17430 # Commands used to build a loadable module if different from building
17431 # a shared archive.
17432 module_cmds=$lt_module_cmds_RC
17433 module_expsym_cmds=$lt_module_expsym_cmds_RC
17434
17435 # Whether we are building with GNU ld or not.
17436 with_gnu_ld=$lt_with_gnu_ld_RC
17437
17438 # Flag that allows shared libraries with undefined symbols to be built.
17439 allow_undefined_flag=$lt_allow_undefined_flag_RC
17440
17441 # Flag that enforces no undefined symbols.
17442 no_undefined_flag=$lt_no_undefined_flag_RC
17443
17444 # Flag to hardcode \$libdir into a binary during linking.
17445 # This must work even if \$libdir does not exist
17446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17447
17448 # Whether we need a single "-rpath" flag with a separated argument.
17449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17450
17451 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17452 # DIR into the resulting binary.
17453 hardcode_direct=$hardcode_direct_RC
17454
17455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17456 # DIR into the resulting binary and the resulting library dependency is
17457 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17458 # library is relocated.
17459 hardcode_direct_absolute=$hardcode_direct_absolute_RC
17460
17461 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17462 # into the resulting binary.
17463 hardcode_minus_L=$hardcode_minus_L_RC
17464
17465 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17466 # into the resulting binary.
17467 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17468
17469 # Set to "yes" if building a shared library automatically hardcodes DIR
17470 # into the library and all subsequent libraries and executables linked
17471 # against it.
17472 hardcode_automatic=$hardcode_automatic_RC
17473
17474 # Set to yes if linker adds runtime paths of dependent libraries
17475 # to runtime path list.
17476 inherit_rpath=$inherit_rpath_RC
17477
17478 # Whether libtool must link a program against all its dependency libraries.
17479 link_all_deplibs=$link_all_deplibs_RC
17480
17481 # Set to "yes" if exported symbols are required.
17482 always_export_symbols=$always_export_symbols_RC
17483
17484 # The commands to list exported symbols.
17485 export_symbols_cmds=$lt_export_symbols_cmds_RC
17486
17487 # Symbols that should not be listed in the preloaded symbols.
17488 exclude_expsyms=$lt_exclude_expsyms_RC
17489
17490 # Symbols that must always be exported.
17491 include_expsyms=$lt_include_expsyms_RC
17492
17493 # Commands necessary for linking programs (against libraries) with templates.
17494 prelink_cmds=$lt_prelink_cmds_RC
17495
17496 # Commands necessary for finishing linking programs.
17497 postlink_cmds=$lt_postlink_cmds_RC
17498
17499 # Specify filename containing input files.
17500 file_list_spec=$lt_file_list_spec_RC
17501
17502 # How to hardcode a shared library path into an executable.
17503 hardcode_action=$hardcode_action_RC
17504
17505 # ### END LIBTOOL TAG CONFIG: RC
17506 _LT_EOF
17507
17508  ;;
17509
17510   esac
17511 done # for ac_tag
17512
17513
17514 as_fn_exit 0
17515 _ACEOF
17516 ac_clean_files=$ac_clean_files_save
17517
17518 test $ac_write_fail = 0 ||
17519   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17520
17521
17522 # configure is writing to config.log, and then calls config.status.
17523 # config.status does its own redirection, appending to config.log.
17524 # Unfortunately, on DOS this fails, as config.log is still kept open
17525 # by configure, so config.status won't be able to write to it; its
17526 # output is simply discarded.  So we exec the FD to /dev/null,
17527 # effectively closing config.log, so it can be properly (re)opened and
17528 # appended to by config.status.  When coming back to configure, we
17529 # need to make the FD available again.
17530 if test "$no_create" != yes; then
17531   ac_cs_success=:
17532   ac_config_status_args=
17533   test "$silent" = yes &&
17534     ac_config_status_args="$ac_config_status_args --quiet"
17535   exec 5>/dev/null
17536   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17537   exec 5>>config.log
17538   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17539   # would make configure fail if this is the last instruction.
17540   $ac_cs_success || as_fn_exit 1
17541 fi
17542 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17543   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17544 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17545 fi
17546
17547
17548
17549 echo "
17550         Libksba v${VERSION} has been configured as follows:
17551
17552         Revision:  3a92e8c  (14994)
17553         Platform:  $host
17554
17555 "