Imported Upstream version 1.1.1
[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.1.
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.1'
594 PACKAGE_STRING='libzip 1.1.1'
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 LIBOBJS
642 CPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 ac_ct_AR
651 AR
652 DLLTOOL
653 OBJDUMP
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 EGREP
661 GREP
662 SED
663 LIBTOOL
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 PKG_CONFIG_RPATH
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_silent_rules
759 enable_dependency_tracking
760 enable_largefile
761 with_zlib
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 '
770       ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 CPP'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833   # If the previous option needs an argument, assign it.
834   if test -n "$ac_prev"; then
835     eval $ac_prev=\$ac_option
836     ac_prev=
837     continue
838   fi
839
840   case $ac_option in
841   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842   *=)   ac_optarg= ;;
843   *)    ac_optarg=yes ;;
844   esac
845
846   # Accept the important Cygnus configure options, so we can diagnose typos.
847
848   case $ac_dashdash$ac_option in
849   --)
850     ac_dashdash=yes ;;
851
852   -bindir | --bindir | --bindi | --bind | --bin | --bi)
853     ac_prev=bindir ;;
854   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855     bindir=$ac_optarg ;;
856
857   -build | --build | --buil | --bui | --bu)
858     ac_prev=build_alias ;;
859   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860     build_alias=$ac_optarg ;;
861
862   -cache-file | --cache-file | --cache-fil | --cache-fi \
863   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864     ac_prev=cache_file ;;
865   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867     cache_file=$ac_optarg ;;
868
869   --config-cache | -C)
870     cache_file=config.cache ;;
871
872   -datadir | --datadir | --datadi | --datad)
873     ac_prev=datadir ;;
874   -datadir=* | --datadir=* | --datadi=* | --datad=*)
875     datadir=$ac_optarg ;;
876
877   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878   | --dataroo | --dataro | --datar)
879     ac_prev=datarootdir ;;
880   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882     datarootdir=$ac_optarg ;;
883
884   -disable-* | --disable-*)
885     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886     # Reject names that are not valid shell variable names.
887     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888       as_fn_error $? "invalid feature name: $ac_useropt"
889     ac_useropt_orig=$ac_useropt
890     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891     case $ac_user_opts in
892       *"
893 "enable_$ac_useropt"
894 "*) ;;
895       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896          ac_unrecognized_sep=', ';;
897     esac
898     eval enable_$ac_useropt=no ;;
899
900   -docdir | --docdir | --docdi | --doc | --do)
901     ac_prev=docdir ;;
902   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903     docdir=$ac_optarg ;;
904
905   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906     ac_prev=dvidir ;;
907   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908     dvidir=$ac_optarg ;;
909
910   -enable-* | --enable-*)
911     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912     # Reject names that are not valid shell variable names.
913     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914       as_fn_error $? "invalid feature name: $ac_useropt"
915     ac_useropt_orig=$ac_useropt
916     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917     case $ac_user_opts in
918       *"
919 "enable_$ac_useropt"
920 "*) ;;
921       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922          ac_unrecognized_sep=', ';;
923     esac
924     eval enable_$ac_useropt=\$ac_optarg ;;
925
926   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928   | --exec | --exe | --ex)
929     ac_prev=exec_prefix ;;
930   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932   | --exec=* | --exe=* | --ex=*)
933     exec_prefix=$ac_optarg ;;
934
935   -gas | --gas | --ga | --g)
936     # Obsolete; use --with-gas.
937     with_gas=yes ;;
938
939   -help | --help | --hel | --he | -h)
940     ac_init_help=long ;;
941   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942     ac_init_help=recursive ;;
943   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944     ac_init_help=short ;;
945
946   -host | --host | --hos | --ho)
947     ac_prev=host_alias ;;
948   -host=* | --host=* | --hos=* | --ho=*)
949     host_alias=$ac_optarg ;;
950
951   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952     ac_prev=htmldir ;;
953   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954   | --ht=*)
955     htmldir=$ac_optarg ;;
956
957   -includedir | --includedir | --includedi | --included | --include \
958   | --includ | --inclu | --incl | --inc)
959     ac_prev=includedir ;;
960   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961   | --includ=* | --inclu=* | --incl=* | --inc=*)
962     includedir=$ac_optarg ;;
963
964   -infodir | --infodir | --infodi | --infod | --info | --inf)
965     ac_prev=infodir ;;
966   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967     infodir=$ac_optarg ;;
968
969   -libdir | --libdir | --libdi | --libd)
970     ac_prev=libdir ;;
971   -libdir=* | --libdir=* | --libdi=* | --libd=*)
972     libdir=$ac_optarg ;;
973
974   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975   | --libexe | --libex | --libe)
976     ac_prev=libexecdir ;;
977   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978   | --libexe=* | --libex=* | --libe=*)
979     libexecdir=$ac_optarg ;;
980
981   -localedir | --localedir | --localedi | --localed | --locale)
982     ac_prev=localedir ;;
983   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984     localedir=$ac_optarg ;;
985
986   -localstatedir | --localstatedir | --localstatedi | --localstated \
987   | --localstate | --localstat | --localsta | --localst | --locals)
988     ac_prev=localstatedir ;;
989   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991     localstatedir=$ac_optarg ;;
992
993   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994     ac_prev=mandir ;;
995   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996     mandir=$ac_optarg ;;
997
998   -nfp | --nfp | --nf)
999     # Obsolete; use --without-fp.
1000     with_fp=no ;;
1001
1002   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003   | --no-cr | --no-c | -n)
1004     no_create=yes ;;
1005
1006   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008     no_recursion=yes ;;
1009
1010   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012   | --oldin | --oldi | --old | --ol | --o)
1013     ac_prev=oldincludedir ;;
1014   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017     oldincludedir=$ac_optarg ;;
1018
1019   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020     ac_prev=prefix ;;
1021   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022     prefix=$ac_optarg ;;
1023
1024   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025   | --program-pre | --program-pr | --program-p)
1026     ac_prev=program_prefix ;;
1027   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029     program_prefix=$ac_optarg ;;
1030
1031   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032   | --program-suf | --program-su | --program-s)
1033     ac_prev=program_suffix ;;
1034   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036     program_suffix=$ac_optarg ;;
1037
1038   -program-transform-name | --program-transform-name \
1039   | --program-transform-nam | --program-transform-na \
1040   | --program-transform-n | --program-transform- \
1041   | --program-transform | --program-transfor \
1042   | --program-transfo | --program-transf \
1043   | --program-trans | --program-tran \
1044   | --progr-tra | --program-tr | --program-t)
1045     ac_prev=program_transform_name ;;
1046   -program-transform-name=* | --program-transform-name=* \
1047   | --program-transform-nam=* | --program-transform-na=* \
1048   | --program-transform-n=* | --program-transform-=* \
1049   | --program-transform=* | --program-transfor=* \
1050   | --program-transfo=* | --program-transf=* \
1051   | --program-trans=* | --program-tran=* \
1052   | --progr-tra=* | --program-tr=* | --program-t=*)
1053     program_transform_name=$ac_optarg ;;
1054
1055   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056     ac_prev=pdfdir ;;
1057   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058     pdfdir=$ac_optarg ;;
1059
1060   -psdir | --psdir | --psdi | --psd | --ps)
1061     ac_prev=psdir ;;
1062   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063     psdir=$ac_optarg ;;
1064
1065   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066   | -silent | --silent | --silen | --sile | --sil)
1067     silent=yes ;;
1068
1069   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070     ac_prev=sbindir ;;
1071   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072   | --sbi=* | --sb=*)
1073     sbindir=$ac_optarg ;;
1074
1075   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077   | --sharedst | --shareds | --shared | --share | --shar \
1078   | --sha | --sh)
1079     ac_prev=sharedstatedir ;;
1080   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083   | --sha=* | --sh=*)
1084     sharedstatedir=$ac_optarg ;;
1085
1086   -site | --site | --sit)
1087     ac_prev=site ;;
1088   -site=* | --site=* | --sit=*)
1089     site=$ac_optarg ;;
1090
1091   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092     ac_prev=srcdir ;;
1093   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094     srcdir=$ac_optarg ;;
1095
1096   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097   | --syscon | --sysco | --sysc | --sys | --sy)
1098     ac_prev=sysconfdir ;;
1099   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101     sysconfdir=$ac_optarg ;;
1102
1103   -target | --target | --targe | --targ | --tar | --ta | --t)
1104     ac_prev=target_alias ;;
1105   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106     target_alias=$ac_optarg ;;
1107
1108   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109     verbose=yes ;;
1110
1111   -version | --version | --versio | --versi | --vers | -V)
1112     ac_init_version=: ;;
1113
1114   -with-* | --with-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       as_fn_error $? "invalid package name: $ac_useropt"
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval with_$ac_useropt=\$ac_optarg ;;
1129
1130   -without-* | --without-*)
1131     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134       as_fn_error $? "invalid package name: $ac_useropt"
1135     ac_useropt_orig=$ac_useropt
1136     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137     case $ac_user_opts in
1138       *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142          ac_unrecognized_sep=', ';;
1143     esac
1144     eval with_$ac_useropt=no ;;
1145
1146   --x)
1147     # Obsolete; use --with-x.
1148     with_x=yes ;;
1149
1150   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151   | --x-incl | --x-inc | --x-in | --x-i)
1152     ac_prev=x_includes ;;
1153   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155     x_includes=$ac_optarg ;;
1156
1157   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159     ac_prev=x_libraries ;;
1160   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162     x_libraries=$ac_optarg ;;
1163
1164   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1166     ;;
1167
1168   *=*)
1169     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170     # Reject names that are not valid shell variable names.
1171     case $ac_envvar in #(
1172       '' | [0-9]* | *[!_$as_cr_alnum]* )
1173       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174     esac
1175     eval $ac_envvar=\$ac_optarg
1176     export $ac_envvar ;;
1177
1178   *)
1179     # FIXME: should be removed in autoconf 3.0.
1180     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184     ;;
1185
1186   esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191   as_fn_error $? "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195   case $enable_option_checking in
1196     no) ;;
1197     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199   esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   # Remove trailing slashes.
1210   case $ac_val in
1211     */ )
1212       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213       eval $ac_var=\$ac_val;;
1214   esac
1215   # Be sure to have absolute directory names.
1216   case $ac_val in
1217     [\\/$]* | ?:[\\/]* )  continue;;
1218     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219   esac
1220   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234   elif test "x$build_alias" != "x$host_alias"; then
1235     cross_compiling=yes
1236   fi
1237 fi
1238
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242 test "$silent" = yes && exec 6>/dev/null
1243
1244
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248   as_fn_error $? "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$as_myself" : 'X\(//\)[^/]' \| \
1260          X"$as_myself" : 'X\(//\)$' \| \
1261          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures libzip 1.1.1 to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking ...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR            user executables [EPREFIX/bin]
1354   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR        program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR            object code libraries [EPREFIX/lib]
1360   --includedir=DIR        C header files [PREFIX/include]
1361   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR           info documentation [DATAROOTDIR/info]
1365   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR            man documentation [DATAROOTDIR/man]
1367   --docdir=DIR            documentation root [DATAROOTDIR/doc/libzip]
1368   --htmldir=DIR           html documentation [DOCDIR]
1369   --dvidir=DIR            dvi documentation [DOCDIR]
1370   --pdfdir=DIR            pdf documentation [DOCDIR]
1371   --psdir=DIR             ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 Program names:
1377   --program-prefix=PREFIX            prepend PREFIX to installed program names
1378   --program-suffix=SUFFIX            append SUFFIX to installed program names
1379   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1380
1381 System types:
1382   --build=BUILD     configure for building on BUILD [guessed]
1383   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388   case $ac_init_help in
1389      short | recursive ) echo "Configuration of libzip 1.1.1:";;
1390    esac
1391   cat <<\_ACEOF
1392
1393 Optional Features:
1394   --disable-option-checking  ignore unrecognized --enable/--with options
1395   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1396   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1397   --enable-silent-rules   less verbose build output (undo: "make V=1")
1398   --disable-silent-rules  verbose build output (undo: "make V=0")
1399   --enable-dependency-tracking
1400                           do not reject slow dependency extractors
1401   --disable-dependency-tracking
1402                           speeds up one-time build
1403   --disable-largefile     omit support for large files
1404   --enable-shared[=PKGS]  build shared libraries [default=yes]
1405   --enable-static[=PKGS]  build static libraries [default=yes]
1406   --enable-fast-install[=PKGS]
1407                           optimize for fast installation [default=yes]
1408   --disable-libtool-lock  avoid locking (might break parallel builds)
1409
1410 Optional Packages:
1411   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413   --with-zlib=PREFIX  specify prefix for ZLIB library
1414   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1415                           both]
1416   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1417   --with-sysroot=DIR Search for dependent libraries within DIR
1418                         (or the compiler's sysroot if not specified).
1419
1420 Some influential environment variables:
1421   CC          C compiler command
1422   CFLAGS      C compiler flags
1423   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1424               nonstandard directory <lib dir>
1425   LIBS        libraries to pass to the linker, e.g. -l<library>
1426   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427               you have headers in a nonstandard directory <include dir>
1428   CPP         C preprocessor
1429
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1432
1433 Report bugs to <libzip@nih.at>.
1434 _ACEOF
1435 ac_status=$?
1436 fi
1437
1438 if test "$ac_init_help" = "recursive"; then
1439   # If there are subdirs, report their specific --help.
1440   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441     test -d "$ac_dir" ||
1442       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443       continue
1444     ac_builddir=.
1445
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *)
1449   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450   # A ".." for each directory in $ac_dir_suffix.
1451   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452   case $ac_top_builddir_sub in
1453   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455   esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1461
1462 case $srcdir in
1463   .)  # We are building in place.
1464     ac_srcdir=.
1465     ac_top_srcdir=$ac_top_builddir_sub
1466     ac_abs_top_srcdir=$ac_pwd ;;
1467   [\\/]* | ?:[\\/]* )  # Absolute name.
1468     ac_srcdir=$srcdir$ac_dir_suffix;
1469     ac_top_srcdir=$srcdir
1470     ac_abs_top_srcdir=$srcdir ;;
1471   *) # Relative name.
1472     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473     ac_top_srcdir=$ac_top_build_prefix$srcdir
1474     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478     cd "$ac_dir" || { ac_status=$?; continue; }
1479     # Check for guested configure.
1480     if test -f "$ac_srcdir/configure.gnu"; then
1481       echo &&
1482       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483     elif test -f "$ac_srcdir/configure"; then
1484       echo &&
1485       $SHELL "$ac_srcdir/configure" --help=recursive
1486     else
1487       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488     fi || ac_status=$?
1489     cd "$ac_pwd" || { ac_status=$?; break; }
1490   done
1491 fi
1492
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495   cat <<\_ACEOF
1496 libzip configure 1.1.1
1497 generated by GNU Autoconf 2.69
1498
1499 Copyright (C) 2012 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502 _ACEOF
1503   exit
1504 fi
1505
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1509
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1514 {
1515   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516   rm -f conftest.$ac_objext
1517   if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520   *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524   (eval "$ac_compile") 2>conftest.err
1525   ac_status=$?
1526   if test -s conftest.err; then
1527     grep -v '^ *+' conftest.err >conftest.er1
1528     cat conftest.er1 >&5
1529     mv -f conftest.er1 conftest.err
1530   fi
1531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532   test $ac_status = 0; } && {
1533          test -z "$ac_c_werror_flag" ||
1534          test ! -s conftest.err
1535        } && test -s conftest.$ac_objext; then :
1536   ac_retval=0
1537 else
1538   $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541         ac_retval=1
1542 fi
1543   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544   as_fn_set_status $ac_retval
1545
1546 } # ac_fn_c_try_compile
1547
1548 # ac_fn_c_try_link LINENO
1549 # -----------------------
1550 # Try to link conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_link ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext conftest$ac_exeext
1555   if { { ac_try="$ac_link"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_link") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_c_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest$ac_exeext && {
1574          test "$cross_compiling" = yes ||
1575          test -x conftest$ac_exeext
1576        }; then :
1577   ac_retval=0
1578 else
1579   $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582         ac_retval=1
1583 fi
1584   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586   # interfere with the next link command; also delete a directory that is
1587   # left behind by Apple's compiler.  We do this before executing the actions.
1588   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590   as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_link
1593
1594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists and can be compiled using the include files in
1597 # INCLUDES, setting the cache variable VAR accordingly.
1598 ac_fn_c_check_header_compile ()
1599 {
1600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \${$3+:} false; then :
1604   $as_echo_n "(cached) " >&6
1605 else
1606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h.  */
1608 $4
1609 #include <$2>
1610 _ACEOF
1611 if ac_fn_c_try_compile "$LINENO"; then :
1612   eval "$3=yes"
1613 else
1614   eval "$3=no"
1615 fi
1616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 fi
1618 eval ac_res=\$$3
1619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623 } # ac_fn_c_check_header_compile
1624
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } > conftest.i && {
1647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        }; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655     ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_cpp
1661
1662 # ac_fn_c_try_run LINENO
1663 # ----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665 # that executables *can* be run.
1666 ac_fn_c_try_run ()
1667 {
1668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669   if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672   *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676   (eval "$ac_link") 2>&5
1677   ac_status=$?
1678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680   { { case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_try") 2>&5
1687   ac_status=$?
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; }; }; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: program exited with status $ac_status" >&5
1693        $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696        ac_retval=$ac_status
1697 fi
1698   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700   as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_run
1703
1704 # ac_fn_c_check_func LINENO FUNC VAR
1705 # ----------------------------------
1706 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1707 ac_fn_c_check_func ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713   $as_echo_n "(cached) " >&6
1714 else
1715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h.  */
1717 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1719 #define $2 innocuous_$2
1720
1721 /* System header to define __stub macros and hopefully few prototypes,
1722     which can conflict with char $2 (); below.
1723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1724     <limits.h> exists even on freestanding compilers.  */
1725
1726 #ifdef __STDC__
1727 # include <limits.h>
1728 #else
1729 # include <assert.h>
1730 #endif
1731
1732 #undef $2
1733
1734 /* Override any GCC internal prototype to avoid an error.
1735    Use char because int might match the return type of a GCC
1736    builtin and then its argument prototype would still apply.  */
1737 #ifdef __cplusplus
1738 extern "C"
1739 #endif
1740 char $2 ();
1741 /* The GNU C library defines this for functions which it implements
1742     to always fail with ENOSYS.  Some functions are actually named
1743     something starting with __ and the normal name is an alias.  */
1744 #if defined __stub_$2 || defined __stub___$2
1745 choke me
1746 #endif
1747
1748 int
1749 main ()
1750 {
1751 return $2 ();
1752   ;
1753   return 0;
1754 }
1755 _ACEOF
1756 if ac_fn_c_try_link "$LINENO"; then :
1757   eval "$3=yes"
1758 else
1759   eval "$3=no"
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext \
1762     conftest$ac_exeext conftest.$ac_ext
1763 fi
1764 eval ac_res=\$$3
1765                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769 } # ac_fn_c_check_func
1770
1771 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1774 # the include files in INCLUDES and setting the cache variable VAR
1775 # accordingly.
1776 ac_fn_c_check_header_mongrel ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   if eval \${$3+:} false; then :
1780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783   $as_echo_n "(cached) " >&6
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 else
1789   # Is the header compilable?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1791 $as_echo_n "checking $2 usability... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h.  */
1794 $4
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798   ac_header_compiler=yes
1799 else
1800   ac_header_compiler=no
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1804 $as_echo "$ac_header_compiler" >&6; }
1805
1806 # Is the header present?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1808 $as_echo_n "checking $2 presence... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_cpp "$LINENO"; then :
1814   ac_header_preproc=yes
1815 else
1816   ac_header_preproc=no
1817 fi
1818 rm -f conftest.err conftest.i conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1820 $as_echo "$ac_header_preproc" >&6; }
1821
1822 # So?  What about this header?
1823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824   yes:no: )
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1826 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829     ;;
1830   no:yes:* )
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1832 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1834 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1836 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1838 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ( $as_echo "## ---------------------------- ##
1842 ## Report this to libzip@nih.at ##
1843 ## ---------------------------- ##"
1844      ) | sed "s/^/$as_me: WARNING:     /" >&2
1845     ;;
1846 esac
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   eval "$3=\$ac_header_compiler"
1853 fi
1854 eval ac_res=\$$3
1855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_header_mongrel
1861
1862 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1863 # -------------------------------------------
1864 # Tests whether TYPE exists after having included INCLUDES, setting cache
1865 # variable VAR accordingly.
1866 ac_fn_c_check_type ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872   $as_echo_n "(cached) " >&6
1873 else
1874   eval "$3=no"
1875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 $4
1878 int
1879 main ()
1880 {
1881 if (sizeof ($2))
1882          return 0;
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 int
1892 main ()
1893 {
1894 if (sizeof (($2)))
1895             return 0;
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901
1902 else
1903   eval "$3=yes"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_check_type
1915
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 # computed
1921 ac_fn_c_compute_int ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if test "$cross_compiling" = yes; then
1925     # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h.  */
1928 $4
1929 int
1930 main ()
1931 {
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1933 test_array [0] = 0;
1934 return test_array [0];
1935
1936   ;
1937   return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941   ac_lo=0 ac_mid=0
1942   while :; do
1943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h.  */
1945 $4
1946 int
1947 main ()
1948 {
1949 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1950 test_array [0] = 0;
1951 return test_array [0];
1952
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958   ac_hi=$ac_mid; break
1959 else
1960   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1961                         if test $ac_lo -le $ac_mid; then
1962                           ac_lo= ac_hi=
1963                           break
1964                         fi
1965                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968   done
1969 else
1970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 $4
1973 int
1974 main ()
1975 {
1976 static int test_array [1 - 2 * !(($2) < 0)];
1977 test_array [0] = 0;
1978 return test_array [0];
1979
1980   ;
1981   return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985   ac_hi=-1 ac_mid=-1
1986   while :; do
1987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 int
1991 main ()
1992 {
1993 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1994 test_array [0] = 0;
1995 return test_array [0];
1996
1997   ;
1998   return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002   ac_lo=$ac_mid; break
2003 else
2004   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2005                         if test $ac_mid -le $ac_hi; then
2006                           ac_lo= ac_hi=
2007                           break
2008                         fi
2009                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012   done
2013 else
2014   ac_lo= ac_hi=
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 # Binary search between lo and hi bounds.
2020 while test "x$ac_lo" != "x$ac_hi"; do
2021   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 $4
2025 int
2026 main ()
2027 {
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029 test_array [0] = 0;
2030 return test_array [0];
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037   ac_hi=$ac_mid
2038 else
2039   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043 case $ac_lo in #((
2044 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2045 '') ac_retval=1 ;;
2046 esac
2047   else
2048     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h.  */
2050 $4
2051 static long int longval () { return $2; }
2052 static unsigned long int ulongval () { return $2; }
2053 #include <stdio.h>
2054 #include <stdlib.h>
2055 int
2056 main ()
2057 {
2058
2059   FILE *f = fopen ("conftest.val", "w");
2060   if (! f)
2061     return 1;
2062   if (($2) < 0)
2063     {
2064       long int i = longval ();
2065       if (i != ($2))
2066         return 1;
2067       fprintf (f, "%ld", i);
2068     }
2069   else
2070     {
2071       unsigned long int i = ulongval ();
2072       if (i != ($2))
2073         return 1;
2074       fprintf (f, "%lu", i);
2075     }
2076   /* Do not output a trailing newline, as this causes \r\n confusion
2077      on some platforms.  */
2078   return ferror (f) || fclose (f) != 0;
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_run "$LINENO"; then :
2085   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2086 else
2087   ac_retval=1
2088 fi
2089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2090   conftest.$ac_objext conftest.beam conftest.$ac_ext
2091 rm -f conftest.val
2092
2093   fi
2094   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095   as_fn_set_status $ac_retval
2096
2097 } # ac_fn_c_compute_int
2098
2099 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2100 # ----------------------------------------------------
2101 # Tries to find if the field MEMBER exists in type AGGR, after including
2102 # INCLUDES, setting cache variable VAR accordingly.
2103 ac_fn_c_check_member ()
2104 {
2105   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2107 $as_echo_n "checking for $2.$3... " >&6; }
2108 if eval \${$4+:} false; then :
2109   $as_echo_n "(cached) " >&6
2110 else
2111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h.  */
2113 $5
2114 int
2115 main ()
2116 {
2117 static $2 ac_aggr;
2118 if (ac_aggr.$3)
2119 return 0;
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125   eval "$4=yes"
2126 else
2127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $5
2130 int
2131 main ()
2132 {
2133 static $2 ac_aggr;
2134 if (sizeof ac_aggr.$3)
2135 return 0;
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141   eval "$4=yes"
2142 else
2143   eval "$4=no"
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
2149 eval ac_res=\$$4
2150                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153
2154 } # ac_fn_c_check_member
2155
2156 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2157 # ---------------------------------------------
2158 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2159 # accordingly.
2160 ac_fn_c_check_decl ()
2161 {
2162   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163   as_decl_name=`echo $2|sed 's/ *(.*//'`
2164   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2166 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2167 if eval \${$3+:} false; then :
2168   $as_echo_n "(cached) " >&6
2169 else
2170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h.  */
2172 $4
2173 int
2174 main ()
2175 {
2176 #ifndef $as_decl_name
2177 #ifdef __cplusplus
2178   (void) $as_decl_use;
2179 #else
2180   (void) $as_decl_name;
2181 #endif
2182 #endif
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189   eval "$3=yes"
2190 else
2191   eval "$3=no"
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 fi
2195 eval ac_res=\$$3
2196                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200 } # ac_fn_c_check_decl
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2204
2205 It was created by libzip $as_me 1.1.1, which was
2206 generated by GNU Autoconf 2.69.  Invocation command line was
2207
2208   $ $0 $@
2209
2210 _ACEOF
2211 exec 5>>config.log
2212 {
2213 cat <<_ASUNAME
2214 ## --------- ##
2215 ## Platform. ##
2216 ## --------- ##
2217
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2226
2227 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2228 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2231 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2232 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2233 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2234
2235 _ASUNAME
2236
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242     $as_echo "PATH: $as_dir"
2243   done
2244 IFS=$as_save_IFS
2245
2246 } >&5
2247
2248 cat >&5 <<_ACEOF
2249
2250
2251 ## ----------- ##
2252 ## Core tests. ##
2253 ## ----------- ##
2254
2255 _ACEOF
2256
2257
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2263 ac_configure_args=
2264 ac_configure_args0=
2265 ac_configure_args1=
2266 ac_must_keep_next=false
2267 for ac_pass in 1 2
2268 do
2269   for ac_arg
2270   do
2271     case $ac_arg in
2272     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274     | -silent | --silent | --silen | --sile | --sil)
2275       continue ;;
2276     *\'*)
2277       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2278     esac
2279     case $ac_pass in
2280     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2281     2)
2282       as_fn_append ac_configure_args1 " '$ac_arg'"
2283       if test $ac_must_keep_next = true; then
2284         ac_must_keep_next=false # Got value, back to normal.
2285       else
2286         case $ac_arg in
2287           *=* | --config-cache | -C | -disable-* | --disable-* \
2288           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290           | -with-* | --with-* | -without-* | --without-* | --x)
2291             case "$ac_configure_args0 " in
2292               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293             esac
2294             ;;
2295           -* ) ac_must_keep_next=true ;;
2296         esac
2297       fi
2298       as_fn_append ac_configure_args " '$ac_arg'"
2299       ;;
2300     esac
2301   done
2302 done
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2305
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log.  We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312   # Save into config.log some information that might help in debugging.
2313   {
2314     echo
2315
2316     $as_echo "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2319     echo
2320     # The following way of writing the cache mishandles newlines in values,
2321 (
2322   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323     eval ac_val=\$$ac_var
2324     case $ac_val in #(
2325     *${as_nl}*)
2326       case $ac_var in #(
2327       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329       esac
2330       case $ac_var in #(
2331       _ | IFS | as_nl) ;; #(
2332       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333       *) { eval $ac_var=; unset $ac_var;} ;;
2334       esac ;;
2335     esac
2336   done
2337   (set) 2>&1 |
2338     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339     *${as_nl}ac_space=\ *)
2340       sed -n \
2341         "s/'\''/'\''\\\\'\'''\''/g;
2342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343       ;; #(
2344     *)
2345       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2346       ;;
2347     esac |
2348     sort
2349 )
2350     echo
2351
2352     $as_echo "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2355     echo
2356     for ac_var in $ac_subst_vars
2357     do
2358       eval ac_val=\$$ac_var
2359       case $ac_val in
2360       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361       esac
2362       $as_echo "$ac_var='\''$ac_val'\''"
2363     done | sort
2364     echo
2365
2366     if test -n "$ac_subst_files"; then
2367       $as_echo "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2370       echo
2371       for ac_var in $ac_subst_files
2372       do
2373         eval ac_val=\$$ac_var
2374         case $ac_val in
2375         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376         esac
2377         $as_echo "$ac_var='\''$ac_val'\''"
2378       done | sort
2379       echo
2380     fi
2381
2382     if test -s confdefs.h; then
2383       $as_echo "## ----------- ##
2384 ## confdefs.h. ##
2385 ## ----------- ##"
2386       echo
2387       cat confdefs.h
2388       echo
2389     fi
2390     test "$ac_signal" != 0 &&
2391       $as_echo "$as_me: caught signal $ac_signal"
2392     $as_echo "$as_me: exit $exit_status"
2393   } >&5
2394   rm -f core *.core core.conftest.* &&
2395     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396     exit $exit_status
2397 ' 0
2398 for ac_signal in 1 2 13 15; do
2399   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2400 done
2401 ac_signal=0
2402
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2405
2406 $as_echo "/* confdefs.h */" > confdefs.h
2407
2408 # Predefined preprocessor variables.
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2432 _ACEOF
2433
2434
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2437 ac_site_file1=NONE
2438 ac_site_file2=NONE
2439 if test -n "$CONFIG_SITE"; then
2440   # We do not want a PATH search for config.site.
2441   case $CONFIG_SITE in #((
2442     -*)  ac_site_file1=./$CONFIG_SITE;;
2443     */*) ac_site_file1=$CONFIG_SITE;;
2444     *)   ac_site_file1=./$CONFIG_SITE;;
2445   esac
2446 elif test "x$prefix" != xNONE; then
2447   ac_site_file1=$prefix/share/config.site
2448   ac_site_file2=$prefix/etc/config.site
2449 else
2450   ac_site_file1=$ac_default_prefix/share/config.site
2451   ac_site_file2=$ac_default_prefix/etc/config.site
2452 fi
2453 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454 do
2455   test "x$ac_site_file" = xNONE && continue
2456   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459     sed 's/^/| /' "$ac_site_file" >&5
2460     . "$ac_site_file" \
2461       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 as_fn_error $? "failed to load site script $ac_site_file
2464 See \`config.log' for more details" "$LINENO" 5; }
2465   fi
2466 done
2467
2468 if test -r "$cache_file"; then
2469   # Some versions of bash will fail to source /dev/null (special files
2470   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2471   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473 $as_echo "$as_me: loading cache $cache_file" >&6;}
2474     case $cache_file in
2475       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476       *)                      . "./$cache_file";;
2477     esac
2478   fi
2479 else
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481 $as_echo "$as_me: creating cache $cache_file" >&6;}
2482   >$cache_file
2483 fi
2484
2485 # Check that the precious variables saved in the cache have kept the same
2486 # value.
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490   eval ac_new_set=\$ac_env_${ac_var}_set
2491   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492   eval ac_new_val=\$ac_env_${ac_var}_value
2493   case $ac_old_set,$ac_new_set in
2494     set,)
2495       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497       ac_cache_corrupted=: ;;
2498     ,set)
2499       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501       ac_cache_corrupted=: ;;
2502     ,);;
2503     *)
2504       if test "x$ac_old_val" != "x$ac_new_val"; then
2505         # differences in whitespace do not lead to failure.
2506         ac_old_val_w=`echo x $ac_old_val`
2507         ac_new_val_w=`echo x $ac_new_val`
2508         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511           ac_cache_corrupted=:
2512         else
2513           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515           eval $ac_var=\$ac_old_val
2516         fi
2517         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2518 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2519         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2520 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2521       fi;;
2522   esac
2523   # Pass precious variables to config.status.
2524   if test "$ac_new_set" = set; then
2525     case $ac_new_val in
2526     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527     *) ac_arg=$ac_var=$ac_new_val ;;
2528     esac
2529     case " $ac_configure_args " in
2530       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2531       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2532     esac
2533   fi
2534 done
2535 if $ac_cache_corrupted; then
2536   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2540   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2541 fi
2542 ## -------------------- ##
2543 ## Main body of script. ##
2544 ## -------------------- ##
2545
2546 ac_ext=c
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551
2552
2553
2554 ac_config_headers="$ac_config_headers config.h"
2555
2556
2557 am__api_version='1.15'
2558
2559 ac_aux_dir=
2560 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2561   if test -f "$ac_dir/install-sh"; then
2562     ac_aux_dir=$ac_dir
2563     ac_install_sh="$ac_aux_dir/install-sh -c"
2564     break
2565   elif test -f "$ac_dir/install.sh"; then
2566     ac_aux_dir=$ac_dir
2567     ac_install_sh="$ac_aux_dir/install.sh -c"
2568     break
2569   elif test -f "$ac_dir/shtool"; then
2570     ac_aux_dir=$ac_dir
2571     ac_install_sh="$ac_aux_dir/shtool install -c"
2572     break
2573   fi
2574 done
2575 if test -z "$ac_aux_dir"; then
2576   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2577 fi
2578
2579 # These three variables are undocumented and unsupported,
2580 # and are intended to be withdrawn in a future Autoconf release.
2581 # They can cause serious problems if a builder's source tree is in a directory
2582 # whose full name contains unusual characters.
2583 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2584 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2585 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2586
2587
2588 # Find a good install program.  We prefer a C program (faster),
2589 # so one script is as good as another.  But avoid the broken or
2590 # incompatible versions:
2591 # SysV /etc/install, /usr/sbin/install
2592 # SunOS /usr/etc/install
2593 # IRIX /sbin/install
2594 # AIX /bin/install
2595 # AmigaOS /C/install, which installs bootblocks on floppy discs
2596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2599 # OS/2's system install, which has a completely different semantic
2600 # ./install, which can be erroneously created by make from ./install.sh.
2601 # Reject install programs that cannot install multiple files.
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2604 if test -z "$INSTALL"; then
2605 if ${ac_cv_path_install+:} false; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613     # Account for people who put trailing slashes in PATH elements.
2614 case $as_dir/ in #((
2615   ./ | .// | /[cC]/* | \
2616   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2617   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2618   /usr/ucb/* ) ;;
2619   *)
2620     # OSF1 and SCO ODT 3.0 have their own names for install.
2621     # Don't use installbsd from OSF since it installs stuff as root
2622     # by default.
2623     for ac_prog in ginstall scoinst install; do
2624       for ac_exec_ext in '' $ac_executable_extensions; do
2625         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2626           if test $ac_prog = install &&
2627             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2628             # AIX install.  It has an incompatible calling convention.
2629             :
2630           elif test $ac_prog = install &&
2631             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632             # program-specific install script used by HP pwplus--don't use.
2633             :
2634           else
2635             rm -rf conftest.one conftest.two conftest.dir
2636             echo one > conftest.one
2637             echo two > conftest.two
2638             mkdir conftest.dir
2639             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2640               test -s conftest.one && test -s conftest.two &&
2641               test -s conftest.dir/conftest.one &&
2642               test -s conftest.dir/conftest.two
2643             then
2644               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2645               break 3
2646             fi
2647           fi
2648         fi
2649       done
2650     done
2651     ;;
2652 esac
2653
2654   done
2655 IFS=$as_save_IFS
2656
2657 rm -rf conftest.one conftest.two conftest.dir
2658
2659 fi
2660   if test "${ac_cv_path_install+set}" = set; then
2661     INSTALL=$ac_cv_path_install
2662   else
2663     # As a last resort, use the slow shell script.  Don't cache a
2664     # value for INSTALL within a source directory, because that will
2665     # break other packages using the cache if that directory is
2666     # removed, or if the value is a relative name.
2667     INSTALL=$ac_install_sh
2668   fi
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2671 $as_echo "$INSTALL" >&6; }
2672
2673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2674 # It thinks the first close brace ends the variable substitution.
2675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2676
2677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2678
2679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2682 $as_echo_n "checking whether build environment is sane... " >&6; }
2683 # Reject unsafe characters in $srcdir or the absolute working directory
2684 # name.  Accept space and tab only in the latter.
2685 am_lf='
2686 '
2687 case `pwd` in
2688   *[\\\"\#\$\&\'\`$am_lf]*)
2689     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2690 esac
2691 case $srcdir in
2692   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2693     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2694 esac
2695
2696 # Do 'set' in a subshell so we don't clobber the current shell's
2697 # arguments.  Must try -L first in case configure is actually a
2698 # symlink; some systems play weird games with the mod time of symlinks
2699 # (eg FreeBSD returns the mod time of the symlink's containing
2700 # directory).
2701 if (
2702    am_has_slept=no
2703    for am_try in 1 2; do
2704      echo "timestamp, slept: $am_has_slept" > conftest.file
2705      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2706      if test "$*" = "X"; then
2707         # -L didn't work.
2708         set X `ls -t "$srcdir/configure" conftest.file`
2709      fi
2710      if test "$*" != "X $srcdir/configure conftest.file" \
2711         && test "$*" != "X conftest.file $srcdir/configure"; then
2712
2713         # If neither matched, then we have a broken ls.  This can happen
2714         # if, for instance, CONFIG_SHELL is bash and it inherits a
2715         # broken ls alias from the environment.  This has actually
2716         # happened.  Such a system could not be considered "sane".
2717         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2718   alias in your environment" "$LINENO" 5
2719      fi
2720      if test "$2" = conftest.file || test $am_try -eq 2; then
2721        break
2722      fi
2723      # Just in case.
2724      sleep 1
2725      am_has_slept=yes
2726    done
2727    test "$2" = conftest.file
2728    )
2729 then
2730    # Ok.
2731    :
2732 else
2733    as_fn_error $? "newly created file is older than distributed files!
2734 Check your system clock" "$LINENO" 5
2735 fi
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737 $as_echo "yes" >&6; }
2738 # If we didn't sleep, we still need to ensure time stamps of config.status and
2739 # generated files are strictly newer.
2740 am_sleep_pid=
2741 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2742   ( sleep 1 ) &
2743   am_sleep_pid=$!
2744 fi
2745
2746 rm -f conftest.file
2747
2748 test "$program_prefix" != NONE &&
2749   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2750 # Use a double $ so make ignores it.
2751 test "$program_suffix" != NONE &&
2752   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2753 # Double any \ or $.
2754 # By default was `s,x,x', remove it if useless.
2755 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2756 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2757
2758 # Expand $ac_aux_dir to an absolute path.
2759 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2760
2761 if test x"${MISSING+set}" != xset; then
2762   case $am_aux_dir in
2763   *\ * | *\     *)
2764     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2765   *)
2766     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2767   esac
2768 fi
2769 # Use eval to expand $SHELL
2770 if eval "$MISSING --is-lightweight"; then
2771   am_missing_run="$MISSING "
2772 else
2773   am_missing_run=
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2775 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2776 fi
2777
2778 if test x"${install_sh+set}" != xset; then
2779   case $am_aux_dir in
2780   *\ * | *\     *)
2781     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2782   *)
2783     install_sh="\${SHELL} $am_aux_dir/install-sh"
2784   esac
2785 fi
2786
2787 # Installed binaries are usually stripped using 'strip' when the user
2788 # run "make install-strip".  However 'strip' might not be the right
2789 # tool to use in cross-compilation environments, therefore Automake
2790 # will honor the 'STRIP' environment variable to overrule this program.
2791 if test "$cross_compiling" != no; then
2792   if test -n "$ac_tool_prefix"; then
2793   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}strip; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_STRIP+:} false; then :
2798   $as_echo_n "(cached) " >&6
2799 else
2800   if test -n "$STRIP"; then
2801   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808     for ac_exec_ext in '' $ac_executable_extensions; do
2809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812     break 2
2813   fi
2814 done
2815   done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 STRIP=$ac_cv_prog_STRIP
2821 if test -n "$STRIP"; then
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2823 $as_echo "$STRIP" >&6; }
2824 else
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830 fi
2831 if test -z "$ac_cv_prog_STRIP"; then
2832   ac_ct_STRIP=$STRIP
2833   # Extract the first word of "strip", so it can be a program name with args.
2834 set dummy strip; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2838   $as_echo_n "(cached) " >&6
2839 else
2840   if test -n "$ac_ct_STRIP"; then
2841   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848     for ac_exec_ext in '' $ac_executable_extensions; do
2849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850     ac_cv_prog_ac_ct_STRIP="strip"
2851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855   done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2861 if test -n "$ac_ct_STRIP"; then
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2863 $as_echo "$ac_ct_STRIP" >&6; }
2864 else
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869   if test "x$ac_ct_STRIP" = x; then
2870     STRIP=":"
2871   else
2872     case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2877 esac
2878     STRIP=$ac_ct_STRIP
2879   fi
2880 else
2881   STRIP="$ac_cv_prog_STRIP"
2882 fi
2883
2884 fi
2885 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2888 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2889 if test -z "$MKDIR_P"; then
2890   if ${ac_cv_path_mkdir+:} false; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2895 do
2896   IFS=$as_save_IFS
2897   test -z "$as_dir" && as_dir=.
2898     for ac_prog in mkdir gmkdir; do
2899          for ac_exec_ext in '' $ac_executable_extensions; do
2900            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2901            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2902              'mkdir (GNU coreutils) '* | \
2903              'mkdir (coreutils) '* | \
2904              'mkdir (fileutils) '4.1*)
2905                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2906                break 3;;
2907            esac
2908          done
2909        done
2910   done
2911 IFS=$as_save_IFS
2912
2913 fi
2914
2915   test -d ./--version && rmdir ./--version
2916   if test "${ac_cv_path_mkdir+set}" = set; then
2917     MKDIR_P="$ac_cv_path_mkdir -p"
2918   else
2919     # As a last resort, use the slow shell script.  Don't cache a
2920     # value for MKDIR_P within a source directory, because that will
2921     # break other packages using the cache if that directory is
2922     # removed, or if the value is a relative name.
2923     MKDIR_P="$ac_install_sh -d"
2924   fi
2925 fi
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2927 $as_echo "$MKDIR_P" >&6; }
2928
2929 for ac_prog in gawk mawk nawk awk
2930 do
2931   # Extract the first word of "$ac_prog", so it can be a program name with args.
2932 set dummy $ac_prog; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_AWK+:} false; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   if test -n "$AWK"; then
2939   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946     for ac_exec_ext in '' $ac_executable_extensions; do
2947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948     ac_cv_prog_AWK="$ac_prog"
2949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953   done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 AWK=$ac_cv_prog_AWK
2959 if test -n "$AWK"; then
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2961 $as_echo "$AWK" >&6; }
2962 else
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968   test -n "$AWK" && break
2969 done
2970
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2972 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2973 set x ${MAKE-make}
2974 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2975 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2976   $as_echo_n "(cached) " >&6
2977 else
2978   cat >conftest.make <<\_ACEOF
2979 SHELL = /bin/sh
2980 all:
2981         @echo '@@@%%%=$(MAKE)=@@@%%%'
2982 _ACEOF
2983 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2984 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2985   *@@@%%%=?*=@@@%%%*)
2986     eval ac_cv_prog_make_${ac_make}_set=yes;;
2987   *)
2988     eval ac_cv_prog_make_${ac_make}_set=no;;
2989 esac
2990 rm -f conftest.make
2991 fi
2992 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2994 $as_echo "yes" >&6; }
2995   SET_MAKE=
2996 else
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999   SET_MAKE="MAKE=${MAKE-make}"
3000 fi
3001
3002 rm -rf .tst 2>/dev/null
3003 mkdir .tst 2>/dev/null
3004 if test -d .tst; then
3005   am__leading_dot=.
3006 else
3007   am__leading_dot=_
3008 fi
3009 rmdir .tst 2>/dev/null
3010
3011 # Check whether --enable-silent-rules was given.
3012 if test "${enable_silent_rules+set}" = set; then :
3013   enableval=$enable_silent_rules;
3014 fi
3015
3016 case $enable_silent_rules in # (((
3017   yes) AM_DEFAULT_VERBOSITY=0;;
3018    no) AM_DEFAULT_VERBOSITY=1;;
3019     *) AM_DEFAULT_VERBOSITY=1;;
3020 esac
3021 am_make=${MAKE-make}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3023 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3024 if ${am_cv_make_support_nested_variables+:} false; then :
3025   $as_echo_n "(cached) " >&6
3026 else
3027   if $as_echo 'TRUE=$(BAR$(V))
3028 BAR0=false
3029 BAR1=true
3030 V=1
3031 am__doit:
3032         @$(TRUE)
3033 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3034   am_cv_make_support_nested_variables=yes
3035 else
3036   am_cv_make_support_nested_variables=no
3037 fi
3038 fi
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3040 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3041 if test $am_cv_make_support_nested_variables = yes; then
3042     AM_V='$(V)'
3043   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3044 else
3045   AM_V=$AM_DEFAULT_VERBOSITY
3046   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3047 fi
3048 AM_BACKSLASH='\'
3049
3050 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3051   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3052   # is not polluted with repeated "-I."
3053   am__isrc=' -I$(srcdir)'
3054   # test to see if srcdir already configured
3055   if test -f $srcdir/config.status; then
3056     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3057   fi
3058 fi
3059
3060 # test whether we have cygpath
3061 if test -z "$CYGPATH_W"; then
3062   if (cygpath --version) >/dev/null 2>/dev/null; then
3063     CYGPATH_W='cygpath -w'
3064   else
3065     CYGPATH_W=echo
3066   fi
3067 fi
3068
3069
3070 # Define the identity of the package.
3071  PACKAGE='libzip'
3072  VERSION='1.1.1'
3073
3074
3075 cat >>confdefs.h <<_ACEOF
3076 #define PACKAGE "$PACKAGE"
3077 _ACEOF
3078
3079
3080 cat >>confdefs.h <<_ACEOF
3081 #define VERSION "$VERSION"
3082 _ACEOF
3083
3084 # Some tools Automake needs.
3085
3086 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3087
3088
3089 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3090
3091
3092 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3093
3094
3095 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3096
3097
3098 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3099
3100 # For better backward compatibility.  To be removed once Automake 1.9.x
3101 # dies out for good.  For more background, see:
3102 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3103 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3104 mkdir_p='$(MKDIR_P)'
3105
3106 # We need awk for the "check" target (and possibly the TAP driver).  The
3107 # system "awk" is bad on some platforms.
3108 # Always define AMTAR for backward compatibility.  Yes, it's still used
3109 # in the wild :-(  We should find a proper way to deprecate it ...
3110 AMTAR='$${TAR-tar}'
3111
3112
3113 # We'll loop over all known methods to create a tar archive until one works.
3114 _am_tools='gnutar  pax cpio none'
3115
3116 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3117
3118
3119
3120
3121
3122
3123 # POSIX will say in a future version that running "rm -f" with no argument
3124 # is OK; and we want to be able to make that assumption in our Makefile
3125 # recipes.  So use an aggressive probe to check that the usage we want is
3126 # actually supported "in the wild" to an acceptable degree.
3127 # See automake bug#10828.
3128 # To make any issue more visible, cause the running configure to be aborted
3129 # by default if the 'rm' program in use doesn't match our expectations; the
3130 # user can still override this though.
3131 if rm -f && rm -fr && rm -rf; then : OK; else
3132   cat >&2 <<'END'
3133 Oops!
3134
3135 Your 'rm' program seems unable to run without file operands specified
3136 on the command line, even when the '-f' option is present.  This is contrary
3137 to the behaviour of most rm programs out there, and not conforming with
3138 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3139
3140 Please tell bug-automake@gnu.org about your system, including the value
3141 of your $PATH and any error possibly output before this message.  This
3142 can help us improve future automake versions.
3143
3144 END
3145   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3146     echo 'Configuration will proceed anyway, since you have set the' >&2
3147     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3148     echo >&2
3149   else
3150     cat >&2 <<'END'
3151 Aborting the configuration process, to ensure you take notice of the issue.
3152
3153 You can download and install GNU coreutils to get an 'rm' implementation
3154 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3155
3156 If you want to complete the configuration process using your problematic
3157 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3158 to "yes", and re-run configure.
3159
3160 END
3161     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3162   fi
3163 fi
3164
3165
3166 # Make sure we can run config.sub.
3167 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3168   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3169
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3171 $as_echo_n "checking build system type... " >&6; }
3172 if ${ac_cv_build+:} false; then :
3173   $as_echo_n "(cached) " >&6
3174 else
3175   ac_build_alias=$build_alias
3176 test "x$ac_build_alias" = x &&
3177   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3178 test "x$ac_build_alias" = x &&
3179   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3180 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3181   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3182
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3185 $as_echo "$ac_cv_build" >&6; }
3186 case $ac_cv_build in
3187 *-*-*) ;;
3188 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3189 esac
3190 build=$ac_cv_build
3191 ac_save_IFS=$IFS; IFS='-'
3192 set x $ac_cv_build
3193 shift
3194 build_cpu=$1
3195 build_vendor=$2
3196 shift; shift
3197 # Remember, the first character of IFS is used to create $*,
3198 # except with old shells:
3199 build_os=$*
3200 IFS=$ac_save_IFS
3201 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3202
3203
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3205 $as_echo_n "checking host system type... " >&6; }
3206 if ${ac_cv_host+:} false; then :
3207   $as_echo_n "(cached) " >&6
3208 else
3209   if test "x$host_alias" = x; then
3210   ac_cv_host=$ac_cv_build
3211 else
3212   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3213     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3214 fi
3215
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3218 $as_echo "$ac_cv_host" >&6; }
3219 case $ac_cv_host in
3220 *-*-*) ;;
3221 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3222 esac
3223 host=$ac_cv_host
3224 ac_save_IFS=$IFS; IFS='-'
3225 set x $ac_cv_host
3226 shift
3227 host_cpu=$1
3228 host_vendor=$2
3229 shift; shift
3230 # Remember, the first character of IFS is used to create $*,
3231 # except with old shells:
3232 host_os=$*
3233 IFS=$ac_save_IFS
3234 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3235
3236
3237 case $host_os in
3238     *bsd*)
3239         PKG_CONFIG_RPATH=-Wl,-R\${libdir};;
3240     *)
3241         PKG_CONFIG_RPATH=;;
3242 esac
3243
3244
3245
3246 ac_ext=c
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 if test -n "$ac_tool_prefix"; then
3252   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_CC+:} false; then :
3257   $as_echo_n "(cached) " >&6
3258 else
3259   if test -n "$CC"; then
3260   ac_cv_prog_CC="$CC" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267     for ac_exec_ext in '' $ac_executable_extensions; do
3268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271     break 2
3272   fi
3273 done
3274   done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 CC=$ac_cv_prog_CC
3280 if test -n "$CC"; then
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282 $as_echo "$CC" >&6; }
3283 else
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 fi
3287
3288
3289 fi
3290 if test -z "$ac_cv_prog_CC"; then
3291   ac_ct_CC=$CC
3292   # Extract the first word of "gcc", so it can be a program name with args.
3293 set dummy gcc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   if test -n "$ac_ct_CC"; then
3300   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307     for ac_exec_ext in '' $ac_executable_extensions; do
3308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     ac_cv_prog_ac_ct_CC="gcc"
3310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314   done
3315 IFS=$as_save_IFS
3316
3317 fi
3318 fi
3319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320 if test -n "$ac_ct_CC"; then
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3322 $as_echo "$ac_ct_CC" >&6; }
3323 else
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 fi
3327
3328   if test "x$ac_ct_CC" = x; then
3329     CC=""
3330   else
3331     case $cross_compiling:$ac_tool_warned in
3332 yes:)
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335 ac_tool_warned=yes ;;
3336 esac
3337     CC=$ac_ct_CC
3338   fi
3339 else
3340   CC="$ac_cv_prog_CC"
3341 fi
3342
3343 if test -z "$CC"; then
3344           if test -n "$ac_tool_prefix"; then
3345     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3346 set dummy ${ac_tool_prefix}cc; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_CC+:} false; then :
3350   $as_echo_n "(cached) " >&6
3351 else
3352   if test -n "$CC"; then
3353   ac_cv_prog_CC="$CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358   IFS=$as_save_IFS
3359   test -z "$as_dir" && as_dir=.
3360     for ac_exec_ext in '' $ac_executable_extensions; do
3361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362     ac_cv_prog_CC="${ac_tool_prefix}cc"
3363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364     break 2
3365   fi
3366 done
3367   done
3368 IFS=$as_save_IFS
3369
3370 fi
3371 fi
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3376 else
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381
3382   fi
3383 fi
3384 if test -z "$CC"; then
3385   # Extract the first word of "cc", so it can be a program name with args.
3386 set dummy cc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_CC+:} false; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$CC"; then
3393   ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395   ac_prog_rejected=no
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401     for ac_exec_ext in '' $ac_executable_extensions; do
3402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3404        ac_prog_rejected=yes
3405        continue
3406      fi
3407     ac_cv_prog_CC="cc"
3408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409     break 2
3410   fi
3411 done
3412   done
3413 IFS=$as_save_IFS
3414
3415 if test $ac_prog_rejected = yes; then
3416   # We found a bogon in the path, so make sure we never use it.
3417   set dummy $ac_cv_prog_CC
3418   shift
3419   if test $# != 0; then
3420     # We chose a different compiler from the bogus one.
3421     # However, it has the same basename, so the bogon will be chosen
3422     # first if we set CC to just the basename; use the full file name.
3423     shift
3424     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3425   fi
3426 fi
3427 fi
3428 fi
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438
3439 fi
3440 if test -z "$CC"; then
3441   if test -n "$ac_tool_prefix"; then
3442   for ac_prog in cl.exe
3443   do
3444     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3445 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_CC+:} false; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   if test -n "$CC"; then
3452   ac_cv_prog_CC="$CC" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3456 do
3457   IFS=$as_save_IFS
3458   test -z "$as_dir" && as_dir=.
3459     for ac_exec_ext in '' $ac_executable_extensions; do
3460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463     break 2
3464   fi
3465 done
3466   done
3467 IFS=$as_save_IFS
3468
3469 fi
3470 fi
3471 CC=$ac_cv_prog_CC
3472 if test -n "$CC"; then
3473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3474 $as_echo "$CC" >&6; }
3475 else
3476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 fi
3479
3480
3481     test -n "$CC" && break
3482   done
3483 fi
3484 if test -z "$CC"; then
3485   ac_ct_CC=$CC
3486   for ac_prog in cl.exe
3487 do
3488   # Extract the first word of "$ac_prog", so it can be a program name with args.
3489 set dummy $ac_prog; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3493   $as_echo_n "(cached) " >&6
3494 else
3495   if test -n "$ac_ct_CC"; then
3496   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501   IFS=$as_save_IFS
3502   test -z "$as_dir" && as_dir=.
3503     for ac_exec_ext in '' $ac_executable_extensions; do
3504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505     ac_cv_prog_ac_ct_CC="$ac_prog"
3506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507     break 2
3508   fi
3509 done
3510   done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516 if test -n "$ac_ct_CC"; then
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518 $as_echo "$ac_ct_CC" >&6; }
3519 else
3520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525   test -n "$ac_ct_CC" && break
3526 done
3527
3528   if test "x$ac_ct_CC" = x; then
3529     CC=""
3530   else
3531     case $cross_compiling:$ac_tool_warned in
3532 yes:)
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537     CC=$ac_ct_CC
3538   fi
3539 fi
3540
3541 fi
3542
3543
3544 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error $? "no acceptable C compiler found in \$PATH
3547 See \`config.log' for more details" "$LINENO" 5; }
3548
3549 # Provide some information about the compiler.
3550 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3551 set X $ac_compile
3552 ac_compiler=$2
3553 for ac_option in --version -v -V -qversion; do
3554   { { ac_try="$ac_compiler $ac_option >&5"
3555 case "(($ac_try" in
3556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557   *) ac_try_echo=$ac_try;;
3558 esac
3559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560 $as_echo "$ac_try_echo"; } >&5
3561   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3562   ac_status=$?
3563   if test -s conftest.err; then
3564     sed '10a\
3565 ... rest of stderr output deleted ...
3566          10q' conftest.err >conftest.er1
3567     cat conftest.er1 >&5
3568   fi
3569   rm -f conftest.er1 conftest.err
3570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571   test $ac_status = 0; }
3572 done
3573
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h.  */
3576
3577 int
3578 main ()
3579 {
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 ac_clean_files_save=$ac_clean_files
3586 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3587 # Try to create an executable without -o first, disregard a.out.
3588 # It will help us diagnose broken compilers, and finding out an intuition
3589 # of exeext.
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3591 $as_echo_n "checking whether the C compiler works... " >&6; }
3592 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3593
3594 # The possible output files:
3595 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3596
3597 ac_rmfiles=
3598 for ac_file in $ac_files
3599 do
3600   case $ac_file in
3601     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3603   esac
3604 done
3605 rm -f $ac_rmfiles
3606
3607 if { { ac_try="$ac_link_default"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614   (eval "$ac_link_default") 2>&5
3615   ac_status=$?
3616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617   test $ac_status = 0; }; then :
3618   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3619 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3620 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3621 # so that the user can short-circuit this test for compilers unknown to
3622 # Autoconf.
3623 for ac_file in $ac_files ''
3624 do
3625   test -f "$ac_file" || continue
3626   case $ac_file in
3627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3628         ;;
3629     [ab].out )
3630         # We found the default executable, but exeext='' is most
3631         # certainly right.
3632         break;;
3633     *.* )
3634         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3635         then :; else
3636            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637         fi
3638         # We set ac_cv_exeext here because the later test for it is not
3639         # safe: cross compilers may not add the suffix if given an `-o'
3640         # argument, so we may need to know it at that point already.
3641         # Even if this section looks crufty: it has the advantage of
3642         # actually working.
3643         break;;
3644     * )
3645         break;;
3646   esac
3647 done
3648 test "$ac_cv_exeext" = no && ac_cv_exeext=
3649
3650 else
3651   ac_file=''
3652 fi
3653 if test -z "$ac_file"; then :
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656 $as_echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error 77 "C compiler cannot create executables
3662 See \`config.log' for more details" "$LINENO" 5; }
3663 else
3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3665 $as_echo "yes" >&6; }
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3668 $as_echo_n "checking for C compiler default output file name... " >&6; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3670 $as_echo "$ac_file" >&6; }
3671 ac_exeext=$ac_cv_exeext
3672
3673 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3674 ac_clean_files=$ac_clean_files_save
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3676 $as_echo_n "checking for suffix of executables... " >&6; }
3677 if { { ac_try="$ac_link"
3678 case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684   (eval "$ac_link") 2>&5
3685   ac_status=$?
3686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687   test $ac_status = 0; }; then :
3688   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3689 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3690 # work properly (i.e., refer to `conftest.exe'), while it won't with
3691 # `rm'.
3692 for ac_file in conftest.exe conftest conftest.*; do
3693   test -f "$ac_file" || continue
3694   case $ac_file in
3695     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3696     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3697           break;;
3698     * ) break;;
3699   esac
3700 done
3701 else
3702   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3705 See \`config.log' for more details" "$LINENO" 5; }
3706 fi
3707 rm -f conftest conftest$ac_cv_exeext
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3709 $as_echo "$ac_cv_exeext" >&6; }
3710
3711 rm -f conftest.$ac_ext
3712 EXEEXT=$ac_cv_exeext
3713 ac_exeext=$EXEEXT
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h.  */
3716 #include <stdio.h>
3717 int
3718 main ()
3719 {
3720 FILE *f = fopen ("conftest.out", "w");
3721  return ferror (f) || fclose (f) != 0;
3722
3723   ;
3724   return 0;
3725 }
3726 _ACEOF
3727 ac_clean_files="$ac_clean_files conftest.out"
3728 # Check that the compiler produces executables we can run.  If not, either
3729 # the compiler is broken, or we cross compile.
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3731 $as_echo_n "checking whether we are cross compiling... " >&6; }
3732 if test "$cross_compiling" != yes; then
3733   { { ac_try="$ac_link"
3734 case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740   (eval "$ac_link") 2>&5
3741   ac_status=$?
3742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743   test $ac_status = 0; }
3744   if { ac_try='./conftest$ac_cv_exeext'
3745   { { case "(($ac_try" in
3746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747   *) ac_try_echo=$ac_try;;
3748 esac
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 $as_echo "$ac_try_echo"; } >&5
3751   (eval "$ac_try") 2>&5
3752   ac_status=$?
3753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754   test $ac_status = 0; }; }; then
3755     cross_compiling=no
3756   else
3757     if test "$cross_compiling" = maybe; then
3758         cross_compiling=yes
3759     else
3760         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762 as_fn_error $? "cannot run C compiled programs.
3763 If you meant to cross compile, use \`--host'.
3764 See \`config.log' for more details" "$LINENO" 5; }
3765     fi
3766   fi
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3769 $as_echo "$cross_compiling" >&6; }
3770
3771 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3772 ac_clean_files=$ac_clean_files_save
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3774 $as_echo_n "checking for suffix of object files... " >&6; }
3775 if ${ac_cv_objext+:} false; then :
3776   $as_echo_n "(cached) " >&6
3777 else
3778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h.  */
3780
3781 int
3782 main ()
3783 {
3784
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 rm -f conftest.o conftest.obj
3790 if { { ac_try="$ac_compile"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797   (eval "$ac_compile") 2>&5
3798   ac_status=$?
3799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800   test $ac_status = 0; }; then :
3801   for ac_file in conftest.o conftest.obj conftest.*; do
3802   test -f "$ac_file" || continue;
3803   case $ac_file in
3804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3805     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3806        break;;
3807   esac
3808 done
3809 else
3810   $as_echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 as_fn_error $? "cannot compute suffix of object files: cannot compile
3816 See \`config.log' for more details" "$LINENO" 5; }
3817 fi
3818 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3821 $as_echo "$ac_cv_objext" >&6; }
3822 OBJEXT=$ac_cv_objext
3823 ac_objext=$OBJEXT
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3825 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3826 if ${ac_cv_c_compiler_gnu+:} false; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h.  */
3831
3832 int
3833 main ()
3834 {
3835 #ifndef __GNUC__
3836        choke me
3837 #endif
3838
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844   ac_compiler_gnu=yes
3845 else
3846   ac_compiler_gnu=no
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3850
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3853 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3854 if test $ac_compiler_gnu = yes; then
3855   GCC=yes
3856 else
3857   GCC=
3858 fi
3859 ac_test_CFLAGS=${CFLAGS+set}
3860 ac_save_CFLAGS=$CFLAGS
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3862 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3863 if ${ac_cv_prog_cc_g+:} false; then :
3864   $as_echo_n "(cached) " >&6
3865 else
3866   ac_save_c_werror_flag=$ac_c_werror_flag
3867    ac_c_werror_flag=yes
3868    ac_cv_prog_cc_g=no
3869    CFLAGS="-g"
3870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h.  */
3872
3873 int
3874 main ()
3875 {
3876
3877   ;
3878   return 0;
3879 }
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882   ac_cv_prog_cc_g=yes
3883 else
3884   CFLAGS=""
3885       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h.  */
3887
3888 int
3889 main ()
3890 {
3891
3892   ;
3893   return 0;
3894 }
3895 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897
3898 else
3899   ac_c_werror_flag=$ac_save_c_werror_flag
3900          CFLAGS="-g"
3901          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903
3904 int
3905 main ()
3906 {
3907
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913   ac_cv_prog_cc_g=yes
3914 fi
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3923 $as_echo "$ac_cv_prog_cc_g" >&6; }
3924 if test "$ac_test_CFLAGS" = set; then
3925   CFLAGS=$ac_save_CFLAGS
3926 elif test $ac_cv_prog_cc_g = yes; then
3927   if test "$GCC" = yes; then
3928     CFLAGS="-g -O2"
3929   else
3930     CFLAGS="-g"
3931   fi
3932 else
3933   if test "$GCC" = yes; then
3934     CFLAGS="-O2"
3935   else
3936     CFLAGS=
3937   fi
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3940 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3941 if ${ac_cv_prog_cc_c89+:} false; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   ac_cv_prog_cc_c89=no
3945 ac_save_CC=$CC
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h.  */
3948 #include <stdarg.h>
3949 #include <stdio.h>
3950 struct stat;
3951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3952 struct buf { int x; };
3953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954 static char *e (p, i)
3955      char **p;
3956      int i;
3957 {
3958   return p[i];
3959 }
3960 static char *f (char * (*g) (char **, int), char **p, ...)
3961 {
3962   char *s;
3963   va_list v;
3964   va_start (v,p);
3965   s = g (p, va_arg (v,int));
3966   va_end (v);
3967   return s;
3968 }
3969
3970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3971    function prototypes and stuff, but not '\xHH' hex character constants.
3972    These don't provoke an error unfortunately, instead are silently treated
3973    as 'x'.  The following induces an error, until -std is added to get
3974    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3975    array size at least.  It's necessary to write '\x00'==0 to get something
3976    that's true only with -std.  */
3977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3978
3979 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3980    inside strings and character constants.  */
3981 #define FOO(x) 'x'
3982 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3983
3984 int test (int i, double x);
3985 struct s1 {int (*f) (int a);};
3986 struct s2 {int (*f) (double a);};
3987 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3988 int argc;
3989 char **argv;
3990 int
3991 main ()
3992 {
3993 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3994   ;
3995   return 0;
3996 }
3997 _ACEOF
3998 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3999         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4000 do
4001   CC="$ac_save_CC $ac_arg"
4002   if ac_fn_c_try_compile "$LINENO"; then :
4003   ac_cv_prog_cc_c89=$ac_arg
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext
4006   test "x$ac_cv_prog_cc_c89" != "xno" && break
4007 done
4008 rm -f conftest.$ac_ext
4009 CC=$ac_save_CC
4010
4011 fi
4012 # AC_CACHE_VAL
4013 case "x$ac_cv_prog_cc_c89" in
4014   x)
4015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4016 $as_echo "none needed" >&6; } ;;
4017   xno)
4018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4019 $as_echo "unsupported" >&6; } ;;
4020   *)
4021     CC="$CC $ac_cv_prog_cc_c89"
4022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4023 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4024 esac
4025 if test "x$ac_cv_prog_cc_c89" != xno; then :
4026
4027 fi
4028
4029 ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4041 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4042 if ${am_cv_prog_cc_c_o+:} false; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047
4048 int
4049 main ()
4050 {
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056   # Make sure it works both with $CC and with simple cc.
4057   # Following AC_PROG_CC_C_O, we do the test twice because some
4058   # compilers refuse to overwrite an existing .o file with -o,
4059   # though they will create one.
4060   am_cv_prog_cc_c_o=yes
4061   for am_i in 1 2; do
4062     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4063    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4064    ac_status=$?
4065    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066    (exit $ac_status); } \
4067          && test -f conftest2.$ac_objext; then
4068       : OK
4069     else
4070       am_cv_prog_cc_c_o=no
4071       break
4072     fi
4073   done
4074   rm -f core conftest*
4075   unset am_i
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4078 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4079 if test "$am_cv_prog_cc_c_o" != yes; then
4080    # Losing compiler, so override with the script.
4081    # FIXME: It is wrong to rewrite CC.
4082    # But if we don't then we get into trouble of one sort or another.
4083    # A longer-term fix would be to have automake use am__CC in this case,
4084    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4085    CC="$am_aux_dir/compile $CC"
4086 fi
4087 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092
4093 DEPDIR="${am__leading_dot}deps"
4094
4095 ac_config_commands="$ac_config_commands depfiles"
4096
4097
4098 am_make=${MAKE-make}
4099 cat > confinc << 'END'
4100 am__doit:
4101         @echo this is the am__doit target
4102 .PHONY: am__doit
4103 END
4104 # If we don't find an include directive, just comment out the code.
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4106 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4107 am__include="#"
4108 am__quote=
4109 _am_result=none
4110 # First try GNU make style include.
4111 echo "include confinc" > confmf
4112 # Ignore all kinds of additional output from 'make'.
4113 case `$am_make -s -f confmf 2> /dev/null` in #(
4114 *the\ am__doit\ target*)
4115   am__include=include
4116   am__quote=
4117   _am_result=GNU
4118   ;;
4119 esac
4120 # Now try BSD make style include.
4121 if test "$am__include" = "#"; then
4122    echo '.include "confinc"' > confmf
4123    case `$am_make -s -f confmf 2> /dev/null` in #(
4124    *the\ am__doit\ target*)
4125      am__include=.include
4126      am__quote="\""
4127      _am_result=BSD
4128      ;;
4129    esac
4130 fi
4131
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4134 $as_echo "$_am_result" >&6; }
4135 rm -f confinc confmf
4136
4137 # Check whether --enable-dependency-tracking was given.
4138 if test "${enable_dependency_tracking+set}" = set; then :
4139   enableval=$enable_dependency_tracking;
4140 fi
4141
4142 if test "x$enable_dependency_tracking" != xno; then
4143   am_depcomp="$ac_aux_dir/depcomp"
4144   AMDEPBACKSLASH='\'
4145   am__nodep='_no'
4146 fi
4147  if test "x$enable_dependency_tracking" != xno; then
4148   AMDEP_TRUE=
4149   AMDEP_FALSE='#'
4150 else
4151   AMDEP_TRUE='#'
4152   AMDEP_FALSE=
4153 fi
4154
4155
4156
4157 depcc="$CC"   am_compiler_list=
4158
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4160 $as_echo_n "checking dependency style of $depcc... " >&6; }
4161 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4165   # We make a subdir and do the tests there.  Otherwise we can end up
4166   # making bogus files that we don't know about and never remove.  For
4167   # instance it was reported that on HP-UX the gcc test will end up
4168   # making a dummy file named 'D' -- because '-MD' means "put the output
4169   # in D".
4170   rm -rf conftest.dir
4171   mkdir conftest.dir
4172   # Copy depcomp to subdir because otherwise we won't find it if we're
4173   # using a relative directory.
4174   cp "$am_depcomp" conftest.dir
4175   cd conftest.dir
4176   # We will build objects and dependencies in a subdirectory because
4177   # it helps to detect inapplicable dependency modes.  For instance
4178   # both Tru64's cc and ICC support -MD to output dependencies as a
4179   # side effect of compilation, but ICC will put the dependencies in
4180   # the current directory while Tru64 will put them in the object
4181   # directory.
4182   mkdir sub
4183
4184   am_cv_CC_dependencies_compiler_type=none
4185   if test "$am_compiler_list" = ""; then
4186      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4187   fi
4188   am__universal=false
4189   case " $depcc " in #(
4190      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4191      esac
4192
4193   for depmode in $am_compiler_list; do
4194     # Setup a source with many dependencies, because some compilers
4195     # like to wrap large dependency lists on column 80 (with \), and
4196     # we should not choose a depcomp mode which is confused by this.
4197     #
4198     # We need to recreate these files for each test, as the compiler may
4199     # overwrite some of them when testing with obscure command lines.
4200     # This happens at least with the AIX C compiler.
4201     : > sub/conftest.c
4202     for i in 1 2 3 4 5 6; do
4203       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4204       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4205       # Solaris 10 /bin/sh.
4206       echo '/* dummy */' > sub/conftst$i.h
4207     done
4208     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4209
4210     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4211     # mode.  It turns out that the SunPro C++ compiler does not properly
4212     # handle '-M -o', and we need to detect this.  Also, some Intel
4213     # versions had trouble with output in subdirs.
4214     am__obj=sub/conftest.${OBJEXT-o}
4215     am__minus_obj="-o $am__obj"
4216     case $depmode in
4217     gcc)
4218       # This depmode causes a compiler race in universal mode.
4219       test "$am__universal" = false || continue
4220       ;;
4221     nosideeffect)
4222       # After this tag, mechanisms are not by side-effect, so they'll
4223       # only be used when explicitly requested.
4224       if test "x$enable_dependency_tracking" = xyes; then
4225         continue
4226       else
4227         break
4228       fi
4229       ;;
4230     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4231       # This compiler won't grok '-c -o', but also, the minuso test has
4232       # not run yet.  These depmodes are late enough in the game, and
4233       # so weak that their functioning should not be impacted.
4234       am__obj=conftest.${OBJEXT-o}
4235       am__minus_obj=
4236       ;;
4237     none) break ;;
4238     esac
4239     if depmode=$depmode \
4240        source=sub/conftest.c object=$am__obj \
4241        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4242        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4243          >/dev/null 2>conftest.err &&
4244        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4245        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4246        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4247        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4248       # icc doesn't choke on unknown options, it will just issue warnings
4249       # or remarks (even with -Werror).  So we grep stderr for any message
4250       # that says an option was ignored or not supported.
4251       # When given -MP, icc 7.0 and 7.1 complain thusly:
4252       #   icc: Command line warning: ignoring option '-M'; no argument required
4253       # The diagnosis changed in icc 8.0:
4254       #   icc: Command line remark: option '-MP' not supported
4255       if (grep 'ignoring option' conftest.err ||
4256           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4257         am_cv_CC_dependencies_compiler_type=$depmode
4258         break
4259       fi
4260     fi
4261   done
4262
4263   cd ..
4264   rm -rf conftest.dir
4265 else
4266   am_cv_CC_dependencies_compiler_type=none
4267 fi
4268
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4271 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4272 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4273
4274  if
4275   test "x$enable_dependency_tracking" != xno \
4276   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4277   am__fastdepCC_TRUE=
4278   am__fastdepCC_FALSE='#'
4279 else
4280   am__fastdepCC_TRUE='#'
4281   am__fastdepCC_FALSE=
4282 fi
4283
4284
4285
4286 # Check whether --enable-largefile was given.
4287 if test "${enable_largefile+set}" = set; then :
4288   enableval=$enable_largefile;
4289 fi
4290
4291 if test "$enable_largefile" != no; then
4292
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4294 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4295 if ${ac_cv_sys_largefile_CC+:} false; then :
4296   $as_echo_n "(cached) " >&6
4297 else
4298   ac_cv_sys_largefile_CC=no
4299      if test "$GCC" != yes; then
4300        ac_save_CC=$CC
4301        while :; do
4302          # IRIX 6.2 and later do not support large files by default,
4303          # so use the C compiler's -n32 option if that helps.
4304          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h.  */
4306 #include <sys/types.h>
4307  /* Check that off_t can represent 2**63 - 1 correctly.
4308     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4309     since some C++ compilers masquerading as C compilers
4310     incorrectly reject 9223372036854775807.  */
4311 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4312   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4313                        && LARGE_OFF_T % 2147483647 == 1)
4314                       ? 1 : -1];
4315 int
4316 main ()
4317 {
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323          if ac_fn_c_try_compile "$LINENO"; then :
4324   break
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext
4327          CC="$CC -n32"
4328          if ac_fn_c_try_compile "$LINENO"; then :
4329   ac_cv_sys_largefile_CC=' -n32'; break
4330 fi
4331 rm -f core conftest.err conftest.$ac_objext
4332          break
4333        done
4334        CC=$ac_save_CC
4335        rm -f conftest.$ac_ext
4336     fi
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4339 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4340   if test "$ac_cv_sys_largefile_CC" != no; then
4341     CC=$CC$ac_cv_sys_largefile_CC
4342   fi
4343
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4345 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4346 if ${ac_cv_sys_file_offset_bits+:} false; then :
4347   $as_echo_n "(cached) " >&6
4348 else
4349   while :; do
4350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352 #include <sys/types.h>
4353  /* Check that off_t can represent 2**63 - 1 correctly.
4354     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4355     since some C++ compilers masquerading as C compilers
4356     incorrectly reject 9223372036854775807.  */
4357 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4358   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4359                        && LARGE_OFF_T % 2147483647 == 1)
4360                       ? 1 : -1];
4361 int
4362 main ()
4363 {
4364
4365   ;
4366   return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_c_try_compile "$LINENO"; then :
4370   ac_cv_sys_file_offset_bits=no; break
4371 fi
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h.  */
4375 #define _FILE_OFFSET_BITS 64
4376 #include <sys/types.h>
4377  /* Check that off_t can represent 2**63 - 1 correctly.
4378     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4379     since some C++ compilers masquerading as C compilers
4380     incorrectly reject 9223372036854775807.  */
4381 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4382   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4383                        && LARGE_OFF_T % 2147483647 == 1)
4384                       ? 1 : -1];
4385 int
4386 main ()
4387 {
4388
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_compile "$LINENO"; then :
4394   ac_cv_sys_file_offset_bits=64; break
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397   ac_cv_sys_file_offset_bits=unknown
4398   break
4399 done
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4402 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4403 case $ac_cv_sys_file_offset_bits in #(
4404   no | unknown) ;;
4405   *)
4406 cat >>confdefs.h <<_ACEOF
4407 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4408 _ACEOF
4409 ;;
4410 esac
4411 rm -rf conftest*
4412   if test $ac_cv_sys_file_offset_bits = unknown; then
4413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4414 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4415 if ${ac_cv_sys_large_files+:} false; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418   while :; do
4419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h.  */
4421 #include <sys/types.h>
4422  /* Check that off_t can represent 2**63 - 1 correctly.
4423     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4424     since some C++ compilers masquerading as C compilers
4425     incorrectly reject 9223372036854775807.  */
4426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4427   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4428                        && LARGE_OFF_T % 2147483647 == 1)
4429                       ? 1 : -1];
4430 int
4431 main ()
4432 {
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439   ac_cv_sys_large_files=no; break
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h.  */
4444 #define _LARGE_FILES 1
4445 #include <sys/types.h>
4446  /* Check that off_t can represent 2**63 - 1 correctly.
4447     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4448     since some C++ compilers masquerading as C compilers
4449     incorrectly reject 9223372036854775807.  */
4450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4451   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4452                        && LARGE_OFF_T % 2147483647 == 1)
4453                       ? 1 : -1];
4454 int
4455 main ()
4456 {
4457
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463   ac_cv_sys_large_files=1; break
4464 fi
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466   ac_cv_sys_large_files=unknown
4467   break
4468 done
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4471 $as_echo "$ac_cv_sys_large_files" >&6; }
4472 case $ac_cv_sys_large_files in #(
4473   no | unknown) ;;
4474   *)
4475 cat >>confdefs.h <<_ACEOF
4476 #define _LARGE_FILES $ac_cv_sys_large_files
4477 _ACEOF
4478 ;;
4479 esac
4480 rm -rf conftest*
4481   fi
4482
4483
4484 fi
4485
4486
4487
4488
4489 # Check whether --with-zlib was given.
4490 if test "${with_zlib+set}" = set; then :
4491   withval=$with_zlib;
4492 else
4493   with_zlib=yes
4494 fi
4495
4496
4497 if test "$with_zlib" != "yes"
4498 then
4499     if test -f "$with_zlib"/zlib.h
4500     then
4501         # PREFIX is to uninstalled version in distribution directory
4502         CFLAGS="$CFLAGS -I$with_zlib"
4503         LDFLAGS="$LDFLAGS -L$with_zlib"
4504     else if test -f "$with_zlib"/include/zlib.h
4505     then
4506         # PREFIX is installation prefix
4507         CFLAGS="$CFLAGS -I$with_zlib/include"
4508         LDFLAGS="$LDFLAGS -L$with_zlib/lib"
4509     fi
4510     fi
4511 fi
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
4514 $as_echo_n "checking for main in -lz... " >&6; }
4515 if ${ac_cv_lib_z_main+:} false; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   ac_check_lib_save_LIBS=$LIBS
4519 LIBS="-lz  $LIBS"
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h.  */
4522
4523
4524 int
4525 main ()
4526 {
4527 return main ();
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_link "$LINENO"; then :
4533   ac_cv_lib_z_main=yes
4534 else
4535   ac_cv_lib_z_main=no
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext \
4538     conftest$ac_exeext conftest.$ac_ext
4539 LIBS=$ac_check_lib_save_LIBS
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
4542 $as_echo "$ac_cv_lib_z_main" >&6; }
4543 if test "x$ac_cv_lib_z_main" = xyes; then :
4544   cat >>confdefs.h <<_ACEOF
4545 #define HAVE_LIBZ 1
4546 _ACEOF
4547
4548   LIBS="-lz $LIBS"
4549
4550 fi
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking new ZLIB version" >&5
4553 $as_echo_n "checking new ZLIB version... " >&6; }
4554 if ${id_cv_lib_zlib_ok+:} false; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559 #include <zlib.h>
4560 int
4561 main ()
4562 {
4563 extern ZEXPORT int unzOpen (const char *path);
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569   id_cv_lib_zlib_ok=yes
4570 else
4571   id_cv_lib_zlib_ok=no
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $id_cv_lib_zlib_ok" >&5
4576 $as_echo "$id_cv_lib_zlib_ok" >&6; }
4577 if test "$id_cv_lib_zlib_ok" = "no"
4578 then
4579     as_fn_error $? "ZLIB version too old, please install at least v1.1.2" "$LINENO" 5
4580 fi
4581
4582
4583
4584 case `pwd` in
4585   *\ * | *\     *)
4586     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4587 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4588 esac
4589
4590
4591
4592 macro_version='2.4.2'
4593 macro_revision='1.3337'
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607 ltmain="$ac_aux_dir/ltmain.sh"
4608
4609 # Backslashify metacharacters that are still active within
4610 # double-quoted strings.
4611 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4612
4613 # Same as above, but do not quote variable references.
4614 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4615
4616 # Sed substitution to delay expansion of an escaped shell variable in a
4617 # double_quote_subst'ed string.
4618 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4619
4620 # Sed substitution to delay expansion of an escaped single quote.
4621 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4622
4623 # Sed substitution to avoid accidental globbing in evaled expressions
4624 no_glob_subst='s/\*/\\\*/g'
4625
4626 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4627 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4628 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4631 $as_echo_n "checking how to print strings... " >&6; }
4632 # Test print first, because it will be a builtin if present.
4633 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4634    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4635   ECHO='print -r --'
4636 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4637   ECHO='printf %s\n'
4638 else
4639   # Use this function as a fallback that always works.
4640   func_fallback_echo ()
4641   {
4642     eval 'cat <<_LTECHO_EOF
4643 $1
4644 _LTECHO_EOF'
4645   }
4646   ECHO='func_fallback_echo'
4647 fi
4648
4649 # func_echo_all arg...
4650 # Invoke $ECHO with all args, space-separated.
4651 func_echo_all ()
4652 {
4653     $ECHO ""
4654 }
4655
4656 case "$ECHO" in
4657   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4658 $as_echo "printf" >&6; } ;;
4659   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4660 $as_echo "print -r" >&6; } ;;
4661   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4662 $as_echo "cat" >&6; } ;;
4663 esac
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4679 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4680 if ${ac_cv_path_SED+:} false; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4684      for ac_i in 1 2 3 4 5 6 7; do
4685        ac_script="$ac_script$as_nl$ac_script"
4686      done
4687      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4688      { ac_script=; unset ac_script;}
4689      if test -z "$SED"; then
4690   ac_path_SED_found=false
4691   # Loop through the user's path and test for each of PROGNAME-LIST
4692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697     for ac_prog in sed gsed; do
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4700       as_fn_executable_p "$ac_path_SED" || continue
4701 # Check for GNU ac_path_SED and select it if it is found.
4702   # Check for GNU $ac_path_SED
4703 case `"$ac_path_SED" --version 2>&1` in
4704 *GNU*)
4705   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4706 *)
4707   ac_count=0
4708   $as_echo_n 0123456789 >"conftest.in"
4709   while :
4710   do
4711     cat "conftest.in" "conftest.in" >"conftest.tmp"
4712     mv "conftest.tmp" "conftest.in"
4713     cp "conftest.in" "conftest.nl"
4714     $as_echo '' >> "conftest.nl"
4715     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717     as_fn_arith $ac_count + 1 && ac_count=$as_val
4718     if test $ac_count -gt ${ac_path_SED_max-0}; then
4719       # Best one so far, save it but keep looking for a better one
4720       ac_cv_path_SED="$ac_path_SED"
4721       ac_path_SED_max=$ac_count
4722     fi
4723     # 10*(2^10) chars as input seems more than enough
4724     test $ac_count -gt 10 && break
4725   done
4726   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727 esac
4728
4729       $ac_path_SED_found && break 3
4730     done
4731   done
4732   done
4733 IFS=$as_save_IFS
4734   if test -z "$ac_cv_path_SED"; then
4735     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4736   fi
4737 else
4738   ac_cv_path_SED=$SED
4739 fi
4740
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4743 $as_echo "$ac_cv_path_SED" >&6; }
4744  SED="$ac_cv_path_SED"
4745   rm -f conftest.sed
4746
4747 test -z "$SED" && SED=sed
4748 Xsed="$SED -e 1s/^X//"
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4761 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4762 if ${ac_cv_path_GREP+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   if test -z "$GREP"; then
4766   ac_path_GREP_found=false
4767   # Loop through the user's path and test for each of PROGNAME-LIST
4768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773     for ac_prog in grep ggrep; do
4774     for ac_exec_ext in '' $ac_executable_extensions; do
4775       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4776       as_fn_executable_p "$ac_path_GREP" || continue
4777 # Check for GNU ac_path_GREP and select it if it is found.
4778   # Check for GNU $ac_path_GREP
4779 case `"$ac_path_GREP" --version 2>&1` in
4780 *GNU*)
4781   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4782 *)
4783   ac_count=0
4784   $as_echo_n 0123456789 >"conftest.in"
4785   while :
4786   do
4787     cat "conftest.in" "conftest.in" >"conftest.tmp"
4788     mv "conftest.tmp" "conftest.in"
4789     cp "conftest.in" "conftest.nl"
4790     $as_echo 'GREP' >> "conftest.nl"
4791     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4792     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4793     as_fn_arith $ac_count + 1 && ac_count=$as_val
4794     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4795       # Best one so far, save it but keep looking for a better one
4796       ac_cv_path_GREP="$ac_path_GREP"
4797       ac_path_GREP_max=$ac_count
4798     fi
4799     # 10*(2^10) chars as input seems more than enough
4800     test $ac_count -gt 10 && break
4801   done
4802   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4803 esac
4804
4805       $ac_path_GREP_found && break 3
4806     done
4807   done
4808   done
4809 IFS=$as_save_IFS
4810   if test -z "$ac_cv_path_GREP"; then
4811     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4812   fi
4813 else
4814   ac_cv_path_GREP=$GREP
4815 fi
4816
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4819 $as_echo "$ac_cv_path_GREP" >&6; }
4820  GREP="$ac_cv_path_GREP"
4821
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4824 $as_echo_n "checking for egrep... " >&6; }
4825 if ${ac_cv_path_EGREP+:} false; then :
4826   $as_echo_n "(cached) " >&6
4827 else
4828   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4829    then ac_cv_path_EGREP="$GREP -E"
4830    else
4831      if test -z "$EGREP"; then
4832   ac_path_EGREP_found=false
4833   # Loop through the user's path and test for each of PROGNAME-LIST
4834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     for ac_prog in egrep; do
4840     for ac_exec_ext in '' $ac_executable_extensions; do
4841       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4842       as_fn_executable_p "$ac_path_EGREP" || continue
4843 # Check for GNU ac_path_EGREP and select it if it is found.
4844   # Check for GNU $ac_path_EGREP
4845 case `"$ac_path_EGREP" --version 2>&1` in
4846 *GNU*)
4847   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4848 *)
4849   ac_count=0
4850   $as_echo_n 0123456789 >"conftest.in"
4851   while :
4852   do
4853     cat "conftest.in" "conftest.in" >"conftest.tmp"
4854     mv "conftest.tmp" "conftest.in"
4855     cp "conftest.in" "conftest.nl"
4856     $as_echo 'EGREP' >> "conftest.nl"
4857     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859     as_fn_arith $ac_count + 1 && ac_count=$as_val
4860     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4861       # Best one so far, save it but keep looking for a better one
4862       ac_cv_path_EGREP="$ac_path_EGREP"
4863       ac_path_EGREP_max=$ac_count
4864     fi
4865     # 10*(2^10) chars as input seems more than enough
4866     test $ac_count -gt 10 && break
4867   done
4868   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869 esac
4870
4871       $ac_path_EGREP_found && break 3
4872     done
4873   done
4874   done
4875 IFS=$as_save_IFS
4876   if test -z "$ac_cv_path_EGREP"; then
4877     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4878   fi
4879 else
4880   ac_cv_path_EGREP=$EGREP
4881 fi
4882
4883    fi
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4886 $as_echo "$ac_cv_path_EGREP" >&6; }
4887  EGREP="$ac_cv_path_EGREP"
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4891 $as_echo_n "checking for fgrep... " >&6; }
4892 if ${ac_cv_path_FGREP+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4896    then ac_cv_path_FGREP="$GREP -F"
4897    else
4898      if test -z "$FGREP"; then
4899   ac_path_FGREP_found=false
4900   # Loop through the user's path and test for each of PROGNAME-LIST
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906     for ac_prog in fgrep; do
4907     for ac_exec_ext in '' $ac_executable_extensions; do
4908       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4909       as_fn_executable_p "$ac_path_FGREP" || continue
4910 # Check for GNU ac_path_FGREP and select it if it is found.
4911   # Check for GNU $ac_path_FGREP
4912 case `"$ac_path_FGREP" --version 2>&1` in
4913 *GNU*)
4914   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4915 *)
4916   ac_count=0
4917   $as_echo_n 0123456789 >"conftest.in"
4918   while :
4919   do
4920     cat "conftest.in" "conftest.in" >"conftest.tmp"
4921     mv "conftest.tmp" "conftest.in"
4922     cp "conftest.in" "conftest.nl"
4923     $as_echo 'FGREP' >> "conftest.nl"
4924     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926     as_fn_arith $ac_count + 1 && ac_count=$as_val
4927     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4928       # Best one so far, save it but keep looking for a better one
4929       ac_cv_path_FGREP="$ac_path_FGREP"
4930       ac_path_FGREP_max=$ac_count
4931     fi
4932     # 10*(2^10) chars as input seems more than enough
4933     test $ac_count -gt 10 && break
4934   done
4935   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936 esac
4937
4938       $ac_path_FGREP_found && break 3
4939     done
4940   done
4941   done
4942 IFS=$as_save_IFS
4943   if test -z "$ac_cv_path_FGREP"; then
4944     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4945   fi
4946 else
4947   ac_cv_path_FGREP=$FGREP
4948 fi
4949
4950    fi
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4953 $as_echo "$ac_cv_path_FGREP" >&6; }
4954  FGREP="$ac_cv_path_FGREP"
4955
4956
4957 test -z "$GREP" && GREP=grep
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977 # Check whether --with-gnu-ld was given.
4978 if test "${with_gnu_ld+set}" = set; then :
4979   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4980 else
4981   with_gnu_ld=no
4982 fi
4983
4984 ac_prog=ld
4985 if test "$GCC" = yes; then
4986   # Check if gcc -print-prog-name=ld gives a path.
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4988 $as_echo_n "checking for ld used by $CC... " >&6; }
4989   case $host in
4990   *-*-mingw*)
4991     # gcc leaves a trailing carriage return which upsets mingw
4992     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4993   *)
4994     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4995   esac
4996   case $ac_prog in
4997     # Accept absolute paths.
4998     [\\/]* | ?:[\\/]*)
4999       re_direlt='/[^/][^/]*/\.\./'
5000       # Canonicalize the pathname of ld
5001       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5002       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5003         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5004       done
5005       test -z "$LD" && LD="$ac_prog"
5006       ;;
5007   "")
5008     # If it fails, then pretend we aren't using GCC.
5009     ac_prog=ld
5010     ;;
5011   *)
5012     # If it is relative, then search for the first ld in PATH.
5013     with_gnu_ld=unknown
5014     ;;
5015   esac
5016 elif test "$with_gnu_ld" = yes; then
5017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5018 $as_echo_n "checking for GNU ld... " >&6; }
5019 else
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5021 $as_echo_n "checking for non-GNU ld... " >&6; }
5022 fi
5023 if ${lt_cv_path_LD+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   if test -z "$LD"; then
5027   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5028   for ac_dir in $PATH; do
5029     IFS="$lt_save_ifs"
5030     test -z "$ac_dir" && ac_dir=.
5031     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5032       lt_cv_path_LD="$ac_dir/$ac_prog"
5033       # Check to see if the program is GNU ld.  I'd rather use --version,
5034       # but apparently some variants of GNU ld only accept -v.
5035       # Break only if it was the GNU/non-GNU ld that we prefer.
5036       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5037       *GNU* | *'with BFD'*)
5038         test "$with_gnu_ld" != no && break
5039         ;;
5040       *)
5041         test "$with_gnu_ld" != yes && break
5042         ;;
5043       esac
5044     fi
5045   done
5046   IFS="$lt_save_ifs"
5047 else
5048   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5049 fi
5050 fi
5051
5052 LD="$lt_cv_path_LD"
5053 if test -n "$LD"; then
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5055 $as_echo "$LD" >&6; }
5056 else
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5062 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5063 if ${lt_cv_prog_gnu_ld+:} false; then :
5064   $as_echo_n "(cached) " >&6
5065 else
5066   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5067 case `$LD -v 2>&1 </dev/null` in
5068 *GNU* | *'with BFD'*)
5069   lt_cv_prog_gnu_ld=yes
5070   ;;
5071 *)
5072   lt_cv_prog_gnu_ld=no
5073   ;;
5074 esac
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5077 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5078 with_gnu_ld=$lt_cv_prog_gnu_ld
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5089 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5090 if ${lt_cv_path_NM+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   if test -n "$NM"; then
5094   # Let the user override the test.
5095   lt_cv_path_NM="$NM"
5096 else
5097   lt_nm_to_check="${ac_tool_prefix}nm"
5098   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5099     lt_nm_to_check="$lt_nm_to_check nm"
5100   fi
5101   for lt_tmp_nm in $lt_nm_to_check; do
5102     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5103     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5104       IFS="$lt_save_ifs"
5105       test -z "$ac_dir" && ac_dir=.
5106       tmp_nm="$ac_dir/$lt_tmp_nm"
5107       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5108         # Check to see if the nm accepts a BSD-compat flag.
5109         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5110         #   nm: unknown option "B" ignored
5111         # Tru64's nm complains that /dev/null is an invalid object file
5112         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5113         */dev/null* | *'Invalid file or object type'*)
5114           lt_cv_path_NM="$tmp_nm -B"
5115           break
5116           ;;
5117         *)
5118           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5119           */dev/null*)
5120             lt_cv_path_NM="$tmp_nm -p"
5121             break
5122             ;;
5123           *)
5124             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5125             continue # so that we can try to find one that supports BSD flags
5126             ;;
5127           esac
5128           ;;
5129         esac
5130       fi
5131     done
5132     IFS="$lt_save_ifs"
5133   done
5134   : ${lt_cv_path_NM=no}
5135 fi
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5138 $as_echo "$lt_cv_path_NM" >&6; }
5139 if test "$lt_cv_path_NM" != "no"; then
5140   NM="$lt_cv_path_NM"
5141 else
5142   # Didn't find any BSD compatible name lister, look for dumpbin.
5143   if test -n "$DUMPBIN"; then :
5144     # Let the user override the test.
5145   else
5146     if test -n "$ac_tool_prefix"; then
5147   for ac_prog in dumpbin "link -dump"
5148   do
5149     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if ${ac_cv_prog_DUMPBIN+:} false; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156   if test -n "$DUMPBIN"; then
5157   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164     for ac_exec_ext in '' $ac_executable_extensions; do
5165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168     break 2
5169   fi
5170 done
5171   done
5172 IFS=$as_save_IFS
5173
5174 fi
5175 fi
5176 DUMPBIN=$ac_cv_prog_DUMPBIN
5177 if test -n "$DUMPBIN"; then
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5179 $as_echo "$DUMPBIN" >&6; }
5180 else
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5183 fi
5184
5185
5186     test -n "$DUMPBIN" && break
5187   done
5188 fi
5189 if test -z "$DUMPBIN"; then
5190   ac_ct_DUMPBIN=$DUMPBIN
5191   for ac_prog in dumpbin "link -dump"
5192 do
5193   # Extract the first word of "$ac_prog", so it can be a program name with args.
5194 set dummy $ac_prog; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   if test -n "$ac_ct_DUMPBIN"; then
5201   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215   done
5216 IFS=$as_save_IFS
5217
5218 fi
5219 fi
5220 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5221 if test -n "$ac_ct_DUMPBIN"; then
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5223 $as_echo "$ac_ct_DUMPBIN" >&6; }
5224 else
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229
5230   test -n "$ac_ct_DUMPBIN" && break
5231 done
5232
5233   if test "x$ac_ct_DUMPBIN" = x; then
5234     DUMPBIN=":"
5235   else
5236     case $cross_compiling:$ac_tool_warned in
5237 yes:)
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5240 ac_tool_warned=yes ;;
5241 esac
5242     DUMPBIN=$ac_ct_DUMPBIN
5243   fi
5244 fi
5245
5246     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5247     *COFF*)
5248       DUMPBIN="$DUMPBIN -symbols"
5249       ;;
5250     *)
5251       DUMPBIN=:
5252       ;;
5253     esac
5254   fi
5255
5256   if test "$DUMPBIN" != ":"; then
5257     NM="$DUMPBIN"
5258   fi
5259 fi
5260 test -z "$NM" && NM=nm
5261
5262
5263
5264
5265
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5268 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5269 if ${lt_cv_nm_interface+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   lt_cv_nm_interface="BSD nm"
5273   echo "int some_variable = 0;" > conftest.$ac_ext
5274   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5275   (eval "$ac_compile" 2>conftest.err)
5276   cat conftest.err >&5
5277   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5278   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5279   cat conftest.err >&5
5280   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5281   cat conftest.out >&5
5282   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5283     lt_cv_nm_interface="MS dumpbin"
5284   fi
5285   rm -f conftest*
5286 fi
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5288 $as_echo "$lt_cv_nm_interface" >&6; }
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5291 $as_echo_n "checking whether ln -s works... " >&6; }
5292 LN_S=$as_ln_s
5293 if test "$LN_S" = "ln -s"; then
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295 $as_echo "yes" >&6; }
5296 else
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5298 $as_echo "no, using $LN_S" >&6; }
5299 fi
5300
5301 # find the maximum length of command line arguments
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5303 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5304 if ${lt_cv_sys_max_cmd_len+:} false; then :
5305   $as_echo_n "(cached) " >&6
5306 else
5307     i=0
5308   teststring="ABCD"
5309
5310   case $build_os in
5311   msdosdjgpp*)
5312     # On DJGPP, this test can blow up pretty badly due to problems in libc
5313     # (any single argument exceeding 2000 bytes causes a buffer overrun
5314     # during glob expansion).  Even if it were fixed, the result of this
5315     # check would be larger than it should be.
5316     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5317     ;;
5318
5319   gnu*)
5320     # Under GNU Hurd, this test is not required because there is
5321     # no limit to the length of command line arguments.
5322     # Libtool will interpret -1 as no limit whatsoever
5323     lt_cv_sys_max_cmd_len=-1;
5324     ;;
5325
5326   cygwin* | mingw* | cegcc*)
5327     # On Win9x/ME, this test blows up -- it succeeds, but takes
5328     # about 5 minutes as the teststring grows exponentially.
5329     # Worse, since 9x/ME are not pre-emptively multitasking,
5330     # you end up with a "frozen" computer, even though with patience
5331     # the test eventually succeeds (with a max line length of 256k).
5332     # Instead, let's just punt: use the minimum linelength reported by
5333     # all of the supported platforms: 8192 (on NT/2K/XP).
5334     lt_cv_sys_max_cmd_len=8192;
5335     ;;
5336
5337   mint*)
5338     # On MiNT this can take a long time and run out of memory.
5339     lt_cv_sys_max_cmd_len=8192;
5340     ;;
5341
5342   amigaos*)
5343     # On AmigaOS with pdksh, this test takes hours, literally.
5344     # So we just punt and use a minimum line length of 8192.
5345     lt_cv_sys_max_cmd_len=8192;
5346     ;;
5347
5348   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5349     # This has been around since 386BSD, at least.  Likely further.
5350     if test -x /sbin/sysctl; then
5351       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5352     elif test -x /usr/sbin/sysctl; then
5353       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5354     else
5355       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5356     fi
5357     # And add a safety zone
5358     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5359     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5360     ;;
5361
5362   interix*)
5363     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5364     lt_cv_sys_max_cmd_len=196608
5365     ;;
5366
5367   os2*)
5368     # The test takes a long time on OS/2.
5369     lt_cv_sys_max_cmd_len=8192
5370     ;;
5371
5372   osf*)
5373     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5374     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5375     # nice to cause kernel panics so lets avoid the loop below.
5376     # First set a reasonable default.
5377     lt_cv_sys_max_cmd_len=16384
5378     #
5379     if test -x /sbin/sysconfig; then
5380       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5381         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5382       esac
5383     fi
5384     ;;
5385   sco3.2v5*)
5386     lt_cv_sys_max_cmd_len=102400
5387     ;;
5388   sysv5* | sco5v6* | sysv4.2uw2*)
5389     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5390     if test -n "$kargmax"; then
5391       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5392     else
5393       lt_cv_sys_max_cmd_len=32768
5394     fi
5395     ;;
5396   *)
5397     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5398     if test -n "$lt_cv_sys_max_cmd_len"; then
5399       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5401     else
5402       # Make teststring a little bigger before we do anything with it.
5403       # a 1K string should be a reasonable start.
5404       for i in 1 2 3 4 5 6 7 8 ; do
5405         teststring=$teststring$teststring
5406       done
5407       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5408       # If test is not a shell built-in, we'll probably end up computing a
5409       # maximum length that is only half of the actual maximum length, but
5410       # we can't tell.
5411       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5412                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5413               test $i != 17 # 1/2 MB should be enough
5414       do
5415         i=`expr $i + 1`
5416         teststring=$teststring$teststring
5417       done
5418       # Only check the string length outside the loop.
5419       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5420       teststring=
5421       # Add a significant safety factor because C++ compilers can tack on
5422       # massive amounts of additional arguments before passing them to the
5423       # linker.  It appears as though 1/2 is a usable value.
5424       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5425     fi
5426     ;;
5427   esac
5428
5429 fi
5430
5431 if test -n $lt_cv_sys_max_cmd_len ; then
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5433 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5434 else
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5436 $as_echo "none" >&6; }
5437 fi
5438 max_cmd_len=$lt_cv_sys_max_cmd_len
5439
5440
5441
5442
5443
5444
5445 : ${CP="cp -f"}
5446 : ${MV="mv -f"}
5447 : ${RM="rm -f"}
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5450 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5451 # Try some XSI features
5452 xsi_shell=no
5453 ( _lt_dummy="a/b/c"
5454   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5455       = c,a/b,b/c, \
5456     && eval 'test $(( 1 + 1 )) -eq 2 \
5457     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5458   && xsi_shell=yes
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5460 $as_echo "$xsi_shell" >&6; }
5461
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5464 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5465 lt_shell_append=no
5466 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5467     >/dev/null 2>&1 \
5468   && lt_shell_append=yes
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5470 $as_echo "$lt_shell_append" >&6; }
5471
5472
5473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5474   lt_unset=unset
5475 else
5476   lt_unset=false
5477 fi
5478
5479
5480
5481
5482
5483 # test EBCDIC or ASCII
5484 case `echo X|tr X '\101'` in
5485  A) # ASCII based system
5486     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5487   lt_SP2NL='tr \040 \012'
5488   lt_NL2SP='tr \015\012 \040\040'
5489   ;;
5490  *) # EBCDIC based system
5491   lt_SP2NL='tr \100 \n'
5492   lt_NL2SP='tr \r\n \100\100'
5493   ;;
5494 esac
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5505 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5506 if ${lt_cv_to_host_file_cmd+:} false; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509   case $host in
5510   *-*-mingw* )
5511     case $build in
5512       *-*-mingw* ) # actually msys
5513         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5514         ;;
5515       *-*-cygwin* )
5516         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5517         ;;
5518       * ) # otherwise, assume *nix
5519         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5520         ;;
5521     esac
5522     ;;
5523   *-*-cygwin* )
5524     case $build in
5525       *-*-mingw* ) # actually msys
5526         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5527         ;;
5528       *-*-cygwin* )
5529         lt_cv_to_host_file_cmd=func_convert_file_noop
5530         ;;
5531       * ) # otherwise, assume *nix
5532         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5533         ;;
5534     esac
5535     ;;
5536   * ) # unhandled hosts (and "normal" native builds)
5537     lt_cv_to_host_file_cmd=func_convert_file_noop
5538     ;;
5539 esac
5540
5541 fi
5542
5543 to_host_file_cmd=$lt_cv_to_host_file_cmd
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5545 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5546
5547
5548
5549
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5552 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5553 if ${lt_cv_to_tool_file_cmd+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   #assume ordinary cross tools, or native build.
5557 lt_cv_to_tool_file_cmd=func_convert_file_noop
5558 case $host in
5559   *-*-mingw* )
5560     case $build in
5561       *-*-mingw* ) # actually msys
5562         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5563         ;;
5564     esac
5565     ;;
5566 esac
5567
5568 fi
5569
5570 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5572 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5573
5574
5575
5576
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5579 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5580 if ${lt_cv_ld_reload_flag+:} false; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   lt_cv_ld_reload_flag='-r'
5584 fi
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5586 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5587 reload_flag=$lt_cv_ld_reload_flag
5588 case $reload_flag in
5589 "" | " "*) ;;
5590 *) reload_flag=" $reload_flag" ;;
5591 esac
5592 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5593 case $host_os in
5594   cygwin* | mingw* | pw32* | cegcc*)
5595     if test "$GCC" != yes; then
5596       reload_cmds=false
5597     fi
5598     ;;
5599   darwin*)
5600     if test "$GCC" = yes; then
5601       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5602     else
5603       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5604     fi
5605     ;;
5606 esac
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616 if test -n "$ac_tool_prefix"; then
5617   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5618 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_OBJDUMP+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   if test -n "$OBJDUMP"; then
5625   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632     for ac_exec_ext in '' $ac_executable_extensions; do
5633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636     break 2
5637   fi
5638 done
5639   done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 OBJDUMP=$ac_cv_prog_OBJDUMP
5645 if test -n "$OBJDUMP"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5647 $as_echo "$OBJDUMP" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653
5654 fi
5655 if test -z "$ac_cv_prog_OBJDUMP"; then
5656   ac_ct_OBJDUMP=$OBJDUMP
5657   # Extract the first word of "objdump", so it can be a program name with args.
5658 set dummy objdump; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   if test -n "$ac_ct_OBJDUMP"; then
5665   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672     for ac_exec_ext in '' $ac_executable_extensions; do
5673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679   done
5680 IFS=$as_save_IFS
5681
5682 fi
5683 fi
5684 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5685 if test -n "$ac_ct_OBJDUMP"; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5687 $as_echo "$ac_ct_OBJDUMP" >&6; }
5688 else
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692
5693   if test "x$ac_ct_OBJDUMP" = x; then
5694     OBJDUMP="false"
5695   else
5696     case $cross_compiling:$ac_tool_warned in
5697 yes:)
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 ac_tool_warned=yes ;;
5701 esac
5702     OBJDUMP=$ac_ct_OBJDUMP
5703   fi
5704 else
5705   OBJDUMP="$ac_cv_prog_OBJDUMP"
5706 fi
5707
5708 test -z "$OBJDUMP" && OBJDUMP=objdump
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5719 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5720 if ${lt_cv_deplibs_check_method+:} false; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   lt_cv_file_magic_cmd='$MAGIC_CMD'
5724 lt_cv_file_magic_test_file=
5725 lt_cv_deplibs_check_method='unknown'
5726 # Need to set the preceding variable on all platforms that support
5727 # interlibrary dependencies.
5728 # 'none' -- dependencies not supported.
5729 # `unknown' -- same as none, but documents that we really don't know.
5730 # 'pass_all' -- all dependencies passed with no checks.
5731 # 'test_compile' -- check by making test program.
5732 # 'file_magic [[regex]]' -- check by looking for files in library path
5733 # which responds to the $file_magic_cmd with a given extended regex.
5734 # If you have `file' or equivalent on your system and you're not sure
5735 # whether `pass_all' will *always* work, you probably want this one.
5736
5737 case $host_os in
5738 aix[4-9]*)
5739   lt_cv_deplibs_check_method=pass_all
5740   ;;
5741
5742 beos*)
5743   lt_cv_deplibs_check_method=pass_all
5744   ;;
5745
5746 bsdi[45]*)
5747   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5748   lt_cv_file_magic_cmd='/usr/bin/file -L'
5749   lt_cv_file_magic_test_file=/shlib/libc.so
5750   ;;
5751
5752 cygwin*)
5753   # func_win32_libid is a shell function defined in ltmain.sh
5754   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5755   lt_cv_file_magic_cmd='func_win32_libid'
5756   ;;
5757
5758 mingw* | pw32*)
5759   # Base MSYS/MinGW do not provide the 'file' command needed by
5760   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5761   # unless we find 'file', for example because we are cross-compiling.
5762   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5763   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5764     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5765     lt_cv_file_magic_cmd='func_win32_libid'
5766   else
5767     # Keep this pattern in sync with the one in func_win32_libid.
5768     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5769     lt_cv_file_magic_cmd='$OBJDUMP -f'
5770   fi
5771   ;;
5772
5773 cegcc*)
5774   # use the weaker test based on 'objdump'. See mingw*.
5775   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5776   lt_cv_file_magic_cmd='$OBJDUMP -f'
5777   ;;
5778
5779 darwin* | rhapsody*)
5780   lt_cv_deplibs_check_method=pass_all
5781   ;;
5782
5783 freebsd* | dragonfly*)
5784   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5785     case $host_cpu in
5786     i*86 )
5787       # Not sure whether the presence of OpenBSD here was a mistake.
5788       # Let's accept both of them until this is cleared up.
5789       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5790       lt_cv_file_magic_cmd=/usr/bin/file
5791       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5792       ;;
5793     esac
5794   else
5795     lt_cv_deplibs_check_method=pass_all
5796   fi
5797   ;;
5798
5799 gnu*)
5800   lt_cv_deplibs_check_method=pass_all
5801   ;;
5802
5803 haiku*)
5804   lt_cv_deplibs_check_method=pass_all
5805   ;;
5806
5807 hpux10.20* | hpux11*)
5808   lt_cv_file_magic_cmd=/usr/bin/file
5809   case $host_cpu in
5810   ia64*)
5811     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5812     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5813     ;;
5814   hppa*64*)
5815     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]'
5816     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5817     ;;
5818   *)
5819     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5820     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5821     ;;
5822   esac
5823   ;;
5824
5825 interix[3-9]*)
5826   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5827   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5828   ;;
5829
5830 irix5* | irix6* | nonstopux*)
5831   case $LD in
5832   *-32|*"-32 ") libmagic=32-bit;;
5833   *-n32|*"-n32 ") libmagic=N32;;
5834   *-64|*"-64 ") libmagic=64-bit;;
5835   *) libmagic=never-match;;
5836   esac
5837   lt_cv_deplibs_check_method=pass_all
5838   ;;
5839
5840 # This must be glibc/ELF.
5841 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5842   lt_cv_deplibs_check_method=pass_all
5843   ;;
5844
5845 netbsd*)
5846   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5847     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5848   else
5849     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5850   fi
5851   ;;
5852
5853 newos6*)
5854   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5855   lt_cv_file_magic_cmd=/usr/bin/file
5856   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5857   ;;
5858
5859 *nto* | *qnx*)
5860   lt_cv_deplibs_check_method=pass_all
5861   ;;
5862
5863 openbsd*)
5864   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5865     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5866   else
5867     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5868   fi
5869   ;;
5870
5871 osf3* | osf4* | osf5*)
5872   lt_cv_deplibs_check_method=pass_all
5873   ;;
5874
5875 rdos*)
5876   lt_cv_deplibs_check_method=pass_all
5877   ;;
5878
5879 solaris*)
5880   lt_cv_deplibs_check_method=pass_all
5881   ;;
5882
5883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5884   lt_cv_deplibs_check_method=pass_all
5885   ;;
5886
5887 sysv4 | sysv4.3*)
5888   case $host_vendor in
5889   motorola)
5890     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]'
5891     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5892     ;;
5893   ncr)
5894     lt_cv_deplibs_check_method=pass_all
5895     ;;
5896   sequent)
5897     lt_cv_file_magic_cmd='/bin/file'
5898     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5899     ;;
5900   sni)
5901     lt_cv_file_magic_cmd='/bin/file'
5902     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5903     lt_cv_file_magic_test_file=/lib/libc.so
5904     ;;
5905   siemens)
5906     lt_cv_deplibs_check_method=pass_all
5907     ;;
5908   pc)
5909     lt_cv_deplibs_check_method=pass_all
5910     ;;
5911   esac
5912   ;;
5913
5914 tpf*)
5915   lt_cv_deplibs_check_method=pass_all
5916   ;;
5917 esac
5918
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5921 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5922
5923 file_magic_glob=
5924 want_nocaseglob=no
5925 if test "$build" = "$host"; then
5926   case $host_os in
5927   mingw* | pw32*)
5928     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5929       want_nocaseglob=yes
5930     else
5931       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5932     fi
5933     ;;
5934   esac
5935 fi
5936
5937 file_magic_cmd=$lt_cv_file_magic_cmd
5938 deplibs_check_method=$lt_cv_deplibs_check_method
5939 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 if test -n "$ac_tool_prefix"; then
5963   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5964 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if ${ac_cv_prog_DLLTOOL+:} false; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   if test -n "$DLLTOOL"; then
5971   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978     for ac_exec_ext in '' $ac_executable_extensions; do
5979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985   done
5986 IFS=$as_save_IFS
5987
5988 fi
5989 fi
5990 DLLTOOL=$ac_cv_prog_DLLTOOL
5991 if test -n "$DLLTOOL"; then
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5993 $as_echo "$DLLTOOL" >&6; }
5994 else
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998
5999
6000 fi
6001 if test -z "$ac_cv_prog_DLLTOOL"; then
6002   ac_ct_DLLTOOL=$DLLTOOL
6003   # Extract the first word of "dlltool", so it can be a program name with args.
6004 set dummy dlltool; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   if test -n "$ac_ct_DLLTOOL"; then
6011   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018     for ac_exec_ext in '' $ac_executable_extensions; do
6019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025   done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6031 if test -n "$ac_ct_DLLTOOL"; then
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6033 $as_echo "$ac_ct_DLLTOOL" >&6; }
6034 else
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039   if test "x$ac_ct_DLLTOOL" = x; then
6040     DLLTOOL="false"
6041   else
6042     case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048     DLLTOOL=$ac_ct_DLLTOOL
6049   fi
6050 else
6051   DLLTOOL="$ac_cv_prog_DLLTOOL"
6052 fi
6053
6054 test -z "$DLLTOOL" && DLLTOOL=dlltool
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6066 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6067 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6068   $as_echo_n "(cached) " >&6
6069 else
6070   lt_cv_sharedlib_from_linklib_cmd='unknown'
6071
6072 case $host_os in
6073 cygwin* | mingw* | pw32* | cegcc*)
6074   # two different shell functions defined in ltmain.sh
6075   # decide which to use based on capabilities of $DLLTOOL
6076   case `$DLLTOOL --help 2>&1` in
6077   *--identify-strict*)
6078     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6079     ;;
6080   *)
6081     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6082     ;;
6083   esac
6084   ;;
6085 *)
6086   # fallback: assume linklib IS sharedlib
6087   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6088   ;;
6089 esac
6090
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6093 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6094 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6095 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6096
6097
6098
6099
6100
6101
6102
6103 if test -n "$ac_tool_prefix"; then
6104   for ac_prog in ar
6105   do
6106     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_prog_AR+:} false; then :
6111   $as_echo_n "(cached) " >&6
6112 else
6113   if test -n "$AR"; then
6114   ac_cv_prog_AR="$AR" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121     for ac_exec_ext in '' $ac_executable_extensions; do
6122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128   done
6129 IFS=$as_save_IFS
6130
6131 fi
6132 fi
6133 AR=$ac_cv_prog_AR
6134 if test -n "$AR"; then
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6136 $as_echo "$AR" >&6; }
6137 else
6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139 $as_echo "no" >&6; }
6140 fi
6141
6142
6143     test -n "$AR" && break
6144   done
6145 fi
6146 if test -z "$AR"; then
6147   ac_ct_AR=$AR
6148   for ac_prog in ar
6149 do
6150   # Extract the first word of "$ac_prog", so it can be a program name with args.
6151 set dummy $ac_prog; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6155   $as_echo_n "(cached) " >&6
6156 else
6157   if test -n "$ac_ct_AR"; then
6158   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163   IFS=$as_save_IFS
6164   test -z "$as_dir" && as_dir=.
6165     for ac_exec_ext in '' $ac_executable_extensions; do
6166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167     ac_cv_prog_ac_ct_AR="$ac_prog"
6168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169     break 2
6170   fi
6171 done
6172   done
6173 IFS=$as_save_IFS
6174
6175 fi
6176 fi
6177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6178 if test -n "$ac_ct_AR"; then
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6180 $as_echo "$ac_ct_AR" >&6; }
6181 else
6182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6184 fi
6185
6186
6187   test -n "$ac_ct_AR" && break
6188 done
6189
6190   if test "x$ac_ct_AR" = x; then
6191     AR="false"
6192   else
6193     case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199     AR=$ac_ct_AR
6200   fi
6201 fi
6202
6203 : ${AR=ar}
6204 : ${AR_FLAGS=cru}
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6217 $as_echo_n "checking for archiver @FILE support... " >&6; }
6218 if ${lt_cv_ar_at_file+:} false; then :
6219   $as_echo_n "(cached) " >&6
6220 else
6221   lt_cv_ar_at_file=no
6222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h.  */
6224
6225 int
6226 main ()
6227 {
6228
6229   ;
6230   return 0;
6231 }
6232 _ACEOF
6233 if ac_fn_c_try_compile "$LINENO"; then :
6234   echo conftest.$ac_objext > conftest.lst
6235       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6236       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6237   (eval $lt_ar_try) 2>&5
6238   ac_status=$?
6239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240   test $ac_status = 0; }
6241       if test "$ac_status" -eq 0; then
6242         # Ensure the archiver fails upon bogus file names.
6243         rm -f conftest.$ac_objext libconftest.a
6244         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6245   (eval $lt_ar_try) 2>&5
6246   ac_status=$?
6247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248   test $ac_status = 0; }
6249         if test "$ac_status" -ne 0; then
6250           lt_cv_ar_at_file=@
6251         fi
6252       fi
6253       rm -f conftest.* libconftest.a
6254
6255 fi
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257
6258 fi
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6260 $as_echo "$lt_cv_ar_at_file" >&6; }
6261
6262 if test "x$lt_cv_ar_at_file" = xno; then
6263   archiver_list_spec=
6264 else
6265   archiver_list_spec=$lt_cv_ar_at_file
6266 fi
6267
6268
6269
6270
6271
6272
6273
6274 if test -n "$ac_tool_prefix"; then
6275   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6276 set dummy ${ac_tool_prefix}strip; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_STRIP+:} false; then :
6280   $as_echo_n "(cached) " >&6
6281 else
6282   if test -n "$STRIP"; then
6283   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288   IFS=$as_save_IFS
6289   test -z "$as_dir" && as_dir=.
6290     for ac_exec_ext in '' $ac_executable_extensions; do
6291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294     break 2
6295   fi
6296 done
6297   done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 STRIP=$ac_cv_prog_STRIP
6303 if test -n "$STRIP"; then
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6305 $as_echo "$STRIP" >&6; }
6306 else
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311
6312 fi
6313 if test -z "$ac_cv_prog_STRIP"; then
6314   ac_ct_STRIP=$STRIP
6315   # Extract the first word of "strip", so it can be a program name with args.
6316 set dummy strip; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6320   $as_echo_n "(cached) " >&6
6321 else
6322   if test -n "$ac_ct_STRIP"; then
6323   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328   IFS=$as_save_IFS
6329   test -z "$as_dir" && as_dir=.
6330     for ac_exec_ext in '' $ac_executable_extensions; do
6331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332     ac_cv_prog_ac_ct_STRIP="strip"
6333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334     break 2
6335   fi
6336 done
6337   done
6338 IFS=$as_save_IFS
6339
6340 fi
6341 fi
6342 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6343 if test -n "$ac_ct_STRIP"; then
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6345 $as_echo "$ac_ct_STRIP" >&6; }
6346 else
6347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6349 fi
6350
6351   if test "x$ac_ct_STRIP" = x; then
6352     STRIP=":"
6353   else
6354     case $cross_compiling:$ac_tool_warned in
6355 yes:)
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358 ac_tool_warned=yes ;;
6359 esac
6360     STRIP=$ac_ct_STRIP
6361   fi
6362 else
6363   STRIP="$ac_cv_prog_STRIP"
6364 fi
6365
6366 test -z "$STRIP" && STRIP=:
6367
6368
6369
6370
6371
6372
6373 if test -n "$ac_tool_prefix"; then
6374   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6375 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_prog_RANLIB+:} false; then :
6379   $as_echo_n "(cached) " >&6
6380 else
6381   if test -n "$RANLIB"; then
6382   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6386 do
6387   IFS=$as_save_IFS
6388   test -z "$as_dir" && as_dir=.
6389     for ac_exec_ext in '' $ac_executable_extensions; do
6390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6391     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393     break 2
6394   fi
6395 done
6396   done
6397 IFS=$as_save_IFS
6398
6399 fi
6400 fi
6401 RANLIB=$ac_cv_prog_RANLIB
6402 if test -n "$RANLIB"; then
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6404 $as_echo "$RANLIB" >&6; }
6405 else
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6408 fi
6409
6410
6411 fi
6412 if test -z "$ac_cv_prog_RANLIB"; then
6413   ac_ct_RANLIB=$RANLIB
6414   # Extract the first word of "ranlib", so it can be a program name with args.
6415 set dummy ranlib; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6419   $as_echo_n "(cached) " >&6
6420 else
6421   if test -n "$ac_ct_RANLIB"; then
6422   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427   IFS=$as_save_IFS
6428   test -z "$as_dir" && as_dir=.
6429     for ac_exec_ext in '' $ac_executable_extensions; do
6430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431     ac_cv_prog_ac_ct_RANLIB="ranlib"
6432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433     break 2
6434   fi
6435 done
6436   done
6437 IFS=$as_save_IFS
6438
6439 fi
6440 fi
6441 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6442 if test -n "$ac_ct_RANLIB"; then
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6444 $as_echo "$ac_ct_RANLIB" >&6; }
6445 else
6446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6448 fi
6449
6450   if test "x$ac_ct_RANLIB" = x; then
6451     RANLIB=":"
6452   else
6453     case $cross_compiling:$ac_tool_warned in
6454 yes:)
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6457 ac_tool_warned=yes ;;
6458 esac
6459     RANLIB=$ac_ct_RANLIB
6460   fi
6461 else
6462   RANLIB="$ac_cv_prog_RANLIB"
6463 fi
6464
6465 test -z "$RANLIB" && RANLIB=:
6466
6467
6468
6469
6470
6471
6472 # Determine commands to create old-style static archives.
6473 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6474 old_postinstall_cmds='chmod 644 $oldlib'
6475 old_postuninstall_cmds=
6476
6477 if test -n "$RANLIB"; then
6478   case $host_os in
6479   openbsd*)
6480     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6481     ;;
6482   *)
6483     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6484     ;;
6485   esac
6486   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6487 fi
6488
6489 case $host_os in
6490   darwin*)
6491     lock_old_archive_extraction=yes ;;
6492   *)
6493     lock_old_archive_extraction=no ;;
6494 esac
6495
6496
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 # If no C compiler was specified, use CC.
6535 LTCC=${LTCC-"$CC"}
6536
6537 # If no C compiler flags were specified, use CFLAGS.
6538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6539
6540 # Allow CC to be a program name with arguments.
6541 compiler=$CC
6542
6543
6544 # Check for command to grab the raw symbol name followed by C symbol from nm.
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6546 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6547 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550
6551 # These are sane defaults that work on at least a few old systems.
6552 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6553
6554 # Character class describing NM global symbol codes.
6555 symcode='[BCDEGRST]'
6556
6557 # Regexp to match symbols that can be accessed directly from C.
6558 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6559
6560 # Define system-specific variables.
6561 case $host_os in
6562 aix*)
6563   symcode='[BCDT]'
6564   ;;
6565 cygwin* | mingw* | pw32* | cegcc*)
6566   symcode='[ABCDGISTW]'
6567   ;;
6568 hpux*)
6569   if test "$host_cpu" = ia64; then
6570     symcode='[ABCDEGRST]'
6571   fi
6572   ;;
6573 irix* | nonstopux*)
6574   symcode='[BCDEGRST]'
6575   ;;
6576 osf*)
6577   symcode='[BCDEGQRST]'
6578   ;;
6579 solaris*)
6580   symcode='[BDRT]'
6581   ;;
6582 sco3.2v5*)
6583   symcode='[DT]'
6584   ;;
6585 sysv4.2uw2*)
6586   symcode='[DT]'
6587   ;;
6588 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6589   symcode='[ABDT]'
6590   ;;
6591 sysv4)
6592   symcode='[DFNSTU]'
6593   ;;
6594 esac
6595
6596 # If we're using GNU nm, then use its standard symbol codes.
6597 case `$NM -V 2>&1` in
6598 *GNU* | *'with BFD'*)
6599   symcode='[ABCDGIRSTW]' ;;
6600 esac
6601
6602 # Transform an extracted symbol line into a proper C declaration.
6603 # Some systems (esp. on ia64) link data and code symbols differently,
6604 # so use this general approach.
6605 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6606
6607 # Transform an extracted symbol line into symbol name and symbol address
6608 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6609 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'"
6610
6611 # Handle CRLF in mingw tool chain
6612 opt_cr=
6613 case $build_os in
6614 mingw*)
6615   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6616   ;;
6617 esac
6618
6619 # Try without a prefix underscore, then with it.
6620 for ac_symprfx in "" "_"; do
6621
6622   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6623   symxfrm="\\1 $ac_symprfx\\2 \\2"
6624
6625   # Write the raw and C identifiers.
6626   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6627     # Fake it for dumpbin and say T for any non-static function
6628     # and D for any global variable.
6629     # Also find C++ and __fastcall symbols from MSVC++,
6630     # which start with @ or ?.
6631     lt_cv_sys_global_symbol_pipe="$AWK '"\
6632 "     {last_section=section; section=\$ 3};"\
6633 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6634 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6635 "     \$ 0!~/External *\|/{next};"\
6636 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6637 "     {if(hide[section]) next};"\
6638 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6639 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6640 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6641 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6642 "     ' prfx=^$ac_symprfx"
6643   else
6644     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6645   fi
6646   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6647
6648   # Check to see that the pipe works correctly.
6649   pipe_works=no
6650
6651   rm -f conftest*
6652   cat > conftest.$ac_ext <<_LT_EOF
6653 #ifdef __cplusplus
6654 extern "C" {
6655 #endif
6656 char nm_test_var;
6657 void nm_test_func(void);
6658 void nm_test_func(void){}
6659 #ifdef __cplusplus
6660 }
6661 #endif
6662 int main(){nm_test_var='a';nm_test_func();return(0);}
6663 _LT_EOF
6664
6665   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6666   (eval $ac_compile) 2>&5
6667   ac_status=$?
6668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669   test $ac_status = 0; }; then
6670     # Now try to grab the symbols.
6671     nlist=conftest.nm
6672     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6673   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6674   ac_status=$?
6675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676   test $ac_status = 0; } && test -s "$nlist"; then
6677       # Try sorting and uniquifying the output.
6678       if sort "$nlist" | uniq > "$nlist"T; then
6679         mv -f "$nlist"T "$nlist"
6680       else
6681         rm -f "$nlist"T
6682       fi
6683
6684       # Make sure that we snagged all the symbols we need.
6685       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6686         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6687           cat <<_LT_EOF > conftest.$ac_ext
6688 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6689 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6690 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6691    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6692 # define LT_DLSYM_CONST
6693 #elif defined(__osf__)
6694 /* This system does not cope well with relocations in const data.  */
6695 # define LT_DLSYM_CONST
6696 #else
6697 # define LT_DLSYM_CONST const
6698 #endif
6699
6700 #ifdef __cplusplus
6701 extern "C" {
6702 #endif
6703
6704 _LT_EOF
6705           # Now generate the symbol file.
6706           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6707
6708           cat <<_LT_EOF >> conftest.$ac_ext
6709
6710 /* The mapping between symbol names and symbols.  */
6711 LT_DLSYM_CONST struct {
6712   const char *name;
6713   void       *address;
6714 }
6715 lt__PROGRAM__LTX_preloaded_symbols[] =
6716 {
6717   { "@PROGRAM@", (void *) 0 },
6718 _LT_EOF
6719           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6720           cat <<\_LT_EOF >> conftest.$ac_ext
6721   {0, (void *) 0}
6722 };
6723
6724 /* This works around a problem in FreeBSD linker */
6725 #ifdef FREEBSD_WORKAROUND
6726 static const void *lt_preloaded_setup() {
6727   return lt__PROGRAM__LTX_preloaded_symbols;
6728 }
6729 #endif
6730
6731 #ifdef __cplusplus
6732 }
6733 #endif
6734 _LT_EOF
6735           # Now try linking the two files.
6736           mv conftest.$ac_objext conftstm.$ac_objext
6737           lt_globsym_save_LIBS=$LIBS
6738           lt_globsym_save_CFLAGS=$CFLAGS
6739           LIBS="conftstm.$ac_objext"
6740           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6741           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6742   (eval $ac_link) 2>&5
6743   ac_status=$?
6744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6746             pipe_works=yes
6747           fi
6748           LIBS=$lt_globsym_save_LIBS
6749           CFLAGS=$lt_globsym_save_CFLAGS
6750         else
6751           echo "cannot find nm_test_func in $nlist" >&5
6752         fi
6753       else
6754         echo "cannot find nm_test_var in $nlist" >&5
6755       fi
6756     else
6757       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6758     fi
6759   else
6760     echo "$progname: failed program was:" >&5
6761     cat conftest.$ac_ext >&5
6762   fi
6763   rm -rf conftest* conftst*
6764
6765   # Do not use the global_symbol_pipe unless it works.
6766   if test "$pipe_works" = yes; then
6767     break
6768   else
6769     lt_cv_sys_global_symbol_pipe=
6770   fi
6771 done
6772
6773 fi
6774
6775 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6776   lt_cv_sys_global_symbol_to_cdecl=
6777 fi
6778 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6780 $as_echo "failed" >&6; }
6781 else
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6783 $as_echo "ok" >&6; }
6784 fi
6785
6786 # Response file support.
6787 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6788   nm_file_list_spec='@'
6789 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6790   nm_file_list_spec='@'
6791 fi
6792
6793
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6820 $as_echo_n "checking for sysroot... " >&6; }
6821
6822 # Check whether --with-sysroot was given.
6823 if test "${with_sysroot+set}" = set; then :
6824   withval=$with_sysroot;
6825 else
6826   with_sysroot=no
6827 fi
6828
6829
6830 lt_sysroot=
6831 case ${with_sysroot} in #(
6832  yes)
6833    if test "$GCC" = yes; then
6834      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6835    fi
6836    ;; #(
6837  /*)
6838    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6839    ;; #(
6840  no|'')
6841    ;; #(
6842  *)
6843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6844 $as_echo "${with_sysroot}" >&6; }
6845    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6846    ;;
6847 esac
6848
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6850 $as_echo "${lt_sysroot:-no}" >&6; }
6851
6852
6853
6854
6855
6856 # Check whether --enable-libtool-lock was given.
6857 if test "${enable_libtool_lock+set}" = set; then :
6858   enableval=$enable_libtool_lock;
6859 fi
6860
6861 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6862
6863 # Some flags need to be propagated to the compiler or linker for good
6864 # libtool support.
6865 case $host in
6866 ia64-*-hpux*)
6867   # Find out which ABI we are using.
6868   echo 'int i;' > conftest.$ac_ext
6869   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6870   (eval $ac_compile) 2>&5
6871   ac_status=$?
6872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873   test $ac_status = 0; }; then
6874     case `/usr/bin/file conftest.$ac_objext` in
6875       *ELF-32*)
6876         HPUX_IA64_MODE="32"
6877         ;;
6878       *ELF-64*)
6879         HPUX_IA64_MODE="64"
6880         ;;
6881     esac
6882   fi
6883   rm -rf conftest*
6884   ;;
6885 *-*-irix6*)
6886   # Find out which ABI we are using.
6887   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6888   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889   (eval $ac_compile) 2>&5
6890   ac_status=$?
6891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892   test $ac_status = 0; }; then
6893     if test "$lt_cv_prog_gnu_ld" = yes; then
6894       case `/usr/bin/file conftest.$ac_objext` in
6895         *32-bit*)
6896           LD="${LD-ld} -melf32bsmip"
6897           ;;
6898         *N32*)
6899           LD="${LD-ld} -melf32bmipn32"
6900           ;;
6901         *64-bit*)
6902           LD="${LD-ld} -melf64bmip"
6903         ;;
6904       esac
6905     else
6906       case `/usr/bin/file conftest.$ac_objext` in
6907         *32-bit*)
6908           LD="${LD-ld} -32"
6909           ;;
6910         *N32*)
6911           LD="${LD-ld} -n32"
6912           ;;
6913         *64-bit*)
6914           LD="${LD-ld} -64"
6915           ;;
6916       esac
6917     fi
6918   fi
6919   rm -rf conftest*
6920   ;;
6921
6922 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6923 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6924   # Find out which ABI we are using.
6925   echo 'int i;' > conftest.$ac_ext
6926   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6927   (eval $ac_compile) 2>&5
6928   ac_status=$?
6929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930   test $ac_status = 0; }; then
6931     case `/usr/bin/file conftest.o` in
6932       *32-bit*)
6933         case $host in
6934           x86_64-*kfreebsd*-gnu)
6935             LD="${LD-ld} -m elf_i386_fbsd"
6936             ;;
6937           x86_64-*linux*)
6938             LD="${LD-ld} -m elf_i386"
6939             ;;
6940           ppc64-*linux*|powerpc64-*linux*)
6941             LD="${LD-ld} -m elf32ppclinux"
6942             ;;
6943           s390x-*linux*)
6944             LD="${LD-ld} -m elf_s390"
6945             ;;
6946           sparc64-*linux*)
6947             LD="${LD-ld} -m elf32_sparc"
6948             ;;
6949         esac
6950         ;;
6951       *64-bit*)
6952         case $host in
6953           x86_64-*kfreebsd*-gnu)
6954             LD="${LD-ld} -m elf_x86_64_fbsd"
6955             ;;
6956           x86_64-*linux*)
6957             LD="${LD-ld} -m elf_x86_64"
6958             ;;
6959           ppc*-*linux*|powerpc*-*linux*)
6960             LD="${LD-ld} -m elf64ppc"
6961             ;;
6962           s390*-*linux*|s390*-*tpf*)
6963             LD="${LD-ld} -m elf64_s390"
6964             ;;
6965           sparc*-*linux*)
6966             LD="${LD-ld} -m elf64_sparc"
6967             ;;
6968         esac
6969         ;;
6970     esac
6971   fi
6972   rm -rf conftest*
6973   ;;
6974
6975 *-*-sco3.2v5*)
6976   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6977   SAVE_CFLAGS="$CFLAGS"
6978   CFLAGS="$CFLAGS -belf"
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6980 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6981 if ${lt_cv_cc_needs_belf+:} false; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984   ac_ext=c
6985 ac_cpp='$CPP $CPPFLAGS'
6986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989
6990      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h.  */
6992
6993 int
6994 main ()
6995 {
6996
6997   ;
6998   return 0;
6999 }
7000 _ACEOF
7001 if ac_fn_c_try_link "$LINENO"; then :
7002   lt_cv_cc_needs_belf=yes
7003 else
7004   lt_cv_cc_needs_belf=no
7005 fi
7006 rm -f core conftest.err conftest.$ac_objext \
7007     conftest$ac_exeext conftest.$ac_ext
7008      ac_ext=c
7009 ac_cpp='$CPP $CPPFLAGS'
7010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7013
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7016 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7017   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7018     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7019     CFLAGS="$SAVE_CFLAGS"
7020   fi
7021   ;;
7022 *-*solaris*)
7023   # Find out which ABI we are using.
7024   echo 'int i;' > conftest.$ac_ext
7025   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7026   (eval $ac_compile) 2>&5
7027   ac_status=$?
7028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029   test $ac_status = 0; }; then
7030     case `/usr/bin/file conftest.o` in
7031     *64-bit*)
7032       case $lt_cv_prog_gnu_ld in
7033       yes*)
7034         case $host in
7035         i?86-*-solaris*)
7036           LD="${LD-ld} -m elf_x86_64"
7037           ;;
7038         sparc*-*-solaris*)
7039           LD="${LD-ld} -m elf64_sparc"
7040           ;;
7041         esac
7042         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7043         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7044           LD="${LD-ld}_sol2"
7045         fi
7046         ;;
7047       *)
7048         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7049           LD="${LD-ld} -64"
7050         fi
7051         ;;
7052       esac
7053       ;;
7054     esac
7055   fi
7056   rm -rf conftest*
7057   ;;
7058 esac
7059
7060 need_locks="$enable_libtool_lock"
7061
7062 if test -n "$ac_tool_prefix"; then
7063   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}mt; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   if test -n "$MANIFEST_TOOL"; then
7071   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078     for ac_exec_ext in '' $ac_executable_extensions; do
7079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085   done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7091 if test -n "$MANIFEST_TOOL"; then
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7093 $as_echo "$MANIFEST_TOOL" >&6; }
7094 else
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7102   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7103   # Extract the first word of "mt", so it can be a program name with args.
7104 set dummy mt; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   if test -n "$ac_ct_MANIFEST_TOOL"; then
7111   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118     for ac_exec_ext in '' $ac_executable_extensions; do
7119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125   done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7131 if test -n "$ac_ct_MANIFEST_TOOL"; then
7132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7133 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7134 else
7135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137 fi
7138
7139   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7140     MANIFEST_TOOL=":"
7141   else
7142     case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7147 esac
7148     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7149   fi
7150 else
7151   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7152 fi
7153
7154 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7156 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7157 if ${lt_cv_path_mainfest_tool+:} false; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160   lt_cv_path_mainfest_tool=no
7161   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7162   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7163   cat conftest.err >&5
7164   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7165     lt_cv_path_mainfest_tool=yes
7166   fi
7167   rm -f conftest*
7168 fi
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7170 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7171 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7172   MANIFEST_TOOL=:
7173 fi
7174
7175
7176
7177
7178
7179
7180   case $host_os in
7181     rhapsody* | darwin*)
7182     if test -n "$ac_tool_prefix"; then
7183   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7184 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 $as_echo_n "checking for $ac_word... " >&6; }
7187 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7188   $as_echo_n "(cached) " >&6
7189 else
7190   if test -n "$DSYMUTIL"; then
7191   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198     for ac_exec_ext in '' $ac_executable_extensions; do
7199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205   done
7206 IFS=$as_save_IFS
7207
7208 fi
7209 fi
7210 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7211 if test -n "$DSYMUTIL"; then
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7213 $as_echo "$DSYMUTIL" >&6; }
7214 else
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7217 fi
7218
7219
7220 fi
7221 if test -z "$ac_cv_prog_DSYMUTIL"; then
7222   ac_ct_DSYMUTIL=$DSYMUTIL
7223   # Extract the first word of "dsymutil", so it can be a program name with args.
7224 set dummy dsymutil; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7228   $as_echo_n "(cached) " >&6
7229 else
7230   if test -n "$ac_ct_DSYMUTIL"; then
7231   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238     for ac_exec_ext in '' $ac_executable_extensions; do
7239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245   done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7251 if test -n "$ac_ct_DSYMUTIL"; then
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7253 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7254 else
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259   if test "x$ac_ct_DSYMUTIL" = x; then
7260     DSYMUTIL=":"
7261   else
7262     case $cross_compiling:$ac_tool_warned in
7263 yes:)
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266 ac_tool_warned=yes ;;
7267 esac
7268     DSYMUTIL=$ac_ct_DSYMUTIL
7269   fi
7270 else
7271   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7272 fi
7273
7274     if test -n "$ac_tool_prefix"; then
7275   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7276 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_NMEDIT+:} false; then :
7280   $as_echo_n "(cached) " >&6
7281 else
7282   if test -n "$NMEDIT"; then
7283   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288   IFS=$as_save_IFS
7289   test -z "$as_dir" && as_dir=.
7290     for ac_exec_ext in '' $ac_executable_extensions; do
7291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295   fi
7296 done
7297   done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 NMEDIT=$ac_cv_prog_NMEDIT
7303 if test -n "$NMEDIT"; then
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7305 $as_echo "$NMEDIT" >&6; }
7306 else
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7309 fi
7310
7311
7312 fi
7313 if test -z "$ac_cv_prog_NMEDIT"; then
7314   ac_ct_NMEDIT=$NMEDIT
7315   # Extract the first word of "nmedit", so it can be a program name with args.
7316 set dummy nmedit; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7320   $as_echo_n "(cached) " >&6
7321 else
7322   if test -n "$ac_ct_NMEDIT"; then
7323   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330     for ac_exec_ext in '' $ac_executable_extensions; do
7331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337   done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7343 if test -n "$ac_ct_NMEDIT"; then
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7345 $as_echo "$ac_ct_NMEDIT" >&6; }
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351   if test "x$ac_ct_NMEDIT" = x; then
7352     NMEDIT=":"
7353   else
7354     case $cross_compiling:$ac_tool_warned in
7355 yes:)
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358 ac_tool_warned=yes ;;
7359 esac
7360     NMEDIT=$ac_ct_NMEDIT
7361   fi
7362 else
7363   NMEDIT="$ac_cv_prog_NMEDIT"
7364 fi
7365
7366     if test -n "$ac_tool_prefix"; then
7367   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_prog_LIPO+:} false; then :
7372   $as_echo_n "(cached) " >&6
7373 else
7374   if test -n "$LIPO"; then
7375   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380   IFS=$as_save_IFS
7381   test -z "$as_dir" && as_dir=.
7382     for ac_exec_ext in '' $ac_executable_extensions; do
7383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386     break 2
7387   fi
7388 done
7389   done
7390 IFS=$as_save_IFS
7391
7392 fi
7393 fi
7394 LIPO=$ac_cv_prog_LIPO
7395 if test -n "$LIPO"; then
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7397 $as_echo "$LIPO" >&6; }
7398 else
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7401 fi
7402
7403
7404 fi
7405 if test -z "$ac_cv_prog_LIPO"; then
7406   ac_ct_LIPO=$LIPO
7407   # Extract the first word of "lipo", so it can be a program name with args.
7408 set dummy lipo; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414   if test -n "$ac_ct_LIPO"; then
7415   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422     for ac_exec_ext in '' $ac_executable_extensions; do
7423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424     ac_cv_prog_ac_ct_LIPO="lipo"
7425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429   done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7435 if test -n "$ac_ct_LIPO"; then
7436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7437 $as_echo "$ac_ct_LIPO" >&6; }
7438 else
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443   if test "x$ac_ct_LIPO" = x; then
7444     LIPO=":"
7445   else
7446     case $cross_compiling:$ac_tool_warned in
7447 yes:)
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450 ac_tool_warned=yes ;;
7451 esac
7452     LIPO=$ac_ct_LIPO
7453   fi
7454 else
7455   LIPO="$ac_cv_prog_LIPO"
7456 fi
7457
7458     if test -n "$ac_tool_prefix"; then
7459   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}otool; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_OTOOL+:} false; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466   if test -n "$OTOOL"; then
7467   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474     for ac_exec_ext in '' $ac_executable_extensions; do
7475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481   done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 OTOOL=$ac_cv_prog_OTOOL
7487 if test -n "$OTOOL"; then
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7489 $as_echo "$OTOOL" >&6; }
7490 else
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495
7496 fi
7497 if test -z "$ac_cv_prog_OTOOL"; then
7498   ac_ct_OTOOL=$OTOOL
7499   # Extract the first word of "otool", so it can be a program name with args.
7500 set dummy otool; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   if test -n "$ac_ct_OTOOL"; then
7507   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514     for ac_exec_ext in '' $ac_executable_extensions; do
7515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516     ac_cv_prog_ac_ct_OTOOL="otool"
7517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521   done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7527 if test -n "$ac_ct_OTOOL"; then
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7529 $as_echo "$ac_ct_OTOOL" >&6; }
7530 else
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535   if test "x$ac_ct_OTOOL" = x; then
7536     OTOOL=":"
7537   else
7538     case $cross_compiling:$ac_tool_warned in
7539 yes:)
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542 ac_tool_warned=yes ;;
7543 esac
7544     OTOOL=$ac_ct_OTOOL
7545   fi
7546 else
7547   OTOOL="$ac_cv_prog_OTOOL"
7548 fi
7549
7550     if test -n "$ac_tool_prefix"; then
7551   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if ${ac_cv_prog_OTOOL64+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   if test -n "$OTOOL64"; then
7559   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566     for ac_exec_ext in '' $ac_executable_extensions; do
7567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573   done
7574 IFS=$as_save_IFS
7575
7576 fi
7577 fi
7578 OTOOL64=$ac_cv_prog_OTOOL64
7579 if test -n "$OTOOL64"; then
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7581 $as_echo "$OTOOL64" >&6; }
7582 else
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7585 fi
7586
7587
7588 fi
7589 if test -z "$ac_cv_prog_OTOOL64"; then
7590   ac_ct_OTOOL64=$OTOOL64
7591   # Extract the first word of "otool64", so it can be a program name with args.
7592 set dummy otool64; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   if test -n "$ac_ct_OTOOL64"; then
7599   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606     for ac_exec_ext in '' $ac_executable_extensions; do
7607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608     ac_cv_prog_ac_ct_OTOOL64="otool64"
7609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613   done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7619 if test -n "$ac_ct_OTOOL64"; then
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7621 $as_echo "$ac_ct_OTOOL64" >&6; }
7622 else
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627   if test "x$ac_ct_OTOOL64" = x; then
7628     OTOOL64=":"
7629   else
7630     case $cross_compiling:$ac_tool_warned in
7631 yes:)
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634 ac_tool_warned=yes ;;
7635 esac
7636     OTOOL64=$ac_ct_OTOOL64
7637   fi
7638 else
7639   OTOOL64="$ac_cv_prog_OTOOL64"
7640 fi
7641
7642
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7669 $as_echo_n "checking for -single_module linker flag... " >&6; }
7670 if ${lt_cv_apple_cc_single_mod+:} false; then :
7671   $as_echo_n "(cached) " >&6
7672 else
7673   lt_cv_apple_cc_single_mod=no
7674       if test -z "${LT_MULTI_MODULE}"; then
7675         # By default we will add the -single_module flag. You can override
7676         # by either setting the environment variable LT_MULTI_MODULE
7677         # non-empty at configure time, or by adding -multi_module to the
7678         # link flags.
7679         rm -rf libconftest.dylib*
7680         echo "int foo(void){return 1;}" > conftest.c
7681         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7682 -dynamiclib -Wl,-single_module conftest.c" >&5
7683         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7685         _lt_result=$?
7686         # If there is a non-empty error log, and "single_module"
7687         # appears in it, assume the flag caused a linker warning
7688         if test -s conftest.err && $GREP single_module conftest.err; then
7689           cat conftest.err >&5
7690         # Otherwise, if the output was created with a 0 exit code from
7691         # the compiler, it worked.
7692         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7693           lt_cv_apple_cc_single_mod=yes
7694         else
7695           cat conftest.err >&5
7696         fi
7697         rm -rf libconftest.dylib*
7698         rm -f conftest.*
7699       fi
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7702 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7703
7704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7705 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7706 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   lt_cv_ld_exported_symbols_list=no
7710       save_LDFLAGS=$LDFLAGS
7711       echo "_main" > conftest.sym
7712       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7713       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h.  */
7715
7716 int
7717 main ()
7718 {
7719
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 if ac_fn_c_try_link "$LINENO"; then :
7725   lt_cv_ld_exported_symbols_list=yes
7726 else
7727   lt_cv_ld_exported_symbols_list=no
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext \
7730     conftest$ac_exeext conftest.$ac_ext
7731         LDFLAGS="$save_LDFLAGS"
7732
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7735 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7736
7737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7738 $as_echo_n "checking for -force_load linker flag... " >&6; }
7739 if ${lt_cv_ld_force_load+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   lt_cv_ld_force_load=no
7743       cat > conftest.c << _LT_EOF
7744 int forced_loaded() { return 2;}
7745 _LT_EOF
7746       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7747       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7748       echo "$AR cru libconftest.a conftest.o" >&5
7749       $AR cru libconftest.a conftest.o 2>&5
7750       echo "$RANLIB libconftest.a" >&5
7751       $RANLIB libconftest.a 2>&5
7752       cat > conftest.c << _LT_EOF
7753 int main() { return 0;}
7754 _LT_EOF
7755       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7756       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7757       _lt_result=$?
7758       if test -s conftest.err && $GREP force_load conftest.err; then
7759         cat conftest.err >&5
7760       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7761         lt_cv_ld_force_load=yes
7762       else
7763         cat conftest.err >&5
7764       fi
7765         rm -f conftest.err libconftest.a conftest conftest.c
7766         rm -rf conftest.dSYM
7767
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7770 $as_echo "$lt_cv_ld_force_load" >&6; }
7771     case $host_os in
7772     rhapsody* | darwin1.[012])
7773       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7774     darwin1.*)
7775       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7776     darwin*) # darwin 5.x on
7777       # if running on 10.5 or later, the deployment target defaults
7778       # to the OS version, if on x86, and 10.4, the deployment
7779       # target defaults to 10.4. Don't you love it?
7780       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7781         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7782           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7783         10.[012]*)
7784           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7785         10.*)
7786           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7787       esac
7788     ;;
7789   esac
7790     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7791       _lt_dar_single_mod='$single_module'
7792     fi
7793     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7794       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7795     else
7796       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7797     fi
7798     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7799       _lt_dsymutil='~$DSYMUTIL $lib || :'
7800     else
7801       _lt_dsymutil=
7802     fi
7803     ;;
7804   esac
7805
7806 ac_ext=c
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7813 # On Suns, sometimes $CPP names a directory.
7814 if test -n "$CPP" && test -d "$CPP"; then
7815   CPP=
7816 fi
7817 if test -z "$CPP"; then
7818   if ${ac_cv_prog_CPP+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821       # Double quotes because CPP needs to be expanded
7822     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7823     do
7824       ac_preproc_ok=false
7825 for ac_c_preproc_warn_flag in '' yes
7826 do
7827   # Use a header file that comes with gcc, so configuring glibc
7828   # with a fresh cross-compiler works.
7829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7830   # <limits.h> exists even on freestanding compilers.
7831   # On the NeXT, cc -E runs the code through the compiler's parser,
7832   # not just through cpp. "Syntax error" is here to catch this case.
7833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h.  */
7835 #ifdef __STDC__
7836 # include <limits.h>
7837 #else
7838 # include <assert.h>
7839 #endif
7840                      Syntax error
7841 _ACEOF
7842 if ac_fn_c_try_cpp "$LINENO"; then :
7843
7844 else
7845   # Broken: fails on valid input.
7846 continue
7847 fi
7848 rm -f conftest.err conftest.i conftest.$ac_ext
7849
7850   # OK, works on sane cases.  Now check whether nonexistent headers
7851   # can be detected and how.
7852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h.  */
7854 #include <ac_nonexistent.h>
7855 _ACEOF
7856 if ac_fn_c_try_cpp "$LINENO"; then :
7857   # Broken: success on invalid input.
7858 continue
7859 else
7860   # Passes both tests.
7861 ac_preproc_ok=:
7862 break
7863 fi
7864 rm -f conftest.err conftest.i conftest.$ac_ext
7865
7866 done
7867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7868 rm -f conftest.i conftest.err conftest.$ac_ext
7869 if $ac_preproc_ok; then :
7870   break
7871 fi
7872
7873     done
7874     ac_cv_prog_CPP=$CPP
7875
7876 fi
7877   CPP=$ac_cv_prog_CPP
7878 else
7879   ac_cv_prog_CPP=$CPP
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7882 $as_echo "$CPP" >&6; }
7883 ac_preproc_ok=false
7884 for ac_c_preproc_warn_flag in '' yes
7885 do
7886   # Use a header file that comes with gcc, so configuring glibc
7887   # with a fresh cross-compiler works.
7888   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889   # <limits.h> exists even on freestanding compilers.
7890   # On the NeXT, cc -E runs the code through the compiler's parser,
7891   # not just through cpp. "Syntax error" is here to catch this case.
7892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h.  */
7894 #ifdef __STDC__
7895 # include <limits.h>
7896 #else
7897 # include <assert.h>
7898 #endif
7899                      Syntax error
7900 _ACEOF
7901 if ac_fn_c_try_cpp "$LINENO"; then :
7902
7903 else
7904   # Broken: fails on valid input.
7905 continue
7906 fi
7907 rm -f conftest.err conftest.i conftest.$ac_ext
7908
7909   # OK, works on sane cases.  Now check whether nonexistent headers
7910   # can be detected and how.
7911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h.  */
7913 #include <ac_nonexistent.h>
7914 _ACEOF
7915 if ac_fn_c_try_cpp "$LINENO"; then :
7916   # Broken: success on invalid input.
7917 continue
7918 else
7919   # Passes both tests.
7920 ac_preproc_ok=:
7921 break
7922 fi
7923 rm -f conftest.err conftest.i conftest.$ac_ext
7924
7925 done
7926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7927 rm -f conftest.i conftest.err conftest.$ac_ext
7928 if $ac_preproc_ok; then :
7929
7930 else
7931   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7933 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7934 See \`config.log' for more details" "$LINENO" 5; }
7935 fi
7936
7937 ac_ext=c
7938 ac_cpp='$CPP $CPPFLAGS'
7939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7942
7943
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7945 $as_echo_n "checking for ANSI C header files... " >&6; }
7946 if ${ac_cv_header_stdc+:} false; then :
7947   $as_echo_n "(cached) " >&6
7948 else
7949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h.  */
7951 #include <stdlib.h>
7952 #include <stdarg.h>
7953 #include <string.h>
7954 #include <float.h>
7955
7956 int
7957 main ()
7958 {
7959
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 if ac_fn_c_try_compile "$LINENO"; then :
7965   ac_cv_header_stdc=yes
7966 else
7967   ac_cv_header_stdc=no
7968 fi
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970
7971 if test $ac_cv_header_stdc = yes; then
7972   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h.  */
7975 #include <string.h>
7976
7977 _ACEOF
7978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7979   $EGREP "memchr" >/dev/null 2>&1; then :
7980
7981 else
7982   ac_cv_header_stdc=no
7983 fi
7984 rm -f conftest*
7985
7986 fi
7987
7988 if test $ac_cv_header_stdc = yes; then
7989   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h.  */
7992 #include <stdlib.h>
7993
7994 _ACEOF
7995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7996   $EGREP "free" >/dev/null 2>&1; then :
7997
7998 else
7999   ac_cv_header_stdc=no
8000 fi
8001 rm -f conftest*
8002
8003 fi
8004
8005 if test $ac_cv_header_stdc = yes; then
8006   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8007   if test "$cross_compiling" = yes; then :
8008   :
8009 else
8010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012 #include <ctype.h>
8013 #include <stdlib.h>
8014 #if ((' ' & 0x0FF) == 0x020)
8015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8017 #else
8018 # define ISLOWER(c) \
8019                    (('a' <= (c) && (c) <= 'i') \
8020                      || ('j' <= (c) && (c) <= 'r') \
8021                      || ('s' <= (c) && (c) <= 'z'))
8022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8023 #endif
8024
8025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8026 int
8027 main ()
8028 {
8029   int i;
8030   for (i = 0; i < 256; i++)
8031     if (XOR (islower (i), ISLOWER (i))
8032         || toupper (i) != TOUPPER (i))
8033       return 2;
8034   return 0;
8035 }
8036 _ACEOF
8037 if ac_fn_c_try_run "$LINENO"; then :
8038
8039 else
8040   ac_cv_header_stdc=no
8041 fi
8042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8043   conftest.$ac_objext conftest.beam conftest.$ac_ext
8044 fi
8045
8046 fi
8047 fi
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8049 $as_echo "$ac_cv_header_stdc" >&6; }
8050 if test $ac_cv_header_stdc = yes; then
8051
8052 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8053
8054 fi
8055
8056 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8058                   inttypes.h stdint.h unistd.h
8059 do :
8060   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8062 "
8063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8064   cat >>confdefs.h <<_ACEOF
8065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8066 _ACEOF
8067
8068 fi
8069
8070 done
8071
8072
8073 for ac_header in dlfcn.h
8074 do :
8075   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8076 "
8077 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8078   cat >>confdefs.h <<_ACEOF
8079 #define HAVE_DLFCN_H 1
8080 _ACEOF
8081
8082 fi
8083
8084 done
8085
8086
8087
8088
8089
8090 # Set options
8091
8092
8093
8094         enable_dlopen=no
8095
8096
8097   enable_win32_dll=no
8098
8099
8100             # Check whether --enable-shared was given.
8101 if test "${enable_shared+set}" = set; then :
8102   enableval=$enable_shared; p=${PACKAGE-default}
8103     case $enableval in
8104     yes) enable_shared=yes ;;
8105     no) enable_shared=no ;;
8106     *)
8107       enable_shared=no
8108       # Look at the argument we got.  We use all the common list separators.
8109       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8110       for pkg in $enableval; do
8111         IFS="$lt_save_ifs"
8112         if test "X$pkg" = "X$p"; then
8113           enable_shared=yes
8114         fi
8115       done
8116       IFS="$lt_save_ifs"
8117       ;;
8118     esac
8119 else
8120   enable_shared=yes
8121 fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131   # Check whether --enable-static was given.
8132 if test "${enable_static+set}" = set; then :
8133   enableval=$enable_static; p=${PACKAGE-default}
8134     case $enableval in
8135     yes) enable_static=yes ;;
8136     no) enable_static=no ;;
8137     *)
8138      enable_static=no
8139       # Look at the argument we got.  We use all the common list separators.
8140       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8141       for pkg in $enableval; do
8142         IFS="$lt_save_ifs"
8143         if test "X$pkg" = "X$p"; then
8144           enable_static=yes
8145         fi
8146       done
8147       IFS="$lt_save_ifs"
8148       ;;
8149     esac
8150 else
8151   enable_static=yes
8152 fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163 # Check whether --with-pic was given.
8164 if test "${with_pic+set}" = set; then :
8165   withval=$with_pic; lt_p=${PACKAGE-default}
8166     case $withval in
8167     yes|no) pic_mode=$withval ;;
8168     *)
8169       pic_mode=default
8170       # Look at the argument we got.  We use all the common list separators.
8171       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8172       for lt_pkg in $withval; do
8173         IFS="$lt_save_ifs"
8174         if test "X$lt_pkg" = "X$lt_p"; then
8175           pic_mode=yes
8176         fi
8177       done
8178       IFS="$lt_save_ifs"
8179       ;;
8180     esac
8181 else
8182   pic_mode=default
8183 fi
8184
8185
8186 test -z "$pic_mode" && pic_mode=default
8187
8188
8189
8190
8191
8192
8193
8194   # Check whether --enable-fast-install was given.
8195 if test "${enable_fast_install+set}" = set; then :
8196   enableval=$enable_fast_install; p=${PACKAGE-default}
8197     case $enableval in
8198     yes) enable_fast_install=yes ;;
8199     no) enable_fast_install=no ;;
8200     *)
8201       enable_fast_install=no
8202       # Look at the argument we got.  We use all the common list separators.
8203       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8204       for pkg in $enableval; do
8205         IFS="$lt_save_ifs"
8206         if test "X$pkg" = "X$p"; then
8207           enable_fast_install=yes
8208         fi
8209       done
8210       IFS="$lt_save_ifs"
8211       ;;
8212     esac
8213 else
8214   enable_fast_install=yes
8215 fi
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227 # This can be used to rebuild libtool when needed
8228 LIBTOOL_DEPS="$ltmain"
8229
8230 # Always use our own libtool.
8231 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8232
8233
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 test -z "$LN_S" && LN_S="ln -s"
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277 if test -n "${ZSH_VERSION+set}" ; then
8278    setopt NO_GLOB_SUBST
8279 fi
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8282 $as_echo_n "checking for objdir... " >&6; }
8283 if ${lt_cv_objdir+:} false; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   rm -f .libs 2>/dev/null
8287 mkdir .libs 2>/dev/null
8288 if test -d .libs; then
8289   lt_cv_objdir=.libs
8290 else
8291   # MS-DOS does not allow filenames that begin with a dot.
8292   lt_cv_objdir=_libs
8293 fi
8294 rmdir .libs 2>/dev/null
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8297 $as_echo "$lt_cv_objdir" >&6; }
8298 objdir=$lt_cv_objdir
8299
8300
8301
8302
8303
8304 cat >>confdefs.h <<_ACEOF
8305 #define LT_OBJDIR "$lt_cv_objdir/"
8306 _ACEOF
8307
8308
8309
8310
8311 case $host_os in
8312 aix3*)
8313   # AIX sometimes has problems with the GCC collect2 program.  For some
8314   # reason, if we set the COLLECT_NAMES environment variable, the problems
8315   # vanish in a puff of smoke.
8316   if test "X${COLLECT_NAMES+set}" != Xset; then
8317     COLLECT_NAMES=
8318     export COLLECT_NAMES
8319   fi
8320   ;;
8321 esac
8322
8323 # Global variables:
8324 ofile=libtool
8325 can_build_shared=yes
8326
8327 # All known linkers require a `.a' archive for static linking (except MSVC,
8328 # which needs '.lib').
8329 libext=a
8330
8331 with_gnu_ld="$lt_cv_prog_gnu_ld"
8332
8333 old_CC="$CC"
8334 old_CFLAGS="$CFLAGS"
8335
8336 # Set sane defaults for various variables
8337 test -z "$CC" && CC=cc
8338 test -z "$LTCC" && LTCC=$CC
8339 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8340 test -z "$LD" && LD=ld
8341 test -z "$ac_objext" && ac_objext=o
8342
8343 for cc_temp in $compiler""; do
8344   case $cc_temp in
8345     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8346     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8347     \-*) ;;
8348     *) break;;
8349   esac
8350 done
8351 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8352
8353
8354 # Only perform the check for file, if the check method requires it
8355 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8356 case $deplibs_check_method in
8357 file_magic*)
8358   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8360 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8361 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8362   $as_echo_n "(cached) " >&6
8363 else
8364   case $MAGIC_CMD in
8365 [\\/*] |  ?:[\\/]*)
8366   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8367   ;;
8368 *)
8369   lt_save_MAGIC_CMD="$MAGIC_CMD"
8370   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8371   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8372   for ac_dir in $ac_dummy; do
8373     IFS="$lt_save_ifs"
8374     test -z "$ac_dir" && ac_dir=.
8375     if test -f $ac_dir/${ac_tool_prefix}file; then
8376       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8377       if test -n "$file_magic_test_file"; then
8378         case $deplibs_check_method in
8379         "file_magic "*)
8380           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8381           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8383             $EGREP "$file_magic_regex" > /dev/null; then
8384             :
8385           else
8386             cat <<_LT_EOF 1>&2
8387
8388 *** Warning: the command libtool uses to detect shared libraries,
8389 *** $file_magic_cmd, produces output that libtool cannot recognize.
8390 *** The result is that libtool may fail to recognize shared libraries
8391 *** as such.  This will affect the creation of libtool libraries that
8392 *** depend on shared libraries, but programs linked with such libtool
8393 *** libraries will work regardless of this problem.  Nevertheless, you
8394 *** may want to report the problem to your system manager and/or to
8395 *** bug-libtool@gnu.org
8396
8397 _LT_EOF
8398           fi ;;
8399         esac
8400       fi
8401       break
8402     fi
8403   done
8404   IFS="$lt_save_ifs"
8405   MAGIC_CMD="$lt_save_MAGIC_CMD"
8406   ;;
8407 esac
8408 fi
8409
8410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8411 if test -n "$MAGIC_CMD"; then
8412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8413 $as_echo "$MAGIC_CMD" >&6; }
8414 else
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418
8419
8420
8421
8422
8423 if test -z "$lt_cv_path_MAGIC_CMD"; then
8424   if test -n "$ac_tool_prefix"; then
8425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8426 $as_echo_n "checking for file... " >&6; }
8427 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8428   $as_echo_n "(cached) " >&6
8429 else
8430   case $MAGIC_CMD in
8431 [\\/*] |  ?:[\\/]*)
8432   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8433   ;;
8434 *)
8435   lt_save_MAGIC_CMD="$MAGIC_CMD"
8436   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8437   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8438   for ac_dir in $ac_dummy; do
8439     IFS="$lt_save_ifs"
8440     test -z "$ac_dir" && ac_dir=.
8441     if test -f $ac_dir/file; then
8442       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8443       if test -n "$file_magic_test_file"; then
8444         case $deplibs_check_method in
8445         "file_magic "*)
8446           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8447           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8448           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8449             $EGREP "$file_magic_regex" > /dev/null; then
8450             :
8451           else
8452             cat <<_LT_EOF 1>&2
8453
8454 *** Warning: the command libtool uses to detect shared libraries,
8455 *** $file_magic_cmd, produces output that libtool cannot recognize.
8456 *** The result is that libtool may fail to recognize shared libraries
8457 *** as such.  This will affect the creation of libtool libraries that
8458 *** depend on shared libraries, but programs linked with such libtool
8459 *** libraries will work regardless of this problem.  Nevertheless, you
8460 *** may want to report the problem to your system manager and/or to
8461 *** bug-libtool@gnu.org
8462
8463 _LT_EOF
8464           fi ;;
8465         esac
8466       fi
8467       break
8468     fi
8469   done
8470   IFS="$lt_save_ifs"
8471   MAGIC_CMD="$lt_save_MAGIC_CMD"
8472   ;;
8473 esac
8474 fi
8475
8476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8477 if test -n "$MAGIC_CMD"; then
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8479 $as_echo "$MAGIC_CMD" >&6; }
8480 else
8481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 fi
8484
8485
8486   else
8487     MAGIC_CMD=:
8488   fi
8489 fi
8490
8491   fi
8492   ;;
8493 esac
8494
8495 # Use C for the default configuration in the libtool script
8496
8497 lt_save_CC="$CC"
8498 ac_ext=c
8499 ac_cpp='$CPP $CPPFLAGS'
8500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8503
8504
8505 # Source file extension for C test sources.
8506 ac_ext=c
8507
8508 # Object file extension for compiled C test sources.
8509 objext=o
8510 objext=$objext
8511
8512 # Code to be used in simple compile tests
8513 lt_simple_compile_test_code="int some_variable = 0;"
8514
8515 # Code to be used in simple link tests
8516 lt_simple_link_test_code='int main(){return(0);}'
8517
8518
8519
8520
8521
8522
8523
8524 # If no C compiler was specified, use CC.
8525 LTCC=${LTCC-"$CC"}
8526
8527 # If no C compiler flags were specified, use CFLAGS.
8528 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8529
8530 # Allow CC to be a program name with arguments.
8531 compiler=$CC
8532
8533 # Save the default compiler, since it gets overwritten when the other
8534 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8535 compiler_DEFAULT=$CC
8536
8537 # save warnings/boilerplate of simple test code
8538 ac_outfile=conftest.$ac_objext
8539 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8540 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8541 _lt_compiler_boilerplate=`cat conftest.err`
8542 $RM conftest*
8543
8544 ac_outfile=conftest.$ac_objext
8545 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8546 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8547 _lt_linker_boilerplate=`cat conftest.err`
8548 $RM -r conftest*
8549
8550
8551 ## CAVEAT EMPTOR:
8552 ## There is no encapsulation within the following macros, do not change
8553 ## the running order or otherwise move them around unless you know exactly
8554 ## what you are doing...
8555 if test -n "$compiler"; then
8556
8557 lt_prog_compiler_no_builtin_flag=
8558
8559 if test "$GCC" = yes; then
8560   case $cc_basename in
8561   nvcc*)
8562     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8563   *)
8564     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8565   esac
8566
8567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8568 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8569 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8570   $as_echo_n "(cached) " >&6
8571 else
8572   lt_cv_prog_compiler_rtti_exceptions=no
8573    ac_outfile=conftest.$ac_objext
8574    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8575    lt_compiler_flag="-fno-rtti -fno-exceptions"
8576    # Insert the option either (1) after the last *FLAGS variable, or
8577    # (2) before a word containing "conftest.", or (3) at the end.
8578    # Note that $ac_compile itself does not contain backslashes and begins
8579    # with a dollar sign (not a hyphen), so the echo should work correctly.
8580    # The option is referenced via a variable to avoid confusing sed.
8581    lt_compile=`echo "$ac_compile" | $SED \
8582    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8583    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8584    -e 's:$: $lt_compiler_flag:'`
8585    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8586    (eval "$lt_compile" 2>conftest.err)
8587    ac_status=$?
8588    cat conftest.err >&5
8589    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590    if (exit $ac_status) && test -s "$ac_outfile"; then
8591      # The compiler can only warn and ignore the option if not recognized
8592      # So say no if there are warnings other than the usual output.
8593      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8594      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8595      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8596        lt_cv_prog_compiler_rtti_exceptions=yes
8597      fi
8598    fi
8599    $RM conftest*
8600
8601 fi
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8603 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8604
8605 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8606     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8607 else
8608     :
8609 fi
8610
8611 fi
8612
8613
8614
8615
8616
8617
8618   lt_prog_compiler_wl=
8619 lt_prog_compiler_pic=
8620 lt_prog_compiler_static=
8621
8622
8623   if test "$GCC" = yes; then
8624     lt_prog_compiler_wl='-Wl,'
8625     lt_prog_compiler_static='-static'
8626
8627     case $host_os in
8628       aix*)
8629       # All AIX code is PIC.
8630       if test "$host_cpu" = ia64; then
8631         # AIX 5 now supports IA64 processor
8632         lt_prog_compiler_static='-Bstatic'
8633       fi
8634       ;;
8635
8636     amigaos*)
8637       case $host_cpu in
8638       powerpc)
8639             # see comment about AmigaOS4 .so support
8640             lt_prog_compiler_pic='-fPIC'
8641         ;;
8642       m68k)
8643             # FIXME: we need at least 68020 code to build shared libraries, but
8644             # adding the `-m68020' flag to GCC prevents building anything better,
8645             # like `-m68040'.
8646             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8647         ;;
8648       esac
8649       ;;
8650
8651     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8652       # PIC is the default for these OSes.
8653       ;;
8654
8655     mingw* | cygwin* | pw32* | os2* | cegcc*)
8656       # This hack is so that the source file can tell whether it is being
8657       # built for inclusion in a dll (and should export symbols for example).
8658       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8659       # (--disable-auto-import) libraries
8660       lt_prog_compiler_pic='-DDLL_EXPORT'
8661       ;;
8662
8663     darwin* | rhapsody*)
8664       # PIC is the default on this platform
8665       # Common symbols not allowed in MH_DYLIB files
8666       lt_prog_compiler_pic='-fno-common'
8667       ;;
8668
8669     haiku*)
8670       # PIC is the default for Haiku.
8671       # The "-static" flag exists, but is broken.
8672       lt_prog_compiler_static=
8673       ;;
8674
8675     hpux*)
8676       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8677       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8678       # sets the default TLS model and affects inlining.
8679       case $host_cpu in
8680       hppa*64*)
8681         # +Z the default
8682         ;;
8683       *)
8684         lt_prog_compiler_pic='-fPIC'
8685         ;;
8686       esac
8687       ;;
8688
8689     interix[3-9]*)
8690       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8691       # Instead, we relocate shared libraries at runtime.
8692       ;;
8693
8694     msdosdjgpp*)
8695       # Just because we use GCC doesn't mean we suddenly get shared libraries
8696       # on systems that don't support them.
8697       lt_prog_compiler_can_build_shared=no
8698       enable_shared=no
8699       ;;
8700
8701     *nto* | *qnx*)
8702       # QNX uses GNU C++, but need to define -shared option too, otherwise
8703       # it will coredump.
8704       lt_prog_compiler_pic='-fPIC -shared'
8705       ;;
8706
8707     sysv4*MP*)
8708       if test -d /usr/nec; then
8709         lt_prog_compiler_pic=-Kconform_pic
8710       fi
8711       ;;
8712
8713     *)
8714       lt_prog_compiler_pic='-fPIC'
8715       ;;
8716     esac
8717
8718     case $cc_basename in
8719     nvcc*) # Cuda Compiler Driver 2.2
8720       lt_prog_compiler_wl='-Xlinker '
8721       if test -n "$lt_prog_compiler_pic"; then
8722         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8723       fi
8724       ;;
8725     esac
8726   else
8727     # PORTME Check for flag to pass linker flags through the system compiler.
8728     case $host_os in
8729     aix*)
8730       lt_prog_compiler_wl='-Wl,'
8731       if test "$host_cpu" = ia64; then
8732         # AIX 5 now supports IA64 processor
8733         lt_prog_compiler_static='-Bstatic'
8734       else
8735         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8736       fi
8737       ;;
8738
8739     mingw* | cygwin* | pw32* | os2* | cegcc*)
8740       # This hack is so that the source file can tell whether it is being
8741       # built for inclusion in a dll (and should export symbols for example).
8742       lt_prog_compiler_pic='-DDLL_EXPORT'
8743       ;;
8744
8745     hpux9* | hpux10* | hpux11*)
8746       lt_prog_compiler_wl='-Wl,'
8747       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8748       # not for PA HP-UX.
8749       case $host_cpu in
8750       hppa*64*|ia64*)
8751         # +Z the default
8752         ;;
8753       *)
8754         lt_prog_compiler_pic='+Z'
8755         ;;
8756       esac
8757       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8758       lt_prog_compiler_static='${wl}-a ${wl}archive'
8759       ;;
8760
8761     irix5* | irix6* | nonstopux*)
8762       lt_prog_compiler_wl='-Wl,'
8763       # PIC (with -KPIC) is the default.
8764       lt_prog_compiler_static='-non_shared'
8765       ;;
8766
8767     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8768       case $cc_basename in
8769       # old Intel for x86_64 which still supported -KPIC.
8770       ecc*)
8771         lt_prog_compiler_wl='-Wl,'
8772         lt_prog_compiler_pic='-KPIC'
8773         lt_prog_compiler_static='-static'
8774         ;;
8775       # icc used to be incompatible with GCC.
8776       # ICC 10 doesn't accept -KPIC any more.
8777       icc* | ifort*)
8778         lt_prog_compiler_wl='-Wl,'
8779         lt_prog_compiler_pic='-fPIC'
8780         lt_prog_compiler_static='-static'
8781         ;;
8782       # Lahey Fortran 8.1.
8783       lf95*)
8784         lt_prog_compiler_wl='-Wl,'
8785         lt_prog_compiler_pic='--shared'
8786         lt_prog_compiler_static='--static'
8787         ;;
8788       nagfor*)
8789         # NAG Fortran compiler
8790         lt_prog_compiler_wl='-Wl,-Wl,,'
8791         lt_prog_compiler_pic='-PIC'
8792         lt_prog_compiler_static='-Bstatic'
8793         ;;
8794       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8795         # Portland Group compilers (*not* the Pentium gcc compiler,
8796         # which looks to be a dead project)
8797         lt_prog_compiler_wl='-Wl,'
8798         lt_prog_compiler_pic='-fpic'
8799         lt_prog_compiler_static='-Bstatic'
8800         ;;
8801       ccc*)
8802         lt_prog_compiler_wl='-Wl,'
8803         # All Alpha code is PIC.
8804         lt_prog_compiler_static='-non_shared'
8805         ;;
8806       xl* | bgxl* | bgf* | mpixl*)
8807         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8808         lt_prog_compiler_wl='-Wl,'
8809         lt_prog_compiler_pic='-qpic'
8810         lt_prog_compiler_static='-qstaticlink'
8811         ;;
8812       *)
8813         case `$CC -V 2>&1 | sed 5q` in
8814         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8815           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8816           lt_prog_compiler_pic='-KPIC'
8817           lt_prog_compiler_static='-Bstatic'
8818           lt_prog_compiler_wl=''
8819           ;;
8820         *Sun\ F* | *Sun*Fortran*)
8821           lt_prog_compiler_pic='-KPIC'
8822           lt_prog_compiler_static='-Bstatic'
8823           lt_prog_compiler_wl='-Qoption ld '
8824           ;;
8825         *Sun\ C*)
8826           # Sun C 5.9
8827           lt_prog_compiler_pic='-KPIC'
8828           lt_prog_compiler_static='-Bstatic'
8829           lt_prog_compiler_wl='-Wl,'
8830           ;;
8831         *Intel*\ [CF]*Compiler*)
8832           lt_prog_compiler_wl='-Wl,'
8833           lt_prog_compiler_pic='-fPIC'
8834           lt_prog_compiler_static='-static'
8835           ;;
8836         *Portland\ Group*)
8837           lt_prog_compiler_wl='-Wl,'
8838           lt_prog_compiler_pic='-fpic'
8839           lt_prog_compiler_static='-Bstatic'
8840           ;;
8841         esac
8842         ;;
8843       esac
8844       ;;
8845
8846     newsos6)
8847       lt_prog_compiler_pic='-KPIC'
8848       lt_prog_compiler_static='-Bstatic'
8849       ;;
8850
8851     *nto* | *qnx*)
8852       # QNX uses GNU C++, but need to define -shared option too, otherwise
8853       # it will coredump.
8854       lt_prog_compiler_pic='-fPIC -shared'
8855       ;;
8856
8857     osf3* | osf4* | osf5*)
8858       lt_prog_compiler_wl='-Wl,'
8859       # All OSF/1 code is PIC.
8860       lt_prog_compiler_static='-non_shared'
8861       ;;
8862
8863     rdos*)
8864       lt_prog_compiler_static='-non_shared'
8865       ;;
8866
8867     solaris*)
8868       lt_prog_compiler_pic='-KPIC'
8869       lt_prog_compiler_static='-Bstatic'
8870       case $cc_basename in
8871       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8872         lt_prog_compiler_wl='-Qoption ld ';;
8873       *)
8874         lt_prog_compiler_wl='-Wl,';;
8875       esac
8876       ;;
8877
8878     sunos4*)
8879       lt_prog_compiler_wl='-Qoption ld '
8880       lt_prog_compiler_pic='-PIC'
8881       lt_prog_compiler_static='-Bstatic'
8882       ;;
8883
8884     sysv4 | sysv4.2uw2* | sysv4.3*)
8885       lt_prog_compiler_wl='-Wl,'
8886       lt_prog_compiler_pic='-KPIC'
8887       lt_prog_compiler_static='-Bstatic'
8888       ;;
8889
8890     sysv4*MP*)
8891       if test -d /usr/nec ;then
8892         lt_prog_compiler_pic='-Kconform_pic'
8893         lt_prog_compiler_static='-Bstatic'
8894       fi
8895       ;;
8896
8897     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8898       lt_prog_compiler_wl='-Wl,'
8899       lt_prog_compiler_pic='-KPIC'
8900       lt_prog_compiler_static='-Bstatic'
8901       ;;
8902
8903     unicos*)
8904       lt_prog_compiler_wl='-Wl,'
8905       lt_prog_compiler_can_build_shared=no
8906       ;;
8907
8908     uts4*)
8909       lt_prog_compiler_pic='-pic'
8910       lt_prog_compiler_static='-Bstatic'
8911       ;;
8912
8913     *)
8914       lt_prog_compiler_can_build_shared=no
8915       ;;
8916     esac
8917   fi
8918
8919 case $host_os in
8920   # For platforms which do not support PIC, -DPIC is meaningless:
8921   *djgpp*)
8922     lt_prog_compiler_pic=
8923     ;;
8924   *)
8925     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8926     ;;
8927 esac
8928
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8930 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8931 if ${lt_cv_prog_compiler_pic+:} false; then :
8932   $as_echo_n "(cached) " >&6
8933 else
8934   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8937 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8938 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8939
8940 #
8941 # Check to make sure the PIC flag actually works.
8942 #
8943 if test -n "$lt_prog_compiler_pic"; then
8944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8945 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8946 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8947   $as_echo_n "(cached) " >&6
8948 else
8949   lt_cv_prog_compiler_pic_works=no
8950    ac_outfile=conftest.$ac_objext
8951    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8952    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8953    # Insert the option either (1) after the last *FLAGS variable, or
8954    # (2) before a word containing "conftest.", or (3) at the end.
8955    # Note that $ac_compile itself does not contain backslashes and begins
8956    # with a dollar sign (not a hyphen), so the echo should work correctly.
8957    # The option is referenced via a variable to avoid confusing sed.
8958    lt_compile=`echo "$ac_compile" | $SED \
8959    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8960    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8961    -e 's:$: $lt_compiler_flag:'`
8962    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8963    (eval "$lt_compile" 2>conftest.err)
8964    ac_status=$?
8965    cat conftest.err >&5
8966    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967    if (exit $ac_status) && test -s "$ac_outfile"; then
8968      # The compiler can only warn and ignore the option if not recognized
8969      # So say no if there are warnings other than the usual output.
8970      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8971      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8972      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8973        lt_cv_prog_compiler_pic_works=yes
8974      fi
8975    fi
8976    $RM conftest*
8977
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8980 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8981
8982 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8983     case $lt_prog_compiler_pic in
8984      "" | " "*) ;;
8985      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8986      esac
8987 else
8988     lt_prog_compiler_pic=
8989      lt_prog_compiler_can_build_shared=no
8990 fi
8991
8992 fi
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004 #
9005 # Check to make sure the static flag actually works.
9006 #
9007 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9009 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9010 if ${lt_cv_prog_compiler_static_works+:} false; then :
9011   $as_echo_n "(cached) " >&6
9012 else
9013   lt_cv_prog_compiler_static_works=no
9014    save_LDFLAGS="$LDFLAGS"
9015    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9016    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9017    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9018      # The linker can only warn and ignore the option if not recognized
9019      # So say no if there are warnings
9020      if test -s conftest.err; then
9021        # Append any errors to the config.log.
9022        cat conftest.err 1>&5
9023        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9024        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9025        if diff conftest.exp conftest.er2 >/dev/null; then
9026          lt_cv_prog_compiler_static_works=yes
9027        fi
9028      else
9029        lt_cv_prog_compiler_static_works=yes
9030      fi
9031    fi
9032    $RM -r conftest*
9033    LDFLAGS="$save_LDFLAGS"
9034
9035 fi
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9037 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9038
9039 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9040     :
9041 else
9042     lt_prog_compiler_static=
9043 fi
9044
9045
9046
9047
9048
9049
9050
9051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9052 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9053 if ${lt_cv_prog_compiler_c_o+:} false; then :
9054   $as_echo_n "(cached) " >&6
9055 else
9056   lt_cv_prog_compiler_c_o=no
9057    $RM -r conftest 2>/dev/null
9058    mkdir conftest
9059    cd conftest
9060    mkdir out
9061    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9062
9063    lt_compiler_flag="-o out/conftest2.$ac_objext"
9064    # Insert the option either (1) after the last *FLAGS variable, or
9065    # (2) before a word containing "conftest.", or (3) at the end.
9066    # Note that $ac_compile itself does not contain backslashes and begins
9067    # with a dollar sign (not a hyphen), so the echo should work correctly.
9068    lt_compile=`echo "$ac_compile" | $SED \
9069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9071    -e 's:$: $lt_compiler_flag:'`
9072    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9073    (eval "$lt_compile" 2>out/conftest.err)
9074    ac_status=$?
9075    cat out/conftest.err >&5
9076    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9078    then
9079      # The compiler can only warn and ignore the option if not recognized
9080      # So say no if there are warnings
9081      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9082      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9083      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9084        lt_cv_prog_compiler_c_o=yes
9085      fi
9086    fi
9087    chmod u+w . 2>&5
9088    $RM conftest*
9089    # SGI C++ compiler will create directory out/ii_files/ for
9090    # template instantiation
9091    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9092    $RM out/* && rmdir out
9093    cd ..
9094    $RM -r conftest
9095    $RM conftest*
9096
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9099 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9100
9101
9102
9103
9104
9105
9106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9107 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9108 if ${lt_cv_prog_compiler_c_o+:} false; then :
9109   $as_echo_n "(cached) " >&6
9110 else
9111   lt_cv_prog_compiler_c_o=no
9112    $RM -r conftest 2>/dev/null
9113    mkdir conftest
9114    cd conftest
9115    mkdir out
9116    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117
9118    lt_compiler_flag="-o out/conftest2.$ac_objext"
9119    # Insert the option either (1) after the last *FLAGS variable, or
9120    # (2) before a word containing "conftest.", or (3) at the end.
9121    # Note that $ac_compile itself does not contain backslashes and begins
9122    # with a dollar sign (not a hyphen), so the echo should work correctly.
9123    lt_compile=`echo "$ac_compile" | $SED \
9124    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126    -e 's:$: $lt_compiler_flag:'`
9127    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9128    (eval "$lt_compile" 2>out/conftest.err)
9129    ac_status=$?
9130    cat out/conftest.err >&5
9131    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9133    then
9134      # The compiler can only warn and ignore the option if not recognized
9135      # So say no if there are warnings
9136      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9137      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9138      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9139        lt_cv_prog_compiler_c_o=yes
9140      fi
9141    fi
9142    chmod u+w . 2>&5
9143    $RM conftest*
9144    # SGI C++ compiler will create directory out/ii_files/ for
9145    # template instantiation
9146    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9147    $RM out/* && rmdir out
9148    cd ..
9149    $RM -r conftest
9150    $RM conftest*
9151
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9154 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9155
9156
9157
9158
9159 hard_links="nottested"
9160 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9161   # do not overwrite the value of need_locks provided by the user
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9163 $as_echo_n "checking if we can lock with hard links... " >&6; }
9164   hard_links=yes
9165   $RM conftest*
9166   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9167   touch conftest.a
9168   ln conftest.a conftest.b 2>&5 || hard_links=no
9169   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9171 $as_echo "$hard_links" >&6; }
9172   if test "$hard_links" = no; then
9173     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9174 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9175     need_locks=warn
9176   fi
9177 else
9178   need_locks=no
9179 fi
9180
9181
9182
9183
9184
9185
9186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9187 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9188
9189   runpath_var=
9190   allow_undefined_flag=
9191   always_export_symbols=no
9192   archive_cmds=
9193   archive_expsym_cmds=
9194   compiler_needs_object=no
9195   enable_shared_with_static_runtimes=no
9196   export_dynamic_flag_spec=
9197   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9198   hardcode_automatic=no
9199   hardcode_direct=no
9200   hardcode_direct_absolute=no
9201   hardcode_libdir_flag_spec=
9202   hardcode_libdir_separator=
9203   hardcode_minus_L=no
9204   hardcode_shlibpath_var=unsupported
9205   inherit_rpath=no
9206   link_all_deplibs=unknown
9207   module_cmds=
9208   module_expsym_cmds=
9209   old_archive_from_new_cmds=
9210   old_archive_from_expsyms_cmds=
9211   thread_safe_flag_spec=
9212   whole_archive_flag_spec=
9213   # include_expsyms should be a list of space-separated symbols to be *always*
9214   # included in the symbol list
9215   include_expsyms=
9216   # exclude_expsyms can be an extended regexp of symbols to exclude
9217   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9218   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9219   # as well as any symbol that contains `d'.
9220   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9221   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9222   # platforms (ab)use it in PIC code, but their linkers get confused if
9223   # the symbol is explicitly referenced.  Since portable code cannot
9224   # rely on this symbol name, it's probably fine to never include it in
9225   # preloaded symbol tables.
9226   # Exclude shared library initialization/finalization symbols.
9227   extract_expsyms_cmds=
9228
9229   case $host_os in
9230   cygwin* | mingw* | pw32* | cegcc*)
9231     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9232     # When not using gcc, we currently assume that we are using
9233     # Microsoft Visual C++.
9234     if test "$GCC" != yes; then
9235       with_gnu_ld=no
9236     fi
9237     ;;
9238   interix*)
9239     # we just hope/assume this is gcc and not c89 (= MSVC++)
9240     with_gnu_ld=yes
9241     ;;
9242   openbsd*)
9243     with_gnu_ld=no
9244     ;;
9245   esac
9246
9247   ld_shlibs=yes
9248
9249   # On some targets, GNU ld is compatible enough with the native linker
9250   # that we're better off using the native interface for both.
9251   lt_use_gnu_ld_interface=no
9252   if test "$with_gnu_ld" = yes; then
9253     case $host_os in
9254       aix*)
9255         # The AIX port of GNU ld has always aspired to compatibility
9256         # with the native linker.  However, as the warning in the GNU ld
9257         # block says, versions before 2.19.5* couldn't really create working
9258         # shared libraries, regardless of the interface used.
9259         case `$LD -v 2>&1` in
9260           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9261           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9262           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9263           *)
9264             lt_use_gnu_ld_interface=yes
9265             ;;
9266         esac
9267         ;;
9268       *)
9269         lt_use_gnu_ld_interface=yes
9270         ;;
9271     esac
9272   fi
9273
9274   if test "$lt_use_gnu_ld_interface" = yes; then
9275     # If archive_cmds runs LD, not CC, wlarc should be empty
9276     wlarc='${wl}'
9277
9278     # Set some defaults for GNU ld with shared library support. These
9279     # are reset later if shared libraries are not supported. Putting them
9280     # here allows them to be overridden if necessary.
9281     runpath_var=LD_RUN_PATH
9282     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9283     export_dynamic_flag_spec='${wl}--export-dynamic'
9284     # ancient GNU ld didn't support --whole-archive et. al.
9285     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9286       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9287     else
9288       whole_archive_flag_spec=
9289     fi
9290     supports_anon_versioning=no
9291     case `$LD -v 2>&1` in
9292       *GNU\ gold*) supports_anon_versioning=yes ;;
9293       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9294       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9295       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9296       *\ 2.11.*) ;; # other 2.11 versions
9297       *) supports_anon_versioning=yes ;;
9298     esac
9299
9300     # See if GNU ld supports shared libraries.
9301     case $host_os in
9302     aix[3-9]*)
9303       # On AIX/PPC, the GNU linker is very broken
9304       if test "$host_cpu" != ia64; then
9305         ld_shlibs=no
9306         cat <<_LT_EOF 1>&2
9307
9308 *** Warning: the GNU linker, at least up to release 2.19, is reported
9309 *** to be unable to reliably create shared libraries on AIX.
9310 *** Therefore, libtool is disabling shared libraries support.  If you
9311 *** really care for shared libraries, you may want to install binutils
9312 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9313 *** You will then need to restart the configuration process.
9314
9315 _LT_EOF
9316       fi
9317       ;;
9318
9319     amigaos*)
9320       case $host_cpu in
9321       powerpc)
9322             # see comment about AmigaOS4 .so support
9323             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324             archive_expsym_cmds=''
9325         ;;
9326       m68k)
9327             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)'
9328             hardcode_libdir_flag_spec='-L$libdir'
9329             hardcode_minus_L=yes
9330         ;;
9331       esac
9332       ;;
9333
9334     beos*)
9335       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9336         allow_undefined_flag=unsupported
9337         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9338         # support --undefined.  This deserves some investigation.  FIXME
9339         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340       else
9341         ld_shlibs=no
9342       fi
9343       ;;
9344
9345     cygwin* | mingw* | pw32* | cegcc*)
9346       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9347       # as there is no search path for DLLs.
9348       hardcode_libdir_flag_spec='-L$libdir'
9349       export_dynamic_flag_spec='${wl}--export-all-symbols'
9350       allow_undefined_flag=unsupported
9351       always_export_symbols=no
9352       enable_shared_with_static_runtimes=yes
9353       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'
9354       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9355
9356       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9357         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9358         # If the export-symbols file already is a .def file (1st line
9359         # is EXPORTS), use it as is; otherwise, prepend...
9360         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9361           cp $export_symbols $output_objdir/$soname.def;
9362         else
9363           echo EXPORTS > $output_objdir/$soname.def;
9364           cat $export_symbols >> $output_objdir/$soname.def;
9365         fi~
9366         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9367       else
9368         ld_shlibs=no
9369       fi
9370       ;;
9371
9372     haiku*)
9373       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374       link_all_deplibs=yes
9375       ;;
9376
9377     interix[3-9]*)
9378       hardcode_direct=no
9379       hardcode_shlibpath_var=no
9380       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9381       export_dynamic_flag_spec='${wl}-E'
9382       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9383       # Instead, shared libraries are loaded at an image base (0x10000000 by
9384       # default) and relocated if they conflict, which is a slow very memory
9385       # consuming and fragmenting process.  To avoid this, we pick a random,
9386       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9387       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9388       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9389       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'
9390       ;;
9391
9392     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9393       tmp_diet=no
9394       if test "$host_os" = linux-dietlibc; then
9395         case $cc_basename in
9396           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9397         esac
9398       fi
9399       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9400          && test "$tmp_diet" = no
9401       then
9402         tmp_addflag=' $pic_flag'
9403         tmp_sharedflag='-shared'
9404         case $cc_basename,$host_cpu in
9405         pgcc*)                          # Portland Group C compiler
9406           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'
9407           tmp_addflag=' $pic_flag'
9408           ;;
9409         pgf77* | pgf90* | pgf95* | pgfortran*)
9410                                         # Portland Group f77 and f90 compilers
9411           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'
9412           tmp_addflag=' $pic_flag -Mnomain' ;;
9413         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9414           tmp_addflag=' -i_dynamic' ;;
9415         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9416           tmp_addflag=' -i_dynamic -nofor_main' ;;
9417         ifc* | ifort*)                  # Intel Fortran compiler
9418           tmp_addflag=' -nofor_main' ;;
9419         lf95*)                          # Lahey Fortran 8.1
9420           whole_archive_flag_spec=
9421           tmp_sharedflag='--shared' ;;
9422         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9423           tmp_sharedflag='-qmkshrobj'
9424           tmp_addflag= ;;
9425         nvcc*)  # Cuda Compiler Driver 2.2
9426           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'
9427           compiler_needs_object=yes
9428           ;;
9429         esac
9430         case `$CC -V 2>&1 | sed 5q` in
9431         *Sun\ C*)                       # Sun C 5.9
9432           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'
9433           compiler_needs_object=yes
9434           tmp_sharedflag='-G' ;;
9435         *Sun\ F*)                       # Sun Fortran 8.3
9436           tmp_sharedflag='-G' ;;
9437         esac
9438         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439
9440         if test "x$supports_anon_versioning" = xyes; then
9441           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9442             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9443             echo "local: *; };" >> $output_objdir/$libname.ver~
9444             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9445         fi
9446
9447         case $cc_basename in
9448         xlf* | bgf* | bgxlf* | mpixlf*)
9449           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9450           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9451           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9452           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9453           if test "x$supports_anon_versioning" = xyes; then
9454             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9455               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9456               echo "local: *; };" >> $output_objdir/$libname.ver~
9457               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9458           fi
9459           ;;
9460         esac
9461       else
9462         ld_shlibs=no
9463       fi
9464       ;;
9465
9466     netbsd*)
9467       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9468         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9469         wlarc=
9470       else
9471         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9472         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9473       fi
9474       ;;
9475
9476     solaris*)
9477       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9478         ld_shlibs=no
9479         cat <<_LT_EOF 1>&2
9480
9481 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9482 *** create shared libraries on Solaris systems.  Therefore, libtool
9483 *** is disabling shared libraries support.  We urge you to upgrade GNU
9484 *** binutils to release 2.9.1 or newer.  Another option is to modify
9485 *** your PATH or compiler configuration so that the native linker is
9486 *** used, and then restart.
9487
9488 _LT_EOF
9489       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9490         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9492       else
9493         ld_shlibs=no
9494       fi
9495       ;;
9496
9497     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9498       case `$LD -v 2>&1` in
9499         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9500         ld_shlibs=no
9501         cat <<_LT_EOF 1>&2
9502
9503 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9504 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9505 *** is disabling shared libraries support.  We urge you to upgrade GNU
9506 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9507 *** your PATH or compiler configuration so that the native linker is
9508 *** used, and then restart.
9509
9510 _LT_EOF
9511         ;;
9512         *)
9513           # For security reasons, it is highly recommended that you always
9514           # use absolute paths for naming shared libraries, and exclude the
9515           # DT_RUNPATH tag from executables and libraries.  But doing so
9516           # requires that you compile everything twice, which is a pain.
9517           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9518             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9519             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9521           else
9522             ld_shlibs=no
9523           fi
9524         ;;
9525       esac
9526       ;;
9527
9528     sunos4*)
9529       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9530       wlarc=
9531       hardcode_direct=yes
9532       hardcode_shlibpath_var=no
9533       ;;
9534
9535     *)
9536       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9537         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9539       else
9540         ld_shlibs=no
9541       fi
9542       ;;
9543     esac
9544
9545     if test "$ld_shlibs" = no; then
9546       runpath_var=
9547       hardcode_libdir_flag_spec=
9548       export_dynamic_flag_spec=
9549       whole_archive_flag_spec=
9550     fi
9551   else
9552     # PORTME fill in a description of your system's linker (not GNU ld)
9553     case $host_os in
9554     aix3*)
9555       allow_undefined_flag=unsupported
9556       always_export_symbols=yes
9557       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'
9558       # Note: this linker hardcodes the directories in LIBPATH if there
9559       # are no directories specified by -L.
9560       hardcode_minus_L=yes
9561       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9562         # Neither direct hardcoding nor static linking is supported with a
9563         # broken collect2.
9564         hardcode_direct=unsupported
9565       fi
9566       ;;
9567
9568     aix[4-9]*)
9569       if test "$host_cpu" = ia64; then
9570         # On IA64, the linker does run time linking by default, so we don't
9571         # have to do anything special.
9572         aix_use_runtimelinking=no
9573         exp_sym_flag='-Bexport'
9574         no_entry_flag=""
9575       else
9576         # If we're using GNU nm, then we don't want the "-C" option.
9577         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9578         # Also, AIX nm treats weak defined symbols like other global
9579         # defined symbols, whereas GNU nm marks them as "W".
9580         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9581           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'
9582         else
9583           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'
9584         fi
9585         aix_use_runtimelinking=no
9586
9587         # Test if we are trying to use run time linking or normal
9588         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9589         # need to do runtime linking.
9590         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9591           for ld_flag in $LDFLAGS; do
9592           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9593             aix_use_runtimelinking=yes
9594             break
9595           fi
9596           done
9597           ;;
9598         esac
9599
9600         exp_sym_flag='-bexport'
9601         no_entry_flag='-bnoentry'
9602       fi
9603
9604       # When large executables or shared objects are built, AIX ld can
9605       # have problems creating the table of contents.  If linking a library
9606       # or program results in "error TOC overflow" add -mminimal-toc to
9607       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9608       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9609
9610       archive_cmds=''
9611       hardcode_direct=yes
9612       hardcode_direct_absolute=yes
9613       hardcode_libdir_separator=':'
9614       link_all_deplibs=yes
9615       file_list_spec='${wl}-f,'
9616
9617       if test "$GCC" = yes; then
9618         case $host_os in aix4.[012]|aix4.[012].*)
9619         # We only want to do this on AIX 4.2 and lower, the check
9620         # below for broken collect2 doesn't work under 4.3+
9621           collect2name=`${CC} -print-prog-name=collect2`
9622           if test -f "$collect2name" &&
9623            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9624           then
9625           # We have reworked collect2
9626           :
9627           else
9628           # We have old collect2
9629           hardcode_direct=unsupported
9630           # It fails to find uninstalled libraries when the uninstalled
9631           # path is not listed in the libpath.  Setting hardcode_minus_L
9632           # to unsupported forces relinking
9633           hardcode_minus_L=yes
9634           hardcode_libdir_flag_spec='-L$libdir'
9635           hardcode_libdir_separator=
9636           fi
9637           ;;
9638         esac
9639         shared_flag='-shared'
9640         if test "$aix_use_runtimelinking" = yes; then
9641           shared_flag="$shared_flag "'${wl}-G'
9642         fi
9643       else
9644         # not using gcc
9645         if test "$host_cpu" = ia64; then
9646         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9647         # chokes on -Wl,-G. The following line is correct:
9648           shared_flag='-G'
9649         else
9650           if test "$aix_use_runtimelinking" = yes; then
9651             shared_flag='${wl}-G'
9652           else
9653             shared_flag='${wl}-bM:SRE'
9654           fi
9655         fi
9656       fi
9657
9658       export_dynamic_flag_spec='${wl}-bexpall'
9659       # It seems that -bexpall does not export symbols beginning with
9660       # underscore (_), so it is better to generate a list of symbols to export.
9661       always_export_symbols=yes
9662       if test "$aix_use_runtimelinking" = yes; then
9663         # Warning - without using the other runtime loading flags (-brtl),
9664         # -berok will link without error, but may produce a broken library.
9665         allow_undefined_flag='-berok'
9666         # Determine the default libpath from the value encoded in an
9667         # empty executable.
9668         if test "${lt_cv_aix_libpath+set}" = set; then
9669   aix_libpath=$lt_cv_aix_libpath
9670 else
9671   if ${lt_cv_aix_libpath_+:} false; then :
9672   $as_echo_n "(cached) " >&6
9673 else
9674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h.  */
9676
9677 int
9678 main ()
9679 {
9680
9681   ;
9682   return 0;
9683 }
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"; then :
9686
9687   lt_aix_libpath_sed='
9688       /Import File Strings/,/^$/ {
9689           /^0/ {
9690               s/^0  *\([^ ]*\) *$/\1/
9691               p
9692           }
9693       }'
9694   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9695   # Check for a 64-bit object if we didn't find anything.
9696   if test -z "$lt_cv_aix_libpath_"; then
9697     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9698   fi
9699 fi
9700 rm -f core conftest.err conftest.$ac_objext \
9701     conftest$ac_exeext conftest.$ac_ext
9702   if test -z "$lt_cv_aix_libpath_"; then
9703     lt_cv_aix_libpath_="/usr/lib:/lib"
9704   fi
9705
9706 fi
9707
9708   aix_libpath=$lt_cv_aix_libpath_
9709 fi
9710
9711         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9712         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"
9713       else
9714         if test "$host_cpu" = ia64; then
9715           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9716           allow_undefined_flag="-z nodefs"
9717           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"
9718         else
9719          # Determine the default libpath from the value encoded in an
9720          # empty executable.
9721          if test "${lt_cv_aix_libpath+set}" = set; then
9722   aix_libpath=$lt_cv_aix_libpath
9723 else
9724   if ${lt_cv_aix_libpath_+:} false; then :
9725   $as_echo_n "(cached) " >&6
9726 else
9727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h.  */
9729
9730 int
9731 main ()
9732 {
9733
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739
9740   lt_aix_libpath_sed='
9741       /Import File Strings/,/^$/ {
9742           /^0/ {
9743               s/^0  *\([^ ]*\) *$/\1/
9744               p
9745           }
9746       }'
9747   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748   # Check for a 64-bit object if we didn't find anything.
9749   if test -z "$lt_cv_aix_libpath_"; then
9750     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751   fi
9752 fi
9753 rm -f core conftest.err conftest.$ac_objext \
9754     conftest$ac_exeext conftest.$ac_ext
9755   if test -z "$lt_cv_aix_libpath_"; then
9756     lt_cv_aix_libpath_="/usr/lib:/lib"
9757   fi
9758
9759 fi
9760
9761   aix_libpath=$lt_cv_aix_libpath_
9762 fi
9763
9764          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9765           # Warning - without using the other run time loading flags,
9766           # -berok will link without error, but may produce a broken library.
9767           no_undefined_flag=' ${wl}-bernotok'
9768           allow_undefined_flag=' ${wl}-berok'
9769           if test "$with_gnu_ld" = yes; then
9770             # We only use this code for GNU lds that support --whole-archive.
9771             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9772           else
9773             # Exported symbols can be pulled into shared objects from archives
9774             whole_archive_flag_spec='$convenience'
9775           fi
9776           archive_cmds_need_lc=yes
9777           # This is similar to how AIX traditionally builds its shared libraries.
9778           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'
9779         fi
9780       fi
9781       ;;
9782
9783     amigaos*)
9784       case $host_cpu in
9785       powerpc)
9786             # see comment about AmigaOS4 .so support
9787             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9788             archive_expsym_cmds=''
9789         ;;
9790       m68k)
9791             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)'
9792             hardcode_libdir_flag_spec='-L$libdir'
9793             hardcode_minus_L=yes
9794         ;;
9795       esac
9796       ;;
9797
9798     bsdi[45]*)
9799       export_dynamic_flag_spec=-rdynamic
9800       ;;
9801
9802     cygwin* | mingw* | pw32* | cegcc*)
9803       # When not using gcc, we currently assume that we are using
9804       # Microsoft Visual C++.
9805       # hardcode_libdir_flag_spec is actually meaningless, as there is
9806       # no search path for DLLs.
9807       case $cc_basename in
9808       cl*)
9809         # Native MSVC
9810         hardcode_libdir_flag_spec=' '
9811         allow_undefined_flag=unsupported
9812         always_export_symbols=yes
9813         file_list_spec='@'
9814         # Tell ltmain to make .lib files, not .a files.
9815         libext=lib
9816         # Tell ltmain to make .dll files, not .so files.
9817         shrext_cmds=".dll"
9818         # FIXME: Setting linknames here is a bad hack.
9819         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9820         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9821             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9822           else
9823             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9824           fi~
9825           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9826           linknames='
9827         # The linker will not automatically build a static lib if we build a DLL.
9828         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9829         enable_shared_with_static_runtimes=yes
9830         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9831         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9832         # Don't use ranlib
9833         old_postinstall_cmds='chmod 644 $oldlib'
9834         postlink_cmds='lt_outputfile="@OUTPUT@"~
9835           lt_tool_outputfile="@TOOL_OUTPUT@"~
9836           case $lt_outputfile in
9837             *.exe|*.EXE) ;;
9838             *)
9839               lt_outputfile="$lt_outputfile.exe"
9840               lt_tool_outputfile="$lt_tool_outputfile.exe"
9841               ;;
9842           esac~
9843           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9844             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9845             $RM "$lt_outputfile.manifest";
9846           fi'
9847         ;;
9848       *)
9849         # Assume MSVC wrapper
9850         hardcode_libdir_flag_spec=' '
9851         allow_undefined_flag=unsupported
9852         # Tell ltmain to make .lib files, not .a files.
9853         libext=lib
9854         # Tell ltmain to make .dll files, not .so files.
9855         shrext_cmds=".dll"
9856         # FIXME: Setting linknames here is a bad hack.
9857         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9858         # The linker will automatically build a .lib file if we build a DLL.
9859         old_archive_from_new_cmds='true'
9860         # FIXME: Should let the user specify the lib program.
9861         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9862         enable_shared_with_static_runtimes=yes
9863         ;;
9864       esac
9865       ;;
9866
9867     darwin* | rhapsody*)
9868
9869
9870   archive_cmds_need_lc=no
9871   hardcode_direct=no
9872   hardcode_automatic=yes
9873   hardcode_shlibpath_var=unsupported
9874   if test "$lt_cv_ld_force_load" = "yes"; then
9875     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\"`'
9876
9877   else
9878     whole_archive_flag_spec=''
9879   fi
9880   link_all_deplibs=yes
9881   allow_undefined_flag="$_lt_dar_allow_undefined"
9882   case $cc_basename in
9883      ifort*) _lt_dar_can_shared=yes ;;
9884      *) _lt_dar_can_shared=$GCC ;;
9885   esac
9886   if test "$_lt_dar_can_shared" = "yes"; then
9887     output_verbose_link_cmd=func_echo_all
9888     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9889     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9890     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}"
9891     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}"
9892
9893   else
9894   ld_shlibs=no
9895   fi
9896
9897       ;;
9898
9899     dgux*)
9900       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901       hardcode_libdir_flag_spec='-L$libdir'
9902       hardcode_shlibpath_var=no
9903       ;;
9904
9905     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9906     # support.  Future versions do this automatically, but an explicit c++rt0.o
9907     # does not break anything, and helps significantly (at the cost of a little
9908     # extra space).
9909     freebsd2.2*)
9910       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9911       hardcode_libdir_flag_spec='-R$libdir'
9912       hardcode_direct=yes
9913       hardcode_shlibpath_var=no
9914       ;;
9915
9916     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9917     freebsd2.*)
9918       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9919       hardcode_direct=yes
9920       hardcode_minus_L=yes
9921       hardcode_shlibpath_var=no
9922       ;;
9923
9924     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9925     freebsd* | dragonfly*)
9926       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927       hardcode_libdir_flag_spec='-R$libdir'
9928       hardcode_direct=yes
9929       hardcode_shlibpath_var=no
9930       ;;
9931
9932     hpux9*)
9933       if test "$GCC" = yes; then
9934         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'
9935       else
9936         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'
9937       fi
9938       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9939       hardcode_libdir_separator=:
9940       hardcode_direct=yes
9941
9942       # hardcode_minus_L: Not really in the search PATH,
9943       # but as the default location of the library.
9944       hardcode_minus_L=yes
9945       export_dynamic_flag_spec='${wl}-E'
9946       ;;
9947
9948     hpux10*)
9949       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9950         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9951       else
9952         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9953       fi
9954       if test "$with_gnu_ld" = no; then
9955         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9956         hardcode_libdir_separator=:
9957         hardcode_direct=yes
9958         hardcode_direct_absolute=yes
9959         export_dynamic_flag_spec='${wl}-E'
9960         # hardcode_minus_L: Not really in the search PATH,
9961         # but as the default location of the library.
9962         hardcode_minus_L=yes
9963       fi
9964       ;;
9965
9966     hpux11*)
9967       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9968         case $host_cpu in
9969         hppa*64*)
9970           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9971           ;;
9972         ia64*)
9973           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9974           ;;
9975         *)
9976           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9977           ;;
9978         esac
9979       else
9980         case $host_cpu in
9981         hppa*64*)
9982           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9983           ;;
9984         ia64*)
9985           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9986           ;;
9987         *)
9988
9989           # Older versions of the 11.00 compiler do not understand -b yet
9990           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9991           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9992 $as_echo_n "checking if $CC understands -b... " >&6; }
9993 if ${lt_cv_prog_compiler__b+:} false; then :
9994   $as_echo_n "(cached) " >&6
9995 else
9996   lt_cv_prog_compiler__b=no
9997    save_LDFLAGS="$LDFLAGS"
9998    LDFLAGS="$LDFLAGS -b"
9999    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10000    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10001      # The linker can only warn and ignore the option if not recognized
10002      # So say no if there are warnings
10003      if test -s conftest.err; then
10004        # Append any errors to the config.log.
10005        cat conftest.err 1>&5
10006        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10007        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10008        if diff conftest.exp conftest.er2 >/dev/null; then
10009          lt_cv_prog_compiler__b=yes
10010        fi
10011      else
10012        lt_cv_prog_compiler__b=yes
10013      fi
10014    fi
10015    $RM -r conftest*
10016    LDFLAGS="$save_LDFLAGS"
10017
10018 fi
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10020 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10021
10022 if test x"$lt_cv_prog_compiler__b" = xyes; then
10023     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10024 else
10025     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10026 fi
10027
10028           ;;
10029         esac
10030       fi
10031       if test "$with_gnu_ld" = no; then
10032         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10033         hardcode_libdir_separator=:
10034
10035         case $host_cpu in
10036         hppa*64*|ia64*)
10037           hardcode_direct=no
10038           hardcode_shlibpath_var=no
10039           ;;
10040         *)
10041           hardcode_direct=yes
10042           hardcode_direct_absolute=yes
10043           export_dynamic_flag_spec='${wl}-E'
10044
10045           # hardcode_minus_L: Not really in the search PATH,
10046           # but as the default location of the library.
10047           hardcode_minus_L=yes
10048           ;;
10049         esac
10050       fi
10051       ;;
10052
10053     irix5* | irix6* | nonstopux*)
10054       if test "$GCC" = yes; then
10055         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'
10056         # Try to use the -exported_symbol ld option, if it does not
10057         # work, assume that -exports_file does not work either and
10058         # implicitly export all symbols.
10059         # This should be the same for all languages, so no per-tag cache variable.
10060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10061 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10062 if ${lt_cv_irix_exported_symbol+:} false; then :
10063   $as_echo_n "(cached) " >&6
10064 else
10065   save_LDFLAGS="$LDFLAGS"
10066            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10067            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h.  */
10069 int foo (void) { return 0; }
10070 _ACEOF
10071 if ac_fn_c_try_link "$LINENO"; then :
10072   lt_cv_irix_exported_symbol=yes
10073 else
10074   lt_cv_irix_exported_symbol=no
10075 fi
10076 rm -f core conftest.err conftest.$ac_objext \
10077     conftest$ac_exeext conftest.$ac_ext
10078            LDFLAGS="$save_LDFLAGS"
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10081 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10082         if test "$lt_cv_irix_exported_symbol" = yes; then
10083           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'
10084         fi
10085       else
10086         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'
10087         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'
10088       fi
10089       archive_cmds_need_lc='no'
10090       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091       hardcode_libdir_separator=:
10092       inherit_rpath=yes
10093       link_all_deplibs=yes
10094       ;;
10095
10096     netbsd*)
10097       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10098         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10099       else
10100         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10101       fi
10102       hardcode_libdir_flag_spec='-R$libdir'
10103       hardcode_direct=yes
10104       hardcode_shlibpath_var=no
10105       ;;
10106
10107     newsos6)
10108       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109       hardcode_direct=yes
10110       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10111       hardcode_libdir_separator=:
10112       hardcode_shlibpath_var=no
10113       ;;
10114
10115     *nto* | *qnx*)
10116       ;;
10117
10118     openbsd*)
10119       if test -f /usr/libexec/ld.so; then
10120         hardcode_direct=yes
10121         hardcode_shlibpath_var=no
10122         hardcode_direct_absolute=yes
10123         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10124           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10125           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10126           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10127           export_dynamic_flag_spec='${wl}-E'
10128         else
10129           case $host_os in
10130            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10131              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10132              hardcode_libdir_flag_spec='-R$libdir'
10133              ;;
10134            *)
10135              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10136              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10137              ;;
10138           esac
10139         fi
10140       else
10141         ld_shlibs=no
10142       fi
10143       ;;
10144
10145     os2*)
10146       hardcode_libdir_flag_spec='-L$libdir'
10147       hardcode_minus_L=yes
10148       allow_undefined_flag=unsupported
10149       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'
10150       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10151       ;;
10152
10153     osf3*)
10154       if test "$GCC" = yes; then
10155         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10156         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'
10157       else
10158         allow_undefined_flag=' -expect_unresolved \*'
10159         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'
10160       fi
10161       archive_cmds_need_lc='no'
10162       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10163       hardcode_libdir_separator=:
10164       ;;
10165
10166     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10167       if test "$GCC" = yes; then
10168         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10169         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'
10170         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10171       else
10172         allow_undefined_flag=' -expect_unresolved \*'
10173         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'
10174         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~
10175         $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'
10176
10177         # Both c and cxx compiler support -rpath directly
10178         hardcode_libdir_flag_spec='-rpath $libdir'
10179       fi
10180       archive_cmds_need_lc='no'
10181       hardcode_libdir_separator=:
10182       ;;
10183
10184     solaris*)
10185       no_undefined_flag=' -z defs'
10186       if test "$GCC" = yes; then
10187         wlarc='${wl}'
10188         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10189         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10190           $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'
10191       else
10192         case `$CC -V 2>&1` in
10193         *"Compilers 5.0"*)
10194           wlarc=''
10195           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10197           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10198           ;;
10199         *)
10200           wlarc='${wl}'
10201           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10202           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10203           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10204           ;;
10205         esac
10206       fi
10207       hardcode_libdir_flag_spec='-R$libdir'
10208       hardcode_shlibpath_var=no
10209       case $host_os in
10210       solaris2.[0-5] | solaris2.[0-5].*) ;;
10211       *)
10212         # The compiler driver will combine and reorder linker options,
10213         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10214         # but is careful enough not to reorder.
10215         # Supported since Solaris 2.6 (maybe 2.5.1?)
10216         if test "$GCC" = yes; then
10217           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10218         else
10219           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10220         fi
10221         ;;
10222       esac
10223       link_all_deplibs=yes
10224       ;;
10225
10226     sunos4*)
10227       if test "x$host_vendor" = xsequent; then
10228         # Use $CC to link under sequent, because it throws in some extra .o
10229         # files that make .init and .fini sections work.
10230         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10231       else
10232         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10233       fi
10234       hardcode_libdir_flag_spec='-L$libdir'
10235       hardcode_direct=yes
10236       hardcode_minus_L=yes
10237       hardcode_shlibpath_var=no
10238       ;;
10239
10240     sysv4)
10241       case $host_vendor in
10242         sni)
10243           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244           hardcode_direct=yes # is this really true???
10245         ;;
10246         siemens)
10247           ## LD is ld it makes a PLAMLIB
10248           ## CC just makes a GrossModule.
10249           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10250           reload_cmds='$CC -r -o $output$reload_objs'
10251           hardcode_direct=no
10252         ;;
10253         motorola)
10254           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10255           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10256         ;;
10257       esac
10258       runpath_var='LD_RUN_PATH'
10259       hardcode_shlibpath_var=no
10260       ;;
10261
10262     sysv4.3*)
10263       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264       hardcode_shlibpath_var=no
10265       export_dynamic_flag_spec='-Bexport'
10266       ;;
10267
10268     sysv4*MP*)
10269       if test -d /usr/nec; then
10270         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271         hardcode_shlibpath_var=no
10272         runpath_var=LD_RUN_PATH
10273         hardcode_runpath_var=yes
10274         ld_shlibs=yes
10275       fi
10276       ;;
10277
10278     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10279       no_undefined_flag='${wl}-z,text'
10280       archive_cmds_need_lc=no
10281       hardcode_shlibpath_var=no
10282       runpath_var='LD_RUN_PATH'
10283
10284       if test "$GCC" = yes; then
10285         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287       else
10288         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290       fi
10291       ;;
10292
10293     sysv5* | sco3.2v5* | sco5v6*)
10294       # Note: We can NOT use -z defs as we might desire, because we do not
10295       # link with -lc, and that would cause any symbols used from libc to
10296       # always be unresolved, which means just about no library would
10297       # ever link correctly.  If we're not using GNU ld we use -z text
10298       # though, which does catch some bad symbols but isn't as heavy-handed
10299       # as -z defs.
10300       no_undefined_flag='${wl}-z,text'
10301       allow_undefined_flag='${wl}-z,nodefs'
10302       archive_cmds_need_lc=no
10303       hardcode_shlibpath_var=no
10304       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10305       hardcode_libdir_separator=':'
10306       link_all_deplibs=yes
10307       export_dynamic_flag_spec='${wl}-Bexport'
10308       runpath_var='LD_RUN_PATH'
10309
10310       if test "$GCC" = yes; then
10311         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313       else
10314         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316       fi
10317       ;;
10318
10319     uts4*)
10320       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321       hardcode_libdir_flag_spec='-L$libdir'
10322       hardcode_shlibpath_var=no
10323       ;;
10324
10325     *)
10326       ld_shlibs=no
10327       ;;
10328     esac
10329
10330     if test x$host_vendor = xsni; then
10331       case $host in
10332       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10333         export_dynamic_flag_spec='${wl}-Blargedynsym'
10334         ;;
10335       esac
10336     fi
10337   fi
10338
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10340 $as_echo "$ld_shlibs" >&6; }
10341 test "$ld_shlibs" = no && can_build_shared=no
10342
10343 with_gnu_ld=$with_gnu_ld
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359 #
10360 # Do we need to explicitly link libc?
10361 #
10362 case "x$archive_cmds_need_lc" in
10363 x|xyes)
10364   # Assume -lc should be added
10365   archive_cmds_need_lc=yes
10366
10367   if test "$enable_shared" = yes && test "$GCC" = yes; then
10368     case $archive_cmds in
10369     *'~'*)
10370       # FIXME: we may have to deal with multi-command sequences.
10371       ;;
10372     '$CC '*)
10373       # Test whether the compiler implicitly links with -lc since on some
10374       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10375       # to ld, don't add -lc before -lgcc.
10376       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10377 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10378 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10379   $as_echo_n "(cached) " >&6
10380 else
10381   $RM conftest*
10382         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10383
10384         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10385   (eval $ac_compile) 2>&5
10386   ac_status=$?
10387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10388   test $ac_status = 0; } 2>conftest.err; then
10389           soname=conftest
10390           lib=conftest
10391           libobjs=conftest.$ac_objext
10392           deplibs=
10393           wl=$lt_prog_compiler_wl
10394           pic_flag=$lt_prog_compiler_pic
10395           compiler_flags=-v
10396           linker_flags=-v
10397           verstring=
10398           output_objdir=.
10399           libname=conftest
10400           lt_save_allow_undefined_flag=$allow_undefined_flag
10401           allow_undefined_flag=
10402           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10403   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10404   ac_status=$?
10405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10406   test $ac_status = 0; }
10407           then
10408             lt_cv_archive_cmds_need_lc=no
10409           else
10410             lt_cv_archive_cmds_need_lc=yes
10411           fi
10412           allow_undefined_flag=$lt_save_allow_undefined_flag
10413         else
10414           cat conftest.err 1>&5
10415         fi
10416         $RM conftest*
10417
10418 fi
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10420 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10421       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10422       ;;
10423     esac
10424   fi
10425   ;;
10426 esac
10427
10428
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10580 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10581
10582 if test "$GCC" = yes; then
10583   case $host_os in
10584     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10585     *) lt_awk_arg="/^libraries:/" ;;
10586   esac
10587   case $host_os in
10588     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10589     *) lt_sed_strip_eq="s,=/,/,g" ;;
10590   esac
10591   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10592   case $lt_search_path_spec in
10593   *\;*)
10594     # if the path contains ";" then we assume it to be the separator
10595     # otherwise default to the standard path separator (i.e. ":") - it is
10596     # assumed that no part of a normal pathname contains ";" but that should
10597     # okay in the real world where ";" in dirpaths is itself problematic.
10598     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10599     ;;
10600   *)
10601     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10602     ;;
10603   esac
10604   # Ok, now we have the path, separated by spaces, we can step through it
10605   # and add multilib dir if necessary.
10606   lt_tmp_lt_search_path_spec=
10607   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10608   for lt_sys_path in $lt_search_path_spec; do
10609     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10610       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10611     else
10612       test -d "$lt_sys_path" && \
10613         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10614     fi
10615   done
10616   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10617 BEGIN {RS=" "; FS="/|\n";} {
10618   lt_foo="";
10619   lt_count=0;
10620   for (lt_i = NF; lt_i > 0; lt_i--) {
10621     if ($lt_i != "" && $lt_i != ".") {
10622       if ($lt_i == "..") {
10623         lt_count++;
10624       } else {
10625         if (lt_count == 0) {
10626           lt_foo="/" $lt_i lt_foo;
10627         } else {
10628           lt_count--;
10629         }
10630       }
10631     }
10632   }
10633   if (lt_foo != "") { lt_freq[lt_foo]++; }
10634   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10635 }'`
10636   # AWK program above erroneously prepends '/' to C:/dos/paths
10637   # for these hosts.
10638   case $host_os in
10639     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10640       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10641   esac
10642   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10643 else
10644   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10645 fi
10646 library_names_spec=
10647 libname_spec='lib$name'
10648 soname_spec=
10649 shrext_cmds=".so"
10650 postinstall_cmds=
10651 postuninstall_cmds=
10652 finish_cmds=
10653 finish_eval=
10654 shlibpath_var=
10655 shlibpath_overrides_runpath=unknown
10656 version_type=none
10657 dynamic_linker="$host_os ld.so"
10658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10659 need_lib_prefix=unknown
10660 hardcode_into_libs=no
10661
10662 # when you set need_version to no, make sure it does not cause -set_version
10663 # flags to be left without arguments
10664 need_version=unknown
10665
10666 case $host_os in
10667 aix3*)
10668   version_type=linux # correct to gnu/linux during the next big refactor
10669   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10670   shlibpath_var=LIBPATH
10671
10672   # AIX 3 has no versioning support, so we append a major version to the name.
10673   soname_spec='${libname}${release}${shared_ext}$major'
10674   ;;
10675
10676 aix[4-9]*)
10677   version_type=linux # correct to gnu/linux during the next big refactor
10678   need_lib_prefix=no
10679   need_version=no
10680   hardcode_into_libs=yes
10681   if test "$host_cpu" = ia64; then
10682     # AIX 5 supports IA64
10683     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10684     shlibpath_var=LD_LIBRARY_PATH
10685   else
10686     # With GCC up to 2.95.x, collect2 would create an import file
10687     # for dependence libraries.  The import file would start with
10688     # the line `#! .'.  This would cause the generated library to
10689     # depend on `.', always an invalid library.  This was fixed in
10690     # development snapshots of GCC prior to 3.0.
10691     case $host_os in
10692       aix4 | aix4.[01] | aix4.[01].*)
10693       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10694            echo ' yes '
10695            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10696         :
10697       else
10698         can_build_shared=no
10699       fi
10700       ;;
10701     esac
10702     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10703     # soname into executable. Probably we can add versioning support to
10704     # collect2, so additional links can be useful in future.
10705     if test "$aix_use_runtimelinking" = yes; then
10706       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10707       # instead of lib<name>.a to let people know that these are not
10708       # typical AIX shared libraries.
10709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710     else
10711       # We preserve .a as extension for shared libraries through AIX4.2
10712       # and later when we are not doing run time linking.
10713       library_names_spec='${libname}${release}.a $libname.a'
10714       soname_spec='${libname}${release}${shared_ext}$major'
10715     fi
10716     shlibpath_var=LIBPATH
10717   fi
10718   ;;
10719
10720 amigaos*)
10721   case $host_cpu in
10722   powerpc)
10723     # Since July 2007 AmigaOS4 officially supports .so libraries.
10724     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726     ;;
10727   m68k)
10728     library_names_spec='$libname.ixlibrary $libname.a'
10729     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10730     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'
10731     ;;
10732   esac
10733   ;;
10734
10735 beos*)
10736   library_names_spec='${libname}${shared_ext}'
10737   dynamic_linker="$host_os ld.so"
10738   shlibpath_var=LIBRARY_PATH
10739   ;;
10740
10741 bsdi[45]*)
10742   version_type=linux # correct to gnu/linux during the next big refactor
10743   need_version=no
10744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745   soname_spec='${libname}${release}${shared_ext}$major'
10746   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10747   shlibpath_var=LD_LIBRARY_PATH
10748   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10749   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10750   # the default ld.so.conf also contains /usr/contrib/lib and
10751   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10752   # libtool to hard-code these into programs
10753   ;;
10754
10755 cygwin* | mingw* | pw32* | cegcc*)
10756   version_type=windows
10757   shrext_cmds=".dll"
10758   need_version=no
10759   need_lib_prefix=no
10760
10761   case $GCC,$cc_basename in
10762   yes,*)
10763     # gcc
10764     library_names_spec='$libname.dll.a'
10765     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10766     postinstall_cmds='base_file=`basename \${file}`~
10767       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10768       dldir=$destdir/`dirname \$dlpath`~
10769       test -d \$dldir || mkdir -p \$dldir~
10770       $install_prog $dir/$dlname \$dldir/$dlname~
10771       chmod a+x \$dldir/$dlname~
10772       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10773         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10774       fi'
10775     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10776       dlpath=$dir/\$dldll~
10777        $RM \$dlpath'
10778     shlibpath_overrides_runpath=yes
10779
10780     case $host_os in
10781     cygwin*)
10782       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10783       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10784
10785       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10786       ;;
10787     mingw* | cegcc*)
10788       # MinGW DLLs use traditional 'lib' prefix
10789       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10790       ;;
10791     pw32*)
10792       # pw32 DLLs use 'pw' prefix rather than 'lib'
10793       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10794       ;;
10795     esac
10796     dynamic_linker='Win32 ld.exe'
10797     ;;
10798
10799   *,cl*)
10800     # Native MSVC
10801     libname_spec='$name'
10802     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10803     library_names_spec='${libname}.dll.lib'
10804
10805     case $build_os in
10806     mingw*)
10807       sys_lib_search_path_spec=
10808       lt_save_ifs=$IFS
10809       IFS=';'
10810       for lt_path in $LIB
10811       do
10812         IFS=$lt_save_ifs
10813         # Let DOS variable expansion print the short 8.3 style file name.
10814         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10815         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10816       done
10817       IFS=$lt_save_ifs
10818       # Convert to MSYS style.
10819       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10820       ;;
10821     cygwin*)
10822       # Convert to unix form, then to dos form, then back to unix form
10823       # but this time dos style (no spaces!) so that the unix form looks
10824       # like /cygdrive/c/PROGRA~1:/cygdr...
10825       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10826       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10827       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10828       ;;
10829     *)
10830       sys_lib_search_path_spec="$LIB"
10831       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10832         # It is most probably a Windows format PATH.
10833         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10834       else
10835         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10836       fi
10837       # FIXME: find the short name or the path components, as spaces are
10838       # common. (e.g. "Program Files" -> "PROGRA~1")
10839       ;;
10840     esac
10841
10842     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10843     postinstall_cmds='base_file=`basename \${file}`~
10844       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10845       dldir=$destdir/`dirname \$dlpath`~
10846       test -d \$dldir || mkdir -p \$dldir~
10847       $install_prog $dir/$dlname \$dldir/$dlname'
10848     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10849       dlpath=$dir/\$dldll~
10850        $RM \$dlpath'
10851     shlibpath_overrides_runpath=yes
10852     dynamic_linker='Win32 link.exe'
10853     ;;
10854
10855   *)
10856     # Assume MSVC wrapper
10857     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10858     dynamic_linker='Win32 ld.exe'
10859     ;;
10860   esac
10861   # FIXME: first we should search . and the directory the executable is in
10862   shlibpath_var=PATH
10863   ;;
10864
10865 darwin* | rhapsody*)
10866   dynamic_linker="$host_os dyld"
10867   version_type=darwin
10868   need_lib_prefix=no
10869   need_version=no
10870   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10871   soname_spec='${libname}${release}${major}$shared_ext'
10872   shlibpath_overrides_runpath=yes
10873   shlibpath_var=DYLD_LIBRARY_PATH
10874   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10875
10876   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10877   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10878   ;;
10879
10880 dgux*)
10881   version_type=linux # correct to gnu/linux during the next big refactor
10882   need_lib_prefix=no
10883   need_version=no
10884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10885   soname_spec='${libname}${release}${shared_ext}$major'
10886   shlibpath_var=LD_LIBRARY_PATH
10887   ;;
10888
10889 freebsd* | dragonfly*)
10890   # DragonFly does not have aout.  When/if they implement a new
10891   # versioning mechanism, adjust this.
10892   if test -x /usr/bin/objformat; then
10893     objformat=`/usr/bin/objformat`
10894   else
10895     case $host_os in
10896     freebsd[23].*) objformat=aout ;;
10897     *) objformat=elf ;;
10898     esac
10899   fi
10900   version_type=freebsd-$objformat
10901   case $version_type in
10902     freebsd-elf*)
10903       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10904       need_version=no
10905       need_lib_prefix=no
10906       ;;
10907     freebsd-*)
10908       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10909       need_version=yes
10910       ;;
10911   esac
10912   shlibpath_var=LD_LIBRARY_PATH
10913   case $host_os in
10914   freebsd2.*)
10915     shlibpath_overrides_runpath=yes
10916     ;;
10917   freebsd3.[01]* | freebsdelf3.[01]*)
10918     shlibpath_overrides_runpath=yes
10919     hardcode_into_libs=yes
10920     ;;
10921   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10922   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10923     shlibpath_overrides_runpath=no
10924     hardcode_into_libs=yes
10925     ;;
10926   *) # from 4.6 on, and DragonFly
10927     shlibpath_overrides_runpath=yes
10928     hardcode_into_libs=yes
10929     ;;
10930   esac
10931   ;;
10932
10933 gnu*)
10934   version_type=linux # correct to gnu/linux during the next big refactor
10935   need_lib_prefix=no
10936   need_version=no
10937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10938   soname_spec='${libname}${release}${shared_ext}$major'
10939   shlibpath_var=LD_LIBRARY_PATH
10940   shlibpath_overrides_runpath=no
10941   hardcode_into_libs=yes
10942   ;;
10943
10944 haiku*)
10945   version_type=linux # correct to gnu/linux during the next big refactor
10946   need_lib_prefix=no
10947   need_version=no
10948   dynamic_linker="$host_os runtime_loader"
10949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10950   soname_spec='${libname}${release}${shared_ext}$major'
10951   shlibpath_var=LIBRARY_PATH
10952   shlibpath_overrides_runpath=yes
10953   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10954   hardcode_into_libs=yes
10955   ;;
10956
10957 hpux9* | hpux10* | hpux11*)
10958   # Give a soname corresponding to the major version so that dld.sl refuses to
10959   # link against other versions.
10960   version_type=sunos
10961   need_lib_prefix=no
10962   need_version=no
10963   case $host_cpu in
10964   ia64*)
10965     shrext_cmds='.so'
10966     hardcode_into_libs=yes
10967     dynamic_linker="$host_os dld.so"
10968     shlibpath_var=LD_LIBRARY_PATH
10969     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971     soname_spec='${libname}${release}${shared_ext}$major'
10972     if test "X$HPUX_IA64_MODE" = X32; then
10973       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10974     else
10975       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10976     fi
10977     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10978     ;;
10979   hppa*64*)
10980     shrext_cmds='.sl'
10981     hardcode_into_libs=yes
10982     dynamic_linker="$host_os dld.sl"
10983     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986     soname_spec='${libname}${release}${shared_ext}$major'
10987     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10989     ;;
10990   *)
10991     shrext_cmds='.sl'
10992     dynamic_linker="$host_os dld.sl"
10993     shlibpath_var=SHLIB_PATH
10994     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996     soname_spec='${libname}${release}${shared_ext}$major'
10997     ;;
10998   esac
10999   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11000   postinstall_cmds='chmod 555 $lib'
11001   # or fails outright, so override atomically:
11002   install_override_mode=555
11003   ;;
11004
11005 interix[3-9]*)
11006   version_type=linux # correct to gnu/linux during the next big refactor
11007   need_lib_prefix=no
11008   need_version=no
11009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11010   soname_spec='${libname}${release}${shared_ext}$major'
11011   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11012   shlibpath_var=LD_LIBRARY_PATH
11013   shlibpath_overrides_runpath=no
11014   hardcode_into_libs=yes
11015   ;;
11016
11017 irix5* | irix6* | nonstopux*)
11018   case $host_os in
11019     nonstopux*) version_type=nonstopux ;;
11020     *)
11021         if test "$lt_cv_prog_gnu_ld" = yes; then
11022                 version_type=linux # correct to gnu/linux during the next big refactor
11023         else
11024                 version_type=irix
11025         fi ;;
11026   esac
11027   need_lib_prefix=no
11028   need_version=no
11029   soname_spec='${libname}${release}${shared_ext}$major'
11030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11031   case $host_os in
11032   irix5* | nonstopux*)
11033     libsuff= shlibsuff=
11034     ;;
11035   *)
11036     case $LD in # libtool.m4 will add one of these switches to LD
11037     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11038       libsuff= shlibsuff= libmagic=32-bit;;
11039     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11040       libsuff=32 shlibsuff=N32 libmagic=N32;;
11041     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11042       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11043     *) libsuff= shlibsuff= libmagic=never-match;;
11044     esac
11045     ;;
11046   esac
11047   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11048   shlibpath_overrides_runpath=no
11049   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11050   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11051   hardcode_into_libs=yes
11052   ;;
11053
11054 # No shared lib support for Linux oldld, aout, or coff.
11055 linux*oldld* | linux*aout* | linux*coff*)
11056   dynamic_linker=no
11057   ;;
11058
11059 # This must be glibc/ELF.
11060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11061   version_type=linux # correct to gnu/linux during the next big refactor
11062   need_lib_prefix=no
11063   need_version=no
11064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065   soname_spec='${libname}${release}${shared_ext}$major'
11066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11067   shlibpath_var=LD_LIBRARY_PATH
11068   shlibpath_overrides_runpath=no
11069
11070   # Some binutils ld are patched to set DT_RUNPATH
11071   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11072   $as_echo_n "(cached) " >&6
11073 else
11074   lt_cv_shlibpath_overrides_runpath=no
11075     save_LDFLAGS=$LDFLAGS
11076     save_libdir=$libdir
11077     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11078          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h.  */
11081
11082 int
11083 main ()
11084 {
11085
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11092   lt_cv_shlibpath_overrides_runpath=yes
11093 fi
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext \
11096     conftest$ac_exeext conftest.$ac_ext
11097     LDFLAGS=$save_LDFLAGS
11098     libdir=$save_libdir
11099
11100 fi
11101
11102   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11103
11104   # This implies no fast_install, which is unacceptable.
11105   # Some rework will be needed to allow for fast_install
11106   # before this can be enabled.
11107   hardcode_into_libs=yes
11108
11109   # Append ld.so.conf contents to the search path
11110   if test -f /etc/ld.so.conf; then
11111     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' ' '`
11112     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11113   fi
11114
11115   # We used to test for /lib/ld.so.1 and disable shared libraries on
11116   # powerpc, because MkLinux only supported shared libraries with the
11117   # GNU dynamic linker.  Since this was broken with cross compilers,
11118   # most powerpc-linux boxes support dynamic linking these days and
11119   # people can always --disable-shared, the test was removed, and we
11120   # assume the GNU/Linux dynamic linker is in use.
11121   dynamic_linker='GNU/Linux ld.so'
11122   ;;
11123
11124 netbsd*)
11125   version_type=sunos
11126   need_lib_prefix=no
11127   need_version=no
11128   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11130     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11131     dynamic_linker='NetBSD (a.out) ld.so'
11132   else
11133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11134     soname_spec='${libname}${release}${shared_ext}$major'
11135     dynamic_linker='NetBSD ld.elf_so'
11136   fi
11137   shlibpath_var=LD_LIBRARY_PATH
11138   shlibpath_overrides_runpath=yes
11139   hardcode_into_libs=yes
11140   ;;
11141
11142 newsos6)
11143   version_type=linux # correct to gnu/linux during the next big refactor
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145   shlibpath_var=LD_LIBRARY_PATH
11146   shlibpath_overrides_runpath=yes
11147   ;;
11148
11149 *nto* | *qnx*)
11150   version_type=qnx
11151   need_lib_prefix=no
11152   need_version=no
11153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154   soname_spec='${libname}${release}${shared_ext}$major'
11155   shlibpath_var=LD_LIBRARY_PATH
11156   shlibpath_overrides_runpath=no
11157   hardcode_into_libs=yes
11158   dynamic_linker='ldqnx.so'
11159   ;;
11160
11161 openbsd*)
11162   version_type=sunos
11163   sys_lib_dlsearch_path_spec="/usr/lib"
11164   need_lib_prefix=no
11165   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11166   case $host_os in
11167     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11168     *)                          need_version=no  ;;
11169   esac
11170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11171   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11172   shlibpath_var=LD_LIBRARY_PATH
11173   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11174     case $host_os in
11175       openbsd2.[89] | openbsd2.[89].*)
11176         shlibpath_overrides_runpath=no
11177         ;;
11178       *)
11179         shlibpath_overrides_runpath=yes
11180         ;;
11181       esac
11182   else
11183     shlibpath_overrides_runpath=yes
11184   fi
11185   ;;
11186
11187 os2*)
11188   libname_spec='$name'
11189   shrext_cmds=".dll"
11190   need_lib_prefix=no
11191   library_names_spec='$libname${shared_ext} $libname.a'
11192   dynamic_linker='OS/2 ld.exe'
11193   shlibpath_var=LIBPATH
11194   ;;
11195
11196 osf3* | osf4* | osf5*)
11197   version_type=osf
11198   need_lib_prefix=no
11199   need_version=no
11200   soname_spec='${libname}${release}${shared_ext}$major'
11201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202   shlibpath_var=LD_LIBRARY_PATH
11203   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11204   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11205   ;;
11206
11207 rdos*)
11208   dynamic_linker=no
11209   ;;
11210
11211 solaris*)
11212   version_type=linux # correct to gnu/linux during the next big refactor
11213   need_lib_prefix=no
11214   need_version=no
11215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216   soname_spec='${libname}${release}${shared_ext}$major'
11217   shlibpath_var=LD_LIBRARY_PATH
11218   shlibpath_overrides_runpath=yes
11219   hardcode_into_libs=yes
11220   # ldd complains unless libraries are executable
11221   postinstall_cmds='chmod +x $lib'
11222   ;;
11223
11224 sunos4*)
11225   version_type=sunos
11226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11227   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11228   shlibpath_var=LD_LIBRARY_PATH
11229   shlibpath_overrides_runpath=yes
11230   if test "$with_gnu_ld" = yes; then
11231     need_lib_prefix=no
11232   fi
11233   need_version=yes
11234   ;;
11235
11236 sysv4 | sysv4.3*)
11237   version_type=linux # correct to gnu/linux during the next big refactor
11238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239   soname_spec='${libname}${release}${shared_ext}$major'
11240   shlibpath_var=LD_LIBRARY_PATH
11241   case $host_vendor in
11242     sni)
11243       shlibpath_overrides_runpath=no
11244       need_lib_prefix=no
11245       runpath_var=LD_RUN_PATH
11246       ;;
11247     siemens)
11248       need_lib_prefix=no
11249       ;;
11250     motorola)
11251       need_lib_prefix=no
11252       need_version=no
11253       shlibpath_overrides_runpath=no
11254       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11255       ;;
11256   esac
11257   ;;
11258
11259 sysv4*MP*)
11260   if test -d /usr/nec ;then
11261     version_type=linux # correct to gnu/linux during the next big refactor
11262     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11263     soname_spec='$libname${shared_ext}.$major'
11264     shlibpath_var=LD_LIBRARY_PATH
11265   fi
11266   ;;
11267
11268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11269   version_type=freebsd-elf
11270   need_lib_prefix=no
11271   need_version=no
11272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11273   soname_spec='${libname}${release}${shared_ext}$major'
11274   shlibpath_var=LD_LIBRARY_PATH
11275   shlibpath_overrides_runpath=yes
11276   hardcode_into_libs=yes
11277   if test "$with_gnu_ld" = yes; then
11278     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11279   else
11280     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11281     case $host_os in
11282       sco3.2v5*)
11283         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11284         ;;
11285     esac
11286   fi
11287   sys_lib_dlsearch_path_spec='/usr/lib'
11288   ;;
11289
11290 tpf*)
11291   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11292   version_type=linux # correct to gnu/linux during the next big refactor
11293   need_lib_prefix=no
11294   need_version=no
11295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296   shlibpath_var=LD_LIBRARY_PATH
11297   shlibpath_overrides_runpath=no
11298   hardcode_into_libs=yes
11299   ;;
11300
11301 uts4*)
11302   version_type=linux # correct to gnu/linux during the next big refactor
11303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304   soname_spec='${libname}${release}${shared_ext}$major'
11305   shlibpath_var=LD_LIBRARY_PATH
11306   ;;
11307
11308 *)
11309   dynamic_linker=no
11310   ;;
11311 esac
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11313 $as_echo "$dynamic_linker" >&6; }
11314 test "$dynamic_linker" = no && can_build_shared=no
11315
11316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11317 if test "$GCC" = yes; then
11318   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11319 fi
11320
11321 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11322   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11323 fi
11324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11325   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11326 fi
11327
11328
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11420 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11421 hardcode_action=
11422 if test -n "$hardcode_libdir_flag_spec" ||
11423    test -n "$runpath_var" ||
11424    test "X$hardcode_automatic" = "Xyes" ; then
11425
11426   # We can hardcode non-existent directories.
11427   if test "$hardcode_direct" != no &&
11428      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11429      # have to relink, otherwise we might link with an installed library
11430      # when we should be linking with a yet-to-be-installed one
11431      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11432      test "$hardcode_minus_L" != no; then
11433     # Linking always hardcodes the temporary library directory.
11434     hardcode_action=relink
11435   else
11436     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11437     hardcode_action=immediate
11438   fi
11439 else
11440   # We cannot hardcode anything, or else we can only hardcode existing
11441   # directories.
11442   hardcode_action=unsupported
11443 fi
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11445 $as_echo "$hardcode_action" >&6; }
11446
11447 if test "$hardcode_action" = relink ||
11448    test "$inherit_rpath" = yes; then
11449   # Fast installation is not supported
11450   enable_fast_install=no
11451 elif test "$shlibpath_overrides_runpath" = yes ||
11452      test "$enable_shared" = no; then
11453   # Fast installation is not necessary
11454   enable_fast_install=needless
11455 fi
11456
11457
11458
11459
11460
11461
11462   if test "x$enable_dlopen" != xyes; then
11463   enable_dlopen=unknown
11464   enable_dlopen_self=unknown
11465   enable_dlopen_self_static=unknown
11466 else
11467   lt_cv_dlopen=no
11468   lt_cv_dlopen_libs=
11469
11470   case $host_os in
11471   beos*)
11472     lt_cv_dlopen="load_add_on"
11473     lt_cv_dlopen_libs=
11474     lt_cv_dlopen_self=yes
11475     ;;
11476
11477   mingw* | pw32* | cegcc*)
11478     lt_cv_dlopen="LoadLibrary"
11479     lt_cv_dlopen_libs=
11480     ;;
11481
11482   cygwin*)
11483     lt_cv_dlopen="dlopen"
11484     lt_cv_dlopen_libs=
11485     ;;
11486
11487   darwin*)
11488   # if libdl is installed we need to link against it
11489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11490 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11491 if ${ac_cv_lib_dl_dlopen+:} false; then :
11492   $as_echo_n "(cached) " >&6
11493 else
11494   ac_check_lib_save_LIBS=$LIBS
11495 LIBS="-ldl  $LIBS"
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h.  */
11498
11499 /* Override any GCC internal prototype to avoid an error.
11500    Use char because int might match the return type of a GCC
11501    builtin and then its argument prototype would still apply.  */
11502 #ifdef __cplusplus
11503 extern "C"
11504 #endif
11505 char dlopen ();
11506 int
11507 main ()
11508 {
11509 return dlopen ();
11510   ;
11511   return 0;
11512 }
11513 _ACEOF
11514 if ac_fn_c_try_link "$LINENO"; then :
11515   ac_cv_lib_dl_dlopen=yes
11516 else
11517   ac_cv_lib_dl_dlopen=no
11518 fi
11519 rm -f core conftest.err conftest.$ac_objext \
11520     conftest$ac_exeext conftest.$ac_ext
11521 LIBS=$ac_check_lib_save_LIBS
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11524 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11525 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11526   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11527 else
11528
11529     lt_cv_dlopen="dyld"
11530     lt_cv_dlopen_libs=
11531     lt_cv_dlopen_self=yes
11532
11533 fi
11534
11535     ;;
11536
11537   *)
11538     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11539 if test "x$ac_cv_func_shl_load" = xyes; then :
11540   lt_cv_dlopen="shl_load"
11541 else
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11543 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11544 if ${ac_cv_lib_dld_shl_load+:} false; then :
11545   $as_echo_n "(cached) " >&6
11546 else
11547   ac_check_lib_save_LIBS=$LIBS
11548 LIBS="-ldld  $LIBS"
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h.  */
11551
11552 /* Override any GCC internal prototype to avoid an error.
11553    Use char because int might match the return type of a GCC
11554    builtin and then its argument prototype would still apply.  */
11555 #ifdef __cplusplus
11556 extern "C"
11557 #endif
11558 char shl_load ();
11559 int
11560 main ()
11561 {
11562 return shl_load ();
11563   ;
11564   return 0;
11565 }
11566 _ACEOF
11567 if ac_fn_c_try_link "$LINENO"; then :
11568   ac_cv_lib_dld_shl_load=yes
11569 else
11570   ac_cv_lib_dld_shl_load=no
11571 fi
11572 rm -f core conftest.err conftest.$ac_objext \
11573     conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11575 fi
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11577 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11578 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11579   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11580 else
11581   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11582 if test "x$ac_cv_func_dlopen" = xyes; then :
11583   lt_cv_dlopen="dlopen"
11584 else
11585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11586 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11587 if ${ac_cv_lib_dl_dlopen+:} false; then :
11588   $as_echo_n "(cached) " >&6
11589 else
11590   ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-ldl  $LIBS"
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h.  */
11594
11595 /* Override any GCC internal prototype to avoid an error.
11596    Use char because int might match the return type of a GCC
11597    builtin and then its argument prototype would still apply.  */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 char dlopen ();
11602 int
11603 main ()
11604 {
11605 return dlopen ();
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611   ac_cv_lib_dl_dlopen=yes
11612 else
11613   ac_cv_lib_dl_dlopen=no
11614 fi
11615 rm -f core conftest.err conftest.$ac_objext \
11616     conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11618 fi
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11620 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11621 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11622   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11623 else
11624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11625 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11626 if ${ac_cv_lib_svld_dlopen+:} false; then :
11627   $as_echo_n "(cached) " >&6
11628 else
11629   ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-lsvld  $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h.  */
11633
11634 /* Override any GCC internal prototype to avoid an error.
11635    Use char because int might match the return type of a GCC
11636    builtin and then its argument prototype would still apply.  */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char dlopen ();
11641 int
11642 main ()
11643 {
11644 return dlopen ();
11645   ;
11646   return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"; then :
11650   ac_cv_lib_svld_dlopen=yes
11651 else
11652   ac_cv_lib_svld_dlopen=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext \
11655     conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11659 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11660 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11662 else
11663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11664 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11665 if ${ac_cv_lib_dld_dld_link+:} false; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668   ac_check_lib_save_LIBS=$LIBS
11669 LIBS="-ldld  $LIBS"
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h.  */
11672
11673 /* Override any GCC internal prototype to avoid an error.
11674    Use char because int might match the return type of a GCC
11675    builtin and then its argument prototype would still apply.  */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char dld_link ();
11680 int
11681 main ()
11682 {
11683 return dld_link ();
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689   ac_cv_lib_dld_dld_link=yes
11690 else
11691   ac_cv_lib_dld_dld_link=no
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext \
11694     conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11698 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11699 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11700   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11701 fi
11702
11703
11704 fi
11705
11706
11707 fi
11708
11709
11710 fi
11711
11712
11713 fi
11714
11715
11716 fi
11717
11718     ;;
11719   esac
11720
11721   if test "x$lt_cv_dlopen" != xno; then
11722     enable_dlopen=yes
11723   else
11724     enable_dlopen=no
11725   fi
11726
11727   case $lt_cv_dlopen in
11728   dlopen)
11729     save_CPPFLAGS="$CPPFLAGS"
11730     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11731
11732     save_LDFLAGS="$LDFLAGS"
11733     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11734
11735     save_LIBS="$LIBS"
11736     LIBS="$lt_cv_dlopen_libs $LIBS"
11737
11738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11739 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11740 if ${lt_cv_dlopen_self+:} false; then :
11741   $as_echo_n "(cached) " >&6
11742 else
11743           if test "$cross_compiling" = yes; then :
11744   lt_cv_dlopen_self=cross
11745 else
11746   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11747   lt_status=$lt_dlunknown
11748   cat > conftest.$ac_ext <<_LT_EOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751
11752 #if HAVE_DLFCN_H
11753 #include <dlfcn.h>
11754 #endif
11755
11756 #include <stdio.h>
11757
11758 #ifdef RTLD_GLOBAL
11759 #  define LT_DLGLOBAL           RTLD_GLOBAL
11760 #else
11761 #  ifdef DL_GLOBAL
11762 #    define LT_DLGLOBAL         DL_GLOBAL
11763 #  else
11764 #    define LT_DLGLOBAL         0
11765 #  endif
11766 #endif
11767
11768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11769    find out it does not work in some platform. */
11770 #ifndef LT_DLLAZY_OR_NOW
11771 #  ifdef RTLD_LAZY
11772 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11773 #  else
11774 #    ifdef DL_LAZY
11775 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11776 #    else
11777 #      ifdef RTLD_NOW
11778 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11779 #      else
11780 #        ifdef DL_NOW
11781 #          define LT_DLLAZY_OR_NOW      DL_NOW
11782 #        else
11783 #          define LT_DLLAZY_OR_NOW      0
11784 #        endif
11785 #      endif
11786 #    endif
11787 #  endif
11788 #endif
11789
11790 /* When -fvisbility=hidden is used, assume the code has been annotated
11791    correspondingly for the symbols needed.  */
11792 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11793 int fnord () __attribute__((visibility("default")));
11794 #endif
11795
11796 int fnord () { return 42; }
11797 int main ()
11798 {
11799   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11800   int status = $lt_dlunknown;
11801
11802   if (self)
11803     {
11804       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11805       else
11806         {
11807           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11808           else puts (dlerror ());
11809         }
11810       /* dlclose (self); */
11811     }
11812   else
11813     puts (dlerror ());
11814
11815   return status;
11816 }
11817 _LT_EOF
11818   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11819   (eval $ac_link) 2>&5
11820   ac_status=$?
11821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11822   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11823     (./conftest; exit; ) >&5 2>/dev/null
11824     lt_status=$?
11825     case x$lt_status in
11826       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11827       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11828       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11829     esac
11830   else :
11831     # compilation failed
11832     lt_cv_dlopen_self=no
11833   fi
11834 fi
11835 rm -fr conftest*
11836
11837
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11840 $as_echo "$lt_cv_dlopen_self" >&6; }
11841
11842     if test "x$lt_cv_dlopen_self" = xyes; then
11843       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11844       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11845 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11846 if ${lt_cv_dlopen_self_static+:} false; then :
11847   $as_echo_n "(cached) " >&6
11848 else
11849           if test "$cross_compiling" = yes; then :
11850   lt_cv_dlopen_self_static=cross
11851 else
11852   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11853   lt_status=$lt_dlunknown
11854   cat > conftest.$ac_ext <<_LT_EOF
11855 #line $LINENO "configure"
11856 #include "confdefs.h"
11857
11858 #if HAVE_DLFCN_H
11859 #include <dlfcn.h>
11860 #endif
11861
11862 #include <stdio.h>
11863
11864 #ifdef RTLD_GLOBAL
11865 #  define LT_DLGLOBAL           RTLD_GLOBAL
11866 #else
11867 #  ifdef DL_GLOBAL
11868 #    define LT_DLGLOBAL         DL_GLOBAL
11869 #  else
11870 #    define LT_DLGLOBAL         0
11871 #  endif
11872 #endif
11873
11874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11875    find out it does not work in some platform. */
11876 #ifndef LT_DLLAZY_OR_NOW
11877 #  ifdef RTLD_LAZY
11878 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11879 #  else
11880 #    ifdef DL_LAZY
11881 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11882 #    else
11883 #      ifdef RTLD_NOW
11884 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11885 #      else
11886 #        ifdef DL_NOW
11887 #          define LT_DLLAZY_OR_NOW      DL_NOW
11888 #        else
11889 #          define LT_DLLAZY_OR_NOW      0
11890 #        endif
11891 #      endif
11892 #    endif
11893 #  endif
11894 #endif
11895
11896 /* When -fvisbility=hidden is used, assume the code has been annotated
11897    correspondingly for the symbols needed.  */
11898 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11899 int fnord () __attribute__((visibility("default")));
11900 #endif
11901
11902 int fnord () { return 42; }
11903 int main ()
11904 {
11905   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11906   int status = $lt_dlunknown;
11907
11908   if (self)
11909     {
11910       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11911       else
11912         {
11913           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11914           else puts (dlerror ());
11915         }
11916       /* dlclose (self); */
11917     }
11918   else
11919     puts (dlerror ());
11920
11921   return status;
11922 }
11923 _LT_EOF
11924   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11925   (eval $ac_link) 2>&5
11926   ac_status=$?
11927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11929     (./conftest; exit; ) >&5 2>/dev/null
11930     lt_status=$?
11931     case x$lt_status in
11932       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11933       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11934       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11935     esac
11936   else :
11937     # compilation failed
11938     lt_cv_dlopen_self_static=no
11939   fi
11940 fi
11941 rm -fr conftest*
11942
11943
11944 fi
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11946 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11947     fi
11948
11949     CPPFLAGS="$save_CPPFLAGS"
11950     LDFLAGS="$save_LDFLAGS"
11951     LIBS="$save_LIBS"
11952     ;;
11953   esac
11954
11955   case $lt_cv_dlopen_self in
11956   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11957   *) enable_dlopen_self=unknown ;;
11958   esac
11959
11960   case $lt_cv_dlopen_self_static in
11961   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11962   *) enable_dlopen_self_static=unknown ;;
11963   esac
11964 fi
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982 striplib=
11983 old_striplib=
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11985 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11986 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11987   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11988   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11990 $as_echo "yes" >&6; }
11991 else
11992 # FIXME - insert some real tests, host_os isn't really good enough
11993   case $host_os in
11994   darwin*)
11995     if test -n "$STRIP" ; then
11996       striplib="$STRIP -x"
11997       old_striplib="$STRIP -S"
11998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999 $as_echo "yes" >&6; }
12000     else
12001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12003     fi
12004     ;;
12005   *)
12006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12008     ;;
12009   esac
12010 fi
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023   # Report which library types will actually be built
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12025 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12027 $as_echo "$can_build_shared" >&6; }
12028
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12030 $as_echo_n "checking whether to build shared libraries... " >&6; }
12031   test "$can_build_shared" = "no" && enable_shared=no
12032
12033   # On AIX, shared libraries and static libraries use the same namespace, and
12034   # are all built from PIC.
12035   case $host_os in
12036   aix3*)
12037     test "$enable_shared" = yes && enable_static=no
12038     if test -n "$RANLIB"; then
12039       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12040       postinstall_cmds='$RANLIB $lib'
12041     fi
12042     ;;
12043
12044   aix[4-9]*)
12045     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12046       test "$enable_shared" = yes && enable_static=no
12047     fi
12048     ;;
12049   esac
12050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12051 $as_echo "$enable_shared" >&6; }
12052
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12054 $as_echo_n "checking whether to build static libraries... " >&6; }
12055   # Make sure either enable_shared or enable_static is yes.
12056   test "$enable_shared" = yes || enable_static=yes
12057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12058 $as_echo "$enable_static" >&6; }
12059
12060
12061
12062
12063 fi
12064 ac_ext=c
12065 ac_cpp='$CPP $CPPFLAGS'
12066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12069
12070 CC="$lt_save_CC"
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086         ac_config_commands="$ac_config_commands libtool"
12087
12088
12089
12090
12091 # Only expand once:
12092
12093
12094
12095 for ac_func in _close _dup _fdopen _fileno _open _setmode _snprintf _strdup _stricmp fileno fseeko ftello getopt getprogname open setmode snprintf strcasecmp strdup stricmp
12096 do :
12097   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12099 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12100   cat >>confdefs.h <<_ACEOF
12101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12102 _ACEOF
12103
12104 fi
12105 done
12106
12107 for ac_func in mkstemp
12108 do :
12109   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12110 if test "x$ac_cv_func_mkstemp" = xyes; then :
12111   cat >>confdefs.h <<_ACEOF
12112 #define HAVE_MKSTEMP 1
12113 _ACEOF
12114
12115 else
12116   case " $LIBOBJS " in
12117   *" mkstemp.$ac_objext "* ) ;;
12118   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
12119  ;;
12120 esac
12121
12122 fi
12123 done
12124
12125
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
12127 $as_echo_n "checking if libc defines __progname... " >&6; }
12128 if ${ac_cv_libc_defines___progname+:} false; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h.  */
12133
12134 int
12135 main ()
12136 {
12137  extern char *__progname; printf("%s", __progname);
12138   ;
12139   return 0;
12140 }
12141 _ACEOF
12142 if ac_fn_c_try_link "$LINENO"; then :
12143    ac_cv_libc_defines___progname="yes"
12144 else
12145    ac_cv_libc_defines___progname="no"
12146 fi
12147 rm -f core conftest.err conftest.$ac_objext \
12148     conftest$ac_exeext conftest.$ac_ext
12149
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
12152 $as_echo "$ac_cv_libc_defines___progname" >&6; }
12153 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
12154
12155 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
12156
12157 fi
12158
12159
12160 for ac_header in fts.h stdbool.h strings.h unistd.h
12161 do :
12162   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12163 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12165   cat >>confdefs.h <<_ACEOF
12166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12167 _ACEOF
12168
12169 fi
12170
12171 done
12172
12173
12174 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12175 if test "x$ac_cv_type_int8_t" = xyes; then :
12176
12177 cat >>confdefs.h <<_ACEOF
12178 #define HAVE_INT8_T 1
12179 _ACEOF
12180
12181
12182 fi
12183
12184 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12185 if test "x$ac_cv_type_int16_t" = xyes; then :
12186
12187 cat >>confdefs.h <<_ACEOF
12188 #define HAVE_INT16_T 1
12189 _ACEOF
12190
12191
12192 fi
12193
12194 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12195 if test "x$ac_cv_type_int32_t" = xyes; then :
12196
12197 cat >>confdefs.h <<_ACEOF
12198 #define HAVE_INT32_T 1
12199 _ACEOF
12200
12201
12202 fi
12203
12204 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12205 if test "x$ac_cv_type_int64_t" = xyes; then :
12206
12207 cat >>confdefs.h <<_ACEOF
12208 #define HAVE_INT64_T 1
12209 _ACEOF
12210
12211
12212 fi
12213
12214 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12215 if test "x$ac_cv_type_uint8_t" = xyes; then :
12216
12217 cat >>confdefs.h <<_ACEOF
12218 #define HAVE_UINT8_T 1
12219 _ACEOF
12220
12221
12222 fi
12223
12224 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12225 if test "x$ac_cv_type_uint16_t" = xyes; then :
12226
12227 cat >>confdefs.h <<_ACEOF
12228 #define HAVE_UINT16_T 1
12229 _ACEOF
12230
12231
12232 fi
12233
12234 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12235 if test "x$ac_cv_type_uint32_t" = xyes; then :
12236
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_UINT32_T 1
12239 _ACEOF
12240
12241
12242 fi
12243
12244 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12245 if test "x$ac_cv_type_uint64_t" = xyes; then :
12246
12247 cat >>confdefs.h <<_ACEOF
12248 #define HAVE_UINT64_T 1
12249 _ACEOF
12250
12251
12252 fi
12253
12254 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12255 if test "x$ac_cv_type_ssize_t" = xyes; then :
12256
12257 cat >>confdefs.h <<_ACEOF
12258 #define HAVE_SSIZE_T 1
12259 _ACEOF
12260
12261
12262 fi
12263
12264
12265 # The cast to long int works around a bug in the HP C Compiler
12266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12268 # This bug is HP SR number 8606223364.
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12270 $as_echo_n "checking size of short... " >&6; }
12271 if ${ac_cv_sizeof_short+:} false; then :
12272   $as_echo_n "(cached) " >&6
12273 else
12274   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12275
12276 else
12277   if test "$ac_cv_type_short" = yes; then
12278      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12280 as_fn_error 77 "cannot compute sizeof (short)
12281 See \`config.log' for more details" "$LINENO" 5; }
12282    else
12283      ac_cv_sizeof_short=0
12284    fi
12285 fi
12286
12287 fi
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12289 $as_echo "$ac_cv_sizeof_short" >&6; }
12290
12291
12292
12293 cat >>confdefs.h <<_ACEOF
12294 #define SIZEOF_SHORT $ac_cv_sizeof_short
12295 _ACEOF
12296
12297
12298 # The cast to long int works around a bug in the HP C Compiler
12299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12301 # This bug is HP SR number 8606223364.
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12303 $as_echo_n "checking size of int... " >&6; }
12304 if ${ac_cv_sizeof_int+:} false; then :
12305   $as_echo_n "(cached) " >&6
12306 else
12307   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12308
12309 else
12310   if test "$ac_cv_type_int" = yes; then
12311      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12313 as_fn_error 77 "cannot compute sizeof (int)
12314 See \`config.log' for more details" "$LINENO" 5; }
12315    else
12316      ac_cv_sizeof_int=0
12317    fi
12318 fi
12319
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12322 $as_echo "$ac_cv_sizeof_int" >&6; }
12323
12324
12325
12326 cat >>confdefs.h <<_ACEOF
12327 #define SIZEOF_INT $ac_cv_sizeof_int
12328 _ACEOF
12329
12330
12331 # The cast to long int works around a bug in the HP C Compiler
12332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12334 # This bug is HP SR number 8606223364.
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12336 $as_echo_n "checking size of long... " >&6; }
12337 if ${ac_cv_sizeof_long+:} false; then :
12338   $as_echo_n "(cached) " >&6
12339 else
12340   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12341
12342 else
12343   if test "$ac_cv_type_long" = yes; then
12344      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12346 as_fn_error 77 "cannot compute sizeof (long)
12347 See \`config.log' for more details" "$LINENO" 5; }
12348    else
12349      ac_cv_sizeof_long=0
12350    fi
12351 fi
12352
12353 fi
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12355 $as_echo "$ac_cv_sizeof_long" >&6; }
12356
12357
12358
12359 cat >>confdefs.h <<_ACEOF
12360 #define SIZEOF_LONG $ac_cv_sizeof_long
12361 _ACEOF
12362
12363
12364 # The cast to long int works around a bug in the HP C Compiler
12365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12367 # This bug is HP SR number 8606223364.
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12369 $as_echo_n "checking size of long long... " >&6; }
12370 if ${ac_cv_sizeof_long_long+:} false; then :
12371   $as_echo_n "(cached) " >&6
12372 else
12373   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12374
12375 else
12376   if test "$ac_cv_type_long_long" = yes; then
12377      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12379 as_fn_error 77 "cannot compute sizeof (long long)
12380 See \`config.log' for more details" "$LINENO" 5; }
12381    else
12382      ac_cv_sizeof_long_long=0
12383    fi
12384 fi
12385
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12388 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12389
12390
12391
12392 cat >>confdefs.h <<_ACEOF
12393 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12394 _ACEOF
12395
12396
12397 # The cast to long int works around a bug in the HP C Compiler
12398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12400 # This bug is HP SR number 8606223364.
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12402 $as_echo_n "checking size of off_t... " >&6; }
12403 if ${ac_cv_sizeof_off_t+:} false; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12407
12408 else
12409   if test "$ac_cv_type_off_t" = yes; then
12410      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12412 as_fn_error 77 "cannot compute sizeof (off_t)
12413 See \`config.log' for more details" "$LINENO" 5; }
12414    else
12415      ac_cv_sizeof_off_t=0
12416    fi
12417 fi
12418
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12421 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12422
12423
12424
12425 cat >>confdefs.h <<_ACEOF
12426 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12427 _ACEOF
12428
12429
12430 # The cast to long int works around a bug in the HP C Compiler
12431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12433 # This bug is HP SR number 8606223364.
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12435 $as_echo_n "checking size of size_t... " >&6; }
12436 if ${ac_cv_sizeof_size_t+:} false; then :
12437   $as_echo_n "(cached) " >&6
12438 else
12439   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12440
12441 else
12442   if test "$ac_cv_type_size_t" = yes; then
12443      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12445 as_fn_error 77 "cannot compute sizeof (size_t)
12446 See \`config.log' for more details" "$LINENO" 5; }
12447    else
12448      ac_cv_sizeof_size_t=0
12449    fi
12450 fi
12451
12452 fi
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12454 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12455
12456
12457
12458 cat >>confdefs.h <<_ACEOF
12459 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12460 _ACEOF
12461
12462
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12465 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12466 if ${ac_cv_struct_tm+:} false; then :
12467   $as_echo_n "(cached) " >&6
12468 else
12469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h.  */
12471 #include <sys/types.h>
12472 #include <time.h>
12473
12474 int
12475 main ()
12476 {
12477 struct tm tm;
12478                                      int *p = &tm.tm_sec;
12479                                      return !p;
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 if ac_fn_c_try_compile "$LINENO"; then :
12485   ac_cv_struct_tm=time.h
12486 else
12487   ac_cv_struct_tm=sys/time.h
12488 fi
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 fi
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12492 $as_echo "$ac_cv_struct_tm" >&6; }
12493 if test $ac_cv_struct_tm = sys/time.h; then
12494
12495 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12496
12497 fi
12498
12499 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12500 #include <$ac_cv_struct_tm>
12501
12502 "
12503 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12504
12505 cat >>confdefs.h <<_ACEOF
12506 #define HAVE_STRUCT_TM_TM_ZONE 1
12507 _ACEOF
12508
12509
12510 fi
12511
12512 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12513
12514 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12515
12516 else
12517   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12518 "
12519 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12520   ac_have_decl=1
12521 else
12522   ac_have_decl=0
12523 fi
12524
12525 cat >>confdefs.h <<_ACEOF
12526 #define HAVE_DECL_TZNAME $ac_have_decl
12527 _ACEOF
12528
12529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12530 $as_echo_n "checking for tzname... " >&6; }
12531 if ${ac_cv_var_tzname+:} false; then :
12532   $as_echo_n "(cached) " >&6
12533 else
12534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h.  */
12536 #include <time.h>
12537 #if !HAVE_DECL_TZNAME
12538 extern char *tzname[];
12539 #endif
12540
12541 int
12542 main ()
12543 {
12544 return tzname[0][0];
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_c_try_link "$LINENO"; then :
12550   ac_cv_var_tzname=yes
12551 else
12552   ac_cv_var_tzname=no
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext \
12555     conftest$ac_exeext conftest.$ac_ext
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12558 $as_echo "$ac_cv_var_tzname" >&6; }
12559   if test $ac_cv_var_tzname = yes; then
12560
12561 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12562
12563   fi
12564 fi
12565
12566
12567 case $host_os
12568 in
12569     *bsd*) MANFMT=mdoc;;
12570     *) MANFMT=man;;
12571 esac
12572
12573
12574
12575
12576
12577
12578   CFLAG_VISIBILITY=
12579   HAVE_VISIBILITY=0
12580   if test -n "$GCC"; then
12581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12582 $as_echo_n "checking for simple visibility declarations... " >&6; }
12583     if ${gl_cv_cc_visibility+:} false; then :
12584   $as_echo_n "(cached) " >&6
12585 else
12586
12587       gl_save_CFLAGS="$CFLAGS"
12588       CFLAGS="$CFLAGS -fvisibility=hidden"
12589       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h.  */
12591 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12592          extern __attribute__((__visibility__("default"))) int exportedvar;
12593          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12594          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12595 int
12596 main ()
12597 {
12598
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 if ac_fn_c_try_compile "$LINENO"; then :
12604   gl_cv_cc_visibility=yes
12605 else
12606   gl_cv_cc_visibility=no
12607 fi
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609       CFLAGS="$gl_save_CFLAGS"
12610 fi
12611
12612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12613 $as_echo "$gl_cv_cc_visibility" >&6; }
12614     if test $gl_cv_cc_visibility = yes; then
12615       CFLAG_VISIBILITY="-fvisibility=hidden"
12616       HAVE_VISIBILITY=1
12617     fi
12618   fi
12619
12620
12621
12622 cat >>confdefs.h <<_ACEOF
12623 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12624 _ACEOF
12625
12626
12627
12628 ac_config_files="$ac_config_files Makefile libzip.pc libzip-uninstalled.pc examples/Makefile man/Makefile lib/Makefile regress/Makefile src/Makefile"
12629
12630 cat >confcache <<\_ACEOF
12631 # This file is a shell script that caches the results of configure
12632 # tests run on this system so they can be shared between configure
12633 # scripts and configure runs, see configure's option --config-cache.
12634 # It is not useful on other systems.  If it contains results you don't
12635 # want to keep, you may remove or edit it.
12636 #
12637 # config.status only pays attention to the cache file if you give it
12638 # the --recheck option to rerun configure.
12639 #
12640 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12641 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12642 # following values.
12643
12644 _ACEOF
12645
12646 # The following way of writing the cache mishandles newlines in values,
12647 # but we know of no workaround that is simple, portable, and efficient.
12648 # So, we kill variables containing newlines.
12649 # Ultrix sh set writes to stderr and can't be redirected directly,
12650 # and sets the high bit in the cache file unless we assign to the vars.
12651 (
12652   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12653     eval ac_val=\$$ac_var
12654     case $ac_val in #(
12655     *${as_nl}*)
12656       case $ac_var in #(
12657       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12658 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12659       esac
12660       case $ac_var in #(
12661       _ | IFS | as_nl) ;; #(
12662       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12663       *) { eval $ac_var=; unset $ac_var;} ;;
12664       esac ;;
12665     esac
12666   done
12667
12668   (set) 2>&1 |
12669     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12670     *${as_nl}ac_space=\ *)
12671       # `set' does not quote correctly, so add quotes: double-quote
12672       # substitution turns \\\\ into \\, and sed turns \\ into \.
12673       sed -n \
12674         "s/'/'\\\\''/g;
12675           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12676       ;; #(
12677     *)
12678       # `set' quotes correctly as required by POSIX, so do not add quotes.
12679       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12680       ;;
12681     esac |
12682     sort
12683 ) |
12684   sed '
12685      /^ac_cv_env_/b end
12686      t clear
12687      :clear
12688      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12689      t end
12690      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12691      :end' >>confcache
12692 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12693   if test -w "$cache_file"; then
12694     if test "x$cache_file" != "x/dev/null"; then
12695       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12696 $as_echo "$as_me: updating cache $cache_file" >&6;}
12697       if test ! -f "$cache_file" || test -h "$cache_file"; then
12698         cat confcache >"$cache_file"
12699       else
12700         case $cache_file in #(
12701         */* | ?:*)
12702           mv -f confcache "$cache_file"$$ &&
12703           mv -f "$cache_file"$$ "$cache_file" ;; #(
12704         *)
12705           mv -f confcache "$cache_file" ;;
12706         esac
12707       fi
12708     fi
12709   else
12710     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12712   fi
12713 fi
12714 rm -f confcache
12715
12716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12717 # Let make expand exec_prefix.
12718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12719
12720 DEFS=-DHAVE_CONFIG_H
12721
12722 ac_libobjs=
12723 ac_ltlibobjs=
12724 U=
12725 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12726   # 1. Remove the extension, and $U if already installed.
12727   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12728   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12729   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12730   #    will be set to the directory where LIBOBJS objects are built.
12731   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12732   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12733 done
12734 LIBOBJS=$ac_libobjs
12735
12736 LTLIBOBJS=$ac_ltlibobjs
12737
12738
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12740 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12741    if test -n "$am_sleep_pid"; then
12742      # Hide warnings about reused PIDs.
12743      wait $am_sleep_pid 2>/dev/null
12744    fi
12745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12746 $as_echo "done" >&6; }
12747  if test -n "$EXEEXT"; then
12748   am__EXEEXT_TRUE=
12749   am__EXEEXT_FALSE='#'
12750 else
12751   am__EXEEXT_TRUE='#'
12752   am__EXEEXT_FALSE=
12753 fi
12754
12755 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12756   as_fn_error $? "conditional \"AMDEP\" was never defined.
12757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12758 fi
12759 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12760   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12762 fi
12763
12764 : "${CONFIG_STATUS=./config.status}"
12765 ac_write_fail=0
12766 ac_clean_files_save=$ac_clean_files
12767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12769 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12770 as_write_fail=0
12771 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12772 #! $SHELL
12773 # Generated by $as_me.
12774 # Run this file to recreate the current configuration.
12775 # Compiler output produced by configure, useful for debugging
12776 # configure, is in config.log if it exists.
12777
12778 debug=false
12779 ac_cs_recheck=false
12780 ac_cs_silent=false
12781
12782 SHELL=\${CONFIG_SHELL-$SHELL}
12783 export SHELL
12784 _ASEOF
12785 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12786 ## -------------------- ##
12787 ## M4sh Initialization. ##
12788 ## -------------------- ##
12789
12790 # Be more Bourne compatible
12791 DUALCASE=1; export DUALCASE # for MKS sh
12792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12793   emulate sh
12794   NULLCMD=:
12795   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12796   # is contrary to our usage.  Disable this feature.
12797   alias -g '${1+"$@"}'='"$@"'
12798   setopt NO_GLOB_SUBST
12799 else
12800   case `(set -o) 2>/dev/null` in #(
12801   *posix*) :
12802     set -o posix ;; #(
12803   *) :
12804      ;;
12805 esac
12806 fi
12807
12808
12809 as_nl='
12810 '
12811 export as_nl
12812 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12813 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12816 # Prefer a ksh shell builtin over an external printf program on Solaris,
12817 # but without wasting forks for bash or zsh.
12818 if test -z "$BASH_VERSION$ZSH_VERSION" \
12819     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12820   as_echo='print -r --'
12821   as_echo_n='print -rn --'
12822 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12823   as_echo='printf %s\n'
12824   as_echo_n='printf %s'
12825 else
12826   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12827     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12828     as_echo_n='/usr/ucb/echo -n'
12829   else
12830     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12831     as_echo_n_body='eval
12832       arg=$1;
12833       case $arg in #(
12834       *"$as_nl"*)
12835         expr "X$arg" : "X\\(.*\\)$as_nl";
12836         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12837       esac;
12838       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12839     '
12840     export as_echo_n_body
12841     as_echo_n='sh -c $as_echo_n_body as_echo'
12842   fi
12843   export as_echo_body
12844   as_echo='sh -c $as_echo_body as_echo'
12845 fi
12846
12847 # The user is always right.
12848 if test "${PATH_SEPARATOR+set}" != set; then
12849   PATH_SEPARATOR=:
12850   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12851     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12852       PATH_SEPARATOR=';'
12853   }
12854 fi
12855
12856
12857 # IFS
12858 # We need space, tab and new line, in precisely that order.  Quoting is
12859 # there to prevent editors from complaining about space-tab.
12860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12861 # splitting by setting IFS to empty value.)
12862 IFS=" ""        $as_nl"
12863
12864 # Find who we are.  Look in the path if we contain no directory separator.
12865 as_myself=
12866 case $0 in #((
12867   *[\\/]* ) as_myself=$0 ;;
12868   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12869 for as_dir in $PATH
12870 do
12871   IFS=$as_save_IFS
12872   test -z "$as_dir" && as_dir=.
12873     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12874   done
12875 IFS=$as_save_IFS
12876
12877      ;;
12878 esac
12879 # We did not find ourselves, most probably we were run as `sh COMMAND'
12880 # in which case we are not to be found in the path.
12881 if test "x$as_myself" = x; then
12882   as_myself=$0
12883 fi
12884 if test ! -f "$as_myself"; then
12885   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12886   exit 1
12887 fi
12888
12889 # Unset variables that we do not need and which cause bugs (e.g. in
12890 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12891 # suppresses any "Segmentation fault" message there.  '((' could
12892 # trigger a bug in pdksh 5.2.14.
12893 for as_var in BASH_ENV ENV MAIL MAILPATH
12894 do eval test x\${$as_var+set} = xset \
12895   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12896 done
12897 PS1='$ '
12898 PS2='> '
12899 PS4='+ '
12900
12901 # NLS nuisances.
12902 LC_ALL=C
12903 export LC_ALL
12904 LANGUAGE=C
12905 export LANGUAGE
12906
12907 # CDPATH.
12908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12909
12910
12911 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12912 # ----------------------------------------
12913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12915 # script with STATUS, using 1 if that was 0.
12916 as_fn_error ()
12917 {
12918   as_status=$1; test $as_status -eq 0 && as_status=1
12919   if test "$4"; then
12920     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12921     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12922   fi
12923   $as_echo "$as_me: error: $2" >&2
12924   as_fn_exit $as_status
12925 } # as_fn_error
12926
12927
12928 # as_fn_set_status STATUS
12929 # -----------------------
12930 # Set $? to STATUS, without forking.
12931 as_fn_set_status ()
12932 {
12933   return $1
12934 } # as_fn_set_status
12935
12936 # as_fn_exit STATUS
12937 # -----------------
12938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12939 as_fn_exit ()
12940 {
12941   set +e
12942   as_fn_set_status $1
12943   exit $1
12944 } # as_fn_exit
12945
12946 # as_fn_unset VAR
12947 # ---------------
12948 # Portably unset VAR.
12949 as_fn_unset ()
12950 {
12951   { eval $1=; unset $1;}
12952 }
12953 as_unset=as_fn_unset
12954 # as_fn_append VAR VALUE
12955 # ----------------------
12956 # Append the text in VALUE to the end of the definition contained in VAR. Take
12957 # advantage of any shell optimizations that allow amortized linear growth over
12958 # repeated appends, instead of the typical quadratic growth present in naive
12959 # implementations.
12960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12961   eval 'as_fn_append ()
12962   {
12963     eval $1+=\$2
12964   }'
12965 else
12966   as_fn_append ()
12967   {
12968     eval $1=\$$1\$2
12969   }
12970 fi # as_fn_append
12971
12972 # as_fn_arith ARG...
12973 # ------------------
12974 # Perform arithmetic evaluation on the ARGs, and store the result in the
12975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12976 # must be portable across $(()) and expr.
12977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12978   eval 'as_fn_arith ()
12979   {
12980     as_val=$(( $* ))
12981   }'
12982 else
12983   as_fn_arith ()
12984   {
12985     as_val=`expr "$@" || test $? -eq 1`
12986   }
12987 fi # as_fn_arith
12988
12989
12990 if expr a : '\(a\)' >/dev/null 2>&1 &&
12991    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12992   as_expr=expr
12993 else
12994   as_expr=false
12995 fi
12996
12997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12998   as_basename=basename
12999 else
13000   as_basename=false
13001 fi
13002
13003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13004   as_dirname=dirname
13005 else
13006   as_dirname=false
13007 fi
13008
13009 as_me=`$as_basename -- "$0" ||
13010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13011          X"$0" : 'X\(//\)$' \| \
13012          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13013 $as_echo X/"$0" |
13014     sed '/^.*\/\([^/][^/]*\)\/*$/{
13015             s//\1/
13016             q
13017           }
13018           /^X\/\(\/\/\)$/{
13019             s//\1/
13020             q
13021           }
13022           /^X\/\(\/\).*/{
13023             s//\1/
13024             q
13025           }
13026           s/.*/./; q'`
13027
13028 # Avoid depending upon Character Ranges.
13029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13032 as_cr_digits='0123456789'
13033 as_cr_alnum=$as_cr_Letters$as_cr_digits
13034
13035 ECHO_C= ECHO_N= ECHO_T=
13036 case `echo -n x` in #(((((
13037 -n*)
13038   case `echo 'xy\c'` in
13039   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13040   xy)  ECHO_C='\c';;
13041   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13042        ECHO_T=' ';;
13043   esac;;
13044 *)
13045   ECHO_N='-n';;
13046 esac
13047
13048 rm -f conf$$ conf$$.exe conf$$.file
13049 if test -d conf$$.dir; then
13050   rm -f conf$$.dir/conf$$.file
13051 else
13052   rm -f conf$$.dir
13053   mkdir conf$$.dir 2>/dev/null
13054 fi
13055 if (echo >conf$$.file) 2>/dev/null; then
13056   if ln -s conf$$.file conf$$ 2>/dev/null; then
13057     as_ln_s='ln -s'
13058     # ... but there are two gotchas:
13059     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13060     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13061     # In both cases, we have to default to `cp -pR'.
13062     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13063       as_ln_s='cp -pR'
13064   elif ln conf$$.file conf$$ 2>/dev/null; then
13065     as_ln_s=ln
13066   else
13067     as_ln_s='cp -pR'
13068   fi
13069 else
13070   as_ln_s='cp -pR'
13071 fi
13072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13073 rmdir conf$$.dir 2>/dev/null
13074
13075
13076 # as_fn_mkdir_p
13077 # -------------
13078 # Create "$as_dir" as a directory, including parents if necessary.
13079 as_fn_mkdir_p ()
13080 {
13081
13082   case $as_dir in #(
13083   -*) as_dir=./$as_dir;;
13084   esac
13085   test -d "$as_dir" || eval $as_mkdir_p || {
13086     as_dirs=
13087     while :; do
13088       case $as_dir in #(
13089       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13090       *) as_qdir=$as_dir;;
13091       esac
13092       as_dirs="'$as_qdir' $as_dirs"
13093       as_dir=`$as_dirname -- "$as_dir" ||
13094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13095          X"$as_dir" : 'X\(//\)[^/]' \| \
13096          X"$as_dir" : 'X\(//\)$' \| \
13097          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13098 $as_echo X"$as_dir" |
13099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13100             s//\1/
13101             q
13102           }
13103           /^X\(\/\/\)[^/].*/{
13104             s//\1/
13105             q
13106           }
13107           /^X\(\/\/\)$/{
13108             s//\1/
13109             q
13110           }
13111           /^X\(\/\).*/{
13112             s//\1/
13113             q
13114           }
13115           s/.*/./; q'`
13116       test -d "$as_dir" && break
13117     done
13118     test -z "$as_dirs" || eval "mkdir $as_dirs"
13119   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13120
13121
13122 } # as_fn_mkdir_p
13123 if mkdir -p . 2>/dev/null; then
13124   as_mkdir_p='mkdir -p "$as_dir"'
13125 else
13126   test -d ./-p && rmdir ./-p
13127   as_mkdir_p=false
13128 fi
13129
13130
13131 # as_fn_executable_p FILE
13132 # -----------------------
13133 # Test if FILE is an executable regular file.
13134 as_fn_executable_p ()
13135 {
13136   test -f "$1" && test -x "$1"
13137 } # as_fn_executable_p
13138 as_test_x='test -x'
13139 as_executable_p=as_fn_executable_p
13140
13141 # Sed expression to map a string onto a valid CPP name.
13142 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13143
13144 # Sed expression to map a string onto a valid variable name.
13145 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13146
13147
13148 exec 6>&1
13149 ## ----------------------------------- ##
13150 ## Main body of $CONFIG_STATUS script. ##
13151 ## ----------------------------------- ##
13152 _ASEOF
13153 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13154
13155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13156 # Save the log message, to keep $0 and so on meaningful, and to
13157 # report actual input values of CONFIG_FILES etc. instead of their
13158 # values after options handling.
13159 ac_log="
13160 This file was extended by libzip $as_me 1.1.1, which was
13161 generated by GNU Autoconf 2.69.  Invocation command line was
13162
13163   CONFIG_FILES    = $CONFIG_FILES
13164   CONFIG_HEADERS  = $CONFIG_HEADERS
13165   CONFIG_LINKS    = $CONFIG_LINKS
13166   CONFIG_COMMANDS = $CONFIG_COMMANDS
13167   $ $0 $@
13168
13169 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13170 "
13171
13172 _ACEOF
13173
13174 case $ac_config_files in *"
13175 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13176 esac
13177
13178 case $ac_config_headers in *"
13179 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13180 esac
13181
13182
13183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13184 # Files that config.status was made for.
13185 config_files="$ac_config_files"
13186 config_headers="$ac_config_headers"
13187 config_commands="$ac_config_commands"
13188
13189 _ACEOF
13190
13191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13192 ac_cs_usage="\
13193 \`$as_me' instantiates files and other configuration actions
13194 from templates according to the current configuration.  Unless the files
13195 and actions are specified as TAGs, all are instantiated by default.
13196
13197 Usage: $0 [OPTION]... [TAG]...
13198
13199   -h, --help       print this help, then exit
13200   -V, --version    print version number and configuration settings, then exit
13201       --config     print configuration, then exit
13202   -q, --quiet, --silent
13203                    do not print progress messages
13204   -d, --debug      don't remove temporary files
13205       --recheck    update $as_me by reconfiguring in the same conditions
13206       --file=FILE[:TEMPLATE]
13207                    instantiate the configuration file FILE
13208       --header=FILE[:TEMPLATE]
13209                    instantiate the configuration header FILE
13210
13211 Configuration files:
13212 $config_files
13213
13214 Configuration headers:
13215 $config_headers
13216
13217 Configuration commands:
13218 $config_commands
13219
13220 Report bugs to <libzip@nih.at>."
13221
13222 _ACEOF
13223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13224 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13225 ac_cs_version="\\
13226 libzip config.status 1.1.1
13227 configured by $0, generated by GNU Autoconf 2.69,
13228   with options \\"\$ac_cs_config\\"
13229
13230 Copyright (C) 2012 Free Software Foundation, Inc.
13231 This config.status script is free software; the Free Software Foundation
13232 gives unlimited permission to copy, distribute and modify it."
13233
13234 ac_pwd='$ac_pwd'
13235 srcdir='$srcdir'
13236 INSTALL='$INSTALL'
13237 MKDIR_P='$MKDIR_P'
13238 AWK='$AWK'
13239 test -n "\$AWK" || AWK=awk
13240 _ACEOF
13241
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243 # The default lists apply if the user does not specify any file.
13244 ac_need_defaults=:
13245 while test $# != 0
13246 do
13247   case $1 in
13248   --*=?*)
13249     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13250     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13251     ac_shift=:
13252     ;;
13253   --*=)
13254     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13255     ac_optarg=
13256     ac_shift=:
13257     ;;
13258   *)
13259     ac_option=$1
13260     ac_optarg=$2
13261     ac_shift=shift
13262     ;;
13263   esac
13264
13265   case $ac_option in
13266   # Handling of the options.
13267   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13268     ac_cs_recheck=: ;;
13269   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13270     $as_echo "$ac_cs_version"; exit ;;
13271   --config | --confi | --conf | --con | --co | --c )
13272     $as_echo "$ac_cs_config"; exit ;;
13273   --debug | --debu | --deb | --de | --d | -d )
13274     debug=: ;;
13275   --file | --fil | --fi | --f )
13276     $ac_shift
13277     case $ac_optarg in
13278     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13279     '') as_fn_error $? "missing file argument" ;;
13280     esac
13281     as_fn_append CONFIG_FILES " '$ac_optarg'"
13282     ac_need_defaults=false;;
13283   --header | --heade | --head | --hea )
13284     $ac_shift
13285     case $ac_optarg in
13286     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13287     esac
13288     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13289     ac_need_defaults=false;;
13290   --he | --h)
13291     # Conflict between --help and --header
13292     as_fn_error $? "ambiguous option: \`$1'
13293 Try \`$0 --help' for more information.";;
13294   --help | --hel | -h )
13295     $as_echo "$ac_cs_usage"; exit ;;
13296   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13297   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13298     ac_cs_silent=: ;;
13299
13300   # This is an error.
13301   -*) as_fn_error $? "unrecognized option: \`$1'
13302 Try \`$0 --help' for more information." ;;
13303
13304   *) as_fn_append ac_config_targets " $1"
13305      ac_need_defaults=false ;;
13306
13307   esac
13308   shift
13309 done
13310
13311 ac_configure_extra_args=
13312
13313 if $ac_cs_silent; then
13314   exec 6>/dev/null
13315   ac_configure_extra_args="$ac_configure_extra_args --silent"
13316 fi
13317
13318 _ACEOF
13319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13320 if \$ac_cs_recheck; then
13321   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13322   shift
13323   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13324   CONFIG_SHELL='$SHELL'
13325   export CONFIG_SHELL
13326   exec "\$@"
13327 fi
13328
13329 _ACEOF
13330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13331 exec 5>>config.log
13332 {
13333   echo
13334   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13335 ## Running $as_me. ##
13336 _ASBOX
13337   $as_echo "$ac_log"
13338 } >&5
13339
13340 _ACEOF
13341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13342 #
13343 # INIT-COMMANDS
13344 #
13345 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13346
13347
13348 # The HP-UX ksh and POSIX shell print the target directory to stdout
13349 # if CDPATH is set.
13350 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13351
13352 sed_quote_subst='$sed_quote_subst'
13353 double_quote_subst='$double_quote_subst'
13354 delay_variable_subst='$delay_variable_subst'
13355 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13356 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13357 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13358 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13359 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13360 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13361 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13362 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13363 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13364 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13365 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13366 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13367 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13368 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13369 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13370 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13371 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13372 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13373 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13374 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13375 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13376 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13377 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13378 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13379 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13380 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13381 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13382 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13383 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13384 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13385 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13386 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13387 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13388 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13389 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13390 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13391 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13392 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13393 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13394 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13395 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13396 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13397 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13398 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13399 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13400 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13401 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13402 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13403 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13404 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13405 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13406 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13407 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13408 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13409 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13410 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13411 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"`'
13412 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13413 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13414 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13415 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13416 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13417 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13418 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13419 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13420 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13421 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13422 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13423 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13424 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13425 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13426 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13427 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13428 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13429 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13430 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13431 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13432 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13433 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13434 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13435 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13436 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13437 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13438 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13439 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13440 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13441 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13442 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13443 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13444 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13445 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13446 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13447 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13448 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13449 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13450 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13451 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13452 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13453 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13454 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13455 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13456 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13457 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13458 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13459 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13460 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13461 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13462 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13463 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13464 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13465 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13466 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13467 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13468 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13469 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13470 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13471 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13472 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13473 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13474 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13475 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13476 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13477 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13478 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13479 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13480 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13481 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13482 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13483 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13484 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13485
13486 LTCC='$LTCC'
13487 LTCFLAGS='$LTCFLAGS'
13488 compiler='$compiler_DEFAULT'
13489
13490 # A function that is used when there is no print builtin or printf.
13491 func_fallback_echo ()
13492 {
13493   eval 'cat <<_LTECHO_EOF
13494 \$1
13495 _LTECHO_EOF'
13496 }
13497
13498 # Quote evaled strings.
13499 for var in SHELL \
13500 ECHO \
13501 PATH_SEPARATOR \
13502 SED \
13503 GREP \
13504 EGREP \
13505 FGREP \
13506 LD \
13507 NM \
13508 LN_S \
13509 lt_SP2NL \
13510 lt_NL2SP \
13511 reload_flag \
13512 OBJDUMP \
13513 deplibs_check_method \
13514 file_magic_cmd \
13515 file_magic_glob \
13516 want_nocaseglob \
13517 DLLTOOL \
13518 sharedlib_from_linklib_cmd \
13519 AR \
13520 AR_FLAGS \
13521 archiver_list_spec \
13522 STRIP \
13523 RANLIB \
13524 CC \
13525 CFLAGS \
13526 compiler \
13527 lt_cv_sys_global_symbol_pipe \
13528 lt_cv_sys_global_symbol_to_cdecl \
13529 lt_cv_sys_global_symbol_to_c_name_address \
13530 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13531 nm_file_list_spec \
13532 lt_prog_compiler_no_builtin_flag \
13533 lt_prog_compiler_pic \
13534 lt_prog_compiler_wl \
13535 lt_prog_compiler_static \
13536 lt_cv_prog_compiler_c_o \
13537 need_locks \
13538 MANIFEST_TOOL \
13539 DSYMUTIL \
13540 NMEDIT \
13541 LIPO \
13542 OTOOL \
13543 OTOOL64 \
13544 shrext_cmds \
13545 export_dynamic_flag_spec \
13546 whole_archive_flag_spec \
13547 compiler_needs_object \
13548 with_gnu_ld \
13549 allow_undefined_flag \
13550 no_undefined_flag \
13551 hardcode_libdir_flag_spec \
13552 hardcode_libdir_separator \
13553 exclude_expsyms \
13554 include_expsyms \
13555 file_list_spec \
13556 variables_saved_for_relink \
13557 libname_spec \
13558 library_names_spec \
13559 soname_spec \
13560 install_override_mode \
13561 finish_eval \
13562 old_striplib \
13563 striplib; do
13564     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13565     *[\\\\\\\`\\"\\\$]*)
13566       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13567       ;;
13568     *)
13569       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13570       ;;
13571     esac
13572 done
13573
13574 # Double-quote double-evaled strings.
13575 for var in reload_cmds \
13576 old_postinstall_cmds \
13577 old_postuninstall_cmds \
13578 old_archive_cmds \
13579 extract_expsyms_cmds \
13580 old_archive_from_new_cmds \
13581 old_archive_from_expsyms_cmds \
13582 archive_cmds \
13583 archive_expsym_cmds \
13584 module_cmds \
13585 module_expsym_cmds \
13586 export_symbols_cmds \
13587 prelink_cmds \
13588 postlink_cmds \
13589 postinstall_cmds \
13590 postuninstall_cmds \
13591 finish_cmds \
13592 sys_lib_search_path_spec \
13593 sys_lib_dlsearch_path_spec; do
13594     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13595     *[\\\\\\\`\\"\\\$]*)
13596       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13597       ;;
13598     *)
13599       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13600       ;;
13601     esac
13602 done
13603
13604 ac_aux_dir='$ac_aux_dir'
13605 xsi_shell='$xsi_shell'
13606 lt_shell_append='$lt_shell_append'
13607
13608 # See if we are running on zsh, and set the options which allow our
13609 # commands through without removal of \ escapes INIT.
13610 if test -n "\${ZSH_VERSION+set}" ; then
13611    setopt NO_GLOB_SUBST
13612 fi
13613
13614
13615     PACKAGE='$PACKAGE'
13616     VERSION='$VERSION'
13617     TIMESTAMP='$TIMESTAMP'
13618     RM='$RM'
13619     ofile='$ofile'
13620
13621
13622
13623
13624 _ACEOF
13625
13626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13627
13628 # Handling of arguments.
13629 for ac_config_target in $ac_config_targets
13630 do
13631   case $ac_config_target in
13632     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13633     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13634     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13635     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13636     "libzip.pc") CONFIG_FILES="$CONFIG_FILES libzip.pc" ;;
13637     "libzip-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libzip-uninstalled.pc" ;;
13638     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13639     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13640     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13641     "regress/Makefile") CONFIG_FILES="$CONFIG_FILES regress/Makefile" ;;
13642     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13643
13644   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13645   esac
13646 done
13647
13648
13649 # If the user did not use the arguments to specify the items to instantiate,
13650 # then the envvar interface is used.  Set only those that are not.
13651 # We use the long form for the default assignment because of an extremely
13652 # bizarre bug on SunOS 4.1.3.
13653 if $ac_need_defaults; then
13654   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13655   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13656   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13657 fi
13658
13659 # Have a temporary directory for convenience.  Make it in the build tree
13660 # simply because there is no reason against having it here, and in addition,
13661 # creating and moving files from /tmp can sometimes cause problems.
13662 # Hook for its removal unless debugging.
13663 # Note that there is a small window in which the directory will not be cleaned:
13664 # after its creation but before its name has been assigned to `$tmp'.
13665 $debug ||
13666 {
13667   tmp= ac_tmp=
13668   trap 'exit_status=$?
13669   : "${ac_tmp:=$tmp}"
13670   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13671 ' 0
13672   trap 'as_fn_exit 1' 1 2 13 15
13673 }
13674 # Create a (secure) tmp directory for tmp files.
13675
13676 {
13677   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13678   test -d "$tmp"
13679 }  ||
13680 {
13681   tmp=./conf$$-$RANDOM
13682   (umask 077 && mkdir "$tmp")
13683 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13684 ac_tmp=$tmp
13685
13686 # Set up the scripts for CONFIG_FILES section.
13687 # No need to generate them if there are no CONFIG_FILES.
13688 # This happens for instance with `./config.status config.h'.
13689 if test -n "$CONFIG_FILES"; then
13690
13691
13692 ac_cr=`echo X | tr X '\015'`
13693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13694 # But we know of no other shell where ac_cr would be empty at this
13695 # point, so we can use a bashism as a fallback.
13696 if test "x$ac_cr" = x; then
13697   eval ac_cr=\$\'\\r\'
13698 fi
13699 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13701   ac_cs_awk_cr='\\r'
13702 else
13703   ac_cs_awk_cr=$ac_cr
13704 fi
13705
13706 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13707 _ACEOF
13708
13709
13710 {
13711   echo "cat >conf$$subs.awk <<_ACEOF" &&
13712   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13713   echo "_ACEOF"
13714 } >conf$$subs.sh ||
13715   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13716 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13717 ac_delim='%!_!# '
13718 for ac_last_try in false false false false false :; do
13719   . ./conf$$subs.sh ||
13720     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13721
13722   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13723   if test $ac_delim_n = $ac_delim_num; then
13724     break
13725   elif $ac_last_try; then
13726     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13727   else
13728     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13729   fi
13730 done
13731 rm -f conf$$subs.sh
13732
13733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13734 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13735 _ACEOF
13736 sed -n '
13737 h
13738 s/^/S["/; s/!.*/"]=/
13739 p
13740 g
13741 s/^[^!]*!//
13742 :repl
13743 t repl
13744 s/'"$ac_delim"'$//
13745 t delim
13746 :nl
13747 h
13748 s/\(.\{148\}\)..*/\1/
13749 t more1
13750 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13751 p
13752 n
13753 b repl
13754 :more1
13755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13756 p
13757 g
13758 s/.\{148\}//
13759 t nl
13760 :delim
13761 h
13762 s/\(.\{148\}\)..*/\1/
13763 t more2
13764 s/["\\]/\\&/g; s/^/"/; s/$/"/
13765 p
13766 b
13767 :more2
13768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13769 p
13770 g
13771 s/.\{148\}//
13772 t delim
13773 ' <conf$$subs.awk | sed '
13774 /^[^""]/{
13775   N
13776   s/\n//
13777 }
13778 ' >>$CONFIG_STATUS || ac_write_fail=1
13779 rm -f conf$$subs.awk
13780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13781 _ACAWK
13782 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13783   for (key in S) S_is_set[key] = 1
13784   FS = "\a"
13785
13786 }
13787 {
13788   line = $ 0
13789   nfields = split(line, field, "@")
13790   substed = 0
13791   len = length(field[1])
13792   for (i = 2; i < nfields; i++) {
13793     key = field[i]
13794     keylen = length(key)
13795     if (S_is_set[key]) {
13796       value = S[key]
13797       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13798       len += length(value) + length(field[++i])
13799       substed = 1
13800     } else
13801       len += 1 + keylen
13802   }
13803
13804   print line
13805 }
13806
13807 _ACAWK
13808 _ACEOF
13809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13810 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13811   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13812 else
13813   cat
13814 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13815   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13816 _ACEOF
13817
13818 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13819 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13820 # trailing colons and then remove the whole line if VPATH becomes empty
13821 # (actually we leave an empty line to preserve line numbers).
13822 if test "x$srcdir" = x.; then
13823   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13824 h
13825 s///
13826 s/^/:/
13827 s/[      ]*$/:/
13828 s/:\$(srcdir):/:/g
13829 s/:\${srcdir}:/:/g
13830 s/:@srcdir@:/:/g
13831 s/^:*//
13832 s/:*$//
13833 x
13834 s/\(=[   ]*\).*/\1/
13835 G
13836 s/\n//
13837 s/^[^=]*=[       ]*$//
13838 }'
13839 fi
13840
13841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13842 fi # test -n "$CONFIG_FILES"
13843
13844 # Set up the scripts for CONFIG_HEADERS section.
13845 # No need to generate them if there are no CONFIG_HEADERS.
13846 # This happens for instance with `./config.status Makefile'.
13847 if test -n "$CONFIG_HEADERS"; then
13848 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13849 BEGIN {
13850 _ACEOF
13851
13852 # Transform confdefs.h into an awk script `defines.awk', embedded as
13853 # here-document in config.status, that substitutes the proper values into
13854 # config.h.in to produce config.h.
13855
13856 # Create a delimiter string that does not exist in confdefs.h, to ease
13857 # handling of long lines.
13858 ac_delim='%!_!# '
13859 for ac_last_try in false false :; do
13860   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13861   if test -z "$ac_tt"; then
13862     break
13863   elif $ac_last_try; then
13864     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13865   else
13866     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13867   fi
13868 done
13869
13870 # For the awk script, D is an array of macro values keyed by name,
13871 # likewise P contains macro parameters if any.  Preserve backslash
13872 # newline sequences.
13873
13874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13875 sed -n '
13876 s/.\{148\}/&'"$ac_delim"'/g
13877 t rset
13878 :rset
13879 s/^[     ]*#[    ]*define[       ][      ]*/ /
13880 t def
13881 d
13882 :def
13883 s/\\$//
13884 t bsnl
13885 s/["\\]/\\&/g
13886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13887 D["\1"]=" \3"/p
13888 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13889 d
13890 :bsnl
13891 s/["\\]/\\&/g
13892 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13893 D["\1"]=" \3\\\\\\n"\\/p
13894 t cont
13895 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13896 t cont
13897 d
13898 :cont
13899 n
13900 s/.\{148\}/&'"$ac_delim"'/g
13901 t clear
13902 :clear
13903 s/\\$//
13904 t bsnlc
13905 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13906 d
13907 :bsnlc
13908 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13909 b cont
13910 ' <confdefs.h | sed '
13911 s/'"$ac_delim"'/"\\\
13912 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13913
13914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13915   for (key in D) D_is_set[key] = 1
13916   FS = "\a"
13917 }
13918 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13919   line = \$ 0
13920   split(line, arg, " ")
13921   if (arg[1] == "#") {
13922     defundef = arg[2]
13923     mac1 = arg[3]
13924   } else {
13925     defundef = substr(arg[1], 2)
13926     mac1 = arg[2]
13927   }
13928   split(mac1, mac2, "(") #)
13929   macro = mac2[1]
13930   prefix = substr(line, 1, index(line, defundef) - 1)
13931   if (D_is_set[macro]) {
13932     # Preserve the white space surrounding the "#".
13933     print prefix "define", macro P[macro] D[macro]
13934     next
13935   } else {
13936     # Replace #undef with comments.  This is necessary, for example,
13937     # in the case of _POSIX_SOURCE, which is predefined and required
13938     # on some systems where configure will not decide to define it.
13939     if (defundef == "undef") {
13940       print "/*", prefix defundef, macro, "*/"
13941       next
13942     }
13943   }
13944 }
13945 { print }
13946 _ACAWK
13947 _ACEOF
13948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13949   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13950 fi # test -n "$CONFIG_HEADERS"
13951
13952
13953 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13954 shift
13955 for ac_tag
13956 do
13957   case $ac_tag in
13958   :[FHLC]) ac_mode=$ac_tag; continue;;
13959   esac
13960   case $ac_mode$ac_tag in
13961   :[FHL]*:*);;
13962   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13963   :[FH]-) ac_tag=-:-;;
13964   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13965   esac
13966   ac_save_IFS=$IFS
13967   IFS=:
13968   set x $ac_tag
13969   IFS=$ac_save_IFS
13970   shift
13971   ac_file=$1
13972   shift
13973
13974   case $ac_mode in
13975   :L) ac_source=$1;;
13976   :[FH])
13977     ac_file_inputs=
13978     for ac_f
13979     do
13980       case $ac_f in
13981       -) ac_f="$ac_tmp/stdin";;
13982       *) # Look for the file first in the build tree, then in the source tree
13983          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13984          # because $ac_f cannot contain `:'.
13985          test -f "$ac_f" ||
13986            case $ac_f in
13987            [\\/$]*) false;;
13988            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13989            esac ||
13990            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13991       esac
13992       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13993       as_fn_append ac_file_inputs " '$ac_f'"
13994     done
13995
13996     # Let's still pretend it is `configure' which instantiates (i.e., don't
13997     # use $as_me), people would be surprised to read:
13998     #    /* config.h.  Generated by config.status.  */
13999     configure_input='Generated from '`
14000           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14001         `' by configure.'
14002     if test x"$ac_file" != x-; then
14003       configure_input="$ac_file.  $configure_input"
14004       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14005 $as_echo "$as_me: creating $ac_file" >&6;}
14006     fi
14007     # Neutralize special characters interpreted by sed in replacement strings.
14008     case $configure_input in #(
14009     *\&* | *\|* | *\\* )
14010        ac_sed_conf_input=`$as_echo "$configure_input" |
14011        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14012     *) ac_sed_conf_input=$configure_input;;
14013     esac
14014
14015     case $ac_tag in
14016     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14017       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14018     esac
14019     ;;
14020   esac
14021
14022   ac_dir=`$as_dirname -- "$ac_file" ||
14023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14024          X"$ac_file" : 'X\(//\)[^/]' \| \
14025          X"$ac_file" : 'X\(//\)$' \| \
14026          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14027 $as_echo X"$ac_file" |
14028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14029             s//\1/
14030             q
14031           }
14032           /^X\(\/\/\)[^/].*/{
14033             s//\1/
14034             q
14035           }
14036           /^X\(\/\/\)$/{
14037             s//\1/
14038             q
14039           }
14040           /^X\(\/\).*/{
14041             s//\1/
14042             q
14043           }
14044           s/.*/./; q'`
14045   as_dir="$ac_dir"; as_fn_mkdir_p
14046   ac_builddir=.
14047
14048 case "$ac_dir" in
14049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14050 *)
14051   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14052   # A ".." for each directory in $ac_dir_suffix.
14053   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14054   case $ac_top_builddir_sub in
14055   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14056   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14057   esac ;;
14058 esac
14059 ac_abs_top_builddir=$ac_pwd
14060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14061 # for backward compatibility:
14062 ac_top_builddir=$ac_top_build_prefix
14063
14064 case $srcdir in
14065   .)  # We are building in place.
14066     ac_srcdir=.
14067     ac_top_srcdir=$ac_top_builddir_sub
14068     ac_abs_top_srcdir=$ac_pwd ;;
14069   [\\/]* | ?:[\\/]* )  # Absolute name.
14070     ac_srcdir=$srcdir$ac_dir_suffix;
14071     ac_top_srcdir=$srcdir
14072     ac_abs_top_srcdir=$srcdir ;;
14073   *) # Relative name.
14074     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14075     ac_top_srcdir=$ac_top_build_prefix$srcdir
14076     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14077 esac
14078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14079
14080
14081   case $ac_mode in
14082   :F)
14083   #
14084   # CONFIG_FILE
14085   #
14086
14087   case $INSTALL in
14088   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14089   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14090   esac
14091   ac_MKDIR_P=$MKDIR_P
14092   case $MKDIR_P in
14093   [\\/$]* | ?:[\\/]* ) ;;
14094   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14095   esac
14096 _ACEOF
14097
14098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14099 # If the template does not know about datarootdir, expand it.
14100 # FIXME: This hack should be removed a few years after 2.60.
14101 ac_datarootdir_hack=; ac_datarootdir_seen=
14102 ac_sed_dataroot='
14103 /datarootdir/ {
14104   p
14105   q
14106 }
14107 /@datadir@/p
14108 /@docdir@/p
14109 /@infodir@/p
14110 /@localedir@/p
14111 /@mandir@/p'
14112 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14113 *datarootdir*) ac_datarootdir_seen=yes;;
14114 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14115   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14116 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14117 _ACEOF
14118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14119   ac_datarootdir_hack='
14120   s&@datadir@&$datadir&g
14121   s&@docdir@&$docdir&g
14122   s&@infodir@&$infodir&g
14123   s&@localedir@&$localedir&g
14124   s&@mandir@&$mandir&g
14125   s&\\\${datarootdir}&$datarootdir&g' ;;
14126 esac
14127 _ACEOF
14128
14129 # Neutralize VPATH when `$srcdir' = `.'.
14130 # Shell code in configure.ac might set extrasub.
14131 # FIXME: do we really want to maintain this feature?
14132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14133 ac_sed_extra="$ac_vpsub
14134 $extrasub
14135 _ACEOF
14136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14137 :t
14138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14139 s|@configure_input@|$ac_sed_conf_input|;t t
14140 s&@top_builddir@&$ac_top_builddir_sub&;t t
14141 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14142 s&@srcdir@&$ac_srcdir&;t t
14143 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14144 s&@top_srcdir@&$ac_top_srcdir&;t t
14145 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14146 s&@builddir@&$ac_builddir&;t t
14147 s&@abs_builddir@&$ac_abs_builddir&;t t
14148 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14149 s&@INSTALL@&$ac_INSTALL&;t t
14150 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14151 $ac_datarootdir_hack
14152 "
14153 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14154   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14155
14156 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14157   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14158   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14159       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14161 which seems to be undefined.  Please make sure it is defined" >&5
14162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14163 which seems to be undefined.  Please make sure it is defined" >&2;}
14164
14165   rm -f "$ac_tmp/stdin"
14166   case $ac_file in
14167   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14168   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14169   esac \
14170   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14171  ;;
14172   :H)
14173   #
14174   # CONFIG_HEADER
14175   #
14176   if test x"$ac_file" != x-; then
14177     {
14178       $as_echo "/* $configure_input  */" \
14179       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14180     } >"$ac_tmp/config.h" \
14181       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14182     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14183       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14185     else
14186       rm -f "$ac_file"
14187       mv "$ac_tmp/config.h" "$ac_file" \
14188         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14189     fi
14190   else
14191     $as_echo "/* $configure_input  */" \
14192       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14193       || as_fn_error $? "could not create -" "$LINENO" 5
14194   fi
14195 # Compute "$ac_file"'s index in $config_headers.
14196 _am_arg="$ac_file"
14197 _am_stamp_count=1
14198 for _am_header in $config_headers :; do
14199   case $_am_header in
14200     $_am_arg | $_am_arg:* )
14201       break ;;
14202     * )
14203       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14204   esac
14205 done
14206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14208          X"$_am_arg" : 'X\(//\)[^/]' \| \
14209          X"$_am_arg" : 'X\(//\)$' \| \
14210          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14211 $as_echo X"$_am_arg" |
14212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14213             s//\1/
14214             q
14215           }
14216           /^X\(\/\/\)[^/].*/{
14217             s//\1/
14218             q
14219           }
14220           /^X\(\/\/\)$/{
14221             s//\1/
14222             q
14223           }
14224           /^X\(\/\).*/{
14225             s//\1/
14226             q
14227           }
14228           s/.*/./; q'`/stamp-h$_am_stamp_count
14229  ;;
14230
14231   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14232 $as_echo "$as_me: executing $ac_file commands" >&6;}
14233  ;;
14234   esac
14235
14236
14237   case $ac_file$ac_mode in
14238     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14239   # Older Autoconf quotes --file arguments for eval, but not when files
14240   # are listed without --file.  Let's play safe and only enable the eval
14241   # if we detect the quoting.
14242   case $CONFIG_FILES in
14243   *\'*) eval set x "$CONFIG_FILES" ;;
14244   *)   set x $CONFIG_FILES ;;
14245   esac
14246   shift
14247   for mf
14248   do
14249     # Strip MF so we end up with the name of the file.
14250     mf=`echo "$mf" | sed -e 's/:.*$//'`
14251     # Check whether this is an Automake generated Makefile or not.
14252     # We used to match only the files named 'Makefile.in', but
14253     # some people rename them; so instead we look at the file content.
14254     # Grep'ing the first line is not enough: some people post-process
14255     # each Makefile.in and add a new line on top of each file to say so.
14256     # Grep'ing the whole file is not good either: AIX grep has a line
14257     # limit of 2048, but all sed's we know have understand at least 4000.
14258     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14259       dirpart=`$as_dirname -- "$mf" ||
14260 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14261          X"$mf" : 'X\(//\)[^/]' \| \
14262          X"$mf" : 'X\(//\)$' \| \
14263          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14264 $as_echo X"$mf" |
14265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14266             s//\1/
14267             q
14268           }
14269           /^X\(\/\/\)[^/].*/{
14270             s//\1/
14271             q
14272           }
14273           /^X\(\/\/\)$/{
14274             s//\1/
14275             q
14276           }
14277           /^X\(\/\).*/{
14278             s//\1/
14279             q
14280           }
14281           s/.*/./; q'`
14282     else
14283       continue
14284     fi
14285     # Extract the definition of DEPDIR, am__include, and am__quote
14286     # from the Makefile without running 'make'.
14287     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14288     test -z "$DEPDIR" && continue
14289     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14290     test -z "$am__include" && continue
14291     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14292     # Find all dependency output files, they are included files with
14293     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14294     # simplest approach to changing $(DEPDIR) to its actual value in the
14295     # expansion.
14296     for file in `sed -n "
14297       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14298          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14299       # Make sure the directory exists.
14300       test -f "$dirpart/$file" && continue
14301       fdir=`$as_dirname -- "$file" ||
14302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14303          X"$file" : 'X\(//\)[^/]' \| \
14304          X"$file" : 'X\(//\)$' \| \
14305          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14306 $as_echo X"$file" |
14307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14308             s//\1/
14309             q
14310           }
14311           /^X\(\/\/\)[^/].*/{
14312             s//\1/
14313             q
14314           }
14315           /^X\(\/\/\)$/{
14316             s//\1/
14317             q
14318           }
14319           /^X\(\/\).*/{
14320             s//\1/
14321             q
14322           }
14323           s/.*/./; q'`
14324       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14325       # echo "creating $dirpart/$file"
14326       echo '# dummy' > "$dirpart/$file"
14327     done
14328   done
14329 }
14330  ;;
14331     "libtool":C)
14332
14333     # See if we are running on zsh, and set the options which allow our
14334     # commands through without removal of \ escapes.
14335     if test -n "${ZSH_VERSION+set}" ; then
14336       setopt NO_GLOB_SUBST
14337     fi
14338
14339     cfgfile="${ofile}T"
14340     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14341     $RM "$cfgfile"
14342
14343     cat <<_LT_EOF >> "$cfgfile"
14344 #! $SHELL
14345
14346 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14347 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14349 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14350 #
14351 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14352 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14353 #                 Foundation, Inc.
14354 #   Written by Gordon Matzigkeit, 1996
14355 #
14356 #   This file is part of GNU Libtool.
14357 #
14358 # GNU Libtool is free software; you can redistribute it and/or
14359 # modify it under the terms of the GNU General Public License as
14360 # published by the Free Software Foundation; either version 2 of
14361 # the License, or (at your option) any later version.
14362 #
14363 # As a special exception to the GNU General Public License,
14364 # if you distribute this file as part of a program or library that
14365 # is built using GNU Libtool, you may include this file under the
14366 # same distribution terms that you use for the rest of that program.
14367 #
14368 # GNU Libtool is distributed in the hope that it will be useful,
14369 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14370 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14371 # GNU General Public License for more details.
14372 #
14373 # You should have received a copy of the GNU General Public License
14374 # along with GNU Libtool; see the file COPYING.  If not, a copy
14375 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14376 # obtained by writing to the Free Software Foundation, Inc.,
14377 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14378
14379
14380 # The names of the tagged configurations supported by this script.
14381 available_tags=""
14382
14383 # ### BEGIN LIBTOOL CONFIG
14384
14385 # Which release of libtool.m4 was used?
14386 macro_version=$macro_version
14387 macro_revision=$macro_revision
14388
14389 # Whether or not to build shared libraries.
14390 build_libtool_libs=$enable_shared
14391
14392 # Whether or not to build static libraries.
14393 build_old_libs=$enable_static
14394
14395 # What type of objects to build.
14396 pic_mode=$pic_mode
14397
14398 # Whether or not to optimize for fast installation.
14399 fast_install=$enable_fast_install
14400
14401 # Shell to use when invoking shell scripts.
14402 SHELL=$lt_SHELL
14403
14404 # An echo program that protects backslashes.
14405 ECHO=$lt_ECHO
14406
14407 # The PATH separator for the build system.
14408 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14409
14410 # The host system.
14411 host_alias=$host_alias
14412 host=$host
14413 host_os=$host_os
14414
14415 # The build system.
14416 build_alias=$build_alias
14417 build=$build
14418 build_os=$build_os
14419
14420 # A sed program that does not truncate output.
14421 SED=$lt_SED
14422
14423 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14424 Xsed="\$SED -e 1s/^X//"
14425
14426 # A grep program that handles long lines.
14427 GREP=$lt_GREP
14428
14429 # An ERE matcher.
14430 EGREP=$lt_EGREP
14431
14432 # A literal string matcher.
14433 FGREP=$lt_FGREP
14434
14435 # A BSD- or MS-compatible name lister.
14436 NM=$lt_NM
14437
14438 # Whether we need soft or hard links.
14439 LN_S=$lt_LN_S
14440
14441 # What is the maximum length of a command?
14442 max_cmd_len=$max_cmd_len
14443
14444 # Object file suffix (normally "o").
14445 objext=$ac_objext
14446
14447 # Executable file suffix (normally "").
14448 exeext=$exeext
14449
14450 # whether the shell understands "unset".
14451 lt_unset=$lt_unset
14452
14453 # turn spaces into newlines.
14454 SP2NL=$lt_lt_SP2NL
14455
14456 # turn newlines into spaces.
14457 NL2SP=$lt_lt_NL2SP
14458
14459 # convert \$build file names to \$host format.
14460 to_host_file_cmd=$lt_cv_to_host_file_cmd
14461
14462 # convert \$build files to toolchain format.
14463 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14464
14465 # An object symbol dumper.
14466 OBJDUMP=$lt_OBJDUMP
14467
14468 # Method to check whether dependent libraries are shared objects.
14469 deplibs_check_method=$lt_deplibs_check_method
14470
14471 # Command to use when deplibs_check_method = "file_magic".
14472 file_magic_cmd=$lt_file_magic_cmd
14473
14474 # How to find potential files when deplibs_check_method = "file_magic".
14475 file_magic_glob=$lt_file_magic_glob
14476
14477 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14478 want_nocaseglob=$lt_want_nocaseglob
14479
14480 # DLL creation program.
14481 DLLTOOL=$lt_DLLTOOL
14482
14483 # Command to associate shared and link libraries.
14484 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14485
14486 # The archiver.
14487 AR=$lt_AR
14488
14489 # Flags to create an archive.
14490 AR_FLAGS=$lt_AR_FLAGS
14491
14492 # How to feed a file listing to the archiver.
14493 archiver_list_spec=$lt_archiver_list_spec
14494
14495 # A symbol stripping program.
14496 STRIP=$lt_STRIP
14497
14498 # Commands used to install an old-style archive.
14499 RANLIB=$lt_RANLIB
14500 old_postinstall_cmds=$lt_old_postinstall_cmds
14501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14502
14503 # Whether to use a lock for old archive extraction.
14504 lock_old_archive_extraction=$lock_old_archive_extraction
14505
14506 # A C compiler.
14507 LTCC=$lt_CC
14508
14509 # LTCC compiler flags.
14510 LTCFLAGS=$lt_CFLAGS
14511
14512 # Take the output of nm and produce a listing of raw symbols and C names.
14513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14514
14515 # Transform the output of nm in a proper C declaration.
14516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14517
14518 # Transform the output of nm in a C name address pair.
14519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14520
14521 # Transform the output of nm in a C name address pair when lib prefix is needed.
14522 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14523
14524 # Specify filename containing input files for \$NM.
14525 nm_file_list_spec=$lt_nm_file_list_spec
14526
14527 # The root where to search for dependent libraries,and in which our libraries should be installed.
14528 lt_sysroot=$lt_sysroot
14529
14530 # The name of the directory that contains temporary libtool files.
14531 objdir=$objdir
14532
14533 # Used to examine libraries when file_magic_cmd begins with "file".
14534 MAGIC_CMD=$MAGIC_CMD
14535
14536 # Must we lock files when doing compilation?
14537 need_locks=$lt_need_locks
14538
14539 # Manifest tool.
14540 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14541
14542 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14543 DSYMUTIL=$lt_DSYMUTIL
14544
14545 # Tool to change global to local symbols on Mac OS X.
14546 NMEDIT=$lt_NMEDIT
14547
14548 # Tool to manipulate fat objects and archives on Mac OS X.
14549 LIPO=$lt_LIPO
14550
14551 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14552 OTOOL=$lt_OTOOL
14553
14554 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14555 OTOOL64=$lt_OTOOL64
14556
14557 # Old archive suffix (normally "a").
14558 libext=$libext
14559
14560 # Shared library suffix (normally ".so").
14561 shrext_cmds=$lt_shrext_cmds
14562
14563 # The commands to extract the exported symbol list from a shared archive.
14564 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14565
14566 # Variables whose values should be saved in libtool wrapper scripts and
14567 # restored at link time.
14568 variables_saved_for_relink=$lt_variables_saved_for_relink
14569
14570 # Do we need the "lib" prefix for modules?
14571 need_lib_prefix=$need_lib_prefix
14572
14573 # Do we need a version for libraries?
14574 need_version=$need_version
14575
14576 # Library versioning type.
14577 version_type=$version_type
14578
14579 # Shared library runtime path variable.
14580 runpath_var=$runpath_var
14581
14582 # Shared library path variable.
14583 shlibpath_var=$shlibpath_var
14584
14585 # Is shlibpath searched before the hard-coded library search path?
14586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14587
14588 # Format of library name prefix.
14589 libname_spec=$lt_libname_spec
14590
14591 # List of archive names.  First name is the real one, the rest are links.
14592 # The last name is the one that the linker finds with -lNAME
14593 library_names_spec=$lt_library_names_spec
14594
14595 # The coded name of the library, if different from the real name.
14596 soname_spec=$lt_soname_spec
14597
14598 # Permission mode override for installation of shared libraries.
14599 install_override_mode=$lt_install_override_mode
14600
14601 # Command to use after installation of a shared archive.
14602 postinstall_cmds=$lt_postinstall_cmds
14603
14604 # Command to use after uninstallation of a shared archive.
14605 postuninstall_cmds=$lt_postuninstall_cmds
14606
14607 # Commands used to finish a libtool library installation in a directory.
14608 finish_cmds=$lt_finish_cmds
14609
14610 # As "finish_cmds", except a single script fragment to be evaled but
14611 # not shown.
14612 finish_eval=$lt_finish_eval
14613
14614 # Whether we should hardcode library paths into libraries.
14615 hardcode_into_libs=$hardcode_into_libs
14616
14617 # Compile-time system search path for libraries.
14618 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14619
14620 # Run-time system search path for libraries.
14621 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14622
14623 # Whether dlopen is supported.
14624 dlopen_support=$enable_dlopen
14625
14626 # Whether dlopen of programs is supported.
14627 dlopen_self=$enable_dlopen_self
14628
14629 # Whether dlopen of statically linked programs is supported.
14630 dlopen_self_static=$enable_dlopen_self_static
14631
14632 # Commands to strip libraries.
14633 old_striplib=$lt_old_striplib
14634 striplib=$lt_striplib
14635
14636
14637 # The linker used to build libraries.
14638 LD=$lt_LD
14639
14640 # How to create reloadable object files.
14641 reload_flag=$lt_reload_flag
14642 reload_cmds=$lt_reload_cmds
14643
14644 # Commands used to build an old-style archive.
14645 old_archive_cmds=$lt_old_archive_cmds
14646
14647 # A language specific compiler.
14648 CC=$lt_compiler
14649
14650 # Is the compiler the GNU compiler?
14651 with_gcc=$GCC
14652
14653 # Compiler flag to turn off builtin functions.
14654 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14655
14656 # Additional compiler flags for building library objects.
14657 pic_flag=$lt_lt_prog_compiler_pic
14658
14659 # How to pass a linker flag through the compiler.
14660 wl=$lt_lt_prog_compiler_wl
14661
14662 # Compiler flag to prevent dynamic linking.
14663 link_static_flag=$lt_lt_prog_compiler_static
14664
14665 # Does compiler simultaneously support -c and -o options?
14666 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14667
14668 # Whether or not to add -lc for building shared libraries.
14669 build_libtool_need_lc=$archive_cmds_need_lc
14670
14671 # Whether or not to disallow shared libs when runtime libs are static.
14672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14673
14674 # Compiler flag to allow reflexive dlopens.
14675 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14676
14677 # Compiler flag to generate shared objects directly from archives.
14678 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14679
14680 # Whether the compiler copes with passing no objects directly.
14681 compiler_needs_object=$lt_compiler_needs_object
14682
14683 # Create an old-style archive from a shared archive.
14684 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14685
14686 # Create a temporary old-style archive to link instead of a shared archive.
14687 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14688
14689 # Commands used to build a shared archive.
14690 archive_cmds=$lt_archive_cmds
14691 archive_expsym_cmds=$lt_archive_expsym_cmds
14692
14693 # Commands used to build a loadable module if different from building
14694 # a shared archive.
14695 module_cmds=$lt_module_cmds
14696 module_expsym_cmds=$lt_module_expsym_cmds
14697
14698 # Whether we are building with GNU ld or not.
14699 with_gnu_ld=$lt_with_gnu_ld
14700
14701 # Flag that allows shared libraries with undefined symbols to be built.
14702 allow_undefined_flag=$lt_allow_undefined_flag
14703
14704 # Flag that enforces no undefined symbols.
14705 no_undefined_flag=$lt_no_undefined_flag
14706
14707 # Flag to hardcode \$libdir into a binary during linking.
14708 # This must work even if \$libdir does not exist
14709 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14710
14711 # Whether we need a single "-rpath" flag with a separated argument.
14712 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14713
14714 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14715 # DIR into the resulting binary.
14716 hardcode_direct=$hardcode_direct
14717
14718 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14719 # DIR into the resulting binary and the resulting library dependency is
14720 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14721 # library is relocated.
14722 hardcode_direct_absolute=$hardcode_direct_absolute
14723
14724 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14725 # into the resulting binary.
14726 hardcode_minus_L=$hardcode_minus_L
14727
14728 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14729 # into the resulting binary.
14730 hardcode_shlibpath_var=$hardcode_shlibpath_var
14731
14732 # Set to "yes" if building a shared library automatically hardcodes DIR
14733 # into the library and all subsequent libraries and executables linked
14734 # against it.
14735 hardcode_automatic=$hardcode_automatic
14736
14737 # Set to yes if linker adds runtime paths of dependent libraries
14738 # to runtime path list.
14739 inherit_rpath=$inherit_rpath
14740
14741 # Whether libtool must link a program against all its dependency libraries.
14742 link_all_deplibs=$link_all_deplibs
14743
14744 # Set to "yes" if exported symbols are required.
14745 always_export_symbols=$always_export_symbols
14746
14747 # The commands to list exported symbols.
14748 export_symbols_cmds=$lt_export_symbols_cmds
14749
14750 # Symbols that should not be listed in the preloaded symbols.
14751 exclude_expsyms=$lt_exclude_expsyms
14752
14753 # Symbols that must always be exported.
14754 include_expsyms=$lt_include_expsyms
14755
14756 # Commands necessary for linking programs (against libraries) with templates.
14757 prelink_cmds=$lt_prelink_cmds
14758
14759 # Commands necessary for finishing linking programs.
14760 postlink_cmds=$lt_postlink_cmds
14761
14762 # Specify filename containing input files.
14763 file_list_spec=$lt_file_list_spec
14764
14765 # How to hardcode a shared library path into an executable.
14766 hardcode_action=$hardcode_action
14767
14768 # ### END LIBTOOL CONFIG
14769
14770 _LT_EOF
14771
14772   case $host_os in
14773   aix3*)
14774     cat <<\_LT_EOF >> "$cfgfile"
14775 # AIX sometimes has problems with the GCC collect2 program.  For some
14776 # reason, if we set the COLLECT_NAMES environment variable, the problems
14777 # vanish in a puff of smoke.
14778 if test "X${COLLECT_NAMES+set}" != Xset; then
14779   COLLECT_NAMES=
14780   export COLLECT_NAMES
14781 fi
14782 _LT_EOF
14783     ;;
14784   esac
14785
14786
14787 ltmain="$ac_aux_dir/ltmain.sh"
14788
14789
14790   # We use sed instead of cat because bash on DJGPP gets confused if
14791   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14792   # text mode, it properly converts lines to CR/LF.  This bash problem
14793   # is reportedly fixed, but why not run on old versions too?
14794   sed '$q' "$ltmain" >> "$cfgfile" \
14795      || (rm -f "$cfgfile"; exit 1)
14796
14797   if test x"$xsi_shell" = xyes; then
14798   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14799 func_dirname ()\
14800 {\
14801 \    case ${1} in\
14802 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14803 \      *  ) func_dirname_result="${3}" ;;\
14804 \    esac\
14805 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14806   && mv -f "$cfgfile.tmp" "$cfgfile" \
14807     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14808 test 0 -eq $? || _lt_function_replace_fail=:
14809
14810
14811   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14812 func_basename ()\
14813 {\
14814 \    func_basename_result="${1##*/}"\
14815 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14816   && mv -f "$cfgfile.tmp" "$cfgfile" \
14817     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14818 test 0 -eq $? || _lt_function_replace_fail=:
14819
14820
14821   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14822 func_dirname_and_basename ()\
14823 {\
14824 \    case ${1} in\
14825 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14826 \      *  ) func_dirname_result="${3}" ;;\
14827 \    esac\
14828 \    func_basename_result="${1##*/}"\
14829 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14830   && mv -f "$cfgfile.tmp" "$cfgfile" \
14831     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14832 test 0 -eq $? || _lt_function_replace_fail=:
14833
14834
14835   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14836 func_stripname ()\
14837 {\
14838 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14839 \    # positional parameters, so assign one to ordinary parameter first.\
14840 \    func_stripname_result=${3}\
14841 \    func_stripname_result=${func_stripname_result#"${1}"}\
14842 \    func_stripname_result=${func_stripname_result%"${2}"}\
14843 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14844   && mv -f "$cfgfile.tmp" "$cfgfile" \
14845     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14846 test 0 -eq $? || _lt_function_replace_fail=:
14847
14848
14849   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14850 func_split_long_opt ()\
14851 {\
14852 \    func_split_long_opt_name=${1%%=*}\
14853 \    func_split_long_opt_arg=${1#*=}\
14854 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14855   && mv -f "$cfgfile.tmp" "$cfgfile" \
14856     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14857 test 0 -eq $? || _lt_function_replace_fail=:
14858
14859
14860   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14861 func_split_short_opt ()\
14862 {\
14863 \    func_split_short_opt_arg=${1#??}\
14864 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14865 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14866   && mv -f "$cfgfile.tmp" "$cfgfile" \
14867     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14868 test 0 -eq $? || _lt_function_replace_fail=:
14869
14870
14871   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14872 func_lo2o ()\
14873 {\
14874 \    case ${1} in\
14875 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14876 \      *)    func_lo2o_result=${1} ;;\
14877 \    esac\
14878 } # Extended-shell func_lo2o 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_xform ()$/,/^} # func_xform /c\
14885 func_xform ()\
14886 {\
14887     func_xform_result=${1%.*}.lo\
14888 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14889   && mv -f "$cfgfile.tmp" "$cfgfile" \
14890     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14891 test 0 -eq $? || _lt_function_replace_fail=:
14892
14893
14894   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14895 func_arith ()\
14896 {\
14897     func_arith_result=$(( $* ))\
14898 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14899   && mv -f "$cfgfile.tmp" "$cfgfile" \
14900     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14901 test 0 -eq $? || _lt_function_replace_fail=:
14902
14903
14904   sed -e '/^func_len ()$/,/^} # func_len /c\
14905 func_len ()\
14906 {\
14907     func_len_result=${#1}\
14908 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14909   && mv -f "$cfgfile.tmp" "$cfgfile" \
14910     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14911 test 0 -eq $? || _lt_function_replace_fail=:
14912
14913 fi
14914
14915 if test x"$lt_shell_append" = xyes; then
14916   sed -e '/^func_append ()$/,/^} # func_append /c\
14917 func_append ()\
14918 {\
14919     eval "${1}+=\\${2}"\
14920 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14921   && mv -f "$cfgfile.tmp" "$cfgfile" \
14922     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14923 test 0 -eq $? || _lt_function_replace_fail=:
14924
14925
14926   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14927 func_append_quoted ()\
14928 {\
14929 \    func_quote_for_eval "${2}"\
14930 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14931 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14932   && mv -f "$cfgfile.tmp" "$cfgfile" \
14933     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14934 test 0 -eq $? || _lt_function_replace_fail=:
14935
14936
14937   # Save a `func_append' function call where possible by direct use of '+='
14938   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14939     && mv -f "$cfgfile.tmp" "$cfgfile" \
14940       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14941   test 0 -eq $? || _lt_function_replace_fail=:
14942 else
14943   # Save a `func_append' function call even when '+=' is not available
14944   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14945     && mv -f "$cfgfile.tmp" "$cfgfile" \
14946       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14947   test 0 -eq $? || _lt_function_replace_fail=:
14948 fi
14949
14950 if test x"$_lt_function_replace_fail" = x":"; then
14951   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14952 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14953 fi
14954
14955
14956    mv -f "$cfgfile" "$ofile" ||
14957     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14958   chmod +x "$ofile"
14959
14960  ;;
14961
14962   esac
14963 done # for ac_tag
14964
14965
14966 as_fn_exit 0
14967 _ACEOF
14968 ac_clean_files=$ac_clean_files_save
14969
14970 test $ac_write_fail = 0 ||
14971   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14972
14973
14974 # configure is writing to config.log, and then calls config.status.
14975 # config.status does its own redirection, appending to config.log.
14976 # Unfortunately, on DOS this fails, as config.log is still kept open
14977 # by configure, so config.status won't be able to write to it; its
14978 # output is simply discarded.  So we exec the FD to /dev/null,
14979 # effectively closing config.log, so it can be properly (re)opened and
14980 # appended to by config.status.  When coming back to configure, we
14981 # need to make the FD available again.
14982 if test "$no_create" != yes; then
14983   ac_cs_success=:
14984   ac_config_status_args=
14985   test "$silent" = yes &&
14986     ac_config_status_args="$ac_config_status_args --quiet"
14987   exec 5>/dev/null
14988   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14989   exec 5>>config.log
14990   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14991   # would make configure fail if this is the last instruction.
14992   $ac_cs_success || as_fn_exit 1
14993 fi
14994 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14995   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14996 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14997 fi
14998