Imported Upstream version 1.1.3
[platform/upstream/libzip.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libzip 1.1.3.
4 #
5 # Report bugs to <libzip@nih.at>.
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
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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 libzip@nih.at
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: 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='libzip'
592 PACKAGE_TARNAME='libzip'
593 PACKAGE_VERSION='1.1.3'
594 PACKAGE_STRING='libzip 1.1.3'
595 PACKAGE_BUGREPORT='libzip@nih.at'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/zip_add.c"
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 HAVE_VISIBILITY
639 CFLAG_VISIBILITY
640 MANFMT
641 WIN32_HOST_FALSE
642 WIN32_HOST_TRUE
643 LIBOBJS
644 CPP
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 MANIFEST_TOOL
651 RANLIB
652 ac_ct_AR
653 AR
654 DLLTOOL
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 LIBTOOL
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 PKG_CONFIG_RPATH
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_silent_rules
761 enable_dependency_tracking
762 enable_largefile
763 with_zlib
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 '
772       ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835   # If the previous option needs an argument, assign it.
836   if test -n "$ac_prev"; then
837     eval $ac_prev=\$ac_option
838     ac_prev=
839     continue
840   fi
841
842   case $ac_option in
843   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844   *=)   ac_optarg= ;;
845   *)    ac_optarg=yes ;;
846   esac
847
848   # Accept the important Cygnus configure options, so we can diagnose typos.
849
850   case $ac_dashdash$ac_option in
851   --)
852     ac_dashdash=yes ;;
853
854   -bindir | --bindir | --bindi | --bind | --bin | --bi)
855     ac_prev=bindir ;;
856   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857     bindir=$ac_optarg ;;
858
859   -build | --build | --buil | --bui | --bu)
860     ac_prev=build_alias ;;
861   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862     build_alias=$ac_optarg ;;
863
864   -cache-file | --cache-file | --cache-fil | --cache-fi \
865   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866     ac_prev=cache_file ;;
867   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869     cache_file=$ac_optarg ;;
870
871   --config-cache | -C)
872     cache_file=config.cache ;;
873
874   -datadir | --datadir | --datadi | --datad)
875     ac_prev=datadir ;;
876   -datadir=* | --datadir=* | --datadi=* | --datad=*)
877     datadir=$ac_optarg ;;
878
879   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880   | --dataroo | --dataro | --datar)
881     ac_prev=datarootdir ;;
882   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884     datarootdir=$ac_optarg ;;
885
886   -disable-* | --disable-*)
887     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888     # Reject names that are not valid shell variable names.
889     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890       as_fn_error $? "invalid feature name: $ac_useropt"
891     ac_useropt_orig=$ac_useropt
892     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893     case $ac_user_opts in
894       *"
895 "enable_$ac_useropt"
896 "*) ;;
897       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898          ac_unrecognized_sep=', ';;
899     esac
900     eval enable_$ac_useropt=no ;;
901
902   -docdir | --docdir | --docdi | --doc | --do)
903     ac_prev=docdir ;;
904   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905     docdir=$ac_optarg ;;
906
907   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908     ac_prev=dvidir ;;
909   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910     dvidir=$ac_optarg ;;
911
912   -enable-* | --enable-*)
913     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916       as_fn_error $? "invalid feature name: $ac_useropt"
917     ac_useropt_orig=$ac_useropt
918     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919     case $ac_user_opts in
920       *"
921 "enable_$ac_useropt"
922 "*) ;;
923       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924          ac_unrecognized_sep=', ';;
925     esac
926     eval enable_$ac_useropt=\$ac_optarg ;;
927
928   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930   | --exec | --exe | --ex)
931     ac_prev=exec_prefix ;;
932   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934   | --exec=* | --exe=* | --ex=*)
935     exec_prefix=$ac_optarg ;;
936
937   -gas | --gas | --ga | --g)
938     # Obsolete; use --with-gas.
939     with_gas=yes ;;
940
941   -help | --help | --hel | --he | -h)
942     ac_init_help=long ;;
943   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944     ac_init_help=recursive ;;
945   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946     ac_init_help=short ;;
947
948   -host | --host | --hos | --ho)
949     ac_prev=host_alias ;;
950   -host=* | --host=* | --hos=* | --ho=*)
951     host_alias=$ac_optarg ;;
952
953   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954     ac_prev=htmldir ;;
955   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956   | --ht=*)
957     htmldir=$ac_optarg ;;
958
959   -includedir | --includedir | --includedi | --included | --include \
960   | --includ | --inclu | --incl | --inc)
961     ac_prev=includedir ;;
962   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963   | --includ=* | --inclu=* | --incl=* | --inc=*)
964     includedir=$ac_optarg ;;
965
966   -infodir | --infodir | --infodi | --infod | --info | --inf)
967     ac_prev=infodir ;;
968   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969     infodir=$ac_optarg ;;
970
971   -libdir | --libdir | --libdi | --libd)
972     ac_prev=libdir ;;
973   -libdir=* | --libdir=* | --libdi=* | --libd=*)
974     libdir=$ac_optarg ;;
975
976   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977   | --libexe | --libex | --libe)
978     ac_prev=libexecdir ;;
979   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980   | --libexe=* | --libex=* | --libe=*)
981     libexecdir=$ac_optarg ;;
982
983   -localedir | --localedir | --localedi | --localed | --locale)
984     ac_prev=localedir ;;
985   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986     localedir=$ac_optarg ;;
987
988   -localstatedir | --localstatedir | --localstatedi | --localstated \
989   | --localstate | --localstat | --localsta | --localst | --locals)
990     ac_prev=localstatedir ;;
991   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993     localstatedir=$ac_optarg ;;
994
995   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996     ac_prev=mandir ;;
997   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998     mandir=$ac_optarg ;;
999
1000   -nfp | --nfp | --nf)
1001     # Obsolete; use --without-fp.
1002     with_fp=no ;;
1003
1004   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005   | --no-cr | --no-c | -n)
1006     no_create=yes ;;
1007
1008   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010     no_recursion=yes ;;
1011
1012   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014   | --oldin | --oldi | --old | --ol | --o)
1015     ac_prev=oldincludedir ;;
1016   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019     oldincludedir=$ac_optarg ;;
1020
1021   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022     ac_prev=prefix ;;
1023   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024     prefix=$ac_optarg ;;
1025
1026   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027   | --program-pre | --program-pr | --program-p)
1028     ac_prev=program_prefix ;;
1029   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031     program_prefix=$ac_optarg ;;
1032
1033   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034   | --program-suf | --program-su | --program-s)
1035     ac_prev=program_suffix ;;
1036   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038     program_suffix=$ac_optarg ;;
1039
1040   -program-transform-name | --program-transform-name \
1041   | --program-transform-nam | --program-transform-na \
1042   | --program-transform-n | --program-transform- \
1043   | --program-transform | --program-transfor \
1044   | --program-transfo | --program-transf \
1045   | --program-trans | --program-tran \
1046   | --progr-tra | --program-tr | --program-t)
1047     ac_prev=program_transform_name ;;
1048   -program-transform-name=* | --program-transform-name=* \
1049   | --program-transform-nam=* | --program-transform-na=* \
1050   | --program-transform-n=* | --program-transform-=* \
1051   | --program-transform=* | --program-transfor=* \
1052   | --program-transfo=* | --program-transf=* \
1053   | --program-trans=* | --program-tran=* \
1054   | --progr-tra=* | --program-tr=* | --program-t=*)
1055     program_transform_name=$ac_optarg ;;
1056
1057   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058     ac_prev=pdfdir ;;
1059   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060     pdfdir=$ac_optarg ;;
1061
1062   -psdir | --psdir | --psdi | --psd | --ps)
1063     ac_prev=psdir ;;
1064   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065     psdir=$ac_optarg ;;
1066
1067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068   | -silent | --silent | --silen | --sile | --sil)
1069     silent=yes ;;
1070
1071   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072     ac_prev=sbindir ;;
1073   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074   | --sbi=* | --sb=*)
1075     sbindir=$ac_optarg ;;
1076
1077   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079   | --sharedst | --shareds | --shared | --share | --shar \
1080   | --sha | --sh)
1081     ac_prev=sharedstatedir ;;
1082   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085   | --sha=* | --sh=*)
1086     sharedstatedir=$ac_optarg ;;
1087
1088   -site | --site | --sit)
1089     ac_prev=site ;;
1090   -site=* | --site=* | --sit=*)
1091     site=$ac_optarg ;;
1092
1093   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094     ac_prev=srcdir ;;
1095   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096     srcdir=$ac_optarg ;;
1097
1098   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099   | --syscon | --sysco | --sysc | --sys | --sy)
1100     ac_prev=sysconfdir ;;
1101   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103     sysconfdir=$ac_optarg ;;
1104
1105   -target | --target | --targe | --targ | --tar | --ta | --t)
1106     ac_prev=target_alias ;;
1107   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108     target_alias=$ac_optarg ;;
1109
1110   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111     verbose=yes ;;
1112
1113   -version | --version | --versio | --versi | --vers | -V)
1114     ac_init_version=: ;;
1115
1116   -with-* | --with-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error $? "invalid package name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=\$ac_optarg ;;
1131
1132   -without-* | --without-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid package name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval with_$ac_useropt=no ;;
1147
1148   --x)
1149     # Obsolete; use --with-x.
1150     with_x=yes ;;
1151
1152   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153   | --x-incl | --x-inc | --x-in | --x-i)
1154     ac_prev=x_includes ;;
1155   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157     x_includes=$ac_optarg ;;
1158
1159   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161     ac_prev=x_libraries ;;
1162   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164     x_libraries=$ac_optarg ;;
1165
1166   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168     ;;
1169
1170   *=*)
1171     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172     # Reject names that are not valid shell variable names.
1173     case $ac_envvar in #(
1174       '' | [0-9]* | *[!_$as_cr_alnum]* )
1175       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176     esac
1177     eval $ac_envvar=\$ac_optarg
1178     export $ac_envvar ;;
1179
1180   *)
1181     # FIXME: should be removed in autoconf 3.0.
1182     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186     ;;
1187
1188   esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193   as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197   case $enable_option_checking in
1198     no) ;;
1199     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201   esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   # Remove trailing slashes.
1212   case $ac_val in
1213     */ )
1214       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215       eval $ac_var=\$ac_val;;
1216   esac
1217   # Be sure to have absolute directory names.
1218   case $ac_val in
1219     [\\/$]* | ?:[\\/]* )  continue;;
1220     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221   esac
1222   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234   if test "x$build_alias" = x; then
1235     cross_compiling=maybe
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252   as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257   ac_srcdir_defaulted=yes
1258   # Try the directory containing this script, then the parent directory.
1259   ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261          X"$as_myself" : 'X\(//\)[^/]' \| \
1262          X"$as_myself" : 'X\(//\)$' \| \
1263          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)[^/].*/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\).*/{
1278             s//\1/
1279             q
1280           }
1281           s/.*/./; q'`
1282   srcdir=$ac_confdir
1283   if test ! -r "$srcdir/$ac_unique_file"; then
1284     srcdir=..
1285   fi
1286 else
1287   ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296         pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299   srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_env_${ac_var}_value=\$${ac_var}
1310   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318   # Omit some internal or obsolete options to make the list less imposing.
1319   # This message is too long to be a string in the A/UX 3.1 sh.
1320   cat <<_ACEOF
1321 \`configure' configures libzip 1.1.3 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331   -h, --help              display this help and exit
1332       --help=short        display options specific to this package
1333       --help=recursive    display the short help of all the included packages
1334   -V, --version           display version information and exit
1335   -q, --quiet, --silent   do not print \`checking ...' messages
1336       --cache-file=FILE   cache test results in FILE [disabled]
1337   -C, --config-cache      alias for \`--cache-file=config.cache'
1338   -n, --no-create         do not create output files
1339       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342   --prefix=PREFIX         install architecture-independent files in PREFIX
1343                           [$ac_default_prefix]
1344   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                           [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355   --bindir=DIR            user executables [EPREFIX/bin]
1356   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1357   --libexecdir=DIR        program executables [EPREFIX/libexec]
1358   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1359   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1360   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1361   --libdir=DIR            object code libraries [EPREFIX/lib]
1362   --includedir=DIR        C header files [PREFIX/include]
1363   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1364   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1365   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1366   --infodir=DIR           info documentation [DATAROOTDIR/info]
1367   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1368   --mandir=DIR            man documentation [DATAROOTDIR/man]
1369   --docdir=DIR            documentation root [DATAROOTDIR/doc/libzip]
1370   --htmldir=DIR           html documentation [DOCDIR]
1371   --dvidir=DIR            dvi documentation [DOCDIR]
1372   --pdfdir=DIR            pdf documentation [DOCDIR]
1373   --psdir=DIR             ps documentation [DOCDIR]
1374 _ACEOF
1375
1376   cat <<\_ACEOF
1377
1378 Program names:
1379   --program-prefix=PREFIX            prepend PREFIX to installed program names
1380   --program-suffix=SUFFIX            append SUFFIX to installed program names
1381   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1382
1383 System types:
1384   --build=BUILD     configure for building on BUILD [guessed]
1385   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390   case $ac_init_help in
1391      short | recursive ) echo "Configuration of libzip 1.1.3:";;
1392    esac
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-option-checking  ignore unrecognized --enable/--with options
1397   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1398   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1399   --enable-silent-rules   less verbose build output (undo: "make V=1")
1400   --disable-silent-rules  verbose build output (undo: "make V=0")
1401   --enable-dependency-tracking
1402                           do not reject slow dependency extractors
1403   --disable-dependency-tracking
1404                           speeds up one-time build
1405   --disable-largefile     omit support for large files
1406   --enable-shared[=PKGS]  build shared libraries [default=yes]
1407   --enable-static[=PKGS]  build static libraries [default=yes]
1408   --enable-fast-install[=PKGS]
1409                           optimize for fast installation [default=yes]
1410   --disable-libtool-lock  avoid locking (might break parallel builds)
1411
1412 Optional Packages:
1413   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1414   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1415   --with-zlib=PREFIX  specify prefix for ZLIB library
1416   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1417                           both]
1418   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1419   --with-sysroot=DIR Search for dependent libraries within DIR
1420                         (or the compiler's sysroot if not specified).
1421
1422 Some influential environment variables:
1423   CC          C compiler command
1424   CFLAGS      C compiler flags
1425   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1426               nonstandard directory <lib dir>
1427   LIBS        libraries to pass to the linker, e.g. -l<library>
1428   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429               you have headers in a nonstandard directory <include dir>
1430   CPP         C preprocessor
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to <libzip@nih.at>.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441   # If there are subdirs, report their specific --help.
1442   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443     test -d "$ac_dir" ||
1444       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445       continue
1446     ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452   # A ".." for each directory in $ac_dir_suffix.
1453   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454   case $ac_top_builddir_sub in
1455   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457   esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465   .)  # We are building in place.
1466     ac_srcdir=.
1467     ac_top_srcdir=$ac_top_builddir_sub
1468     ac_abs_top_srcdir=$ac_pwd ;;
1469   [\\/]* | ?:[\\/]* )  # Absolute name.
1470     ac_srcdir=$srcdir$ac_dir_suffix;
1471     ac_top_srcdir=$srcdir
1472     ac_abs_top_srcdir=$srcdir ;;
1473   *) # Relative name.
1474     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475     ac_top_srcdir=$ac_top_build_prefix$srcdir
1476     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480     cd "$ac_dir" || { ac_status=$?; continue; }
1481     # Check for guested configure.
1482     if test -f "$ac_srcdir/configure.gnu"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485     elif test -f "$ac_srcdir/configure"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure" --help=recursive
1488     else
1489       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490     fi || ac_status=$?
1491     cd "$ac_pwd" || { ac_status=$?; break; }
1492   done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497   cat <<\_ACEOF
1498 libzip configure 1.1.3
1499 generated by GNU Autoconf 2.69
1500
1501 Copyright (C) 2012 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505   exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1516 {
1517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518   rm -f conftest.$ac_objext
1519   if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522   *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526   (eval "$ac_compile") 2>conftest.err
1527   ac_status=$?
1528   if test -s conftest.err; then
1529     grep -v '^ *+' conftest.err >conftest.er1
1530     cat conftest.er1 >&5
1531     mv -f conftest.er1 conftest.err
1532   fi
1533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534   test $ac_status = 0; } && {
1535          test -z "$ac_c_werror_flag" ||
1536          test ! -s conftest.err
1537        } && test -s conftest.$ac_objext; then :
1538   ac_retval=0
1539 else
1540   $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543         ac_retval=1
1544 fi
1545   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546   as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_compile
1549
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_link ()
1554 {
1555   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556   rm -f conftest.$ac_objext conftest$ac_exeext
1557   if { { ac_try="$ac_link"
1558 case "(($ac_try" in
1559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560   *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564   (eval "$ac_link") 2>conftest.err
1565   ac_status=$?
1566   if test -s conftest.err; then
1567     grep -v '^ *+' conftest.err >conftest.er1
1568     cat conftest.er1 >&5
1569     mv -f conftest.er1 conftest.err
1570   fi
1571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572   test $ac_status = 0; } && {
1573          test -z "$ac_c_werror_flag" ||
1574          test ! -s conftest.err
1575        } && test -s conftest$ac_exeext && {
1576          test "$cross_compiling" = yes ||
1577          test -x conftest$ac_exeext
1578        }; then :
1579   ac_retval=0
1580 else
1581   $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584         ac_retval=1
1585 fi
1586   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588   # interfere with the next link command; also delete a directory that is
1589   # left behind by Apple's compiler.  We do this before executing the actions.
1590   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592   as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_link
1595
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1601 {
1602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606   $as_echo_n "(cached) " >&6
1607 else
1608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h.  */
1610 $4
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614   eval "$3=yes"
1615 else
1616   eval "$3=no"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 eval ac_res=\$$3
1621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625 } # ac_fn_c_check_header_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } > conftest.i && {
1649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657     ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_link") 2>&5
1679   ac_status=$?
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682   { { case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_try") 2>&5
1689   ac_status=$?
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; }; }; then :
1692   ac_retval=0
1693 else
1694   $as_echo "$as_me: program exited with status $ac_status" >&5
1695        $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698        ac_retval=$ac_status
1699 fi
1700   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702   as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_run
1705
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715   $as_echo_n "(cached) " >&6
1716 else
1717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h.  */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1721 #define $2 innocuous_$2
1722
1723 /* System header to define __stub macros and hopefully few prototypes,
1724     which can conflict with char $2 (); below.
1725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726     <limits.h> exists even on freestanding compilers.  */
1727
1728 #ifdef __STDC__
1729 # include <limits.h>
1730 #else
1731 # include <assert.h>
1732 #endif
1733
1734 #undef $2
1735
1736 /* Override any GCC internal prototype to avoid an error.
1737    Use char because int might match the return type of a GCC
1738    builtin and then its argument prototype would still apply.  */
1739 #ifdef __cplusplus
1740 extern "C"
1741 #endif
1742 char $2 ();
1743 /* The GNU C library defines this for functions which it implements
1744     to always fail with ENOSYS.  Some functions are actually named
1745     something starting with __ and the normal name is an alias.  */
1746 #if defined __stub_$2 || defined __stub___$2
1747 choke me
1748 #endif
1749
1750 int
1751 main ()
1752 {
1753 return $2 ();
1754   ;
1755   return 0;
1756 }
1757 _ACEOF
1758 if ac_fn_c_try_link "$LINENO"; then :
1759   eval "$3=yes"
1760 else
1761   eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext \
1764     conftest$ac_exeext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_func
1772
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1777 # accordingly.
1778 ac_fn_c_check_header_mongrel ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   if eval \${$3+:} false; then :
1782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785   $as_echo_n "(cached) " >&6
1786 fi
1787 eval ac_res=\$$3
1788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 else
1791   # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h.  */
1796 $4
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800   ac_header_compiler=yes
1801 else
1802   ac_header_compiler=no
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1807
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h.  */
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816   ac_header_preproc=yes
1817 else
1818   ac_header_preproc=no
1819 fi
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1823
1824 # So?  What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826   yes:no: )
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831     ;;
1832   no:yes:* )
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ( $as_echo "## ---------------------------- ##
1844 ## Report this to libzip@nih.at ##
1845 ## ---------------------------- ##"
1846      ) | sed "s/^/$as_me: WARNING:     /" >&2
1847     ;;
1848 esac
1849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852   $as_echo_n "(cached) " >&6
1853 else
1854   eval "$3=\$ac_header_compiler"
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 fi
1860   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_header_mongrel
1863
1864 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1865 # -------------------------------------------
1866 # Tests whether TYPE exists after having included INCLUDES, setting cache
1867 # variable VAR accordingly.
1868 ac_fn_c_check_type ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   eval "$3=no"
1877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h.  */
1879 $4
1880 int
1881 main ()
1882 {
1883 if (sizeof ($2))
1884          return 0;
1885   ;
1886   return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 $4
1893 int
1894 main ()
1895 {
1896 if (sizeof (($2)))
1897             return 0;
1898   ;
1899   return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903
1904 else
1905   eval "$3=yes"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 fi
1911 eval ac_res=\$$3
1912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916 } # ac_fn_c_check_type
1917
1918 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1919 # --------------------------------------------
1920 # Tries to find the compile-time value of EXPR in a program that includes
1921 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1922 # computed
1923 ac_fn_c_compute_int ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   if test "$cross_compiling" = yes; then
1927     # Depending upon the size, compute the lo and hi bounds.
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 $4
1931 int
1932 main ()
1933 {
1934 static int test_array [1 - 2 * !(($2) >= 0)];
1935 test_array [0] = 0;
1936 return test_array [0];
1937
1938   ;
1939   return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   ac_lo=0 ac_mid=0
1944   while :; do
1945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $4
1948 int
1949 main ()
1950 {
1951 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1952 test_array [0] = 0;
1953 return test_array [0];
1954
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960   ac_hi=$ac_mid; break
1961 else
1962   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1963                         if test $ac_lo -le $ac_mid; then
1964                           ac_lo= ac_hi=
1965                           break
1966                         fi
1967                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970   done
1971 else
1972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h.  */
1974 $4
1975 int
1976 main ()
1977 {
1978 static int test_array [1 - 2 * !(($2) < 0)];
1979 test_array [0] = 0;
1980 return test_array [0];
1981
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987   ac_hi=-1 ac_mid=-1
1988   while :; do
1989     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h.  */
1991 $4
1992 int
1993 main ()
1994 {
1995 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1996 test_array [0] = 0;
1997 return test_array [0];
1998
1999   ;
2000   return 0;
2001 }
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004   ac_lo=$ac_mid; break
2005 else
2006   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2007                         if test $ac_mid -le $ac_hi; then
2008                           ac_lo= ac_hi=
2009                           break
2010                         fi
2011                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014   done
2015 else
2016   ac_lo= ac_hi=
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 # Binary search between lo and hi bounds.
2022 while test "x$ac_lo" != "x$ac_hi"; do
2023   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 int
2028 main ()
2029 {
2030 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2031 test_array [0] = 0;
2032 return test_array [0];
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039   ac_hi=$ac_mid
2040 else
2041   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 done
2045 case $ac_lo in #((
2046 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2047 '') ac_retval=1 ;;
2048 esac
2049   else
2050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 $4
2053 static long int longval () { return $2; }
2054 static unsigned long int ulongval () { return $2; }
2055 #include <stdio.h>
2056 #include <stdlib.h>
2057 int
2058 main ()
2059 {
2060
2061   FILE *f = fopen ("conftest.val", "w");
2062   if (! f)
2063     return 1;
2064   if (($2) < 0)
2065     {
2066       long int i = longval ();
2067       if (i != ($2))
2068         return 1;
2069       fprintf (f, "%ld", i);
2070     }
2071   else
2072     {
2073       unsigned long int i = ulongval ();
2074       if (i != ($2))
2075         return 1;
2076       fprintf (f, "%lu", i);
2077     }
2078   /* Do not output a trailing newline, as this causes \r\n confusion
2079      on some platforms.  */
2080   return ferror (f) || fclose (f) != 0;
2081
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_run "$LINENO"; then :
2087   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2088 else
2089   ac_retval=1
2090 fi
2091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2092   conftest.$ac_objext conftest.beam conftest.$ac_ext
2093 rm -f conftest.val
2094
2095   fi
2096   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097   as_fn_set_status $ac_retval
2098
2099 } # ac_fn_c_compute_int
2100
2101 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2102 # ----------------------------------------------------
2103 # Tries to find if the field MEMBER exists in type AGGR, after including
2104 # INCLUDES, setting cache variable VAR accordingly.
2105 ac_fn_c_check_member ()
2106 {
2107   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2109 $as_echo_n "checking for $2.$3... " >&6; }
2110 if eval \${$4+:} false; then :
2111   $as_echo_n "(cached) " >&6
2112 else
2113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $5
2116 int
2117 main ()
2118 {
2119 static $2 ac_aggr;
2120 if (ac_aggr.$3)
2121 return 0;
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127   eval "$4=yes"
2128 else
2129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h.  */
2131 $5
2132 int
2133 main ()
2134 {
2135 static $2 ac_aggr;
2136 if (sizeof ac_aggr.$3)
2137 return 0;
2138   ;
2139   return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143   eval "$4=yes"
2144 else
2145   eval "$4=no"
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=\$$4
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_member
2157
2158 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2159 # ---------------------------------------------
2160 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2161 # accordingly.
2162 ac_fn_c_check_decl ()
2163 {
2164   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165   as_decl_name=`echo $2|sed 's/ *(.*//'`
2166   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2168 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2169 if eval \${$3+:} false; then :
2170   $as_echo_n "(cached) " >&6
2171 else
2172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h.  */
2174 $4
2175 int
2176 main ()
2177 {
2178 #ifndef $as_decl_name
2179 #ifdef __cplusplus
2180   (void) $as_decl_use;
2181 #else
2182   (void) $as_decl_name;
2183 #endif
2184 #endif
2185
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191   eval "$3=yes"
2192 else
2193   eval "$3=no"
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$3
2198                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202 } # ac_fn_c_check_decl
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2206
2207 It was created by libzip $as_me 1.1.3, which was
2208 generated by GNU Autoconf 2.69.  Invocation command line was
2209
2210   $ $0 $@
2211
2212 _ACEOF
2213 exec 5>>config.log
2214 {
2215 cat <<_ASUNAME
2216 ## --------- ##
2217 ## Platform. ##
2218 ## --------- ##
2219
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2228
2229 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2230 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2233 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2234 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2235 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2236
2237 _ASUNAME
2238
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244     $as_echo "PATH: $as_dir"
2245   done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271   for ac_arg
2272   do
2273     case $ac_arg in
2274     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276     | -silent | --silent | --silen | --sile | --sil)
2277       continue ;;
2278     *\'*)
2279       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280     esac
2281     case $ac_pass in
2282     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283     2)
2284       as_fn_append ac_configure_args1 " '$ac_arg'"
2285       if test $ac_must_keep_next = true; then
2286         ac_must_keep_next=false # Got value, back to normal.
2287       else
2288         case $ac_arg in
2289           *=* | --config-cache | -C | -disable-* | --disable-* \
2290           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292           | -with-* | --with-* | -without-* | --without-* | --x)
2293             case "$ac_configure_args0 " in
2294               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295             esac
2296             ;;
2297           -* ) ac_must_keep_next=true ;;
2298         esac
2299       fi
2300       as_fn_append ac_configure_args " '$ac_arg'"
2301       ;;
2302     esac
2303   done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log.  We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314   # Save into config.log some information that might help in debugging.
2315   {
2316     echo
2317
2318     $as_echo "## ---------------- ##
2319 ## Cache variables. ##
2320 ## ---------------- ##"
2321     echo
2322     # The following way of writing the cache mishandles newlines in values,
2323 (
2324   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325     eval ac_val=\$$ac_var
2326     case $ac_val in #(
2327     *${as_nl}*)
2328       case $ac_var in #(
2329       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331       esac
2332       case $ac_var in #(
2333       _ | IFS | as_nl) ;; #(
2334       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335       *) { eval $ac_var=; unset $ac_var;} ;;
2336       esac ;;
2337     esac
2338   done
2339   (set) 2>&1 |
2340     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341     *${as_nl}ac_space=\ *)
2342       sed -n \
2343         "s/'\''/'\''\\\\'\'''\''/g;
2344           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345       ;; #(
2346     *)
2347       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348       ;;
2349     esac |
2350     sort
2351 )
2352     echo
2353
2354     $as_echo "## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##"
2357     echo
2358     for ac_var in $ac_subst_vars
2359     do
2360       eval ac_val=\$$ac_var
2361       case $ac_val in
2362       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363       esac
2364       $as_echo "$ac_var='\''$ac_val'\''"
2365     done | sort
2366     echo
2367
2368     if test -n "$ac_subst_files"; then
2369       $as_echo "## ------------------- ##
2370 ## File substitutions. ##
2371 ## ------------------- ##"
2372       echo
2373       for ac_var in $ac_subst_files
2374       do
2375         eval ac_val=\$$ac_var
2376         case $ac_val in
2377         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378         esac
2379         $as_echo "$ac_var='\''$ac_val'\''"
2380       done | sort
2381       echo
2382     fi
2383
2384     if test -s confdefs.h; then
2385       $as_echo "## ----------- ##
2386 ## confdefs.h. ##
2387 ## ----------- ##"
2388       echo
2389       cat confdefs.h
2390       echo
2391     fi
2392     test "$ac_signal" != 0 &&
2393       $as_echo "$as_me: caught signal $ac_signal"
2394     $as_echo "$as_me: exit $exit_status"
2395   } >&5
2396   rm -f core *.core core.conftest.* &&
2397     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398     exit $exit_status
2399 ' 0
2400 for ac_signal in 1 2 13 15; do
2401   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2402 done
2403 ac_signal=0
2404
2405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2406 rm -f -r conftest* confdefs.h
2407
2408 $as_echo "/* confdefs.h */" > confdefs.h
2409
2410 # Predefined preprocessor variables.
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2434 _ACEOF
2435
2436
2437 # Let the site file select an alternate cache file if it wants to.
2438 # Prefer an explicitly selected file to automatically selected ones.
2439 ac_site_file1=NONE
2440 ac_site_file2=NONE
2441 if test -n "$CONFIG_SITE"; then
2442   # We do not want a PATH search for config.site.
2443   case $CONFIG_SITE in #((
2444     -*)  ac_site_file1=./$CONFIG_SITE;;
2445     */*) ac_site_file1=$CONFIG_SITE;;
2446     *)   ac_site_file1=./$CONFIG_SITE;;
2447   esac
2448 elif test "x$prefix" != xNONE; then
2449   ac_site_file1=$prefix/share/config.site
2450   ac_site_file2=$prefix/etc/config.site
2451 else
2452   ac_site_file1=$ac_default_prefix/share/config.site
2453   ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2456 do
2457   test "x$ac_site_file" = xNONE && continue
2458   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461     sed 's/^/| /' "$ac_site_file" >&5
2462     . "$ac_site_file" \
2463       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2465 as_fn_error $? "failed to load site script $ac_site_file
2466 See \`config.log' for more details" "$LINENO" 5; }
2467   fi
2468 done
2469
2470 if test -r "$cache_file"; then
2471   # Some versions of bash will fail to source /dev/null (special files
2472   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2473   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2476     case $cache_file in
2477       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478       *)                      . "./$cache_file";;
2479     esac
2480   fi
2481 else
2482   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2484   >$cache_file
2485 fi
2486
2487 # Check that the precious variables saved in the cache have kept the same
2488 # value.
2489 ac_cache_corrupted=false
2490 for ac_var in $ac_precious_vars; do
2491   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2492   eval ac_new_set=\$ac_env_${ac_var}_set
2493   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2494   eval ac_new_val=\$ac_env_${ac_var}_value
2495   case $ac_old_set,$ac_new_set in
2496     set,)
2497       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2499       ac_cache_corrupted=: ;;
2500     ,set)
2501       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2503       ac_cache_corrupted=: ;;
2504     ,);;
2505     *)
2506       if test "x$ac_old_val" != "x$ac_new_val"; then
2507         # differences in whitespace do not lead to failure.
2508         ac_old_val_w=`echo x $ac_old_val`
2509         ac_new_val_w=`echo x $ac_new_val`
2510         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2511           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2512 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2513           ac_cache_corrupted=:
2514         else
2515           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2516 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2517           eval $ac_var=\$ac_old_val
2518         fi
2519         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2520 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2521         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2522 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2523       fi;;
2524   esac
2525   # Pass precious variables to config.status.
2526   if test "$ac_new_set" = set; then
2527     case $ac_new_val in
2528     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2529     *) ac_arg=$ac_var=$ac_new_val ;;
2530     esac
2531     case " $ac_configure_args " in
2532       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2533       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2534     esac
2535   fi
2536 done
2537 if $ac_cache_corrupted; then
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2541 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2542   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2543 fi
2544 ## -------------------- ##
2545 ## Main body of script. ##
2546 ## -------------------- ##
2547
2548 ac_ext=c
2549 ac_cpp='$CPP $CPPFLAGS'
2550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553
2554
2555
2556 ac_config_headers="$ac_config_headers config.h"
2557
2558
2559 am__api_version='1.15'
2560
2561 ac_aux_dir=
2562 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563   if test -f "$ac_dir/install-sh"; then
2564     ac_aux_dir=$ac_dir
2565     ac_install_sh="$ac_aux_dir/install-sh -c"
2566     break
2567   elif test -f "$ac_dir/install.sh"; then
2568     ac_aux_dir=$ac_dir
2569     ac_install_sh="$ac_aux_dir/install.sh -c"
2570     break
2571   elif test -f "$ac_dir/shtool"; then
2572     ac_aux_dir=$ac_dir
2573     ac_install_sh="$ac_aux_dir/shtool install -c"
2574     break
2575   fi
2576 done
2577 if test -z "$ac_aux_dir"; then
2578   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2579 fi
2580
2581 # These three variables are undocumented and unsupported,
2582 # and are intended to be withdrawn in a future Autoconf release.
2583 # They can cause serious problems if a builder's source tree is in a directory
2584 # whose full name contains unusual characters.
2585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2587 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2588
2589
2590 # Find a good install program.  We prefer a C program (faster),
2591 # so one script is as good as another.  But avoid the broken or
2592 # incompatible versions:
2593 # SysV /etc/install, /usr/sbin/install
2594 # SunOS /usr/etc/install
2595 # IRIX /sbin/install
2596 # AIX /bin/install
2597 # AmigaOS /C/install, which installs bootblocks on floppy discs
2598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2601 # OS/2's system install, which has a completely different semantic
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2606 if test -z "$INSTALL"; then
2607 if ${ac_cv_path_install+:} false; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615     # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617   ./ | .// | /[cC]/* | \
2618   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2620   /usr/ucb/* ) ;;
2621   *)
2622     # OSF1 and SCO ODT 3.0 have their own names for install.
2623     # Don't use installbsd from OSF since it installs stuff as root
2624     # by default.
2625     for ac_prog in ginstall scoinst install; do
2626       for ac_exec_ext in '' $ac_executable_extensions; do
2627         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2628           if test $ac_prog = install &&
2629             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630             # AIX install.  It has an incompatible calling convention.
2631             :
2632           elif test $ac_prog = install &&
2633             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634             # program-specific install script used by HP pwplus--don't use.
2635             :
2636           else
2637             rm -rf conftest.one conftest.two conftest.dir
2638             echo one > conftest.one
2639             echo two > conftest.two
2640             mkdir conftest.dir
2641             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642               test -s conftest.one && test -s conftest.two &&
2643               test -s conftest.dir/conftest.one &&
2644               test -s conftest.dir/conftest.two
2645             then
2646               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2647               break 3
2648             fi
2649           fi
2650         fi
2651       done
2652     done
2653     ;;
2654 esac
2655
2656   done
2657 IFS=$as_save_IFS
2658
2659 rm -rf conftest.one conftest.two conftest.dir
2660
2661 fi
2662   if test "${ac_cv_path_install+set}" = set; then
2663     INSTALL=$ac_cv_path_install
2664   else
2665     # As a last resort, use the slow shell script.  Don't cache a
2666     # value for INSTALL within a source directory, because that will
2667     # break other packages using the cache if that directory is
2668     # removed, or if the value is a relative name.
2669     INSTALL=$ac_install_sh
2670   fi
2671 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
2674
2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676 # It thinks the first close brace ends the variable substitution.
2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2678
2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2680
2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2682
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2684 $as_echo_n "checking whether build environment is sane... " >&6; }
2685 # Reject unsafe characters in $srcdir or the absolute working directory
2686 # name.  Accept space and tab only in the latter.
2687 am_lf='
2688 '
2689 case `pwd` in
2690   *[\\\"\#\$\&\'\`$am_lf]*)
2691     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2692 esac
2693 case $srcdir in
2694   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2695     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2696 esac
2697
2698 # Do 'set' in a subshell so we don't clobber the current shell's
2699 # arguments.  Must try -L first in case configure is actually a
2700 # symlink; some systems play weird games with the mod time of symlinks
2701 # (eg FreeBSD returns the mod time of the symlink's containing
2702 # directory).
2703 if (
2704    am_has_slept=no
2705    for am_try in 1 2; do
2706      echo "timestamp, slept: $am_has_slept" > conftest.file
2707      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2708      if test "$*" = "X"; then
2709         # -L didn't work.
2710         set X `ls -t "$srcdir/configure" conftest.file`
2711      fi
2712      if test "$*" != "X $srcdir/configure conftest.file" \
2713         && test "$*" != "X conftest.file $srcdir/configure"; then
2714
2715         # If neither matched, then we have a broken ls.  This can happen
2716         # if, for instance, CONFIG_SHELL is bash and it inherits a
2717         # broken ls alias from the environment.  This has actually
2718         # happened.  Such a system could not be considered "sane".
2719         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2720   alias in your environment" "$LINENO" 5
2721      fi
2722      if test "$2" = conftest.file || test $am_try -eq 2; then
2723        break
2724      fi
2725      # Just in case.
2726      sleep 1
2727      am_has_slept=yes
2728    done
2729    test "$2" = conftest.file
2730    )
2731 then
2732    # Ok.
2733    :
2734 else
2735    as_fn_error $? "newly created file is older than distributed files!
2736 Check your system clock" "$LINENO" 5
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740 # If we didn't sleep, we still need to ensure time stamps of config.status and
2741 # generated files are strictly newer.
2742 am_sleep_pid=
2743 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2744   ( sleep 1 ) &
2745   am_sleep_pid=$!
2746 fi
2747
2748 rm -f conftest.file
2749
2750 test "$program_prefix" != NONE &&
2751   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752 # Use a double $ so make ignores it.
2753 test "$program_suffix" != NONE &&
2754   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755 # Double any \ or $.
2756 # By default was `s,x,x', remove it if useless.
2757 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759
2760 # Expand $ac_aux_dir to an absolute path.
2761 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2762
2763 if test x"${MISSING+set}" != xset; then
2764   case $am_aux_dir in
2765   *\ * | *\     *)
2766     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767   *)
2768     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769   esac
2770 fi
2771 # Use eval to expand $SHELL
2772 if eval "$MISSING --is-lightweight"; then
2773   am_missing_run="$MISSING "
2774 else
2775   am_missing_run=
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2777 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2778 fi
2779
2780 if test x"${install_sh+set}" != xset; then
2781   case $am_aux_dir in
2782   *\ * | *\     *)
2783     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2784   *)
2785     install_sh="\${SHELL} $am_aux_dir/install-sh"
2786   esac
2787 fi
2788
2789 # Installed binaries are usually stripped using 'strip' when the user
2790 # run "make install-strip".  However 'strip' might not be the right
2791 # tool to use in cross-compilation environments, therefore Automake
2792 # will honor the 'STRIP' environment variable to overrule this program.
2793 if test "$cross_compiling" != no; then
2794   if test -n "$ac_tool_prefix"; then
2795   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}strip; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_STRIP+:} false; then :
2800   $as_echo_n "(cached) " >&6
2801 else
2802   if test -n "$STRIP"; then
2803   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810     for ac_exec_ext in '' $ac_executable_extensions; do
2811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817   done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 STRIP=$ac_cv_prog_STRIP
2823 if test -n "$STRIP"; then
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2825 $as_echo "$STRIP" >&6; }
2826 else
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$ac_cv_prog_STRIP"; then
2834   ac_ct_STRIP=$STRIP
2835   # Extract the first word of "strip", so it can be a program name with args.
2836 set dummy strip; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2840   $as_echo_n "(cached) " >&6
2841 else
2842   if test -n "$ac_ct_STRIP"; then
2843   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850     for ac_exec_ext in '' $ac_executable_extensions; do
2851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852     ac_cv_prog_ac_ct_STRIP="strip"
2853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857   done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863 if test -n "$ac_ct_STRIP"; then
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865 $as_echo "$ac_ct_STRIP" >&6; }
2866 else
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871   if test "x$ac_ct_STRIP" = x; then
2872     STRIP=":"
2873   else
2874     case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880     STRIP=$ac_ct_STRIP
2881   fi
2882 else
2883   STRIP="$ac_cv_prog_STRIP"
2884 fi
2885
2886 fi
2887 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2890 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892   if ${ac_cv_path_mkdir+:} false; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2897 do
2898   IFS=$as_save_IFS
2899   test -z "$as_dir" && as_dir=.
2900     for ac_prog in mkdir gmkdir; do
2901          for ac_exec_ext in '' $ac_executable_extensions; do
2902            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2903            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904              'mkdir (GNU coreutils) '* | \
2905              'mkdir (coreutils) '* | \
2906              'mkdir (fileutils) '4.1*)
2907                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2908                break 3;;
2909            esac
2910          done
2911        done
2912   done
2913 IFS=$as_save_IFS
2914
2915 fi
2916
2917   test -d ./--version && rmdir ./--version
2918   if test "${ac_cv_path_mkdir+set}" = set; then
2919     MKDIR_P="$ac_cv_path_mkdir -p"
2920   else
2921     # As a last resort, use the slow shell script.  Don't cache a
2922     # value for MKDIR_P within a source directory, because that will
2923     # break other packages using the cache if that directory is
2924     # removed, or if the value is a relative name.
2925     MKDIR_P="$ac_install_sh -d"
2926   fi
2927 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929 $as_echo "$MKDIR_P" >&6; }
2930
2931 for ac_prog in gawk mawk nawk awk
2932 do
2933   # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AWK+:} false; then :
2938   $as_echo_n "(cached) " >&6
2939 else
2940   if test -n "$AWK"; then
2941   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948     for ac_exec_ext in '' $ac_executable_extensions; do
2949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950     ac_cv_prog_AWK="$ac_prog"
2951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955   done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 AWK=$ac_cv_prog_AWK
2961 if test -n "$AWK"; then
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 $as_echo "$AWK" >&6; }
2964 else
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970   test -n "$AWK" && break
2971 done
2972
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2975 set x ${MAKE-make}
2976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   cat >conftest.make <<\_ACEOF
2981 SHELL = /bin/sh
2982 all:
2983         @echo '@@@%%%=$(MAKE)=@@@%%%'
2984 _ACEOF
2985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2987   *@@@%%%=?*=@@@%%%*)
2988     eval ac_cv_prog_make_${ac_make}_set=yes;;
2989   *)
2990     eval ac_cv_prog_make_${ac_make}_set=no;;
2991 esac
2992 rm -f conftest.make
2993 fi
2994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
2997   SET_MAKE=
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001   SET_MAKE="MAKE=${MAKE-make}"
3002 fi
3003
3004 rm -rf .tst 2>/dev/null
3005 mkdir .tst 2>/dev/null
3006 if test -d .tst; then
3007   am__leading_dot=.
3008 else
3009   am__leading_dot=_
3010 fi
3011 rmdir .tst 2>/dev/null
3012
3013 # Check whether --enable-silent-rules was given.
3014 if test "${enable_silent_rules+set}" = set; then :
3015   enableval=$enable_silent_rules;
3016 fi
3017
3018 case $enable_silent_rules in # (((
3019   yes) AM_DEFAULT_VERBOSITY=0;;
3020    no) AM_DEFAULT_VERBOSITY=1;;
3021     *) AM_DEFAULT_VERBOSITY=1;;
3022 esac
3023 am_make=${MAKE-make}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3025 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3026 if ${am_cv_make_support_nested_variables+:} false; then :
3027   $as_echo_n "(cached) " >&6
3028 else
3029   if $as_echo 'TRUE=$(BAR$(V))
3030 BAR0=false
3031 BAR1=true
3032 V=1
3033 am__doit:
3034         @$(TRUE)
3035 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3036   am_cv_make_support_nested_variables=yes
3037 else
3038   am_cv_make_support_nested_variables=no
3039 fi
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3042 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3043 if test $am_cv_make_support_nested_variables = yes; then
3044     AM_V='$(V)'
3045   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3046 else
3047   AM_V=$AM_DEFAULT_VERBOSITY
3048   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3049 fi
3050 AM_BACKSLASH='\'
3051
3052 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3053   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3054   # is not polluted with repeated "-I."
3055   am__isrc=' -I$(srcdir)'
3056   # test to see if srcdir already configured
3057   if test -f $srcdir/config.status; then
3058     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3059   fi
3060 fi
3061
3062 # test whether we have cygpath
3063 if test -z "$CYGPATH_W"; then
3064   if (cygpath --version) >/dev/null 2>/dev/null; then
3065     CYGPATH_W='cygpath -w'
3066   else
3067     CYGPATH_W=echo
3068   fi
3069 fi
3070
3071
3072 # Define the identity of the package.
3073  PACKAGE='libzip'
3074  VERSION='1.1.3'
3075
3076
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE "$PACKAGE"
3079 _ACEOF
3080
3081
3082 cat >>confdefs.h <<_ACEOF
3083 #define VERSION "$VERSION"
3084 _ACEOF
3085
3086 # Some tools Automake needs.
3087
3088 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3089
3090
3091 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3092
3093
3094 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3095
3096
3097 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3098
3099
3100 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3101
3102 # For better backward compatibility.  To be removed once Automake 1.9.x
3103 # dies out for good.  For more background, see:
3104 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3105 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3106 mkdir_p='$(MKDIR_P)'
3107
3108 # We need awk for the "check" target (and possibly the TAP driver).  The
3109 # system "awk" is bad on some platforms.
3110 # Always define AMTAR for backward compatibility.  Yes, it's still used
3111 # in the wild :-(  We should find a proper way to deprecate it ...
3112 AMTAR='$${TAR-tar}'
3113
3114
3115 # We'll loop over all known methods to create a tar archive until one works.
3116 _am_tools='gnutar  pax cpio none'
3117
3118 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3119
3120
3121
3122
3123
3124
3125 # POSIX will say in a future version that running "rm -f" with no argument
3126 # is OK; and we want to be able to make that assumption in our Makefile
3127 # recipes.  So use an aggressive probe to check that the usage we want is
3128 # actually supported "in the wild" to an acceptable degree.
3129 # See automake bug#10828.
3130 # To make any issue more visible, cause the running configure to be aborted
3131 # by default if the 'rm' program in use doesn't match our expectations; the
3132 # user can still override this though.
3133 if rm -f && rm -fr && rm -rf; then : OK; else
3134   cat >&2 <<'END'
3135 Oops!
3136
3137 Your 'rm' program seems unable to run without file operands specified
3138 on the command line, even when the '-f' option is present.  This is contrary
3139 to the behaviour of most rm programs out there, and not conforming with
3140 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3141
3142 Please tell bug-automake@gnu.org about your system, including the value
3143 of your $PATH and any error possibly output before this message.  This
3144 can help us improve future automake versions.
3145
3146 END
3147   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3148     echo 'Configuration will proceed anyway, since you have set the' >&2
3149     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3150     echo >&2
3151   else
3152     cat >&2 <<'END'
3153 Aborting the configuration process, to ensure you take notice of the issue.
3154
3155 You can download and install GNU coreutils to get an 'rm' implementation
3156 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3157
3158 If you want to complete the configuration process using your problematic
3159 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3160 to "yes", and re-run configure.
3161
3162 END
3163     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3164   fi
3165 fi
3166
3167
3168 # Make sure we can run config.sub.
3169 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3170   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3173 $as_echo_n "checking build system type... " >&6; }
3174 if ${ac_cv_build+:} false; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   ac_build_alias=$build_alias
3178 test "x$ac_build_alias" = x &&
3179   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3180 test "x$ac_build_alias" = x &&
3181   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3182 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3183   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3184
3185 fi
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3187 $as_echo "$ac_cv_build" >&6; }
3188 case $ac_cv_build in
3189 *-*-*) ;;
3190 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3191 esac
3192 build=$ac_cv_build
3193 ac_save_IFS=$IFS; IFS='-'
3194 set x $ac_cv_build
3195 shift
3196 build_cpu=$1
3197 build_vendor=$2
3198 shift; shift
3199 # Remember, the first character of IFS is used to create $*,
3200 # except with old shells:
3201 build_os=$*
3202 IFS=$ac_save_IFS
3203 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3204
3205
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3207 $as_echo_n "checking host system type... " >&6; }
3208 if ${ac_cv_host+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   if test "x$host_alias" = x; then
3212   ac_cv_host=$ac_cv_build
3213 else
3214   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3215     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3216 fi
3217
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3220 $as_echo "$ac_cv_host" >&6; }
3221 case $ac_cv_host in
3222 *-*-*) ;;
3223 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3224 esac
3225 host=$ac_cv_host
3226 ac_save_IFS=$IFS; IFS='-'
3227 set x $ac_cv_host
3228 shift
3229 host_cpu=$1
3230 host_vendor=$2
3231 shift; shift
3232 # Remember, the first character of IFS is used to create $*,
3233 # except with old shells:
3234 host_os=$*
3235 IFS=$ac_save_IFS
3236 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3237
3238
3239 case $host_os in
3240     *bsd*)
3241         PKG_CONFIG_RPATH=-Wl,-R\${libdir};;
3242     *)
3243         PKG_CONFIG_RPATH=;;
3244 esac
3245
3246
3247
3248 ac_ext=c
3249 ac_cpp='$CPP $CPPFLAGS'
3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253 if test -n "$ac_tool_prefix"; then
3254   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false; then :
3259   $as_echo_n "(cached) " >&6
3260 else
3261   if test -n "$CC"; then
3262   ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267   IFS=$as_save_IFS
3268   test -z "$as_dir" && as_dir=.
3269     for ac_exec_ext in '' $ac_executable_extensions; do
3270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273     break 2
3274   fi
3275 done
3276   done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3285 else
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 fi
3292 if test -z "$ac_cv_prog_CC"; then
3293   ac_ct_CC=$CC
3294   # Extract the first word of "gcc", so it can be a program name with args.
3295 set dummy gcc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3299   $as_echo_n "(cached) " >&6
3300 else
3301   if test -n "$ac_ct_CC"; then
3302   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307   IFS=$as_save_IFS
3308   test -z "$as_dir" && as_dir=.
3309     for ac_exec_ext in '' $ac_executable_extensions; do
3310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311     ac_cv_prog_ac_ct_CC="gcc"
3312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313     break 2
3314   fi
3315 done
3316   done
3317 IFS=$as_save_IFS
3318
3319 fi
3320 fi
3321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3322 if test -n "$ac_ct_CC"; then
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3324 $as_echo "$ac_ct_CC" >&6; }
3325 else
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330   if test "x$ac_ct_CC" = x; then
3331     CC=""
3332   else
3333     case $cross_compiling:$ac_tool_warned in
3334 yes:)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339     CC=$ac_ct_CC
3340   fi
3341 else
3342   CC="$ac_cv_prog_CC"
3343 fi
3344
3345 if test -z "$CC"; then
3346           if test -n "$ac_tool_prefix"; then
3347     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348 set dummy ${ac_tool_prefix}cc; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CC+:} false; then :
3352   $as_echo_n "(cached) " >&6
3353 else
3354   if test -n "$CC"; then
3355   ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362     for ac_exec_ext in '' $ac_executable_extensions; do
3363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364     ac_cv_prog_CC="${ac_tool_prefix}cc"
3365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366     break 2
3367   fi
3368 done
3369   done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3378 else
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384   fi
3385 fi
3386 if test -z "$CC"; then
3387   # Extract the first word of "cc", so it can be a program name with args.
3388 set dummy cc; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_CC+:} false; then :
3392   $as_echo_n "(cached) " >&6
3393 else
3394   if test -n "$CC"; then
3395   ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397   ac_prog_rejected=no
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403     for ac_exec_ext in '' $ac_executable_extensions; do
3404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3406        ac_prog_rejected=yes
3407        continue
3408      fi
3409     ac_cv_prog_CC="cc"
3410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414   done
3415 IFS=$as_save_IFS
3416
3417 if test $ac_prog_rejected = yes; then
3418   # We found a bogon in the path, so make sure we never use it.
3419   set dummy $ac_cv_prog_CC
3420   shift
3421   if test $# != 0; then
3422     # We chose a different compiler from the bogus one.
3423     # However, it has the same basename, so the bogon will be chosen
3424     # first if we set CC to just the basename; use the full file name.
3425     shift
3426     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3427   fi
3428 fi
3429 fi
3430 fi
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3435 else
3436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440
3441 fi
3442 if test -z "$CC"; then
3443   if test -n "$ac_tool_prefix"; then
3444   for ac_prog in cl.exe
3445   do
3446     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_CC+:} false; then :
3451   $as_echo_n "(cached) " >&6
3452 else
3453   if test -n "$CC"; then
3454   ac_cv_prog_CC="$CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459   IFS=$as_save_IFS
3460   test -z "$as_dir" && as_dir=.
3461     for ac_exec_ext in '' $ac_executable_extensions; do
3462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465     break 2
3466   fi
3467 done
3468   done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476 $as_echo "$CC" >&6; }
3477 else
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 fi
3481
3482
3483     test -n "$CC" && break
3484   done
3485 fi
3486 if test -z "$CC"; then
3487   ac_ct_CC=$CC
3488   for ac_prog in cl.exe
3489 do
3490   # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy $ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   if test -n "$ac_ct_CC"; then
3498   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505     for ac_exec_ext in '' $ac_executable_extensions; do
3506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507     ac_cv_prog_ac_ct_CC="$ac_prog"
3508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512   done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 $as_echo "$ac_ct_CC" >&6; }
3521 else
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 fi
3525
3526
3527   test -n "$ac_ct_CC" && break
3528 done
3529
3530   if test "x$ac_ct_CC" = x; then
3531     CC=""
3532   else
3533     case $cross_compiling:$ac_tool_warned in
3534 yes:)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned=yes ;;
3538 esac
3539     CC=$ac_ct_CC
3540   fi
3541 fi
3542
3543 fi
3544
3545
3546 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error $? "no acceptable C compiler found in \$PATH
3549 See \`config.log' for more details" "$LINENO" 5; }
3550
3551 # Provide some information about the compiler.
3552 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3553 set X $ac_compile
3554 ac_compiler=$2
3555 for ac_option in --version -v -V -qversion; do
3556   { { ac_try="$ac_compiler $ac_option >&5"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3564   ac_status=$?
3565   if test -s conftest.err; then
3566     sed '10a\
3567 ... rest of stderr output deleted ...
3568          10q' conftest.err >conftest.er1
3569     cat conftest.er1 >&5
3570   fi
3571   rm -f conftest.er1 conftest.err
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }
3574 done
3575
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578
3579 int
3580 main ()
3581 {
3582
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 ac_clean_files_save=$ac_clean_files
3588 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3589 # Try to create an executable without -o first, disregard a.out.
3590 # It will help us diagnose broken compilers, and finding out an intuition
3591 # of exeext.
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3593 $as_echo_n "checking whether the C compiler works... " >&6; }
3594 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3595
3596 # The possible output files:
3597 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3598
3599 ac_rmfiles=
3600 for ac_file in $ac_files
3601 do
3602   case $ac_file in
3603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3605   esac
3606 done
3607 rm -f $ac_rmfiles
3608
3609 if { { ac_try="$ac_link_default"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_link_default") 2>&5
3617   ac_status=$?
3618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619   test $ac_status = 0; }; then :
3620   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3621 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3622 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3623 # so that the user can short-circuit this test for compilers unknown to
3624 # Autoconf.
3625 for ac_file in $ac_files ''
3626 do
3627   test -f "$ac_file" || continue
3628   case $ac_file in
3629     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3630         ;;
3631     [ab].out )
3632         # We found the default executable, but exeext='' is most
3633         # certainly right.
3634         break;;
3635     *.* )
3636         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3637         then :; else
3638            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3639         fi
3640         # We set ac_cv_exeext here because the later test for it is not
3641         # safe: cross compilers may not add the suffix if given an `-o'
3642         # argument, so we may need to know it at that point already.
3643         # Even if this section looks crufty: it has the advantage of
3644         # actually working.
3645         break;;
3646     * )
3647         break;;
3648   esac
3649 done
3650 test "$ac_cv_exeext" = no && ac_cv_exeext=
3651
3652 else
3653   ac_file=''
3654 fi
3655 if test -z "$ac_file"; then :
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error 77 "C compiler cannot create executables
3664 See \`config.log' for more details" "$LINENO" 5; }
3665 else
3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667 $as_echo "yes" >&6; }
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3670 $as_echo_n "checking for C compiler default output file name... " >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3672 $as_echo "$ac_file" >&6; }
3673 ac_exeext=$ac_cv_exeext
3674
3675 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3676 ac_clean_files=$ac_clean_files_save
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3678 $as_echo_n "checking for suffix of executables... " >&6; }
3679 if { { ac_try="$ac_link"
3680 case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686   (eval "$ac_link") 2>&5
3687   ac_status=$?
3688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689   test $ac_status = 0; }; then :
3690   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3691 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3692 # work properly (i.e., refer to `conftest.exe'), while it won't with
3693 # `rm'.
3694 for ac_file in conftest.exe conftest conftest.*; do
3695   test -f "$ac_file" || continue
3696   case $ac_file in
3697     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3699           break;;
3700     * ) break;;
3701   esac
3702 done
3703 else
3704   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3707 See \`config.log' for more details" "$LINENO" 5; }
3708 fi
3709 rm -f conftest conftest$ac_cv_exeext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3711 $as_echo "$ac_cv_exeext" >&6; }
3712
3713 rm -f conftest.$ac_ext
3714 EXEEXT=$ac_cv_exeext
3715 ac_exeext=$EXEEXT
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h.  */
3718 #include <stdio.h>
3719 int
3720 main ()
3721 {
3722 FILE *f = fopen ("conftest.out", "w");
3723  return ferror (f) || fclose (f) != 0;
3724
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 ac_clean_files="$ac_clean_files conftest.out"
3730 # Check that the compiler produces executables we can run.  If not, either
3731 # the compiler is broken, or we cross compile.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3733 $as_echo_n "checking whether we are cross compiling... " >&6; }
3734 if test "$cross_compiling" != yes; then
3735   { { ac_try="$ac_link"
3736 case "(($ac_try" in
3737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738   *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742   (eval "$ac_link") 2>&5
3743   ac_status=$?
3744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745   test $ac_status = 0; }
3746   if { ac_try='./conftest$ac_cv_exeext'
3747   { { case "(($ac_try" in
3748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749   *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753   (eval "$ac_try") 2>&5
3754   ac_status=$?
3755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756   test $ac_status = 0; }; }; then
3757     cross_compiling=no
3758   else
3759     if test "$cross_compiling" = maybe; then
3760         cross_compiling=yes
3761     else
3762         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "cannot run C compiled programs.
3765 If you meant to cross compile, use \`--host'.
3766 See \`config.log' for more details" "$LINENO" 5; }
3767     fi
3768   fi
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3771 $as_echo "$cross_compiling" >&6; }
3772
3773 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3774 ac_clean_files=$ac_clean_files_save
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3776 $as_echo_n "checking for suffix of object files... " >&6; }
3777 if ${ac_cv_objext+:} false; then :
3778   $as_echo_n "(cached) " >&6
3779 else
3780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.o conftest.obj
3792 if { { ac_try="$ac_compile"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799   (eval "$ac_compile") 2>&5
3800   ac_status=$?
3801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802   test $ac_status = 0; }; then :
3803   for ac_file in conftest.o conftest.obj conftest.*; do
3804   test -f "$ac_file" || continue;
3805   case $ac_file in
3806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3807     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3808        break;;
3809   esac
3810 done
3811 else
3812   $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error $? "cannot compute suffix of object files: cannot compile
3818 See \`config.log' for more details" "$LINENO" 5; }
3819 fi
3820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3821 fi
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3823 $as_echo "$ac_cv_objext" >&6; }
3824 OBJEXT=$ac_cv_objext
3825 ac_objext=$OBJEXT
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3827 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3828 if ${ac_cv_c_compiler_gnu+:} 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 #ifndef __GNUC__
3838        choke me
3839 #endif
3840
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846   ac_compiler_gnu=yes
3847 else
3848   ac_compiler_gnu=no
3849 fi
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3852
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3855 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3856 if test $ac_compiler_gnu = yes; then
3857   GCC=yes
3858 else
3859   GCC=
3860 fi
3861 ac_test_CFLAGS=${CFLAGS+set}
3862 ac_save_CFLAGS=$CFLAGS
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3864 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3865 if ${ac_cv_prog_cc_g+:} false; then :
3866   $as_echo_n "(cached) " >&6
3867 else
3868   ac_save_c_werror_flag=$ac_c_werror_flag
3869    ac_c_werror_flag=yes
3870    ac_cv_prog_cc_g=no
3871    CFLAGS="-g"
3872    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884   ac_cv_prog_cc_g=yes
3885 else
3886   CFLAGS=""
3887       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h.  */
3889
3890 int
3891 main ()
3892 {
3893
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899
3900 else
3901   ac_c_werror_flag=$ac_save_c_werror_flag
3902          CFLAGS="-g"
3903          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905
3906 int
3907 main ()
3908 {
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 if ac_fn_c_try_compile "$LINENO"; then :
3915   ac_cv_prog_cc_g=yes
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 fi
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922    ac_c_werror_flag=$ac_save_c_werror_flag
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3925 $as_echo "$ac_cv_prog_cc_g" >&6; }
3926 if test "$ac_test_CFLAGS" = set; then
3927   CFLAGS=$ac_save_CFLAGS
3928 elif test $ac_cv_prog_cc_g = yes; then
3929   if test "$GCC" = yes; then
3930     CFLAGS="-g -O2"
3931   else
3932     CFLAGS="-g"
3933   fi
3934 else
3935   if test "$GCC" = yes; then
3936     CFLAGS="-O2"
3937   else
3938     CFLAGS=
3939   fi
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3942 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3943 if ${ac_cv_prog_cc_c89+:} false; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   ac_cv_prog_cc_c89=no
3947 ac_save_CC=$CC
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950 #include <stdarg.h>
3951 #include <stdio.h>
3952 struct stat;
3953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3954 struct buf { int x; };
3955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3956 static char *e (p, i)
3957      char **p;
3958      int i;
3959 {
3960   return p[i];
3961 }
3962 static char *f (char * (*g) (char **, int), char **p, ...)
3963 {
3964   char *s;
3965   va_list v;
3966   va_start (v,p);
3967   s = g (p, va_arg (v,int));
3968   va_end (v);
3969   return s;
3970 }
3971
3972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3973    function prototypes and stuff, but not '\xHH' hex character constants.
3974    These don't provoke an error unfortunately, instead are silently treated
3975    as 'x'.  The following induces an error, until -std is added to get
3976    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3977    array size at least.  It's necessary to write '\x00'==0 to get something
3978    that's true only with -std.  */
3979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3980
3981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3982    inside strings and character constants.  */
3983 #define FOO(x) 'x'
3984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3985
3986 int test (int i, double x);
3987 struct s1 {int (*f) (int a);};
3988 struct s2 {int (*f) (double a);};
3989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3990 int argc;
3991 char **argv;
3992 int
3993 main ()
3994 {
3995 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3996   ;
3997   return 0;
3998 }
3999 _ACEOF
4000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4001         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002 do
4003   CC="$ac_save_CC $ac_arg"
4004   if ac_fn_c_try_compile "$LINENO"; then :
4005   ac_cv_prog_cc_c89=$ac_arg
4006 fi
4007 rm -f core conftest.err conftest.$ac_objext
4008   test "x$ac_cv_prog_cc_c89" != "xno" && break
4009 done
4010 rm -f conftest.$ac_ext
4011 CC=$ac_save_CC
4012
4013 fi
4014 # AC_CACHE_VAL
4015 case "x$ac_cv_prog_cc_c89" in
4016   x)
4017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4018 $as_echo "none needed" >&6; } ;;
4019   xno)
4020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4021 $as_echo "unsupported" >&6; } ;;
4022   *)
4023     CC="$CC $ac_cv_prog_cc_c89"
4024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4025 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4026 esac
4027 if test "x$ac_cv_prog_cc_c89" != xno; then :
4028
4029 fi
4030
4031 ac_ext=c
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4043 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4044 if ${am_cv_prog_cc_c_o+:} false; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058   # Make sure it works both with $CC and with simple cc.
4059   # Following AC_PROG_CC_C_O, we do the test twice because some
4060   # compilers refuse to overwrite an existing .o file with -o,
4061   # though they will create one.
4062   am_cv_prog_cc_c_o=yes
4063   for am_i in 1 2; do
4064     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4065    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4066    ac_status=$?
4067    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068    (exit $ac_status); } \
4069          && test -f conftest2.$ac_objext; then
4070       : OK
4071     else
4072       am_cv_prog_cc_c_o=no
4073       break
4074     fi
4075   done
4076   rm -f core conftest*
4077   unset am_i
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4080 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4081 if test "$am_cv_prog_cc_c_o" != yes; then
4082    # Losing compiler, so override with the script.
4083    # FIXME: It is wrong to rewrite CC.
4084    # But if we don't then we get into trouble of one sort or another.
4085    # A longer-term fix would be to have automake use am__CC in this case,
4086    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4087    CC="$am_aux_dir/compile $CC"
4088 fi
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095 DEPDIR="${am__leading_dot}deps"
4096
4097 ac_config_commands="$ac_config_commands depfiles"
4098
4099
4100 am_make=${MAKE-make}
4101 cat > confinc << 'END'
4102 am__doit:
4103         @echo this is the am__doit target
4104 .PHONY: am__doit
4105 END
4106 # If we don't find an include directive, just comment out the code.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4108 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4109 am__include="#"
4110 am__quote=
4111 _am_result=none
4112 # First try GNU make style include.
4113 echo "include confinc" > confmf
4114 # Ignore all kinds of additional output from 'make'.
4115 case `$am_make -s -f confmf 2> /dev/null` in #(
4116 *the\ am__doit\ target*)
4117   am__include=include
4118   am__quote=
4119   _am_result=GNU
4120   ;;
4121 esac
4122 # Now try BSD make style include.
4123 if test "$am__include" = "#"; then
4124    echo '.include "confinc"' > confmf
4125    case `$am_make -s -f confmf 2> /dev/null` in #(
4126    *the\ am__doit\ target*)
4127      am__include=.include
4128      am__quote="\""
4129      _am_result=BSD
4130      ;;
4131    esac
4132 fi
4133
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4136 $as_echo "$_am_result" >&6; }
4137 rm -f confinc confmf
4138
4139 # Check whether --enable-dependency-tracking was given.
4140 if test "${enable_dependency_tracking+set}" = set; then :
4141   enableval=$enable_dependency_tracking;
4142 fi
4143
4144 if test "x$enable_dependency_tracking" != xno; then
4145   am_depcomp="$ac_aux_dir/depcomp"
4146   AMDEPBACKSLASH='\'
4147   am__nodep='_no'
4148 fi
4149  if test "x$enable_dependency_tracking" != xno; then
4150   AMDEP_TRUE=
4151   AMDEP_FALSE='#'
4152 else
4153   AMDEP_TRUE='#'
4154   AMDEP_FALSE=
4155 fi
4156
4157
4158
4159 depcc="$CC"   am_compiler_list=
4160
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4162 $as_echo_n "checking dependency style of $depcc... " >&6; }
4163 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4164   $as_echo_n "(cached) " >&6
4165 else
4166   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4167   # We make a subdir and do the tests there.  Otherwise we can end up
4168   # making bogus files that we don't know about and never remove.  For
4169   # instance it was reported that on HP-UX the gcc test will end up
4170   # making a dummy file named 'D' -- because '-MD' means "put the output
4171   # in D".
4172   rm -rf conftest.dir
4173   mkdir conftest.dir
4174   # Copy depcomp to subdir because otherwise we won't find it if we're
4175   # using a relative directory.
4176   cp "$am_depcomp" conftest.dir
4177   cd conftest.dir
4178   # We will build objects and dependencies in a subdirectory because
4179   # it helps to detect inapplicable dependency modes.  For instance
4180   # both Tru64's cc and ICC support -MD to output dependencies as a
4181   # side effect of compilation, but ICC will put the dependencies in
4182   # the current directory while Tru64 will put them in the object
4183   # directory.
4184   mkdir sub
4185
4186   am_cv_CC_dependencies_compiler_type=none
4187   if test "$am_compiler_list" = ""; then
4188      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4189   fi
4190   am__universal=false
4191   case " $depcc " in #(
4192      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4193      esac
4194
4195   for depmode in $am_compiler_list; do
4196     # Setup a source with many dependencies, because some compilers
4197     # like to wrap large dependency lists on column 80 (with \), and
4198     # we should not choose a depcomp mode which is confused by this.
4199     #
4200     # We need to recreate these files for each test, as the compiler may
4201     # overwrite some of them when testing with obscure command lines.
4202     # This happens at least with the AIX C compiler.
4203     : > sub/conftest.c
4204     for i in 1 2 3 4 5 6; do
4205       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4206       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4207       # Solaris 10 /bin/sh.
4208       echo '/* dummy */' > sub/conftst$i.h
4209     done
4210     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4211
4212     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4213     # mode.  It turns out that the SunPro C++ compiler does not properly
4214     # handle '-M -o', and we need to detect this.  Also, some Intel
4215     # versions had trouble with output in subdirs.
4216     am__obj=sub/conftest.${OBJEXT-o}
4217     am__minus_obj="-o $am__obj"
4218     case $depmode in
4219     gcc)
4220       # This depmode causes a compiler race in universal mode.
4221       test "$am__universal" = false || continue
4222       ;;
4223     nosideeffect)
4224       # After this tag, mechanisms are not by side-effect, so they'll
4225       # only be used when explicitly requested.
4226       if test "x$enable_dependency_tracking" = xyes; then
4227         continue
4228       else
4229         break
4230       fi
4231       ;;
4232     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4233       # This compiler won't grok '-c -o', but also, the minuso test has
4234       # not run yet.  These depmodes are late enough in the game, and
4235       # so weak that their functioning should not be impacted.
4236       am__obj=conftest.${OBJEXT-o}
4237       am__minus_obj=
4238       ;;
4239     none) break ;;
4240     esac
4241     if depmode=$depmode \
4242        source=sub/conftest.c object=$am__obj \
4243        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4244        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4245          >/dev/null 2>conftest.err &&
4246        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4247        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4248        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4249        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4250       # icc doesn't choke on unknown options, it will just issue warnings
4251       # or remarks (even with -Werror).  So we grep stderr for any message
4252       # that says an option was ignored or not supported.
4253       # When given -MP, icc 7.0 and 7.1 complain thusly:
4254       #   icc: Command line warning: ignoring option '-M'; no argument required
4255       # The diagnosis changed in icc 8.0:
4256       #   icc: Command line remark: option '-MP' not supported
4257       if (grep 'ignoring option' conftest.err ||
4258           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4259         am_cv_CC_dependencies_compiler_type=$depmode
4260         break
4261       fi
4262     fi
4263   done
4264
4265   cd ..
4266   rm -rf conftest.dir
4267 else
4268   am_cv_CC_dependencies_compiler_type=none
4269 fi
4270
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4273 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4275
4276  if
4277   test "x$enable_dependency_tracking" != xno \
4278   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4279   am__fastdepCC_TRUE=
4280   am__fastdepCC_FALSE='#'
4281 else
4282   am__fastdepCC_TRUE='#'
4283   am__fastdepCC_FALSE=
4284 fi
4285
4286
4287
4288 # Check whether --enable-largefile was given.
4289 if test "${enable_largefile+set}" = set; then :
4290   enableval=$enable_largefile;
4291 fi
4292
4293 if test "$enable_largefile" != no; then
4294
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4296 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4297 if ${ac_cv_sys_largefile_CC+:} false; then :
4298   $as_echo_n "(cached) " >&6
4299 else
4300   ac_cv_sys_largefile_CC=no
4301      if test "$GCC" != yes; then
4302        ac_save_CC=$CC
4303        while :; do
4304          # IRIX 6.2 and later do not support large files by default,
4305          # so use the C compiler's -n32 option if that helps.
4306          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h.  */
4308 #include <sys/types.h>
4309  /* Check that off_t can represent 2**63 - 1 correctly.
4310     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4311     since some C++ compilers masquerading as C compilers
4312     incorrectly reject 9223372036854775807.  */
4313 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4314   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4315                        && LARGE_OFF_T % 2147483647 == 1)
4316                       ? 1 : -1];
4317 int
4318 main ()
4319 {
4320
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325          if ac_fn_c_try_compile "$LINENO"; then :
4326   break
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext
4329          CC="$CC -n32"
4330          if ac_fn_c_try_compile "$LINENO"; then :
4331   ac_cv_sys_largefile_CC=' -n32'; break
4332 fi
4333 rm -f core conftest.err conftest.$ac_objext
4334          break
4335        done
4336        CC=$ac_save_CC
4337        rm -f conftest.$ac_ext
4338     fi
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4341 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4342   if test "$ac_cv_sys_largefile_CC" != no; then
4343     CC=$CC$ac_cv_sys_largefile_CC
4344   fi
4345
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4347 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4348 if ${ac_cv_sys_file_offset_bits+:} false; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   while :; do
4352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h.  */
4354 #include <sys/types.h>
4355  /* Check that off_t can represent 2**63 - 1 correctly.
4356     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4357     since some C++ compilers masquerading as C compilers
4358     incorrectly reject 9223372036854775807.  */
4359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4360   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4361                        && LARGE_OFF_T % 2147483647 == 1)
4362                       ? 1 : -1];
4363 int
4364 main ()
4365 {
4366
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 if ac_fn_c_try_compile "$LINENO"; then :
4372   ac_cv_sys_file_offset_bits=no; break
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377 #define _FILE_OFFSET_BITS 64
4378 #include <sys/types.h>
4379  /* Check that off_t can represent 2**63 - 1 correctly.
4380     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4381     since some C++ compilers masquerading as C compilers
4382     incorrectly reject 9223372036854775807.  */
4383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4384   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4385                        && LARGE_OFF_T % 2147483647 == 1)
4386                       ? 1 : -1];
4387 int
4388 main ()
4389 {
4390
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396   ac_cv_sys_file_offset_bits=64; break
4397 fi
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399   ac_cv_sys_file_offset_bits=unknown
4400   break
4401 done
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4404 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4405 case $ac_cv_sys_file_offset_bits in #(
4406   no | unknown) ;;
4407   *)
4408 cat >>confdefs.h <<_ACEOF
4409 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4410 _ACEOF
4411 ;;
4412 esac
4413 rm -rf conftest*
4414   if test $ac_cv_sys_file_offset_bits = unknown; then
4415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4416 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4417 if ${ac_cv_sys_large_files+:} false; then :
4418   $as_echo_n "(cached) " >&6
4419 else
4420   while :; do
4421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h.  */
4423 #include <sys/types.h>
4424  /* Check that off_t can represent 2**63 - 1 correctly.
4425     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4426     since some C++ compilers masquerading as C compilers
4427     incorrectly reject 9223372036854775807.  */
4428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4429   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4430                        && LARGE_OFF_T % 2147483647 == 1)
4431                       ? 1 : -1];
4432 int
4433 main ()
4434 {
4435
4436   ;
4437   return 0;
4438 }
4439 _ACEOF
4440 if ac_fn_c_try_compile "$LINENO"; then :
4441   ac_cv_sys_large_files=no; break
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h.  */
4446 #define _LARGE_FILES 1
4447 #include <sys/types.h>
4448  /* Check that off_t can represent 2**63 - 1 correctly.
4449     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4450     since some C++ compilers masquerading as C compilers
4451     incorrectly reject 9223372036854775807.  */
4452 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4453   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4454                        && LARGE_OFF_T % 2147483647 == 1)
4455                       ? 1 : -1];
4456 int
4457 main ()
4458 {
4459
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465   ac_cv_sys_large_files=1; break
4466 fi
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468   ac_cv_sys_large_files=unknown
4469   break
4470 done
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4473 $as_echo "$ac_cv_sys_large_files" >&6; }
4474 case $ac_cv_sys_large_files in #(
4475   no | unknown) ;;
4476   *)
4477 cat >>confdefs.h <<_ACEOF
4478 #define _LARGE_FILES $ac_cv_sys_large_files
4479 _ACEOF
4480 ;;
4481 esac
4482 rm -rf conftest*
4483   fi
4484
4485
4486 fi
4487
4488
4489
4490
4491 # Check whether --with-zlib was given.
4492 if test "${with_zlib+set}" = set; then :
4493   withval=$with_zlib;
4494 else
4495   with_zlib=yes
4496 fi
4497
4498
4499 if test "$with_zlib" != "yes"
4500 then
4501     if test -f "$with_zlib"/zlib.h
4502     then
4503         # PREFIX is to uninstalled version in distribution directory
4504         CFLAGS="$CFLAGS -I$with_zlib"
4505         LDFLAGS="$LDFLAGS -L$with_zlib"
4506     else if test -f "$with_zlib"/include/zlib.h
4507     then
4508         # PREFIX is installation prefix
4509         CFLAGS="$CFLAGS -I$with_zlib/include"
4510         LDFLAGS="$LDFLAGS -L$with_zlib/lib"
4511     fi
4512     fi
4513 fi
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
4516 $as_echo_n "checking for main in -lz... " >&6; }
4517 if ${ac_cv_lib_z_main+:} false; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   ac_check_lib_save_LIBS=$LIBS
4521 LIBS="-lz  $LIBS"
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524
4525
4526 int
4527 main ()
4528 {
4529 return main ();
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_c_try_link "$LINENO"; then :
4535   ac_cv_lib_z_main=yes
4536 else
4537   ac_cv_lib_z_main=no
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext \
4540     conftest$ac_exeext conftest.$ac_ext
4541 LIBS=$ac_check_lib_save_LIBS
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
4544 $as_echo "$ac_cv_lib_z_main" >&6; }
4545 if test "x$ac_cv_lib_z_main" = xyes; then :
4546   cat >>confdefs.h <<_ACEOF
4547 #define HAVE_LIBZ 1
4548 _ACEOF
4549
4550   LIBS="-lz $LIBS"
4551
4552 fi
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking new ZLIB version" >&5
4555 $as_echo_n "checking new ZLIB version... " >&6; }
4556 if ${id_cv_lib_zlib_ok+:} false; then :
4557   $as_echo_n "(cached) " >&6
4558 else
4559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561 #include <zlib.h>
4562 int
4563 main ()
4564 {
4565 extern ZEXPORT int unzOpen (const char *path);
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571   id_cv_lib_zlib_ok=yes
4572 else
4573   id_cv_lib_zlib_ok=no
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $id_cv_lib_zlib_ok" >&5
4578 $as_echo "$id_cv_lib_zlib_ok" >&6; }
4579 if test "$id_cv_lib_zlib_ok" = "no"
4580 then
4581     as_fn_error $? "ZLIB version too old, please install at least v1.1.2" "$LINENO" 5
4582 fi
4583
4584
4585
4586 case `pwd` in
4587   *\ * | *\     *)
4588     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4589 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4590 esac
4591
4592
4593
4594 macro_version='2.4.2'
4595 macro_revision='1.3337'
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609 ltmain="$ac_aux_dir/ltmain.sh"
4610
4611 # Backslashify metacharacters that are still active within
4612 # double-quoted strings.
4613 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4614
4615 # Same as above, but do not quote variable references.
4616 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4617
4618 # Sed substitution to delay expansion of an escaped shell variable in a
4619 # double_quote_subst'ed string.
4620 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4621
4622 # Sed substitution to delay expansion of an escaped single quote.
4623 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4624
4625 # Sed substitution to avoid accidental globbing in evaled expressions
4626 no_glob_subst='s/\*/\\\*/g'
4627
4628 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4629 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4630 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4633 $as_echo_n "checking how to print strings... " >&6; }
4634 # Test print first, because it will be a builtin if present.
4635 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4636    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4637   ECHO='print -r --'
4638 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4639   ECHO='printf %s\n'
4640 else
4641   # Use this function as a fallback that always works.
4642   func_fallback_echo ()
4643   {
4644     eval 'cat <<_LTECHO_EOF
4645 $1
4646 _LTECHO_EOF'
4647   }
4648   ECHO='func_fallback_echo'
4649 fi
4650
4651 # func_echo_all arg...
4652 # Invoke $ECHO with all args, space-separated.
4653 func_echo_all ()
4654 {
4655     $ECHO ""
4656 }
4657
4658 case "$ECHO" in
4659   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4660 $as_echo "printf" >&6; } ;;
4661   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4662 $as_echo "print -r" >&6; } ;;
4663   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4664 $as_echo "cat" >&6; } ;;
4665 esac
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4681 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4682 if ${ac_cv_path_SED+:} false; then :
4683   $as_echo_n "(cached) " >&6
4684 else
4685             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4686      for ac_i in 1 2 3 4 5 6 7; do
4687        ac_script="$ac_script$as_nl$ac_script"
4688      done
4689      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4690      { ac_script=; unset ac_script;}
4691      if test -z "$SED"; then
4692   ac_path_SED_found=false
4693   # Loop through the user's path and test for each of PROGNAME-LIST
4694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_prog in sed gsed; do
4700     for ac_exec_ext in '' $ac_executable_extensions; do
4701       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4702       as_fn_executable_p "$ac_path_SED" || continue
4703 # Check for GNU ac_path_SED and select it if it is found.
4704   # Check for GNU $ac_path_SED
4705 case `"$ac_path_SED" --version 2>&1` in
4706 *GNU*)
4707   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4708 *)
4709   ac_count=0
4710   $as_echo_n 0123456789 >"conftest.in"
4711   while :
4712   do
4713     cat "conftest.in" "conftest.in" >"conftest.tmp"
4714     mv "conftest.tmp" "conftest.in"
4715     cp "conftest.in" "conftest.nl"
4716     $as_echo '' >> "conftest.nl"
4717     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719     as_fn_arith $ac_count + 1 && ac_count=$as_val
4720     if test $ac_count -gt ${ac_path_SED_max-0}; then
4721       # Best one so far, save it but keep looking for a better one
4722       ac_cv_path_SED="$ac_path_SED"
4723       ac_path_SED_max=$ac_count
4724     fi
4725     # 10*(2^10) chars as input seems more than enough
4726     test $ac_count -gt 10 && break
4727   done
4728   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 esac
4730
4731       $ac_path_SED_found && break 3
4732     done
4733   done
4734   done
4735 IFS=$as_save_IFS
4736   if test -z "$ac_cv_path_SED"; then
4737     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4738   fi
4739 else
4740   ac_cv_path_SED=$SED
4741 fi
4742
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4745 $as_echo "$ac_cv_path_SED" >&6; }
4746  SED="$ac_cv_path_SED"
4747   rm -f conftest.sed
4748
4749 test -z "$SED" && SED=sed
4750 Xsed="$SED -e 1s/^X//"
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4763 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4764 if ${ac_cv_path_GREP+:} false; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   if test -z "$GREP"; then
4768   ac_path_GREP_found=false
4769   # Loop through the user's path and test for each of PROGNAME-LIST
4770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775     for ac_prog in grep ggrep; do
4776     for ac_exec_ext in '' $ac_executable_extensions; do
4777       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4778       as_fn_executable_p "$ac_path_GREP" || continue
4779 # Check for GNU ac_path_GREP and select it if it is found.
4780   # Check for GNU $ac_path_GREP
4781 case `"$ac_path_GREP" --version 2>&1` in
4782 *GNU*)
4783   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4784 *)
4785   ac_count=0
4786   $as_echo_n 0123456789 >"conftest.in"
4787   while :
4788   do
4789     cat "conftest.in" "conftest.in" >"conftest.tmp"
4790     mv "conftest.tmp" "conftest.in"
4791     cp "conftest.in" "conftest.nl"
4792     $as_echo 'GREP' >> "conftest.nl"
4793     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795     as_fn_arith $ac_count + 1 && ac_count=$as_val
4796     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4797       # Best one so far, save it but keep looking for a better one
4798       ac_cv_path_GREP="$ac_path_GREP"
4799       ac_path_GREP_max=$ac_count
4800     fi
4801     # 10*(2^10) chars as input seems more than enough
4802     test $ac_count -gt 10 && break
4803   done
4804   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4805 esac
4806
4807       $ac_path_GREP_found && break 3
4808     done
4809   done
4810   done
4811 IFS=$as_save_IFS
4812   if test -z "$ac_cv_path_GREP"; then
4813     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4814   fi
4815 else
4816   ac_cv_path_GREP=$GREP
4817 fi
4818
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4821 $as_echo "$ac_cv_path_GREP" >&6; }
4822  GREP="$ac_cv_path_GREP"
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4826 $as_echo_n "checking for egrep... " >&6; }
4827 if ${ac_cv_path_EGREP+:} false; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4831    then ac_cv_path_EGREP="$GREP -E"
4832    else
4833      if test -z "$EGREP"; then
4834   ac_path_EGREP_found=false
4835   # Loop through the user's path and test for each of PROGNAME-LIST
4836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841     for ac_prog in egrep; do
4842     for ac_exec_ext in '' $ac_executable_extensions; do
4843       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4844       as_fn_executable_p "$ac_path_EGREP" || continue
4845 # Check for GNU ac_path_EGREP and select it if it is found.
4846   # Check for GNU $ac_path_EGREP
4847 case `"$ac_path_EGREP" --version 2>&1` in
4848 *GNU*)
4849   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4850 *)
4851   ac_count=0
4852   $as_echo_n 0123456789 >"conftest.in"
4853   while :
4854   do
4855     cat "conftest.in" "conftest.in" >"conftest.tmp"
4856     mv "conftest.tmp" "conftest.in"
4857     cp "conftest.in" "conftest.nl"
4858     $as_echo 'EGREP' >> "conftest.nl"
4859     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861     as_fn_arith $ac_count + 1 && ac_count=$as_val
4862     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4863       # Best one so far, save it but keep looking for a better one
4864       ac_cv_path_EGREP="$ac_path_EGREP"
4865       ac_path_EGREP_max=$ac_count
4866     fi
4867     # 10*(2^10) chars as input seems more than enough
4868     test $ac_count -gt 10 && break
4869   done
4870   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4871 esac
4872
4873       $ac_path_EGREP_found && break 3
4874     done
4875   done
4876   done
4877 IFS=$as_save_IFS
4878   if test -z "$ac_cv_path_EGREP"; then
4879     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4880   fi
4881 else
4882   ac_cv_path_EGREP=$EGREP
4883 fi
4884
4885    fi
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4888 $as_echo "$ac_cv_path_EGREP" >&6; }
4889  EGREP="$ac_cv_path_EGREP"
4890
4891
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4893 $as_echo_n "checking for fgrep... " >&6; }
4894 if ${ac_cv_path_FGREP+:} false; then :
4895   $as_echo_n "(cached) " >&6
4896 else
4897   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4898    then ac_cv_path_FGREP="$GREP -F"
4899    else
4900      if test -z "$FGREP"; then
4901   ac_path_FGREP_found=false
4902   # Loop through the user's path and test for each of PROGNAME-LIST
4903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908     for ac_prog in fgrep; do
4909     for ac_exec_ext in '' $ac_executable_extensions; do
4910       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4911       as_fn_executable_p "$ac_path_FGREP" || continue
4912 # Check for GNU ac_path_FGREP and select it if it is found.
4913   # Check for GNU $ac_path_FGREP
4914 case `"$ac_path_FGREP" --version 2>&1` in
4915 *GNU*)
4916   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4917 *)
4918   ac_count=0
4919   $as_echo_n 0123456789 >"conftest.in"
4920   while :
4921   do
4922     cat "conftest.in" "conftest.in" >"conftest.tmp"
4923     mv "conftest.tmp" "conftest.in"
4924     cp "conftest.in" "conftest.nl"
4925     $as_echo 'FGREP' >> "conftest.nl"
4926     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4927     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4928     as_fn_arith $ac_count + 1 && ac_count=$as_val
4929     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4930       # Best one so far, save it but keep looking for a better one
4931       ac_cv_path_FGREP="$ac_path_FGREP"
4932       ac_path_FGREP_max=$ac_count
4933     fi
4934     # 10*(2^10) chars as input seems more than enough
4935     test $ac_count -gt 10 && break
4936   done
4937   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4938 esac
4939
4940       $ac_path_FGREP_found && break 3
4941     done
4942   done
4943   done
4944 IFS=$as_save_IFS
4945   if test -z "$ac_cv_path_FGREP"; then
4946     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4947   fi
4948 else
4949   ac_cv_path_FGREP=$FGREP
4950 fi
4951
4952    fi
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4955 $as_echo "$ac_cv_path_FGREP" >&6; }
4956  FGREP="$ac_cv_path_FGREP"
4957
4958
4959 test -z "$GREP" && GREP=grep
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979 # Check whether --with-gnu-ld was given.
4980 if test "${with_gnu_ld+set}" = set; then :
4981   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4982 else
4983   with_gnu_ld=no
4984 fi
4985
4986 ac_prog=ld
4987 if test "$GCC" = yes; then
4988   # Check if gcc -print-prog-name=ld gives a path.
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4990 $as_echo_n "checking for ld used by $CC... " >&6; }
4991   case $host in
4992   *-*-mingw*)
4993     # gcc leaves a trailing carriage return which upsets mingw
4994     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4995   *)
4996     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4997   esac
4998   case $ac_prog in
4999     # Accept absolute paths.
5000     [\\/]* | ?:[\\/]*)
5001       re_direlt='/[^/][^/]*/\.\./'
5002       # Canonicalize the pathname of ld
5003       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5004       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5005         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5006       done
5007       test -z "$LD" && LD="$ac_prog"
5008       ;;
5009   "")
5010     # If it fails, then pretend we aren't using GCC.
5011     ac_prog=ld
5012     ;;
5013   *)
5014     # If it is relative, then search for the first ld in PATH.
5015     with_gnu_ld=unknown
5016     ;;
5017   esac
5018 elif test "$with_gnu_ld" = yes; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5020 $as_echo_n "checking for GNU ld... " >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5023 $as_echo_n "checking for non-GNU ld... " >&6; }
5024 fi
5025 if ${lt_cv_path_LD+:} false; then :
5026   $as_echo_n "(cached) " >&6
5027 else
5028   if test -z "$LD"; then
5029   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030   for ac_dir in $PATH; do
5031     IFS="$lt_save_ifs"
5032     test -z "$ac_dir" && ac_dir=.
5033     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5034       lt_cv_path_LD="$ac_dir/$ac_prog"
5035       # Check to see if the program is GNU ld.  I'd rather use --version,
5036       # but apparently some variants of GNU ld only accept -v.
5037       # Break only if it was the GNU/non-GNU ld that we prefer.
5038       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5039       *GNU* | *'with BFD'*)
5040         test "$with_gnu_ld" != no && break
5041         ;;
5042       *)
5043         test "$with_gnu_ld" != yes && break
5044         ;;
5045       esac
5046     fi
5047   done
5048   IFS="$lt_save_ifs"
5049 else
5050   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5051 fi
5052 fi
5053
5054 LD="$lt_cv_path_LD"
5055 if test -n "$LD"; then
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5057 $as_echo "$LD" >&6; }
5058 else
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5064 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5065 if ${lt_cv_prog_gnu_ld+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5069 case `$LD -v 2>&1 </dev/null` in
5070 *GNU* | *'with BFD'*)
5071   lt_cv_prog_gnu_ld=yes
5072   ;;
5073 *)
5074   lt_cv_prog_gnu_ld=no
5075   ;;
5076 esac
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5079 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5080 with_gnu_ld=$lt_cv_prog_gnu_ld
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5091 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5092 if ${lt_cv_path_NM+:} false; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   if test -n "$NM"; then
5096   # Let the user override the test.
5097   lt_cv_path_NM="$NM"
5098 else
5099   lt_nm_to_check="${ac_tool_prefix}nm"
5100   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5101     lt_nm_to_check="$lt_nm_to_check nm"
5102   fi
5103   for lt_tmp_nm in $lt_nm_to_check; do
5104     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5105     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5106       IFS="$lt_save_ifs"
5107       test -z "$ac_dir" && ac_dir=.
5108       tmp_nm="$ac_dir/$lt_tmp_nm"
5109       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5110         # Check to see if the nm accepts a BSD-compat flag.
5111         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5112         #   nm: unknown option "B" ignored
5113         # Tru64's nm complains that /dev/null is an invalid object file
5114         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5115         */dev/null* | *'Invalid file or object type'*)
5116           lt_cv_path_NM="$tmp_nm -B"
5117           break
5118           ;;
5119         *)
5120           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5121           */dev/null*)
5122             lt_cv_path_NM="$tmp_nm -p"
5123             break
5124             ;;
5125           *)
5126             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5127             continue # so that we can try to find one that supports BSD flags
5128             ;;
5129           esac
5130           ;;
5131         esac
5132       fi
5133     done
5134     IFS="$lt_save_ifs"
5135   done
5136   : ${lt_cv_path_NM=no}
5137 fi
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5140 $as_echo "$lt_cv_path_NM" >&6; }
5141 if test "$lt_cv_path_NM" != "no"; then
5142   NM="$lt_cv_path_NM"
5143 else
5144   # Didn't find any BSD compatible name lister, look for dumpbin.
5145   if test -n "$DUMPBIN"; then :
5146     # Let the user override the test.
5147   else
5148     if test -n "$ac_tool_prefix"; then
5149   for ac_prog in dumpbin "link -dump"
5150   do
5151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_DUMPBIN+:} false; then :
5156   $as_echo_n "(cached) " >&6
5157 else
5158   if test -n "$DUMPBIN"; then
5159   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164   IFS=$as_save_IFS
5165   test -z "$as_dir" && as_dir=.
5166     for ac_exec_ext in '' $ac_executable_extensions; do
5167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170     break 2
5171   fi
5172 done
5173   done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 DUMPBIN=$ac_cv_prog_DUMPBIN
5179 if test -n "$DUMPBIN"; then
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5181 $as_echo "$DUMPBIN" >&6; }
5182 else
5183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188     test -n "$DUMPBIN" && break
5189   done
5190 fi
5191 if test -z "$DUMPBIN"; then
5192   ac_ct_DUMPBIN=$DUMPBIN
5193   for ac_prog in dumpbin "link -dump"
5194 do
5195   # Extract the first word of "$ac_prog", so it can be a program name with args.
5196 set dummy $ac_prog; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202   if test -n "$ac_ct_DUMPBIN"; then
5203   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210     for ac_exec_ext in '' $ac_executable_extensions; do
5211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217   done
5218 IFS=$as_save_IFS
5219
5220 fi
5221 fi
5222 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5223 if test -n "$ac_ct_DUMPBIN"; then
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5225 $as_echo "$ac_ct_DUMPBIN" >&6; }
5226 else
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232   test -n "$ac_ct_DUMPBIN" && break
5233 done
5234
5235   if test "x$ac_ct_DUMPBIN" = x; then
5236     DUMPBIN=":"
5237   else
5238     case $cross_compiling:$ac_tool_warned in
5239 yes:)
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242 ac_tool_warned=yes ;;
5243 esac
5244     DUMPBIN=$ac_ct_DUMPBIN
5245   fi
5246 fi
5247
5248     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5249     *COFF*)
5250       DUMPBIN="$DUMPBIN -symbols"
5251       ;;
5252     *)
5253       DUMPBIN=:
5254       ;;
5255     esac
5256   fi
5257
5258   if test "$DUMPBIN" != ":"; then
5259     NM="$DUMPBIN"
5260   fi
5261 fi
5262 test -z "$NM" && NM=nm
5263
5264
5265
5266
5267
5268
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5270 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5271 if ${lt_cv_nm_interface+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   lt_cv_nm_interface="BSD nm"
5275   echo "int some_variable = 0;" > conftest.$ac_ext
5276   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5277   (eval "$ac_compile" 2>conftest.err)
5278   cat conftest.err >&5
5279   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5280   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5281   cat conftest.err >&5
5282   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5283   cat conftest.out >&5
5284   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5285     lt_cv_nm_interface="MS dumpbin"
5286   fi
5287   rm -f conftest*
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5290 $as_echo "$lt_cv_nm_interface" >&6; }
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5293 $as_echo_n "checking whether ln -s works... " >&6; }
5294 LN_S=$as_ln_s
5295 if test "$LN_S" = "ln -s"; then
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5297 $as_echo "yes" >&6; }
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5300 $as_echo "no, using $LN_S" >&6; }
5301 fi
5302
5303 # find the maximum length of command line arguments
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5305 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5306 if ${lt_cv_sys_max_cmd_len+:} false; then :
5307   $as_echo_n "(cached) " >&6
5308 else
5309     i=0
5310   teststring="ABCD"
5311
5312   case $build_os in
5313   msdosdjgpp*)
5314     # On DJGPP, this test can blow up pretty badly due to problems in libc
5315     # (any single argument exceeding 2000 bytes causes a buffer overrun
5316     # during glob expansion).  Even if it were fixed, the result of this
5317     # check would be larger than it should be.
5318     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5319     ;;
5320
5321   gnu*)
5322     # Under GNU Hurd, this test is not required because there is
5323     # no limit to the length of command line arguments.
5324     # Libtool will interpret -1 as no limit whatsoever
5325     lt_cv_sys_max_cmd_len=-1;
5326     ;;
5327
5328   cygwin* | mingw* | cegcc*)
5329     # On Win9x/ME, this test blows up -- it succeeds, but takes
5330     # about 5 minutes as the teststring grows exponentially.
5331     # Worse, since 9x/ME are not pre-emptively multitasking,
5332     # you end up with a "frozen" computer, even though with patience
5333     # the test eventually succeeds (with a max line length of 256k).
5334     # Instead, let's just punt: use the minimum linelength reported by
5335     # all of the supported platforms: 8192 (on NT/2K/XP).
5336     lt_cv_sys_max_cmd_len=8192;
5337     ;;
5338
5339   mint*)
5340     # On MiNT this can take a long time and run out of memory.
5341     lt_cv_sys_max_cmd_len=8192;
5342     ;;
5343
5344   amigaos*)
5345     # On AmigaOS with pdksh, this test takes hours, literally.
5346     # So we just punt and use a minimum line length of 8192.
5347     lt_cv_sys_max_cmd_len=8192;
5348     ;;
5349
5350   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5351     # This has been around since 386BSD, at least.  Likely further.
5352     if test -x /sbin/sysctl; then
5353       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5354     elif test -x /usr/sbin/sysctl; then
5355       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5356     else
5357       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5358     fi
5359     # And add a safety zone
5360     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5361     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5362     ;;
5363
5364   interix*)
5365     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5366     lt_cv_sys_max_cmd_len=196608
5367     ;;
5368
5369   os2*)
5370     # The test takes a long time on OS/2.
5371     lt_cv_sys_max_cmd_len=8192
5372     ;;
5373
5374   osf*)
5375     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5376     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5377     # nice to cause kernel panics so lets avoid the loop below.
5378     # First set a reasonable default.
5379     lt_cv_sys_max_cmd_len=16384
5380     #
5381     if test -x /sbin/sysconfig; then
5382       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5383         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5384       esac
5385     fi
5386     ;;
5387   sco3.2v5*)
5388     lt_cv_sys_max_cmd_len=102400
5389     ;;
5390   sysv5* | sco5v6* | sysv4.2uw2*)
5391     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5392     if test -n "$kargmax"; then
5393       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5394     else
5395       lt_cv_sys_max_cmd_len=32768
5396     fi
5397     ;;
5398   *)
5399     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5400     if test -n "$lt_cv_sys_max_cmd_len"; then
5401       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5402       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5403     else
5404       # Make teststring a little bigger before we do anything with it.
5405       # a 1K string should be a reasonable start.
5406       for i in 1 2 3 4 5 6 7 8 ; do
5407         teststring=$teststring$teststring
5408       done
5409       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5410       # If test is not a shell built-in, we'll probably end up computing a
5411       # maximum length that is only half of the actual maximum length, but
5412       # we can't tell.
5413       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5414                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5415               test $i != 17 # 1/2 MB should be enough
5416       do
5417         i=`expr $i + 1`
5418         teststring=$teststring$teststring
5419       done
5420       # Only check the string length outside the loop.
5421       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5422       teststring=
5423       # Add a significant safety factor because C++ compilers can tack on
5424       # massive amounts of additional arguments before passing them to the
5425       # linker.  It appears as though 1/2 is a usable value.
5426       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5427     fi
5428     ;;
5429   esac
5430
5431 fi
5432
5433 if test -n $lt_cv_sys_max_cmd_len ; then
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5435 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5438 $as_echo "none" >&6; }
5439 fi
5440 max_cmd_len=$lt_cv_sys_max_cmd_len
5441
5442
5443
5444
5445
5446
5447 : ${CP="cp -f"}
5448 : ${MV="mv -f"}
5449 : ${RM="rm -f"}
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5452 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5453 # Try some XSI features
5454 xsi_shell=no
5455 ( _lt_dummy="a/b/c"
5456   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5457       = c,a/b,b/c, \
5458     && eval 'test $(( 1 + 1 )) -eq 2 \
5459     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5460   && xsi_shell=yes
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5462 $as_echo "$xsi_shell" >&6; }
5463
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5466 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5467 lt_shell_append=no
5468 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5469     >/dev/null 2>&1 \
5470   && lt_shell_append=yes
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5472 $as_echo "$lt_shell_append" >&6; }
5473
5474
5475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5476   lt_unset=unset
5477 else
5478   lt_unset=false
5479 fi
5480
5481
5482
5483
5484
5485 # test EBCDIC or ASCII
5486 case `echo X|tr X '\101'` in
5487  A) # ASCII based system
5488     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5489   lt_SP2NL='tr \040 \012'
5490   lt_NL2SP='tr \015\012 \040\040'
5491   ;;
5492  *) # EBCDIC based system
5493   lt_SP2NL='tr \100 \n'
5494   lt_NL2SP='tr \r\n \100\100'
5495   ;;
5496 esac
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5507 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5508 if ${lt_cv_to_host_file_cmd+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   case $host in
5512   *-*-mingw* )
5513     case $build in
5514       *-*-mingw* ) # actually msys
5515         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5516         ;;
5517       *-*-cygwin* )
5518         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5519         ;;
5520       * ) # otherwise, assume *nix
5521         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5522         ;;
5523     esac
5524     ;;
5525   *-*-cygwin* )
5526     case $build in
5527       *-*-mingw* ) # actually msys
5528         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5529         ;;
5530       *-*-cygwin* )
5531         lt_cv_to_host_file_cmd=func_convert_file_noop
5532         ;;
5533       * ) # otherwise, assume *nix
5534         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5535         ;;
5536     esac
5537     ;;
5538   * ) # unhandled hosts (and "normal" native builds)
5539     lt_cv_to_host_file_cmd=func_convert_file_noop
5540     ;;
5541 esac
5542
5543 fi
5544
5545 to_host_file_cmd=$lt_cv_to_host_file_cmd
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5547 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5548
5549
5550
5551
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5554 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5555 if ${lt_cv_to_tool_file_cmd+:} false; then :
5556   $as_echo_n "(cached) " >&6
5557 else
5558   #assume ordinary cross tools, or native build.
5559 lt_cv_to_tool_file_cmd=func_convert_file_noop
5560 case $host in
5561   *-*-mingw* )
5562     case $build in
5563       *-*-mingw* ) # actually msys
5564         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5565         ;;
5566     esac
5567     ;;
5568 esac
5569
5570 fi
5571
5572 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5574 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5575
5576
5577
5578
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5581 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5582 if ${lt_cv_ld_reload_flag+:} false; then :
5583   $as_echo_n "(cached) " >&6
5584 else
5585   lt_cv_ld_reload_flag='-r'
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5588 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5589 reload_flag=$lt_cv_ld_reload_flag
5590 case $reload_flag in
5591 "" | " "*) ;;
5592 *) reload_flag=" $reload_flag" ;;
5593 esac
5594 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5595 case $host_os in
5596   cygwin* | mingw* | pw32* | cegcc*)
5597     if test "$GCC" != yes; then
5598       reload_cmds=false
5599     fi
5600     ;;
5601   darwin*)
5602     if test "$GCC" = yes; then
5603       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5604     else
5605       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5606     fi
5607     ;;
5608 esac
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 if test -n "$ac_tool_prefix"; then
5619   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5620 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_OBJDUMP+:} false; then :
5624   $as_echo_n "(cached) " >&6
5625 else
5626   if test -n "$OBJDUMP"; then
5627   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634     for ac_exec_ext in '' $ac_executable_extensions; do
5635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641   done
5642 IFS=$as_save_IFS
5643
5644 fi
5645 fi
5646 OBJDUMP=$ac_cv_prog_OBJDUMP
5647 if test -n "$OBJDUMP"; then
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5649 $as_echo "$OBJDUMP" >&6; }
5650 else
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5653 fi
5654
5655
5656 fi
5657 if test -z "$ac_cv_prog_OBJDUMP"; then
5658   ac_ct_OBJDUMP=$OBJDUMP
5659   # Extract the first word of "objdump", so it can be a program name with args.
5660 set dummy objdump; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5664   $as_echo_n "(cached) " >&6
5665 else
5666   if test -n "$ac_ct_OBJDUMP"; then
5667   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672   IFS=$as_save_IFS
5673   test -z "$as_dir" && as_dir=.
5674     for ac_exec_ext in '' $ac_executable_extensions; do
5675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678     break 2
5679   fi
5680 done
5681   done
5682 IFS=$as_save_IFS
5683
5684 fi
5685 fi
5686 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5687 if test -n "$ac_ct_OBJDUMP"; then
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5689 $as_echo "$ac_ct_OBJDUMP" >&6; }
5690 else
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695   if test "x$ac_ct_OBJDUMP" = x; then
5696     OBJDUMP="false"
5697   else
5698     case $cross_compiling:$ac_tool_warned in
5699 yes:)
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5702 ac_tool_warned=yes ;;
5703 esac
5704     OBJDUMP=$ac_ct_OBJDUMP
5705   fi
5706 else
5707   OBJDUMP="$ac_cv_prog_OBJDUMP"
5708 fi
5709
5710 test -z "$OBJDUMP" && OBJDUMP=objdump
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5721 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5722 if ${lt_cv_deplibs_check_method+:} false; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   lt_cv_file_magic_cmd='$MAGIC_CMD'
5726 lt_cv_file_magic_test_file=
5727 lt_cv_deplibs_check_method='unknown'
5728 # Need to set the preceding variable on all platforms that support
5729 # interlibrary dependencies.
5730 # 'none' -- dependencies not supported.
5731 # `unknown' -- same as none, but documents that we really don't know.
5732 # 'pass_all' -- all dependencies passed with no checks.
5733 # 'test_compile' -- check by making test program.
5734 # 'file_magic [[regex]]' -- check by looking for files in library path
5735 # which responds to the $file_magic_cmd with a given extended regex.
5736 # If you have `file' or equivalent on your system and you're not sure
5737 # whether `pass_all' will *always* work, you probably want this one.
5738
5739 case $host_os in
5740 aix[4-9]*)
5741   lt_cv_deplibs_check_method=pass_all
5742   ;;
5743
5744 beos*)
5745   lt_cv_deplibs_check_method=pass_all
5746   ;;
5747
5748 bsdi[45]*)
5749   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5750   lt_cv_file_magic_cmd='/usr/bin/file -L'
5751   lt_cv_file_magic_test_file=/shlib/libc.so
5752   ;;
5753
5754 cygwin*)
5755   # func_win32_libid is a shell function defined in ltmain.sh
5756   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5757   lt_cv_file_magic_cmd='func_win32_libid'
5758   ;;
5759
5760 mingw* | pw32*)
5761   # Base MSYS/MinGW do not provide the 'file' command needed by
5762   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5763   # unless we find 'file', for example because we are cross-compiling.
5764   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5765   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5766     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5767     lt_cv_file_magic_cmd='func_win32_libid'
5768   else
5769     # Keep this pattern in sync with the one in func_win32_libid.
5770     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5771     lt_cv_file_magic_cmd='$OBJDUMP -f'
5772   fi
5773   ;;
5774
5775 cegcc*)
5776   # use the weaker test based on 'objdump'. See mingw*.
5777   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5778   lt_cv_file_magic_cmd='$OBJDUMP -f'
5779   ;;
5780
5781 darwin* | rhapsody*)
5782   lt_cv_deplibs_check_method=pass_all
5783   ;;
5784
5785 freebsd* | dragonfly*)
5786   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5787     case $host_cpu in
5788     i*86 )
5789       # Not sure whether the presence of OpenBSD here was a mistake.
5790       # Let's accept both of them until this is cleared up.
5791       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5792       lt_cv_file_magic_cmd=/usr/bin/file
5793       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5794       ;;
5795     esac
5796   else
5797     lt_cv_deplibs_check_method=pass_all
5798   fi
5799   ;;
5800
5801 gnu*)
5802   lt_cv_deplibs_check_method=pass_all
5803   ;;
5804
5805 haiku*)
5806   lt_cv_deplibs_check_method=pass_all
5807   ;;
5808
5809 hpux10.20* | hpux11*)
5810   lt_cv_file_magic_cmd=/usr/bin/file
5811   case $host_cpu in
5812   ia64*)
5813     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5814     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5815     ;;
5816   hppa*64*)
5817     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]'
5818     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5819     ;;
5820   *)
5821     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5822     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5823     ;;
5824   esac
5825   ;;
5826
5827 interix[3-9]*)
5828   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5829   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5830   ;;
5831
5832 irix5* | irix6* | nonstopux*)
5833   case $LD in
5834   *-32|*"-32 ") libmagic=32-bit;;
5835   *-n32|*"-n32 ") libmagic=N32;;
5836   *-64|*"-64 ") libmagic=64-bit;;
5837   *) libmagic=never-match;;
5838   esac
5839   lt_cv_deplibs_check_method=pass_all
5840   ;;
5841
5842 # This must be glibc/ELF.
5843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5844   lt_cv_deplibs_check_method=pass_all
5845   ;;
5846
5847 netbsd*)
5848   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5849     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5850   else
5851     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5852   fi
5853   ;;
5854
5855 newos6*)
5856   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5857   lt_cv_file_magic_cmd=/usr/bin/file
5858   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5859   ;;
5860
5861 *nto* | *qnx*)
5862   lt_cv_deplibs_check_method=pass_all
5863   ;;
5864
5865 openbsd*)
5866   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5867     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5868   else
5869     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5870   fi
5871   ;;
5872
5873 osf3* | osf4* | osf5*)
5874   lt_cv_deplibs_check_method=pass_all
5875   ;;
5876
5877 rdos*)
5878   lt_cv_deplibs_check_method=pass_all
5879   ;;
5880
5881 solaris*)
5882   lt_cv_deplibs_check_method=pass_all
5883   ;;
5884
5885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5886   lt_cv_deplibs_check_method=pass_all
5887   ;;
5888
5889 sysv4 | sysv4.3*)
5890   case $host_vendor in
5891   motorola)
5892     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]'
5893     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5894     ;;
5895   ncr)
5896     lt_cv_deplibs_check_method=pass_all
5897     ;;
5898   sequent)
5899     lt_cv_file_magic_cmd='/bin/file'
5900     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5901     ;;
5902   sni)
5903     lt_cv_file_magic_cmd='/bin/file'
5904     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5905     lt_cv_file_magic_test_file=/lib/libc.so
5906     ;;
5907   siemens)
5908     lt_cv_deplibs_check_method=pass_all
5909     ;;
5910   pc)
5911     lt_cv_deplibs_check_method=pass_all
5912     ;;
5913   esac
5914   ;;
5915
5916 tpf*)
5917   lt_cv_deplibs_check_method=pass_all
5918   ;;
5919 esac
5920
5921 fi
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5923 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5924
5925 file_magic_glob=
5926 want_nocaseglob=no
5927 if test "$build" = "$host"; then
5928   case $host_os in
5929   mingw* | pw32*)
5930     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5931       want_nocaseglob=yes
5932     else
5933       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5934     fi
5935     ;;
5936   esac
5937 fi
5938
5939 file_magic_cmd=$lt_cv_file_magic_cmd
5940 deplibs_check_method=$lt_cv_deplibs_check_method
5941 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964 if test -n "$ac_tool_prefix"; then
5965   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_DLLTOOL+:} false; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$DLLTOOL"; then
5973   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989
5990 fi
5991 fi
5992 DLLTOOL=$ac_cv_prog_DLLTOOL
5993 if test -n "$DLLTOOL"; then
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5995 $as_echo "$DLLTOOL" >&6; }
5996 else
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000
6001
6002 fi
6003 if test -z "$ac_cv_prog_DLLTOOL"; then
6004   ac_ct_DLLTOOL=$DLLTOOL
6005   # Extract the first word of "dlltool", so it can be a program name with args.
6006 set dummy dlltool; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6010   $as_echo_n "(cached) " >&6
6011 else
6012   if test -n "$ac_ct_DLLTOOL"; then
6013   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020     for ac_exec_ext in '' $ac_executable_extensions; do
6021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024     break 2
6025   fi
6026 done
6027   done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6033 if test -n "$ac_ct_DLLTOOL"; then
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6035 $as_echo "$ac_ct_DLLTOOL" >&6; }
6036 else
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041   if test "x$ac_ct_DLLTOOL" = x; then
6042     DLLTOOL="false"
6043   else
6044     case $cross_compiling:$ac_tool_warned in
6045 yes:)
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048 ac_tool_warned=yes ;;
6049 esac
6050     DLLTOOL=$ac_ct_DLLTOOL
6051   fi
6052 else
6053   DLLTOOL="$ac_cv_prog_DLLTOOL"
6054 fi
6055
6056 test -z "$DLLTOOL" && DLLTOOL=dlltool
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6068 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6069 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   lt_cv_sharedlib_from_linklib_cmd='unknown'
6073
6074 case $host_os in
6075 cygwin* | mingw* | pw32* | cegcc*)
6076   # two different shell functions defined in ltmain.sh
6077   # decide which to use based on capabilities of $DLLTOOL
6078   case `$DLLTOOL --help 2>&1` in
6079   *--identify-strict*)
6080     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6081     ;;
6082   *)
6083     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6084     ;;
6085   esac
6086   ;;
6087 *)
6088   # fallback: assume linklib IS sharedlib
6089   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6090   ;;
6091 esac
6092
6093 fi
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6095 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6096 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6097 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6098
6099
6100
6101
6102
6103
6104
6105 if test -n "$ac_tool_prefix"; then
6106   for ac_prog in ar
6107   do
6108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_AR+:} false; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   if test -n "$AR"; then
6116   ac_cv_prog_AR="$AR" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130   done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 AR=$ac_cv_prog_AR
6136 if test -n "$AR"; then
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6138 $as_echo "$AR" >&6; }
6139 else
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144
6145     test -n "$AR" && break
6146   done
6147 fi
6148 if test -z "$AR"; then
6149   ac_ct_AR=$AR
6150   for ac_prog in ar
6151 do
6152   # Extract the first word of "$ac_prog", so it can be a program name with args.
6153 set dummy $ac_prog; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   if test -n "$ac_ct_AR"; then
6160   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167     for ac_exec_ext in '' $ac_executable_extensions; do
6168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169     ac_cv_prog_ac_ct_AR="$ac_prog"
6170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171     break 2
6172   fi
6173 done
6174   done
6175 IFS=$as_save_IFS
6176
6177 fi
6178 fi
6179 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6180 if test -n "$ac_ct_AR"; then
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6182 $as_echo "$ac_ct_AR" >&6; }
6183 else
6184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6186 fi
6187
6188
6189   test -n "$ac_ct_AR" && break
6190 done
6191
6192   if test "x$ac_ct_AR" = x; then
6193     AR="false"
6194   else
6195     case $cross_compiling:$ac_tool_warned in
6196 yes:)
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199 ac_tool_warned=yes ;;
6200 esac
6201     AR=$ac_ct_AR
6202   fi
6203 fi
6204
6205 : ${AR=ar}
6206 : ${AR_FLAGS=cru}
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6219 $as_echo_n "checking for archiver @FILE support... " >&6; }
6220 if ${lt_cv_ar_at_file+:} false; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   lt_cv_ar_at_file=no
6224    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h.  */
6226
6227 int
6228 main ()
6229 {
6230
6231   ;
6232   return 0;
6233 }
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236   echo conftest.$ac_objext > conftest.lst
6237       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6238       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6239   (eval $lt_ar_try) 2>&5
6240   ac_status=$?
6241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242   test $ac_status = 0; }
6243       if test "$ac_status" -eq 0; then
6244         # Ensure the archiver fails upon bogus file names.
6245         rm -f conftest.$ac_objext libconftest.a
6246         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6247   (eval $lt_ar_try) 2>&5
6248   ac_status=$?
6249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250   test $ac_status = 0; }
6251         if test "$ac_status" -ne 0; then
6252           lt_cv_ar_at_file=@
6253         fi
6254       fi
6255       rm -f conftest.* libconftest.a
6256
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6262 $as_echo "$lt_cv_ar_at_file" >&6; }
6263
6264 if test "x$lt_cv_ar_at_file" = xno; then
6265   archiver_list_spec=
6266 else
6267   archiver_list_spec=$lt_cv_ar_at_file
6268 fi
6269
6270
6271
6272
6273
6274
6275
6276 if test -n "$ac_tool_prefix"; then
6277   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6278 set dummy ${ac_tool_prefix}strip; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_STRIP+:} false; then :
6282   $as_echo_n "(cached) " >&6
6283 else
6284   if test -n "$STRIP"; then
6285   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292     for ac_exec_ext in '' $ac_executable_extensions; do
6293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299   done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 STRIP=$ac_cv_prog_STRIP
6305 if test -n "$STRIP"; then
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6307 $as_echo "$STRIP" >&6; }
6308 else
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313
6314 fi
6315 if test -z "$ac_cv_prog_STRIP"; then
6316   ac_ct_STRIP=$STRIP
6317   # Extract the first word of "strip", so it can be a program name with args.
6318 set dummy strip; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6322   $as_echo_n "(cached) " >&6
6323 else
6324   if test -n "$ac_ct_STRIP"; then
6325   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330   IFS=$as_save_IFS
6331   test -z "$as_dir" && as_dir=.
6332     for ac_exec_ext in '' $ac_executable_extensions; do
6333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334     ac_cv_prog_ac_ct_STRIP="strip"
6335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336     break 2
6337   fi
6338 done
6339   done
6340 IFS=$as_save_IFS
6341
6342 fi
6343 fi
6344 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6345 if test -n "$ac_ct_STRIP"; then
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6347 $as_echo "$ac_ct_STRIP" >&6; }
6348 else
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6351 fi
6352
6353   if test "x$ac_ct_STRIP" = x; then
6354     STRIP=":"
6355   else
6356     case $cross_compiling:$ac_tool_warned in
6357 yes:)
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360 ac_tool_warned=yes ;;
6361 esac
6362     STRIP=$ac_ct_STRIP
6363   fi
6364 else
6365   STRIP="$ac_cv_prog_STRIP"
6366 fi
6367
6368 test -z "$STRIP" && STRIP=:
6369
6370
6371
6372
6373
6374
6375 if test -n "$ac_tool_prefix"; then
6376   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_RANLIB+:} false; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383   if test -n "$RANLIB"; then
6384   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391     for ac_exec_ext in '' $ac_executable_extensions; do
6392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398   done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 RANLIB=$ac_cv_prog_RANLIB
6404 if test -n "$RANLIB"; then
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6406 $as_echo "$RANLIB" >&6; }
6407 else
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412
6413 fi
6414 if test -z "$ac_cv_prog_RANLIB"; then
6415   ac_ct_RANLIB=$RANLIB
6416   # Extract the first word of "ranlib", so it can be a program name with args.
6417 set dummy ranlib; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   if test -n "$ac_ct_RANLIB"; then
6424   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431     for ac_exec_ext in '' $ac_executable_extensions; do
6432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433     ac_cv_prog_ac_ct_RANLIB="ranlib"
6434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438   done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6444 if test -n "$ac_ct_RANLIB"; then
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6446 $as_echo "$ac_ct_RANLIB" >&6; }
6447 else
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452   if test "x$ac_ct_RANLIB" = x; then
6453     RANLIB=":"
6454   else
6455     case $cross_compiling:$ac_tool_warned in
6456 yes:)
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461     RANLIB=$ac_ct_RANLIB
6462   fi
6463 else
6464   RANLIB="$ac_cv_prog_RANLIB"
6465 fi
6466
6467 test -z "$RANLIB" && RANLIB=:
6468
6469
6470
6471
6472
6473
6474 # Determine commands to create old-style static archives.
6475 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6476 old_postinstall_cmds='chmod 644 $oldlib'
6477 old_postuninstall_cmds=
6478
6479 if test -n "$RANLIB"; then
6480   case $host_os in
6481   openbsd*)
6482     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6483     ;;
6484   *)
6485     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6486     ;;
6487   esac
6488   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6489 fi
6490
6491 case $host_os in
6492   darwin*)
6493     lock_old_archive_extraction=yes ;;
6494   *)
6495     lock_old_archive_extraction=no ;;
6496 esac
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
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 # If no C compiler was specified, use CC.
6537 LTCC=${LTCC-"$CC"}
6538
6539 # If no C compiler flags were specified, use CFLAGS.
6540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6541
6542 # Allow CC to be a program name with arguments.
6543 compiler=$CC
6544
6545
6546 # Check for command to grab the raw symbol name followed by C symbol from nm.
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6548 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6549 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552
6553 # These are sane defaults that work on at least a few old systems.
6554 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6555
6556 # Character class describing NM global symbol codes.
6557 symcode='[BCDEGRST]'
6558
6559 # Regexp to match symbols that can be accessed directly from C.
6560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6561
6562 # Define system-specific variables.
6563 case $host_os in
6564 aix*)
6565   symcode='[BCDT]'
6566   ;;
6567 cygwin* | mingw* | pw32* | cegcc*)
6568   symcode='[ABCDGISTW]'
6569   ;;
6570 hpux*)
6571   if test "$host_cpu" = ia64; then
6572     symcode='[ABCDEGRST]'
6573   fi
6574   ;;
6575 irix* | nonstopux*)
6576   symcode='[BCDEGRST]'
6577   ;;
6578 osf*)
6579   symcode='[BCDEGQRST]'
6580   ;;
6581 solaris*)
6582   symcode='[BDRT]'
6583   ;;
6584 sco3.2v5*)
6585   symcode='[DT]'
6586   ;;
6587 sysv4.2uw2*)
6588   symcode='[DT]'
6589   ;;
6590 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6591   symcode='[ABDT]'
6592   ;;
6593 sysv4)
6594   symcode='[DFNSTU]'
6595   ;;
6596 esac
6597
6598 # If we're using GNU nm, then use its standard symbol codes.
6599 case `$NM -V 2>&1` in
6600 *GNU* | *'with BFD'*)
6601   symcode='[ABCDGIRSTW]' ;;
6602 esac
6603
6604 # Transform an extracted symbol line into a proper C declaration.
6605 # Some systems (esp. on ia64) link data and code symbols differently,
6606 # so use this general approach.
6607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6608
6609 # Transform an extracted symbol line into symbol name and symbol address
6610 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6611 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'"
6612
6613 # Handle CRLF in mingw tool chain
6614 opt_cr=
6615 case $build_os in
6616 mingw*)
6617   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6618   ;;
6619 esac
6620
6621 # Try without a prefix underscore, then with it.
6622 for ac_symprfx in "" "_"; do
6623
6624   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6625   symxfrm="\\1 $ac_symprfx\\2 \\2"
6626
6627   # Write the raw and C identifiers.
6628   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6629     # Fake it for dumpbin and say T for any non-static function
6630     # and D for any global variable.
6631     # Also find C++ and __fastcall symbols from MSVC++,
6632     # which start with @ or ?.
6633     lt_cv_sys_global_symbol_pipe="$AWK '"\
6634 "     {last_section=section; section=\$ 3};"\
6635 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6636 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6637 "     \$ 0!~/External *\|/{next};"\
6638 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6639 "     {if(hide[section]) next};"\
6640 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6641 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6642 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6643 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6644 "     ' prfx=^$ac_symprfx"
6645   else
6646     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6647   fi
6648   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6649
6650   # Check to see that the pipe works correctly.
6651   pipe_works=no
6652
6653   rm -f conftest*
6654   cat > conftest.$ac_ext <<_LT_EOF
6655 #ifdef __cplusplus
6656 extern "C" {
6657 #endif
6658 char nm_test_var;
6659 void nm_test_func(void);
6660 void nm_test_func(void){}
6661 #ifdef __cplusplus
6662 }
6663 #endif
6664 int main(){nm_test_var='a';nm_test_func();return(0);}
6665 _LT_EOF
6666
6667   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6668   (eval $ac_compile) 2>&5
6669   ac_status=$?
6670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671   test $ac_status = 0; }; then
6672     # Now try to grab the symbols.
6673     nlist=conftest.nm
6674     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6675   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6676   ac_status=$?
6677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6678   test $ac_status = 0; } && test -s "$nlist"; then
6679       # Try sorting and uniquifying the output.
6680       if sort "$nlist" | uniq > "$nlist"T; then
6681         mv -f "$nlist"T "$nlist"
6682       else
6683         rm -f "$nlist"T
6684       fi
6685
6686       # Make sure that we snagged all the symbols we need.
6687       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6688         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6689           cat <<_LT_EOF > conftest.$ac_ext
6690 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6691 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6692 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6693    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6694 # define LT_DLSYM_CONST
6695 #elif defined(__osf__)
6696 /* This system does not cope well with relocations in const data.  */
6697 # define LT_DLSYM_CONST
6698 #else
6699 # define LT_DLSYM_CONST const
6700 #endif
6701
6702 #ifdef __cplusplus
6703 extern "C" {
6704 #endif
6705
6706 _LT_EOF
6707           # Now generate the symbol file.
6708           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6709
6710           cat <<_LT_EOF >> conftest.$ac_ext
6711
6712 /* The mapping between symbol names and symbols.  */
6713 LT_DLSYM_CONST struct {
6714   const char *name;
6715   void       *address;
6716 }
6717 lt__PROGRAM__LTX_preloaded_symbols[] =
6718 {
6719   { "@PROGRAM@", (void *) 0 },
6720 _LT_EOF
6721           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6722           cat <<\_LT_EOF >> conftest.$ac_ext
6723   {0, (void *) 0}
6724 };
6725
6726 /* This works around a problem in FreeBSD linker */
6727 #ifdef FREEBSD_WORKAROUND
6728 static const void *lt_preloaded_setup() {
6729   return lt__PROGRAM__LTX_preloaded_symbols;
6730 }
6731 #endif
6732
6733 #ifdef __cplusplus
6734 }
6735 #endif
6736 _LT_EOF
6737           # Now try linking the two files.
6738           mv conftest.$ac_objext conftstm.$ac_objext
6739           lt_globsym_save_LIBS=$LIBS
6740           lt_globsym_save_CFLAGS=$CFLAGS
6741           LIBS="conftstm.$ac_objext"
6742           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6743           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6744   (eval $ac_link) 2>&5
6745   ac_status=$?
6746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6748             pipe_works=yes
6749           fi
6750           LIBS=$lt_globsym_save_LIBS
6751           CFLAGS=$lt_globsym_save_CFLAGS
6752         else
6753           echo "cannot find nm_test_func in $nlist" >&5
6754         fi
6755       else
6756         echo "cannot find nm_test_var in $nlist" >&5
6757       fi
6758     else
6759       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6760     fi
6761   else
6762     echo "$progname: failed program was:" >&5
6763     cat conftest.$ac_ext >&5
6764   fi
6765   rm -rf conftest* conftst*
6766
6767   # Do not use the global_symbol_pipe unless it works.
6768   if test "$pipe_works" = yes; then
6769     break
6770   else
6771     lt_cv_sys_global_symbol_pipe=
6772   fi
6773 done
6774
6775 fi
6776
6777 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6778   lt_cv_sys_global_symbol_to_cdecl=
6779 fi
6780 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6782 $as_echo "failed" >&6; }
6783 else
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6785 $as_echo "ok" >&6; }
6786 fi
6787
6788 # Response file support.
6789 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6790   nm_file_list_spec='@'
6791 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6792   nm_file_list_spec='@'
6793 fi
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6822 $as_echo_n "checking for sysroot... " >&6; }
6823
6824 # Check whether --with-sysroot was given.
6825 if test "${with_sysroot+set}" = set; then :
6826   withval=$with_sysroot;
6827 else
6828   with_sysroot=no
6829 fi
6830
6831
6832 lt_sysroot=
6833 case ${with_sysroot} in #(
6834  yes)
6835    if test "$GCC" = yes; then
6836      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6837    fi
6838    ;; #(
6839  /*)
6840    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6841    ;; #(
6842  no|'')
6843    ;; #(
6844  *)
6845    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6846 $as_echo "${with_sysroot}" >&6; }
6847    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6848    ;;
6849 esac
6850
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6852 $as_echo "${lt_sysroot:-no}" >&6; }
6853
6854
6855
6856
6857
6858 # Check whether --enable-libtool-lock was given.
6859 if test "${enable_libtool_lock+set}" = set; then :
6860   enableval=$enable_libtool_lock;
6861 fi
6862
6863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6864
6865 # Some flags need to be propagated to the compiler or linker for good
6866 # libtool support.
6867 case $host in
6868 ia64-*-hpux*)
6869   # Find out which ABI we are using.
6870   echo 'int i;' > conftest.$ac_ext
6871   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872   (eval $ac_compile) 2>&5
6873   ac_status=$?
6874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875   test $ac_status = 0; }; then
6876     case `/usr/bin/file conftest.$ac_objext` in
6877       *ELF-32*)
6878         HPUX_IA64_MODE="32"
6879         ;;
6880       *ELF-64*)
6881         HPUX_IA64_MODE="64"
6882         ;;
6883     esac
6884   fi
6885   rm -rf conftest*
6886   ;;
6887 *-*-irix6*)
6888   # Find out which ABI we are using.
6889   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6891   (eval $ac_compile) 2>&5
6892   ac_status=$?
6893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894   test $ac_status = 0; }; then
6895     if test "$lt_cv_prog_gnu_ld" = yes; then
6896       case `/usr/bin/file conftest.$ac_objext` in
6897         *32-bit*)
6898           LD="${LD-ld} -melf32bsmip"
6899           ;;
6900         *N32*)
6901           LD="${LD-ld} -melf32bmipn32"
6902           ;;
6903         *64-bit*)
6904           LD="${LD-ld} -melf64bmip"
6905         ;;
6906       esac
6907     else
6908       case `/usr/bin/file conftest.$ac_objext` in
6909         *32-bit*)
6910           LD="${LD-ld} -32"
6911           ;;
6912         *N32*)
6913           LD="${LD-ld} -n32"
6914           ;;
6915         *64-bit*)
6916           LD="${LD-ld} -64"
6917           ;;
6918       esac
6919     fi
6920   fi
6921   rm -rf conftest*
6922   ;;
6923
6924 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6925 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6926   # Find out which ABI we are using.
6927   echo 'int i;' > conftest.$ac_ext
6928   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929   (eval $ac_compile) 2>&5
6930   ac_status=$?
6931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932   test $ac_status = 0; }; then
6933     case `/usr/bin/file conftest.o` in
6934       *32-bit*)
6935         case $host in
6936           x86_64-*kfreebsd*-gnu)
6937             LD="${LD-ld} -m elf_i386_fbsd"
6938             ;;
6939           x86_64-*linux*)
6940             LD="${LD-ld} -m elf_i386"
6941             ;;
6942           ppc64-*linux*|powerpc64-*linux*)
6943             LD="${LD-ld} -m elf32ppclinux"
6944             ;;
6945           s390x-*linux*)
6946             LD="${LD-ld} -m elf_s390"
6947             ;;
6948           sparc64-*linux*)
6949             LD="${LD-ld} -m elf32_sparc"
6950             ;;
6951         esac
6952         ;;
6953       *64-bit*)
6954         case $host in
6955           x86_64-*kfreebsd*-gnu)
6956             LD="${LD-ld} -m elf_x86_64_fbsd"
6957             ;;
6958           x86_64-*linux*)
6959             LD="${LD-ld} -m elf_x86_64"
6960             ;;
6961           ppc*-*linux*|powerpc*-*linux*)
6962             LD="${LD-ld} -m elf64ppc"
6963             ;;
6964           s390*-*linux*|s390*-*tpf*)
6965             LD="${LD-ld} -m elf64_s390"
6966             ;;
6967           sparc*-*linux*)
6968             LD="${LD-ld} -m elf64_sparc"
6969             ;;
6970         esac
6971         ;;
6972     esac
6973   fi
6974   rm -rf conftest*
6975   ;;
6976
6977 *-*-sco3.2v5*)
6978   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6979   SAVE_CFLAGS="$CFLAGS"
6980   CFLAGS="$CFLAGS -belf"
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6982 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6983 if ${lt_cv_cc_needs_belf+:} false; then :
6984   $as_echo_n "(cached) " >&6
6985 else
6986   ac_ext=c
6987 ac_cpp='$CPP $CPPFLAGS'
6988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6991
6992      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h.  */
6994
6995 int
6996 main ()
6997 {
6998
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 if ac_fn_c_try_link "$LINENO"; then :
7004   lt_cv_cc_needs_belf=yes
7005 else
7006   lt_cv_cc_needs_belf=no
7007 fi
7008 rm -f core conftest.err conftest.$ac_objext \
7009     conftest$ac_exeext conftest.$ac_ext
7010      ac_ext=c
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015
7016 fi
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7018 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7019   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7020     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7021     CFLAGS="$SAVE_CFLAGS"
7022   fi
7023   ;;
7024 *-*solaris*)
7025   # Find out which ABI we are using.
7026   echo 'int i;' > conftest.$ac_ext
7027   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7028   (eval $ac_compile) 2>&5
7029   ac_status=$?
7030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7031   test $ac_status = 0; }; then
7032     case `/usr/bin/file conftest.o` in
7033     *64-bit*)
7034       case $lt_cv_prog_gnu_ld in
7035       yes*)
7036         case $host in
7037         i?86-*-solaris*)
7038           LD="${LD-ld} -m elf_x86_64"
7039           ;;
7040         sparc*-*-solaris*)
7041           LD="${LD-ld} -m elf64_sparc"
7042           ;;
7043         esac
7044         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7045         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7046           LD="${LD-ld}_sol2"
7047         fi
7048         ;;
7049       *)
7050         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7051           LD="${LD-ld} -64"
7052         fi
7053         ;;
7054       esac
7055       ;;
7056     esac
7057   fi
7058   rm -rf conftest*
7059   ;;
7060 esac
7061
7062 need_locks="$enable_libtool_lock"
7063
7064 if test -n "$ac_tool_prefix"; then
7065   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}mt; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   if test -n "$MANIFEST_TOOL"; then
7073   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080     for ac_exec_ext in '' $ac_executable_extensions; do
7081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087   done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7093 if test -n "$MANIFEST_TOOL"; then
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7095 $as_echo "$MANIFEST_TOOL" >&6; }
7096 else
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101
7102 fi
7103 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7104   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7105   # Extract the first word of "mt", so it can be a program name with args.
7106 set dummy mt; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7110   $as_echo_n "(cached) " >&6
7111 else
7112   if test -n "$ac_ct_MANIFEST_TOOL"; then
7113   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120     for ac_exec_ext in '' $ac_executable_extensions; do
7121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127   done
7128 IFS=$as_save_IFS
7129
7130 fi
7131 fi
7132 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7133 if test -n "$ac_ct_MANIFEST_TOOL"; then
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7135 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7136 else
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 fi
7140
7141   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7142     MANIFEST_TOOL=":"
7143   else
7144     case $cross_compiling:$ac_tool_warned in
7145 yes:)
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7149 esac
7150     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7151   fi
7152 else
7153   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7154 fi
7155
7156 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7158 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7159 if ${lt_cv_path_mainfest_tool+:} false; then :
7160   $as_echo_n "(cached) " >&6
7161 else
7162   lt_cv_path_mainfest_tool=no
7163   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7164   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7165   cat conftest.err >&5
7166   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7167     lt_cv_path_mainfest_tool=yes
7168   fi
7169   rm -f conftest*
7170 fi
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7172 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7173 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7174   MANIFEST_TOOL=:
7175 fi
7176
7177
7178
7179
7180
7181
7182   case $host_os in
7183     rhapsody* | darwin*)
7184     if test -n "$ac_tool_prefix"; then
7185   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   if test -n "$DSYMUTIL"; then
7193   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200     for ac_exec_ext in '' $ac_executable_extensions; do
7201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207   done
7208 IFS=$as_save_IFS
7209
7210 fi
7211 fi
7212 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7213 if test -n "$DSYMUTIL"; then
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7215 $as_echo "$DSYMUTIL" >&6; }
7216 else
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220
7221
7222 fi
7223 if test -z "$ac_cv_prog_DSYMUTIL"; then
7224   ac_ct_DSYMUTIL=$DSYMUTIL
7225   # Extract the first word of "dsymutil", so it can be a program name with args.
7226 set dummy dsymutil; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232   if test -n "$ac_ct_DSYMUTIL"; then
7233   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240     for ac_exec_ext in '' $ac_executable_extensions; do
7241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247   done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7253 if test -n "$ac_ct_DSYMUTIL"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7255 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261   if test "x$ac_ct_DSYMUTIL" = x; then
7262     DSYMUTIL=":"
7263   else
7264     case $cross_compiling:$ac_tool_warned in
7265 yes:)
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7269 esac
7270     DSYMUTIL=$ac_ct_DSYMUTIL
7271   fi
7272 else
7273   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7274 fi
7275
7276     if test -n "$ac_tool_prefix"; then
7277   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_prog_NMEDIT+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   if test -n "$NMEDIT"; then
7285   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290   IFS=$as_save_IFS
7291   test -z "$as_dir" && as_dir=.
7292     for ac_exec_ext in '' $ac_executable_extensions; do
7293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296     break 2
7297   fi
7298 done
7299   done
7300 IFS=$as_save_IFS
7301
7302 fi
7303 fi
7304 NMEDIT=$ac_cv_prog_NMEDIT
7305 if test -n "$NMEDIT"; then
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7307 $as_echo "$NMEDIT" >&6; }
7308 else
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7311 fi
7312
7313
7314 fi
7315 if test -z "$ac_cv_prog_NMEDIT"; then
7316   ac_ct_NMEDIT=$NMEDIT
7317   # Extract the first word of "nmedit", so it can be a program name with args.
7318 set dummy nmedit; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7322   $as_echo_n "(cached) " >&6
7323 else
7324   if test -n "$ac_ct_NMEDIT"; then
7325   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332     for ac_exec_ext in '' $ac_executable_extensions; do
7333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336     break 2
7337   fi
7338 done
7339   done
7340 IFS=$as_save_IFS
7341
7342 fi
7343 fi
7344 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7345 if test -n "$ac_ct_NMEDIT"; then
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7347 $as_echo "$ac_ct_NMEDIT" >&6; }
7348 else
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353   if test "x$ac_ct_NMEDIT" = x; then
7354     NMEDIT=":"
7355   else
7356     case $cross_compiling:$ac_tool_warned in
7357 yes:)
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7361 esac
7362     NMEDIT=$ac_ct_NMEDIT
7363   fi
7364 else
7365   NMEDIT="$ac_cv_prog_NMEDIT"
7366 fi
7367
7368     if test -n "$ac_tool_prefix"; then
7369   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_prog_LIPO+:} false; then :
7374   $as_echo_n "(cached) " >&6
7375 else
7376   if test -n "$LIPO"; then
7377   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382   IFS=$as_save_IFS
7383   test -z "$as_dir" && as_dir=.
7384     for ac_exec_ext in '' $ac_executable_extensions; do
7385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389   fi
7390 done
7391   done
7392 IFS=$as_save_IFS
7393
7394 fi
7395 fi
7396 LIPO=$ac_cv_prog_LIPO
7397 if test -n "$LIPO"; then
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7399 $as_echo "$LIPO" >&6; }
7400 else
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405
7406 fi
7407 if test -z "$ac_cv_prog_LIPO"; then
7408   ac_ct_LIPO=$LIPO
7409   # Extract the first word of "lipo", so it can be a program name with args.
7410 set dummy lipo; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7414   $as_echo_n "(cached) " >&6
7415 else
7416   if test -n "$ac_ct_LIPO"; then
7417   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424     for ac_exec_ext in '' $ac_executable_extensions; do
7425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426     ac_cv_prog_ac_ct_LIPO="lipo"
7427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431   done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7437 if test -n "$ac_ct_LIPO"; then
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7439 $as_echo "$ac_ct_LIPO" >&6; }
7440 else
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445   if test "x$ac_ct_LIPO" = x; then
7446     LIPO=":"
7447   else
7448     case $cross_compiling:$ac_tool_warned in
7449 yes:)
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452 ac_tool_warned=yes ;;
7453 esac
7454     LIPO=$ac_ct_LIPO
7455   fi
7456 else
7457   LIPO="$ac_cv_prog_LIPO"
7458 fi
7459
7460     if test -n "$ac_tool_prefix"; then
7461   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}otool; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_prog_OTOOL+:} false; then :
7466   $as_echo_n "(cached) " >&6
7467 else
7468   if test -n "$OTOOL"; then
7469   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7470 else
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474   IFS=$as_save_IFS
7475   test -z "$as_dir" && as_dir=.
7476     for ac_exec_ext in '' $ac_executable_extensions; do
7477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480     break 2
7481   fi
7482 done
7483   done
7484 IFS=$as_save_IFS
7485
7486 fi
7487 fi
7488 OTOOL=$ac_cv_prog_OTOOL
7489 if test -n "$OTOOL"; then
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7491 $as_echo "$OTOOL" >&6; }
7492 else
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7495 fi
7496
7497
7498 fi
7499 if test -z "$ac_cv_prog_OTOOL"; then
7500   ac_ct_OTOOL=$OTOOL
7501   # Extract the first word of "otool", so it can be a program name with args.
7502 set dummy otool; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   if test -n "$ac_ct_OTOOL"; then
7509   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516     for ac_exec_ext in '' $ac_executable_extensions; do
7517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518     ac_cv_prog_ac_ct_OTOOL="otool"
7519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523   done
7524 IFS=$as_save_IFS
7525
7526 fi
7527 fi
7528 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7529 if test -n "$ac_ct_OTOOL"; then
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7531 $as_echo "$ac_ct_OTOOL" >&6; }
7532 else
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7535 fi
7536
7537   if test "x$ac_ct_OTOOL" = x; then
7538     OTOOL=":"
7539   else
7540     case $cross_compiling:$ac_tool_warned in
7541 yes:)
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 ac_tool_warned=yes ;;
7545 esac
7546     OTOOL=$ac_ct_OTOOL
7547   fi
7548 else
7549   OTOOL="$ac_cv_prog_OTOOL"
7550 fi
7551
7552     if test -n "$ac_tool_prefix"; then
7553   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_prog_OTOOL64+:} false; then :
7558   $as_echo_n "(cached) " >&6
7559 else
7560   if test -n "$OTOOL64"; then
7561   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568     for ac_exec_ext in '' $ac_executable_extensions; do
7569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575   done
7576 IFS=$as_save_IFS
7577
7578 fi
7579 fi
7580 OTOOL64=$ac_cv_prog_OTOOL64
7581 if test -n "$OTOOL64"; then
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7583 $as_echo "$OTOOL64" >&6; }
7584 else
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587 fi
7588
7589
7590 fi
7591 if test -z "$ac_cv_prog_OTOOL64"; then
7592   ac_ct_OTOOL64=$OTOOL64
7593   # Extract the first word of "otool64", so it can be a program name with args.
7594 set dummy otool64; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7598   $as_echo_n "(cached) " >&6
7599 else
7600   if test -n "$ac_ct_OTOOL64"; then
7601   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608     for ac_exec_ext in '' $ac_executable_extensions; do
7609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610     ac_cv_prog_ac_ct_OTOOL64="otool64"
7611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615   done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7621 if test -n "$ac_ct_OTOOL64"; then
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7623 $as_echo "$ac_ct_OTOOL64" >&6; }
7624 else
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629   if test "x$ac_ct_OTOOL64" = x; then
7630     OTOOL64=":"
7631   else
7632     case $cross_compiling:$ac_tool_warned in
7633 yes:)
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638     OTOOL64=$ac_ct_OTOOL64
7639   fi
7640 else
7641   OTOOL64="$ac_cv_prog_OTOOL64"
7642 fi
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7671 $as_echo_n "checking for -single_module linker flag... " >&6; }
7672 if ${lt_cv_apple_cc_single_mod+:} false; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   lt_cv_apple_cc_single_mod=no
7676       if test -z "${LT_MULTI_MODULE}"; then
7677         # By default we will add the -single_module flag. You can override
7678         # by either setting the environment variable LT_MULTI_MODULE
7679         # non-empty at configure time, or by adding -multi_module to the
7680         # link flags.
7681         rm -rf libconftest.dylib*
7682         echo "int foo(void){return 1;}" > conftest.c
7683         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684 -dynamiclib -Wl,-single_module conftest.c" >&5
7685         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7686           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7687         _lt_result=$?
7688         # If there is a non-empty error log, and "single_module"
7689         # appears in it, assume the flag caused a linker warning
7690         if test -s conftest.err && $GREP single_module conftest.err; then
7691           cat conftest.err >&5
7692         # Otherwise, if the output was created with a 0 exit code from
7693         # the compiler, it worked.
7694         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7695           lt_cv_apple_cc_single_mod=yes
7696         else
7697           cat conftest.err >&5
7698         fi
7699         rm -rf libconftest.dylib*
7700         rm -f conftest.*
7701       fi
7702 fi
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7704 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7705
7706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7707 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7708 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   lt_cv_ld_exported_symbols_list=no
7712       save_LDFLAGS=$LDFLAGS
7713       echo "_main" > conftest.sym
7714       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7715       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h.  */
7717
7718 int
7719 main ()
7720 {
7721
7722   ;
7723   return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_c_try_link "$LINENO"; then :
7727   lt_cv_ld_exported_symbols_list=yes
7728 else
7729   lt_cv_ld_exported_symbols_list=no
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext \
7732     conftest$ac_exeext conftest.$ac_ext
7733         LDFLAGS="$save_LDFLAGS"
7734
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7737 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7738
7739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7740 $as_echo_n "checking for -force_load linker flag... " >&6; }
7741 if ${lt_cv_ld_force_load+:} false; then :
7742   $as_echo_n "(cached) " >&6
7743 else
7744   lt_cv_ld_force_load=no
7745       cat > conftest.c << _LT_EOF
7746 int forced_loaded() { return 2;}
7747 _LT_EOF
7748       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7749       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7750       echo "$AR cru libconftest.a conftest.o" >&5
7751       $AR cru libconftest.a conftest.o 2>&5
7752       echo "$RANLIB libconftest.a" >&5
7753       $RANLIB libconftest.a 2>&5
7754       cat > conftest.c << _LT_EOF
7755 int main() { return 0;}
7756 _LT_EOF
7757       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7758       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7759       _lt_result=$?
7760       if test -s conftest.err && $GREP force_load conftest.err; then
7761         cat conftest.err >&5
7762       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7763         lt_cv_ld_force_load=yes
7764       else
7765         cat conftest.err >&5
7766       fi
7767         rm -f conftest.err libconftest.a conftest conftest.c
7768         rm -rf conftest.dSYM
7769
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7772 $as_echo "$lt_cv_ld_force_load" >&6; }
7773     case $host_os in
7774     rhapsody* | darwin1.[012])
7775       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7776     darwin1.*)
7777       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7778     darwin*) # darwin 5.x on
7779       # if running on 10.5 or later, the deployment target defaults
7780       # to the OS version, if on x86, and 10.4, the deployment
7781       # target defaults to 10.4. Don't you love it?
7782       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7783         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7784           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7785         10.[012]*)
7786           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7787         10.*)
7788           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7789       esac
7790     ;;
7791   esac
7792     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7793       _lt_dar_single_mod='$single_module'
7794     fi
7795     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7796       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7797     else
7798       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7799     fi
7800     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7801       _lt_dsymutil='~$DSYMUTIL $lib || :'
7802     else
7803       _lt_dsymutil=
7804     fi
7805     ;;
7806   esac
7807
7808 ac_ext=c
7809 ac_cpp='$CPP $CPPFLAGS'
7810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7815 # On Suns, sometimes $CPP names a directory.
7816 if test -n "$CPP" && test -d "$CPP"; then
7817   CPP=
7818 fi
7819 if test -z "$CPP"; then
7820   if ${ac_cv_prog_CPP+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823       # Double quotes because CPP needs to be expanded
7824     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7825     do
7826       ac_preproc_ok=false
7827 for ac_c_preproc_warn_flag in '' yes
7828 do
7829   # Use a header file that comes with gcc, so configuring glibc
7830   # with a fresh cross-compiler works.
7831   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7832   # <limits.h> exists even on freestanding compilers.
7833   # On the NeXT, cc -E runs the code through the compiler's parser,
7834   # not just through cpp. "Syntax error" is here to catch this case.
7835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h.  */
7837 #ifdef __STDC__
7838 # include <limits.h>
7839 #else
7840 # include <assert.h>
7841 #endif
7842                      Syntax error
7843 _ACEOF
7844 if ac_fn_c_try_cpp "$LINENO"; then :
7845
7846 else
7847   # Broken: fails on valid input.
7848 continue
7849 fi
7850 rm -f conftest.err conftest.i conftest.$ac_ext
7851
7852   # OK, works on sane cases.  Now check whether nonexistent headers
7853   # can be detected and how.
7854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h.  */
7856 #include <ac_nonexistent.h>
7857 _ACEOF
7858 if ac_fn_c_try_cpp "$LINENO"; then :
7859   # Broken: success on invalid input.
7860 continue
7861 else
7862   # Passes both tests.
7863 ac_preproc_ok=:
7864 break
7865 fi
7866 rm -f conftest.err conftest.i conftest.$ac_ext
7867
7868 done
7869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7870 rm -f conftest.i conftest.err conftest.$ac_ext
7871 if $ac_preproc_ok; then :
7872   break
7873 fi
7874
7875     done
7876     ac_cv_prog_CPP=$CPP
7877
7878 fi
7879   CPP=$ac_cv_prog_CPP
7880 else
7881   ac_cv_prog_CPP=$CPP
7882 fi
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7884 $as_echo "$CPP" >&6; }
7885 ac_preproc_ok=false
7886 for ac_c_preproc_warn_flag in '' yes
7887 do
7888   # Use a header file that comes with gcc, so configuring glibc
7889   # with a fresh cross-compiler works.
7890   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7891   # <limits.h> exists even on freestanding compilers.
7892   # On the NeXT, cc -E runs the code through the compiler's parser,
7893   # not just through cpp. "Syntax error" is here to catch this case.
7894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h.  */
7896 #ifdef __STDC__
7897 # include <limits.h>
7898 #else
7899 # include <assert.h>
7900 #endif
7901                      Syntax error
7902 _ACEOF
7903 if ac_fn_c_try_cpp "$LINENO"; then :
7904
7905 else
7906   # Broken: fails on valid input.
7907 continue
7908 fi
7909 rm -f conftest.err conftest.i conftest.$ac_ext
7910
7911   # OK, works on sane cases.  Now check whether nonexistent headers
7912   # can be detected and how.
7913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h.  */
7915 #include <ac_nonexistent.h>
7916 _ACEOF
7917 if ac_fn_c_try_cpp "$LINENO"; then :
7918   # Broken: success on invalid input.
7919 continue
7920 else
7921   # Passes both tests.
7922 ac_preproc_ok=:
7923 break
7924 fi
7925 rm -f conftest.err conftest.i conftest.$ac_ext
7926
7927 done
7928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7929 rm -f conftest.i conftest.err conftest.$ac_ext
7930 if $ac_preproc_ok; then :
7931
7932 else
7933   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7935 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7936 See \`config.log' for more details" "$LINENO" 5; }
7937 fi
7938
7939 ac_ext=c
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7947 $as_echo_n "checking for ANSI C header files... " >&6; }
7948 if ${ac_cv_header_stdc+:} false; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h.  */
7953 #include <stdlib.h>
7954 #include <stdarg.h>
7955 #include <string.h>
7956 #include <float.h>
7957
7958 int
7959 main ()
7960 {
7961
7962   ;
7963   return 0;
7964 }
7965 _ACEOF
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967   ac_cv_header_stdc=yes
7968 else
7969   ac_cv_header_stdc=no
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972
7973 if test $ac_cv_header_stdc = yes; then
7974   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h.  */
7977 #include <string.h>
7978
7979 _ACEOF
7980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7981   $EGREP "memchr" >/dev/null 2>&1; then :
7982
7983 else
7984   ac_cv_header_stdc=no
7985 fi
7986 rm -f conftest*
7987
7988 fi
7989
7990 if test $ac_cv_header_stdc = yes; then
7991   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h.  */
7994 #include <stdlib.h>
7995
7996 _ACEOF
7997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7998   $EGREP "free" >/dev/null 2>&1; then :
7999
8000 else
8001   ac_cv_header_stdc=no
8002 fi
8003 rm -f conftest*
8004
8005 fi
8006
8007 if test $ac_cv_header_stdc = yes; then
8008   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8009   if test "$cross_compiling" = yes; then :
8010   :
8011 else
8012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h.  */
8014 #include <ctype.h>
8015 #include <stdlib.h>
8016 #if ((' ' & 0x0FF) == 0x020)
8017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8019 #else
8020 # define ISLOWER(c) \
8021                    (('a' <= (c) && (c) <= 'i') \
8022                      || ('j' <= (c) && (c) <= 'r') \
8023                      || ('s' <= (c) && (c) <= 'z'))
8024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8025 #endif
8026
8027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8028 int
8029 main ()
8030 {
8031   int i;
8032   for (i = 0; i < 256; i++)
8033     if (XOR (islower (i), ISLOWER (i))
8034         || toupper (i) != TOUPPER (i))
8035       return 2;
8036   return 0;
8037 }
8038 _ACEOF
8039 if ac_fn_c_try_run "$LINENO"; then :
8040
8041 else
8042   ac_cv_header_stdc=no
8043 fi
8044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8045   conftest.$ac_objext conftest.beam conftest.$ac_ext
8046 fi
8047
8048 fi
8049 fi
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8051 $as_echo "$ac_cv_header_stdc" >&6; }
8052 if test $ac_cv_header_stdc = yes; then
8053
8054 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8055
8056 fi
8057
8058 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8060                   inttypes.h stdint.h unistd.h
8061 do :
8062   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8063 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8064 "
8065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8066   cat >>confdefs.h <<_ACEOF
8067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8068 _ACEOF
8069
8070 fi
8071
8072 done
8073
8074
8075 for ac_header in dlfcn.h
8076 do :
8077   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8078 "
8079 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8080   cat >>confdefs.h <<_ACEOF
8081 #define HAVE_DLFCN_H 1
8082 _ACEOF
8083
8084 fi
8085
8086 done
8087
8088
8089
8090
8091
8092 # Set options
8093
8094
8095
8096         enable_dlopen=no
8097
8098
8099   enable_win32_dll=no
8100
8101
8102             # Check whether --enable-shared was given.
8103 if test "${enable_shared+set}" = set; then :
8104   enableval=$enable_shared; p=${PACKAGE-default}
8105     case $enableval in
8106     yes) enable_shared=yes ;;
8107     no) enable_shared=no ;;
8108     *)
8109       enable_shared=no
8110       # Look at the argument we got.  We use all the common list separators.
8111       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8112       for pkg in $enableval; do
8113         IFS="$lt_save_ifs"
8114         if test "X$pkg" = "X$p"; then
8115           enable_shared=yes
8116         fi
8117       done
8118       IFS="$lt_save_ifs"
8119       ;;
8120     esac
8121 else
8122   enable_shared=yes
8123 fi
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133   # Check whether --enable-static was given.
8134 if test "${enable_static+set}" = set; then :
8135   enableval=$enable_static; p=${PACKAGE-default}
8136     case $enableval in
8137     yes) enable_static=yes ;;
8138     no) enable_static=no ;;
8139     *)
8140      enable_static=no
8141       # Look at the argument we got.  We use all the common list separators.
8142       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8143       for pkg in $enableval; do
8144         IFS="$lt_save_ifs"
8145         if test "X$pkg" = "X$p"; then
8146           enable_static=yes
8147         fi
8148       done
8149       IFS="$lt_save_ifs"
8150       ;;
8151     esac
8152 else
8153   enable_static=yes
8154 fi
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165 # Check whether --with-pic was given.
8166 if test "${with_pic+set}" = set; then :
8167   withval=$with_pic; lt_p=${PACKAGE-default}
8168     case $withval in
8169     yes|no) pic_mode=$withval ;;
8170     *)
8171       pic_mode=default
8172       # Look at the argument we got.  We use all the common list separators.
8173       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8174       for lt_pkg in $withval; do
8175         IFS="$lt_save_ifs"
8176         if test "X$lt_pkg" = "X$lt_p"; then
8177           pic_mode=yes
8178         fi
8179       done
8180       IFS="$lt_save_ifs"
8181       ;;
8182     esac
8183 else
8184   pic_mode=default
8185 fi
8186
8187
8188 test -z "$pic_mode" && pic_mode=default
8189
8190
8191
8192
8193
8194
8195
8196   # Check whether --enable-fast-install was given.
8197 if test "${enable_fast_install+set}" = set; then :
8198   enableval=$enable_fast_install; p=${PACKAGE-default}
8199     case $enableval in
8200     yes) enable_fast_install=yes ;;
8201     no) enable_fast_install=no ;;
8202     *)
8203       enable_fast_install=no
8204       # Look at the argument we got.  We use all the common list separators.
8205       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8206       for pkg in $enableval; do
8207         IFS="$lt_save_ifs"
8208         if test "X$pkg" = "X$p"; then
8209           enable_fast_install=yes
8210         fi
8211       done
8212       IFS="$lt_save_ifs"
8213       ;;
8214     esac
8215 else
8216   enable_fast_install=yes
8217 fi
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229 # This can be used to rebuild libtool when needed
8230 LIBTOOL_DEPS="$ltmain"
8231
8232 # Always use our own libtool.
8233 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264 test -z "$LN_S" && LN_S="ln -s"
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279 if test -n "${ZSH_VERSION+set}" ; then
8280    setopt NO_GLOB_SUBST
8281 fi
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8284 $as_echo_n "checking for objdir... " >&6; }
8285 if ${lt_cv_objdir+:} false; then :
8286   $as_echo_n "(cached) " >&6
8287 else
8288   rm -f .libs 2>/dev/null
8289 mkdir .libs 2>/dev/null
8290 if test -d .libs; then
8291   lt_cv_objdir=.libs
8292 else
8293   # MS-DOS does not allow filenames that begin with a dot.
8294   lt_cv_objdir=_libs
8295 fi
8296 rmdir .libs 2>/dev/null
8297 fi
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8299 $as_echo "$lt_cv_objdir" >&6; }
8300 objdir=$lt_cv_objdir
8301
8302
8303
8304
8305
8306 cat >>confdefs.h <<_ACEOF
8307 #define LT_OBJDIR "$lt_cv_objdir/"
8308 _ACEOF
8309
8310
8311
8312
8313 case $host_os in
8314 aix3*)
8315   # AIX sometimes has problems with the GCC collect2 program.  For some
8316   # reason, if we set the COLLECT_NAMES environment variable, the problems
8317   # vanish in a puff of smoke.
8318   if test "X${COLLECT_NAMES+set}" != Xset; then
8319     COLLECT_NAMES=
8320     export COLLECT_NAMES
8321   fi
8322   ;;
8323 esac
8324
8325 # Global variables:
8326 ofile=libtool
8327 can_build_shared=yes
8328
8329 # All known linkers require a `.a' archive for static linking (except MSVC,
8330 # which needs '.lib').
8331 libext=a
8332
8333 with_gnu_ld="$lt_cv_prog_gnu_ld"
8334
8335 old_CC="$CC"
8336 old_CFLAGS="$CFLAGS"
8337
8338 # Set sane defaults for various variables
8339 test -z "$CC" && CC=cc
8340 test -z "$LTCC" && LTCC=$CC
8341 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8342 test -z "$LD" && LD=ld
8343 test -z "$ac_objext" && ac_objext=o
8344
8345 for cc_temp in $compiler""; do
8346   case $cc_temp in
8347     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8348     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8349     \-*) ;;
8350     *) break;;
8351   esac
8352 done
8353 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8354
8355
8356 # Only perform the check for file, if the check method requires it
8357 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8358 case $deplibs_check_method in
8359 file_magic*)
8360   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8362 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8363 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   case $MAGIC_CMD in
8367 [\\/*] |  ?:[\\/]*)
8368   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8369   ;;
8370 *)
8371   lt_save_MAGIC_CMD="$MAGIC_CMD"
8372   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8373   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8374   for ac_dir in $ac_dummy; do
8375     IFS="$lt_save_ifs"
8376     test -z "$ac_dir" && ac_dir=.
8377     if test -f $ac_dir/${ac_tool_prefix}file; then
8378       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8379       if test -n "$file_magic_test_file"; then
8380         case $deplibs_check_method in
8381         "file_magic "*)
8382           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8383           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8384           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8385             $EGREP "$file_magic_regex" > /dev/null; then
8386             :
8387           else
8388             cat <<_LT_EOF 1>&2
8389
8390 *** Warning: the command libtool uses to detect shared libraries,
8391 *** $file_magic_cmd, produces output that libtool cannot recognize.
8392 *** The result is that libtool may fail to recognize shared libraries
8393 *** as such.  This will affect the creation of libtool libraries that
8394 *** depend on shared libraries, but programs linked with such libtool
8395 *** libraries will work regardless of this problem.  Nevertheless, you
8396 *** may want to report the problem to your system manager and/or to
8397 *** bug-libtool@gnu.org
8398
8399 _LT_EOF
8400           fi ;;
8401         esac
8402       fi
8403       break
8404     fi
8405   done
8406   IFS="$lt_save_ifs"
8407   MAGIC_CMD="$lt_save_MAGIC_CMD"
8408   ;;
8409 esac
8410 fi
8411
8412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8413 if test -n "$MAGIC_CMD"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8415 $as_echo "$MAGIC_CMD" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421
8422
8423
8424
8425 if test -z "$lt_cv_path_MAGIC_CMD"; then
8426   if test -n "$ac_tool_prefix"; then
8427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8428 $as_echo_n "checking for file... " >&6; }
8429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   case $MAGIC_CMD in
8433 [\\/*] |  ?:[\\/]*)
8434   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8435   ;;
8436 *)
8437   lt_save_MAGIC_CMD="$MAGIC_CMD"
8438   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8439   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440   for ac_dir in $ac_dummy; do
8441     IFS="$lt_save_ifs"
8442     test -z "$ac_dir" && ac_dir=.
8443     if test -f $ac_dir/file; then
8444       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8445       if test -n "$file_magic_test_file"; then
8446         case $deplibs_check_method in
8447         "file_magic "*)
8448           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451             $EGREP "$file_magic_regex" > /dev/null; then
8452             :
8453           else
8454             cat <<_LT_EOF 1>&2
8455
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such.  This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem.  Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8464
8465 _LT_EOF
8466           fi ;;
8467         esac
8468       fi
8469       break
8470     fi
8471   done
8472   IFS="$lt_save_ifs"
8473   MAGIC_CMD="$lt_save_MAGIC_CMD"
8474   ;;
8475 esac
8476 fi
8477
8478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8479 if test -n "$MAGIC_CMD"; then
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8482 else
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487
8488   else
8489     MAGIC_CMD=:
8490   fi
8491 fi
8492
8493   fi
8494   ;;
8495 esac
8496
8497 # Use C for the default configuration in the libtool script
8498
8499 lt_save_CC="$CC"
8500 ac_ext=c
8501 ac_cpp='$CPP $CPPFLAGS'
8502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8505
8506
8507 # Source file extension for C test sources.
8508 ac_ext=c
8509
8510 # Object file extension for compiled C test sources.
8511 objext=o
8512 objext=$objext
8513
8514 # Code to be used in simple compile tests
8515 lt_simple_compile_test_code="int some_variable = 0;"
8516
8517 # Code to be used in simple link tests
8518 lt_simple_link_test_code='int main(){return(0);}'
8519
8520
8521
8522
8523
8524
8525
8526 # If no C compiler was specified, use CC.
8527 LTCC=${LTCC-"$CC"}
8528
8529 # If no C compiler flags were specified, use CFLAGS.
8530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8531
8532 # Allow CC to be a program name with arguments.
8533 compiler=$CC
8534
8535 # Save the default compiler, since it gets overwritten when the other
8536 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8537 compiler_DEFAULT=$CC
8538
8539 # save warnings/boilerplate of simple test code
8540 ac_outfile=conftest.$ac_objext
8541 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8542 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8543 _lt_compiler_boilerplate=`cat conftest.err`
8544 $RM conftest*
8545
8546 ac_outfile=conftest.$ac_objext
8547 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8548 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8549 _lt_linker_boilerplate=`cat conftest.err`
8550 $RM -r conftest*
8551
8552
8553 ## CAVEAT EMPTOR:
8554 ## There is no encapsulation within the following macros, do not change
8555 ## the running order or otherwise move them around unless you know exactly
8556 ## what you are doing...
8557 if test -n "$compiler"; then
8558
8559 lt_prog_compiler_no_builtin_flag=
8560
8561 if test "$GCC" = yes; then
8562   case $cc_basename in
8563   nvcc*)
8564     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8565   *)
8566     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8567   esac
8568
8569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8570 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8571 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8572   $as_echo_n "(cached) " >&6
8573 else
8574   lt_cv_prog_compiler_rtti_exceptions=no
8575    ac_outfile=conftest.$ac_objext
8576    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577    lt_compiler_flag="-fno-rtti -fno-exceptions"
8578    # Insert the option either (1) after the last *FLAGS variable, or
8579    # (2) before a word containing "conftest.", or (3) at the end.
8580    # Note that $ac_compile itself does not contain backslashes and begins
8581    # with a dollar sign (not a hyphen), so the echo should work correctly.
8582    # The option is referenced via a variable to avoid confusing sed.
8583    lt_compile=`echo "$ac_compile" | $SED \
8584    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586    -e 's:$: $lt_compiler_flag:'`
8587    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8588    (eval "$lt_compile" 2>conftest.err)
8589    ac_status=$?
8590    cat conftest.err >&5
8591    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592    if (exit $ac_status) && test -s "$ac_outfile"; then
8593      # The compiler can only warn and ignore the option if not recognized
8594      # So say no if there are warnings other than the usual output.
8595      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8596      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8597      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8598        lt_cv_prog_compiler_rtti_exceptions=yes
8599      fi
8600    fi
8601    $RM conftest*
8602
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8605 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8606
8607 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8608     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8609 else
8610     :
8611 fi
8612
8613 fi
8614
8615
8616
8617
8618
8619
8620   lt_prog_compiler_wl=
8621 lt_prog_compiler_pic=
8622 lt_prog_compiler_static=
8623
8624
8625   if test "$GCC" = yes; then
8626     lt_prog_compiler_wl='-Wl,'
8627     lt_prog_compiler_static='-static'
8628
8629     case $host_os in
8630       aix*)
8631       # All AIX code is PIC.
8632       if test "$host_cpu" = ia64; then
8633         # AIX 5 now supports IA64 processor
8634         lt_prog_compiler_static='-Bstatic'
8635       fi
8636       ;;
8637
8638     amigaos*)
8639       case $host_cpu in
8640       powerpc)
8641             # see comment about AmigaOS4 .so support
8642             lt_prog_compiler_pic='-fPIC'
8643         ;;
8644       m68k)
8645             # FIXME: we need at least 68020 code to build shared libraries, but
8646             # adding the `-m68020' flag to GCC prevents building anything better,
8647             # like `-m68040'.
8648             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8649         ;;
8650       esac
8651       ;;
8652
8653     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8654       # PIC is the default for these OSes.
8655       ;;
8656
8657     mingw* | cygwin* | pw32* | os2* | cegcc*)
8658       # This hack is so that the source file can tell whether it is being
8659       # built for inclusion in a dll (and should export symbols for example).
8660       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8661       # (--disable-auto-import) libraries
8662       lt_prog_compiler_pic='-DDLL_EXPORT'
8663       ;;
8664
8665     darwin* | rhapsody*)
8666       # PIC is the default on this platform
8667       # Common symbols not allowed in MH_DYLIB files
8668       lt_prog_compiler_pic='-fno-common'
8669       ;;
8670
8671     haiku*)
8672       # PIC is the default for Haiku.
8673       # The "-static" flag exists, but is broken.
8674       lt_prog_compiler_static=
8675       ;;
8676
8677     hpux*)
8678       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8679       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8680       # sets the default TLS model and affects inlining.
8681       case $host_cpu in
8682       hppa*64*)
8683         # +Z the default
8684         ;;
8685       *)
8686         lt_prog_compiler_pic='-fPIC'
8687         ;;
8688       esac
8689       ;;
8690
8691     interix[3-9]*)
8692       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8693       # Instead, we relocate shared libraries at runtime.
8694       ;;
8695
8696     msdosdjgpp*)
8697       # Just because we use GCC doesn't mean we suddenly get shared libraries
8698       # on systems that don't support them.
8699       lt_prog_compiler_can_build_shared=no
8700       enable_shared=no
8701       ;;
8702
8703     *nto* | *qnx*)
8704       # QNX uses GNU C++, but need to define -shared option too, otherwise
8705       # it will coredump.
8706       lt_prog_compiler_pic='-fPIC -shared'
8707       ;;
8708
8709     sysv4*MP*)
8710       if test -d /usr/nec; then
8711         lt_prog_compiler_pic=-Kconform_pic
8712       fi
8713       ;;
8714
8715     *)
8716       lt_prog_compiler_pic='-fPIC'
8717       ;;
8718     esac
8719
8720     case $cc_basename in
8721     nvcc*) # Cuda Compiler Driver 2.2
8722       lt_prog_compiler_wl='-Xlinker '
8723       if test -n "$lt_prog_compiler_pic"; then
8724         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8725       fi
8726       ;;
8727     esac
8728   else
8729     # PORTME Check for flag to pass linker flags through the system compiler.
8730     case $host_os in
8731     aix*)
8732       lt_prog_compiler_wl='-Wl,'
8733       if test "$host_cpu" = ia64; then
8734         # AIX 5 now supports IA64 processor
8735         lt_prog_compiler_static='-Bstatic'
8736       else
8737         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8738       fi
8739       ;;
8740
8741     mingw* | cygwin* | pw32* | os2* | cegcc*)
8742       # This hack is so that the source file can tell whether it is being
8743       # built for inclusion in a dll (and should export symbols for example).
8744       lt_prog_compiler_pic='-DDLL_EXPORT'
8745       ;;
8746
8747     hpux9* | hpux10* | hpux11*)
8748       lt_prog_compiler_wl='-Wl,'
8749       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8750       # not for PA HP-UX.
8751       case $host_cpu in
8752       hppa*64*|ia64*)
8753         # +Z the default
8754         ;;
8755       *)
8756         lt_prog_compiler_pic='+Z'
8757         ;;
8758       esac
8759       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8760       lt_prog_compiler_static='${wl}-a ${wl}archive'
8761       ;;
8762
8763     irix5* | irix6* | nonstopux*)
8764       lt_prog_compiler_wl='-Wl,'
8765       # PIC (with -KPIC) is the default.
8766       lt_prog_compiler_static='-non_shared'
8767       ;;
8768
8769     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8770       case $cc_basename in
8771       # old Intel for x86_64 which still supported -KPIC.
8772       ecc*)
8773         lt_prog_compiler_wl='-Wl,'
8774         lt_prog_compiler_pic='-KPIC'
8775         lt_prog_compiler_static='-static'
8776         ;;
8777       # icc used to be incompatible with GCC.
8778       # ICC 10 doesn't accept -KPIC any more.
8779       icc* | ifort*)
8780         lt_prog_compiler_wl='-Wl,'
8781         lt_prog_compiler_pic='-fPIC'
8782         lt_prog_compiler_static='-static'
8783         ;;
8784       # Lahey Fortran 8.1.
8785       lf95*)
8786         lt_prog_compiler_wl='-Wl,'
8787         lt_prog_compiler_pic='--shared'
8788         lt_prog_compiler_static='--static'
8789         ;;
8790       nagfor*)
8791         # NAG Fortran compiler
8792         lt_prog_compiler_wl='-Wl,-Wl,,'
8793         lt_prog_compiler_pic='-PIC'
8794         lt_prog_compiler_static='-Bstatic'
8795         ;;
8796       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8797         # Portland Group compilers (*not* the Pentium gcc compiler,
8798         # which looks to be a dead project)
8799         lt_prog_compiler_wl='-Wl,'
8800         lt_prog_compiler_pic='-fpic'
8801         lt_prog_compiler_static='-Bstatic'
8802         ;;
8803       ccc*)
8804         lt_prog_compiler_wl='-Wl,'
8805         # All Alpha code is PIC.
8806         lt_prog_compiler_static='-non_shared'
8807         ;;
8808       xl* | bgxl* | bgf* | mpixl*)
8809         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8810         lt_prog_compiler_wl='-Wl,'
8811         lt_prog_compiler_pic='-qpic'
8812         lt_prog_compiler_static='-qstaticlink'
8813         ;;
8814       *)
8815         case `$CC -V 2>&1 | sed 5q` in
8816         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8817           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8818           lt_prog_compiler_pic='-KPIC'
8819           lt_prog_compiler_static='-Bstatic'
8820           lt_prog_compiler_wl=''
8821           ;;
8822         *Sun\ F* | *Sun*Fortran*)
8823           lt_prog_compiler_pic='-KPIC'
8824           lt_prog_compiler_static='-Bstatic'
8825           lt_prog_compiler_wl='-Qoption ld '
8826           ;;
8827         *Sun\ C*)
8828           # Sun C 5.9
8829           lt_prog_compiler_pic='-KPIC'
8830           lt_prog_compiler_static='-Bstatic'
8831           lt_prog_compiler_wl='-Wl,'
8832           ;;
8833         *Intel*\ [CF]*Compiler*)
8834           lt_prog_compiler_wl='-Wl,'
8835           lt_prog_compiler_pic='-fPIC'
8836           lt_prog_compiler_static='-static'
8837           ;;
8838         *Portland\ Group*)
8839           lt_prog_compiler_wl='-Wl,'
8840           lt_prog_compiler_pic='-fpic'
8841           lt_prog_compiler_static='-Bstatic'
8842           ;;
8843         esac
8844         ;;
8845       esac
8846       ;;
8847
8848     newsos6)
8849       lt_prog_compiler_pic='-KPIC'
8850       lt_prog_compiler_static='-Bstatic'
8851       ;;
8852
8853     *nto* | *qnx*)
8854       # QNX uses GNU C++, but need to define -shared option too, otherwise
8855       # it will coredump.
8856       lt_prog_compiler_pic='-fPIC -shared'
8857       ;;
8858
8859     osf3* | osf4* | osf5*)
8860       lt_prog_compiler_wl='-Wl,'
8861       # All OSF/1 code is PIC.
8862       lt_prog_compiler_static='-non_shared'
8863       ;;
8864
8865     rdos*)
8866       lt_prog_compiler_static='-non_shared'
8867       ;;
8868
8869     solaris*)
8870       lt_prog_compiler_pic='-KPIC'
8871       lt_prog_compiler_static='-Bstatic'
8872       case $cc_basename in
8873       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8874         lt_prog_compiler_wl='-Qoption ld ';;
8875       *)
8876         lt_prog_compiler_wl='-Wl,';;
8877       esac
8878       ;;
8879
8880     sunos4*)
8881       lt_prog_compiler_wl='-Qoption ld '
8882       lt_prog_compiler_pic='-PIC'
8883       lt_prog_compiler_static='-Bstatic'
8884       ;;
8885
8886     sysv4 | sysv4.2uw2* | sysv4.3*)
8887       lt_prog_compiler_wl='-Wl,'
8888       lt_prog_compiler_pic='-KPIC'
8889       lt_prog_compiler_static='-Bstatic'
8890       ;;
8891
8892     sysv4*MP*)
8893       if test -d /usr/nec ;then
8894         lt_prog_compiler_pic='-Kconform_pic'
8895         lt_prog_compiler_static='-Bstatic'
8896       fi
8897       ;;
8898
8899     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8900       lt_prog_compiler_wl='-Wl,'
8901       lt_prog_compiler_pic='-KPIC'
8902       lt_prog_compiler_static='-Bstatic'
8903       ;;
8904
8905     unicos*)
8906       lt_prog_compiler_wl='-Wl,'
8907       lt_prog_compiler_can_build_shared=no
8908       ;;
8909
8910     uts4*)
8911       lt_prog_compiler_pic='-pic'
8912       lt_prog_compiler_static='-Bstatic'
8913       ;;
8914
8915     *)
8916       lt_prog_compiler_can_build_shared=no
8917       ;;
8918     esac
8919   fi
8920
8921 case $host_os in
8922   # For platforms which do not support PIC, -DPIC is meaningless:
8923   *djgpp*)
8924     lt_prog_compiler_pic=
8925     ;;
8926   *)
8927     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8928     ;;
8929 esac
8930
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8932 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8933 if ${lt_cv_prog_compiler_pic+:} false; then :
8934   $as_echo_n "(cached) " >&6
8935 else
8936   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8939 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8940 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8941
8942 #
8943 # Check to make sure the PIC flag actually works.
8944 #
8945 if test -n "$lt_prog_compiler_pic"; then
8946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8947 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8948 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8949   $as_echo_n "(cached) " >&6
8950 else
8951   lt_cv_prog_compiler_pic_works=no
8952    ac_outfile=conftest.$ac_objext
8953    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8954    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8955    # Insert the option either (1) after the last *FLAGS variable, or
8956    # (2) before a word containing "conftest.", or (3) at the end.
8957    # Note that $ac_compile itself does not contain backslashes and begins
8958    # with a dollar sign (not a hyphen), so the echo should work correctly.
8959    # The option is referenced via a variable to avoid confusing sed.
8960    lt_compile=`echo "$ac_compile" | $SED \
8961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8963    -e 's:$: $lt_compiler_flag:'`
8964    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8965    (eval "$lt_compile" 2>conftest.err)
8966    ac_status=$?
8967    cat conftest.err >&5
8968    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969    if (exit $ac_status) && test -s "$ac_outfile"; then
8970      # The compiler can only warn and ignore the option if not recognized
8971      # So say no if there are warnings other than the usual output.
8972      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8973      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8974      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8975        lt_cv_prog_compiler_pic_works=yes
8976      fi
8977    fi
8978    $RM conftest*
8979
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8982 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8983
8984 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8985     case $lt_prog_compiler_pic in
8986      "" | " "*) ;;
8987      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8988      esac
8989 else
8990     lt_prog_compiler_pic=
8991      lt_prog_compiler_can_build_shared=no
8992 fi
8993
8994 fi
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006 #
9007 # Check to make sure the static flag actually works.
9008 #
9009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9011 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9012 if ${lt_cv_prog_compiler_static_works+:} false; then :
9013   $as_echo_n "(cached) " >&6
9014 else
9015   lt_cv_prog_compiler_static_works=no
9016    save_LDFLAGS="$LDFLAGS"
9017    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9018    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9019    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9020      # The linker can only warn and ignore the option if not recognized
9021      # So say no if there are warnings
9022      if test -s conftest.err; then
9023        # Append any errors to the config.log.
9024        cat conftest.err 1>&5
9025        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9026        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9027        if diff conftest.exp conftest.er2 >/dev/null; then
9028          lt_cv_prog_compiler_static_works=yes
9029        fi
9030      else
9031        lt_cv_prog_compiler_static_works=yes
9032      fi
9033    fi
9034    $RM -r conftest*
9035    LDFLAGS="$save_LDFLAGS"
9036
9037 fi
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9039 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9040
9041 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9042     :
9043 else
9044     lt_prog_compiler_static=
9045 fi
9046
9047
9048
9049
9050
9051
9052
9053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9054 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9055 if ${lt_cv_prog_compiler_c_o+:} false; then :
9056   $as_echo_n "(cached) " >&6
9057 else
9058   lt_cv_prog_compiler_c_o=no
9059    $RM -r conftest 2>/dev/null
9060    mkdir conftest
9061    cd conftest
9062    mkdir out
9063    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064
9065    lt_compiler_flag="-o out/conftest2.$ac_objext"
9066    # Insert the option either (1) after the last *FLAGS variable, or
9067    # (2) before a word containing "conftest.", or (3) at the end.
9068    # Note that $ac_compile itself does not contain backslashes and begins
9069    # with a dollar sign (not a hyphen), so the echo should work correctly.
9070    lt_compile=`echo "$ac_compile" | $SED \
9071    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073    -e 's:$: $lt_compiler_flag:'`
9074    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075    (eval "$lt_compile" 2>out/conftest.err)
9076    ac_status=$?
9077    cat out/conftest.err >&5
9078    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9080    then
9081      # The compiler can only warn and ignore the option if not recognized
9082      # So say no if there are warnings
9083      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9084      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9085      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9086        lt_cv_prog_compiler_c_o=yes
9087      fi
9088    fi
9089    chmod u+w . 2>&5
9090    $RM conftest*
9091    # SGI C++ compiler will create directory out/ii_files/ for
9092    # template instantiation
9093    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9094    $RM out/* && rmdir out
9095    cd ..
9096    $RM -r conftest
9097    $RM conftest*
9098
9099 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9101 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9102
9103
9104
9105
9106
9107
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9109 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9110 if ${lt_cv_prog_compiler_c_o+:} false; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   lt_cv_prog_compiler_c_o=no
9114    $RM -r conftest 2>/dev/null
9115    mkdir conftest
9116    cd conftest
9117    mkdir out
9118    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9119
9120    lt_compiler_flag="-o out/conftest2.$ac_objext"
9121    # Insert the option either (1) after the last *FLAGS variable, or
9122    # (2) before a word containing "conftest.", or (3) at the end.
9123    # Note that $ac_compile itself does not contain backslashes and begins
9124    # with a dollar sign (not a hyphen), so the echo should work correctly.
9125    lt_compile=`echo "$ac_compile" | $SED \
9126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9128    -e 's:$: $lt_compiler_flag:'`
9129    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9130    (eval "$lt_compile" 2>out/conftest.err)
9131    ac_status=$?
9132    cat out/conftest.err >&5
9133    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9135    then
9136      # The compiler can only warn and ignore the option if not recognized
9137      # So say no if there are warnings
9138      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9139      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9140      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9141        lt_cv_prog_compiler_c_o=yes
9142      fi
9143    fi
9144    chmod u+w . 2>&5
9145    $RM conftest*
9146    # SGI C++ compiler will create directory out/ii_files/ for
9147    # template instantiation
9148    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9149    $RM out/* && rmdir out
9150    cd ..
9151    $RM -r conftest
9152    $RM conftest*
9153
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9156 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9157
9158
9159
9160
9161 hard_links="nottested"
9162 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9163   # do not overwrite the value of need_locks provided by the user
9164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9165 $as_echo_n "checking if we can lock with hard links... " >&6; }
9166   hard_links=yes
9167   $RM conftest*
9168   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9169   touch conftest.a
9170   ln conftest.a conftest.b 2>&5 || hard_links=no
9171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9173 $as_echo "$hard_links" >&6; }
9174   if test "$hard_links" = no; then
9175     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9176 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9177     need_locks=warn
9178   fi
9179 else
9180   need_locks=no
9181 fi
9182
9183
9184
9185
9186
9187
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9190
9191   runpath_var=
9192   allow_undefined_flag=
9193   always_export_symbols=no
9194   archive_cmds=
9195   archive_expsym_cmds=
9196   compiler_needs_object=no
9197   enable_shared_with_static_runtimes=no
9198   export_dynamic_flag_spec=
9199   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9200   hardcode_automatic=no
9201   hardcode_direct=no
9202   hardcode_direct_absolute=no
9203   hardcode_libdir_flag_spec=
9204   hardcode_libdir_separator=
9205   hardcode_minus_L=no
9206   hardcode_shlibpath_var=unsupported
9207   inherit_rpath=no
9208   link_all_deplibs=unknown
9209   module_cmds=
9210   module_expsym_cmds=
9211   old_archive_from_new_cmds=
9212   old_archive_from_expsyms_cmds=
9213   thread_safe_flag_spec=
9214   whole_archive_flag_spec=
9215   # include_expsyms should be a list of space-separated symbols to be *always*
9216   # included in the symbol list
9217   include_expsyms=
9218   # exclude_expsyms can be an extended regexp of symbols to exclude
9219   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9220   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9221   # as well as any symbol that contains `d'.
9222   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9223   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9224   # platforms (ab)use it in PIC code, but their linkers get confused if
9225   # the symbol is explicitly referenced.  Since portable code cannot
9226   # rely on this symbol name, it's probably fine to never include it in
9227   # preloaded symbol tables.
9228   # Exclude shared library initialization/finalization symbols.
9229   extract_expsyms_cmds=
9230
9231   case $host_os in
9232   cygwin* | mingw* | pw32* | cegcc*)
9233     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9234     # When not using gcc, we currently assume that we are using
9235     # Microsoft Visual C++.
9236     if test "$GCC" != yes; then
9237       with_gnu_ld=no
9238     fi
9239     ;;
9240   interix*)
9241     # we just hope/assume this is gcc and not c89 (= MSVC++)
9242     with_gnu_ld=yes
9243     ;;
9244   openbsd*)
9245     with_gnu_ld=no
9246     ;;
9247   esac
9248
9249   ld_shlibs=yes
9250
9251   # On some targets, GNU ld is compatible enough with the native linker
9252   # that we're better off using the native interface for both.
9253   lt_use_gnu_ld_interface=no
9254   if test "$with_gnu_ld" = yes; then
9255     case $host_os in
9256       aix*)
9257         # The AIX port of GNU ld has always aspired to compatibility
9258         # with the native linker.  However, as the warning in the GNU ld
9259         # block says, versions before 2.19.5* couldn't really create working
9260         # shared libraries, regardless of the interface used.
9261         case `$LD -v 2>&1` in
9262           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9263           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9264           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9265           *)
9266             lt_use_gnu_ld_interface=yes
9267             ;;
9268         esac
9269         ;;
9270       *)
9271         lt_use_gnu_ld_interface=yes
9272         ;;
9273     esac
9274   fi
9275
9276   if test "$lt_use_gnu_ld_interface" = yes; then
9277     # If archive_cmds runs LD, not CC, wlarc should be empty
9278     wlarc='${wl}'
9279
9280     # Set some defaults for GNU ld with shared library support. These
9281     # are reset later if shared libraries are not supported. Putting them
9282     # here allows them to be overridden if necessary.
9283     runpath_var=LD_RUN_PATH
9284     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285     export_dynamic_flag_spec='${wl}--export-dynamic'
9286     # ancient GNU ld didn't support --whole-archive et. al.
9287     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9288       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9289     else
9290       whole_archive_flag_spec=
9291     fi
9292     supports_anon_versioning=no
9293     case `$LD -v 2>&1` in
9294       *GNU\ gold*) supports_anon_versioning=yes ;;
9295       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9296       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9297       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9298       *\ 2.11.*) ;; # other 2.11 versions
9299       *) supports_anon_versioning=yes ;;
9300     esac
9301
9302     # See if GNU ld supports shared libraries.
9303     case $host_os in
9304     aix[3-9]*)
9305       # On AIX/PPC, the GNU linker is very broken
9306       if test "$host_cpu" != ia64; then
9307         ld_shlibs=no
9308         cat <<_LT_EOF 1>&2
9309
9310 *** Warning: the GNU linker, at least up to release 2.19, is reported
9311 *** to be unable to reliably create shared libraries on AIX.
9312 *** Therefore, libtool is disabling shared libraries support.  If you
9313 *** really care for shared libraries, you may want to install binutils
9314 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9315 *** You will then need to restart the configuration process.
9316
9317 _LT_EOF
9318       fi
9319       ;;
9320
9321     amigaos*)
9322       case $host_cpu in
9323       powerpc)
9324             # see comment about AmigaOS4 .so support
9325             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326             archive_expsym_cmds=''
9327         ;;
9328       m68k)
9329             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)'
9330             hardcode_libdir_flag_spec='-L$libdir'
9331             hardcode_minus_L=yes
9332         ;;
9333       esac
9334       ;;
9335
9336     beos*)
9337       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338         allow_undefined_flag=unsupported
9339         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9340         # support --undefined.  This deserves some investigation.  FIXME
9341         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342       else
9343         ld_shlibs=no
9344       fi
9345       ;;
9346
9347     cygwin* | mingw* | pw32* | cegcc*)
9348       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9349       # as there is no search path for DLLs.
9350       hardcode_libdir_flag_spec='-L$libdir'
9351       export_dynamic_flag_spec='${wl}--export-all-symbols'
9352       allow_undefined_flag=unsupported
9353       always_export_symbols=no
9354       enable_shared_with_static_runtimes=yes
9355       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'
9356       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9357
9358       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9359         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9360         # If the export-symbols file already is a .def file (1st line
9361         # is EXPORTS), use it as is; otherwise, prepend...
9362         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9363           cp $export_symbols $output_objdir/$soname.def;
9364         else
9365           echo EXPORTS > $output_objdir/$soname.def;
9366           cat $export_symbols >> $output_objdir/$soname.def;
9367         fi~
9368         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9369       else
9370         ld_shlibs=no
9371       fi
9372       ;;
9373
9374     haiku*)
9375       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376       link_all_deplibs=yes
9377       ;;
9378
9379     interix[3-9]*)
9380       hardcode_direct=no
9381       hardcode_shlibpath_var=no
9382       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383       export_dynamic_flag_spec='${wl}-E'
9384       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9385       # Instead, shared libraries are loaded at an image base (0x10000000 by
9386       # default) and relocated if they conflict, which is a slow very memory
9387       # consuming and fragmenting process.  To avoid this, we pick a random,
9388       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9389       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9390       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9391       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'
9392       ;;
9393
9394     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9395       tmp_diet=no
9396       if test "$host_os" = linux-dietlibc; then
9397         case $cc_basename in
9398           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9399         esac
9400       fi
9401       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9402          && test "$tmp_diet" = no
9403       then
9404         tmp_addflag=' $pic_flag'
9405         tmp_sharedflag='-shared'
9406         case $cc_basename,$host_cpu in
9407         pgcc*)                          # Portland Group C compiler
9408           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'
9409           tmp_addflag=' $pic_flag'
9410           ;;
9411         pgf77* | pgf90* | pgf95* | pgfortran*)
9412                                         # Portland Group f77 and f90 compilers
9413           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'
9414           tmp_addflag=' $pic_flag -Mnomain' ;;
9415         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9416           tmp_addflag=' -i_dynamic' ;;
9417         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9418           tmp_addflag=' -i_dynamic -nofor_main' ;;
9419         ifc* | ifort*)                  # Intel Fortran compiler
9420           tmp_addflag=' -nofor_main' ;;
9421         lf95*)                          # Lahey Fortran 8.1
9422           whole_archive_flag_spec=
9423           tmp_sharedflag='--shared' ;;
9424         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9425           tmp_sharedflag='-qmkshrobj'
9426           tmp_addflag= ;;
9427         nvcc*)  # Cuda Compiler Driver 2.2
9428           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'
9429           compiler_needs_object=yes
9430           ;;
9431         esac
9432         case `$CC -V 2>&1 | sed 5q` in
9433         *Sun\ C*)                       # Sun C 5.9
9434           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'
9435           compiler_needs_object=yes
9436           tmp_sharedflag='-G' ;;
9437         *Sun\ F*)                       # Sun Fortran 8.3
9438           tmp_sharedflag='-G' ;;
9439         esac
9440         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441
9442         if test "x$supports_anon_versioning" = xyes; then
9443           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9444             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9445             echo "local: *; };" >> $output_objdir/$libname.ver~
9446             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9447         fi
9448
9449         case $cc_basename in
9450         xlf* | bgf* | bgxlf* | mpixlf*)
9451           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9452           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9453           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9455           if test "x$supports_anon_versioning" = xyes; then
9456             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9457               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9458               echo "local: *; };" >> $output_objdir/$libname.ver~
9459               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9460           fi
9461           ;;
9462         esac
9463       else
9464         ld_shlibs=no
9465       fi
9466       ;;
9467
9468     netbsd*)
9469       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9470         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9471         wlarc=
9472       else
9473         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9475       fi
9476       ;;
9477
9478     solaris*)
9479       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9480         ld_shlibs=no
9481         cat <<_LT_EOF 1>&2
9482
9483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9484 *** create shared libraries on Solaris systems.  Therefore, libtool
9485 *** is disabling shared libraries support.  We urge you to upgrade GNU
9486 *** binutils to release 2.9.1 or newer.  Another option is to modify
9487 *** your PATH or compiler configuration so that the native linker is
9488 *** used, and then restart.
9489
9490 _LT_EOF
9491       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9494       else
9495         ld_shlibs=no
9496       fi
9497       ;;
9498
9499     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9500       case `$LD -v 2>&1` in
9501         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9502         ld_shlibs=no
9503         cat <<_LT_EOF 1>&2
9504
9505 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9506 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9507 *** is disabling shared libraries support.  We urge you to upgrade GNU
9508 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9509 *** your PATH or compiler configuration so that the native linker is
9510 *** used, and then restart.
9511
9512 _LT_EOF
9513         ;;
9514         *)
9515           # For security reasons, it is highly recommended that you always
9516           # use absolute paths for naming shared libraries, and exclude the
9517           # DT_RUNPATH tag from executables and libraries.  But doing so
9518           # requires that you compile everything twice, which is a pain.
9519           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9523           else
9524             ld_shlibs=no
9525           fi
9526         ;;
9527       esac
9528       ;;
9529
9530     sunos4*)
9531       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9532       wlarc=
9533       hardcode_direct=yes
9534       hardcode_shlibpath_var=no
9535       ;;
9536
9537     *)
9538       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9541       else
9542         ld_shlibs=no
9543       fi
9544       ;;
9545     esac
9546
9547     if test "$ld_shlibs" = no; then
9548       runpath_var=
9549       hardcode_libdir_flag_spec=
9550       export_dynamic_flag_spec=
9551       whole_archive_flag_spec=
9552     fi
9553   else
9554     # PORTME fill in a description of your system's linker (not GNU ld)
9555     case $host_os in
9556     aix3*)
9557       allow_undefined_flag=unsupported
9558       always_export_symbols=yes
9559       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'
9560       # Note: this linker hardcodes the directories in LIBPATH if there
9561       # are no directories specified by -L.
9562       hardcode_minus_L=yes
9563       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9564         # Neither direct hardcoding nor static linking is supported with a
9565         # broken collect2.
9566         hardcode_direct=unsupported
9567       fi
9568       ;;
9569
9570     aix[4-9]*)
9571       if test "$host_cpu" = ia64; then
9572         # On IA64, the linker does run time linking by default, so we don't
9573         # have to do anything special.
9574         aix_use_runtimelinking=no
9575         exp_sym_flag='-Bexport'
9576         no_entry_flag=""
9577       else
9578         # If we're using GNU nm, then we don't want the "-C" option.
9579         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9580         # Also, AIX nm treats weak defined symbols like other global
9581         # defined symbols, whereas GNU nm marks them as "W".
9582         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9583           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'
9584         else
9585           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'
9586         fi
9587         aix_use_runtimelinking=no
9588
9589         # Test if we are trying to use run time linking or normal
9590         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9591         # need to do runtime linking.
9592         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9593           for ld_flag in $LDFLAGS; do
9594           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9595             aix_use_runtimelinking=yes
9596             break
9597           fi
9598           done
9599           ;;
9600         esac
9601
9602         exp_sym_flag='-bexport'
9603         no_entry_flag='-bnoentry'
9604       fi
9605
9606       # When large executables or shared objects are built, AIX ld can
9607       # have problems creating the table of contents.  If linking a library
9608       # or program results in "error TOC overflow" add -mminimal-toc to
9609       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9610       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9611
9612       archive_cmds=''
9613       hardcode_direct=yes
9614       hardcode_direct_absolute=yes
9615       hardcode_libdir_separator=':'
9616       link_all_deplibs=yes
9617       file_list_spec='${wl}-f,'
9618
9619       if test "$GCC" = yes; then
9620         case $host_os in aix4.[012]|aix4.[012].*)
9621         # We only want to do this on AIX 4.2 and lower, the check
9622         # below for broken collect2 doesn't work under 4.3+
9623           collect2name=`${CC} -print-prog-name=collect2`
9624           if test -f "$collect2name" &&
9625            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9626           then
9627           # We have reworked collect2
9628           :
9629           else
9630           # We have old collect2
9631           hardcode_direct=unsupported
9632           # It fails to find uninstalled libraries when the uninstalled
9633           # path is not listed in the libpath.  Setting hardcode_minus_L
9634           # to unsupported forces relinking
9635           hardcode_minus_L=yes
9636           hardcode_libdir_flag_spec='-L$libdir'
9637           hardcode_libdir_separator=
9638           fi
9639           ;;
9640         esac
9641         shared_flag='-shared'
9642         if test "$aix_use_runtimelinking" = yes; then
9643           shared_flag="$shared_flag "'${wl}-G'
9644         fi
9645       else
9646         # not using gcc
9647         if test "$host_cpu" = ia64; then
9648         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9649         # chokes on -Wl,-G. The following line is correct:
9650           shared_flag='-G'
9651         else
9652           if test "$aix_use_runtimelinking" = yes; then
9653             shared_flag='${wl}-G'
9654           else
9655             shared_flag='${wl}-bM:SRE'
9656           fi
9657         fi
9658       fi
9659
9660       export_dynamic_flag_spec='${wl}-bexpall'
9661       # It seems that -bexpall does not export symbols beginning with
9662       # underscore (_), so it is better to generate a list of symbols to export.
9663       always_export_symbols=yes
9664       if test "$aix_use_runtimelinking" = yes; then
9665         # Warning - without using the other runtime loading flags (-brtl),
9666         # -berok will link without error, but may produce a broken library.
9667         allow_undefined_flag='-berok'
9668         # Determine the default libpath from the value encoded in an
9669         # empty executable.
9670         if test "${lt_cv_aix_libpath+set}" = set; then
9671   aix_libpath=$lt_cv_aix_libpath
9672 else
9673   if ${lt_cv_aix_libpath_+:} false; then :
9674   $as_echo_n "(cached) " >&6
9675 else
9676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h.  */
9678
9679 int
9680 main ()
9681 {
9682
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 if ac_fn_c_try_link "$LINENO"; then :
9688
9689   lt_aix_libpath_sed='
9690       /Import File Strings/,/^$/ {
9691           /^0/ {
9692               s/^0  *\([^ ]*\) *$/\1/
9693               p
9694           }
9695       }'
9696   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697   # Check for a 64-bit object if we didn't find anything.
9698   if test -z "$lt_cv_aix_libpath_"; then
9699     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700   fi
9701 fi
9702 rm -f core conftest.err conftest.$ac_objext \
9703     conftest$ac_exeext conftest.$ac_ext
9704   if test -z "$lt_cv_aix_libpath_"; then
9705     lt_cv_aix_libpath_="/usr/lib:/lib"
9706   fi
9707
9708 fi
9709
9710   aix_libpath=$lt_cv_aix_libpath_
9711 fi
9712
9713         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714         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"
9715       else
9716         if test "$host_cpu" = ia64; then
9717           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9718           allow_undefined_flag="-z nodefs"
9719           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"
9720         else
9721          # Determine the default libpath from the value encoded in an
9722          # empty executable.
9723          if test "${lt_cv_aix_libpath+set}" = set; then
9724   aix_libpath=$lt_cv_aix_libpath
9725 else
9726   if ${lt_cv_aix_libpath_+:} false; then :
9727   $as_echo_n "(cached) " >&6
9728 else
9729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h.  */
9731
9732 int
9733 main ()
9734 {
9735
9736   ;
9737   return 0;
9738 }
9739 _ACEOF
9740 if ac_fn_c_try_link "$LINENO"; then :
9741
9742   lt_aix_libpath_sed='
9743       /Import File Strings/,/^$/ {
9744           /^0/ {
9745               s/^0  *\([^ ]*\) *$/\1/
9746               p
9747           }
9748       }'
9749   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750   # Check for a 64-bit object if we didn't find anything.
9751   if test -z "$lt_cv_aix_libpath_"; then
9752     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9753   fi
9754 fi
9755 rm -f core conftest.err conftest.$ac_objext \
9756     conftest$ac_exeext conftest.$ac_ext
9757   if test -z "$lt_cv_aix_libpath_"; then
9758     lt_cv_aix_libpath_="/usr/lib:/lib"
9759   fi
9760
9761 fi
9762
9763   aix_libpath=$lt_cv_aix_libpath_
9764 fi
9765
9766          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9767           # Warning - without using the other run time loading flags,
9768           # -berok will link without error, but may produce a broken library.
9769           no_undefined_flag=' ${wl}-bernotok'
9770           allow_undefined_flag=' ${wl}-berok'
9771           if test "$with_gnu_ld" = yes; then
9772             # We only use this code for GNU lds that support --whole-archive.
9773             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9774           else
9775             # Exported symbols can be pulled into shared objects from archives
9776             whole_archive_flag_spec='$convenience'
9777           fi
9778           archive_cmds_need_lc=yes
9779           # This is similar to how AIX traditionally builds its shared libraries.
9780           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'
9781         fi
9782       fi
9783       ;;
9784
9785     amigaos*)
9786       case $host_cpu in
9787       powerpc)
9788             # see comment about AmigaOS4 .so support
9789             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790             archive_expsym_cmds=''
9791         ;;
9792       m68k)
9793             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)'
9794             hardcode_libdir_flag_spec='-L$libdir'
9795             hardcode_minus_L=yes
9796         ;;
9797       esac
9798       ;;
9799
9800     bsdi[45]*)
9801       export_dynamic_flag_spec=-rdynamic
9802       ;;
9803
9804     cygwin* | mingw* | pw32* | cegcc*)
9805       # When not using gcc, we currently assume that we are using
9806       # Microsoft Visual C++.
9807       # hardcode_libdir_flag_spec is actually meaningless, as there is
9808       # no search path for DLLs.
9809       case $cc_basename in
9810       cl*)
9811         # Native MSVC
9812         hardcode_libdir_flag_spec=' '
9813         allow_undefined_flag=unsupported
9814         always_export_symbols=yes
9815         file_list_spec='@'
9816         # Tell ltmain to make .lib files, not .a files.
9817         libext=lib
9818         # Tell ltmain to make .dll files, not .so files.
9819         shrext_cmds=".dll"
9820         # FIXME: Setting linknames here is a bad hack.
9821         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9822         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9823             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9824           else
9825             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9826           fi~
9827           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9828           linknames='
9829         # The linker will not automatically build a static lib if we build a DLL.
9830         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9831         enable_shared_with_static_runtimes=yes
9832         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9833         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9834         # Don't use ranlib
9835         old_postinstall_cmds='chmod 644 $oldlib'
9836         postlink_cmds='lt_outputfile="@OUTPUT@"~
9837           lt_tool_outputfile="@TOOL_OUTPUT@"~
9838           case $lt_outputfile in
9839             *.exe|*.EXE) ;;
9840             *)
9841               lt_outputfile="$lt_outputfile.exe"
9842               lt_tool_outputfile="$lt_tool_outputfile.exe"
9843               ;;
9844           esac~
9845           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9846             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9847             $RM "$lt_outputfile.manifest";
9848           fi'
9849         ;;
9850       *)
9851         # Assume MSVC wrapper
9852         hardcode_libdir_flag_spec=' '
9853         allow_undefined_flag=unsupported
9854         # Tell ltmain to make .lib files, not .a files.
9855         libext=lib
9856         # Tell ltmain to make .dll files, not .so files.
9857         shrext_cmds=".dll"
9858         # FIXME: Setting linknames here is a bad hack.
9859         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9860         # The linker will automatically build a .lib file if we build a DLL.
9861         old_archive_from_new_cmds='true'
9862         # FIXME: Should let the user specify the lib program.
9863         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9864         enable_shared_with_static_runtimes=yes
9865         ;;
9866       esac
9867       ;;
9868
9869     darwin* | rhapsody*)
9870
9871
9872   archive_cmds_need_lc=no
9873   hardcode_direct=no
9874   hardcode_automatic=yes
9875   hardcode_shlibpath_var=unsupported
9876   if test "$lt_cv_ld_force_load" = "yes"; then
9877     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\"`'
9878
9879   else
9880     whole_archive_flag_spec=''
9881   fi
9882   link_all_deplibs=yes
9883   allow_undefined_flag="$_lt_dar_allow_undefined"
9884   case $cc_basename in
9885      ifort*) _lt_dar_can_shared=yes ;;
9886      *) _lt_dar_can_shared=$GCC ;;
9887   esac
9888   if test "$_lt_dar_can_shared" = "yes"; then
9889     output_verbose_link_cmd=func_echo_all
9890     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9891     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9892     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}"
9893     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}"
9894
9895   else
9896   ld_shlibs=no
9897   fi
9898
9899       ;;
9900
9901     dgux*)
9902       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903       hardcode_libdir_flag_spec='-L$libdir'
9904       hardcode_shlibpath_var=no
9905       ;;
9906
9907     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9908     # support.  Future versions do this automatically, but an explicit c++rt0.o
9909     # does not break anything, and helps significantly (at the cost of a little
9910     # extra space).
9911     freebsd2.2*)
9912       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9913       hardcode_libdir_flag_spec='-R$libdir'
9914       hardcode_direct=yes
9915       hardcode_shlibpath_var=no
9916       ;;
9917
9918     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9919     freebsd2.*)
9920       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9921       hardcode_direct=yes
9922       hardcode_minus_L=yes
9923       hardcode_shlibpath_var=no
9924       ;;
9925
9926     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9927     freebsd* | dragonfly*)
9928       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929       hardcode_libdir_flag_spec='-R$libdir'
9930       hardcode_direct=yes
9931       hardcode_shlibpath_var=no
9932       ;;
9933
9934     hpux9*)
9935       if test "$GCC" = yes; then
9936         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'
9937       else
9938         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'
9939       fi
9940       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9941       hardcode_libdir_separator=:
9942       hardcode_direct=yes
9943
9944       # hardcode_minus_L: Not really in the search PATH,
9945       # but as the default location of the library.
9946       hardcode_minus_L=yes
9947       export_dynamic_flag_spec='${wl}-E'
9948       ;;
9949
9950     hpux10*)
9951       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9952         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9953       else
9954         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9955       fi
9956       if test "$with_gnu_ld" = no; then
9957         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9958         hardcode_libdir_separator=:
9959         hardcode_direct=yes
9960         hardcode_direct_absolute=yes
9961         export_dynamic_flag_spec='${wl}-E'
9962         # hardcode_minus_L: Not really in the search PATH,
9963         # but as the default location of the library.
9964         hardcode_minus_L=yes
9965       fi
9966       ;;
9967
9968     hpux11*)
9969       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9970         case $host_cpu in
9971         hppa*64*)
9972           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9973           ;;
9974         ia64*)
9975           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9976           ;;
9977         *)
9978           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9979           ;;
9980         esac
9981       else
9982         case $host_cpu in
9983         hppa*64*)
9984           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9985           ;;
9986         ia64*)
9987           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9988           ;;
9989         *)
9990
9991           # Older versions of the 11.00 compiler do not understand -b yet
9992           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9993           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9994 $as_echo_n "checking if $CC understands -b... " >&6; }
9995 if ${lt_cv_prog_compiler__b+:} false; then :
9996   $as_echo_n "(cached) " >&6
9997 else
9998   lt_cv_prog_compiler__b=no
9999    save_LDFLAGS="$LDFLAGS"
10000    LDFLAGS="$LDFLAGS -b"
10001    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10002    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10003      # The linker can only warn and ignore the option if not recognized
10004      # So say no if there are warnings
10005      if test -s conftest.err; then
10006        # Append any errors to the config.log.
10007        cat conftest.err 1>&5
10008        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10009        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10010        if diff conftest.exp conftest.er2 >/dev/null; then
10011          lt_cv_prog_compiler__b=yes
10012        fi
10013      else
10014        lt_cv_prog_compiler__b=yes
10015      fi
10016    fi
10017    $RM -r conftest*
10018    LDFLAGS="$save_LDFLAGS"
10019
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10022 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10023
10024 if test x"$lt_cv_prog_compiler__b" = xyes; then
10025     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10026 else
10027     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10028 fi
10029
10030           ;;
10031         esac
10032       fi
10033       if test "$with_gnu_ld" = no; then
10034         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10035         hardcode_libdir_separator=:
10036
10037         case $host_cpu in
10038         hppa*64*|ia64*)
10039           hardcode_direct=no
10040           hardcode_shlibpath_var=no
10041           ;;
10042         *)
10043           hardcode_direct=yes
10044           hardcode_direct_absolute=yes
10045           export_dynamic_flag_spec='${wl}-E'
10046
10047           # hardcode_minus_L: Not really in the search PATH,
10048           # but as the default location of the library.
10049           hardcode_minus_L=yes
10050           ;;
10051         esac
10052       fi
10053       ;;
10054
10055     irix5* | irix6* | nonstopux*)
10056       if test "$GCC" = yes; then
10057         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'
10058         # Try to use the -exported_symbol ld option, if it does not
10059         # work, assume that -exports_file does not work either and
10060         # implicitly export all symbols.
10061         # This should be the same for all languages, so no per-tag cache variable.
10062         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10063 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10064 if ${lt_cv_irix_exported_symbol+:} false; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   save_LDFLAGS="$LDFLAGS"
10068            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10069            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h.  */
10071 int foo (void) { return 0; }
10072 _ACEOF
10073 if ac_fn_c_try_link "$LINENO"; then :
10074   lt_cv_irix_exported_symbol=yes
10075 else
10076   lt_cv_irix_exported_symbol=no
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext \
10079     conftest$ac_exeext conftest.$ac_ext
10080            LDFLAGS="$save_LDFLAGS"
10081 fi
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10083 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10084         if test "$lt_cv_irix_exported_symbol" = yes; then
10085           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'
10086         fi
10087       else
10088         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'
10089         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'
10090       fi
10091       archive_cmds_need_lc='no'
10092       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10093       hardcode_libdir_separator=:
10094       inherit_rpath=yes
10095       link_all_deplibs=yes
10096       ;;
10097
10098     netbsd*)
10099       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10101       else
10102         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10103       fi
10104       hardcode_libdir_flag_spec='-R$libdir'
10105       hardcode_direct=yes
10106       hardcode_shlibpath_var=no
10107       ;;
10108
10109     newsos6)
10110       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111       hardcode_direct=yes
10112       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10113       hardcode_libdir_separator=:
10114       hardcode_shlibpath_var=no
10115       ;;
10116
10117     *nto* | *qnx*)
10118       ;;
10119
10120     openbsd*)
10121       if test -f /usr/libexec/ld.so; then
10122         hardcode_direct=yes
10123         hardcode_shlibpath_var=no
10124         hardcode_direct_absolute=yes
10125         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10126           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10127           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10128           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10129           export_dynamic_flag_spec='${wl}-E'
10130         else
10131           case $host_os in
10132            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10133              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10134              hardcode_libdir_flag_spec='-R$libdir'
10135              ;;
10136            *)
10137              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10138              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10139              ;;
10140           esac
10141         fi
10142       else
10143         ld_shlibs=no
10144       fi
10145       ;;
10146
10147     os2*)
10148       hardcode_libdir_flag_spec='-L$libdir'
10149       hardcode_minus_L=yes
10150       allow_undefined_flag=unsupported
10151       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'
10152       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10153       ;;
10154
10155     osf3*)
10156       if test "$GCC" = yes; then
10157         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10158         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'
10159       else
10160         allow_undefined_flag=' -expect_unresolved \*'
10161         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'
10162       fi
10163       archive_cmds_need_lc='no'
10164       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10165       hardcode_libdir_separator=:
10166       ;;
10167
10168     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10169       if test "$GCC" = yes; then
10170         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10171         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'
10172         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10173       else
10174         allow_undefined_flag=' -expect_unresolved \*'
10175         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'
10176         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~
10177         $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'
10178
10179         # Both c and cxx compiler support -rpath directly
10180         hardcode_libdir_flag_spec='-rpath $libdir'
10181       fi
10182       archive_cmds_need_lc='no'
10183       hardcode_libdir_separator=:
10184       ;;
10185
10186     solaris*)
10187       no_undefined_flag=' -z defs'
10188       if test "$GCC" = yes; then
10189         wlarc='${wl}'
10190         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10191         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10192           $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'
10193       else
10194         case `$CC -V 2>&1` in
10195         *"Compilers 5.0"*)
10196           wlarc=''
10197           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10199           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10200           ;;
10201         *)
10202           wlarc='${wl}'
10203           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10204           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10205           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10206           ;;
10207         esac
10208       fi
10209       hardcode_libdir_flag_spec='-R$libdir'
10210       hardcode_shlibpath_var=no
10211       case $host_os in
10212       solaris2.[0-5] | solaris2.[0-5].*) ;;
10213       *)
10214         # The compiler driver will combine and reorder linker options,
10215         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10216         # but is careful enough not to reorder.
10217         # Supported since Solaris 2.6 (maybe 2.5.1?)
10218         if test "$GCC" = yes; then
10219           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10220         else
10221           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10222         fi
10223         ;;
10224       esac
10225       link_all_deplibs=yes
10226       ;;
10227
10228     sunos4*)
10229       if test "x$host_vendor" = xsequent; then
10230         # Use $CC to link under sequent, because it throws in some extra .o
10231         # files that make .init and .fini sections work.
10232         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10233       else
10234         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10235       fi
10236       hardcode_libdir_flag_spec='-L$libdir'
10237       hardcode_direct=yes
10238       hardcode_minus_L=yes
10239       hardcode_shlibpath_var=no
10240       ;;
10241
10242     sysv4)
10243       case $host_vendor in
10244         sni)
10245           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246           hardcode_direct=yes # is this really true???
10247         ;;
10248         siemens)
10249           ## LD is ld it makes a PLAMLIB
10250           ## CC just makes a GrossModule.
10251           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10252           reload_cmds='$CC -r -o $output$reload_objs'
10253           hardcode_direct=no
10254         ;;
10255         motorola)
10256           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10258         ;;
10259       esac
10260       runpath_var='LD_RUN_PATH'
10261       hardcode_shlibpath_var=no
10262       ;;
10263
10264     sysv4.3*)
10265       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266       hardcode_shlibpath_var=no
10267       export_dynamic_flag_spec='-Bexport'
10268       ;;
10269
10270     sysv4*MP*)
10271       if test -d /usr/nec; then
10272         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273         hardcode_shlibpath_var=no
10274         runpath_var=LD_RUN_PATH
10275         hardcode_runpath_var=yes
10276         ld_shlibs=yes
10277       fi
10278       ;;
10279
10280     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10281       no_undefined_flag='${wl}-z,text'
10282       archive_cmds_need_lc=no
10283       hardcode_shlibpath_var=no
10284       runpath_var='LD_RUN_PATH'
10285
10286       if test "$GCC" = yes; then
10287         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289       else
10290         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292       fi
10293       ;;
10294
10295     sysv5* | sco3.2v5* | sco5v6*)
10296       # Note: We can NOT use -z defs as we might desire, because we do not
10297       # link with -lc, and that would cause any symbols used from libc to
10298       # always be unresolved, which means just about no library would
10299       # ever link correctly.  If we're not using GNU ld we use -z text
10300       # though, which does catch some bad symbols but isn't as heavy-handed
10301       # as -z defs.
10302       no_undefined_flag='${wl}-z,text'
10303       allow_undefined_flag='${wl}-z,nodefs'
10304       archive_cmds_need_lc=no
10305       hardcode_shlibpath_var=no
10306       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10307       hardcode_libdir_separator=':'
10308       link_all_deplibs=yes
10309       export_dynamic_flag_spec='${wl}-Bexport'
10310       runpath_var='LD_RUN_PATH'
10311
10312       if test "$GCC" = yes; then
10313         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315       else
10316         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10317         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318       fi
10319       ;;
10320
10321     uts4*)
10322       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323       hardcode_libdir_flag_spec='-L$libdir'
10324       hardcode_shlibpath_var=no
10325       ;;
10326
10327     *)
10328       ld_shlibs=no
10329       ;;
10330     esac
10331
10332     if test x$host_vendor = xsni; then
10333       case $host in
10334       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10335         export_dynamic_flag_spec='${wl}-Blargedynsym'
10336         ;;
10337       esac
10338     fi
10339   fi
10340
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10342 $as_echo "$ld_shlibs" >&6; }
10343 test "$ld_shlibs" = no && can_build_shared=no
10344
10345 with_gnu_ld=$with_gnu_ld
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361 #
10362 # Do we need to explicitly link libc?
10363 #
10364 case "x$archive_cmds_need_lc" in
10365 x|xyes)
10366   # Assume -lc should be added
10367   archive_cmds_need_lc=yes
10368
10369   if test "$enable_shared" = yes && test "$GCC" = yes; then
10370     case $archive_cmds in
10371     *'~'*)
10372       # FIXME: we may have to deal with multi-command sequences.
10373       ;;
10374     '$CC '*)
10375       # Test whether the compiler implicitly links with -lc since on some
10376       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10377       # to ld, don't add -lc before -lgcc.
10378       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10379 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10380 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   $RM conftest*
10384         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10385
10386         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10387   (eval $ac_compile) 2>&5
10388   ac_status=$?
10389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10390   test $ac_status = 0; } 2>conftest.err; then
10391           soname=conftest
10392           lib=conftest
10393           libobjs=conftest.$ac_objext
10394           deplibs=
10395           wl=$lt_prog_compiler_wl
10396           pic_flag=$lt_prog_compiler_pic
10397           compiler_flags=-v
10398           linker_flags=-v
10399           verstring=
10400           output_objdir=.
10401           libname=conftest
10402           lt_save_allow_undefined_flag=$allow_undefined_flag
10403           allow_undefined_flag=
10404           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10405   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10406   ac_status=$?
10407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10408   test $ac_status = 0; }
10409           then
10410             lt_cv_archive_cmds_need_lc=no
10411           else
10412             lt_cv_archive_cmds_need_lc=yes
10413           fi
10414           allow_undefined_flag=$lt_save_allow_undefined_flag
10415         else
10416           cat conftest.err 1>&5
10417         fi
10418         $RM conftest*
10419
10420 fi
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10422 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10423       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10424       ;;
10425     esac
10426   fi
10427   ;;
10428 esac
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10582 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10583
10584 if test "$GCC" = yes; then
10585   case $host_os in
10586     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10587     *) lt_awk_arg="/^libraries:/" ;;
10588   esac
10589   case $host_os in
10590     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10591     *) lt_sed_strip_eq="s,=/,/,g" ;;
10592   esac
10593   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10594   case $lt_search_path_spec in
10595   *\;*)
10596     # if the path contains ";" then we assume it to be the separator
10597     # otherwise default to the standard path separator (i.e. ":") - it is
10598     # assumed that no part of a normal pathname contains ";" but that should
10599     # okay in the real world where ";" in dirpaths is itself problematic.
10600     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10601     ;;
10602   *)
10603     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10604     ;;
10605   esac
10606   # Ok, now we have the path, separated by spaces, we can step through it
10607   # and add multilib dir if necessary.
10608   lt_tmp_lt_search_path_spec=
10609   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10610   for lt_sys_path in $lt_search_path_spec; do
10611     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10612       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10613     else
10614       test -d "$lt_sys_path" && \
10615         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10616     fi
10617   done
10618   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10619 BEGIN {RS=" "; FS="/|\n";} {
10620   lt_foo="";
10621   lt_count=0;
10622   for (lt_i = NF; lt_i > 0; lt_i--) {
10623     if ($lt_i != "" && $lt_i != ".") {
10624       if ($lt_i == "..") {
10625         lt_count++;
10626       } else {
10627         if (lt_count == 0) {
10628           lt_foo="/" $lt_i lt_foo;
10629         } else {
10630           lt_count--;
10631         }
10632       }
10633     }
10634   }
10635   if (lt_foo != "") { lt_freq[lt_foo]++; }
10636   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10637 }'`
10638   # AWK program above erroneously prepends '/' to C:/dos/paths
10639   # for these hosts.
10640   case $host_os in
10641     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10642       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10643   esac
10644   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10645 else
10646   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10647 fi
10648 library_names_spec=
10649 libname_spec='lib$name'
10650 soname_spec=
10651 shrext_cmds=".so"
10652 postinstall_cmds=
10653 postuninstall_cmds=
10654 finish_cmds=
10655 finish_eval=
10656 shlibpath_var=
10657 shlibpath_overrides_runpath=unknown
10658 version_type=none
10659 dynamic_linker="$host_os ld.so"
10660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10661 need_lib_prefix=unknown
10662 hardcode_into_libs=no
10663
10664 # when you set need_version to no, make sure it does not cause -set_version
10665 # flags to be left without arguments
10666 need_version=unknown
10667
10668 case $host_os in
10669 aix3*)
10670   version_type=linux # correct to gnu/linux during the next big refactor
10671   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10672   shlibpath_var=LIBPATH
10673
10674   # AIX 3 has no versioning support, so we append a major version to the name.
10675   soname_spec='${libname}${release}${shared_ext}$major'
10676   ;;
10677
10678 aix[4-9]*)
10679   version_type=linux # correct to gnu/linux during the next big refactor
10680   need_lib_prefix=no
10681   need_version=no
10682   hardcode_into_libs=yes
10683   if test "$host_cpu" = ia64; then
10684     # AIX 5 supports IA64
10685     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10686     shlibpath_var=LD_LIBRARY_PATH
10687   else
10688     # With GCC up to 2.95.x, collect2 would create an import file
10689     # for dependence libraries.  The import file would start with
10690     # the line `#! .'.  This would cause the generated library to
10691     # depend on `.', always an invalid library.  This was fixed in
10692     # development snapshots of GCC prior to 3.0.
10693     case $host_os in
10694       aix4 | aix4.[01] | aix4.[01].*)
10695       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10696            echo ' yes '
10697            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10698         :
10699       else
10700         can_build_shared=no
10701       fi
10702       ;;
10703     esac
10704     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10705     # soname into executable. Probably we can add versioning support to
10706     # collect2, so additional links can be useful in future.
10707     if test "$aix_use_runtimelinking" = yes; then
10708       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10709       # instead of lib<name>.a to let people know that these are not
10710       # typical AIX shared libraries.
10711       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712     else
10713       # We preserve .a as extension for shared libraries through AIX4.2
10714       # and later when we are not doing run time linking.
10715       library_names_spec='${libname}${release}.a $libname.a'
10716       soname_spec='${libname}${release}${shared_ext}$major'
10717     fi
10718     shlibpath_var=LIBPATH
10719   fi
10720   ;;
10721
10722 amigaos*)
10723   case $host_cpu in
10724   powerpc)
10725     # Since July 2007 AmigaOS4 officially supports .so libraries.
10726     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728     ;;
10729   m68k)
10730     library_names_spec='$libname.ixlibrary $libname.a'
10731     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10732     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'
10733     ;;
10734   esac
10735   ;;
10736
10737 beos*)
10738   library_names_spec='${libname}${shared_ext}'
10739   dynamic_linker="$host_os ld.so"
10740   shlibpath_var=LIBRARY_PATH
10741   ;;
10742
10743 bsdi[45]*)
10744   version_type=linux # correct to gnu/linux during the next big refactor
10745   need_version=no
10746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747   soname_spec='${libname}${release}${shared_ext}$major'
10748   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10749   shlibpath_var=LD_LIBRARY_PATH
10750   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10751   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10752   # the default ld.so.conf also contains /usr/contrib/lib and
10753   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10754   # libtool to hard-code these into programs
10755   ;;
10756
10757 cygwin* | mingw* | pw32* | cegcc*)
10758   version_type=windows
10759   shrext_cmds=".dll"
10760   need_version=no
10761   need_lib_prefix=no
10762
10763   case $GCC,$cc_basename in
10764   yes,*)
10765     # gcc
10766     library_names_spec='$libname.dll.a'
10767     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10768     postinstall_cmds='base_file=`basename \${file}`~
10769       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10770       dldir=$destdir/`dirname \$dlpath`~
10771       test -d \$dldir || mkdir -p \$dldir~
10772       $install_prog $dir/$dlname \$dldir/$dlname~
10773       chmod a+x \$dldir/$dlname~
10774       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10775         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10776       fi'
10777     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10778       dlpath=$dir/\$dldll~
10779        $RM \$dlpath'
10780     shlibpath_overrides_runpath=yes
10781
10782     case $host_os in
10783     cygwin*)
10784       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10785       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10786
10787       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10788       ;;
10789     mingw* | cegcc*)
10790       # MinGW DLLs use traditional 'lib' prefix
10791       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10792       ;;
10793     pw32*)
10794       # pw32 DLLs use 'pw' prefix rather than 'lib'
10795       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10796       ;;
10797     esac
10798     dynamic_linker='Win32 ld.exe'
10799     ;;
10800
10801   *,cl*)
10802     # Native MSVC
10803     libname_spec='$name'
10804     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10805     library_names_spec='${libname}.dll.lib'
10806
10807     case $build_os in
10808     mingw*)
10809       sys_lib_search_path_spec=
10810       lt_save_ifs=$IFS
10811       IFS=';'
10812       for lt_path in $LIB
10813       do
10814         IFS=$lt_save_ifs
10815         # Let DOS variable expansion print the short 8.3 style file name.
10816         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10817         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10818       done
10819       IFS=$lt_save_ifs
10820       # Convert to MSYS style.
10821       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10822       ;;
10823     cygwin*)
10824       # Convert to unix form, then to dos form, then back to unix form
10825       # but this time dos style (no spaces!) so that the unix form looks
10826       # like /cygdrive/c/PROGRA~1:/cygdr...
10827       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10828       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10829       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10830       ;;
10831     *)
10832       sys_lib_search_path_spec="$LIB"
10833       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10834         # It is most probably a Windows format PATH.
10835         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10836       else
10837         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10838       fi
10839       # FIXME: find the short name or the path components, as spaces are
10840       # common. (e.g. "Program Files" -> "PROGRA~1")
10841       ;;
10842     esac
10843
10844     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10845     postinstall_cmds='base_file=`basename \${file}`~
10846       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10847       dldir=$destdir/`dirname \$dlpath`~
10848       test -d \$dldir || mkdir -p \$dldir~
10849       $install_prog $dir/$dlname \$dldir/$dlname'
10850     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10851       dlpath=$dir/\$dldll~
10852        $RM \$dlpath'
10853     shlibpath_overrides_runpath=yes
10854     dynamic_linker='Win32 link.exe'
10855     ;;
10856
10857   *)
10858     # Assume MSVC wrapper
10859     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10860     dynamic_linker='Win32 ld.exe'
10861     ;;
10862   esac
10863   # FIXME: first we should search . and the directory the executable is in
10864   shlibpath_var=PATH
10865   ;;
10866
10867 darwin* | rhapsody*)
10868   dynamic_linker="$host_os dyld"
10869   version_type=darwin
10870   need_lib_prefix=no
10871   need_version=no
10872   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10873   soname_spec='${libname}${release}${major}$shared_ext'
10874   shlibpath_overrides_runpath=yes
10875   shlibpath_var=DYLD_LIBRARY_PATH
10876   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10877
10878   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10879   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10880   ;;
10881
10882 dgux*)
10883   version_type=linux # correct to gnu/linux during the next big refactor
10884   need_lib_prefix=no
10885   need_version=no
10886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10887   soname_spec='${libname}${release}${shared_ext}$major'
10888   shlibpath_var=LD_LIBRARY_PATH
10889   ;;
10890
10891 freebsd* | dragonfly*)
10892   # DragonFly does not have aout.  When/if they implement a new
10893   # versioning mechanism, adjust this.
10894   if test -x /usr/bin/objformat; then
10895     objformat=`/usr/bin/objformat`
10896   else
10897     case $host_os in
10898     freebsd[23].*) objformat=aout ;;
10899     *) objformat=elf ;;
10900     esac
10901   fi
10902   version_type=freebsd-$objformat
10903   case $version_type in
10904     freebsd-elf*)
10905       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10906       need_version=no
10907       need_lib_prefix=no
10908       ;;
10909     freebsd-*)
10910       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10911       need_version=yes
10912       ;;
10913   esac
10914   shlibpath_var=LD_LIBRARY_PATH
10915   case $host_os in
10916   freebsd2.*)
10917     shlibpath_overrides_runpath=yes
10918     ;;
10919   freebsd3.[01]* | freebsdelf3.[01]*)
10920     shlibpath_overrides_runpath=yes
10921     hardcode_into_libs=yes
10922     ;;
10923   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10924   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10925     shlibpath_overrides_runpath=no
10926     hardcode_into_libs=yes
10927     ;;
10928   *) # from 4.6 on, and DragonFly
10929     shlibpath_overrides_runpath=yes
10930     hardcode_into_libs=yes
10931     ;;
10932   esac
10933   ;;
10934
10935 gnu*)
10936   version_type=linux # correct to gnu/linux during the next big refactor
10937   need_lib_prefix=no
10938   need_version=no
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10940   soname_spec='${libname}${release}${shared_ext}$major'
10941   shlibpath_var=LD_LIBRARY_PATH
10942   shlibpath_overrides_runpath=no
10943   hardcode_into_libs=yes
10944   ;;
10945
10946 haiku*)
10947   version_type=linux # correct to gnu/linux during the next big refactor
10948   need_lib_prefix=no
10949   need_version=no
10950   dynamic_linker="$host_os runtime_loader"
10951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10952   soname_spec='${libname}${release}${shared_ext}$major'
10953   shlibpath_var=LIBRARY_PATH
10954   shlibpath_overrides_runpath=yes
10955   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10956   hardcode_into_libs=yes
10957   ;;
10958
10959 hpux9* | hpux10* | hpux11*)
10960   # Give a soname corresponding to the major version so that dld.sl refuses to
10961   # link against other versions.
10962   version_type=sunos
10963   need_lib_prefix=no
10964   need_version=no
10965   case $host_cpu in
10966   ia64*)
10967     shrext_cmds='.so'
10968     hardcode_into_libs=yes
10969     dynamic_linker="$host_os dld.so"
10970     shlibpath_var=LD_LIBRARY_PATH
10971     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973     soname_spec='${libname}${release}${shared_ext}$major'
10974     if test "X$HPUX_IA64_MODE" = X32; then
10975       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10976     else
10977       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10978     fi
10979     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10980     ;;
10981   hppa*64*)
10982     shrext_cmds='.sl'
10983     hardcode_into_libs=yes
10984     dynamic_linker="$host_os dld.sl"
10985     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10986     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988     soname_spec='${libname}${release}${shared_ext}$major'
10989     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10990     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10991     ;;
10992   *)
10993     shrext_cmds='.sl'
10994     dynamic_linker="$host_os dld.sl"
10995     shlibpath_var=SHLIB_PATH
10996     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998     soname_spec='${libname}${release}${shared_ext}$major'
10999     ;;
11000   esac
11001   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11002   postinstall_cmds='chmod 555 $lib'
11003   # or fails outright, so override atomically:
11004   install_override_mode=555
11005   ;;
11006
11007 interix[3-9]*)
11008   version_type=linux # correct to gnu/linux during the next big refactor
11009   need_lib_prefix=no
11010   need_version=no
11011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11012   soname_spec='${libname}${release}${shared_ext}$major'
11013   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11014   shlibpath_var=LD_LIBRARY_PATH
11015   shlibpath_overrides_runpath=no
11016   hardcode_into_libs=yes
11017   ;;
11018
11019 irix5* | irix6* | nonstopux*)
11020   case $host_os in
11021     nonstopux*) version_type=nonstopux ;;
11022     *)
11023         if test "$lt_cv_prog_gnu_ld" = yes; then
11024                 version_type=linux # correct to gnu/linux during the next big refactor
11025         else
11026                 version_type=irix
11027         fi ;;
11028   esac
11029   need_lib_prefix=no
11030   need_version=no
11031   soname_spec='${libname}${release}${shared_ext}$major'
11032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11033   case $host_os in
11034   irix5* | nonstopux*)
11035     libsuff= shlibsuff=
11036     ;;
11037   *)
11038     case $LD in # libtool.m4 will add one of these switches to LD
11039     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11040       libsuff= shlibsuff= libmagic=32-bit;;
11041     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11042       libsuff=32 shlibsuff=N32 libmagic=N32;;
11043     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11044       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11045     *) libsuff= shlibsuff= libmagic=never-match;;
11046     esac
11047     ;;
11048   esac
11049   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11050   shlibpath_overrides_runpath=no
11051   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11052   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11053   hardcode_into_libs=yes
11054   ;;
11055
11056 # No shared lib support for Linux oldld, aout, or coff.
11057 linux*oldld* | linux*aout* | linux*coff*)
11058   dynamic_linker=no
11059   ;;
11060
11061 # This must be glibc/ELF.
11062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11069   shlibpath_var=LD_LIBRARY_PATH
11070   shlibpath_overrides_runpath=no
11071
11072   # Some binutils ld are patched to set DT_RUNPATH
11073   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11074   $as_echo_n "(cached) " >&6
11075 else
11076   lt_cv_shlibpath_overrides_runpath=no
11077     save_LDFLAGS=$LDFLAGS
11078     save_libdir=$libdir
11079     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11080          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h.  */
11083
11084 int
11085 main ()
11086 {
11087
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_link "$LINENO"; then :
11093   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11094   lt_cv_shlibpath_overrides_runpath=yes
11095 fi
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext \
11098     conftest$ac_exeext conftest.$ac_ext
11099     LDFLAGS=$save_LDFLAGS
11100     libdir=$save_libdir
11101
11102 fi
11103
11104   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11105
11106   # This implies no fast_install, which is unacceptable.
11107   # Some rework will be needed to allow for fast_install
11108   # before this can be enabled.
11109   hardcode_into_libs=yes
11110
11111   # Append ld.so.conf contents to the search path
11112   if test -f /etc/ld.so.conf; then
11113     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' ' '`
11114     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11115   fi
11116
11117   # We used to test for /lib/ld.so.1 and disable shared libraries on
11118   # powerpc, because MkLinux only supported shared libraries with the
11119   # GNU dynamic linker.  Since this was broken with cross compilers,
11120   # most powerpc-linux boxes support dynamic linking these days and
11121   # people can always --disable-shared, the test was removed, and we
11122   # assume the GNU/Linux dynamic linker is in use.
11123   dynamic_linker='GNU/Linux ld.so'
11124   ;;
11125
11126 netbsd*)
11127   version_type=sunos
11128   need_lib_prefix=no
11129   need_version=no
11130   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11132     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11133     dynamic_linker='NetBSD (a.out) ld.so'
11134   else
11135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11136     soname_spec='${libname}${release}${shared_ext}$major'
11137     dynamic_linker='NetBSD ld.elf_so'
11138   fi
11139   shlibpath_var=LD_LIBRARY_PATH
11140   shlibpath_overrides_runpath=yes
11141   hardcode_into_libs=yes
11142   ;;
11143
11144 newsos6)
11145   version_type=linux # correct to gnu/linux during the next big refactor
11146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147   shlibpath_var=LD_LIBRARY_PATH
11148   shlibpath_overrides_runpath=yes
11149   ;;
11150
11151 *nto* | *qnx*)
11152   version_type=qnx
11153   need_lib_prefix=no
11154   need_version=no
11155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11156   soname_spec='${libname}${release}${shared_ext}$major'
11157   shlibpath_var=LD_LIBRARY_PATH
11158   shlibpath_overrides_runpath=no
11159   hardcode_into_libs=yes
11160   dynamic_linker='ldqnx.so'
11161   ;;
11162
11163 openbsd*)
11164   version_type=sunos
11165   sys_lib_dlsearch_path_spec="/usr/lib"
11166   need_lib_prefix=no
11167   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11168   case $host_os in
11169     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11170     *)                          need_version=no  ;;
11171   esac
11172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11173   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11174   shlibpath_var=LD_LIBRARY_PATH
11175   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11176     case $host_os in
11177       openbsd2.[89] | openbsd2.[89].*)
11178         shlibpath_overrides_runpath=no
11179         ;;
11180       *)
11181         shlibpath_overrides_runpath=yes
11182         ;;
11183       esac
11184   else
11185     shlibpath_overrides_runpath=yes
11186   fi
11187   ;;
11188
11189 os2*)
11190   libname_spec='$name'
11191   shrext_cmds=".dll"
11192   need_lib_prefix=no
11193   library_names_spec='$libname${shared_ext} $libname.a'
11194   dynamic_linker='OS/2 ld.exe'
11195   shlibpath_var=LIBPATH
11196   ;;
11197
11198 osf3* | osf4* | osf5*)
11199   version_type=osf
11200   need_lib_prefix=no
11201   need_version=no
11202   soname_spec='${libname}${release}${shared_ext}$major'
11203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204   shlibpath_var=LD_LIBRARY_PATH
11205   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11206   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11207   ;;
11208
11209 rdos*)
11210   dynamic_linker=no
11211   ;;
11212
11213 solaris*)
11214   version_type=linux # correct to gnu/linux during the next big refactor
11215   need_lib_prefix=no
11216   need_version=no
11217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218   soname_spec='${libname}${release}${shared_ext}$major'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   shlibpath_overrides_runpath=yes
11221   hardcode_into_libs=yes
11222   # ldd complains unless libraries are executable
11223   postinstall_cmds='chmod +x $lib'
11224   ;;
11225
11226 sunos4*)
11227   version_type=sunos
11228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11229   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11230   shlibpath_var=LD_LIBRARY_PATH
11231   shlibpath_overrides_runpath=yes
11232   if test "$with_gnu_ld" = yes; then
11233     need_lib_prefix=no
11234   fi
11235   need_version=yes
11236   ;;
11237
11238 sysv4 | sysv4.3*)
11239   version_type=linux # correct to gnu/linux during the next big refactor
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   case $host_vendor in
11244     sni)
11245       shlibpath_overrides_runpath=no
11246       need_lib_prefix=no
11247       runpath_var=LD_RUN_PATH
11248       ;;
11249     siemens)
11250       need_lib_prefix=no
11251       ;;
11252     motorola)
11253       need_lib_prefix=no
11254       need_version=no
11255       shlibpath_overrides_runpath=no
11256       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11257       ;;
11258   esac
11259   ;;
11260
11261 sysv4*MP*)
11262   if test -d /usr/nec ;then
11263     version_type=linux # correct to gnu/linux during the next big refactor
11264     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11265     soname_spec='$libname${shared_ext}.$major'
11266     shlibpath_var=LD_LIBRARY_PATH
11267   fi
11268   ;;
11269
11270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11271   version_type=freebsd-elf
11272   need_lib_prefix=no
11273   need_version=no
11274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11275   soname_spec='${libname}${release}${shared_ext}$major'
11276   shlibpath_var=LD_LIBRARY_PATH
11277   shlibpath_overrides_runpath=yes
11278   hardcode_into_libs=yes
11279   if test "$with_gnu_ld" = yes; then
11280     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11281   else
11282     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11283     case $host_os in
11284       sco3.2v5*)
11285         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11286         ;;
11287     esac
11288   fi
11289   sys_lib_dlsearch_path_spec='/usr/lib'
11290   ;;
11291
11292 tpf*)
11293   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11294   version_type=linux # correct to gnu/linux during the next big refactor
11295   need_lib_prefix=no
11296   need_version=no
11297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298   shlibpath_var=LD_LIBRARY_PATH
11299   shlibpath_overrides_runpath=no
11300   hardcode_into_libs=yes
11301   ;;
11302
11303 uts4*)
11304   version_type=linux # correct to gnu/linux during the next big refactor
11305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306   soname_spec='${libname}${release}${shared_ext}$major'
11307   shlibpath_var=LD_LIBRARY_PATH
11308   ;;
11309
11310 *)
11311   dynamic_linker=no
11312   ;;
11313 esac
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11315 $as_echo "$dynamic_linker" >&6; }
11316 test "$dynamic_linker" = no && can_build_shared=no
11317
11318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11319 if test "$GCC" = yes; then
11320   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11321 fi
11322
11323 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11324   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11325 fi
11326 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11327   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11328 fi
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11422 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11423 hardcode_action=
11424 if test -n "$hardcode_libdir_flag_spec" ||
11425    test -n "$runpath_var" ||
11426    test "X$hardcode_automatic" = "Xyes" ; then
11427
11428   # We can hardcode non-existent directories.
11429   if test "$hardcode_direct" != no &&
11430      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11431      # have to relink, otherwise we might link with an installed library
11432      # when we should be linking with a yet-to-be-installed one
11433      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11434      test "$hardcode_minus_L" != no; then
11435     # Linking always hardcodes the temporary library directory.
11436     hardcode_action=relink
11437   else
11438     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11439     hardcode_action=immediate
11440   fi
11441 else
11442   # We cannot hardcode anything, or else we can only hardcode existing
11443   # directories.
11444   hardcode_action=unsupported
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11447 $as_echo "$hardcode_action" >&6; }
11448
11449 if test "$hardcode_action" = relink ||
11450    test "$inherit_rpath" = yes; then
11451   # Fast installation is not supported
11452   enable_fast_install=no
11453 elif test "$shlibpath_overrides_runpath" = yes ||
11454      test "$enable_shared" = no; then
11455   # Fast installation is not necessary
11456   enable_fast_install=needless
11457 fi
11458
11459
11460
11461
11462
11463
11464   if test "x$enable_dlopen" != xyes; then
11465   enable_dlopen=unknown
11466   enable_dlopen_self=unknown
11467   enable_dlopen_self_static=unknown
11468 else
11469   lt_cv_dlopen=no
11470   lt_cv_dlopen_libs=
11471
11472   case $host_os in
11473   beos*)
11474     lt_cv_dlopen="load_add_on"
11475     lt_cv_dlopen_libs=
11476     lt_cv_dlopen_self=yes
11477     ;;
11478
11479   mingw* | pw32* | cegcc*)
11480     lt_cv_dlopen="LoadLibrary"
11481     lt_cv_dlopen_libs=
11482     ;;
11483
11484   cygwin*)
11485     lt_cv_dlopen="dlopen"
11486     lt_cv_dlopen_libs=
11487     ;;
11488
11489   darwin*)
11490   # if libdl is installed we need to link against it
11491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11493 if ${ac_cv_lib_dl_dlopen+:} false; then :
11494   $as_echo_n "(cached) " >&6
11495 else
11496   ac_check_lib_save_LIBS=$LIBS
11497 LIBS="-ldl  $LIBS"
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h.  */
11500
11501 /* Override any GCC internal prototype to avoid an error.
11502    Use char because int might match the return type of a GCC
11503    builtin and then its argument prototype would still apply.  */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 char dlopen ();
11508 int
11509 main ()
11510 {
11511 return dlopen ();
11512   ;
11513   return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517   ac_cv_lib_dl_dlopen=yes
11518 else
11519   ac_cv_lib_dl_dlopen=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522     conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11527 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11528   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11529 else
11530
11531     lt_cv_dlopen="dyld"
11532     lt_cv_dlopen_libs=
11533     lt_cv_dlopen_self=yes
11534
11535 fi
11536
11537     ;;
11538
11539   *)
11540     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11541 if test "x$ac_cv_func_shl_load" = xyes; then :
11542   lt_cv_dlopen="shl_load"
11543 else
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11545 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11546 if ${ac_cv_lib_dld_shl_load+:} false; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549   ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-ldld  $LIBS"
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h.  */
11553
11554 /* Override any GCC internal prototype to avoid an error.
11555    Use char because int might match the return type of a GCC
11556    builtin and then its argument prototype would still apply.  */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 char shl_load ();
11561 int
11562 main ()
11563 {
11564 return shl_load ();
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_link "$LINENO"; then :
11570   ac_cv_lib_dld_shl_load=yes
11571 else
11572   ac_cv_lib_dld_shl_load=no
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext \
11575     conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11577 fi
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11579 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11580 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11581   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11582 else
11583   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11584 if test "x$ac_cv_func_dlopen" = xyes; then :
11585   lt_cv_dlopen="dlopen"
11586 else
11587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11589 if ${ac_cv_lib_dl_dlopen+:} false; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592   ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-ldl  $LIBS"
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h.  */
11596
11597 /* Override any GCC internal prototype to avoid an error.
11598    Use char because int might match the return type of a GCC
11599    builtin and then its argument prototype would still apply.  */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 char dlopen ();
11604 int
11605 main ()
11606 {
11607 return dlopen ();
11608   ;
11609   return 0;
11610 }
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613   ac_cv_lib_dl_dlopen=yes
11614 else
11615   ac_cv_lib_dl_dlopen=no
11616 fi
11617 rm -f core conftest.err conftest.$ac_objext \
11618     conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11620 fi
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11623 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11624   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11625 else
11626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11627 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11628 if ${ac_cv_lib_svld_dlopen+:} false; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lsvld  $LIBS"
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h.  */
11635
11636 /* Override any GCC internal prototype to avoid an error.
11637    Use char because int might match the return type of a GCC
11638    builtin and then its argument prototype would still apply.  */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 char dlopen ();
11643 int
11644 main ()
11645 {
11646 return dlopen ();
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 if ac_fn_c_try_link "$LINENO"; then :
11652   ac_cv_lib_svld_dlopen=yes
11653 else
11654   ac_cv_lib_svld_dlopen=no
11655 fi
11656 rm -f core conftest.err conftest.$ac_objext \
11657     conftest$ac_exeext conftest.$ac_ext
11658 LIBS=$ac_check_lib_save_LIBS
11659 fi
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11661 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11662 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11663   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11664 else
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11666 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11667 if ${ac_cv_lib_dld_dld_link+:} false; then :
11668   $as_echo_n "(cached) " >&6
11669 else
11670   ac_check_lib_save_LIBS=$LIBS
11671 LIBS="-ldld  $LIBS"
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h.  */
11674
11675 /* Override any GCC internal prototype to avoid an error.
11676    Use char because int might match the return type of a GCC
11677    builtin and then its argument prototype would still apply.  */
11678 #ifdef __cplusplus
11679 extern "C"
11680 #endif
11681 char dld_link ();
11682 int
11683 main ()
11684 {
11685 return dld_link ();
11686   ;
11687   return 0;
11688 }
11689 _ACEOF
11690 if ac_fn_c_try_link "$LINENO"; then :
11691   ac_cv_lib_dld_dld_link=yes
11692 else
11693   ac_cv_lib_dld_dld_link=no
11694 fi
11695 rm -f core conftest.err conftest.$ac_objext \
11696     conftest$ac_exeext conftest.$ac_ext
11697 LIBS=$ac_check_lib_save_LIBS
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11700 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11701 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11702   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11703 fi
11704
11705
11706 fi
11707
11708
11709 fi
11710
11711
11712 fi
11713
11714
11715 fi
11716
11717
11718 fi
11719
11720     ;;
11721   esac
11722
11723   if test "x$lt_cv_dlopen" != xno; then
11724     enable_dlopen=yes
11725   else
11726     enable_dlopen=no
11727   fi
11728
11729   case $lt_cv_dlopen in
11730   dlopen)
11731     save_CPPFLAGS="$CPPFLAGS"
11732     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11733
11734     save_LDFLAGS="$LDFLAGS"
11735     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11736
11737     save_LIBS="$LIBS"
11738     LIBS="$lt_cv_dlopen_libs $LIBS"
11739
11740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11741 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11742 if ${lt_cv_dlopen_self+:} false; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745           if test "$cross_compiling" = yes; then :
11746   lt_cv_dlopen_self=cross
11747 else
11748   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11749   lt_status=$lt_dlunknown
11750   cat > conftest.$ac_ext <<_LT_EOF
11751 #line $LINENO "configure"
11752 #include "confdefs.h"
11753
11754 #if HAVE_DLFCN_H
11755 #include <dlfcn.h>
11756 #endif
11757
11758 #include <stdio.h>
11759
11760 #ifdef RTLD_GLOBAL
11761 #  define LT_DLGLOBAL           RTLD_GLOBAL
11762 #else
11763 #  ifdef DL_GLOBAL
11764 #    define LT_DLGLOBAL         DL_GLOBAL
11765 #  else
11766 #    define LT_DLGLOBAL         0
11767 #  endif
11768 #endif
11769
11770 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11771    find out it does not work in some platform. */
11772 #ifndef LT_DLLAZY_OR_NOW
11773 #  ifdef RTLD_LAZY
11774 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11775 #  else
11776 #    ifdef DL_LAZY
11777 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11778 #    else
11779 #      ifdef RTLD_NOW
11780 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11781 #      else
11782 #        ifdef DL_NOW
11783 #          define LT_DLLAZY_OR_NOW      DL_NOW
11784 #        else
11785 #          define LT_DLLAZY_OR_NOW      0
11786 #        endif
11787 #      endif
11788 #    endif
11789 #  endif
11790 #endif
11791
11792 /* When -fvisbility=hidden is used, assume the code has been annotated
11793    correspondingly for the symbols needed.  */
11794 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11795 int fnord () __attribute__((visibility("default")));
11796 #endif
11797
11798 int fnord () { return 42; }
11799 int main ()
11800 {
11801   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11802   int status = $lt_dlunknown;
11803
11804   if (self)
11805     {
11806       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11807       else
11808         {
11809           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11810           else puts (dlerror ());
11811         }
11812       /* dlclose (self); */
11813     }
11814   else
11815     puts (dlerror ());
11816
11817   return status;
11818 }
11819 _LT_EOF
11820   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11821   (eval $ac_link) 2>&5
11822   ac_status=$?
11823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11824   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11825     (./conftest; exit; ) >&5 2>/dev/null
11826     lt_status=$?
11827     case x$lt_status in
11828       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11829       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11830       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11831     esac
11832   else :
11833     # compilation failed
11834     lt_cv_dlopen_self=no
11835   fi
11836 fi
11837 rm -fr conftest*
11838
11839
11840 fi
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11842 $as_echo "$lt_cv_dlopen_self" >&6; }
11843
11844     if test "x$lt_cv_dlopen_self" = xyes; then
11845       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11847 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11848 if ${lt_cv_dlopen_self_static+:} false; then :
11849   $as_echo_n "(cached) " >&6
11850 else
11851           if test "$cross_compiling" = yes; then :
11852   lt_cv_dlopen_self_static=cross
11853 else
11854   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11855   lt_status=$lt_dlunknown
11856   cat > conftest.$ac_ext <<_LT_EOF
11857 #line $LINENO "configure"
11858 #include "confdefs.h"
11859
11860 #if HAVE_DLFCN_H
11861 #include <dlfcn.h>
11862 #endif
11863
11864 #include <stdio.h>
11865
11866 #ifdef RTLD_GLOBAL
11867 #  define LT_DLGLOBAL           RTLD_GLOBAL
11868 #else
11869 #  ifdef DL_GLOBAL
11870 #    define LT_DLGLOBAL         DL_GLOBAL
11871 #  else
11872 #    define LT_DLGLOBAL         0
11873 #  endif
11874 #endif
11875
11876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11877    find out it does not work in some platform. */
11878 #ifndef LT_DLLAZY_OR_NOW
11879 #  ifdef RTLD_LAZY
11880 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11881 #  else
11882 #    ifdef DL_LAZY
11883 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11884 #    else
11885 #      ifdef RTLD_NOW
11886 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11887 #      else
11888 #        ifdef DL_NOW
11889 #          define LT_DLLAZY_OR_NOW      DL_NOW
11890 #        else
11891 #          define LT_DLLAZY_OR_NOW      0
11892 #        endif
11893 #      endif
11894 #    endif
11895 #  endif
11896 #endif
11897
11898 /* When -fvisbility=hidden is used, assume the code has been annotated
11899    correspondingly for the symbols needed.  */
11900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11901 int fnord () __attribute__((visibility("default")));
11902 #endif
11903
11904 int fnord () { return 42; }
11905 int main ()
11906 {
11907   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11908   int status = $lt_dlunknown;
11909
11910   if (self)
11911     {
11912       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11913       else
11914         {
11915           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11916           else puts (dlerror ());
11917         }
11918       /* dlclose (self); */
11919     }
11920   else
11921     puts (dlerror ());
11922
11923   return status;
11924 }
11925 _LT_EOF
11926   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11927   (eval $ac_link) 2>&5
11928   ac_status=$?
11929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11930   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11931     (./conftest; exit; ) >&5 2>/dev/null
11932     lt_status=$?
11933     case x$lt_status in
11934       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11935       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11936       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11937     esac
11938   else :
11939     # compilation failed
11940     lt_cv_dlopen_self_static=no
11941   fi
11942 fi
11943 rm -fr conftest*
11944
11945
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11948 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11949     fi
11950
11951     CPPFLAGS="$save_CPPFLAGS"
11952     LDFLAGS="$save_LDFLAGS"
11953     LIBS="$save_LIBS"
11954     ;;
11955   esac
11956
11957   case $lt_cv_dlopen_self in
11958   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11959   *) enable_dlopen_self=unknown ;;
11960   esac
11961
11962   case $lt_cv_dlopen_self_static in
11963   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11964   *) enable_dlopen_self_static=unknown ;;
11965   esac
11966 fi
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984 striplib=
11985 old_striplib=
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11987 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11988 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11989   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11990   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 $as_echo "yes" >&6; }
11993 else
11994 # FIXME - insert some real tests, host_os isn't really good enough
11995   case $host_os in
11996   darwin*)
11997     if test -n "$STRIP" ; then
11998       striplib="$STRIP -x"
11999       old_striplib="$STRIP -S"
12000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12001 $as_echo "yes" >&6; }
12002     else
12003       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12005     fi
12006     ;;
12007   *)
12008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010     ;;
12011   esac
12012 fi
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025   # Report which library types will actually be built
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12027 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12029 $as_echo "$can_build_shared" >&6; }
12030
12031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12032 $as_echo_n "checking whether to build shared libraries... " >&6; }
12033   test "$can_build_shared" = "no" && enable_shared=no
12034
12035   # On AIX, shared libraries and static libraries use the same namespace, and
12036   # are all built from PIC.
12037   case $host_os in
12038   aix3*)
12039     test "$enable_shared" = yes && enable_static=no
12040     if test -n "$RANLIB"; then
12041       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12042       postinstall_cmds='$RANLIB $lib'
12043     fi
12044     ;;
12045
12046   aix[4-9]*)
12047     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12048       test "$enable_shared" = yes && enable_static=no
12049     fi
12050     ;;
12051   esac
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12053 $as_echo "$enable_shared" >&6; }
12054
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12056 $as_echo_n "checking whether to build static libraries... " >&6; }
12057   # Make sure either enable_shared or enable_static is yes.
12058   test "$enable_shared" = yes || enable_static=yes
12059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12060 $as_echo "$enable_static" >&6; }
12061
12062
12063
12064
12065 fi
12066 ac_ext=c
12067 ac_cpp='$CPP $CPPFLAGS'
12068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12071
12072 CC="$lt_save_CC"
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088         ac_config_commands="$ac_config_commands libtool"
12089
12090
12091
12092
12093 # Only expand once:
12094
12095
12096
12097 for ac_func in _close _dup _fdopen _fileno _open _setmode _snprintf _strdup _stricmp fileno fseeko ftello getopt getprogname open setmode snprintf strcasecmp strdup stricmp
12098 do :
12099   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12100 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12101 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12102   cat >>confdefs.h <<_ACEOF
12103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12104 _ACEOF
12105
12106 fi
12107 done
12108
12109 for ac_func in mkstemp
12110 do :
12111   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12112 if test "x$ac_cv_func_mkstemp" = xyes; then :
12113   cat >>confdefs.h <<_ACEOF
12114 #define HAVE_MKSTEMP 1
12115 _ACEOF
12116
12117 else
12118   case " $LIBOBJS " in
12119   *" mkstemp.$ac_objext "* ) ;;
12120   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
12121  ;;
12122 esac
12123
12124 fi
12125 done
12126
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
12129 $as_echo_n "checking if libc defines __progname... " >&6; }
12130 if ${ac_cv_libc_defines___progname+:} false; then :
12131   $as_echo_n "(cached) " >&6
12132 else
12133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h.  */
12135
12136 int
12137 main ()
12138 {
12139  extern char *__progname; printf("%s", __progname);
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"; then :
12145    ac_cv_libc_defines___progname="yes"
12146 else
12147    ac_cv_libc_defines___progname="no"
12148 fi
12149 rm -f core conftest.err conftest.$ac_objext \
12150     conftest$ac_exeext conftest.$ac_ext
12151
12152 fi
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
12154 $as_echo "$ac_cv_libc_defines___progname" >&6; }
12155 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
12156
12157 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
12158
12159 fi
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are building for a Win32 host" >&5
12162 $as_echo_n "checking whether we are building for a Win32 host... " >&6; }
12163 if ${ac_cv_win32_host+:} false; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h.  */
12168 #ifdef _WIN32
12169  choke me
12170  #endif
12171
12172 _ACEOF
12173 if ac_fn_c_try_compile "$LINENO"; then :
12174   ac_cv_win32_host=no
12175 else
12176   ac_cv_win32_host=yes
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179 fi
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win32_host" >&5
12181 $as_echo "$ac_cv_win32_host" >&6; }
12182  if test "x$ac_cv_win32_host" = "xyes"; then
12183   WIN32_HOST_TRUE=
12184   WIN32_HOST_FALSE='#'
12185 else
12186   WIN32_HOST_TRUE='#'
12187   WIN32_HOST_FALSE=
12188 fi
12189
12190
12191 for ac_header in fts.h stdbool.h strings.h unistd.h
12192 do :
12193   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12194 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12195 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12196   cat >>confdefs.h <<_ACEOF
12197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12198 _ACEOF
12199
12200 fi
12201
12202 done
12203
12204
12205 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12206 if test "x$ac_cv_type_int8_t" = xyes; then :
12207
12208 cat >>confdefs.h <<_ACEOF
12209 #define HAVE_INT8_T 1
12210 _ACEOF
12211
12212
12213 fi
12214
12215 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12216 if test "x$ac_cv_type_int16_t" = xyes; then :
12217
12218 cat >>confdefs.h <<_ACEOF
12219 #define HAVE_INT16_T 1
12220 _ACEOF
12221
12222
12223 fi
12224
12225 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12226 if test "x$ac_cv_type_int32_t" = xyes; then :
12227
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_INT32_T 1
12230 _ACEOF
12231
12232
12233 fi
12234
12235 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12236 if test "x$ac_cv_type_int64_t" = xyes; then :
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_INT64_T 1
12240 _ACEOF
12241
12242
12243 fi
12244
12245 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12246 if test "x$ac_cv_type_uint8_t" = xyes; then :
12247
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_UINT8_T 1
12250 _ACEOF
12251
12252
12253 fi
12254
12255 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12256 if test "x$ac_cv_type_uint16_t" = xyes; then :
12257
12258 cat >>confdefs.h <<_ACEOF
12259 #define HAVE_UINT16_T 1
12260 _ACEOF
12261
12262
12263 fi
12264
12265 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12266 if test "x$ac_cv_type_uint32_t" = xyes; then :
12267
12268 cat >>confdefs.h <<_ACEOF
12269 #define HAVE_UINT32_T 1
12270 _ACEOF
12271
12272
12273 fi
12274
12275 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12276 if test "x$ac_cv_type_uint64_t" = xyes; then :
12277
12278 cat >>confdefs.h <<_ACEOF
12279 #define HAVE_UINT64_T 1
12280 _ACEOF
12281
12282
12283 fi
12284
12285 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12286 if test "x$ac_cv_type_ssize_t" = xyes; then :
12287
12288 cat >>confdefs.h <<_ACEOF
12289 #define HAVE_SSIZE_T 1
12290 _ACEOF
12291
12292
12293 fi
12294
12295
12296 # The cast to long int works around a bug in the HP C Compiler
12297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12299 # This bug is HP SR number 8606223364.
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12301 $as_echo_n "checking size of short... " >&6; }
12302 if ${ac_cv_sizeof_short+:} false; then :
12303   $as_echo_n "(cached) " >&6
12304 else
12305   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12306
12307 else
12308   if test "$ac_cv_type_short" = yes; then
12309      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12311 as_fn_error 77 "cannot compute sizeof (short)
12312 See \`config.log' for more details" "$LINENO" 5; }
12313    else
12314      ac_cv_sizeof_short=0
12315    fi
12316 fi
12317
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12320 $as_echo "$ac_cv_sizeof_short" >&6; }
12321
12322
12323
12324 cat >>confdefs.h <<_ACEOF
12325 #define SIZEOF_SHORT $ac_cv_sizeof_short
12326 _ACEOF
12327
12328
12329 # The cast to long int works around a bug in the HP C Compiler
12330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12332 # This bug is HP SR number 8606223364.
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12334 $as_echo_n "checking size of int... " >&6; }
12335 if ${ac_cv_sizeof_int+:} false; then :
12336   $as_echo_n "(cached) " >&6
12337 else
12338   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12339
12340 else
12341   if test "$ac_cv_type_int" = yes; then
12342      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12344 as_fn_error 77 "cannot compute sizeof (int)
12345 See \`config.log' for more details" "$LINENO" 5; }
12346    else
12347      ac_cv_sizeof_int=0
12348    fi
12349 fi
12350
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12353 $as_echo "$ac_cv_sizeof_int" >&6; }
12354
12355
12356
12357 cat >>confdefs.h <<_ACEOF
12358 #define SIZEOF_INT $ac_cv_sizeof_int
12359 _ACEOF
12360
12361
12362 # The cast to long int works around a bug in the HP C Compiler
12363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12364 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12365 # This bug is HP SR number 8606223364.
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12367 $as_echo_n "checking size of long... " >&6; }
12368 if ${ac_cv_sizeof_long+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12372
12373 else
12374   if test "$ac_cv_type_long" = yes; then
12375      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12377 as_fn_error 77 "cannot compute sizeof (long)
12378 See \`config.log' for more details" "$LINENO" 5; }
12379    else
12380      ac_cv_sizeof_long=0
12381    fi
12382 fi
12383
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12386 $as_echo "$ac_cv_sizeof_long" >&6; }
12387
12388
12389
12390 cat >>confdefs.h <<_ACEOF
12391 #define SIZEOF_LONG $ac_cv_sizeof_long
12392 _ACEOF
12393
12394
12395 # The cast to long int works around a bug in the HP C Compiler
12396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12398 # This bug is HP SR number 8606223364.
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12400 $as_echo_n "checking size of long long... " >&6; }
12401 if ${ac_cv_sizeof_long_long+:} false; then :
12402   $as_echo_n "(cached) " >&6
12403 else
12404   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12405
12406 else
12407   if test "$ac_cv_type_long_long" = yes; then
12408      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12410 as_fn_error 77 "cannot compute sizeof (long long)
12411 See \`config.log' for more details" "$LINENO" 5; }
12412    else
12413      ac_cv_sizeof_long_long=0
12414    fi
12415 fi
12416
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12419 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12420
12421
12422
12423 cat >>confdefs.h <<_ACEOF
12424 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12425 _ACEOF
12426
12427
12428 # The cast to long int works around a bug in the HP C Compiler
12429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12431 # This bug is HP SR number 8606223364.
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12433 $as_echo_n "checking size of off_t... " >&6; }
12434 if ${ac_cv_sizeof_off_t+:} false; then :
12435   $as_echo_n "(cached) " >&6
12436 else
12437   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12438
12439 else
12440   if test "$ac_cv_type_off_t" = yes; then
12441      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12443 as_fn_error 77 "cannot compute sizeof (off_t)
12444 See \`config.log' for more details" "$LINENO" 5; }
12445    else
12446      ac_cv_sizeof_off_t=0
12447    fi
12448 fi
12449
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12452 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12453
12454
12455
12456 cat >>confdefs.h <<_ACEOF
12457 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12458 _ACEOF
12459
12460
12461 # The cast to long int works around a bug in the HP C Compiler
12462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12464 # This bug is HP SR number 8606223364.
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12466 $as_echo_n "checking size of size_t... " >&6; }
12467 if ${ac_cv_sizeof_size_t+:} false; then :
12468   $as_echo_n "(cached) " >&6
12469 else
12470   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12471
12472 else
12473   if test "$ac_cv_type_size_t" = yes; then
12474      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12476 as_fn_error 77 "cannot compute sizeof (size_t)
12477 See \`config.log' for more details" "$LINENO" 5; }
12478    else
12479      ac_cv_sizeof_size_t=0
12480    fi
12481 fi
12482
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12485 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12486
12487
12488
12489 cat >>confdefs.h <<_ACEOF
12490 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12491 _ACEOF
12492
12493
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12496 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12497 if ${ac_cv_struct_tm+:} false; then :
12498   $as_echo_n "(cached) " >&6
12499 else
12500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h.  */
12502 #include <sys/types.h>
12503 #include <time.h>
12504
12505 int
12506 main ()
12507 {
12508 struct tm tm;
12509                                      int *p = &tm.tm_sec;
12510                                      return !p;
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 if ac_fn_c_try_compile "$LINENO"; then :
12516   ac_cv_struct_tm=time.h
12517 else
12518   ac_cv_struct_tm=sys/time.h
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521 fi
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12523 $as_echo "$ac_cv_struct_tm" >&6; }
12524 if test $ac_cv_struct_tm = sys/time.h; then
12525
12526 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12527
12528 fi
12529
12530 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12531 #include <$ac_cv_struct_tm>
12532
12533 "
12534 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12535
12536 cat >>confdefs.h <<_ACEOF
12537 #define HAVE_STRUCT_TM_TM_ZONE 1
12538 _ACEOF
12539
12540
12541 fi
12542
12543 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12544
12545 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12546
12547 else
12548   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12549 "
12550 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12551   ac_have_decl=1
12552 else
12553   ac_have_decl=0
12554 fi
12555
12556 cat >>confdefs.h <<_ACEOF
12557 #define HAVE_DECL_TZNAME $ac_have_decl
12558 _ACEOF
12559
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12561 $as_echo_n "checking for tzname... " >&6; }
12562 if ${ac_cv_var_tzname+:} false; then :
12563   $as_echo_n "(cached) " >&6
12564 else
12565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h.  */
12567 #include <time.h>
12568 #if !HAVE_DECL_TZNAME
12569 extern char *tzname[];
12570 #endif
12571
12572 int
12573 main ()
12574 {
12575 return tzname[0][0];
12576   ;
12577   return 0;
12578 }
12579 _ACEOF
12580 if ac_fn_c_try_link "$LINENO"; then :
12581   ac_cv_var_tzname=yes
12582 else
12583   ac_cv_var_tzname=no
12584 fi
12585 rm -f core conftest.err conftest.$ac_objext \
12586     conftest$ac_exeext conftest.$ac_ext
12587 fi
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12589 $as_echo "$ac_cv_var_tzname" >&6; }
12590   if test $ac_cv_var_tzname = yes; then
12591
12592 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12593
12594   fi
12595 fi
12596
12597
12598 case $host_os
12599 in
12600     *bsd*) MANFMT=mdoc;;
12601     *) MANFMT=man;;
12602 esac
12603
12604
12605
12606
12607
12608
12609   CFLAG_VISIBILITY=
12610   HAVE_VISIBILITY=0
12611   if test -n "$GCC"; then
12612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12613 $as_echo_n "checking for simple visibility declarations... " >&6; }
12614     if ${gl_cv_cc_visibility+:} false; then :
12615   $as_echo_n "(cached) " >&6
12616 else
12617
12618       gl_save_CFLAGS="$CFLAGS"
12619       CFLAGS="$CFLAGS -fvisibility=hidden"
12620       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h.  */
12622 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12623          extern __attribute__((__visibility__("default"))) int exportedvar;
12624          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12625          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12626 int
12627 main ()
12628 {
12629
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_compile "$LINENO"; then :
12635   gl_cv_cc_visibility=yes
12636 else
12637   gl_cv_cc_visibility=no
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640       CFLAGS="$gl_save_CFLAGS"
12641 fi
12642
12643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12644 $as_echo "$gl_cv_cc_visibility" >&6; }
12645     if test $gl_cv_cc_visibility = yes; then
12646       CFLAG_VISIBILITY="-fvisibility=hidden"
12647       HAVE_VISIBILITY=1
12648     fi
12649   fi
12650
12651
12652
12653 cat >>confdefs.h <<_ACEOF
12654 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12655 _ACEOF
12656
12657
12658
12659 ac_config_files="$ac_config_files Makefile libzip.pc libzip-uninstalled.pc examples/Makefile man/Makefile lib/Makefile regress/Makefile src/Makefile"
12660
12661 cat >confcache <<\_ACEOF
12662 # This file is a shell script that caches the results of configure
12663 # tests run on this system so they can be shared between configure
12664 # scripts and configure runs, see configure's option --config-cache.
12665 # It is not useful on other systems.  If it contains results you don't
12666 # want to keep, you may remove or edit it.
12667 #
12668 # config.status only pays attention to the cache file if you give it
12669 # the --recheck option to rerun configure.
12670 #
12671 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12673 # following values.
12674
12675 _ACEOF
12676
12677 # The following way of writing the cache mishandles newlines in values,
12678 # but we know of no workaround that is simple, portable, and efficient.
12679 # So, we kill variables containing newlines.
12680 # Ultrix sh set writes to stderr and can't be redirected directly,
12681 # and sets the high bit in the cache file unless we assign to the vars.
12682 (
12683   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12684     eval ac_val=\$$ac_var
12685     case $ac_val in #(
12686     *${as_nl}*)
12687       case $ac_var in #(
12688       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12689 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12690       esac
12691       case $ac_var in #(
12692       _ | IFS | as_nl) ;; #(
12693       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12694       *) { eval $ac_var=; unset $ac_var;} ;;
12695       esac ;;
12696     esac
12697   done
12698
12699   (set) 2>&1 |
12700     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12701     *${as_nl}ac_space=\ *)
12702       # `set' does not quote correctly, so add quotes: double-quote
12703       # substitution turns \\\\ into \\, and sed turns \\ into \.
12704       sed -n \
12705         "s/'/'\\\\''/g;
12706           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12707       ;; #(
12708     *)
12709       # `set' quotes correctly as required by POSIX, so do not add quotes.
12710       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12711       ;;
12712     esac |
12713     sort
12714 ) |
12715   sed '
12716      /^ac_cv_env_/b end
12717      t clear
12718      :clear
12719      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12720      t end
12721      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12722      :end' >>confcache
12723 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12724   if test -w "$cache_file"; then
12725     if test "x$cache_file" != "x/dev/null"; then
12726       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12727 $as_echo "$as_me: updating cache $cache_file" >&6;}
12728       if test ! -f "$cache_file" || test -h "$cache_file"; then
12729         cat confcache >"$cache_file"
12730       else
12731         case $cache_file in #(
12732         */* | ?:*)
12733           mv -f confcache "$cache_file"$$ &&
12734           mv -f "$cache_file"$$ "$cache_file" ;; #(
12735         *)
12736           mv -f confcache "$cache_file" ;;
12737         esac
12738       fi
12739     fi
12740   else
12741     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12742 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12743   fi
12744 fi
12745 rm -f confcache
12746
12747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12748 # Let make expand exec_prefix.
12749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12750
12751 DEFS=-DHAVE_CONFIG_H
12752
12753 ac_libobjs=
12754 ac_ltlibobjs=
12755 U=
12756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12757   # 1. Remove the extension, and $U if already installed.
12758   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12759   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12760   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12761   #    will be set to the directory where LIBOBJS objects are built.
12762   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12763   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12764 done
12765 LIBOBJS=$ac_libobjs
12766
12767 LTLIBOBJS=$ac_ltlibobjs
12768
12769
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12771 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12772    if test -n "$am_sleep_pid"; then
12773      # Hide warnings about reused PIDs.
12774      wait $am_sleep_pid 2>/dev/null
12775    fi
12776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12777 $as_echo "done" >&6; }
12778  if test -n "$EXEEXT"; then
12779   am__EXEEXT_TRUE=
12780   am__EXEEXT_FALSE='#'
12781 else
12782   am__EXEEXT_TRUE='#'
12783   am__EXEEXT_FALSE=
12784 fi
12785
12786 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12787   as_fn_error $? "conditional \"AMDEP\" was never defined.
12788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12789 fi
12790 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12791   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12793 fi
12794 if test -z "${WIN32_HOST_TRUE}" && test -z "${WIN32_HOST_FALSE}"; then
12795   as_fn_error $? "conditional \"WIN32_HOST\" was never defined.
12796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12797 fi
12798
12799 : "${CONFIG_STATUS=./config.status}"
12800 ac_write_fail=0
12801 ac_clean_files_save=$ac_clean_files
12802 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12804 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12805 as_write_fail=0
12806 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12807 #! $SHELL
12808 # Generated by $as_me.
12809 # Run this file to recreate the current configuration.
12810 # Compiler output produced by configure, useful for debugging
12811 # configure, is in config.log if it exists.
12812
12813 debug=false
12814 ac_cs_recheck=false
12815 ac_cs_silent=false
12816
12817 SHELL=\${CONFIG_SHELL-$SHELL}
12818 export SHELL
12819 _ASEOF
12820 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12821 ## -------------------- ##
12822 ## M4sh Initialization. ##
12823 ## -------------------- ##
12824
12825 # Be more Bourne compatible
12826 DUALCASE=1; export DUALCASE # for MKS sh
12827 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12828   emulate sh
12829   NULLCMD=:
12830   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12831   # is contrary to our usage.  Disable this feature.
12832   alias -g '${1+"$@"}'='"$@"'
12833   setopt NO_GLOB_SUBST
12834 else
12835   case `(set -o) 2>/dev/null` in #(
12836   *posix*) :
12837     set -o posix ;; #(
12838   *) :
12839      ;;
12840 esac
12841 fi
12842
12843
12844 as_nl='
12845 '
12846 export as_nl
12847 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12848 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12851 # Prefer a ksh shell builtin over an external printf program on Solaris,
12852 # but without wasting forks for bash or zsh.
12853 if test -z "$BASH_VERSION$ZSH_VERSION" \
12854     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12855   as_echo='print -r --'
12856   as_echo_n='print -rn --'
12857 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12858   as_echo='printf %s\n'
12859   as_echo_n='printf %s'
12860 else
12861   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12862     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12863     as_echo_n='/usr/ucb/echo -n'
12864   else
12865     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12866     as_echo_n_body='eval
12867       arg=$1;
12868       case $arg in #(
12869       *"$as_nl"*)
12870         expr "X$arg" : "X\\(.*\\)$as_nl";
12871         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12872       esac;
12873       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12874     '
12875     export as_echo_n_body
12876     as_echo_n='sh -c $as_echo_n_body as_echo'
12877   fi
12878   export as_echo_body
12879   as_echo='sh -c $as_echo_body as_echo'
12880 fi
12881
12882 # The user is always right.
12883 if test "${PATH_SEPARATOR+set}" != set; then
12884   PATH_SEPARATOR=:
12885   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12886     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12887       PATH_SEPARATOR=';'
12888   }
12889 fi
12890
12891
12892 # IFS
12893 # We need space, tab and new line, in precisely that order.  Quoting is
12894 # there to prevent editors from complaining about space-tab.
12895 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12896 # splitting by setting IFS to empty value.)
12897 IFS=" ""        $as_nl"
12898
12899 # Find who we are.  Look in the path if we contain no directory separator.
12900 as_myself=
12901 case $0 in #((
12902   *[\\/]* ) as_myself=$0 ;;
12903   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $PATH
12905 do
12906   IFS=$as_save_IFS
12907   test -z "$as_dir" && as_dir=.
12908     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12909   done
12910 IFS=$as_save_IFS
12911
12912      ;;
12913 esac
12914 # We did not find ourselves, most probably we were run as `sh COMMAND'
12915 # in which case we are not to be found in the path.
12916 if test "x$as_myself" = x; then
12917   as_myself=$0
12918 fi
12919 if test ! -f "$as_myself"; then
12920   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12921   exit 1
12922 fi
12923
12924 # Unset variables that we do not need and which cause bugs (e.g. in
12925 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12926 # suppresses any "Segmentation fault" message there.  '((' could
12927 # trigger a bug in pdksh 5.2.14.
12928 for as_var in BASH_ENV ENV MAIL MAILPATH
12929 do eval test x\${$as_var+set} = xset \
12930   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12931 done
12932 PS1='$ '
12933 PS2='> '
12934 PS4='+ '
12935
12936 # NLS nuisances.
12937 LC_ALL=C
12938 export LC_ALL
12939 LANGUAGE=C
12940 export LANGUAGE
12941
12942 # CDPATH.
12943 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12944
12945
12946 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12947 # ----------------------------------------
12948 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12949 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12950 # script with STATUS, using 1 if that was 0.
12951 as_fn_error ()
12952 {
12953   as_status=$1; test $as_status -eq 0 && as_status=1
12954   if test "$4"; then
12955     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12956     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12957   fi
12958   $as_echo "$as_me: error: $2" >&2
12959   as_fn_exit $as_status
12960 } # as_fn_error
12961
12962
12963 # as_fn_set_status STATUS
12964 # -----------------------
12965 # Set $? to STATUS, without forking.
12966 as_fn_set_status ()
12967 {
12968   return $1
12969 } # as_fn_set_status
12970
12971 # as_fn_exit STATUS
12972 # -----------------
12973 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12974 as_fn_exit ()
12975 {
12976   set +e
12977   as_fn_set_status $1
12978   exit $1
12979 } # as_fn_exit
12980
12981 # as_fn_unset VAR
12982 # ---------------
12983 # Portably unset VAR.
12984 as_fn_unset ()
12985 {
12986   { eval $1=; unset $1;}
12987 }
12988 as_unset=as_fn_unset
12989 # as_fn_append VAR VALUE
12990 # ----------------------
12991 # Append the text in VALUE to the end of the definition contained in VAR. Take
12992 # advantage of any shell optimizations that allow amortized linear growth over
12993 # repeated appends, instead of the typical quadratic growth present in naive
12994 # implementations.
12995 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12996   eval 'as_fn_append ()
12997   {
12998     eval $1+=\$2
12999   }'
13000 else
13001   as_fn_append ()
13002   {
13003     eval $1=\$$1\$2
13004   }
13005 fi # as_fn_append
13006
13007 # as_fn_arith ARG...
13008 # ------------------
13009 # Perform arithmetic evaluation on the ARGs, and store the result in the
13010 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13011 # must be portable across $(()) and expr.
13012 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13013   eval 'as_fn_arith ()
13014   {
13015     as_val=$(( $* ))
13016   }'
13017 else
13018   as_fn_arith ()
13019   {
13020     as_val=`expr "$@" || test $? -eq 1`
13021   }
13022 fi # as_fn_arith
13023
13024
13025 if expr a : '\(a\)' >/dev/null 2>&1 &&
13026    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13027   as_expr=expr
13028 else
13029   as_expr=false
13030 fi
13031
13032 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13033   as_basename=basename
13034 else
13035   as_basename=false
13036 fi
13037
13038 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13039   as_dirname=dirname
13040 else
13041   as_dirname=false
13042 fi
13043
13044 as_me=`$as_basename -- "$0" ||
13045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13046          X"$0" : 'X\(//\)$' \| \
13047          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13048 $as_echo X/"$0" |
13049     sed '/^.*\/\([^/][^/]*\)\/*$/{
13050             s//\1/
13051             q
13052           }
13053           /^X\/\(\/\/\)$/{
13054             s//\1/
13055             q
13056           }
13057           /^X\/\(\/\).*/{
13058             s//\1/
13059             q
13060           }
13061           s/.*/./; q'`
13062
13063 # Avoid depending upon Character Ranges.
13064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13067 as_cr_digits='0123456789'
13068 as_cr_alnum=$as_cr_Letters$as_cr_digits
13069
13070 ECHO_C= ECHO_N= ECHO_T=
13071 case `echo -n x` in #(((((
13072 -n*)
13073   case `echo 'xy\c'` in
13074   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13075   xy)  ECHO_C='\c';;
13076   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13077        ECHO_T=' ';;
13078   esac;;
13079 *)
13080   ECHO_N='-n';;
13081 esac
13082
13083 rm -f conf$$ conf$$.exe conf$$.file
13084 if test -d conf$$.dir; then
13085   rm -f conf$$.dir/conf$$.file
13086 else
13087   rm -f conf$$.dir
13088   mkdir conf$$.dir 2>/dev/null
13089 fi
13090 if (echo >conf$$.file) 2>/dev/null; then
13091   if ln -s conf$$.file conf$$ 2>/dev/null; then
13092     as_ln_s='ln -s'
13093     # ... but there are two gotchas:
13094     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13095     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13096     # In both cases, we have to default to `cp -pR'.
13097     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13098       as_ln_s='cp -pR'
13099   elif ln conf$$.file conf$$ 2>/dev/null; then
13100     as_ln_s=ln
13101   else
13102     as_ln_s='cp -pR'
13103   fi
13104 else
13105   as_ln_s='cp -pR'
13106 fi
13107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13108 rmdir conf$$.dir 2>/dev/null
13109
13110
13111 # as_fn_mkdir_p
13112 # -------------
13113 # Create "$as_dir" as a directory, including parents if necessary.
13114 as_fn_mkdir_p ()
13115 {
13116
13117   case $as_dir in #(
13118   -*) as_dir=./$as_dir;;
13119   esac
13120   test -d "$as_dir" || eval $as_mkdir_p || {
13121     as_dirs=
13122     while :; do
13123       case $as_dir in #(
13124       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13125       *) as_qdir=$as_dir;;
13126       esac
13127       as_dirs="'$as_qdir' $as_dirs"
13128       as_dir=`$as_dirname -- "$as_dir" ||
13129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13130          X"$as_dir" : 'X\(//\)[^/]' \| \
13131          X"$as_dir" : 'X\(//\)$' \| \
13132          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13133 $as_echo X"$as_dir" |
13134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13135             s//\1/
13136             q
13137           }
13138           /^X\(\/\/\)[^/].*/{
13139             s//\1/
13140             q
13141           }
13142           /^X\(\/\/\)$/{
13143             s//\1/
13144             q
13145           }
13146           /^X\(\/\).*/{
13147             s//\1/
13148             q
13149           }
13150           s/.*/./; q'`
13151       test -d "$as_dir" && break
13152     done
13153     test -z "$as_dirs" || eval "mkdir $as_dirs"
13154   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13155
13156
13157 } # as_fn_mkdir_p
13158 if mkdir -p . 2>/dev/null; then
13159   as_mkdir_p='mkdir -p "$as_dir"'
13160 else
13161   test -d ./-p && rmdir ./-p
13162   as_mkdir_p=false
13163 fi
13164
13165
13166 # as_fn_executable_p FILE
13167 # -----------------------
13168 # Test if FILE is an executable regular file.
13169 as_fn_executable_p ()
13170 {
13171   test -f "$1" && test -x "$1"
13172 } # as_fn_executable_p
13173 as_test_x='test -x'
13174 as_executable_p=as_fn_executable_p
13175
13176 # Sed expression to map a string onto a valid CPP name.
13177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13178
13179 # Sed expression to map a string onto a valid variable name.
13180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13181
13182
13183 exec 6>&1
13184 ## ----------------------------------- ##
13185 ## Main body of $CONFIG_STATUS script. ##
13186 ## ----------------------------------- ##
13187 _ASEOF
13188 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13189
13190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13191 # Save the log message, to keep $0 and so on meaningful, and to
13192 # report actual input values of CONFIG_FILES etc. instead of their
13193 # values after options handling.
13194 ac_log="
13195 This file was extended by libzip $as_me 1.1.3, which was
13196 generated by GNU Autoconf 2.69.  Invocation command line was
13197
13198   CONFIG_FILES    = $CONFIG_FILES
13199   CONFIG_HEADERS  = $CONFIG_HEADERS
13200   CONFIG_LINKS    = $CONFIG_LINKS
13201   CONFIG_COMMANDS = $CONFIG_COMMANDS
13202   $ $0 $@
13203
13204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13205 "
13206
13207 _ACEOF
13208
13209 case $ac_config_files in *"
13210 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13211 esac
13212
13213 case $ac_config_headers in *"
13214 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13215 esac
13216
13217
13218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13219 # Files that config.status was made for.
13220 config_files="$ac_config_files"
13221 config_headers="$ac_config_headers"
13222 config_commands="$ac_config_commands"
13223
13224 _ACEOF
13225
13226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13227 ac_cs_usage="\
13228 \`$as_me' instantiates files and other configuration actions
13229 from templates according to the current configuration.  Unless the files
13230 and actions are specified as TAGs, all are instantiated by default.
13231
13232 Usage: $0 [OPTION]... [TAG]...
13233
13234   -h, --help       print this help, then exit
13235   -V, --version    print version number and configuration settings, then exit
13236       --config     print configuration, then exit
13237   -q, --quiet, --silent
13238                    do not print progress messages
13239   -d, --debug      don't remove temporary files
13240       --recheck    update $as_me by reconfiguring in the same conditions
13241       --file=FILE[:TEMPLATE]
13242                    instantiate the configuration file FILE
13243       --header=FILE[:TEMPLATE]
13244                    instantiate the configuration header FILE
13245
13246 Configuration files:
13247 $config_files
13248
13249 Configuration headers:
13250 $config_headers
13251
13252 Configuration commands:
13253 $config_commands
13254
13255 Report bugs to <libzip@nih.at>."
13256
13257 _ACEOF
13258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13259 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13260 ac_cs_version="\\
13261 libzip config.status 1.1.3
13262 configured by $0, generated by GNU Autoconf 2.69,
13263   with options \\"\$ac_cs_config\\"
13264
13265 Copyright (C) 2012 Free Software Foundation, Inc.
13266 This config.status script is free software; the Free Software Foundation
13267 gives unlimited permission to copy, distribute and modify it."
13268
13269 ac_pwd='$ac_pwd'
13270 srcdir='$srcdir'
13271 INSTALL='$INSTALL'
13272 MKDIR_P='$MKDIR_P'
13273 AWK='$AWK'
13274 test -n "\$AWK" || AWK=awk
13275 _ACEOF
13276
13277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13278 # The default lists apply if the user does not specify any file.
13279 ac_need_defaults=:
13280 while test $# != 0
13281 do
13282   case $1 in
13283   --*=?*)
13284     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13285     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13286     ac_shift=:
13287     ;;
13288   --*=)
13289     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13290     ac_optarg=
13291     ac_shift=:
13292     ;;
13293   *)
13294     ac_option=$1
13295     ac_optarg=$2
13296     ac_shift=shift
13297     ;;
13298   esac
13299
13300   case $ac_option in
13301   # Handling of the options.
13302   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13303     ac_cs_recheck=: ;;
13304   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13305     $as_echo "$ac_cs_version"; exit ;;
13306   --config | --confi | --conf | --con | --co | --c )
13307     $as_echo "$ac_cs_config"; exit ;;
13308   --debug | --debu | --deb | --de | --d | -d )
13309     debug=: ;;
13310   --file | --fil | --fi | --f )
13311     $ac_shift
13312     case $ac_optarg in
13313     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13314     '') as_fn_error $? "missing file argument" ;;
13315     esac
13316     as_fn_append CONFIG_FILES " '$ac_optarg'"
13317     ac_need_defaults=false;;
13318   --header | --heade | --head | --hea )
13319     $ac_shift
13320     case $ac_optarg in
13321     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13322     esac
13323     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13324     ac_need_defaults=false;;
13325   --he | --h)
13326     # Conflict between --help and --header
13327     as_fn_error $? "ambiguous option: \`$1'
13328 Try \`$0 --help' for more information.";;
13329   --help | --hel | -h )
13330     $as_echo "$ac_cs_usage"; exit ;;
13331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13332   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13333     ac_cs_silent=: ;;
13334
13335   # This is an error.
13336   -*) as_fn_error $? "unrecognized option: \`$1'
13337 Try \`$0 --help' for more information." ;;
13338
13339   *) as_fn_append ac_config_targets " $1"
13340      ac_need_defaults=false ;;
13341
13342   esac
13343   shift
13344 done
13345
13346 ac_configure_extra_args=
13347
13348 if $ac_cs_silent; then
13349   exec 6>/dev/null
13350   ac_configure_extra_args="$ac_configure_extra_args --silent"
13351 fi
13352
13353 _ACEOF
13354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13355 if \$ac_cs_recheck; then
13356   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13357   shift
13358   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13359   CONFIG_SHELL='$SHELL'
13360   export CONFIG_SHELL
13361   exec "\$@"
13362 fi
13363
13364 _ACEOF
13365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13366 exec 5>>config.log
13367 {
13368   echo
13369   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13370 ## Running $as_me. ##
13371 _ASBOX
13372   $as_echo "$ac_log"
13373 } >&5
13374
13375 _ACEOF
13376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13377 #
13378 # INIT-COMMANDS
13379 #
13380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13381
13382
13383 # The HP-UX ksh and POSIX shell print the target directory to stdout
13384 # if CDPATH is set.
13385 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13386
13387 sed_quote_subst='$sed_quote_subst'
13388 double_quote_subst='$double_quote_subst'
13389 delay_variable_subst='$delay_variable_subst'
13390 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13391 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13392 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13393 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13394 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13395 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13396 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13397 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13398 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13399 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13400 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13401 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13402 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13403 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13404 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13405 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13406 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13407 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13408 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13409 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13410 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13411 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13412 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13413 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13414 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13415 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13416 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13417 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13418 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13419 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13420 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13421 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13422 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13423 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13424 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13425 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13426 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13427 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13428 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13429 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13430 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13431 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13432 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13433 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13434 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13435 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13436 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13437 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13438 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13439 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13440 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13441 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13442 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13443 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13444 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13445 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13446 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"`'
13447 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13448 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13449 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13450 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13451 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13452 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13453 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13454 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13455 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13456 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13457 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13458 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13459 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13460 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13461 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13462 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13463 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13464 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13465 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13466 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13467 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13468 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13469 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13470 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13471 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13472 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13473 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13474 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13475 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13476 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13477 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13478 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13479 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13480 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13481 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13482 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13483 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13484 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13485 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13486 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13487 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13488 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13489 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13490 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13491 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13492 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13493 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13494 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13495 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13496 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13497 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13498 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13499 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13500 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13501 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13502 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13503 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13504 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13505 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13506 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13507 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13508 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13509 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13510 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13511 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13512 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13513 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13514 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13515 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13516 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13517 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13518 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13519 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13520
13521 LTCC='$LTCC'
13522 LTCFLAGS='$LTCFLAGS'
13523 compiler='$compiler_DEFAULT'
13524
13525 # A function that is used when there is no print builtin or printf.
13526 func_fallback_echo ()
13527 {
13528   eval 'cat <<_LTECHO_EOF
13529 \$1
13530 _LTECHO_EOF'
13531 }
13532
13533 # Quote evaled strings.
13534 for var in SHELL \
13535 ECHO \
13536 PATH_SEPARATOR \
13537 SED \
13538 GREP \
13539 EGREP \
13540 FGREP \
13541 LD \
13542 NM \
13543 LN_S \
13544 lt_SP2NL \
13545 lt_NL2SP \
13546 reload_flag \
13547 OBJDUMP \
13548 deplibs_check_method \
13549 file_magic_cmd \
13550 file_magic_glob \
13551 want_nocaseglob \
13552 DLLTOOL \
13553 sharedlib_from_linklib_cmd \
13554 AR \
13555 AR_FLAGS \
13556 archiver_list_spec \
13557 STRIP \
13558 RANLIB \
13559 CC \
13560 CFLAGS \
13561 compiler \
13562 lt_cv_sys_global_symbol_pipe \
13563 lt_cv_sys_global_symbol_to_cdecl \
13564 lt_cv_sys_global_symbol_to_c_name_address \
13565 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13566 nm_file_list_spec \
13567 lt_prog_compiler_no_builtin_flag \
13568 lt_prog_compiler_pic \
13569 lt_prog_compiler_wl \
13570 lt_prog_compiler_static \
13571 lt_cv_prog_compiler_c_o \
13572 need_locks \
13573 MANIFEST_TOOL \
13574 DSYMUTIL \
13575 NMEDIT \
13576 LIPO \
13577 OTOOL \
13578 OTOOL64 \
13579 shrext_cmds \
13580 export_dynamic_flag_spec \
13581 whole_archive_flag_spec \
13582 compiler_needs_object \
13583 with_gnu_ld \
13584 allow_undefined_flag \
13585 no_undefined_flag \
13586 hardcode_libdir_flag_spec \
13587 hardcode_libdir_separator \
13588 exclude_expsyms \
13589 include_expsyms \
13590 file_list_spec \
13591 variables_saved_for_relink \
13592 libname_spec \
13593 library_names_spec \
13594 soname_spec \
13595 install_override_mode \
13596 finish_eval \
13597 old_striplib \
13598 striplib; do
13599     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13600     *[\\\\\\\`\\"\\\$]*)
13601       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13602       ;;
13603     *)
13604       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13605       ;;
13606     esac
13607 done
13608
13609 # Double-quote double-evaled strings.
13610 for var in reload_cmds \
13611 old_postinstall_cmds \
13612 old_postuninstall_cmds \
13613 old_archive_cmds \
13614 extract_expsyms_cmds \
13615 old_archive_from_new_cmds \
13616 old_archive_from_expsyms_cmds \
13617 archive_cmds \
13618 archive_expsym_cmds \
13619 module_cmds \
13620 module_expsym_cmds \
13621 export_symbols_cmds \
13622 prelink_cmds \
13623 postlink_cmds \
13624 postinstall_cmds \
13625 postuninstall_cmds \
13626 finish_cmds \
13627 sys_lib_search_path_spec \
13628 sys_lib_dlsearch_path_spec; do
13629     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13630     *[\\\\\\\`\\"\\\$]*)
13631       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13632       ;;
13633     *)
13634       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13635       ;;
13636     esac
13637 done
13638
13639 ac_aux_dir='$ac_aux_dir'
13640 xsi_shell='$xsi_shell'
13641 lt_shell_append='$lt_shell_append'
13642
13643 # See if we are running on zsh, and set the options which allow our
13644 # commands through without removal of \ escapes INIT.
13645 if test -n "\${ZSH_VERSION+set}" ; then
13646    setopt NO_GLOB_SUBST
13647 fi
13648
13649
13650     PACKAGE='$PACKAGE'
13651     VERSION='$VERSION'
13652     TIMESTAMP='$TIMESTAMP'
13653     RM='$RM'
13654     ofile='$ofile'
13655
13656
13657
13658
13659 _ACEOF
13660
13661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13662
13663 # Handling of arguments.
13664 for ac_config_target in $ac_config_targets
13665 do
13666   case $ac_config_target in
13667     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13668     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13669     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13670     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13671     "libzip.pc") CONFIG_FILES="$CONFIG_FILES libzip.pc" ;;
13672     "libzip-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libzip-uninstalled.pc" ;;
13673     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13674     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13675     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13676     "regress/Makefile") CONFIG_FILES="$CONFIG_FILES regress/Makefile" ;;
13677     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13678
13679   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13680   esac
13681 done
13682
13683
13684 # If the user did not use the arguments to specify the items to instantiate,
13685 # then the envvar interface is used.  Set only those that are not.
13686 # We use the long form for the default assignment because of an extremely
13687 # bizarre bug on SunOS 4.1.3.
13688 if $ac_need_defaults; then
13689   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13690   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13691   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13692 fi
13693
13694 # Have a temporary directory for convenience.  Make it in the build tree
13695 # simply because there is no reason against having it here, and in addition,
13696 # creating and moving files from /tmp can sometimes cause problems.
13697 # Hook for its removal unless debugging.
13698 # Note that there is a small window in which the directory will not be cleaned:
13699 # after its creation but before its name has been assigned to `$tmp'.
13700 $debug ||
13701 {
13702   tmp= ac_tmp=
13703   trap 'exit_status=$?
13704   : "${ac_tmp:=$tmp}"
13705   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13706 ' 0
13707   trap 'as_fn_exit 1' 1 2 13 15
13708 }
13709 # Create a (secure) tmp directory for tmp files.
13710
13711 {
13712   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13713   test -d "$tmp"
13714 }  ||
13715 {
13716   tmp=./conf$$-$RANDOM
13717   (umask 077 && mkdir "$tmp")
13718 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13719 ac_tmp=$tmp
13720
13721 # Set up the scripts for CONFIG_FILES section.
13722 # No need to generate them if there are no CONFIG_FILES.
13723 # This happens for instance with `./config.status config.h'.
13724 if test -n "$CONFIG_FILES"; then
13725
13726
13727 ac_cr=`echo X | tr X '\015'`
13728 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13729 # But we know of no other shell where ac_cr would be empty at this
13730 # point, so we can use a bashism as a fallback.
13731 if test "x$ac_cr" = x; then
13732   eval ac_cr=\$\'\\r\'
13733 fi
13734 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13735 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13736   ac_cs_awk_cr='\\r'
13737 else
13738   ac_cs_awk_cr=$ac_cr
13739 fi
13740
13741 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13742 _ACEOF
13743
13744
13745 {
13746   echo "cat >conf$$subs.awk <<_ACEOF" &&
13747   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13748   echo "_ACEOF"
13749 } >conf$$subs.sh ||
13750   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13751 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13752 ac_delim='%!_!# '
13753 for ac_last_try in false false false false false :; do
13754   . ./conf$$subs.sh ||
13755     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13756
13757   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13758   if test $ac_delim_n = $ac_delim_num; then
13759     break
13760   elif $ac_last_try; then
13761     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13762   else
13763     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13764   fi
13765 done
13766 rm -f conf$$subs.sh
13767
13768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13769 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13770 _ACEOF
13771 sed -n '
13772 h
13773 s/^/S["/; s/!.*/"]=/
13774 p
13775 g
13776 s/^[^!]*!//
13777 :repl
13778 t repl
13779 s/'"$ac_delim"'$//
13780 t delim
13781 :nl
13782 h
13783 s/\(.\{148\}\)..*/\1/
13784 t more1
13785 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13786 p
13787 n
13788 b repl
13789 :more1
13790 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13791 p
13792 g
13793 s/.\{148\}//
13794 t nl
13795 :delim
13796 h
13797 s/\(.\{148\}\)..*/\1/
13798 t more2
13799 s/["\\]/\\&/g; s/^/"/; s/$/"/
13800 p
13801 b
13802 :more2
13803 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13804 p
13805 g
13806 s/.\{148\}//
13807 t delim
13808 ' <conf$$subs.awk | sed '
13809 /^[^""]/{
13810   N
13811   s/\n//
13812 }
13813 ' >>$CONFIG_STATUS || ac_write_fail=1
13814 rm -f conf$$subs.awk
13815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13816 _ACAWK
13817 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13818   for (key in S) S_is_set[key] = 1
13819   FS = "\a"
13820
13821 }
13822 {
13823   line = $ 0
13824   nfields = split(line, field, "@")
13825   substed = 0
13826   len = length(field[1])
13827   for (i = 2; i < nfields; i++) {
13828     key = field[i]
13829     keylen = length(key)
13830     if (S_is_set[key]) {
13831       value = S[key]
13832       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13833       len += length(value) + length(field[++i])
13834       substed = 1
13835     } else
13836       len += 1 + keylen
13837   }
13838
13839   print line
13840 }
13841
13842 _ACAWK
13843 _ACEOF
13844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13846   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13847 else
13848   cat
13849 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13850   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13851 _ACEOF
13852
13853 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13854 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13855 # trailing colons and then remove the whole line if VPATH becomes empty
13856 # (actually we leave an empty line to preserve line numbers).
13857 if test "x$srcdir" = x.; then
13858   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13859 h
13860 s///
13861 s/^/:/
13862 s/[      ]*$/:/
13863 s/:\$(srcdir):/:/g
13864 s/:\${srcdir}:/:/g
13865 s/:@srcdir@:/:/g
13866 s/^:*//
13867 s/:*$//
13868 x
13869 s/\(=[   ]*\).*/\1/
13870 G
13871 s/\n//
13872 s/^[^=]*=[       ]*$//
13873 }'
13874 fi
13875
13876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13877 fi # test -n "$CONFIG_FILES"
13878
13879 # Set up the scripts for CONFIG_HEADERS section.
13880 # No need to generate them if there are no CONFIG_HEADERS.
13881 # This happens for instance with `./config.status Makefile'.
13882 if test -n "$CONFIG_HEADERS"; then
13883 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13884 BEGIN {
13885 _ACEOF
13886
13887 # Transform confdefs.h into an awk script `defines.awk', embedded as
13888 # here-document in config.status, that substitutes the proper values into
13889 # config.h.in to produce config.h.
13890
13891 # Create a delimiter string that does not exist in confdefs.h, to ease
13892 # handling of long lines.
13893 ac_delim='%!_!# '
13894 for ac_last_try in false false :; do
13895   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13896   if test -z "$ac_tt"; then
13897     break
13898   elif $ac_last_try; then
13899     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13900   else
13901     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13902   fi
13903 done
13904
13905 # For the awk script, D is an array of macro values keyed by name,
13906 # likewise P contains macro parameters if any.  Preserve backslash
13907 # newline sequences.
13908
13909 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13910 sed -n '
13911 s/.\{148\}/&'"$ac_delim"'/g
13912 t rset
13913 :rset
13914 s/^[     ]*#[    ]*define[       ][      ]*/ /
13915 t def
13916 d
13917 :def
13918 s/\\$//
13919 t bsnl
13920 s/["\\]/\\&/g
13921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13922 D["\1"]=" \3"/p
13923 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13924 d
13925 :bsnl
13926 s/["\\]/\\&/g
13927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13928 D["\1"]=" \3\\\\\\n"\\/p
13929 t cont
13930 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13931 t cont
13932 d
13933 :cont
13934 n
13935 s/.\{148\}/&'"$ac_delim"'/g
13936 t clear
13937 :clear
13938 s/\\$//
13939 t bsnlc
13940 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13941 d
13942 :bsnlc
13943 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13944 b cont
13945 ' <confdefs.h | sed '
13946 s/'"$ac_delim"'/"\\\
13947 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13948
13949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13950   for (key in D) D_is_set[key] = 1
13951   FS = "\a"
13952 }
13953 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13954   line = \$ 0
13955   split(line, arg, " ")
13956   if (arg[1] == "#") {
13957     defundef = arg[2]
13958     mac1 = arg[3]
13959   } else {
13960     defundef = substr(arg[1], 2)
13961     mac1 = arg[2]
13962   }
13963   split(mac1, mac2, "(") #)
13964   macro = mac2[1]
13965   prefix = substr(line, 1, index(line, defundef) - 1)
13966   if (D_is_set[macro]) {
13967     # Preserve the white space surrounding the "#".
13968     print prefix "define", macro P[macro] D[macro]
13969     next
13970   } else {
13971     # Replace #undef with comments.  This is necessary, for example,
13972     # in the case of _POSIX_SOURCE, which is predefined and required
13973     # on some systems where configure will not decide to define it.
13974     if (defundef == "undef") {
13975       print "/*", prefix defundef, macro, "*/"
13976       next
13977     }
13978   }
13979 }
13980 { print }
13981 _ACAWK
13982 _ACEOF
13983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13985 fi # test -n "$CONFIG_HEADERS"
13986
13987
13988 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13989 shift
13990 for ac_tag
13991 do
13992   case $ac_tag in
13993   :[FHLC]) ac_mode=$ac_tag; continue;;
13994   esac
13995   case $ac_mode$ac_tag in
13996   :[FHL]*:*);;
13997   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13998   :[FH]-) ac_tag=-:-;;
13999   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14000   esac
14001   ac_save_IFS=$IFS
14002   IFS=:
14003   set x $ac_tag
14004   IFS=$ac_save_IFS
14005   shift
14006   ac_file=$1
14007   shift
14008
14009   case $ac_mode in
14010   :L) ac_source=$1;;
14011   :[FH])
14012     ac_file_inputs=
14013     for ac_f
14014     do
14015       case $ac_f in
14016       -) ac_f="$ac_tmp/stdin";;
14017       *) # Look for the file first in the build tree, then in the source tree
14018          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14019          # because $ac_f cannot contain `:'.
14020          test -f "$ac_f" ||
14021            case $ac_f in
14022            [\\/$]*) false;;
14023            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14024            esac ||
14025            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14026       esac
14027       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14028       as_fn_append ac_file_inputs " '$ac_f'"
14029     done
14030
14031     # Let's still pretend it is `configure' which instantiates (i.e., don't
14032     # use $as_me), people would be surprised to read:
14033     #    /* config.h.  Generated by config.status.  */
14034     configure_input='Generated from '`
14035           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14036         `' by configure.'
14037     if test x"$ac_file" != x-; then
14038       configure_input="$ac_file.  $configure_input"
14039       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14040 $as_echo "$as_me: creating $ac_file" >&6;}
14041     fi
14042     # Neutralize special characters interpreted by sed in replacement strings.
14043     case $configure_input in #(
14044     *\&* | *\|* | *\\* )
14045        ac_sed_conf_input=`$as_echo "$configure_input" |
14046        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14047     *) ac_sed_conf_input=$configure_input;;
14048     esac
14049
14050     case $ac_tag in
14051     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14052       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14053     esac
14054     ;;
14055   esac
14056
14057   ac_dir=`$as_dirname -- "$ac_file" ||
14058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14059          X"$ac_file" : 'X\(//\)[^/]' \| \
14060          X"$ac_file" : 'X\(//\)$' \| \
14061          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14062 $as_echo X"$ac_file" |
14063     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14064             s//\1/
14065             q
14066           }
14067           /^X\(\/\/\)[^/].*/{
14068             s//\1/
14069             q
14070           }
14071           /^X\(\/\/\)$/{
14072             s//\1/
14073             q
14074           }
14075           /^X\(\/\).*/{
14076             s//\1/
14077             q
14078           }
14079           s/.*/./; q'`
14080   as_dir="$ac_dir"; as_fn_mkdir_p
14081   ac_builddir=.
14082
14083 case "$ac_dir" in
14084 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14085 *)
14086   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14087   # A ".." for each directory in $ac_dir_suffix.
14088   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14089   case $ac_top_builddir_sub in
14090   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14091   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14092   esac ;;
14093 esac
14094 ac_abs_top_builddir=$ac_pwd
14095 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14096 # for backward compatibility:
14097 ac_top_builddir=$ac_top_build_prefix
14098
14099 case $srcdir in
14100   .)  # We are building in place.
14101     ac_srcdir=.
14102     ac_top_srcdir=$ac_top_builddir_sub
14103     ac_abs_top_srcdir=$ac_pwd ;;
14104   [\\/]* | ?:[\\/]* )  # Absolute name.
14105     ac_srcdir=$srcdir$ac_dir_suffix;
14106     ac_top_srcdir=$srcdir
14107     ac_abs_top_srcdir=$srcdir ;;
14108   *) # Relative name.
14109     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14110     ac_top_srcdir=$ac_top_build_prefix$srcdir
14111     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14112 esac
14113 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14114
14115
14116   case $ac_mode in
14117   :F)
14118   #
14119   # CONFIG_FILE
14120   #
14121
14122   case $INSTALL in
14123   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14124   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14125   esac
14126   ac_MKDIR_P=$MKDIR_P
14127   case $MKDIR_P in
14128   [\\/$]* | ?:[\\/]* ) ;;
14129   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14130   esac
14131 _ACEOF
14132
14133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14134 # If the template does not know about datarootdir, expand it.
14135 # FIXME: This hack should be removed a few years after 2.60.
14136 ac_datarootdir_hack=; ac_datarootdir_seen=
14137 ac_sed_dataroot='
14138 /datarootdir/ {
14139   p
14140   q
14141 }
14142 /@datadir@/p
14143 /@docdir@/p
14144 /@infodir@/p
14145 /@localedir@/p
14146 /@mandir@/p'
14147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14148 *datarootdir*) ac_datarootdir_seen=yes;;
14149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14150   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14152 _ACEOF
14153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14154   ac_datarootdir_hack='
14155   s&@datadir@&$datadir&g
14156   s&@docdir@&$docdir&g
14157   s&@infodir@&$infodir&g
14158   s&@localedir@&$localedir&g
14159   s&@mandir@&$mandir&g
14160   s&\\\${datarootdir}&$datarootdir&g' ;;
14161 esac
14162 _ACEOF
14163
14164 # Neutralize VPATH when `$srcdir' = `.'.
14165 # Shell code in configure.ac might set extrasub.
14166 # FIXME: do we really want to maintain this feature?
14167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168 ac_sed_extra="$ac_vpsub
14169 $extrasub
14170 _ACEOF
14171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14172 :t
14173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14174 s|@configure_input@|$ac_sed_conf_input|;t t
14175 s&@top_builddir@&$ac_top_builddir_sub&;t t
14176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14177 s&@srcdir@&$ac_srcdir&;t t
14178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14179 s&@top_srcdir@&$ac_top_srcdir&;t t
14180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14181 s&@builddir@&$ac_builddir&;t t
14182 s&@abs_builddir@&$ac_abs_builddir&;t t
14183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14184 s&@INSTALL@&$ac_INSTALL&;t t
14185 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14186 $ac_datarootdir_hack
14187 "
14188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14189   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14190
14191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14192   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14193   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14194       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14195   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14196 which seems to be undefined.  Please make sure it is defined" >&5
14197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14198 which seems to be undefined.  Please make sure it is defined" >&2;}
14199
14200   rm -f "$ac_tmp/stdin"
14201   case $ac_file in
14202   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14203   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14204   esac \
14205   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14206  ;;
14207   :H)
14208   #
14209   # CONFIG_HEADER
14210   #
14211   if test x"$ac_file" != x-; then
14212     {
14213       $as_echo "/* $configure_input  */" \
14214       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14215     } >"$ac_tmp/config.h" \
14216       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14217     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14218       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14219 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14220     else
14221       rm -f "$ac_file"
14222       mv "$ac_tmp/config.h" "$ac_file" \
14223         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14224     fi
14225   else
14226     $as_echo "/* $configure_input  */" \
14227       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14228       || as_fn_error $? "could not create -" "$LINENO" 5
14229   fi
14230 # Compute "$ac_file"'s index in $config_headers.
14231 _am_arg="$ac_file"
14232 _am_stamp_count=1
14233 for _am_header in $config_headers :; do
14234   case $_am_header in
14235     $_am_arg | $_am_arg:* )
14236       break ;;
14237     * )
14238       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14239   esac
14240 done
14241 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14242 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14243          X"$_am_arg" : 'X\(//\)[^/]' \| \
14244          X"$_am_arg" : 'X\(//\)$' \| \
14245          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14246 $as_echo X"$_am_arg" |
14247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14248             s//\1/
14249             q
14250           }
14251           /^X\(\/\/\)[^/].*/{
14252             s//\1/
14253             q
14254           }
14255           /^X\(\/\/\)$/{
14256             s//\1/
14257             q
14258           }
14259           /^X\(\/\).*/{
14260             s//\1/
14261             q
14262           }
14263           s/.*/./; q'`/stamp-h$_am_stamp_count
14264  ;;
14265
14266   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14267 $as_echo "$as_me: executing $ac_file commands" >&6;}
14268  ;;
14269   esac
14270
14271
14272   case $ac_file$ac_mode in
14273     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14274   # Older Autoconf quotes --file arguments for eval, but not when files
14275   # are listed without --file.  Let's play safe and only enable the eval
14276   # if we detect the quoting.
14277   case $CONFIG_FILES in
14278   *\'*) eval set x "$CONFIG_FILES" ;;
14279   *)   set x $CONFIG_FILES ;;
14280   esac
14281   shift
14282   for mf
14283   do
14284     # Strip MF so we end up with the name of the file.
14285     mf=`echo "$mf" | sed -e 's/:.*$//'`
14286     # Check whether this is an Automake generated Makefile or not.
14287     # We used to match only the files named 'Makefile.in', but
14288     # some people rename them; so instead we look at the file content.
14289     # Grep'ing the first line is not enough: some people post-process
14290     # each Makefile.in and add a new line on top of each file to say so.
14291     # Grep'ing the whole file is not good either: AIX grep has a line
14292     # limit of 2048, but all sed's we know have understand at least 4000.
14293     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14294       dirpart=`$as_dirname -- "$mf" ||
14295 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14296          X"$mf" : 'X\(//\)[^/]' \| \
14297          X"$mf" : 'X\(//\)$' \| \
14298          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14299 $as_echo X"$mf" |
14300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14301             s//\1/
14302             q
14303           }
14304           /^X\(\/\/\)[^/].*/{
14305             s//\1/
14306             q
14307           }
14308           /^X\(\/\/\)$/{
14309             s//\1/
14310             q
14311           }
14312           /^X\(\/\).*/{
14313             s//\1/
14314             q
14315           }
14316           s/.*/./; q'`
14317     else
14318       continue
14319     fi
14320     # Extract the definition of DEPDIR, am__include, and am__quote
14321     # from the Makefile without running 'make'.
14322     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14323     test -z "$DEPDIR" && continue
14324     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14325     test -z "$am__include" && continue
14326     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14327     # Find all dependency output files, they are included files with
14328     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14329     # simplest approach to changing $(DEPDIR) to its actual value in the
14330     # expansion.
14331     for file in `sed -n "
14332       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14333          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14334       # Make sure the directory exists.
14335       test -f "$dirpart/$file" && continue
14336       fdir=`$as_dirname -- "$file" ||
14337 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14338          X"$file" : 'X\(//\)[^/]' \| \
14339          X"$file" : 'X\(//\)$' \| \
14340          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14341 $as_echo X"$file" |
14342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14343             s//\1/
14344             q
14345           }
14346           /^X\(\/\/\)[^/].*/{
14347             s//\1/
14348             q
14349           }
14350           /^X\(\/\/\)$/{
14351             s//\1/
14352             q
14353           }
14354           /^X\(\/\).*/{
14355             s//\1/
14356             q
14357           }
14358           s/.*/./; q'`
14359       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14360       # echo "creating $dirpart/$file"
14361       echo '# dummy' > "$dirpart/$file"
14362     done
14363   done
14364 }
14365  ;;
14366     "libtool":C)
14367
14368     # See if we are running on zsh, and set the options which allow our
14369     # commands through without removal of \ escapes.
14370     if test -n "${ZSH_VERSION+set}" ; then
14371       setopt NO_GLOB_SUBST
14372     fi
14373
14374     cfgfile="${ofile}T"
14375     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14376     $RM "$cfgfile"
14377
14378     cat <<_LT_EOF >> "$cfgfile"
14379 #! $SHELL
14380
14381 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14382 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14384 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14385 #
14386 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14387 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14388 #                 Foundation, Inc.
14389 #   Written by Gordon Matzigkeit, 1996
14390 #
14391 #   This file is part of GNU Libtool.
14392 #
14393 # GNU Libtool is free software; you can redistribute it and/or
14394 # modify it under the terms of the GNU General Public License as
14395 # published by the Free Software Foundation; either version 2 of
14396 # the License, or (at your option) any later version.
14397 #
14398 # As a special exception to the GNU General Public License,
14399 # if you distribute this file as part of a program or library that
14400 # is built using GNU Libtool, you may include this file under the
14401 # same distribution terms that you use for the rest of that program.
14402 #
14403 # GNU Libtool is distributed in the hope that it will be useful,
14404 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14405 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14406 # GNU General Public License for more details.
14407 #
14408 # You should have received a copy of the GNU General Public License
14409 # along with GNU Libtool; see the file COPYING.  If not, a copy
14410 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14411 # obtained by writing to the Free Software Foundation, Inc.,
14412 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14413
14414
14415 # The names of the tagged configurations supported by this script.
14416 available_tags=""
14417
14418 # ### BEGIN LIBTOOL CONFIG
14419
14420 # Which release of libtool.m4 was used?
14421 macro_version=$macro_version
14422 macro_revision=$macro_revision
14423
14424 # Whether or not to build shared libraries.
14425 build_libtool_libs=$enable_shared
14426
14427 # Whether or not to build static libraries.
14428 build_old_libs=$enable_static
14429
14430 # What type of objects to build.
14431 pic_mode=$pic_mode
14432
14433 # Whether or not to optimize for fast installation.
14434 fast_install=$enable_fast_install
14435
14436 # Shell to use when invoking shell scripts.
14437 SHELL=$lt_SHELL
14438
14439 # An echo program that protects backslashes.
14440 ECHO=$lt_ECHO
14441
14442 # The PATH separator for the build system.
14443 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14444
14445 # The host system.
14446 host_alias=$host_alias
14447 host=$host
14448 host_os=$host_os
14449
14450 # The build system.
14451 build_alias=$build_alias
14452 build=$build
14453 build_os=$build_os
14454
14455 # A sed program that does not truncate output.
14456 SED=$lt_SED
14457
14458 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14459 Xsed="\$SED -e 1s/^X//"
14460
14461 # A grep program that handles long lines.
14462 GREP=$lt_GREP
14463
14464 # An ERE matcher.
14465 EGREP=$lt_EGREP
14466
14467 # A literal string matcher.
14468 FGREP=$lt_FGREP
14469
14470 # A BSD- or MS-compatible name lister.
14471 NM=$lt_NM
14472
14473 # Whether we need soft or hard links.
14474 LN_S=$lt_LN_S
14475
14476 # What is the maximum length of a command?
14477 max_cmd_len=$max_cmd_len
14478
14479 # Object file suffix (normally "o").
14480 objext=$ac_objext
14481
14482 # Executable file suffix (normally "").
14483 exeext=$exeext
14484
14485 # whether the shell understands "unset".
14486 lt_unset=$lt_unset
14487
14488 # turn spaces into newlines.
14489 SP2NL=$lt_lt_SP2NL
14490
14491 # turn newlines into spaces.
14492 NL2SP=$lt_lt_NL2SP
14493
14494 # convert \$build file names to \$host format.
14495 to_host_file_cmd=$lt_cv_to_host_file_cmd
14496
14497 # convert \$build files to toolchain format.
14498 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14499
14500 # An object symbol dumper.
14501 OBJDUMP=$lt_OBJDUMP
14502
14503 # Method to check whether dependent libraries are shared objects.
14504 deplibs_check_method=$lt_deplibs_check_method
14505
14506 # Command to use when deplibs_check_method = "file_magic".
14507 file_magic_cmd=$lt_file_magic_cmd
14508
14509 # How to find potential files when deplibs_check_method = "file_magic".
14510 file_magic_glob=$lt_file_magic_glob
14511
14512 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14513 want_nocaseglob=$lt_want_nocaseglob
14514
14515 # DLL creation program.
14516 DLLTOOL=$lt_DLLTOOL
14517
14518 # Command to associate shared and link libraries.
14519 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14520
14521 # The archiver.
14522 AR=$lt_AR
14523
14524 # Flags to create an archive.
14525 AR_FLAGS=$lt_AR_FLAGS
14526
14527 # How to feed a file listing to the archiver.
14528 archiver_list_spec=$lt_archiver_list_spec
14529
14530 # A symbol stripping program.
14531 STRIP=$lt_STRIP
14532
14533 # Commands used to install an old-style archive.
14534 RANLIB=$lt_RANLIB
14535 old_postinstall_cmds=$lt_old_postinstall_cmds
14536 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14537
14538 # Whether to use a lock for old archive extraction.
14539 lock_old_archive_extraction=$lock_old_archive_extraction
14540
14541 # A C compiler.
14542 LTCC=$lt_CC
14543
14544 # LTCC compiler flags.
14545 LTCFLAGS=$lt_CFLAGS
14546
14547 # Take the output of nm and produce a listing of raw symbols and C names.
14548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14549
14550 # Transform the output of nm in a proper C declaration.
14551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14552
14553 # Transform the output of nm in a C name address pair.
14554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14555
14556 # Transform the output of nm in a C name address pair when lib prefix is needed.
14557 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14558
14559 # Specify filename containing input files for \$NM.
14560 nm_file_list_spec=$lt_nm_file_list_spec
14561
14562 # The root where to search for dependent libraries,and in which our libraries should be installed.
14563 lt_sysroot=$lt_sysroot
14564
14565 # The name of the directory that contains temporary libtool files.
14566 objdir=$objdir
14567
14568 # Used to examine libraries when file_magic_cmd begins with "file".
14569 MAGIC_CMD=$MAGIC_CMD
14570
14571 # Must we lock files when doing compilation?
14572 need_locks=$lt_need_locks
14573
14574 # Manifest tool.
14575 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14576
14577 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14578 DSYMUTIL=$lt_DSYMUTIL
14579
14580 # Tool to change global to local symbols on Mac OS X.
14581 NMEDIT=$lt_NMEDIT
14582
14583 # Tool to manipulate fat objects and archives on Mac OS X.
14584 LIPO=$lt_LIPO
14585
14586 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14587 OTOOL=$lt_OTOOL
14588
14589 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14590 OTOOL64=$lt_OTOOL64
14591
14592 # Old archive suffix (normally "a").
14593 libext=$libext
14594
14595 # Shared library suffix (normally ".so").
14596 shrext_cmds=$lt_shrext_cmds
14597
14598 # The commands to extract the exported symbol list from a shared archive.
14599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14600
14601 # Variables whose values should be saved in libtool wrapper scripts and
14602 # restored at link time.
14603 variables_saved_for_relink=$lt_variables_saved_for_relink
14604
14605 # Do we need the "lib" prefix for modules?
14606 need_lib_prefix=$need_lib_prefix
14607
14608 # Do we need a version for libraries?
14609 need_version=$need_version
14610
14611 # Library versioning type.
14612 version_type=$version_type
14613
14614 # Shared library runtime path variable.
14615 runpath_var=$runpath_var
14616
14617 # Shared library path variable.
14618 shlibpath_var=$shlibpath_var
14619
14620 # Is shlibpath searched before the hard-coded library search path?
14621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14622
14623 # Format of library name prefix.
14624 libname_spec=$lt_libname_spec
14625
14626 # List of archive names.  First name is the real one, the rest are links.
14627 # The last name is the one that the linker finds with -lNAME
14628 library_names_spec=$lt_library_names_spec
14629
14630 # The coded name of the library, if different from the real name.
14631 soname_spec=$lt_soname_spec
14632
14633 # Permission mode override for installation of shared libraries.
14634 install_override_mode=$lt_install_override_mode
14635
14636 # Command to use after installation of a shared archive.
14637 postinstall_cmds=$lt_postinstall_cmds
14638
14639 # Command to use after uninstallation of a shared archive.
14640 postuninstall_cmds=$lt_postuninstall_cmds
14641
14642 # Commands used to finish a libtool library installation in a directory.
14643 finish_cmds=$lt_finish_cmds
14644
14645 # As "finish_cmds", except a single script fragment to be evaled but
14646 # not shown.
14647 finish_eval=$lt_finish_eval
14648
14649 # Whether we should hardcode library paths into libraries.
14650 hardcode_into_libs=$hardcode_into_libs
14651
14652 # Compile-time system search path for libraries.
14653 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14654
14655 # Run-time system search path for libraries.
14656 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14657
14658 # Whether dlopen is supported.
14659 dlopen_support=$enable_dlopen
14660
14661 # Whether dlopen of programs is supported.
14662 dlopen_self=$enable_dlopen_self
14663
14664 # Whether dlopen of statically linked programs is supported.
14665 dlopen_self_static=$enable_dlopen_self_static
14666
14667 # Commands to strip libraries.
14668 old_striplib=$lt_old_striplib
14669 striplib=$lt_striplib
14670
14671
14672 # The linker used to build libraries.
14673 LD=$lt_LD
14674
14675 # How to create reloadable object files.
14676 reload_flag=$lt_reload_flag
14677 reload_cmds=$lt_reload_cmds
14678
14679 # Commands used to build an old-style archive.
14680 old_archive_cmds=$lt_old_archive_cmds
14681
14682 # A language specific compiler.
14683 CC=$lt_compiler
14684
14685 # Is the compiler the GNU compiler?
14686 with_gcc=$GCC
14687
14688 # Compiler flag to turn off builtin functions.
14689 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14690
14691 # Additional compiler flags for building library objects.
14692 pic_flag=$lt_lt_prog_compiler_pic
14693
14694 # How to pass a linker flag through the compiler.
14695 wl=$lt_lt_prog_compiler_wl
14696
14697 # Compiler flag to prevent dynamic linking.
14698 link_static_flag=$lt_lt_prog_compiler_static
14699
14700 # Does compiler simultaneously support -c and -o options?
14701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14702
14703 # Whether or not to add -lc for building shared libraries.
14704 build_libtool_need_lc=$archive_cmds_need_lc
14705
14706 # Whether or not to disallow shared libs when runtime libs are static.
14707 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14708
14709 # Compiler flag to allow reflexive dlopens.
14710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14711
14712 # Compiler flag to generate shared objects directly from archives.
14713 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14714
14715 # Whether the compiler copes with passing no objects directly.
14716 compiler_needs_object=$lt_compiler_needs_object
14717
14718 # Create an old-style archive from a shared archive.
14719 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14720
14721 # Create a temporary old-style archive to link instead of a shared archive.
14722 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14723
14724 # Commands used to build a shared archive.
14725 archive_cmds=$lt_archive_cmds
14726 archive_expsym_cmds=$lt_archive_expsym_cmds
14727
14728 # Commands used to build a loadable module if different from building
14729 # a shared archive.
14730 module_cmds=$lt_module_cmds
14731 module_expsym_cmds=$lt_module_expsym_cmds
14732
14733 # Whether we are building with GNU ld or not.
14734 with_gnu_ld=$lt_with_gnu_ld
14735
14736 # Flag that allows shared libraries with undefined symbols to be built.
14737 allow_undefined_flag=$lt_allow_undefined_flag
14738
14739 # Flag that enforces no undefined symbols.
14740 no_undefined_flag=$lt_no_undefined_flag
14741
14742 # Flag to hardcode \$libdir into a binary during linking.
14743 # This must work even if \$libdir does not exist
14744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14745
14746 # Whether we need a single "-rpath" flag with a separated argument.
14747 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14748
14749 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14750 # DIR into the resulting binary.
14751 hardcode_direct=$hardcode_direct
14752
14753 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14754 # DIR into the resulting binary and the resulting library dependency is
14755 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14756 # library is relocated.
14757 hardcode_direct_absolute=$hardcode_direct_absolute
14758
14759 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14760 # into the resulting binary.
14761 hardcode_minus_L=$hardcode_minus_L
14762
14763 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14764 # into the resulting binary.
14765 hardcode_shlibpath_var=$hardcode_shlibpath_var
14766
14767 # Set to "yes" if building a shared library automatically hardcodes DIR
14768 # into the library and all subsequent libraries and executables linked
14769 # against it.
14770 hardcode_automatic=$hardcode_automatic
14771
14772 # Set to yes if linker adds runtime paths of dependent libraries
14773 # to runtime path list.
14774 inherit_rpath=$inherit_rpath
14775
14776 # Whether libtool must link a program against all its dependency libraries.
14777 link_all_deplibs=$link_all_deplibs
14778
14779 # Set to "yes" if exported symbols are required.
14780 always_export_symbols=$always_export_symbols
14781
14782 # The commands to list exported symbols.
14783 export_symbols_cmds=$lt_export_symbols_cmds
14784
14785 # Symbols that should not be listed in the preloaded symbols.
14786 exclude_expsyms=$lt_exclude_expsyms
14787
14788 # Symbols that must always be exported.
14789 include_expsyms=$lt_include_expsyms
14790
14791 # Commands necessary for linking programs (against libraries) with templates.
14792 prelink_cmds=$lt_prelink_cmds
14793
14794 # Commands necessary for finishing linking programs.
14795 postlink_cmds=$lt_postlink_cmds
14796
14797 # Specify filename containing input files.
14798 file_list_spec=$lt_file_list_spec
14799
14800 # How to hardcode a shared library path into an executable.
14801 hardcode_action=$hardcode_action
14802
14803 # ### END LIBTOOL CONFIG
14804
14805 _LT_EOF
14806
14807   case $host_os in
14808   aix3*)
14809     cat <<\_LT_EOF >> "$cfgfile"
14810 # AIX sometimes has problems with the GCC collect2 program.  For some
14811 # reason, if we set the COLLECT_NAMES environment variable, the problems
14812 # vanish in a puff of smoke.
14813 if test "X${COLLECT_NAMES+set}" != Xset; then
14814   COLLECT_NAMES=
14815   export COLLECT_NAMES
14816 fi
14817 _LT_EOF
14818     ;;
14819   esac
14820
14821
14822 ltmain="$ac_aux_dir/ltmain.sh"
14823
14824
14825   # We use sed instead of cat because bash on DJGPP gets confused if
14826   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14827   # text mode, it properly converts lines to CR/LF.  This bash problem
14828   # is reportedly fixed, but why not run on old versions too?
14829   sed '$q' "$ltmain" >> "$cfgfile" \
14830      || (rm -f "$cfgfile"; exit 1)
14831
14832   if test x"$xsi_shell" = xyes; then
14833   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14834 func_dirname ()\
14835 {\
14836 \    case ${1} in\
14837 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14838 \      *  ) func_dirname_result="${3}" ;;\
14839 \    esac\
14840 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14841   && mv -f "$cfgfile.tmp" "$cfgfile" \
14842     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14843 test 0 -eq $? || _lt_function_replace_fail=:
14844
14845
14846   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14847 func_basename ()\
14848 {\
14849 \    func_basename_result="${1##*/}"\
14850 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14851   && mv -f "$cfgfile.tmp" "$cfgfile" \
14852     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14853 test 0 -eq $? || _lt_function_replace_fail=:
14854
14855
14856   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14857 func_dirname_and_basename ()\
14858 {\
14859 \    case ${1} in\
14860 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14861 \      *  ) func_dirname_result="${3}" ;;\
14862 \    esac\
14863 \    func_basename_result="${1##*/}"\
14864 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14865   && mv -f "$cfgfile.tmp" "$cfgfile" \
14866     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14867 test 0 -eq $? || _lt_function_replace_fail=:
14868
14869
14870   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14871 func_stripname ()\
14872 {\
14873 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14874 \    # positional parameters, so assign one to ordinary parameter first.\
14875 \    func_stripname_result=${3}\
14876 \    func_stripname_result=${func_stripname_result#"${1}"}\
14877 \    func_stripname_result=${func_stripname_result%"${2}"}\
14878 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14879   && mv -f "$cfgfile.tmp" "$cfgfile" \
14880     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14881 test 0 -eq $? || _lt_function_replace_fail=:
14882
14883
14884   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14885 func_split_long_opt ()\
14886 {\
14887 \    func_split_long_opt_name=${1%%=*}\
14888 \    func_split_long_opt_arg=${1#*=}\
14889 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14890   && mv -f "$cfgfile.tmp" "$cfgfile" \
14891     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14892 test 0 -eq $? || _lt_function_replace_fail=:
14893
14894
14895   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14896 func_split_short_opt ()\
14897 {\
14898 \    func_split_short_opt_arg=${1#??}\
14899 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14900 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14901   && mv -f "$cfgfile.tmp" "$cfgfile" \
14902     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14903 test 0 -eq $? || _lt_function_replace_fail=:
14904
14905
14906   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14907 func_lo2o ()\
14908 {\
14909 \    case ${1} in\
14910 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14911 \      *)    func_lo2o_result=${1} ;;\
14912 \    esac\
14913 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14914   && mv -f "$cfgfile.tmp" "$cfgfile" \
14915     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14916 test 0 -eq $? || _lt_function_replace_fail=:
14917
14918
14919   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14920 func_xform ()\
14921 {\
14922     func_xform_result=${1%.*}.lo\
14923 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14924   && mv -f "$cfgfile.tmp" "$cfgfile" \
14925     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14926 test 0 -eq $? || _lt_function_replace_fail=:
14927
14928
14929   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14930 func_arith ()\
14931 {\
14932     func_arith_result=$(( $* ))\
14933 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14934   && mv -f "$cfgfile.tmp" "$cfgfile" \
14935     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14936 test 0 -eq $? || _lt_function_replace_fail=:
14937
14938
14939   sed -e '/^func_len ()$/,/^} # func_len /c\
14940 func_len ()\
14941 {\
14942     func_len_result=${#1}\
14943 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14944   && mv -f "$cfgfile.tmp" "$cfgfile" \
14945     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14946 test 0 -eq $? || _lt_function_replace_fail=:
14947
14948 fi
14949
14950 if test x"$lt_shell_append" = xyes; then
14951   sed -e '/^func_append ()$/,/^} # func_append /c\
14952 func_append ()\
14953 {\
14954     eval "${1}+=\\${2}"\
14955 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14956   && mv -f "$cfgfile.tmp" "$cfgfile" \
14957     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14958 test 0 -eq $? || _lt_function_replace_fail=:
14959
14960
14961   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14962 func_append_quoted ()\
14963 {\
14964 \    func_quote_for_eval "${2}"\
14965 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14966 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14967   && mv -f "$cfgfile.tmp" "$cfgfile" \
14968     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14969 test 0 -eq $? || _lt_function_replace_fail=:
14970
14971
14972   # Save a `func_append' function call where possible by direct use of '+='
14973   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14974     && mv -f "$cfgfile.tmp" "$cfgfile" \
14975       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14976   test 0 -eq $? || _lt_function_replace_fail=:
14977 else
14978   # Save a `func_append' function call even when '+=' is not available
14979   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14980     && mv -f "$cfgfile.tmp" "$cfgfile" \
14981       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14982   test 0 -eq $? || _lt_function_replace_fail=:
14983 fi
14984
14985 if test x"$_lt_function_replace_fail" = x":"; then
14986   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14987 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14988 fi
14989
14990
14991    mv -f "$cfgfile" "$ofile" ||
14992     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14993   chmod +x "$ofile"
14994
14995  ;;
14996
14997   esac
14998 done # for ac_tag
14999
15000
15001 as_fn_exit 0
15002 _ACEOF
15003 ac_clean_files=$ac_clean_files_save
15004
15005 test $ac_write_fail = 0 ||
15006   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15007
15008
15009 # configure is writing to config.log, and then calls config.status.
15010 # config.status does its own redirection, appending to config.log.
15011 # Unfortunately, on DOS this fails, as config.log is still kept open
15012 # by configure, so config.status won't be able to write to it; its
15013 # output is simply discarded.  So we exec the FD to /dev/null,
15014 # effectively closing config.log, so it can be properly (re)opened and
15015 # appended to by config.status.  When coming back to configure, we
15016 # need to make the FD available again.
15017 if test "$no_create" != yes; then
15018   ac_cs_success=:
15019   ac_config_status_args=
15020   test "$silent" = yes &&
15021     ac_config_status_args="$ac_config_status_args --quiet"
15022   exec 5>/dev/null
15023   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15024   exec 5>>config.log
15025   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15026   # would make configure fail if this is the last instruction.
15027   $ac_cs_success || as_fn_exit 1
15028 fi
15029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15030   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15032 fi
15033