]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libpng/lib/dist/configure
update
[l4.git] / l4 / pkg / libpng / lib / dist / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libpng 1.5.2.
4 #
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: png-mng-implement@lists.sourceforge.net about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libpng'
572 PACKAGE_TARNAME='libpng'
573 PACKAGE_VERSION='1.5.2'
574 PACKAGE_STRING='libpng 1.5.2'
575 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
576 PACKAGE_URL=''
577
578 ac_unique_file="pngget.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 binconfigs
619 pkgconfigdir
620 PNGLIB_RELEASE
621 PNGLIB_MINOR
622 PNGLIB_MAJOR
623 PNGLIB_VERSION
624 SYMBOL_PREFIX
625 HAVE_LD_VERSION_SCRIPT_FALSE
626 HAVE_LD_VERSION_SCRIPT_TRUE
627 LIBPNG_DEFINES
628 LIBOBJS
629 POW_LIB
630 DFNCPP
631 OTOOL64
632 OTOOL
633 LIPO
634 NMEDIT
635 DSYMUTIL
636 MANIFEST_TOOL
637 RANLIB
638 ac_ct_AR
639 AR
640 NM
641 ac_ct_DUMPBIN
642 DUMPBIN
643 LIBTOOL
644 OBJDUMP
645 DLLTOOL
646 AS
647 LN_S
648 CPP
649 LD
650 FGREP
651 EGREP
652 GREP
653 SED
654 host_os
655 host_vendor
656 host_cpu
657 host
658 build_os
659 build_vendor
660 build_cpu
661 build
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 AMDEPBACKSLASH
666 AMDEP_FALSE
667 AMDEP_TRUE
668 am__quote
669 am__include
670 DEPDIR
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
677 CC
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 am__untar
682 am__tar
683 AMTAR
684 am__leading_dot
685 SET_MAKE
686 AWK
687 mkdir_p
688 MKDIR_P
689 INSTALL_STRIP_PROGRAM
690 STRIP
691 install_sh
692 MAKEINFO
693 AUTOHEADER
694 AUTOMAKE
695 AUTOCONF
696 ACLOCAL
697 VERSION
698 PACKAGE
699 CYGPATH_W
700 am__isrc
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_maintainer_mode
746 enable_dependency_tracking
747 with_gnu_ld
748 enable_shared
749 enable_static
750 with_pic
751 enable_fast_install
752 with_sysroot
753 enable_libtool_lock
754 with_zlib_prefix
755 with_pkgconfigdir
756 with_binconfigs
757 '
758       ac_precious_vars='build_alias
759 host_alias
760 target_alias
761 CC
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CPP
767 CPPFLAGS'
768
769
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 ac_unrecognized_opts=
774 ac_unrecognized_sep=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
777 cache_file=/dev/null
778 exec_prefix=NONE
779 no_create=
780 no_recursion=
781 prefix=NONE
782 program_prefix=NONE
783 program_suffix=NONE
784 program_transform_name=s,x,x,
785 silent=
786 site=
787 srcdir=
788 verbose=
789 x_includes=NONE
790 x_libraries=NONE
791
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir='${exec_prefix}/bin'
799 sbindir='${exec_prefix}/sbin'
800 libexecdir='${exec_prefix}/libexec'
801 datarootdir='${prefix}/share'
802 datadir='${datarootdir}'
803 sysconfdir='${prefix}/etc'
804 sharedstatedir='${prefix}/com'
805 localstatedir='${prefix}/var'
806 includedir='${prefix}/include'
807 oldincludedir='/usr/include'
808 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir='${datarootdir}/info'
810 htmldir='${docdir}'
811 dvidir='${docdir}'
812 pdfdir='${docdir}'
813 psdir='${docdir}'
814 libdir='${exec_prefix}/lib'
815 localedir='${datarootdir}/locale'
816 mandir='${datarootdir}/man'
817
818 ac_prev=
819 ac_dashdash=
820 for ac_option
821 do
822   # If the previous option needs an argument, assign it.
823   if test -n "$ac_prev"; then
824     eval $ac_prev=\$ac_option
825     ac_prev=
826     continue
827   fi
828
829   case $ac_option in
830   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831   *=)   ac_optarg= ;;
832   *)    ac_optarg=yes ;;
833   esac
834
835   # Accept the important Cygnus configure options, so we can diagnose typos.
836
837   case $ac_dashdash$ac_option in
838   --)
839     ac_dashdash=yes ;;
840
841   -bindir | --bindir | --bindi | --bind | --bin | --bi)
842     ac_prev=bindir ;;
843   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844     bindir=$ac_optarg ;;
845
846   -build | --build | --buil | --bui | --bu)
847     ac_prev=build_alias ;;
848   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849     build_alias=$ac_optarg ;;
850
851   -cache-file | --cache-file | --cache-fil | --cache-fi \
852   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853     ac_prev=cache_file ;;
854   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856     cache_file=$ac_optarg ;;
857
858   --config-cache | -C)
859     cache_file=config.cache ;;
860
861   -datadir | --datadir | --datadi | --datad)
862     ac_prev=datadir ;;
863   -datadir=* | --datadir=* | --datadi=* | --datad=*)
864     datadir=$ac_optarg ;;
865
866   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867   | --dataroo | --dataro | --datar)
868     ac_prev=datarootdir ;;
869   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871     datarootdir=$ac_optarg ;;
872
873   -disable-* | --disable-*)
874     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875     # Reject names that are not valid shell variable names.
876     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877       as_fn_error $? "invalid feature name: $ac_useropt"
878     ac_useropt_orig=$ac_useropt
879     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880     case $ac_user_opts in
881       *"
882 "enable_$ac_useropt"
883 "*) ;;
884       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885          ac_unrecognized_sep=', ';;
886     esac
887     eval enable_$ac_useropt=no ;;
888
889   -docdir | --docdir | --docdi | --doc | --do)
890     ac_prev=docdir ;;
891   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892     docdir=$ac_optarg ;;
893
894   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895     ac_prev=dvidir ;;
896   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897     dvidir=$ac_optarg ;;
898
899   -enable-* | --enable-*)
900     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903       as_fn_error $? "invalid feature name: $ac_useropt"
904     ac_useropt_orig=$ac_useropt
905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906     case $ac_user_opts in
907       *"
908 "enable_$ac_useropt"
909 "*) ;;
910       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911          ac_unrecognized_sep=', ';;
912     esac
913     eval enable_$ac_useropt=\$ac_optarg ;;
914
915   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917   | --exec | --exe | --ex)
918     ac_prev=exec_prefix ;;
919   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921   | --exec=* | --exe=* | --ex=*)
922     exec_prefix=$ac_optarg ;;
923
924   -gas | --gas | --ga | --g)
925     # Obsolete; use --with-gas.
926     with_gas=yes ;;
927
928   -help | --help | --hel | --he | -h)
929     ac_init_help=long ;;
930   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931     ac_init_help=recursive ;;
932   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933     ac_init_help=short ;;
934
935   -host | --host | --hos | --ho)
936     ac_prev=host_alias ;;
937   -host=* | --host=* | --hos=* | --ho=*)
938     host_alias=$ac_optarg ;;
939
940   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941     ac_prev=htmldir ;;
942   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943   | --ht=*)
944     htmldir=$ac_optarg ;;
945
946   -includedir | --includedir | --includedi | --included | --include \
947   | --includ | --inclu | --incl | --inc)
948     ac_prev=includedir ;;
949   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950   | --includ=* | --inclu=* | --incl=* | --inc=*)
951     includedir=$ac_optarg ;;
952
953   -infodir | --infodir | --infodi | --infod | --info | --inf)
954     ac_prev=infodir ;;
955   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956     infodir=$ac_optarg ;;
957
958   -libdir | --libdir | --libdi | --libd)
959     ac_prev=libdir ;;
960   -libdir=* | --libdir=* | --libdi=* | --libd=*)
961     libdir=$ac_optarg ;;
962
963   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964   | --libexe | --libex | --libe)
965     ac_prev=libexecdir ;;
966   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967   | --libexe=* | --libex=* | --libe=*)
968     libexecdir=$ac_optarg ;;
969
970   -localedir | --localedir | --localedi | --localed | --locale)
971     ac_prev=localedir ;;
972   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973     localedir=$ac_optarg ;;
974
975   -localstatedir | --localstatedir | --localstatedi | --localstated \
976   | --localstate | --localstat | --localsta | --localst | --locals)
977     ac_prev=localstatedir ;;
978   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980     localstatedir=$ac_optarg ;;
981
982   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983     ac_prev=mandir ;;
984   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985     mandir=$ac_optarg ;;
986
987   -nfp | --nfp | --nf)
988     # Obsolete; use --without-fp.
989     with_fp=no ;;
990
991   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992   | --no-cr | --no-c | -n)
993     no_create=yes ;;
994
995   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997     no_recursion=yes ;;
998
999   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001   | --oldin | --oldi | --old | --ol | --o)
1002     ac_prev=oldincludedir ;;
1003   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006     oldincludedir=$ac_optarg ;;
1007
1008   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009     ac_prev=prefix ;;
1010   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011     prefix=$ac_optarg ;;
1012
1013   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014   | --program-pre | --program-pr | --program-p)
1015     ac_prev=program_prefix ;;
1016   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018     program_prefix=$ac_optarg ;;
1019
1020   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021   | --program-suf | --program-su | --program-s)
1022     ac_prev=program_suffix ;;
1023   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025     program_suffix=$ac_optarg ;;
1026
1027   -program-transform-name | --program-transform-name \
1028   | --program-transform-nam | --program-transform-na \
1029   | --program-transform-n | --program-transform- \
1030   | --program-transform | --program-transfor \
1031   | --program-transfo | --program-transf \
1032   | --program-trans | --program-tran \
1033   | --progr-tra | --program-tr | --program-t)
1034     ac_prev=program_transform_name ;;
1035   -program-transform-name=* | --program-transform-name=* \
1036   | --program-transform-nam=* | --program-transform-na=* \
1037   | --program-transform-n=* | --program-transform-=* \
1038   | --program-transform=* | --program-transfor=* \
1039   | --program-transfo=* | --program-transf=* \
1040   | --program-trans=* | --program-tran=* \
1041   | --progr-tra=* | --program-tr=* | --program-t=*)
1042     program_transform_name=$ac_optarg ;;
1043
1044   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045     ac_prev=pdfdir ;;
1046   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047     pdfdir=$ac_optarg ;;
1048
1049   -psdir | --psdir | --psdi | --psd | --ps)
1050     ac_prev=psdir ;;
1051   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052     psdir=$ac_optarg ;;
1053
1054   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055   | -silent | --silent | --silen | --sile | --sil)
1056     silent=yes ;;
1057
1058   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059     ac_prev=sbindir ;;
1060   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061   | --sbi=* | --sb=*)
1062     sbindir=$ac_optarg ;;
1063
1064   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066   | --sharedst | --shareds | --shared | --share | --shar \
1067   | --sha | --sh)
1068     ac_prev=sharedstatedir ;;
1069   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072   | --sha=* | --sh=*)
1073     sharedstatedir=$ac_optarg ;;
1074
1075   -site | --site | --sit)
1076     ac_prev=site ;;
1077   -site=* | --site=* | --sit=*)
1078     site=$ac_optarg ;;
1079
1080   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081     ac_prev=srcdir ;;
1082   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083     srcdir=$ac_optarg ;;
1084
1085   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086   | --syscon | --sysco | --sysc | --sys | --sy)
1087     ac_prev=sysconfdir ;;
1088   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090     sysconfdir=$ac_optarg ;;
1091
1092   -target | --target | --targe | --targ | --tar | --ta | --t)
1093     ac_prev=target_alias ;;
1094   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095     target_alias=$ac_optarg ;;
1096
1097   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098     verbose=yes ;;
1099
1100   -version | --version | --versio | --versi | --vers | -V)
1101     ac_init_version=: ;;
1102
1103   -with-* | --with-*)
1104     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105     # Reject names that are not valid shell variable names.
1106     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107       as_fn_error $? "invalid package name: $ac_useropt"
1108     ac_useropt_orig=$ac_useropt
1109     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110     case $ac_user_opts in
1111       *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115          ac_unrecognized_sep=', ';;
1116     esac
1117     eval with_$ac_useropt=\$ac_optarg ;;
1118
1119   -without-* | --without-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       as_fn_error $? "invalid package name: $ac_useropt"
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval with_$ac_useropt=no ;;
1134
1135   --x)
1136     # Obsolete; use --with-x.
1137     with_x=yes ;;
1138
1139   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140   | --x-incl | --x-inc | --x-in | --x-i)
1141     ac_prev=x_includes ;;
1142   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144     x_includes=$ac_optarg ;;
1145
1146   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148     ac_prev=x_libraries ;;
1149   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151     x_libraries=$ac_optarg ;;
1152
1153   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information"
1155     ;;
1156
1157   *=*)
1158     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159     # Reject names that are not valid shell variable names.
1160     case $ac_envvar in #(
1161       '' | [0-9]* | *[!_$as_cr_alnum]* )
1162       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163     esac
1164     eval $ac_envvar=\$ac_optarg
1165     export $ac_envvar ;;
1166
1167   *)
1168     # FIXME: should be removed in autoconf 3.0.
1169     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173     ;;
1174
1175   esac
1176 done
1177
1178 if test -n "$ac_prev"; then
1179   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180   as_fn_error $? "missing argument to $ac_option"
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184   case $enable_option_checking in
1185     no) ;;
1186     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188   esac
1189 fi
1190
1191 # Check all directory arguments for consistency.
1192 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193                 datadir sysconfdir sharedstatedir localstatedir includedir \
1194                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195                 libdir localedir mandir
1196 do
1197   eval ac_val=\$$ac_var
1198   # Remove trailing slashes.
1199   case $ac_val in
1200     */ )
1201       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202       eval $ac_var=\$ac_val;;
1203   esac
1204   # Be sure to have absolute directory names.
1205   case $ac_val in
1206     [\\/$]* | ?:[\\/]* )  continue;;
1207     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208   esac
1209   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
1211
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1218
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221   if test "x$build_alias" = x; then
1222     cross_compiling=maybe
1223     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1224     If a cross compiler is detected then cross compile mode will be used" >&2
1225   elif test "x$build_alias" != "x$host_alias"; then
1226     cross_compiling=yes
1227   fi
1228 fi
1229
1230 ac_tool_prefix=
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233 test "$silent" = yes && exec 6>/dev/null
1234
1235
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239   as_fn_error $? "working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241   as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246   ac_srcdir_defaulted=yes
1247   # Try the directory containing this script, then the parent directory.
1248   ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250          X"$as_myself" : 'X\(//\)[^/]' \| \
1251          X"$as_myself" : 'X\(//\)$' \| \
1252          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\/\)[^/].*/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\/\)$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\).*/{
1267             s//\1/
1268             q
1269           }
1270           s/.*/./; q'`
1271   srcdir=$ac_confdir
1272   if test ! -r "$srcdir/$ac_unique_file"; then
1273     srcdir=..
1274   fi
1275 else
1276   ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 fi
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285         pwd)`
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288   srcdir=.
1289 fi
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1293 case $srcdir in
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 esac
1296 for ac_var in $ac_precious_vars; do
1297   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298   eval ac_env_${ac_var}_value=\$${ac_var}
1299   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 done
1302
1303 #
1304 # Report the --help message.
1305 #
1306 if test "$ac_init_help" = "long"; then
1307   # Omit some internal or obsolete options to make the list less imposing.
1308   # This message is too long to be a string in the A/UX 3.1 sh.
1309   cat <<_ACEOF
1310 \`configure' configures libpng 1.5.2 to adapt to many kinds of systems.
1311
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE.  See below for descriptions of some of the useful variables.
1316
1317 Defaults for the options are specified in brackets.
1318
1319 Configuration:
1320   -h, --help              display this help and exit
1321       --help=short        display options specific to this package
1322       --help=recursive    display the short help of all the included packages
1323   -V, --version           display version information and exit
1324   -q, --quiet, --silent   do not print \`checking ...' messages
1325       --cache-file=FILE   cache test results in FILE [disabled]
1326   -C, --config-cache      alias for \`--cache-file=config.cache'
1327   -n, --no-create         do not create output files
1328       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1329
1330 Installation directories:
1331   --prefix=PREFIX         install architecture-independent files in PREFIX
1332                           [$ac_default_prefix]
1333   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1334                           [PREFIX]
1335
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1340
1341 For better control, use the options below.
1342
1343 Fine tuning of the installation directories:
1344   --bindir=DIR            user executables [EPREFIX/bin]
1345   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1346   --libexecdir=DIR        program executables [EPREFIX/libexec]
1347   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1348   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1349   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1350   --libdir=DIR            object code libraries [EPREFIX/lib]
1351   --includedir=DIR        C header files [PREFIX/include]
1352   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1353   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1354   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1355   --infodir=DIR           info documentation [DATAROOTDIR/info]
1356   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1357   --mandir=DIR            man documentation [DATAROOTDIR/man]
1358   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpng]
1359   --htmldir=DIR           html documentation [DOCDIR]
1360   --dvidir=DIR            dvi documentation [DOCDIR]
1361   --pdfdir=DIR            pdf documentation [DOCDIR]
1362   --psdir=DIR             ps documentation [DOCDIR]
1363 _ACEOF
1364
1365   cat <<\_ACEOF
1366
1367 Program names:
1368   --program-prefix=PREFIX            prepend PREFIX to installed program names
1369   --program-suffix=SUFFIX            append SUFFIX to installed program names
1370   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1371
1372 System types:
1373   --build=BUILD     configure for building on BUILD [guessed]
1374   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379   case $ac_init_help in
1380      short | recursive ) echo "Configuration of libpng 1.5.2:";;
1381    esac
1382   cat <<\_ACEOF
1383
1384 Optional Features:
1385   --disable-option-checking  ignore unrecognized --enable/--with options
1386   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1387   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1388   --enable-maintainer-mode  enable make rules and dependencies not useful
1389                           (and sometimes confusing) to the casual installer
1390   --disable-dependency-tracking  speeds up one-time build
1391   --enable-dependency-tracking   do not reject slow dependency extractors
1392   --enable-shared[=PKGS]  build shared libraries [default=yes]
1393   --enable-static[=PKGS]  build static libraries [default=yes]
1394   --enable-fast-install[=PKGS]
1395                           optimize for fast installation [default=yes]
1396   --disable-libtool-lock  avoid locking (might break parallel builds)
1397
1398 Optional Packages:
1399   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1400   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1401   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1402   --with-pic              try to use only PIC/non-PIC objects [default=use
1403                           both]
1404   --with-sysroot=DIR Search for dependent libraries within DIR
1405                         (or the compiler's sysroot if not specified).
1406   --with-zlib-prefix      prefix that may have been used in installed zlib
1407   --with-pkgconfigdir     Use the specified pkgconfig dir (default is
1408                           libdir/pkgconfig)
1409   --with-binconfigs       Generate shell libpng-config scripts as well as
1410                           pkg-config data [default=yes]
1411
1412 Some influential environment variables:
1413   CC          C compiler command
1414   CFLAGS      C compiler flags
1415   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1416               nonstandard directory <lib dir>
1417   LIBS        libraries to pass to the linker, e.g. -l<library>
1418   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419               you have headers in a nonstandard directory <include dir>
1420   CPP         C preprocessor
1421
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1424
1425 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1426 _ACEOF
1427 ac_status=$?
1428 fi
1429
1430 if test "$ac_init_help" = "recursive"; then
1431   # If there are subdirs, report their specific --help.
1432   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433     test -d "$ac_dir" ||
1434       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435       continue
1436     ac_builddir=.
1437
1438 case "$ac_dir" in
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *)
1441   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442   # A ".." for each directory in $ac_dir_suffix.
1443   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444   case $ac_top_builddir_sub in
1445   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447   esac ;;
1448 esac
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1453
1454 case $srcdir in
1455   .)  # We are building in place.
1456     ac_srcdir=.
1457     ac_top_srcdir=$ac_top_builddir_sub
1458     ac_abs_top_srcdir=$ac_pwd ;;
1459   [\\/]* | ?:[\\/]* )  # Absolute name.
1460     ac_srcdir=$srcdir$ac_dir_suffix;
1461     ac_top_srcdir=$srcdir
1462     ac_abs_top_srcdir=$srcdir ;;
1463   *) # Relative name.
1464     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465     ac_top_srcdir=$ac_top_build_prefix$srcdir
1466     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 esac
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470     cd "$ac_dir" || { ac_status=$?; continue; }
1471     # Check for guested configure.
1472     if test -f "$ac_srcdir/configure.gnu"; then
1473       echo &&
1474       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475     elif test -f "$ac_srcdir/configure"; then
1476       echo &&
1477       $SHELL "$ac_srcdir/configure" --help=recursive
1478     else
1479       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480     fi || ac_status=$?
1481     cd "$ac_pwd" || { ac_status=$?; break; }
1482   done
1483 fi
1484
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1487   cat <<\_ACEOF
1488 libpng configure 1.5.2
1489 generated by GNU Autoconf 2.68
1490
1491 Copyright (C) 2010 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1494 _ACEOF
1495   exit
1496 fi
1497
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1501
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1506 {
1507   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508   rm -f conftest.$ac_objext
1509   if { { ac_try="$ac_compile"
1510 case "(($ac_try" in
1511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512   *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516   (eval "$ac_compile") 2>conftest.err
1517   ac_status=$?
1518   if test -s conftest.err; then
1519     grep -v '^ *+' conftest.err >conftest.er1
1520     cat conftest.er1 >&5
1521     mv -f conftest.er1 conftest.err
1522   fi
1523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524   test $ac_status = 0; } && {
1525          test -z "$ac_c_werror_flag" ||
1526          test ! -s conftest.err
1527        } && test -s conftest.$ac_objext; then :
1528   ac_retval=0
1529 else
1530   $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1532
1533         ac_retval=1
1534 fi
1535   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536   as_fn_set_status $ac_retval
1537
1538 } # ac_fn_c_try_compile
1539
1540 # ac_fn_c_try_cpp LINENO
1541 # ----------------------
1542 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_cpp ()
1544 {
1545   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546   if { { ac_try="$ac_cpp conftest.$ac_ext"
1547 case "(($ac_try" in
1548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549   *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1554   ac_status=$?
1555   if test -s conftest.err; then
1556     grep -v '^ *+' conftest.err >conftest.er1
1557     cat conftest.er1 >&5
1558     mv -f conftest.er1 conftest.err
1559   fi
1560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561   test $ac_status = 0; } > conftest.i && {
1562          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1563          test ! -s conftest.err
1564        }; then :
1565   ac_retval=0
1566 else
1567   $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570     ac_retval=1
1571 fi
1572   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573   as_fn_set_status $ac_retval
1574
1575 } # ac_fn_c_try_cpp
1576
1577 # ac_fn_c_try_link LINENO
1578 # -----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_link ()
1581 {
1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583   rm -f conftest.$ac_objext conftest$ac_exeext
1584   if { { ac_try="$ac_link"
1585 case "(($ac_try" in
1586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587   *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591   (eval "$ac_link") 2>conftest.err
1592   ac_status=$?
1593   if test -s conftest.err; then
1594     grep -v '^ *+' conftest.err >conftest.er1
1595     cat conftest.er1 >&5
1596     mv -f conftest.er1 conftest.err
1597   fi
1598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599   test $ac_status = 0; } && {
1600          test -z "$ac_c_werror_flag" ||
1601          test ! -s conftest.err
1602        } && test -s conftest$ac_exeext && {
1603          test "$cross_compiling" = yes ||
1604          $as_test_x conftest$ac_exeext
1605        }; then :
1606   ac_retval=0
1607 else
1608   $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611         ac_retval=1
1612 fi
1613   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615   # interfere with the next link command; also delete a directory that is
1616   # left behind by Apple's compiler.  We do this before executing the actions.
1617   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619   as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_link
1622
1623 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists and can be compiled using the include files in
1626 # INCLUDES, setting the cache variable VAR accordingly.
1627 ac_fn_c_check_header_compile ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if eval \${$3+:} false; then :
1633   $as_echo_n "(cached) " >&6
1634 else
1635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h.  */
1637 $4
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641   eval "$3=yes"
1642 else
1643   eval "$3=no"
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 fi
1647 eval ac_res=\$$3
1648                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652 } # ac_fn_c_check_header_compile
1653
1654 # ac_fn_c_try_run LINENO
1655 # ----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657 # that executables *can* be run.
1658 ac_fn_c_try_run ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_link") 2>&5
1669   ac_status=$?
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672   { { case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_try") 2>&5
1679   ac_status=$?
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; }; }; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: program exited with status $ac_status" >&5
1685        $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688        ac_retval=$ac_status
1689 fi
1690   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692   as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_run
1695
1696 # ac_fn_c_check_func LINENO FUNC VAR
1697 # ----------------------------------
1698 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1699 ac_fn_c_check_func ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705   $as_echo_n "(cached) " >&6
1706 else
1707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h.  */
1709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1711 #define $2 innocuous_$2
1712
1713 /* System header to define __stub macros and hopefully few prototypes,
1714     which can conflict with char $2 (); below.
1715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1716     <limits.h> exists even on freestanding compilers.  */
1717
1718 #ifdef __STDC__
1719 # include <limits.h>
1720 #else
1721 # include <assert.h>
1722 #endif
1723
1724 #undef $2
1725
1726 /* Override any GCC internal prototype to avoid an error.
1727    Use char because int might match the return type of a GCC
1728    builtin and then its argument prototype would still apply.  */
1729 #ifdef __cplusplus
1730 extern "C"
1731 #endif
1732 char $2 ();
1733 /* The GNU C library defines this for functions which it implements
1734     to always fail with ENOSYS.  Some functions are actually named
1735     something starting with __ and the normal name is an alias.  */
1736 #if defined __stub_$2 || defined __stub___$2
1737 choke me
1738 #endif
1739
1740 int
1741 main ()
1742 {
1743 return $2 ();
1744   ;
1745   return 0;
1746 }
1747 _ACEOF
1748 if ac_fn_c_try_link "$LINENO"; then :
1749   eval "$3=yes"
1750 else
1751   eval "$3=no"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext \
1754     conftest$ac_exeext conftest.$ac_ext
1755 fi
1756 eval ac_res=\$$3
1757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761 } # ac_fn_c_check_func
1762
1763 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766 # the include files in INCLUDES and setting the cache variable VAR
1767 # accordingly.
1768 ac_fn_c_check_header_mongrel ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   if eval \${$3+:} false; then :
1772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775   $as_echo_n "(cached) " >&6
1776 fi
1777 eval ac_res=\$$3
1778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 else
1781   # Is the header compilable?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783 $as_echo_n "checking $2 usability... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h.  */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790   ac_header_compiler=yes
1791 else
1792   ac_header_compiler=no
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796 $as_echo "$ac_header_compiler" >&6; }
1797
1798 # Is the header present?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800 $as_echo_n "checking $2 presence... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h.  */
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_cpp "$LINENO"; then :
1806   ac_header_preproc=yes
1807 else
1808   ac_header_preproc=no
1809 fi
1810 rm -f conftest.err conftest.i conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812 $as_echo "$ac_header_preproc" >&6; }
1813
1814 # So?  What about this header?
1815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816   yes:no: )
1817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821     ;;
1822   no:yes:* )
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1826 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1830 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ( $as_echo "## ------------------------------------------------------ ##
1834 ## Report this to png-mng-implement@lists.sourceforge.net ##
1835 ## ------------------------------------------------------ ##"
1836      ) | sed "s/^/$as_me: WARNING:     /" >&2
1837     ;;
1838 esac
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 else
1844   eval "$3=\$ac_header_compiler"
1845 fi
1846 eval ac_res=\$$3
1847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 fi
1850   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852 } # ac_fn_c_check_header_mongrel
1853
1854 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1855 # -------------------------------------------
1856 # Tests whether TYPE exists after having included INCLUDES, setting cache
1857 # variable VAR accordingly.
1858 ac_fn_c_check_type ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864   $as_echo_n "(cached) " >&6
1865 else
1866   eval "$3=no"
1867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h.  */
1869 $4
1870 int
1871 main ()
1872 {
1873 if (sizeof ($2))
1874          return 0;
1875   ;
1876   return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 $4
1883 int
1884 main ()
1885 {
1886 if (sizeof (($2)))
1887             return 0;
1888   ;
1889   return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893
1894 else
1895   eval "$3=yes"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906 } # ac_fn_c_check_type
1907 cat >config.log <<_ACEOF
1908 This file contains any messages produced by compilers while
1909 running configure, to aid debugging if configure makes a mistake.
1910
1911 It was created by libpng $as_me 1.5.2, which was
1912 generated by GNU Autoconf 2.68.  Invocation command line was
1913
1914   $ $0 $@
1915
1916 _ACEOF
1917 exec 5>>config.log
1918 {
1919 cat <<_ASUNAME
1920 ## --------- ##
1921 ## Platform. ##
1922 ## --------- ##
1923
1924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929
1930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1932
1933 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1934 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1937 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1938 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1939 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1940
1941 _ASUNAME
1942
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948     $as_echo "PATH: $as_dir"
1949   done
1950 IFS=$as_save_IFS
1951
1952 } >&5
1953
1954 cat >&5 <<_ACEOF
1955
1956
1957 ## ----------- ##
1958 ## Core tests. ##
1959 ## ----------- ##
1960
1961 _ACEOF
1962
1963
1964 # Keep a trace of the command line.
1965 # Strip out --no-create and --no-recursion so they do not pile up.
1966 # Strip out --silent because we don't want to record it for future runs.
1967 # Also quote any args containing shell meta-characters.
1968 # Make two passes to allow for proper duplicate-argument suppression.
1969 ac_configure_args=
1970 ac_configure_args0=
1971 ac_configure_args1=
1972 ac_must_keep_next=false
1973 for ac_pass in 1 2
1974 do
1975   for ac_arg
1976   do
1977     case $ac_arg in
1978     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980     | -silent | --silent | --silen | --sile | --sil)
1981       continue ;;
1982     *\'*)
1983       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1984     esac
1985     case $ac_pass in
1986     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987     2)
1988       as_fn_append ac_configure_args1 " '$ac_arg'"
1989       if test $ac_must_keep_next = true; then
1990         ac_must_keep_next=false # Got value, back to normal.
1991       else
1992         case $ac_arg in
1993           *=* | --config-cache | -C | -disable-* | --disable-* \
1994           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996           | -with-* | --with-* | -without-* | --without-* | --x)
1997             case "$ac_configure_args0 " in
1998               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999             esac
2000             ;;
2001           -* ) ac_must_keep_next=true ;;
2002         esac
2003       fi
2004       as_fn_append ac_configure_args " '$ac_arg'"
2005       ;;
2006     esac
2007   done
2008 done
2009 { ac_configure_args0=; unset ac_configure_args0;}
2010 { ac_configure_args1=; unset ac_configure_args1;}
2011
2012 # When interrupted or exit'd, cleanup temporary files, and complete
2013 # config.log.  We remove comments because anyway the quotes in there
2014 # would cause problems or look ugly.
2015 # WARNING: Use '\'' to represent an apostrophe within the trap.
2016 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017 trap 'exit_status=$?
2018   # Save into config.log some information that might help in debugging.
2019   {
2020     echo
2021
2022     $as_echo "## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##"
2025     echo
2026     # The following way of writing the cache mishandles newlines in values,
2027 (
2028   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2029     eval ac_val=\$$ac_var
2030     case $ac_val in #(
2031     *${as_nl}*)
2032       case $ac_var in #(
2033       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2035       esac
2036       case $ac_var in #(
2037       _ | IFS | as_nl) ;; #(
2038       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2039       *) { eval $ac_var=; unset $ac_var;} ;;
2040       esac ;;
2041     esac
2042   done
2043   (set) 2>&1 |
2044     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2045     *${as_nl}ac_space=\ *)
2046       sed -n \
2047         "s/'\''/'\''\\\\'\'''\''/g;
2048           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2049       ;; #(
2050     *)
2051       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052       ;;
2053     esac |
2054     sort
2055 )
2056     echo
2057
2058     $as_echo "## ----------------- ##
2059 ## Output variables. ##
2060 ## ----------------- ##"
2061     echo
2062     for ac_var in $ac_subst_vars
2063     do
2064       eval ac_val=\$$ac_var
2065       case $ac_val in
2066       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067       esac
2068       $as_echo "$ac_var='\''$ac_val'\''"
2069     done | sort
2070     echo
2071
2072     if test -n "$ac_subst_files"; then
2073       $as_echo "## ------------------- ##
2074 ## File substitutions. ##
2075 ## ------------------- ##"
2076       echo
2077       for ac_var in $ac_subst_files
2078       do
2079         eval ac_val=\$$ac_var
2080         case $ac_val in
2081         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082         esac
2083         $as_echo "$ac_var='\''$ac_val'\''"
2084       done | sort
2085       echo
2086     fi
2087
2088     if test -s confdefs.h; then
2089       $as_echo "## ----------- ##
2090 ## confdefs.h. ##
2091 ## ----------- ##"
2092       echo
2093       cat confdefs.h
2094       echo
2095     fi
2096     test "$ac_signal" != 0 &&
2097       $as_echo "$as_me: caught signal $ac_signal"
2098     $as_echo "$as_me: exit $exit_status"
2099   } >&5
2100   rm -f core *.core core.conftest.* &&
2101     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2102     exit $exit_status
2103 ' 0
2104 for ac_signal in 1 2 13 15; do
2105   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2106 done
2107 ac_signal=0
2108
2109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2110 rm -f -r conftest* confdefs.h
2111
2112 $as_echo "/* confdefs.h */" > confdefs.h
2113
2114 # Predefined preprocessor variables.
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_NAME "$PACKAGE_NAME"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_STRING "$PACKAGE_STRING"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_URL "$PACKAGE_URL"
2138 _ACEOF
2139
2140
2141 # Let the site file select an alternate cache file if it wants to.
2142 # Prefer an explicitly selected file to automatically selected ones.
2143 ac_site_file1=NONE
2144 ac_site_file2=NONE
2145 if test -n "$CONFIG_SITE"; then
2146   # We do not want a PATH search for config.site.
2147   case $CONFIG_SITE in #((
2148     -*)  ac_site_file1=./$CONFIG_SITE;;
2149     */*) ac_site_file1=$CONFIG_SITE;;
2150     *)   ac_site_file1=./$CONFIG_SITE;;
2151   esac
2152 elif test "x$prefix" != xNONE; then
2153   ac_site_file1=$prefix/share/config.site
2154   ac_site_file2=$prefix/etc/config.site
2155 else
2156   ac_site_file1=$ac_default_prefix/share/config.site
2157   ac_site_file2=$ac_default_prefix/etc/config.site
2158 fi
2159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2160 do
2161   test "x$ac_site_file" = xNONE && continue
2162   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2163     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2165     sed 's/^/| /' "$ac_site_file" >&5
2166     . "$ac_site_file" \
2167       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 as_fn_error $? "failed to load site script $ac_site_file
2170 See \`config.log' for more details" "$LINENO" 5; }
2171   fi
2172 done
2173
2174 if test -r "$cache_file"; then
2175   # Some versions of bash will fail to source /dev/null (special files
2176   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2177   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2178     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179 $as_echo "$as_me: loading cache $cache_file" >&6;}
2180     case $cache_file in
2181       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182       *)                      . "./$cache_file";;
2183     esac
2184   fi
2185 else
2186   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187 $as_echo "$as_me: creating cache $cache_file" >&6;}
2188   >$cache_file
2189 fi
2190
2191 # Check that the precious variables saved in the cache have kept the same
2192 # value.
2193 ac_cache_corrupted=false
2194 for ac_var in $ac_precious_vars; do
2195   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196   eval ac_new_set=\$ac_env_${ac_var}_set
2197   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198   eval ac_new_val=\$ac_env_${ac_var}_value
2199   case $ac_old_set,$ac_new_set in
2200     set,)
2201       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2203       ac_cache_corrupted=: ;;
2204     ,set)
2205       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2207       ac_cache_corrupted=: ;;
2208     ,);;
2209     *)
2210       if test "x$ac_old_val" != "x$ac_new_val"; then
2211         # differences in whitespace do not lead to failure.
2212         ac_old_val_w=`echo x $ac_old_val`
2213         ac_new_val_w=`echo x $ac_new_val`
2214         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217           ac_cache_corrupted=:
2218         else
2219           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221           eval $ac_var=\$ac_old_val
2222         fi
2223         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2224 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2225         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2226 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2227       fi;;
2228   esac
2229   # Pass precious variables to config.status.
2230   if test "$ac_new_set" = set; then
2231     case $ac_new_val in
2232     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233     *) ac_arg=$ac_var=$ac_new_val ;;
2234     esac
2235     case " $ac_configure_args " in
2236       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2237       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2238     esac
2239   fi
2240 done
2241 if $ac_cache_corrupted; then
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2247 fi
2248 ## -------------------- ##
2249 ## Main body of script. ##
2250 ## -------------------- ##
2251
2252 ac_ext=c
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257
2258
2259 am__api_version='1.11'
2260
2261 ac_aux_dir=
2262 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2263   if test -f "$ac_dir/install-sh"; then
2264     ac_aux_dir=$ac_dir
2265     ac_install_sh="$ac_aux_dir/install-sh -c"
2266     break
2267   elif test -f "$ac_dir/install.sh"; then
2268     ac_aux_dir=$ac_dir
2269     ac_install_sh="$ac_aux_dir/install.sh -c"
2270     break
2271   elif test -f "$ac_dir/shtool"; then
2272     ac_aux_dir=$ac_dir
2273     ac_install_sh="$ac_aux_dir/shtool install -c"
2274     break
2275   fi
2276 done
2277 if test -z "$ac_aux_dir"; then
2278   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2279 fi
2280
2281 # These three variables are undocumented and unsupported,
2282 # and are intended to be withdrawn in a future Autoconf release.
2283 # They can cause serious problems if a builder's source tree is in a directory
2284 # whose full name contains unusual characters.
2285 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2286 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2287 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2288
2289
2290 # Find a good install program.  We prefer a C program (faster),
2291 # so one script is as good as another.  But avoid the broken or
2292 # incompatible versions:
2293 # SysV /etc/install, /usr/sbin/install
2294 # SunOS /usr/etc/install
2295 # IRIX /sbin/install
2296 # AIX /bin/install
2297 # AmigaOS /C/install, which installs bootblocks on floppy discs
2298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2301 # OS/2's system install, which has a completely different semantic
2302 # ./install, which can be erroneously created by make from ./install.sh.
2303 # Reject install programs that cannot install multiple files.
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2305 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2306 if test -z "$INSTALL"; then
2307 if ${ac_cv_path_install+:} false; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315     # Account for people who put trailing slashes in PATH elements.
2316 case $as_dir/ in #((
2317   ./ | .// | /[cC]/* | \
2318   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2319   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2320   /usr/ucb/* ) ;;
2321   *)
2322     # OSF1 and SCO ODT 3.0 have their own names for install.
2323     # Don't use installbsd from OSF since it installs stuff as root
2324     # by default.
2325     for ac_prog in ginstall scoinst install; do
2326       for ac_exec_ext in '' $ac_executable_extensions; do
2327         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2328           if test $ac_prog = install &&
2329             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330             # AIX install.  It has an incompatible calling convention.
2331             :
2332           elif test $ac_prog = install &&
2333             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2334             # program-specific install script used by HP pwplus--don't use.
2335             :
2336           else
2337             rm -rf conftest.one conftest.two conftest.dir
2338             echo one > conftest.one
2339             echo two > conftest.two
2340             mkdir conftest.dir
2341             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2342               test -s conftest.one && test -s conftest.two &&
2343               test -s conftest.dir/conftest.one &&
2344               test -s conftest.dir/conftest.two
2345             then
2346               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2347               break 3
2348             fi
2349           fi
2350         fi
2351       done
2352     done
2353     ;;
2354 esac
2355
2356   done
2357 IFS=$as_save_IFS
2358
2359 rm -rf conftest.one conftest.two conftest.dir
2360
2361 fi
2362   if test "${ac_cv_path_install+set}" = set; then
2363     INSTALL=$ac_cv_path_install
2364   else
2365     # As a last resort, use the slow shell script.  Don't cache a
2366     # value for INSTALL within a source directory, because that will
2367     # break other packages using the cache if that directory is
2368     # removed, or if the value is a relative name.
2369     INSTALL=$ac_install_sh
2370   fi
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2373 $as_echo "$INSTALL" >&6; }
2374
2375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2376 # It thinks the first close brace ends the variable substitution.
2377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2378
2379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2380
2381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2382
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2384 $as_echo_n "checking whether build environment is sane... " >&6; }
2385 # Just in case
2386 sleep 1
2387 echo timestamp > conftest.file
2388 # Reject unsafe characters in $srcdir or the absolute working directory
2389 # name.  Accept space and tab only in the latter.
2390 am_lf='
2391 '
2392 case `pwd` in
2393   *[\\\"\#\$\&\'\`$am_lf]*)
2394     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2395 esac
2396 case $srcdir in
2397   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2398     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2399 esac
2400
2401 # Do `set' in a subshell so we don't clobber the current shell's
2402 # arguments.  Must try -L first in case configure is actually a
2403 # symlink; some systems play weird games with the mod time of symlinks
2404 # (eg FreeBSD returns the mod time of the symlink's containing
2405 # directory).
2406 if (
2407    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2408    if test "$*" = "X"; then
2409       # -L didn't work.
2410       set X `ls -t "$srcdir/configure" conftest.file`
2411    fi
2412    rm -f conftest.file
2413    if test "$*" != "X $srcdir/configure conftest.file" \
2414       && test "$*" != "X conftest.file $srcdir/configure"; then
2415
2416       # If neither matched, then we have a broken ls.  This can happen
2417       # if, for instance, CONFIG_SHELL is bash and it inherits a
2418       # broken ls alias from the environment.  This has actually
2419       # happened.  Such a system could not be considered "sane".
2420       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2421 alias in your environment" "$LINENO" 5
2422    fi
2423
2424    test "$2" = conftest.file
2425    )
2426 then
2427    # Ok.
2428    :
2429 else
2430    as_fn_error $? "newly created file is older than distributed files!
2431 Check your system clock" "$LINENO" 5
2432 fi
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434 $as_echo "yes" >&6; }
2435 test "$program_prefix" != NONE &&
2436   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2437 # Use a double $ so make ignores it.
2438 test "$program_suffix" != NONE &&
2439   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440 # Double any \ or $.
2441 # By default was `s,x,x', remove it if useless.
2442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444
2445 # expand $ac_aux_dir to an absolute path
2446 am_aux_dir=`cd $ac_aux_dir && pwd`
2447
2448 if test x"${MISSING+set}" != xset; then
2449   case $am_aux_dir in
2450   *\ * | *\     *)
2451     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2452   *)
2453     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2454   esac
2455 fi
2456 # Use eval to expand $SHELL
2457 if eval "$MISSING --run true"; then
2458   am_missing_run="$MISSING --run "
2459 else
2460   am_missing_run=
2461   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2462 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2463 fi
2464
2465 if test x"${install_sh}" != xset; then
2466   case $am_aux_dir in
2467   *\ * | *\     *)
2468     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2469   *)
2470     install_sh="\${SHELL} $am_aux_dir/install-sh"
2471   esac
2472 fi
2473
2474 # Installed binaries are usually stripped using `strip' when the user
2475 # run `make install-strip'.  However `strip' might not be the right
2476 # tool to use in cross-compilation environments, therefore Automake
2477 # will honor the `STRIP' environment variable to overrule this program.
2478 if test "$cross_compiling" != no; then
2479   if test -n "$ac_tool_prefix"; then
2480   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}strip; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_STRIP+:} false; then :
2485   $as_echo_n "(cached) " >&6
2486 else
2487   if test -n "$STRIP"; then
2488   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495     for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502   done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 STRIP=$ac_cv_prog_STRIP
2508 if test -n "$STRIP"; then
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2510 $as_echo "$STRIP" >&6; }
2511 else
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2514 fi
2515
2516
2517 fi
2518 if test -z "$ac_cv_prog_STRIP"; then
2519   ac_ct_STRIP=$STRIP
2520   # Extract the first word of "strip", so it can be a program name with args.
2521 set dummy strip; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   if test -n "$ac_ct_STRIP"; then
2528   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535     for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_ac_ct_STRIP="strip"
2538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542   done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2548 if test -n "$ac_ct_STRIP"; then
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2550 $as_echo "$ac_ct_STRIP" >&6; }
2551 else
2552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556   if test "x$ac_ct_STRIP" = x; then
2557     STRIP=":"
2558   else
2559     case $cross_compiling:$ac_tool_warned in
2560 yes:)
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2563 ac_tool_warned=yes ;;
2564 esac
2565     STRIP=$ac_ct_STRIP
2566   fi
2567 else
2568   STRIP="$ac_cv_prog_STRIP"
2569 fi
2570
2571 fi
2572 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2575 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2576 if test -z "$MKDIR_P"; then
2577   if ${ac_cv_path_mkdir+:} false; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585     for ac_prog in mkdir gmkdir; do
2586          for ac_exec_ext in '' $ac_executable_extensions; do
2587            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2588            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2589              'mkdir (GNU coreutils) '* | \
2590              'mkdir (coreutils) '* | \
2591              'mkdir (fileutils) '4.1*)
2592                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2593                break 3;;
2594            esac
2595          done
2596        done
2597   done
2598 IFS=$as_save_IFS
2599
2600 fi
2601
2602   test -d ./--version && rmdir ./--version
2603   if test "${ac_cv_path_mkdir+set}" = set; then
2604     MKDIR_P="$ac_cv_path_mkdir -p"
2605   else
2606     # As a last resort, use the slow shell script.  Don't cache a
2607     # value for MKDIR_P within a source directory, because that will
2608     # break other packages using the cache if that directory is
2609     # removed, or if the value is a relative name.
2610     MKDIR_P="$ac_install_sh -d"
2611   fi
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2614 $as_echo "$MKDIR_P" >&6; }
2615
2616 mkdir_p="$MKDIR_P"
2617 case $mkdir_p in
2618   [\\/$]* | ?:[\\/]*) ;;
2619   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2620 esac
2621
2622 for ac_prog in gawk mawk nawk awk
2623 do
2624   # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_AWK+:} false; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test -n "$AWK"; then
2632   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639     for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_AWK="$ac_prog"
2642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 AWK=$ac_cv_prog_AWK
2652 if test -n "$AWK"; then
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2654 $as_echo "$AWK" >&6; }
2655 else
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660
2661   test -n "$AWK" && break
2662 done
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2666 set x ${MAKE-make}
2667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2668 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   cat >conftest.make <<\_ACEOF
2672 SHELL = /bin/sh
2673 all:
2674         @echo '@@@%%%=$(MAKE)=@@@%%%'
2675 _ACEOF
2676 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2678   *@@@%%%=?*=@@@%%%*)
2679     eval ac_cv_prog_make_${ac_make}_set=yes;;
2680   *)
2681     eval ac_cv_prog_make_${ac_make}_set=no;;
2682 esac
2683 rm -f conftest.make
2684 fi
2685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2687 $as_echo "yes" >&6; }
2688   SET_MAKE=
2689 else
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692   SET_MAKE="MAKE=${MAKE-make}"
2693 fi
2694
2695 rm -rf .tst 2>/dev/null
2696 mkdir .tst 2>/dev/null
2697 if test -d .tst; then
2698   am__leading_dot=.
2699 else
2700   am__leading_dot=_
2701 fi
2702 rmdir .tst 2>/dev/null
2703
2704 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2705   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2706   # is not polluted with repeated "-I."
2707   am__isrc=' -I$(srcdir)'
2708   # test to see if srcdir already configured
2709   if test -f $srcdir/config.status; then
2710     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2711   fi
2712 fi
2713
2714 # test whether we have cygpath
2715 if test -z "$CYGPATH_W"; then
2716   if (cygpath --version) >/dev/null 2>/dev/null; then
2717     CYGPATH_W='cygpath -w'
2718   else
2719     CYGPATH_W=echo
2720   fi
2721 fi
2722
2723
2724 # Define the identity of the package.
2725  PACKAGE='libpng'
2726  VERSION='1.5.2'
2727
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE "$PACKAGE"
2731 _ACEOF
2732
2733
2734 cat >>confdefs.h <<_ACEOF
2735 #define VERSION "$VERSION"
2736 _ACEOF
2737
2738 # Some tools Automake needs.
2739
2740 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2741
2742
2743 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2744
2745
2746 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2747
2748
2749 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2750
2751
2752 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2753
2754 # We need awk for the "check" target.  The system "awk" is bad on
2755 # some platforms.
2756 # Always define AMTAR for backward compatibility.
2757
2758 AMTAR=${AMTAR-"${am_missing_run}tar"}
2759
2760 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2761
2762
2763
2764
2765
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2768 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2769     # Check whether --enable-maintainer-mode was given.
2770 if test "${enable_maintainer_mode+set}" = set; then :
2771   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2772 else
2773   USE_MAINTAINER_MODE=no
2774 fi
2775
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2777 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2778    if test $USE_MAINTAINER_MODE = yes; then
2779   MAINTAINER_MODE_TRUE=
2780   MAINTAINER_MODE_FALSE='#'
2781 else
2782   MAINTAINER_MODE_TRUE='#'
2783   MAINTAINER_MODE_FALSE=
2784 fi
2785
2786   MAINT=$MAINTAINER_MODE_TRUE
2787
2788
2789
2790 PNGLIB_VERSION=1.5.2
2791 PNGLIB_MAJOR=1
2792 PNGLIB_MINOR=5
2793 PNGLIB_RELEASE=2
2794
2795
2796
2797 ac_config_headers="$ac_config_headers config.h"
2798
2799
2800 # Checks for programs.
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806
2807 ac_ext=c
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 if test -n "$ac_tool_prefix"; then
2813   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_CC+:} false; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test -n "$CC"; then
2821   ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828     for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835   done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2844 else
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849
2850 fi
2851 if test -z "$ac_cv_prog_CC"; then
2852   ac_ct_CC=$CC
2853   # Extract the first word of "gcc", so it can be a program name with args.
2854 set dummy gcc; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2858   $as_echo_n "(cached) " >&6
2859 else
2860   if test -n "$ac_ct_CC"; then
2861   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868     for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CC="gcc"
2871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875   done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2881 if test -n "$ac_ct_CC"; then
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2883 $as_echo "$ac_ct_CC" >&6; }
2884 else
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887 fi
2888
2889   if test "x$ac_ct_CC" = x; then
2890     CC=""
2891   else
2892     case $cross_compiling:$ac_tool_warned in
2893 yes:)
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2896 ac_tool_warned=yes ;;
2897 esac
2898     CC=$ac_ct_CC
2899   fi
2900 else
2901   CC="$ac_cv_prog_CC"
2902 fi
2903
2904 if test -z "$CC"; then
2905           if test -n "$ac_tool_prefix"; then
2906     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}cc; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if ${ac_cv_prog_CC+:} false; then :
2911   $as_echo_n "(cached) " >&6
2912 else
2913   if test -n "$CC"; then
2914   ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919   IFS=$as_save_IFS
2920   test -z "$as_dir" && as_dir=.
2921     for ac_exec_ext in '' $ac_executable_extensions; do
2922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923     ac_cv_prog_CC="${ac_tool_prefix}cc"
2924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925     break 2
2926   fi
2927 done
2928   done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2936 $as_echo "$CC" >&6; }
2937 else
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 fi
2941
2942
2943   fi
2944 fi
2945 if test -z "$CC"; then
2946   # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_CC+:} false; then :
2951   $as_echo_n "(cached) " >&6
2952 else
2953   if test -n "$CC"; then
2954   ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956   ac_prog_rejected=no
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962     for ac_exec_ext in '' $ac_executable_extensions; do
2963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2965        ac_prog_rejected=yes
2966        continue
2967      fi
2968     ac_cv_prog_CC="cc"
2969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970     break 2
2971   fi
2972 done
2973   done
2974 IFS=$as_save_IFS
2975
2976 if test $ac_prog_rejected = yes; then
2977   # We found a bogon in the path, so make sure we never use it.
2978   set dummy $ac_cv_prog_CC
2979   shift
2980   if test $# != 0; then
2981     # We chose a different compiler from the bogus one.
2982     # However, it has the same basename, so the bogon will be chosen
2983     # first if we set CC to just the basename; use the full file name.
2984     shift
2985     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2986   fi
2987 fi
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2994 else
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000 fi
3001 if test -z "$CC"; then
3002   if test -n "$ac_tool_prefix"; then
3003   for ac_prog in cl.exe
3004   do
3005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_CC+:} false; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   if test -n "$CC"; then
3013   ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020     for ac_exec_ext in '' $ac_executable_extensions; do
3021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042     test -n "$CC" && break
3043   done
3044 fi
3045 if test -z "$CC"; then
3046   ac_ct_CC=$CC
3047   for ac_prog in cl.exe
3048 do
3049   # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$ac_ct_CC"; then
3057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_ac_ct_CC="$ac_prog"
3067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3079 $as_echo "$ac_ct_CC" >&6; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086   test -n "$ac_ct_CC" && break
3087 done
3088
3089   if test "x$ac_ct_CC" = x; then
3090     CC=""
3091   else
3092     case $cross_compiling:$ac_tool_warned in
3093 yes:)
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096 ac_tool_warned=yes ;;
3097 esac
3098     CC=$ac_ct_CC
3099   fi
3100 fi
3101
3102 fi
3103
3104
3105 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error $? "no acceptable C compiler found in \$PATH
3108 See \`config.log' for more details" "$LINENO" 5; }
3109
3110 # Provide some information about the compiler.
3111 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3112 set X $ac_compile
3113 ac_compiler=$2
3114 for ac_option in --version -v -V -qversion; do
3115   { { ac_try="$ac_compiler $ac_option >&5"
3116 case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3123   ac_status=$?
3124   if test -s conftest.err; then
3125     sed '10a\
3126 ... rest of stderr output deleted ...
3127          10q' conftest.err >conftest.er1
3128     cat conftest.er1 >&5
3129   fi
3130   rm -f conftest.er1 conftest.err
3131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132   test $ac_status = 0; }
3133 done
3134
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h.  */
3137
3138 int
3139 main ()
3140 {
3141
3142   ;
3143   return 0;
3144 }
3145 _ACEOF
3146 ac_clean_files_save=$ac_clean_files
3147 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3148 # Try to create an executable without -o first, disregard a.out.
3149 # It will help us diagnose broken compilers, and finding out an intuition
3150 # of exeext.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3152 $as_echo_n "checking whether the C compiler works... " >&6; }
3153 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3154
3155 # The possible output files:
3156 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3157
3158 ac_rmfiles=
3159 for ac_file in $ac_files
3160 do
3161   case $ac_file in
3162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3163     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3164   esac
3165 done
3166 rm -f $ac_rmfiles
3167
3168 if { { ac_try="$ac_link_default"
3169 case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174 $as_echo "$ac_try_echo"; } >&5
3175   (eval "$ac_link_default") 2>&5
3176   ac_status=$?
3177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178   test $ac_status = 0; }; then :
3179   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3180 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3181 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3182 # so that the user can short-circuit this test for compilers unknown to
3183 # Autoconf.
3184 for ac_file in $ac_files ''
3185 do
3186   test -f "$ac_file" || continue
3187   case $ac_file in
3188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3189         ;;
3190     [ab].out )
3191         # We found the default executable, but exeext='' is most
3192         # certainly right.
3193         break;;
3194     *.* )
3195         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3196         then :; else
3197            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198         fi
3199         # We set ac_cv_exeext here because the later test for it is not
3200         # safe: cross compilers may not add the suffix if given an `-o'
3201         # argument, so we may need to know it at that point already.
3202         # Even if this section looks crufty: it has the advantage of
3203         # actually working.
3204         break;;
3205     * )
3206         break;;
3207   esac
3208 done
3209 test "$ac_cv_exeext" = no && ac_cv_exeext=
3210
3211 else
3212   ac_file=''
3213 fi
3214 if test -z "$ac_file"; then :
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 $as_echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error 77 "C compiler cannot create executables
3223 See \`config.log' for more details" "$LINENO" 5; }
3224 else
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227 fi
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3229 $as_echo_n "checking for C compiler default output file name... " >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3231 $as_echo "$ac_file" >&6; }
3232 ac_exeext=$ac_cv_exeext
3233
3234 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3235 ac_clean_files=$ac_clean_files_save
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3237 $as_echo_n "checking for suffix of executables... " >&6; }
3238 if { { ac_try="$ac_link"
3239 case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245   (eval "$ac_link") 2>&5
3246   ac_status=$?
3247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248   test $ac_status = 0; }; then :
3249   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3250 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3251 # work properly (i.e., refer to `conftest.exe'), while it won't with
3252 # `rm'.
3253 for ac_file in conftest.exe conftest conftest.*; do
3254   test -f "$ac_file" || continue
3255   case $ac_file in
3256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3257     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258           break;;
3259     * ) break;;
3260   esac
3261 done
3262 else
3263   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3266 See \`config.log' for more details" "$LINENO" 5; }
3267 fi
3268 rm -f conftest conftest$ac_cv_exeext
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3270 $as_echo "$ac_cv_exeext" >&6; }
3271
3272 rm -f conftest.$ac_ext
3273 EXEEXT=$ac_cv_exeext
3274 ac_exeext=$EXEEXT
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h.  */
3277 #include <stdio.h>
3278 int
3279 main ()
3280 {
3281 FILE *f = fopen ("conftest.out", "w");
3282  return ferror (f) || fclose (f) != 0;
3283
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 ac_clean_files="$ac_clean_files conftest.out"
3289 # Check that the compiler produces executables we can run.  If not, either
3290 # the compiler is broken, or we cross compile.
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3292 $as_echo_n "checking whether we are cross compiling... " >&6; }
3293 if test "$cross_compiling" != yes; then
3294   { { ac_try="$ac_link"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301   (eval "$ac_link") 2>&5
3302   ac_status=$?
3303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304   test $ac_status = 0; }
3305   if { ac_try='./conftest$ac_cv_exeext'
3306   { { case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311 $as_echo "$ac_try_echo"; } >&5
3312   (eval "$ac_try") 2>&5
3313   ac_status=$?
3314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315   test $ac_status = 0; }; }; then
3316     cross_compiling=no
3317   else
3318     if test "$cross_compiling" = maybe; then
3319         cross_compiling=yes
3320     else
3321         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 as_fn_error $? "cannot run C compiled programs.
3324 If you meant to cross compile, use \`--host'.
3325 See \`config.log' for more details" "$LINENO" 5; }
3326     fi
3327   fi
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3330 $as_echo "$cross_compiling" >&6; }
3331
3332 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3333 ac_clean_files=$ac_clean_files_save
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3335 $as_echo_n "checking for suffix of object files... " >&6; }
3336 if ${ac_cv_objext+:} false; then :
3337   $as_echo_n "(cached) " >&6
3338 else
3339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h.  */
3341
3342 int
3343 main ()
3344 {
3345
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.o conftest.obj
3351 if { { ac_try="$ac_compile"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358   (eval "$ac_compile") 2>&5
3359   ac_status=$?
3360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361   test $ac_status = 0; }; then :
3362   for ac_file in conftest.o conftest.obj conftest.*; do
3363   test -f "$ac_file" || continue;
3364   case $ac_file in
3365     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3366     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3367        break;;
3368   esac
3369 done
3370 else
3371   $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error $? "cannot compute suffix of object files: cannot compile
3377 See \`config.log' for more details" "$LINENO" 5; }
3378 fi
3379 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3382 $as_echo "$ac_cv_objext" >&6; }
3383 OBJEXT=$ac_cv_objext
3384 ac_objext=$OBJEXT
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3386 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3387 if ${ac_cv_c_compiler_gnu+:} false; then :
3388   $as_echo_n "(cached) " >&6
3389 else
3390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h.  */
3392
3393 int
3394 main ()
3395 {
3396 #ifndef __GNUC__
3397        choke me
3398 #endif
3399
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 if ac_fn_c_try_compile "$LINENO"; then :
3405   ac_compiler_gnu=yes
3406 else
3407   ac_compiler_gnu=no
3408 fi
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3411
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3414 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3415 if test $ac_compiler_gnu = yes; then
3416   GCC=yes
3417 else
3418   GCC=
3419 fi
3420 ac_test_CFLAGS=${CFLAGS+set}
3421 ac_save_CFLAGS=$CFLAGS
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3423 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3424 if ${ac_cv_prog_cc_g+:} false; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   ac_save_c_werror_flag=$ac_c_werror_flag
3428    ac_c_werror_flag=yes
3429    ac_cv_prog_cc_g=no
3430    CFLAGS="-g"
3431    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 if ac_fn_c_try_compile "$LINENO"; then :
3443   ac_cv_prog_cc_g=yes
3444 else
3445   CFLAGS=""
3446       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 if ac_fn_c_try_compile "$LINENO"; then :
3458
3459 else
3460   ac_c_werror_flag=$ac_save_c_werror_flag
3461          CFLAGS="-g"
3462          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h.  */
3464
3465 int
3466 main ()
3467 {
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"; then :
3474   ac_cv_prog_cc_g=yes
3475 fi
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 fi
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 fi
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481    ac_c_werror_flag=$ac_save_c_werror_flag
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3484 $as_echo "$ac_cv_prog_cc_g" >&6; }
3485 if test "$ac_test_CFLAGS" = set; then
3486   CFLAGS=$ac_save_CFLAGS
3487 elif test $ac_cv_prog_cc_g = yes; then
3488   if test "$GCC" = yes; then
3489     CFLAGS="-g -O2"
3490   else
3491     CFLAGS="-g"
3492   fi
3493 else
3494   if test "$GCC" = yes; then
3495     CFLAGS="-O2"
3496   else
3497     CFLAGS=
3498   fi
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3501 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3502 if ${ac_cv_prog_cc_c89+:} false; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   ac_cv_prog_cc_c89=no
3506 ac_save_CC=$CC
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h.  */
3509 #include <stdarg.h>
3510 #include <stdio.h>
3511 #include <sys/types.h>
3512 #include <sys/stat.h>
3513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3514 struct buf { int x; };
3515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3516 static char *e (p, i)
3517      char **p;
3518      int i;
3519 {
3520   return p[i];
3521 }
3522 static char *f (char * (*g) (char **, int), char **p, ...)
3523 {
3524   char *s;
3525   va_list v;
3526   va_start (v,p);
3527   s = g (p, va_arg (v,int));
3528   va_end (v);
3529   return s;
3530 }
3531
3532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3533    function prototypes and stuff, but not '\xHH' hex character constants.
3534    These don't provoke an error unfortunately, instead are silently treated
3535    as 'x'.  The following induces an error, until -std is added to get
3536    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3537    array size at least.  It's necessary to write '\x00'==0 to get something
3538    that's true only with -std.  */
3539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3540
3541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3542    inside strings and character constants.  */
3543 #define FOO(x) 'x'
3544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3545
3546 int test (int i, double x);
3547 struct s1 {int (*f) (int a);};
3548 struct s2 {int (*f) (double a);};
3549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3550 int argc;
3551 char **argv;
3552 int
3553 main ()
3554 {
3555 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3561         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3562 do
3563   CC="$ac_save_CC $ac_arg"
3564   if ac_fn_c_try_compile "$LINENO"; then :
3565   ac_cv_prog_cc_c89=$ac_arg
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext
3568   test "x$ac_cv_prog_cc_c89" != "xno" && break
3569 done
3570 rm -f conftest.$ac_ext
3571 CC=$ac_save_CC
3572
3573 fi
3574 # AC_CACHE_VAL
3575 case "x$ac_cv_prog_cc_c89" in
3576   x)
3577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3578 $as_echo "none needed" >&6; } ;;
3579   xno)
3580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3581 $as_echo "unsupported" >&6; } ;;
3582   *)
3583     CC="$CC $ac_cv_prog_cc_c89"
3584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3586 esac
3587 if test "x$ac_cv_prog_cc_c89" != xno; then :
3588
3589 fi
3590
3591 ac_ext=c
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596 DEPDIR="${am__leading_dot}deps"
3597
3598 ac_config_commands="$ac_config_commands depfiles"
3599
3600
3601 am_make=${MAKE-make}
3602 cat > confinc << 'END'
3603 am__doit:
3604         @echo this is the am__doit target
3605 .PHONY: am__doit
3606 END
3607 # If we don't find an include directive, just comment out the code.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3609 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3610 am__include="#"
3611 am__quote=
3612 _am_result=none
3613 # First try GNU make style include.
3614 echo "include confinc" > confmf
3615 # Ignore all kinds of additional output from `make'.
3616 case `$am_make -s -f confmf 2> /dev/null` in #(
3617 *the\ am__doit\ target*)
3618   am__include=include
3619   am__quote=
3620   _am_result=GNU
3621   ;;
3622 esac
3623 # Now try BSD make style include.
3624 if test "$am__include" = "#"; then
3625    echo '.include "confinc"' > confmf
3626    case `$am_make -s -f confmf 2> /dev/null` in #(
3627    *the\ am__doit\ target*)
3628      am__include=.include
3629      am__quote="\""
3630      _am_result=BSD
3631      ;;
3632    esac
3633 fi
3634
3635
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3637 $as_echo "$_am_result" >&6; }
3638 rm -f confinc confmf
3639
3640 # Check whether --enable-dependency-tracking was given.
3641 if test "${enable_dependency_tracking+set}" = set; then :
3642   enableval=$enable_dependency_tracking;
3643 fi
3644
3645 if test "x$enable_dependency_tracking" != xno; then
3646   am_depcomp="$ac_aux_dir/depcomp"
3647   AMDEPBACKSLASH='\'
3648 fi
3649  if test "x$enable_dependency_tracking" != xno; then
3650   AMDEP_TRUE=
3651   AMDEP_FALSE='#'
3652 else
3653   AMDEP_TRUE='#'
3654   AMDEP_FALSE=
3655 fi
3656
3657
3658
3659 depcc="$CC"   am_compiler_list=
3660
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3662 $as_echo_n "checking dependency style of $depcc... " >&6; }
3663 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3664   $as_echo_n "(cached) " >&6
3665 else
3666   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3667   # We make a subdir and do the tests there.  Otherwise we can end up
3668   # making bogus files that we don't know about and never remove.  For
3669   # instance it was reported that on HP-UX the gcc test will end up
3670   # making a dummy file named `D' -- because `-MD' means `put the output
3671   # in D'.
3672   mkdir conftest.dir
3673   # Copy depcomp to subdir because otherwise we won't find it if we're
3674   # using a relative directory.
3675   cp "$am_depcomp" conftest.dir
3676   cd conftest.dir
3677   # We will build objects and dependencies in a subdirectory because
3678   # it helps to detect inapplicable dependency modes.  For instance
3679   # both Tru64's cc and ICC support -MD to output dependencies as a
3680   # side effect of compilation, but ICC will put the dependencies in
3681   # the current directory while Tru64 will put them in the object
3682   # directory.
3683   mkdir sub
3684
3685   am_cv_CC_dependencies_compiler_type=none
3686   if test "$am_compiler_list" = ""; then
3687      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3688   fi
3689   am__universal=false
3690   case " $depcc " in #(
3691      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3692      esac
3693
3694   for depmode in $am_compiler_list; do
3695     # Setup a source with many dependencies, because some compilers
3696     # like to wrap large dependency lists on column 80 (with \), and
3697     # we should not choose a depcomp mode which is confused by this.
3698     #
3699     # We need to recreate these files for each test, as the compiler may
3700     # overwrite some of them when testing with obscure command lines.
3701     # This happens at least with the AIX C compiler.
3702     : > sub/conftest.c
3703     for i in 1 2 3 4 5 6; do
3704       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3705       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3706       # Solaris 8's {/usr,}/bin/sh.
3707       touch sub/conftst$i.h
3708     done
3709     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3710
3711     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3712     # mode.  It turns out that the SunPro C++ compiler does not properly
3713     # handle `-M -o', and we need to detect this.  Also, some Intel
3714     # versions had trouble with output in subdirs
3715     am__obj=sub/conftest.${OBJEXT-o}
3716     am__minus_obj="-o $am__obj"
3717     case $depmode in
3718     gcc)
3719       # This depmode causes a compiler race in universal mode.
3720       test "$am__universal" = false || continue
3721       ;;
3722     nosideeffect)
3723       # after this tag, mechanisms are not by side-effect, so they'll
3724       # only be used when explicitly requested
3725       if test "x$enable_dependency_tracking" = xyes; then
3726         continue
3727       else
3728         break
3729       fi
3730       ;;
3731     msvisualcpp | msvcmsys)
3732       # This compiler won't grok `-c -o', but also, the minuso test has
3733       # not run yet.  These depmodes are late enough in the game, and
3734       # so weak that their functioning should not be impacted.
3735       am__obj=conftest.${OBJEXT-o}
3736       am__minus_obj=
3737       ;;
3738     none) break ;;
3739     esac
3740     if depmode=$depmode \
3741        source=sub/conftest.c object=$am__obj \
3742        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3743        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3744          >/dev/null 2>conftest.err &&
3745        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3746        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3747        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3748        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3749       # icc doesn't choke on unknown options, it will just issue warnings
3750       # or remarks (even with -Werror).  So we grep stderr for any message
3751       # that says an option was ignored or not supported.
3752       # When given -MP, icc 7.0 and 7.1 complain thusly:
3753       #   icc: Command line warning: ignoring option '-M'; no argument required
3754       # The diagnosis changed in icc 8.0:
3755       #   icc: Command line remark: option '-MP' not supported
3756       if (grep 'ignoring option' conftest.err ||
3757           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3758         am_cv_CC_dependencies_compiler_type=$depmode
3759         break
3760       fi
3761     fi
3762   done
3763
3764   cd ..
3765   rm -rf conftest.dir
3766 else
3767   am_cv_CC_dependencies_compiler_type=none
3768 fi
3769
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3772 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3773 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3774
3775  if
3776   test "x$enable_dependency_tracking" != xno \
3777   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3778   am__fastdepCC_TRUE=
3779   am__fastdepCC_FALSE='#'
3780 else
3781   am__fastdepCC_TRUE='#'
3782   am__fastdepCC_FALSE=
3783 fi
3784
3785
3786 # Make sure we can run config.sub.
3787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3788   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3789
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3791 $as_echo_n "checking build system type... " >&6; }
3792 if ${ac_cv_build+:} false; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   ac_build_alias=$build_alias
3796 test "x$ac_build_alias" = x &&
3797   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3798 test "x$ac_build_alias" = x &&
3799   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3800 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3801   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3802
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3805 $as_echo "$ac_cv_build" >&6; }
3806 case $ac_cv_build in
3807 *-*-*) ;;
3808 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3809 esac
3810 build=$ac_cv_build
3811 ac_save_IFS=$IFS; IFS='-'
3812 set x $ac_cv_build
3813 shift
3814 build_cpu=$1
3815 build_vendor=$2
3816 shift; shift
3817 # Remember, the first character of IFS is used to create $*,
3818 # except with old shells:
3819 build_os=$*
3820 IFS=$ac_save_IFS
3821 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3822
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3825 $as_echo_n "checking host system type... " >&6; }
3826 if ${ac_cv_host+:} false; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   if test "x$host_alias" = x; then
3830   ac_cv_host=$ac_cv_build
3831 else
3832   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3833     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3834 fi
3835
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3838 $as_echo "$ac_cv_host" >&6; }
3839 case $ac_cv_host in
3840 *-*-*) ;;
3841 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3842 esac
3843 host=$ac_cv_host
3844 ac_save_IFS=$IFS; IFS='-'
3845 set x $ac_cv_host
3846 shift
3847 host_cpu=$1
3848 host_vendor=$2
3849 shift; shift
3850 # Remember, the first character of IFS is used to create $*,
3851 # except with old shells:
3852 host_os=$*
3853 IFS=$ac_save_IFS
3854 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3855
3856
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3858 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3859 if ${ac_cv_path_SED+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3863      for ac_i in 1 2 3 4 5 6 7; do
3864        ac_script="$ac_script$as_nl$ac_script"
3865      done
3866      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3867      { ac_script=; unset ac_script;}
3868      if test -z "$SED"; then
3869   ac_path_SED_found=false
3870   # Loop through the user's path and test for each of PROGNAME-LIST
3871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876     for ac_prog in sed gsed; do
3877     for ac_exec_ext in '' $ac_executable_extensions; do
3878       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3879       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3880 # Check for GNU ac_path_SED and select it if it is found.
3881   # Check for GNU $ac_path_SED
3882 case `"$ac_path_SED" --version 2>&1` in
3883 *GNU*)
3884   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3885 *)
3886   ac_count=0
3887   $as_echo_n 0123456789 >"conftest.in"
3888   while :
3889   do
3890     cat "conftest.in" "conftest.in" >"conftest.tmp"
3891     mv "conftest.tmp" "conftest.in"
3892     cp "conftest.in" "conftest.nl"
3893     $as_echo '' >> "conftest.nl"
3894     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3896     as_fn_arith $ac_count + 1 && ac_count=$as_val
3897     if test $ac_count -gt ${ac_path_SED_max-0}; then
3898       # Best one so far, save it but keep looking for a better one
3899       ac_cv_path_SED="$ac_path_SED"
3900       ac_path_SED_max=$ac_count
3901     fi
3902     # 10*(2^10) chars as input seems more than enough
3903     test $ac_count -gt 10 && break
3904   done
3905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3906 esac
3907
3908       $ac_path_SED_found && break 3
3909     done
3910   done
3911   done
3912 IFS=$as_save_IFS
3913   if test -z "$ac_cv_path_SED"; then
3914     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3915   fi
3916 else
3917   ac_cv_path_SED=$SED
3918 fi
3919
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3922 $as_echo "$ac_cv_path_SED" >&6; }
3923  SED="$ac_cv_path_SED"
3924   rm -f conftest.sed
3925
3926 test -z "$SED" && SED=sed
3927 Xsed="$SED -e 1s/^X//"
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3940 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3941 if ${ac_cv_path_GREP+:} false; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   if test -z "$GREP"; then
3945   ac_path_GREP_found=false
3946   # Loop through the user's path and test for each of PROGNAME-LIST
3947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952     for ac_prog in grep ggrep; do
3953     for ac_exec_ext in '' $ac_executable_extensions; do
3954       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3955       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3956 # Check for GNU ac_path_GREP and select it if it is found.
3957   # Check for GNU $ac_path_GREP
3958 case `"$ac_path_GREP" --version 2>&1` in
3959 *GNU*)
3960   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3961 *)
3962   ac_count=0
3963   $as_echo_n 0123456789 >"conftest.in"
3964   while :
3965   do
3966     cat "conftest.in" "conftest.in" >"conftest.tmp"
3967     mv "conftest.tmp" "conftest.in"
3968     cp "conftest.in" "conftest.nl"
3969     $as_echo 'GREP' >> "conftest.nl"
3970     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3971     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3972     as_fn_arith $ac_count + 1 && ac_count=$as_val
3973     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3974       # Best one so far, save it but keep looking for a better one
3975       ac_cv_path_GREP="$ac_path_GREP"
3976       ac_path_GREP_max=$ac_count
3977     fi
3978     # 10*(2^10) chars as input seems more than enough
3979     test $ac_count -gt 10 && break
3980   done
3981   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982 esac
3983
3984       $ac_path_GREP_found && break 3
3985     done
3986   done
3987   done
3988 IFS=$as_save_IFS
3989   if test -z "$ac_cv_path_GREP"; then
3990     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3991   fi
3992 else
3993   ac_cv_path_GREP=$GREP
3994 fi
3995
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3998 $as_echo "$ac_cv_path_GREP" >&6; }
3999  GREP="$ac_cv_path_GREP"
4000
4001
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4003 $as_echo_n "checking for egrep... " >&6; }
4004 if ${ac_cv_path_EGREP+:} false; then :
4005   $as_echo_n "(cached) " >&6
4006 else
4007   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4008    then ac_cv_path_EGREP="$GREP -E"
4009    else
4010      if test -z "$EGREP"; then
4011   ac_path_EGREP_found=false
4012   # Loop through the user's path and test for each of PROGNAME-LIST
4013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018     for ac_prog in egrep; do
4019     for ac_exec_ext in '' $ac_executable_extensions; do
4020       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4021       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4022 # Check for GNU ac_path_EGREP and select it if it is found.
4023   # Check for GNU $ac_path_EGREP
4024 case `"$ac_path_EGREP" --version 2>&1` in
4025 *GNU*)
4026   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027 *)
4028   ac_count=0
4029   $as_echo_n 0123456789 >"conftest.in"
4030   while :
4031   do
4032     cat "conftest.in" "conftest.in" >"conftest.tmp"
4033     mv "conftest.tmp" "conftest.in"
4034     cp "conftest.in" "conftest.nl"
4035     $as_echo 'EGREP' >> "conftest.nl"
4036     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038     as_fn_arith $ac_count + 1 && ac_count=$as_val
4039     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4040       # Best one so far, save it but keep looking for a better one
4041       ac_cv_path_EGREP="$ac_path_EGREP"
4042       ac_path_EGREP_max=$ac_count
4043     fi
4044     # 10*(2^10) chars as input seems more than enough
4045     test $ac_count -gt 10 && break
4046   done
4047   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048 esac
4049
4050       $ac_path_EGREP_found && break 3
4051     done
4052   done
4053   done
4054 IFS=$as_save_IFS
4055   if test -z "$ac_cv_path_EGREP"; then
4056     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4057   fi
4058 else
4059   ac_cv_path_EGREP=$EGREP
4060 fi
4061
4062    fi
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4065 $as_echo "$ac_cv_path_EGREP" >&6; }
4066  EGREP="$ac_cv_path_EGREP"
4067
4068
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4070 $as_echo_n "checking for fgrep... " >&6; }
4071 if ${ac_cv_path_FGREP+:} false; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4075    then ac_cv_path_FGREP="$GREP -F"
4076    else
4077      if test -z "$FGREP"; then
4078   ac_path_FGREP_found=false
4079   # Loop through the user's path and test for each of PROGNAME-LIST
4080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082 do
4083   IFS=$as_save_IFS
4084   test -z "$as_dir" && as_dir=.
4085     for ac_prog in fgrep; do
4086     for ac_exec_ext in '' $ac_executable_extensions; do
4087       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4088       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4089 # Check for GNU ac_path_FGREP and select it if it is found.
4090   # Check for GNU $ac_path_FGREP
4091 case `"$ac_path_FGREP" --version 2>&1` in
4092 *GNU*)
4093   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4094 *)
4095   ac_count=0
4096   $as_echo_n 0123456789 >"conftest.in"
4097   while :
4098   do
4099     cat "conftest.in" "conftest.in" >"conftest.tmp"
4100     mv "conftest.tmp" "conftest.in"
4101     cp "conftest.in" "conftest.nl"
4102     $as_echo 'FGREP' >> "conftest.nl"
4103     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4104     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4105     as_fn_arith $ac_count + 1 && ac_count=$as_val
4106     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4107       # Best one so far, save it but keep looking for a better one
4108       ac_cv_path_FGREP="$ac_path_FGREP"
4109       ac_path_FGREP_max=$ac_count
4110     fi
4111     # 10*(2^10) chars as input seems more than enough
4112     test $ac_count -gt 10 && break
4113   done
4114   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4115 esac
4116
4117       $ac_path_FGREP_found && break 3
4118     done
4119   done
4120   done
4121 IFS=$as_save_IFS
4122   if test -z "$ac_cv_path_FGREP"; then
4123     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4124   fi
4125 else
4126   ac_cv_path_FGREP=$FGREP
4127 fi
4128
4129    fi
4130 fi
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4132 $as_echo "$ac_cv_path_FGREP" >&6; }
4133  FGREP="$ac_cv_path_FGREP"
4134
4135
4136 test -z "$GREP" && GREP=grep
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4155 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4156 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4159 $as_echo_n "checking how to print strings... " >&6; }
4160 # Test print first, because it will be a builtin if present.
4161 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4162    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4163   ECHO='print -r --'
4164 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4165   ECHO='printf %s\n'
4166 else
4167   # Use this function as a fallback that always works.
4168   func_fallback_echo ()
4169   {
4170     eval 'cat <<_LTECHO_EOF
4171 $1
4172 _LTECHO_EOF'
4173   }
4174   ECHO='func_fallback_echo'
4175 fi
4176
4177 # func_echo_all arg...
4178 # Invoke $ECHO with all args, space-separated.
4179 func_echo_all ()
4180 {
4181     $ECHO ""
4182 }
4183
4184 case "$ECHO" in
4185   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4186 $as_echo "printf" >&6; } ;;
4187   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4188 $as_echo "print -r" >&6; } ;;
4189   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4190 $as_echo "cat" >&6; } ;;
4191 esac
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208 # Check whether --with-gnu-ld was given.
4209 if test "${with_gnu_ld+set}" = set; then :
4210   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4211 else
4212   with_gnu_ld=no
4213 fi
4214
4215 ac_prog=ld
4216 if test "$GCC" = yes; then
4217   # Check if gcc -print-prog-name=ld gives a path.
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4219 $as_echo_n "checking for ld used by $CC... " >&6; }
4220   case $host in
4221   *-*-mingw*)
4222     # gcc leaves a trailing carriage return which upsets mingw
4223     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4224   *)
4225     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4226   esac
4227   case $ac_prog in
4228     # Accept absolute paths.
4229     [\\/]* | ?:[\\/]*)
4230       re_direlt='/[^/][^/]*/\.\./'
4231       # Canonicalize the pathname of ld
4232       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4233       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4234         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4235       done
4236       test -z "$LD" && LD="$ac_prog"
4237       ;;
4238   "")
4239     # If it fails, then pretend we aren't using GCC.
4240     ac_prog=ld
4241     ;;
4242   *)
4243     # If it is relative, then search for the first ld in PATH.
4244     with_gnu_ld=unknown
4245     ;;
4246   esac
4247 elif test "$with_gnu_ld" = yes; then
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4249 $as_echo_n "checking for GNU ld... " >&6; }
4250 else
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4252 $as_echo_n "checking for non-GNU ld... " >&6; }
4253 fi
4254 if ${lt_cv_path_LD+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   if test -z "$LD"; then
4258   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4259   for ac_dir in $PATH; do
4260     IFS="$lt_save_ifs"
4261     test -z "$ac_dir" && ac_dir=.
4262     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4263       lt_cv_path_LD="$ac_dir/$ac_prog"
4264       # Check to see if the program is GNU ld.  I'd rather use --version,
4265       # but apparently some variants of GNU ld only accept -v.
4266       # Break only if it was the GNU/non-GNU ld that we prefer.
4267       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4268       *GNU* | *'with BFD'*)
4269         test "$with_gnu_ld" != no && break
4270         ;;
4271       *)
4272         test "$with_gnu_ld" != yes && break
4273         ;;
4274       esac
4275     fi
4276   done
4277   IFS="$lt_save_ifs"
4278 else
4279   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4280 fi
4281 fi
4282
4283 LD="$lt_cv_path_LD"
4284 if test -n "$LD"; then
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4286 $as_echo "$LD" >&6; }
4287 else
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4293 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4294 if ${lt_cv_prog_gnu_ld+:} false; then :
4295   $as_echo_n "(cached) " >&6
4296 else
4297   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4298 case `$LD -v 2>&1 </dev/null` in
4299 *GNU* | *'with BFD'*)
4300   lt_cv_prog_gnu_ld=yes
4301   ;;
4302 *)
4303   lt_cv_prog_gnu_ld=no
4304   ;;
4305 esac
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4308 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4309 with_gnu_ld=$lt_cv_prog_gnu_ld
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4326 # On Suns, sometimes $CPP names a directory.
4327 if test -n "$CPP" && test -d "$CPP"; then
4328   CPP=
4329 fi
4330 if test -z "$CPP"; then
4331   if ${ac_cv_prog_CPP+:} false; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334       # Double quotes because CPP needs to be expanded
4335     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4336     do
4337       ac_preproc_ok=false
4338 for ac_c_preproc_warn_flag in '' yes
4339 do
4340   # Use a header file that comes with gcc, so configuring glibc
4341   # with a fresh cross-compiler works.
4342   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4343   # <limits.h> exists even on freestanding compilers.
4344   # On the NeXT, cc -E runs the code through the compiler's parser,
4345   # not just through cpp. "Syntax error" is here to catch this case.
4346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348 #ifdef __STDC__
4349 # include <limits.h>
4350 #else
4351 # include <assert.h>
4352 #endif
4353                      Syntax error
4354 _ACEOF
4355 if ac_fn_c_try_cpp "$LINENO"; then :
4356
4357 else
4358   # Broken: fails on valid input.
4359 continue
4360 fi
4361 rm -f conftest.err conftest.i conftest.$ac_ext
4362
4363   # OK, works on sane cases.  Now check whether nonexistent headers
4364   # can be detected and how.
4365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h.  */
4367 #include <ac_nonexistent.h>
4368 _ACEOF
4369 if ac_fn_c_try_cpp "$LINENO"; then :
4370   # Broken: success on invalid input.
4371 continue
4372 else
4373   # Passes both tests.
4374 ac_preproc_ok=:
4375 break
4376 fi
4377 rm -f conftest.err conftest.i conftest.$ac_ext
4378
4379 done
4380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4381 rm -f conftest.i conftest.err conftest.$ac_ext
4382 if $ac_preproc_ok; then :
4383   break
4384 fi
4385
4386     done
4387     ac_cv_prog_CPP=$CPP
4388
4389 fi
4390   CPP=$ac_cv_prog_CPP
4391 else
4392   ac_cv_prog_CPP=$CPP
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4395 $as_echo "$CPP" >&6; }
4396 ac_preproc_ok=false
4397 for ac_c_preproc_warn_flag in '' yes
4398 do
4399   # Use a header file that comes with gcc, so configuring glibc
4400   # with a fresh cross-compiler works.
4401   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4402   # <limits.h> exists even on freestanding compilers.
4403   # On the NeXT, cc -E runs the code through the compiler's parser,
4404   # not just through cpp. "Syntax error" is here to catch this case.
4405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h.  */
4407 #ifdef __STDC__
4408 # include <limits.h>
4409 #else
4410 # include <assert.h>
4411 #endif
4412                      Syntax error
4413 _ACEOF
4414 if ac_fn_c_try_cpp "$LINENO"; then :
4415
4416 else
4417   # Broken: fails on valid input.
4418 continue
4419 fi
4420 rm -f conftest.err conftest.i conftest.$ac_ext
4421
4422   # OK, works on sane cases.  Now check whether nonexistent headers
4423   # can be detected and how.
4424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h.  */
4426 #include <ac_nonexistent.h>
4427 _ACEOF
4428 if ac_fn_c_try_cpp "$LINENO"; then :
4429   # Broken: success on invalid input.
4430 continue
4431 else
4432   # Passes both tests.
4433 ac_preproc_ok=:
4434 break
4435 fi
4436 rm -f conftest.err conftest.i conftest.$ac_ext
4437
4438 done
4439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4440 rm -f conftest.i conftest.err conftest.$ac_ext
4441 if $ac_preproc_ok; then :
4442
4443 else
4444   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4447 See \`config.log' for more details" "$LINENO" 5; }
4448 fi
4449
4450 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456 if test -n "$ac_tool_prefix"; then
4457   # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4458 set dummy ${ac_tool_prefix}sed; ac_word=$2
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460 $as_echo_n "checking for $ac_word... " >&6; }
4461 if ${ac_cv_prog_SED+:} false; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464   if test -n "$SED"; then
4465   ac_cv_prog_SED="$SED" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472     for ac_exec_ext in '' $ac_executable_extensions; do
4473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474     ac_cv_prog_SED="${ac_tool_prefix}sed"
4475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479   done
4480 IFS=$as_save_IFS
4481
4482 fi
4483 fi
4484 SED=$ac_cv_prog_SED
4485 if test -n "$SED"; then
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4487 $as_echo "$SED" >&6; }
4488 else
4489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 $as_echo "no" >&6; }
4491 fi
4492
4493
4494 fi
4495 if test -z "$ac_cv_prog_SED"; then
4496   ac_ct_SED=$SED
4497   # Extract the first word of "sed", so it can be a program name with args.
4498 set dummy sed; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_prog_ac_ct_SED+:} false; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   if test -n "$ac_ct_SED"; then
4505   ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512     for ac_exec_ext in '' $ac_executable_extensions; do
4513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514     ac_cv_prog_ac_ct_SED="sed"
4515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519   done
4520 IFS=$as_save_IFS
4521
4522 fi
4523 fi
4524 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4525 if test -n "$ac_ct_SED"; then
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4527 $as_echo "$ac_ct_SED" >&6; }
4528 else
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 fi
4532
4533   if test "x$ac_ct_SED" = x; then
4534     SED=":"
4535   else
4536     case $cross_compiling:$ac_tool_warned in
4537 yes:)
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4540 ac_tool_warned=yes ;;
4541 esac
4542     SED=$ac_ct_SED
4543   fi
4544 else
4545   SED="$ac_cv_prog_SED"
4546 fi
4547
4548 if test -n "$ac_tool_prefix"; then
4549   # Extract the first word of "${ac_tool_prefix}awk", so it can be a program name with args.
4550 set dummy ${ac_tool_prefix}awk; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_AWK+:} false; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -n "$AWK"; then
4557   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564     for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     ac_cv_prog_AWK="${ac_tool_prefix}awk"
4567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571   done
4572 IFS=$as_save_IFS
4573
4574 fi
4575 fi
4576 AWK=$ac_cv_prog_AWK
4577 if test -n "$AWK"; then
4578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4579 $as_echo "$AWK" >&6; }
4580 else
4581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586 fi
4587 if test -z "$ac_cv_prog_AWK"; then
4588   ac_ct_AWK=$AWK
4589   # Extract the first word of "awk", so it can be a program name with args.
4590 set dummy awk; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_ac_ct_AWK+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   if test -n "$ac_ct_AWK"; then
4597   ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606     ac_cv_prog_ac_ct_AWK="awk"
4607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611   done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
4617 if test -n "$ac_ct_AWK"; then
4618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
4619 $as_echo "$ac_ct_AWK" >&6; }
4620 else
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624
4625   if test "x$ac_ct_AWK" = x; then
4626     AWK=":"
4627   else
4628     case $cross_compiling:$ac_tool_warned in
4629 yes:)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4633 esac
4634     AWK=$ac_ct_AWK
4635   fi
4636 else
4637   AWK="$ac_cv_prog_AWK"
4638 fi
4639
4640
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4642 $as_echo_n "checking whether ln -s works... " >&6; }
4643 LN_S=$as_ln_s
4644 if test "$LN_S" = "ln -s"; then
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4646 $as_echo "yes" >&6; }
4647 else
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4649 $as_echo "no, using $LN_S" >&6; }
4650 fi
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4654 set x ${MAKE-make}
4655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4656 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   cat >conftest.make <<\_ACEOF
4660 SHELL = /bin/sh
4661 all:
4662         @echo '@@@%%%=$(MAKE)=@@@%%%'
4663 _ACEOF
4664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4666   *@@@%%%=?*=@@@%%%*)
4667     eval ac_cv_prog_make_${ac_make}_set=yes;;
4668   *)
4669     eval ac_cv_prog_make_${ac_make}_set=no;;
4670 esac
4671 rm -f conftest.make
4672 fi
4673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4675 $as_echo "yes" >&6; }
4676   SET_MAKE=
4677 else
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680   SET_MAKE="MAKE=${MAKE-make}"
4681 fi
4682
4683 case `pwd` in
4684   *\ * | *\     *)
4685     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4686 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4687 esac
4688
4689
4690
4691 macro_version='2.4'
4692 macro_revision='1.3293'
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 ltmain="$ac_aux_dir/ltmain.sh"
4707
4708 # Backslashify metacharacters that are still active within
4709 # double-quoted strings.
4710 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4711
4712 # Same as above, but do not quote variable references.
4713 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4714
4715 # Sed substitution to delay expansion of an escaped shell variable in a
4716 # double_quote_subst'ed string.
4717 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4718
4719 # Sed substitution to delay expansion of an escaped single quote.
4720 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4721
4722 # Sed substitution to avoid accidental globbing in evaled expressions
4723 no_glob_subst='s/\*/\\\*/g'
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4726 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4727 if ${lt_cv_path_NM+:} false; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   if test -n "$NM"; then
4731   # Let the user override the test.
4732   lt_cv_path_NM="$NM"
4733 else
4734   lt_nm_to_check="${ac_tool_prefix}nm"
4735   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4736     lt_nm_to_check="$lt_nm_to_check nm"
4737   fi
4738   for lt_tmp_nm in $lt_nm_to_check; do
4739     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4740     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4741       IFS="$lt_save_ifs"
4742       test -z "$ac_dir" && ac_dir=.
4743       tmp_nm="$ac_dir/$lt_tmp_nm"
4744       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4745         # Check to see if the nm accepts a BSD-compat flag.
4746         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4747         #   nm: unknown option "B" ignored
4748         # Tru64's nm complains that /dev/null is an invalid object file
4749         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4750         */dev/null* | *'Invalid file or object type'*)
4751           lt_cv_path_NM="$tmp_nm -B"
4752           break
4753           ;;
4754         *)
4755           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4756           */dev/null*)
4757             lt_cv_path_NM="$tmp_nm -p"
4758             break
4759             ;;
4760           *)
4761             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4762             continue # so that we can try to find one that supports BSD flags
4763             ;;
4764           esac
4765           ;;
4766         esac
4767       fi
4768     done
4769     IFS="$lt_save_ifs"
4770   done
4771   : ${lt_cv_path_NM=no}
4772 fi
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4775 $as_echo "$lt_cv_path_NM" >&6; }
4776 if test "$lt_cv_path_NM" != "no"; then
4777   NM="$lt_cv_path_NM"
4778 else
4779   # Didn't find any BSD compatible name lister, look for dumpbin.
4780   if test -n "$DUMPBIN"; then :
4781     # Let the user override the test.
4782   else
4783     if test -n "$ac_tool_prefix"; then
4784   for ac_prog in dumpbin "link -dump"
4785   do
4786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_prog_DUMPBIN+:} false; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   if test -n "$DUMPBIN"; then
4794   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4798 do
4799   IFS=$as_save_IFS
4800   test -z "$as_dir" && as_dir=.
4801     for ac_exec_ext in '' $ac_executable_extensions; do
4802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805     break 2
4806   fi
4807 done
4808   done
4809 IFS=$as_save_IFS
4810
4811 fi
4812 fi
4813 DUMPBIN=$ac_cv_prog_DUMPBIN
4814 if test -n "$DUMPBIN"; then
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4816 $as_echo "$DUMPBIN" >&6; }
4817 else
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821
4822
4823     test -n "$DUMPBIN" && break
4824   done
4825 fi
4826 if test -z "$DUMPBIN"; then
4827   ac_ct_DUMPBIN=$DUMPBIN
4828   for ac_prog in dumpbin "link -dump"
4829 do
4830   # Extract the first word of "$ac_prog", so it can be a program name with args.
4831 set dummy $ac_prog; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   if test -n "$ac_ct_DUMPBIN"; then
4838   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845     for ac_exec_ext in '' $ac_executable_extensions; do
4846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852   done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4858 if test -n "$ac_ct_DUMPBIN"; then
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4860 $as_echo "$ac_ct_DUMPBIN" >&6; }
4861 else
4862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4864 fi
4865
4866
4867   test -n "$ac_ct_DUMPBIN" && break
4868 done
4869
4870   if test "x$ac_ct_DUMPBIN" = x; then
4871     DUMPBIN=":"
4872   else
4873     case $cross_compiling:$ac_tool_warned in
4874 yes:)
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4877 ac_tool_warned=yes ;;
4878 esac
4879     DUMPBIN=$ac_ct_DUMPBIN
4880   fi
4881 fi
4882
4883     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4884     *COFF*)
4885       DUMPBIN="$DUMPBIN -symbols"
4886       ;;
4887     *)
4888       DUMPBIN=:
4889       ;;
4890     esac
4891   fi
4892
4893   if test "$DUMPBIN" != ":"; then
4894     NM="$DUMPBIN"
4895   fi
4896 fi
4897 test -z "$NM" && NM=nm
4898
4899
4900
4901
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4905 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4906 if ${lt_cv_nm_interface+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   lt_cv_nm_interface="BSD nm"
4910   echo "int some_variable = 0;" > conftest.$ac_ext
4911   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4912   (eval "$ac_compile" 2>conftest.err)
4913   cat conftest.err >&5
4914   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4915   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4916   cat conftest.err >&5
4917   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4918   cat conftest.out >&5
4919   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4920     lt_cv_nm_interface="MS dumpbin"
4921   fi
4922   rm -f conftest*
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4925 $as_echo "$lt_cv_nm_interface" >&6; }
4926
4927 # find the maximum length of command line arguments
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4929 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4930 if ${lt_cv_sys_max_cmd_len+:} false; then :
4931   $as_echo_n "(cached) " >&6
4932 else
4933     i=0
4934   teststring="ABCD"
4935
4936   case $build_os in
4937   msdosdjgpp*)
4938     # On DJGPP, this test can blow up pretty badly due to problems in libc
4939     # (any single argument exceeding 2000 bytes causes a buffer overrun
4940     # during glob expansion).  Even if it were fixed, the result of this
4941     # check would be larger than it should be.
4942     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4943     ;;
4944
4945   gnu*)
4946     # Under GNU Hurd, this test is not required because there is
4947     # no limit to the length of command line arguments.
4948     # Libtool will interpret -1 as no limit whatsoever
4949     lt_cv_sys_max_cmd_len=-1;
4950     ;;
4951
4952   cygwin* | mingw* | cegcc*)
4953     # On Win9x/ME, this test blows up -- it succeeds, but takes
4954     # about 5 minutes as the teststring grows exponentially.
4955     # Worse, since 9x/ME are not pre-emptively multitasking,
4956     # you end up with a "frozen" computer, even though with patience
4957     # the test eventually succeeds (with a max line length of 256k).
4958     # Instead, let's just punt: use the minimum linelength reported by
4959     # all of the supported platforms: 8192 (on NT/2K/XP).
4960     lt_cv_sys_max_cmd_len=8192;
4961     ;;
4962
4963   mint*)
4964     # On MiNT this can take a long time and run out of memory.
4965     lt_cv_sys_max_cmd_len=8192;
4966     ;;
4967
4968   amigaos*)
4969     # On AmigaOS with pdksh, this test takes hours, literally.
4970     # So we just punt and use a minimum line length of 8192.
4971     lt_cv_sys_max_cmd_len=8192;
4972     ;;
4973
4974   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4975     # This has been around since 386BSD, at least.  Likely further.
4976     if test -x /sbin/sysctl; then
4977       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4978     elif test -x /usr/sbin/sysctl; then
4979       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4980     else
4981       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4982     fi
4983     # And add a safety zone
4984     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4985     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4986     ;;
4987
4988   interix*)
4989     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4990     lt_cv_sys_max_cmd_len=196608
4991     ;;
4992
4993   osf*)
4994     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4995     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4996     # nice to cause kernel panics so lets avoid the loop below.
4997     # First set a reasonable default.
4998     lt_cv_sys_max_cmd_len=16384
4999     #
5000     if test -x /sbin/sysconfig; then
5001       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5002         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5003       esac
5004     fi
5005     ;;
5006   sco3.2v5*)
5007     lt_cv_sys_max_cmd_len=102400
5008     ;;
5009   sysv5* | sco5v6* | sysv4.2uw2*)
5010     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5011     if test -n "$kargmax"; then
5012       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5013     else
5014       lt_cv_sys_max_cmd_len=32768
5015     fi
5016     ;;
5017   *)
5018     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5019     if test -n "$lt_cv_sys_max_cmd_len"; then
5020       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5021       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5022     else
5023       # Make teststring a little bigger before we do anything with it.
5024       # a 1K string should be a reasonable start.
5025       for i in 1 2 3 4 5 6 7 8 ; do
5026         teststring=$teststring$teststring
5027       done
5028       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5029       # If test is not a shell built-in, we'll probably end up computing a
5030       # maximum length that is only half of the actual maximum length, but
5031       # we can't tell.
5032       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5033                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5034               test $i != 17 # 1/2 MB should be enough
5035       do
5036         i=`expr $i + 1`
5037         teststring=$teststring$teststring
5038       done
5039       # Only check the string length outside the loop.
5040       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5041       teststring=
5042       # Add a significant safety factor because C++ compilers can tack on
5043       # massive amounts of additional arguments before passing them to the
5044       # linker.  It appears as though 1/2 is a usable value.
5045       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5046     fi
5047     ;;
5048   esac
5049
5050 fi
5051
5052 if test -n $lt_cv_sys_max_cmd_len ; then
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5054 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5055 else
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5057 $as_echo "none" >&6; }
5058 fi
5059 max_cmd_len=$lt_cv_sys_max_cmd_len
5060
5061
5062
5063
5064
5065
5066 : ${CP="cp -f"}
5067 : ${MV="mv -f"}
5068 : ${RM="rm -f"}
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5071 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5072 # Try some XSI features
5073 xsi_shell=no
5074 ( _lt_dummy="a/b/c"
5075   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5076       = c,a/b,b/c, \
5077     && eval 'test $(( 1 + 1 )) -eq 2 \
5078     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5079   && xsi_shell=yes
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5081 $as_echo "$xsi_shell" >&6; }
5082
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5085 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5086 lt_shell_append=no
5087 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5088     >/dev/null 2>&1 \
5089   && lt_shell_append=yes
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5091 $as_echo "$lt_shell_append" >&6; }
5092
5093
5094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5095   lt_unset=unset
5096 else
5097   lt_unset=false
5098 fi
5099
5100
5101
5102
5103
5104 # test EBCDIC or ASCII
5105 case `echo X|tr X '\101'` in
5106  A) # ASCII based system
5107     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5108   lt_SP2NL='tr \040 \012'
5109   lt_NL2SP='tr \015\012 \040\040'
5110   ;;
5111  *) # EBCDIC based system
5112   lt_SP2NL='tr \100 \n'
5113   lt_NL2SP='tr \r\n \100\100'
5114   ;;
5115 esac
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5126 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5127 if ${lt_cv_to_host_file_cmd+:} false; then :
5128   $as_echo_n "(cached) " >&6
5129 else
5130   case $host in
5131   *-*-mingw* )
5132     case $build in
5133       *-*-mingw* ) # actually msys
5134         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5135         ;;
5136       *-*-cygwin* )
5137         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5138         ;;
5139       * ) # otherwise, assume *nix
5140         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5141         ;;
5142     esac
5143     ;;
5144   *-*-cygwin* )
5145     case $build in
5146       *-*-mingw* ) # actually msys
5147         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5148         ;;
5149       *-*-cygwin* )
5150         lt_cv_to_host_file_cmd=func_convert_file_noop
5151         ;;
5152       * ) # otherwise, assume *nix
5153         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5154         ;;
5155     esac
5156     ;;
5157   * ) # unhandled hosts (and "normal" native builds)
5158     lt_cv_to_host_file_cmd=func_convert_file_noop
5159     ;;
5160 esac
5161
5162 fi
5163
5164 to_host_file_cmd=$lt_cv_to_host_file_cmd
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5166 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5167
5168
5169
5170
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5173 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5174 if ${lt_cv_to_tool_file_cmd+:} false; then :
5175   $as_echo_n "(cached) " >&6
5176 else
5177   #assume ordinary cross tools, or native build.
5178 lt_cv_to_tool_file_cmd=func_convert_file_noop
5179 case $host in
5180   *-*-mingw* )
5181     case $build in
5182       *-*-mingw* ) # actually msys
5183         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5184         ;;
5185     esac
5186     ;;
5187 esac
5188
5189 fi
5190
5191 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5193 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5194
5195
5196
5197
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5200 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5201 if ${lt_cv_ld_reload_flag+:} false; then :
5202   $as_echo_n "(cached) " >&6
5203 else
5204   lt_cv_ld_reload_flag='-r'
5205 fi
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5207 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5208 reload_flag=$lt_cv_ld_reload_flag
5209 case $reload_flag in
5210 "" | " "*) ;;
5211 *) reload_flag=" $reload_flag" ;;
5212 esac
5213 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5214 case $host_os in
5215   cygwin* | mingw* | pw32* | cegcc*)
5216     if test "$GCC" != yes; then
5217       reload_cmds=false
5218     fi
5219     ;;
5220   darwin*)
5221     if test "$GCC" = yes; then
5222       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5223     else
5224       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5225     fi
5226     ;;
5227 esac
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237 if test -n "$ac_tool_prefix"; then
5238   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5239 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_OBJDUMP+:} false; then :
5243   $as_echo_n "(cached) " >&6
5244 else
5245   if test -n "$OBJDUMP"; then
5246   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251   IFS=$as_save_IFS
5252   test -z "$as_dir" && as_dir=.
5253     for ac_exec_ext in '' $ac_executable_extensions; do
5254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257     break 2
5258   fi
5259 done
5260   done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 OBJDUMP=$ac_cv_prog_OBJDUMP
5266 if test -n "$OBJDUMP"; then
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5268 $as_echo "$OBJDUMP" >&6; }
5269 else
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 fi
5276 if test -z "$ac_cv_prog_OBJDUMP"; then
5277   ac_ct_OBJDUMP=$OBJDUMP
5278   # Extract the first word of "objdump", so it can be a program name with args.
5279 set dummy objdump; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5283   $as_echo_n "(cached) " >&6
5284 else
5285   if test -n "$ac_ct_OBJDUMP"; then
5286   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291   IFS=$as_save_IFS
5292   test -z "$as_dir" && as_dir=.
5293     for ac_exec_ext in '' $ac_executable_extensions; do
5294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297     break 2
5298   fi
5299 done
5300   done
5301 IFS=$as_save_IFS
5302
5303 fi
5304 fi
5305 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5306 if test -n "$ac_ct_OBJDUMP"; then
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5308 $as_echo "$ac_ct_OBJDUMP" >&6; }
5309 else
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 fi
5313
5314   if test "x$ac_ct_OBJDUMP" = x; then
5315     OBJDUMP="false"
5316   else
5317     case $cross_compiling:$ac_tool_warned in
5318 yes:)
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5321 ac_tool_warned=yes ;;
5322 esac
5323     OBJDUMP=$ac_ct_OBJDUMP
5324   fi
5325 else
5326   OBJDUMP="$ac_cv_prog_OBJDUMP"
5327 fi
5328
5329 test -z "$OBJDUMP" && OBJDUMP=objdump
5330
5331
5332
5333
5334
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5337 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5338 if ${lt_cv_deplibs_check_method+:} false; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   lt_cv_file_magic_cmd='$MAGIC_CMD'
5342 lt_cv_file_magic_test_file=
5343 lt_cv_deplibs_check_method='unknown'
5344 # Need to set the preceding variable on all platforms that support
5345 # interlibrary dependencies.
5346 # 'none' -- dependencies not supported.
5347 # `unknown' -- same as none, but documents that we really don't know.
5348 # 'pass_all' -- all dependencies passed with no checks.
5349 # 'test_compile' -- check by making test program.
5350 # 'file_magic [[regex]]' -- check by looking for files in library path
5351 # which responds to the $file_magic_cmd with a given extended regex.
5352 # If you have `file' or equivalent on your system and you're not sure
5353 # whether `pass_all' will *always* work, you probably want this one.
5354
5355 case $host_os in
5356 aix[4-9]*)
5357   lt_cv_deplibs_check_method=pass_all
5358   ;;
5359
5360 beos*)
5361   lt_cv_deplibs_check_method=pass_all
5362   ;;
5363
5364 bsdi[45]*)
5365   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5366   lt_cv_file_magic_cmd='/usr/bin/file -L'
5367   lt_cv_file_magic_test_file=/shlib/libc.so
5368   ;;
5369
5370 cygwin*)
5371   # func_win32_libid is a shell function defined in ltmain.sh
5372   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5373   lt_cv_file_magic_cmd='func_win32_libid'
5374   ;;
5375
5376 mingw* | pw32*)
5377   # Base MSYS/MinGW do not provide the 'file' command needed by
5378   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5379   # unless we find 'file', for example because we are cross-compiling.
5380   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5381   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5382     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5383     lt_cv_file_magic_cmd='func_win32_libid'
5384   else
5385     # Keep this pattern in sync with the one in func_win32_libid.
5386     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5387     lt_cv_file_magic_cmd='$OBJDUMP -f'
5388   fi
5389   ;;
5390
5391 cegcc*)
5392   # use the weaker test based on 'objdump'. See mingw*.
5393   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5394   lt_cv_file_magic_cmd='$OBJDUMP -f'
5395   ;;
5396
5397 darwin* | rhapsody*)
5398   lt_cv_deplibs_check_method=pass_all
5399   ;;
5400
5401 freebsd* | dragonfly*)
5402   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5403     case $host_cpu in
5404     i*86 )
5405       # Not sure whether the presence of OpenBSD here was a mistake.
5406       # Let's accept both of them until this is cleared up.
5407       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5408       lt_cv_file_magic_cmd=/usr/bin/file
5409       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5410       ;;
5411     esac
5412   else
5413     lt_cv_deplibs_check_method=pass_all
5414   fi
5415   ;;
5416
5417 gnu*)
5418   lt_cv_deplibs_check_method=pass_all
5419   ;;
5420
5421 haiku*)
5422   lt_cv_deplibs_check_method=pass_all
5423   ;;
5424
5425 hpux10.20* | hpux11*)
5426   lt_cv_file_magic_cmd=/usr/bin/file
5427   case $host_cpu in
5428   ia64*)
5429     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5430     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5431     ;;
5432   hppa*64*)
5433     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]'
5434     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5435     ;;
5436   *)
5437     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5438     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5439     ;;
5440   esac
5441   ;;
5442
5443 interix[3-9]*)
5444   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5445   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5446   ;;
5447
5448 irix5* | irix6* | nonstopux*)
5449   case $LD in
5450   *-32|*"-32 ") libmagic=32-bit;;
5451   *-n32|*"-n32 ") libmagic=N32;;
5452   *-64|*"-64 ") libmagic=64-bit;;
5453   *) libmagic=never-match;;
5454   esac
5455   lt_cv_deplibs_check_method=pass_all
5456   ;;
5457
5458 # This must be Linux ELF.
5459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5460   lt_cv_deplibs_check_method=pass_all
5461   ;;
5462
5463 netbsd*)
5464   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5465     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5466   else
5467     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5468   fi
5469   ;;
5470
5471 newos6*)
5472   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5473   lt_cv_file_magic_cmd=/usr/bin/file
5474   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5475   ;;
5476
5477 *nto* | *qnx*)
5478   lt_cv_deplibs_check_method=pass_all
5479   ;;
5480
5481 openbsd*)
5482   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5483     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5484   else
5485     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5486   fi
5487   ;;
5488
5489 osf3* | osf4* | osf5*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492
5493 rdos*)
5494   lt_cv_deplibs_check_method=pass_all
5495   ;;
5496
5497 solaris*)
5498   lt_cv_deplibs_check_method=pass_all
5499   ;;
5500
5501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5502   lt_cv_deplibs_check_method=pass_all
5503   ;;
5504
5505 sysv4 | sysv4.3*)
5506   case $host_vendor in
5507   motorola)
5508     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]'
5509     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5510     ;;
5511   ncr)
5512     lt_cv_deplibs_check_method=pass_all
5513     ;;
5514   sequent)
5515     lt_cv_file_magic_cmd='/bin/file'
5516     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5517     ;;
5518   sni)
5519     lt_cv_file_magic_cmd='/bin/file'
5520     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5521     lt_cv_file_magic_test_file=/lib/libc.so
5522     ;;
5523   siemens)
5524     lt_cv_deplibs_check_method=pass_all
5525     ;;
5526   pc)
5527     lt_cv_deplibs_check_method=pass_all
5528     ;;
5529   esac
5530   ;;
5531
5532 tpf*)
5533   lt_cv_deplibs_check_method=pass_all
5534   ;;
5535 esac
5536
5537 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5539 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5540
5541 file_magic_glob=
5542 want_nocaseglob=no
5543 if test "$build" = "$host"; then
5544   case $host_os in
5545   mingw* | pw32*)
5546     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5547       want_nocaseglob=yes
5548     else
5549       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5550     fi
5551     ;;
5552   esac
5553 fi
5554
5555 file_magic_cmd=$lt_cv_file_magic_cmd
5556 deplibs_check_method=$lt_cv_deplibs_check_method
5557 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580 if test -n "$ac_tool_prefix"; then
5581   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5582 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_DLLTOOL+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   if test -n "$DLLTOOL"; then
5589   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596     for ac_exec_ext in '' $ac_executable_extensions; do
5597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 DLLTOOL=$ac_cv_prog_DLLTOOL
5609 if test -n "$DLLTOOL"; then
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5611 $as_echo "$DLLTOOL" >&6; }
5612 else
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617
5618 fi
5619 if test -z "$ac_cv_prog_DLLTOOL"; then
5620   ac_ct_DLLTOOL=$DLLTOOL
5621   # Extract the first word of "dlltool", so it can be a program name with args.
5622 set dummy dlltool; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   if test -n "$ac_ct_DLLTOOL"; then
5629   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643   done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5649 if test -n "$ac_ct_DLLTOOL"; then
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5651 $as_echo "$ac_ct_DLLTOOL" >&6; }
5652 else
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657   if test "x$ac_ct_DLLTOOL" = x; then
5658     DLLTOOL="false"
5659   else
5660     case $cross_compiling:$ac_tool_warned in
5661 yes:)
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5664 ac_tool_warned=yes ;;
5665 esac
5666     DLLTOOL=$ac_ct_DLLTOOL
5667   fi
5668 else
5669   DLLTOOL="$ac_cv_prog_DLLTOOL"
5670 fi
5671
5672 test -z "$DLLTOOL" && DLLTOOL=dlltool
5673
5674
5675
5676
5677
5678
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5681 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5682 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   lt_cv_sharedlib_from_linklib_cmd='unknown'
5686
5687 case $host_os in
5688 cygwin* | mingw* | pw32* | cegcc*)
5689   # two different shell functions defined in ltmain.sh
5690   # decide which to use based on capabilities of $DLLTOOL
5691   case `$DLLTOOL --help 2>&1` in
5692   *--identify-strict*)
5693     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5694     ;;
5695   *)
5696     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5697     ;;
5698   esac
5699   ;;
5700 *)
5701   # fallback: assume linklib IS sharedlib
5702   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5703   ;;
5704 esac
5705
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5708 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5709 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5710 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5711
5712
5713
5714
5715
5716
5717
5718
5719 if test -n "$ac_tool_prefix"; then
5720   for ac_prog in ar
5721   do
5722     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_prog_AR+:} false; then :
5727   $as_echo_n "(cached) " >&6
5728 else
5729   if test -n "$AR"; then
5730   ac_cv_prog_AR="$AR" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735   IFS=$as_save_IFS
5736   test -z "$as_dir" && as_dir=.
5737     for ac_exec_ext in '' $ac_executable_extensions; do
5738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741     break 2
5742   fi
5743 done
5744   done
5745 IFS=$as_save_IFS
5746
5747 fi
5748 fi
5749 AR=$ac_cv_prog_AR
5750 if test -n "$AR"; then
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5752 $as_echo "$AR" >&6; }
5753 else
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 fi
5757
5758
5759     test -n "$AR" && break
5760   done
5761 fi
5762 if test -z "$AR"; then
5763   ac_ct_AR=$AR
5764   for ac_prog in ar
5765 do
5766   # Extract the first word of "$ac_prog", so it can be a program name with args.
5767 set dummy $ac_prog; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773   if test -n "$ac_ct_AR"; then
5774   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781     for ac_exec_ext in '' $ac_executable_extensions; do
5782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783     ac_cv_prog_ac_ct_AR="$ac_prog"
5784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788   done
5789 IFS=$as_save_IFS
5790
5791 fi
5792 fi
5793 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5794 if test -n "$ac_ct_AR"; then
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5796 $as_echo "$ac_ct_AR" >&6; }
5797 else
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802
5803   test -n "$ac_ct_AR" && break
5804 done
5805
5806   if test "x$ac_ct_AR" = x; then
5807     AR="false"
5808   else
5809     case $cross_compiling:$ac_tool_warned in
5810 yes:)
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5814 esac
5815     AR=$ac_ct_AR
5816   fi
5817 fi
5818
5819 : ${AR=ar}
5820 : ${AR_FLAGS=cru}
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5833 $as_echo_n "checking for archiver @FILE support... " >&6; }
5834 if ${lt_cv_ar_at_file+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   lt_cv_ar_at_file=no
5838    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h.  */
5840
5841 int
5842 main ()
5843 {
5844
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 if ac_fn_c_try_compile "$LINENO"; then :
5850   echo conftest.$ac_objext > conftest.lst
5851       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5852       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5853   (eval $lt_ar_try) 2>&5
5854   ac_status=$?
5855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5856   test $ac_status = 0; }
5857       if test "$ac_status" -eq 0; then
5858         # Ensure the archiver fails upon bogus file names.
5859         rm -f conftest.$ac_objext libconftest.a
5860         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5861   (eval $lt_ar_try) 2>&5
5862   ac_status=$?
5863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5864   test $ac_status = 0; }
5865         if test "$ac_status" -ne 0; then
5866           lt_cv_ar_at_file=@
5867         fi
5868       fi
5869       rm -f conftest.* libconftest.a
5870
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873
5874 fi
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5876 $as_echo "$lt_cv_ar_at_file" >&6; }
5877
5878 if test "x$lt_cv_ar_at_file" = xno; then
5879   archiver_list_spec=
5880 else
5881   archiver_list_spec=$lt_cv_ar_at_file
5882 fi
5883
5884
5885
5886
5887
5888
5889
5890 if test -n "$ac_tool_prefix"; then
5891   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}strip; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_STRIP+:} false; then :
5896   $as_echo_n "(cached) " >&6
5897 else
5898   if test -n "$STRIP"; then
5899   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906     for ac_exec_ext in '' $ac_executable_extensions; do
5907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913   done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 STRIP=$ac_cv_prog_STRIP
5919 if test -n "$STRIP"; then
5920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5921 $as_echo "$STRIP" >&6; }
5922 else
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926
5927
5928 fi
5929 if test -z "$ac_cv_prog_STRIP"; then
5930   ac_ct_STRIP=$STRIP
5931   # Extract the first word of "strip", so it can be a program name with args.
5932 set dummy strip; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5936   $as_echo_n "(cached) " >&6
5937 else
5938   if test -n "$ac_ct_STRIP"; then
5939   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946     for ac_exec_ext in '' $ac_executable_extensions; do
5947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948     ac_cv_prog_ac_ct_STRIP="strip"
5949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953   done
5954 IFS=$as_save_IFS
5955
5956 fi
5957 fi
5958 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5959 if test -n "$ac_ct_STRIP"; then
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5961 $as_echo "$ac_ct_STRIP" >&6; }
5962 else
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966
5967   if test "x$ac_ct_STRIP" = x; then
5968     STRIP=":"
5969   else
5970     case $cross_compiling:$ac_tool_warned in
5971 yes:)
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5975 esac
5976     STRIP=$ac_ct_STRIP
5977   fi
5978 else
5979   STRIP="$ac_cv_prog_STRIP"
5980 fi
5981
5982 test -z "$STRIP" && STRIP=:
5983
5984
5985
5986
5987
5988
5989 if test -n "$ac_tool_prefix"; then
5990   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if ${ac_cv_prog_RANLIB+:} false; then :
5995   $as_echo_n "(cached) " >&6
5996 else
5997   if test -n "$RANLIB"; then
5998   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005     for ac_exec_ext in '' $ac_executable_extensions; do
6006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009     break 2
6010   fi
6011 done
6012   done
6013 IFS=$as_save_IFS
6014
6015 fi
6016 fi
6017 RANLIB=$ac_cv_prog_RANLIB
6018 if test -n "$RANLIB"; then
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6020 $as_echo "$RANLIB" >&6; }
6021 else
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6024 fi
6025
6026
6027 fi
6028 if test -z "$ac_cv_prog_RANLIB"; then
6029   ac_ct_RANLIB=$RANLIB
6030   # Extract the first word of "ranlib", so it can be a program name with args.
6031 set dummy ranlib; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6035   $as_echo_n "(cached) " >&6
6036 else
6037   if test -n "$ac_ct_RANLIB"; then
6038   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6039 else
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6042 do
6043   IFS=$as_save_IFS
6044   test -z "$as_dir" && as_dir=.
6045     for ac_exec_ext in '' $ac_executable_extensions; do
6046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047     ac_cv_prog_ac_ct_RANLIB="ranlib"
6048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049     break 2
6050   fi
6051 done
6052   done
6053 IFS=$as_save_IFS
6054
6055 fi
6056 fi
6057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6058 if test -n "$ac_ct_RANLIB"; then
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6060 $as_echo "$ac_ct_RANLIB" >&6; }
6061 else
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6064 fi
6065
6066   if test "x$ac_ct_RANLIB" = x; then
6067     RANLIB=":"
6068   else
6069     case $cross_compiling:$ac_tool_warned in
6070 yes:)
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073 ac_tool_warned=yes ;;
6074 esac
6075     RANLIB=$ac_ct_RANLIB
6076   fi
6077 else
6078   RANLIB="$ac_cv_prog_RANLIB"
6079 fi
6080
6081 test -z "$RANLIB" && RANLIB=:
6082
6083
6084
6085
6086
6087
6088 # Determine commands to create old-style static archives.
6089 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6090 old_postinstall_cmds='chmod 644 $oldlib'
6091 old_postuninstall_cmds=
6092
6093 if test -n "$RANLIB"; then
6094   case $host_os in
6095   openbsd*)
6096     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6097     ;;
6098   *)
6099     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6100     ;;
6101   esac
6102   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6103 fi
6104
6105 case $host_os in
6106   darwin*)
6107     lock_old_archive_extraction=yes ;;
6108   *)
6109     lock_old_archive_extraction=no ;;
6110 esac
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150 # If no C compiler was specified, use CC.
6151 LTCC=${LTCC-"$CC"}
6152
6153 # If no C compiler flags were specified, use CFLAGS.
6154 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6155
6156 # Allow CC to be a program name with arguments.
6157 compiler=$CC
6158
6159
6160 # Check for command to grab the raw symbol name followed by C symbol from nm.
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6162 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6163 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6164   $as_echo_n "(cached) " >&6
6165 else
6166
6167 # These are sane defaults that work on at least a few old systems.
6168 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6169
6170 # Character class describing NM global symbol codes.
6171 symcode='[BCDEGRST]'
6172
6173 # Regexp to match symbols that can be accessed directly from C.
6174 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6175
6176 # Define system-specific variables.
6177 case $host_os in
6178 aix*)
6179   symcode='[BCDT]'
6180   ;;
6181 cygwin* | mingw* | pw32* | cegcc*)
6182   symcode='[ABCDGISTW]'
6183   ;;
6184 hpux*)
6185   if test "$host_cpu" = ia64; then
6186     symcode='[ABCDEGRST]'
6187   fi
6188   ;;
6189 irix* | nonstopux*)
6190   symcode='[BCDEGRST]'
6191   ;;
6192 osf*)
6193   symcode='[BCDEGQRST]'
6194   ;;
6195 solaris*)
6196   symcode='[BDRT]'
6197   ;;
6198 sco3.2v5*)
6199   symcode='[DT]'
6200   ;;
6201 sysv4.2uw2*)
6202   symcode='[DT]'
6203   ;;
6204 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6205   symcode='[ABDT]'
6206   ;;
6207 sysv4)
6208   symcode='[DFNSTU]'
6209   ;;
6210 esac
6211
6212 # If we're using GNU nm, then use its standard symbol codes.
6213 case `$NM -V 2>&1` in
6214 *GNU* | *'with BFD'*)
6215   symcode='[ABCDGIRSTW]' ;;
6216 esac
6217
6218 # Transform an extracted symbol line into a proper C declaration.
6219 # Some systems (esp. on ia64) link data and code symbols differently,
6220 # so use this general approach.
6221 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6222
6223 # Transform an extracted symbol line into symbol name and symbol address
6224 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6225 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'"
6226
6227 # Handle CRLF in mingw tool chain
6228 opt_cr=
6229 case $build_os in
6230 mingw*)
6231   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6232   ;;
6233 esac
6234
6235 # Try without a prefix underscore, then with it.
6236 for ac_symprfx in "" "_"; do
6237
6238   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6239   symxfrm="\\1 $ac_symprfx\\2 \\2"
6240
6241   # Write the raw and C identifiers.
6242   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6243     # Fake it for dumpbin and say T for any non-static function
6244     # and D for any global variable.
6245     # Also find C++ and __fastcall symbols from MSVC++,
6246     # which start with @ or ?.
6247     lt_cv_sys_global_symbol_pipe="$AWK '"\
6248 "     {last_section=section; section=\$ 3};"\
6249 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6250 "     \$ 0!~/External *\|/{next};"\
6251 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6252 "     {if(hide[section]) next};"\
6253 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6254 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6255 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6256 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6257 "     ' prfx=^$ac_symprfx"
6258   else
6259     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6260   fi
6261   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6262
6263   # Check to see that the pipe works correctly.
6264   pipe_works=no
6265
6266   rm -f conftest*
6267   cat > conftest.$ac_ext <<_LT_EOF
6268 #ifdef __cplusplus
6269 extern "C" {
6270 #endif
6271 char nm_test_var;
6272 void nm_test_func(void);
6273 void nm_test_func(void){}
6274 #ifdef __cplusplus
6275 }
6276 #endif
6277 int main(){nm_test_var='a';nm_test_func();return(0);}
6278 _LT_EOF
6279
6280   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6281   (eval $ac_compile) 2>&5
6282   ac_status=$?
6283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284   test $ac_status = 0; }; then
6285     # Now try to grab the symbols.
6286     nlist=conftest.nm
6287     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6288   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6289   ac_status=$?
6290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291   test $ac_status = 0; } && test -s "$nlist"; then
6292       # Try sorting and uniquifying the output.
6293       if sort "$nlist" | uniq > "$nlist"T; then
6294         mv -f "$nlist"T "$nlist"
6295       else
6296         rm -f "$nlist"T
6297       fi
6298
6299       # Make sure that we snagged all the symbols we need.
6300       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6301         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6302           cat <<_LT_EOF > conftest.$ac_ext
6303 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6304 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6305 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6306    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6307 # define LT_DLSYM_CONST
6308 #elif defined(__osf__)
6309 /* This system does not cope well with relocations in const data.  */
6310 # define LT_DLSYM_CONST
6311 #else
6312 # define LT_DLSYM_CONST const
6313 #endif
6314
6315 #ifdef __cplusplus
6316 extern "C" {
6317 #endif
6318
6319 _LT_EOF
6320           # Now generate the symbol file.
6321           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6322
6323           cat <<_LT_EOF >> conftest.$ac_ext
6324
6325 /* The mapping between symbol names and symbols.  */
6326 LT_DLSYM_CONST struct {
6327   const char *name;
6328   void       *address;
6329 }
6330 lt__PROGRAM__LTX_preloaded_symbols[] =
6331 {
6332   { "@PROGRAM@", (void *) 0 },
6333 _LT_EOF
6334           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6335           cat <<\_LT_EOF >> conftest.$ac_ext
6336   {0, (void *) 0}
6337 };
6338
6339 /* This works around a problem in FreeBSD linker */
6340 #ifdef FREEBSD_WORKAROUND
6341 static const void *lt_preloaded_setup() {
6342   return lt__PROGRAM__LTX_preloaded_symbols;
6343 }
6344 #endif
6345
6346 #ifdef __cplusplus
6347 }
6348 #endif
6349 _LT_EOF
6350           # Now try linking the two files.
6351           mv conftest.$ac_objext conftstm.$ac_objext
6352           lt_globsym_save_LIBS=$LIBS
6353           lt_globsym_save_CFLAGS=$CFLAGS
6354           LIBS="conftstm.$ac_objext"
6355           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6356           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6357   (eval $ac_link) 2>&5
6358   ac_status=$?
6359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6361             pipe_works=yes
6362           fi
6363           LIBS=$lt_globsym_save_LIBS
6364           CFLAGS=$lt_globsym_save_CFLAGS
6365         else
6366           echo "cannot find nm_test_func in $nlist" >&5
6367         fi
6368       else
6369         echo "cannot find nm_test_var in $nlist" >&5
6370       fi
6371     else
6372       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6373     fi
6374   else
6375     echo "$progname: failed program was:" >&5
6376     cat conftest.$ac_ext >&5
6377   fi
6378   rm -rf conftest* conftst*
6379
6380   # Do not use the global_symbol_pipe unless it works.
6381   if test "$pipe_works" = yes; then
6382     break
6383   else
6384     lt_cv_sys_global_symbol_pipe=
6385   fi
6386 done
6387
6388 fi
6389
6390 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6391   lt_cv_sys_global_symbol_to_cdecl=
6392 fi
6393 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6395 $as_echo "failed" >&6; }
6396 else
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6398 $as_echo "ok" >&6; }
6399 fi
6400
6401 # Response file support.
6402 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6403   nm_file_list_spec='@'
6404 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6405   nm_file_list_spec='@'
6406 fi
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6435 $as_echo_n "checking for sysroot... " >&6; }
6436
6437 # Check whether --with-sysroot was given.
6438 if test "${with_sysroot+set}" = set; then :
6439   withval=$with_sysroot;
6440 else
6441   with_sysroot=no
6442 fi
6443
6444
6445 lt_sysroot=
6446 case ${with_sysroot} in #(
6447  yes)
6448    if test "$GCC" = yes; then
6449      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6450    fi
6451    ;; #(
6452  /*)
6453    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6454    ;; #(
6455  no|'')
6456    ;; #(
6457  *)
6458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6459 $as_echo "${with_sysroot}" >&6; }
6460    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6461    ;;
6462 esac
6463
6464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6465 $as_echo "${lt_sysroot:-no}" >&6; }
6466
6467
6468
6469
6470
6471 # Check whether --enable-libtool-lock was given.
6472 if test "${enable_libtool_lock+set}" = set; then :
6473   enableval=$enable_libtool_lock;
6474 fi
6475
6476 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6477
6478 # Some flags need to be propagated to the compiler or linker for good
6479 # libtool support.
6480 case $host in
6481 ia64-*-hpux*)
6482   # Find out which ABI we are using.
6483   echo 'int i;' > conftest.$ac_ext
6484   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6485   (eval $ac_compile) 2>&5
6486   ac_status=$?
6487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488   test $ac_status = 0; }; then
6489     case `/usr/bin/file conftest.$ac_objext` in
6490       *ELF-32*)
6491         HPUX_IA64_MODE="32"
6492         ;;
6493       *ELF-64*)
6494         HPUX_IA64_MODE="64"
6495         ;;
6496     esac
6497   fi
6498   rm -rf conftest*
6499   ;;
6500 *-*-irix6*)
6501   # Find out which ABI we are using.
6502   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6503   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6504   (eval $ac_compile) 2>&5
6505   ac_status=$?
6506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507   test $ac_status = 0; }; then
6508     if test "$lt_cv_prog_gnu_ld" = yes; then
6509       case `/usr/bin/file conftest.$ac_objext` in
6510         *32-bit*)
6511           LD="${LD-ld} -melf32bsmip"
6512           ;;
6513         *N32*)
6514           LD="${LD-ld} -melf32bmipn32"
6515           ;;
6516         *64-bit*)
6517           LD="${LD-ld} -melf64bmip"
6518         ;;
6519       esac
6520     else
6521       case `/usr/bin/file conftest.$ac_objext` in
6522         *32-bit*)
6523           LD="${LD-ld} -32"
6524           ;;
6525         *N32*)
6526           LD="${LD-ld} -n32"
6527           ;;
6528         *64-bit*)
6529           LD="${LD-ld} -64"
6530           ;;
6531       esac
6532     fi
6533   fi
6534   rm -rf conftest*
6535   ;;
6536
6537 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6538 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6539   # Find out which ABI we are using.
6540   echo 'int i;' > conftest.$ac_ext
6541   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6542   (eval $ac_compile) 2>&5
6543   ac_status=$?
6544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545   test $ac_status = 0; }; then
6546     case `/usr/bin/file conftest.o` in
6547       *32-bit*)
6548         case $host in
6549           x86_64-*kfreebsd*-gnu)
6550             LD="${LD-ld} -m elf_i386_fbsd"
6551             ;;
6552           x86_64-*linux*)
6553             LD="${LD-ld} -m elf_i386"
6554             ;;
6555           ppc64-*linux*|powerpc64-*linux*)
6556             LD="${LD-ld} -m elf32ppclinux"
6557             ;;
6558           s390x-*linux*)
6559             LD="${LD-ld} -m elf_s390"
6560             ;;
6561           sparc64-*linux*)
6562             LD="${LD-ld} -m elf32_sparc"
6563             ;;
6564         esac
6565         ;;
6566       *64-bit*)
6567         case $host in
6568           x86_64-*kfreebsd*-gnu)
6569             LD="${LD-ld} -m elf_x86_64_fbsd"
6570             ;;
6571           x86_64-*linux*)
6572             LD="${LD-ld} -m elf_x86_64"
6573             ;;
6574           ppc*-*linux*|powerpc*-*linux*)
6575             LD="${LD-ld} -m elf64ppc"
6576             ;;
6577           s390*-*linux*|s390*-*tpf*)
6578             LD="${LD-ld} -m elf64_s390"
6579             ;;
6580           sparc*-*linux*)
6581             LD="${LD-ld} -m elf64_sparc"
6582             ;;
6583         esac
6584         ;;
6585     esac
6586   fi
6587   rm -rf conftest*
6588   ;;
6589
6590 *-*-sco3.2v5*)
6591   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6592   SAVE_CFLAGS="$CFLAGS"
6593   CFLAGS="$CFLAGS -belf"
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6595 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6596 if ${lt_cv_cc_needs_belf+:} false; then :
6597   $as_echo_n "(cached) " >&6
6598 else
6599   ac_ext=c
6600 ac_cpp='$CPP $CPPFLAGS'
6601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604
6605      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h.  */
6607
6608 int
6609 main ()
6610 {
6611
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 if ac_fn_c_try_link "$LINENO"; then :
6617   lt_cv_cc_needs_belf=yes
6618 else
6619   lt_cv_cc_needs_belf=no
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext \
6622     conftest$ac_exeext conftest.$ac_ext
6623      ac_ext=c
6624 ac_cpp='$CPP $CPPFLAGS'
6625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6628
6629 fi
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6631 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6632   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6633     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6634     CFLAGS="$SAVE_CFLAGS"
6635   fi
6636   ;;
6637 sparc*-*solaris*)
6638   # Find out which ABI we are using.
6639   echo 'int i;' > conftest.$ac_ext
6640   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6641   (eval $ac_compile) 2>&5
6642   ac_status=$?
6643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6644   test $ac_status = 0; }; then
6645     case `/usr/bin/file conftest.o` in
6646     *64-bit*)
6647       case $lt_cv_prog_gnu_ld in
6648       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6649       *)
6650         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6651           LD="${LD-ld} -64"
6652         fi
6653         ;;
6654       esac
6655       ;;
6656     esac
6657   fi
6658   rm -rf conftest*
6659   ;;
6660 esac
6661
6662 need_locks="$enable_libtool_lock"
6663
6664 if test -n "$ac_tool_prefix"; then
6665   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}mt; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6670   $as_echo_n "(cached) " >&6
6671 else
6672   if test -n "$MANIFEST_TOOL"; then
6673   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680     for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687   done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6693 if test -n "$MANIFEST_TOOL"; then
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6695 $as_echo "$MANIFEST_TOOL" >&6; }
6696 else
6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699 fi
6700
6701
6702 fi
6703 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6704   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6705   # Extract the first word of "mt", so it can be a program name with args.
6706 set dummy mt; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   if test -n "$ac_ct_MANIFEST_TOOL"; then
6713   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718   IFS=$as_save_IFS
6719   test -z "$as_dir" && as_dir=.
6720     for ac_exec_ext in '' $ac_executable_extensions; do
6721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724     break 2
6725   fi
6726 done
6727   done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6733 if test -n "$ac_ct_MANIFEST_TOOL"; then
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6735 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6736 else
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6739 fi
6740
6741   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6742     MANIFEST_TOOL=":"
6743   else
6744     case $cross_compiling:$ac_tool_warned in
6745 yes:)
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748 ac_tool_warned=yes ;;
6749 esac
6750     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6751   fi
6752 else
6753   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6754 fi
6755
6756 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6758 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6759 if ${lt_cv_path_mainfest_tool+:} false; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762   lt_cv_path_mainfest_tool=no
6763   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6764   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6765   cat conftest.err >&5
6766   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6767     lt_cv_path_mainfest_tool=yes
6768   fi
6769   rm -f conftest*
6770 fi
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6772 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6773 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6774   MANIFEST_TOOL=:
6775 fi
6776
6777
6778
6779
6780
6781
6782   case $host_os in
6783     rhapsody* | darwin*)
6784     if test -n "$ac_tool_prefix"; then
6785   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   if test -n "$DSYMUTIL"; then
6793   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800     for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807   done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6813 if test -n "$DSYMUTIL"; then
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6815 $as_echo "$DSYMUTIL" >&6; }
6816 else
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821
6822 fi
6823 if test -z "$ac_cv_prog_DSYMUTIL"; then
6824   ac_ct_DSYMUTIL=$DSYMUTIL
6825   # Extract the first word of "dsymutil", so it can be a program name with args.
6826 set dummy dsymutil; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   if test -n "$ac_ct_DSYMUTIL"; then
6833   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840     for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847   done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6853 if test -n "$ac_ct_DSYMUTIL"; then
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6855 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6856 else
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861   if test "x$ac_ct_DSYMUTIL" = x; then
6862     DSYMUTIL=":"
6863   else
6864     case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6869 esac
6870     DSYMUTIL=$ac_ct_DSYMUTIL
6871   fi
6872 else
6873   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6874 fi
6875
6876     if test -n "$ac_tool_prefix"; then
6877   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6878 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_NMEDIT+:} false; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   if test -n "$NMEDIT"; then
6885   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892     for ac_exec_ext in '' $ac_executable_extensions; do
6893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899   done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 NMEDIT=$ac_cv_prog_NMEDIT
6905 if test -n "$NMEDIT"; then
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6907 $as_echo "$NMEDIT" >&6; }
6908 else
6909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6911 fi
6912
6913
6914 fi
6915 if test -z "$ac_cv_prog_NMEDIT"; then
6916   ac_ct_NMEDIT=$NMEDIT
6917   # Extract the first word of "nmedit", so it can be a program name with args.
6918 set dummy nmedit; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   if test -n "$ac_ct_NMEDIT"; then
6925   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930   IFS=$as_save_IFS
6931   test -z "$as_dir" && as_dir=.
6932     for ac_exec_ext in '' $ac_executable_extensions; do
6933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936     break 2
6937   fi
6938 done
6939   done
6940 IFS=$as_save_IFS
6941
6942 fi
6943 fi
6944 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6945 if test -n "$ac_ct_NMEDIT"; then
6946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6947 $as_echo "$ac_ct_NMEDIT" >&6; }
6948 else
6949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6951 fi
6952
6953   if test "x$ac_ct_NMEDIT" = x; then
6954     NMEDIT=":"
6955   else
6956     case $cross_compiling:$ac_tool_warned in
6957 yes:)
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962     NMEDIT=$ac_ct_NMEDIT
6963   fi
6964 else
6965   NMEDIT="$ac_cv_prog_NMEDIT"
6966 fi
6967
6968     if test -n "$ac_tool_prefix"; then
6969   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6970 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if ${ac_cv_prog_LIPO+:} false; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   if test -n "$LIPO"; then
6977   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6981 do
6982   IFS=$as_save_IFS
6983   test -z "$as_dir" && as_dir=.
6984     for ac_exec_ext in '' $ac_executable_extensions; do
6985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6986     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988     break 2
6989   fi
6990 done
6991   done
6992 IFS=$as_save_IFS
6993
6994 fi
6995 fi
6996 LIPO=$ac_cv_prog_LIPO
6997 if test -n "$LIPO"; then
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6999 $as_echo "$LIPO" >&6; }
7000 else
7001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7003 fi
7004
7005
7006 fi
7007 if test -z "$ac_cv_prog_LIPO"; then
7008   ac_ct_LIPO=$LIPO
7009   # Extract the first word of "lipo", so it can be a program name with args.
7010 set dummy lipo; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7014   $as_echo_n "(cached) " >&6
7015 else
7016   if test -n "$ac_ct_LIPO"; then
7017   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022   IFS=$as_save_IFS
7023   test -z "$as_dir" && as_dir=.
7024     for ac_exec_ext in '' $ac_executable_extensions; do
7025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026     ac_cv_prog_ac_ct_LIPO="lipo"
7027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028     break 2
7029   fi
7030 done
7031   done
7032 IFS=$as_save_IFS
7033
7034 fi
7035 fi
7036 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7037 if test -n "$ac_ct_LIPO"; then
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7039 $as_echo "$ac_ct_LIPO" >&6; }
7040 else
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7043 fi
7044
7045   if test "x$ac_ct_LIPO" = x; then
7046     LIPO=":"
7047   else
7048     case $cross_compiling:$ac_tool_warned in
7049 yes:)
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7052 ac_tool_warned=yes ;;
7053 esac
7054     LIPO=$ac_ct_LIPO
7055   fi
7056 else
7057   LIPO="$ac_cv_prog_LIPO"
7058 fi
7059
7060     if test -n "$ac_tool_prefix"; then
7061   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}otool; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_OTOOL+:} false; then :
7066   $as_echo_n "(cached) " >&6
7067 else
7068   if test -n "$OTOOL"; then
7069   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076     for ac_exec_ext in '' $ac_executable_extensions; do
7077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083   done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 OTOOL=$ac_cv_prog_OTOOL
7089 if test -n "$OTOOL"; then
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7091 $as_echo "$OTOOL" >&6; }
7092 else
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097
7098 fi
7099 if test -z "$ac_cv_prog_OTOOL"; then
7100   ac_ct_OTOOL=$OTOOL
7101   # Extract the first word of "otool", so it can be a program name with args.
7102 set dummy otool; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   if test -n "$ac_ct_OTOOL"; then
7109   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116     for ac_exec_ext in '' $ac_executable_extensions; do
7117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118     ac_cv_prog_ac_ct_OTOOL="otool"
7119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123   done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7129 if test -n "$ac_ct_OTOOL"; then
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7131 $as_echo "$ac_ct_OTOOL" >&6; }
7132 else
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136
7137   if test "x$ac_ct_OTOOL" = x; then
7138     OTOOL=":"
7139   else
7140     case $cross_compiling:$ac_tool_warned in
7141 yes:)
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144 ac_tool_warned=yes ;;
7145 esac
7146     OTOOL=$ac_ct_OTOOL
7147   fi
7148 else
7149   OTOOL="$ac_cv_prog_OTOOL"
7150 fi
7151
7152     if test -n "$ac_tool_prefix"; then
7153   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7154 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_OTOOL64+:} false; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160   if test -n "$OTOOL64"; then
7161   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168     for ac_exec_ext in '' $ac_executable_extensions; do
7169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175   done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 OTOOL64=$ac_cv_prog_OTOOL64
7181 if test -n "$OTOOL64"; then
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7183 $as_echo "$OTOOL64" >&6; }
7184 else
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189
7190 fi
7191 if test -z "$ac_cv_prog_OTOOL64"; then
7192   ac_ct_OTOOL64=$OTOOL64
7193   # Extract the first word of "otool64", so it can be a program name with args.
7194 set dummy otool64; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7198   $as_echo_n "(cached) " >&6
7199 else
7200   if test -n "$ac_ct_OTOOL64"; then
7201   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7202 else
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206   IFS=$as_save_IFS
7207   test -z "$as_dir" && as_dir=.
7208     for ac_exec_ext in '' $ac_executable_extensions; do
7209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7210     ac_cv_prog_ac_ct_OTOOL64="otool64"
7211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212     break 2
7213   fi
7214 done
7215   done
7216 IFS=$as_save_IFS
7217
7218 fi
7219 fi
7220 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7221 if test -n "$ac_ct_OTOOL64"; then
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7223 $as_echo "$ac_ct_OTOOL64" >&6; }
7224 else
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7227 fi
7228
7229   if test "x$ac_ct_OTOOL64" = x; then
7230     OTOOL64=":"
7231   else
7232     case $cross_compiling:$ac_tool_warned in
7233 yes:)
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236 ac_tool_warned=yes ;;
7237 esac
7238     OTOOL64=$ac_ct_OTOOL64
7239   fi
7240 else
7241   OTOOL64="$ac_cv_prog_OTOOL64"
7242 fi
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7271 $as_echo_n "checking for -single_module linker flag... " >&6; }
7272 if ${lt_cv_apple_cc_single_mod+:} false; then :
7273   $as_echo_n "(cached) " >&6
7274 else
7275   lt_cv_apple_cc_single_mod=no
7276       if test -z "${LT_MULTI_MODULE}"; then
7277         # By default we will add the -single_module flag. You can override
7278         # by either setting the environment variable LT_MULTI_MODULE
7279         # non-empty at configure time, or by adding -multi_module to the
7280         # link flags.
7281         rm -rf libconftest.dylib*
7282         echo "int foo(void){return 1;}" > conftest.c
7283         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7284 -dynamiclib -Wl,-single_module conftest.c" >&5
7285         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7286           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7287         _lt_result=$?
7288         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7289           lt_cv_apple_cc_single_mod=yes
7290         else
7291           cat conftest.err >&5
7292         fi
7293         rm -rf libconftest.dylib*
7294         rm -f conftest.*
7295       fi
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7298 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7300 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7301 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7302   $as_echo_n "(cached) " >&6
7303 else
7304   lt_cv_ld_exported_symbols_list=no
7305       save_LDFLAGS=$LDFLAGS
7306       echo "_main" > conftest.sym
7307       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7308       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h.  */
7310
7311 int
7312 main ()
7313 {
7314
7315   ;
7316   return 0;
7317 }
7318 _ACEOF
7319 if ac_fn_c_try_link "$LINENO"; then :
7320   lt_cv_ld_exported_symbols_list=yes
7321 else
7322   lt_cv_ld_exported_symbols_list=no
7323 fi
7324 rm -f core conftest.err conftest.$ac_objext \
7325     conftest$ac_exeext conftest.$ac_ext
7326         LDFLAGS="$save_LDFLAGS"
7327
7328 fi
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7330 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7332 $as_echo_n "checking for -force_load linker flag... " >&6; }
7333 if ${lt_cv_ld_force_load+:} false; then :
7334   $as_echo_n "(cached) " >&6
7335 else
7336   lt_cv_ld_force_load=no
7337       cat > conftest.c << _LT_EOF
7338 int forced_loaded() { return 2;}
7339 _LT_EOF
7340       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7341       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7342       echo "$AR cru libconftest.a conftest.o" >&5
7343       $AR cru libconftest.a conftest.o 2>&5
7344       echo "$RANLIB libconftest.a" >&5
7345       $RANLIB libconftest.a 2>&5
7346       cat > conftest.c << _LT_EOF
7347 int main() { return 0;}
7348 _LT_EOF
7349       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7350       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7351       _lt_result=$?
7352       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7353         lt_cv_ld_force_load=yes
7354       else
7355         cat conftest.err >&5
7356       fi
7357         rm -f conftest.err libconftest.a conftest conftest.c
7358         rm -rf conftest.dSYM
7359
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7362 $as_echo "$lt_cv_ld_force_load" >&6; }
7363     case $host_os in
7364     rhapsody* | darwin1.[012])
7365       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7366     darwin1.*)
7367       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7368     darwin*) # darwin 5.x on
7369       # if running on 10.5 or later, the deployment target defaults
7370       # to the OS version, if on x86, and 10.4, the deployment
7371       # target defaults to 10.4. Don't you love it?
7372       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7373         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7374           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7375         10.[012]*)
7376           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7377         10.*)
7378           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7379       esac
7380     ;;
7381   esac
7382     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7383       _lt_dar_single_mod='$single_module'
7384     fi
7385     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7386       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7387     else
7388       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7389     fi
7390     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7391       _lt_dsymutil='~$DSYMUTIL $lib || :'
7392     else
7393       _lt_dsymutil=
7394     fi
7395     ;;
7396   esac
7397
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7400 $as_echo_n "checking for ANSI C header files... " >&6; }
7401 if ${ac_cv_header_stdc+:} false; then :
7402   $as_echo_n "(cached) " >&6
7403 else
7404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h.  */
7406 #include <stdlib.h>
7407 #include <stdarg.h>
7408 #include <string.h>
7409 #include <float.h>
7410
7411 int
7412 main ()
7413 {
7414
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 if ac_fn_c_try_compile "$LINENO"; then :
7420   ac_cv_header_stdc=yes
7421 else
7422   ac_cv_header_stdc=no
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425
7426 if test $ac_cv_header_stdc = yes; then
7427   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h.  */
7430 #include <string.h>
7431
7432 _ACEOF
7433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7434   $EGREP "memchr" >/dev/null 2>&1; then :
7435
7436 else
7437   ac_cv_header_stdc=no
7438 fi
7439 rm -f conftest*
7440
7441 fi
7442
7443 if test $ac_cv_header_stdc = yes; then
7444   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h.  */
7447 #include <stdlib.h>
7448
7449 _ACEOF
7450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7451   $EGREP "free" >/dev/null 2>&1; then :
7452
7453 else
7454   ac_cv_header_stdc=no
7455 fi
7456 rm -f conftest*
7457
7458 fi
7459
7460 if test $ac_cv_header_stdc = yes; then
7461   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7462   if test "$cross_compiling" = yes; then :
7463   :
7464 else
7465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h.  */
7467 #include <ctype.h>
7468 #include <stdlib.h>
7469 #if ((' ' & 0x0FF) == 0x020)
7470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7472 #else
7473 # define ISLOWER(c) \
7474                    (('a' <= (c) && (c) <= 'i') \
7475                      || ('j' <= (c) && (c) <= 'r') \
7476                      || ('s' <= (c) && (c) <= 'z'))
7477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7478 #endif
7479
7480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7481 int
7482 main ()
7483 {
7484   int i;
7485   for (i = 0; i < 256; i++)
7486     if (XOR (islower (i), ISLOWER (i))
7487         || toupper (i) != TOUPPER (i))
7488       return 2;
7489   return 0;
7490 }
7491 _ACEOF
7492 if ac_fn_c_try_run "$LINENO"; then :
7493
7494 else
7495   ac_cv_header_stdc=no
7496 fi
7497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7498   conftest.$ac_objext conftest.beam conftest.$ac_ext
7499 fi
7500
7501 fi
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7504 $as_echo "$ac_cv_header_stdc" >&6; }
7505 if test $ac_cv_header_stdc = yes; then
7506
7507 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7508
7509 fi
7510
7511 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7513                   inttypes.h stdint.h unistd.h
7514 do :
7515   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7516 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7517 "
7518 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7519   cat >>confdefs.h <<_ACEOF
7520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7521 _ACEOF
7522
7523 fi
7524
7525 done
7526
7527
7528 for ac_header in dlfcn.h
7529 do :
7530   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7531 "
7532 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7533   cat >>confdefs.h <<_ACEOF
7534 #define HAVE_DLFCN_H 1
7535 _ACEOF
7536
7537 fi
7538
7539 done
7540
7541
7542
7543
7544
7545 # Set options
7546 enable_win32_dll=yes
7547
7548 case $host in
7549 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7550   if test -n "$ac_tool_prefix"; then
7551   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}as; 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_AS+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   if test -n "$AS"; then
7559   ac_cv_prog_AS="$AS" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568     ac_cv_prog_AS="${ac_tool_prefix}as"
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 AS=$ac_cv_prog_AS
7579 if test -n "$AS"; then
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7581 $as_echo "$AS" >&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_AS"; then
7590   ac_ct_AS=$AS
7591   # Extract the first word of "as", so it can be a program name with args.
7592 set dummy as; 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_AS+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   if test -n "$ac_ct_AS"; then
7599   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608     ac_cv_prog_ac_ct_AS="as"
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_AS=$ac_cv_prog_ac_ct_AS
7619 if test -n "$ac_ct_AS"; then
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7621 $as_echo "$ac_ct_AS" >&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_AS" = x; then
7628     AS="false"
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     AS=$ac_ct_AS
7637   fi
7638 else
7639   AS="$ac_cv_prog_AS"
7640 fi
7641
7642   if test -n "$ac_tool_prefix"; then
7643   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7644 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if ${ac_cv_prog_DLLTOOL+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   if test -n "$DLLTOOL"; then
7651   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658     for ac_exec_ext in '' $ac_executable_extensions; do
7659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665   done
7666 IFS=$as_save_IFS
7667
7668 fi
7669 fi
7670 DLLTOOL=$ac_cv_prog_DLLTOOL
7671 if test -n "$DLLTOOL"; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7673 $as_echo "$DLLTOOL" >&6; }
7674 else
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679
7680 fi
7681 if test -z "$ac_cv_prog_DLLTOOL"; then
7682   ac_ct_DLLTOOL=$DLLTOOL
7683   # Extract the first word of "dlltool", so it can be a program name with args.
7684 set dummy dlltool; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   if test -n "$ac_ct_DLLTOOL"; then
7691   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696   IFS=$as_save_IFS
7697   test -z "$as_dir" && as_dir=.
7698     for ac_exec_ext in '' $ac_executable_extensions; do
7699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702     break 2
7703   fi
7704 done
7705   done
7706 IFS=$as_save_IFS
7707
7708 fi
7709 fi
7710 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7711 if test -n "$ac_ct_DLLTOOL"; then
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7713 $as_echo "$ac_ct_DLLTOOL" >&6; }
7714 else
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719   if test "x$ac_ct_DLLTOOL" = x; then
7720     DLLTOOL="false"
7721   else
7722     case $cross_compiling:$ac_tool_warned in
7723 yes:)
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726 ac_tool_warned=yes ;;
7727 esac
7728     DLLTOOL=$ac_ct_DLLTOOL
7729   fi
7730 else
7731   DLLTOOL="$ac_cv_prog_DLLTOOL"
7732 fi
7733
7734   if test -n "$ac_tool_prefix"; then
7735   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7736 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_OBJDUMP+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   if test -n "$OBJDUMP"; then
7743   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748   IFS=$as_save_IFS
7749   test -z "$as_dir" && as_dir=.
7750     for ac_exec_ext in '' $ac_executable_extensions; do
7751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754     break 2
7755   fi
7756 done
7757   done
7758 IFS=$as_save_IFS
7759
7760 fi
7761 fi
7762 OBJDUMP=$ac_cv_prog_OBJDUMP
7763 if test -n "$OBJDUMP"; then
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7765 $as_echo "$OBJDUMP" >&6; }
7766 else
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 fi
7770
7771
7772 fi
7773 if test -z "$ac_cv_prog_OBJDUMP"; then
7774   ac_ct_OBJDUMP=$OBJDUMP
7775   # Extract the first word of "objdump", so it can be a program name with args.
7776 set dummy objdump; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782   if test -n "$ac_ct_OBJDUMP"; then
7783   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788   IFS=$as_save_IFS
7789   test -z "$as_dir" && as_dir=.
7790     for ac_exec_ext in '' $ac_executable_extensions; do
7791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794     break 2
7795   fi
7796 done
7797   done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7803 if test -n "$ac_ct_OBJDUMP"; then
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7805 $as_echo "$ac_ct_OBJDUMP" >&6; }
7806 else
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7809 fi
7810
7811   if test "x$ac_ct_OBJDUMP" = x; then
7812     OBJDUMP="false"
7813   else
7814     case $cross_compiling:$ac_tool_warned in
7815 yes:)
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7818 ac_tool_warned=yes ;;
7819 esac
7820     OBJDUMP=$ac_ct_OBJDUMP
7821   fi
7822 else
7823   OBJDUMP="$ac_cv_prog_OBJDUMP"
7824 fi
7825
7826   ;;
7827 esac
7828
7829 test -z "$AS" && AS=as
7830
7831
7832
7833
7834
7835 test -z "$DLLTOOL" && DLLTOOL=dlltool
7836
7837
7838
7839
7840
7841 test -z "$OBJDUMP" && OBJDUMP=objdump
7842
7843
7844
7845
7846
7847
7848
7849         enable_dlopen=no
7850
7851
7852
7853             # Check whether --enable-shared was given.
7854 if test "${enable_shared+set}" = set; then :
7855   enableval=$enable_shared; p=${PACKAGE-default}
7856     case $enableval in
7857     yes) enable_shared=yes ;;
7858     no) enable_shared=no ;;
7859     *)
7860       enable_shared=no
7861       # Look at the argument we got.  We use all the common list separators.
7862       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7863       for pkg in $enableval; do
7864         IFS="$lt_save_ifs"
7865         if test "X$pkg" = "X$p"; then
7866           enable_shared=yes
7867         fi
7868       done
7869       IFS="$lt_save_ifs"
7870       ;;
7871     esac
7872 else
7873   enable_shared=yes
7874 fi
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884   # Check whether --enable-static was given.
7885 if test "${enable_static+set}" = set; then :
7886   enableval=$enable_static; p=${PACKAGE-default}
7887     case $enableval in
7888     yes) enable_static=yes ;;
7889     no) enable_static=no ;;
7890     *)
7891      enable_static=no
7892       # Look at the argument we got.  We use all the common list separators.
7893       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7894       for pkg in $enableval; do
7895         IFS="$lt_save_ifs"
7896         if test "X$pkg" = "X$p"; then
7897           enable_static=yes
7898         fi
7899       done
7900       IFS="$lt_save_ifs"
7901       ;;
7902     esac
7903 else
7904   enable_static=yes
7905 fi
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916 # Check whether --with-pic was given.
7917 if test "${with_pic+set}" = set; then :
7918   withval=$with_pic; pic_mode="$withval"
7919 else
7920   pic_mode=default
7921 fi
7922
7923
7924 test -z "$pic_mode" && pic_mode=default
7925
7926
7927
7928
7929
7930
7931
7932   # Check whether --enable-fast-install was given.
7933 if test "${enable_fast_install+set}" = set; then :
7934   enableval=$enable_fast_install; p=${PACKAGE-default}
7935     case $enableval in
7936     yes) enable_fast_install=yes ;;
7937     no) enable_fast_install=no ;;
7938     *)
7939       enable_fast_install=no
7940       # Look at the argument we got.  We use all the common list separators.
7941       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7942       for pkg in $enableval; do
7943         IFS="$lt_save_ifs"
7944         if test "X$pkg" = "X$p"; then
7945           enable_fast_install=yes
7946         fi
7947       done
7948       IFS="$lt_save_ifs"
7949       ;;
7950     esac
7951 else
7952   enable_fast_install=yes
7953 fi
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965 # This can be used to rebuild libtool when needed
7966 LIBTOOL_DEPS="$ltmain"
7967
7968 # Always use our own libtool.
7969 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996 test -z "$LN_S" && LN_S="ln -s"
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011 if test -n "${ZSH_VERSION+set}" ; then
8012    setopt NO_GLOB_SUBST
8013 fi
8014
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8016 $as_echo_n "checking for objdir... " >&6; }
8017 if ${lt_cv_objdir+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   rm -f .libs 2>/dev/null
8021 mkdir .libs 2>/dev/null
8022 if test -d .libs; then
8023   lt_cv_objdir=.libs
8024 else
8025   # MS-DOS does not allow filenames that begin with a dot.
8026   lt_cv_objdir=_libs
8027 fi
8028 rmdir .libs 2>/dev/null
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8031 $as_echo "$lt_cv_objdir" >&6; }
8032 objdir=$lt_cv_objdir
8033
8034
8035
8036
8037
8038 cat >>confdefs.h <<_ACEOF
8039 #define LT_OBJDIR "$lt_cv_objdir/"
8040 _ACEOF
8041
8042
8043
8044
8045 case $host_os in
8046 aix3*)
8047   # AIX sometimes has problems with the GCC collect2 program.  For some
8048   # reason, if we set the COLLECT_NAMES environment variable, the problems
8049   # vanish in a puff of smoke.
8050   if test "X${COLLECT_NAMES+set}" != Xset; then
8051     COLLECT_NAMES=
8052     export COLLECT_NAMES
8053   fi
8054   ;;
8055 esac
8056
8057 # Global variables:
8058 ofile=libtool
8059 can_build_shared=yes
8060
8061 # All known linkers require a `.a' archive for static linking (except MSVC,
8062 # which needs '.lib').
8063 libext=a
8064
8065 with_gnu_ld="$lt_cv_prog_gnu_ld"
8066
8067 old_CC="$CC"
8068 old_CFLAGS="$CFLAGS"
8069
8070 # Set sane defaults for various variables
8071 test -z "$CC" && CC=cc
8072 test -z "$LTCC" && LTCC=$CC
8073 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8074 test -z "$LD" && LD=ld
8075 test -z "$ac_objext" && ac_objext=o
8076
8077 for cc_temp in $compiler""; do
8078   case $cc_temp in
8079     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8080     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8081     \-*) ;;
8082     *) break;;
8083   esac
8084 done
8085 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8086
8087
8088 # Only perform the check for file, if the check method requires it
8089 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8090 case $deplibs_check_method in
8091 file_magic*)
8092   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8094 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8095 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098   case $MAGIC_CMD in
8099 [\\/*] |  ?:[\\/]*)
8100   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8101   ;;
8102 *)
8103   lt_save_MAGIC_CMD="$MAGIC_CMD"
8104   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8105   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8106   for ac_dir in $ac_dummy; do
8107     IFS="$lt_save_ifs"
8108     test -z "$ac_dir" && ac_dir=.
8109     if test -f $ac_dir/${ac_tool_prefix}file; then
8110       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8111       if test -n "$file_magic_test_file"; then
8112         case $deplibs_check_method in
8113         "file_magic "*)
8114           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8115           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8116           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8117             $EGREP "$file_magic_regex" > /dev/null; then
8118             :
8119           else
8120             cat <<_LT_EOF 1>&2
8121
8122 *** Warning: the command libtool uses to detect shared libraries,
8123 *** $file_magic_cmd, produces output that libtool cannot recognize.
8124 *** The result is that libtool may fail to recognize shared libraries
8125 *** as such.  This will affect the creation of libtool libraries that
8126 *** depend on shared libraries, but programs linked with such libtool
8127 *** libraries will work regardless of this problem.  Nevertheless, you
8128 *** may want to report the problem to your system manager and/or to
8129 *** bug-libtool@gnu.org
8130
8131 _LT_EOF
8132           fi ;;
8133         esac
8134       fi
8135       break
8136     fi
8137   done
8138   IFS="$lt_save_ifs"
8139   MAGIC_CMD="$lt_save_MAGIC_CMD"
8140   ;;
8141 esac
8142 fi
8143
8144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8145 if test -n "$MAGIC_CMD"; then
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8147 $as_echo "$MAGIC_CMD" >&6; }
8148 else
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8151 fi
8152
8153
8154
8155
8156
8157 if test -z "$lt_cv_path_MAGIC_CMD"; then
8158   if test -n "$ac_tool_prefix"; then
8159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8160 $as_echo_n "checking for file... " >&6; }
8161 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8162   $as_echo_n "(cached) " >&6
8163 else
8164   case $MAGIC_CMD in
8165 [\\/*] |  ?:[\\/]*)
8166   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8167   ;;
8168 *)
8169   lt_save_MAGIC_CMD="$MAGIC_CMD"
8170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8171   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8172   for ac_dir in $ac_dummy; do
8173     IFS="$lt_save_ifs"
8174     test -z "$ac_dir" && ac_dir=.
8175     if test -f $ac_dir/file; then
8176       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8177       if test -n "$file_magic_test_file"; then
8178         case $deplibs_check_method in
8179         "file_magic "*)
8180           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8181           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8182           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8183             $EGREP "$file_magic_regex" > /dev/null; then
8184             :
8185           else
8186             cat <<_LT_EOF 1>&2
8187
8188 *** Warning: the command libtool uses to detect shared libraries,
8189 *** $file_magic_cmd, produces output that libtool cannot recognize.
8190 *** The result is that libtool may fail to recognize shared libraries
8191 *** as such.  This will affect the creation of libtool libraries that
8192 *** depend on shared libraries, but programs linked with such libtool
8193 *** libraries will work regardless of this problem.  Nevertheless, you
8194 *** may want to report the problem to your system manager and/or to
8195 *** bug-libtool@gnu.org
8196
8197 _LT_EOF
8198           fi ;;
8199         esac
8200       fi
8201       break
8202     fi
8203   done
8204   IFS="$lt_save_ifs"
8205   MAGIC_CMD="$lt_save_MAGIC_CMD"
8206   ;;
8207 esac
8208 fi
8209
8210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8211 if test -n "$MAGIC_CMD"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8213 $as_echo "$MAGIC_CMD" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218
8219
8220   else
8221     MAGIC_CMD=:
8222   fi
8223 fi
8224
8225   fi
8226   ;;
8227 esac
8228
8229 # Use C for the default configuration in the libtool script
8230
8231 lt_save_CC="$CC"
8232 ac_ext=c
8233 ac_cpp='$CPP $CPPFLAGS'
8234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8237
8238
8239 # Source file extension for C test sources.
8240 ac_ext=c
8241
8242 # Object file extension for compiled C test sources.
8243 objext=o
8244 objext=$objext
8245
8246 # Code to be used in simple compile tests
8247 lt_simple_compile_test_code="int some_variable = 0;"
8248
8249 # Code to be used in simple link tests
8250 lt_simple_link_test_code='int main(){return(0);}'
8251
8252
8253
8254
8255
8256
8257
8258 # If no C compiler was specified, use CC.
8259 LTCC=${LTCC-"$CC"}
8260
8261 # If no C compiler flags were specified, use CFLAGS.
8262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8263
8264 # Allow CC to be a program name with arguments.
8265 compiler=$CC
8266
8267 # Save the default compiler, since it gets overwritten when the other
8268 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8269 compiler_DEFAULT=$CC
8270
8271 # save warnings/boilerplate of simple test code
8272 ac_outfile=conftest.$ac_objext
8273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8275 _lt_compiler_boilerplate=`cat conftest.err`
8276 $RM conftest*
8277
8278 ac_outfile=conftest.$ac_objext
8279 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8281 _lt_linker_boilerplate=`cat conftest.err`
8282 $RM -r conftest*
8283
8284
8285 if test -n "$compiler"; then
8286
8287 lt_prog_compiler_no_builtin_flag=
8288
8289 if test "$GCC" = yes; then
8290   case $cc_basename in
8291   nvcc*)
8292     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8293   *)
8294     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8295   esac
8296
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8298 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8299 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   lt_cv_prog_compiler_rtti_exceptions=no
8303    ac_outfile=conftest.$ac_objext
8304    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8305    lt_compiler_flag="-fno-rtti -fno-exceptions"
8306    # Insert the option either (1) after the last *FLAGS variable, or
8307    # (2) before a word containing "conftest.", or (3) at the end.
8308    # Note that $ac_compile itself does not contain backslashes and begins
8309    # with a dollar sign (not a hyphen), so the echo should work correctly.
8310    # The option is referenced via a variable to avoid confusing sed.
8311    lt_compile=`echo "$ac_compile" | $SED \
8312    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8314    -e 's:$: $lt_compiler_flag:'`
8315    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8316    (eval "$lt_compile" 2>conftest.err)
8317    ac_status=$?
8318    cat conftest.err >&5
8319    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320    if (exit $ac_status) && test -s "$ac_outfile"; then
8321      # The compiler can only warn and ignore the option if not recognized
8322      # So say no if there are warnings other than the usual output.
8323      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8324      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8325      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8326        lt_cv_prog_compiler_rtti_exceptions=yes
8327      fi
8328    fi
8329    $RM conftest*
8330
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8333 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8334
8335 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8336     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8337 else
8338     :
8339 fi
8340
8341 fi
8342
8343
8344
8345
8346
8347
8348   lt_prog_compiler_wl=
8349 lt_prog_compiler_pic=
8350 lt_prog_compiler_static=
8351
8352
8353   if test "$GCC" = yes; then
8354     lt_prog_compiler_wl='-Wl,'
8355     lt_prog_compiler_static='-static'
8356
8357     case $host_os in
8358       aix*)
8359       # All AIX code is PIC.
8360       if test "$host_cpu" = ia64; then
8361         # AIX 5 now supports IA64 processor
8362         lt_prog_compiler_static='-Bstatic'
8363       fi
8364       ;;
8365
8366     amigaos*)
8367       case $host_cpu in
8368       powerpc)
8369             # see comment about AmigaOS4 .so support
8370             lt_prog_compiler_pic='-fPIC'
8371         ;;
8372       m68k)
8373             # FIXME: we need at least 68020 code to build shared libraries, but
8374             # adding the `-m68020' flag to GCC prevents building anything better,
8375             # like `-m68040'.
8376             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8377         ;;
8378       esac
8379       ;;
8380
8381     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8382       # PIC is the default for these OSes.
8383       ;;
8384
8385     mingw* | cygwin* | pw32* | os2* | cegcc*)
8386       # This hack is so that the source file can tell whether it is being
8387       # built for inclusion in a dll (and should export symbols for example).
8388       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8389       # (--disable-auto-import) libraries
8390       lt_prog_compiler_pic='-DDLL_EXPORT'
8391       ;;
8392
8393     darwin* | rhapsody*)
8394       # PIC is the default on this platform
8395       # Common symbols not allowed in MH_DYLIB files
8396       lt_prog_compiler_pic='-fno-common'
8397       ;;
8398
8399     haiku*)
8400       # PIC is the default for Haiku.
8401       # The "-static" flag exists, but is broken.
8402       lt_prog_compiler_static=
8403       ;;
8404
8405     hpux*)
8406       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8407       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8408       # sets the default TLS model and affects inlining.
8409       case $host_cpu in
8410       hppa*64*)
8411         # +Z the default
8412         ;;
8413       *)
8414         lt_prog_compiler_pic='-fPIC'
8415         ;;
8416       esac
8417       ;;
8418
8419     interix[3-9]*)
8420       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8421       # Instead, we relocate shared libraries at runtime.
8422       ;;
8423
8424     msdosdjgpp*)
8425       # Just because we use GCC doesn't mean we suddenly get shared libraries
8426       # on systems that don't support them.
8427       lt_prog_compiler_can_build_shared=no
8428       enable_shared=no
8429       ;;
8430
8431     *nto* | *qnx*)
8432       # QNX uses GNU C++, but need to define -shared option too, otherwise
8433       # it will coredump.
8434       lt_prog_compiler_pic='-fPIC -shared'
8435       ;;
8436
8437     sysv4*MP*)
8438       if test -d /usr/nec; then
8439         lt_prog_compiler_pic=-Kconform_pic
8440       fi
8441       ;;
8442
8443     *)
8444       lt_prog_compiler_pic='-fPIC'
8445       ;;
8446     esac
8447
8448     case $cc_basename in
8449     nvcc*) # Cuda Compiler Driver 2.2
8450       lt_prog_compiler_wl='-Xlinker '
8451       lt_prog_compiler_pic='-Xcompiler -fPIC'
8452       ;;
8453     esac
8454   else
8455     # PORTME Check for flag to pass linker flags through the system compiler.
8456     case $host_os in
8457     aix*)
8458       lt_prog_compiler_wl='-Wl,'
8459       if test "$host_cpu" = ia64; then
8460         # AIX 5 now supports IA64 processor
8461         lt_prog_compiler_static='-Bstatic'
8462       else
8463         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8464       fi
8465       ;;
8466
8467     mingw* | cygwin* | pw32* | os2* | cegcc*)
8468       # This hack is so that the source file can tell whether it is being
8469       # built for inclusion in a dll (and should export symbols for example).
8470       lt_prog_compiler_pic='-DDLL_EXPORT'
8471       ;;
8472
8473     hpux9* | hpux10* | hpux11*)
8474       lt_prog_compiler_wl='-Wl,'
8475       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8476       # not for PA HP-UX.
8477       case $host_cpu in
8478       hppa*64*|ia64*)
8479         # +Z the default
8480         ;;
8481       *)
8482         lt_prog_compiler_pic='+Z'
8483         ;;
8484       esac
8485       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8486       lt_prog_compiler_static='${wl}-a ${wl}archive'
8487       ;;
8488
8489     irix5* | irix6* | nonstopux*)
8490       lt_prog_compiler_wl='-Wl,'
8491       # PIC (with -KPIC) is the default.
8492       lt_prog_compiler_static='-non_shared'
8493       ;;
8494
8495     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8496       case $cc_basename in
8497       # old Intel for x86_64 which still supported -KPIC.
8498       ecc*)
8499         lt_prog_compiler_wl='-Wl,'
8500         lt_prog_compiler_pic='-KPIC'
8501         lt_prog_compiler_static='-static'
8502         ;;
8503       # icc used to be incompatible with GCC.
8504       # ICC 10 doesn't accept -KPIC any more.
8505       icc* | ifort*)
8506         lt_prog_compiler_wl='-Wl,'
8507         lt_prog_compiler_pic='-fPIC'
8508         lt_prog_compiler_static='-static'
8509         ;;
8510       # Lahey Fortran 8.1.
8511       lf95*)
8512         lt_prog_compiler_wl='-Wl,'
8513         lt_prog_compiler_pic='--shared'
8514         lt_prog_compiler_static='--static'
8515         ;;
8516       nagfor*)
8517         # NAG Fortran compiler
8518         lt_prog_compiler_wl='-Wl,-Wl,,'
8519         lt_prog_compiler_pic='-PIC'
8520         lt_prog_compiler_static='-Bstatic'
8521         ;;
8522       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8523         # Portland Group compilers (*not* the Pentium gcc compiler,
8524         # which looks to be a dead project)
8525         lt_prog_compiler_wl='-Wl,'
8526         lt_prog_compiler_pic='-fpic'
8527         lt_prog_compiler_static='-Bstatic'
8528         ;;
8529       ccc*)
8530         lt_prog_compiler_wl='-Wl,'
8531         # All Alpha code is PIC.
8532         lt_prog_compiler_static='-non_shared'
8533         ;;
8534       xl* | bgxl* | bgf* | mpixl*)
8535         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8536         lt_prog_compiler_wl='-Wl,'
8537         lt_prog_compiler_pic='-qpic'
8538         lt_prog_compiler_static='-qstaticlink'
8539         ;;
8540       *)
8541         case `$CC -V 2>&1 | sed 5q` in
8542         *Sun\ F* | *Sun*Fortran*)
8543           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8544           lt_prog_compiler_pic='-KPIC'
8545           lt_prog_compiler_static='-Bstatic'
8546           lt_prog_compiler_wl=''
8547           ;;
8548         *Sun\ C*)
8549           # Sun C 5.9
8550           lt_prog_compiler_pic='-KPIC'
8551           lt_prog_compiler_static='-Bstatic'
8552           lt_prog_compiler_wl='-Wl,'
8553           ;;
8554         esac
8555         ;;
8556       esac
8557       ;;
8558
8559     newsos6)
8560       lt_prog_compiler_pic='-KPIC'
8561       lt_prog_compiler_static='-Bstatic'
8562       ;;
8563
8564     *nto* | *qnx*)
8565       # QNX uses GNU C++, but need to define -shared option too, otherwise
8566       # it will coredump.
8567       lt_prog_compiler_pic='-fPIC -shared'
8568       ;;
8569
8570     osf3* | osf4* | osf5*)
8571       lt_prog_compiler_wl='-Wl,'
8572       # All OSF/1 code is PIC.
8573       lt_prog_compiler_static='-non_shared'
8574       ;;
8575
8576     rdos*)
8577       lt_prog_compiler_static='-non_shared'
8578       ;;
8579
8580     solaris*)
8581       lt_prog_compiler_pic='-KPIC'
8582       lt_prog_compiler_static='-Bstatic'
8583       case $cc_basename in
8584       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8585         lt_prog_compiler_wl='-Qoption ld ';;
8586       *)
8587         lt_prog_compiler_wl='-Wl,';;
8588       esac
8589       ;;
8590
8591     sunos4*)
8592       lt_prog_compiler_wl='-Qoption ld '
8593       lt_prog_compiler_pic='-PIC'
8594       lt_prog_compiler_static='-Bstatic'
8595       ;;
8596
8597     sysv4 | sysv4.2uw2* | sysv4.3*)
8598       lt_prog_compiler_wl='-Wl,'
8599       lt_prog_compiler_pic='-KPIC'
8600       lt_prog_compiler_static='-Bstatic'
8601       ;;
8602
8603     sysv4*MP*)
8604       if test -d /usr/nec ;then
8605         lt_prog_compiler_pic='-Kconform_pic'
8606         lt_prog_compiler_static='-Bstatic'
8607       fi
8608       ;;
8609
8610     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8611       lt_prog_compiler_wl='-Wl,'
8612       lt_prog_compiler_pic='-KPIC'
8613       lt_prog_compiler_static='-Bstatic'
8614       ;;
8615
8616     unicos*)
8617       lt_prog_compiler_wl='-Wl,'
8618       lt_prog_compiler_can_build_shared=no
8619       ;;
8620
8621     uts4*)
8622       lt_prog_compiler_pic='-pic'
8623       lt_prog_compiler_static='-Bstatic'
8624       ;;
8625
8626     *)
8627       lt_prog_compiler_can_build_shared=no
8628       ;;
8629     esac
8630   fi
8631
8632 case $host_os in
8633   # For platforms which do not support PIC, -DPIC is meaningless:
8634   *djgpp*)
8635     lt_prog_compiler_pic=
8636     ;;
8637   *)
8638     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8639     ;;
8640 esac
8641
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8643 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8644 if ${lt_cv_prog_compiler_pic+:} false; then :
8645   $as_echo_n "(cached) " >&6
8646 else
8647   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8650 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8651 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8652
8653 #
8654 # Check to make sure the PIC flag actually works.
8655 #
8656 if test -n "$lt_prog_compiler_pic"; then
8657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8658 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8659 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8660   $as_echo_n "(cached) " >&6
8661 else
8662   lt_cv_prog_compiler_pic_works=no
8663    ac_outfile=conftest.$ac_objext
8664    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8665    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8666    # Insert the option either (1) after the last *FLAGS variable, or
8667    # (2) before a word containing "conftest.", or (3) at the end.
8668    # Note that $ac_compile itself does not contain backslashes and begins
8669    # with a dollar sign (not a hyphen), so the echo should work correctly.
8670    # The option is referenced via a variable to avoid confusing sed.
8671    lt_compile=`echo "$ac_compile" | $SED \
8672    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8673    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8674    -e 's:$: $lt_compiler_flag:'`
8675    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8676    (eval "$lt_compile" 2>conftest.err)
8677    ac_status=$?
8678    cat conftest.err >&5
8679    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680    if (exit $ac_status) && test -s "$ac_outfile"; then
8681      # The compiler can only warn and ignore the option if not recognized
8682      # So say no if there are warnings other than the usual output.
8683      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8684      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8685      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8686        lt_cv_prog_compiler_pic_works=yes
8687      fi
8688    fi
8689    $RM conftest*
8690
8691 fi
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8693 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8694
8695 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8696     case $lt_prog_compiler_pic in
8697      "" | " "*) ;;
8698      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8699      esac
8700 else
8701     lt_prog_compiler_pic=
8702      lt_prog_compiler_can_build_shared=no
8703 fi
8704
8705 fi
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717 #
8718 # Check to make sure the static flag actually works.
8719 #
8720 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8722 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8723 if ${lt_cv_prog_compiler_static_works+:} false; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   lt_cv_prog_compiler_static_works=no
8727    save_LDFLAGS="$LDFLAGS"
8728    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8729    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8730    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8731      # The linker can only warn and ignore the option if not recognized
8732      # So say no if there are warnings
8733      if test -s conftest.err; then
8734        # Append any errors to the config.log.
8735        cat conftest.err 1>&5
8736        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8737        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8738        if diff conftest.exp conftest.er2 >/dev/null; then
8739          lt_cv_prog_compiler_static_works=yes
8740        fi
8741      else
8742        lt_cv_prog_compiler_static_works=yes
8743      fi
8744    fi
8745    $RM -r conftest*
8746    LDFLAGS="$save_LDFLAGS"
8747
8748 fi
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8750 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8751
8752 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8753     :
8754 else
8755     lt_prog_compiler_static=
8756 fi
8757
8758
8759
8760
8761
8762
8763
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8766 if ${lt_cv_prog_compiler_c_o+:} false; then :
8767   $as_echo_n "(cached) " >&6
8768 else
8769   lt_cv_prog_compiler_c_o=no
8770    $RM -r conftest 2>/dev/null
8771    mkdir conftest
8772    cd conftest
8773    mkdir out
8774    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775
8776    lt_compiler_flag="-o out/conftest2.$ac_objext"
8777    # Insert the option either (1) after the last *FLAGS variable, or
8778    # (2) before a word containing "conftest.", or (3) at the end.
8779    # Note that $ac_compile itself does not contain backslashes and begins
8780    # with a dollar sign (not a hyphen), so the echo should work correctly.
8781    lt_compile=`echo "$ac_compile" | $SED \
8782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784    -e 's:$: $lt_compiler_flag:'`
8785    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8786    (eval "$lt_compile" 2>out/conftest.err)
8787    ac_status=$?
8788    cat out/conftest.err >&5
8789    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8791    then
8792      # The compiler can only warn and ignore the option if not recognized
8793      # So say no if there are warnings
8794      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8795      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8796      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8797        lt_cv_prog_compiler_c_o=yes
8798      fi
8799    fi
8800    chmod u+w . 2>&5
8801    $RM conftest*
8802    # SGI C++ compiler will create directory out/ii_files/ for
8803    # template instantiation
8804    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8805    $RM out/* && rmdir out
8806    cd ..
8807    $RM -r conftest
8808    $RM conftest*
8809
8810 fi
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8812 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8813
8814
8815
8816
8817
8818
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8820 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8821 if ${lt_cv_prog_compiler_c_o+:} false; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824   lt_cv_prog_compiler_c_o=no
8825    $RM -r conftest 2>/dev/null
8826    mkdir conftest
8827    cd conftest
8828    mkdir out
8829    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8830
8831    lt_compiler_flag="-o out/conftest2.$ac_objext"
8832    # Insert the option either (1) after the last *FLAGS variable, or
8833    # (2) before a word containing "conftest.", or (3) at the end.
8834    # Note that $ac_compile itself does not contain backslashes and begins
8835    # with a dollar sign (not a hyphen), so the echo should work correctly.
8836    lt_compile=`echo "$ac_compile" | $SED \
8837    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8838    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8839    -e 's:$: $lt_compiler_flag:'`
8840    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8841    (eval "$lt_compile" 2>out/conftest.err)
8842    ac_status=$?
8843    cat out/conftest.err >&5
8844    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8846    then
8847      # The compiler can only warn and ignore the option if not recognized
8848      # So say no if there are warnings
8849      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8850      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8851      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8852        lt_cv_prog_compiler_c_o=yes
8853      fi
8854    fi
8855    chmod u+w . 2>&5
8856    $RM conftest*
8857    # SGI C++ compiler will create directory out/ii_files/ for
8858    # template instantiation
8859    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8860    $RM out/* && rmdir out
8861    cd ..
8862    $RM -r conftest
8863    $RM conftest*
8864
8865 fi
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8867 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8868
8869
8870
8871
8872 hard_links="nottested"
8873 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8874   # do not overwrite the value of need_locks provided by the user
8875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8876 $as_echo_n "checking if we can lock with hard links... " >&6; }
8877   hard_links=yes
8878   $RM conftest*
8879   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8880   touch conftest.a
8881   ln conftest.a conftest.b 2>&5 || hard_links=no
8882   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8884 $as_echo "$hard_links" >&6; }
8885   if test "$hard_links" = no; then
8886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8887 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8888     need_locks=warn
8889   fi
8890 else
8891   need_locks=no
8892 fi
8893
8894
8895
8896
8897
8898
8899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8900 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8901
8902   runpath_var=
8903   allow_undefined_flag=
8904   always_export_symbols=no
8905   archive_cmds=
8906   archive_expsym_cmds=
8907   compiler_needs_object=no
8908   enable_shared_with_static_runtimes=no
8909   export_dynamic_flag_spec=
8910   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8911   hardcode_automatic=no
8912   hardcode_direct=no
8913   hardcode_direct_absolute=no
8914   hardcode_libdir_flag_spec=
8915   hardcode_libdir_flag_spec_ld=
8916   hardcode_libdir_separator=
8917   hardcode_minus_L=no
8918   hardcode_shlibpath_var=unsupported
8919   inherit_rpath=no
8920   link_all_deplibs=unknown
8921   module_cmds=
8922   module_expsym_cmds=
8923   old_archive_from_new_cmds=
8924   old_archive_from_expsyms_cmds=
8925   thread_safe_flag_spec=
8926   whole_archive_flag_spec=
8927   # include_expsyms should be a list of space-separated symbols to be *always*
8928   # included in the symbol list
8929   include_expsyms=
8930   # exclude_expsyms can be an extended regexp of symbols to exclude
8931   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8932   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8933   # as well as any symbol that contains `d'.
8934   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8935   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8936   # platforms (ab)use it in PIC code, but their linkers get confused if
8937   # the symbol is explicitly referenced.  Since portable code cannot
8938   # rely on this symbol name, it's probably fine to never include it in
8939   # preloaded symbol tables.
8940   # Exclude shared library initialization/finalization symbols.
8941   extract_expsyms_cmds=
8942
8943   case $host_os in
8944   cygwin* | mingw* | pw32* | cegcc*)
8945     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8946     # When not using gcc, we currently assume that we are using
8947     # Microsoft Visual C++.
8948     if test "$GCC" != yes; then
8949       with_gnu_ld=no
8950     fi
8951     ;;
8952   interix*)
8953     # we just hope/assume this is gcc and not c89 (= MSVC++)
8954     with_gnu_ld=yes
8955     ;;
8956   openbsd*)
8957     with_gnu_ld=no
8958     ;;
8959   esac
8960
8961   ld_shlibs=yes
8962
8963   # On some targets, GNU ld is compatible enough with the native linker
8964   # that we're better off using the native interface for both.
8965   lt_use_gnu_ld_interface=no
8966   if test "$with_gnu_ld" = yes; then
8967     case $host_os in
8968       aix*)
8969         # The AIX port of GNU ld has always aspired to compatibility
8970         # with the native linker.  However, as the warning in the GNU ld
8971         # block says, versions before 2.19.5* couldn't really create working
8972         # shared libraries, regardless of the interface used.
8973         case `$LD -v 2>&1` in
8974           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8975           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8976           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8977           *)
8978             lt_use_gnu_ld_interface=yes
8979             ;;
8980         esac
8981         ;;
8982       *)
8983         lt_use_gnu_ld_interface=yes
8984         ;;
8985     esac
8986   fi
8987
8988   if test "$lt_use_gnu_ld_interface" = yes; then
8989     # If archive_cmds runs LD, not CC, wlarc should be empty
8990     wlarc='${wl}'
8991
8992     # Set some defaults for GNU ld with shared library support. These
8993     # are reset later if shared libraries are not supported. Putting them
8994     # here allows them to be overridden if necessary.
8995     runpath_var=LD_RUN_PATH
8996     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997     export_dynamic_flag_spec='${wl}--export-dynamic'
8998     # ancient GNU ld didn't support --whole-archive et. al.
8999     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9000       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9001     else
9002       whole_archive_flag_spec=
9003     fi
9004     supports_anon_versioning=no
9005     case `$LD -v 2>&1` in
9006       *GNU\ gold*) supports_anon_versioning=yes ;;
9007       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9008       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9009       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9010       *\ 2.11.*) ;; # other 2.11 versions
9011       *) supports_anon_versioning=yes ;;
9012     esac
9013
9014     # See if GNU ld supports shared libraries.
9015     case $host_os in
9016     aix[3-9]*)
9017       # On AIX/PPC, the GNU linker is very broken
9018       if test "$host_cpu" != ia64; then
9019         ld_shlibs=no
9020         cat <<_LT_EOF 1>&2
9021
9022 *** Warning: the GNU linker, at least up to release 2.19, is reported
9023 *** to be unable to reliably create shared libraries on AIX.
9024 *** Therefore, libtool is disabling shared libraries support.  If you
9025 *** really care for shared libraries, you may want to install binutils
9026 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9027 *** You will then need to restart the configuration process.
9028
9029 _LT_EOF
9030       fi
9031       ;;
9032
9033     amigaos*)
9034       case $host_cpu in
9035       powerpc)
9036             # see comment about AmigaOS4 .so support
9037             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038             archive_expsym_cmds=''
9039         ;;
9040       m68k)
9041             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)'
9042             hardcode_libdir_flag_spec='-L$libdir'
9043             hardcode_minus_L=yes
9044         ;;
9045       esac
9046       ;;
9047
9048     beos*)
9049       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9050         allow_undefined_flag=unsupported
9051         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9052         # support --undefined.  This deserves some investigation.  FIXME
9053         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054       else
9055         ld_shlibs=no
9056       fi
9057       ;;
9058
9059     cygwin* | mingw* | pw32* | cegcc*)
9060       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9061       # as there is no search path for DLLs.
9062       hardcode_libdir_flag_spec='-L$libdir'
9063       export_dynamic_flag_spec='${wl}--export-all-symbols'
9064       allow_undefined_flag=unsupported
9065       always_export_symbols=no
9066       enable_shared_with_static_runtimes=yes
9067       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'
9068       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9069
9070       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9071         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9072         # If the export-symbols file already is a .def file (1st line
9073         # is EXPORTS), use it as is; otherwise, prepend...
9074         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9075           cp $export_symbols $output_objdir/$soname.def;
9076         else
9077           echo EXPORTS > $output_objdir/$soname.def;
9078           cat $export_symbols >> $output_objdir/$soname.def;
9079         fi~
9080         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9081       else
9082         ld_shlibs=no
9083       fi
9084       ;;
9085
9086     haiku*)
9087       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088       link_all_deplibs=yes
9089       ;;
9090
9091     interix[3-9]*)
9092       hardcode_direct=no
9093       hardcode_shlibpath_var=no
9094       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9095       export_dynamic_flag_spec='${wl}-E'
9096       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9097       # Instead, shared libraries are loaded at an image base (0x10000000 by
9098       # default) and relocated if they conflict, which is a slow very memory
9099       # consuming and fragmenting process.  To avoid this, we pick a random,
9100       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9101       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9102       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9103       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'
9104       ;;
9105
9106     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9107       tmp_diet=no
9108       if test "$host_os" = linux-dietlibc; then
9109         case $cc_basename in
9110           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9111         esac
9112       fi
9113       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9114          && test "$tmp_diet" = no
9115       then
9116         tmp_addflag=' $pic_flag'
9117         tmp_sharedflag='-shared'
9118         case $cc_basename,$host_cpu in
9119         pgcc*)                          # Portland Group C compiler
9120           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'
9121           tmp_addflag=' $pic_flag'
9122           ;;
9123         pgf77* | pgf90* | pgf95* | pgfortran*)
9124                                         # Portland Group f77 and f90 compilers
9125           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'
9126           tmp_addflag=' $pic_flag -Mnomain' ;;
9127         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9128           tmp_addflag=' -i_dynamic' ;;
9129         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9130           tmp_addflag=' -i_dynamic -nofor_main' ;;
9131         ifc* | ifort*)                  # Intel Fortran compiler
9132           tmp_addflag=' -nofor_main' ;;
9133         lf95*)                          # Lahey Fortran 8.1
9134           whole_archive_flag_spec=
9135           tmp_sharedflag='--shared' ;;
9136         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9137           tmp_sharedflag='-qmkshrobj'
9138           tmp_addflag= ;;
9139         nvcc*)  # Cuda Compiler Driver 2.2
9140           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'
9141           compiler_needs_object=yes
9142           ;;
9143         esac
9144         case `$CC -V 2>&1 | sed 5q` in
9145         *Sun\ C*)                       # Sun C 5.9
9146           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'
9147           compiler_needs_object=yes
9148           tmp_sharedflag='-G' ;;
9149         *Sun\ F*)                       # Sun Fortran 8.3
9150           tmp_sharedflag='-G' ;;
9151         esac
9152         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9153
9154         if test "x$supports_anon_versioning" = xyes; then
9155           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9156             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9157             echo "local: *; };" >> $output_objdir/$libname.ver~
9158             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9159         fi
9160
9161         case $cc_basename in
9162         xlf* | bgf* | bgxlf* | mpixlf*)
9163           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9164           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9165           hardcode_libdir_flag_spec=
9166           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9167           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9168           if test "x$supports_anon_versioning" = xyes; then
9169             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9170               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9171               echo "local: *; };" >> $output_objdir/$libname.ver~
9172               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9173           fi
9174           ;;
9175         esac
9176       else
9177         ld_shlibs=no
9178       fi
9179       ;;
9180
9181     netbsd*)
9182       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9183         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9184         wlarc=
9185       else
9186         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9188       fi
9189       ;;
9190
9191     solaris*)
9192       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9193         ld_shlibs=no
9194         cat <<_LT_EOF 1>&2
9195
9196 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9197 *** create shared libraries on Solaris systems.  Therefore, libtool
9198 *** is disabling shared libraries support.  We urge you to upgrade GNU
9199 *** binutils to release 2.9.1 or newer.  Another option is to modify
9200 *** your PATH or compiler configuration so that the native linker is
9201 *** used, and then restart.
9202
9203 _LT_EOF
9204       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9205         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9207       else
9208         ld_shlibs=no
9209       fi
9210       ;;
9211
9212     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9213       case `$LD -v 2>&1` in
9214         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9215         ld_shlibs=no
9216         cat <<_LT_EOF 1>&2
9217
9218 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9219 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9220 *** is disabling shared libraries support.  We urge you to upgrade GNU
9221 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9222 *** your PATH or compiler configuration so that the native linker is
9223 *** used, and then restart.
9224
9225 _LT_EOF
9226         ;;
9227         *)
9228           # For security reasons, it is highly recommended that you always
9229           # use absolute paths for naming shared libraries, and exclude the
9230           # DT_RUNPATH tag from executables and libraries.  But doing so
9231           # requires that you compile everything twice, which is a pain.
9232           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9233             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9236           else
9237             ld_shlibs=no
9238           fi
9239         ;;
9240       esac
9241       ;;
9242
9243     sunos4*)
9244       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9245       wlarc=
9246       hardcode_direct=yes
9247       hardcode_shlibpath_var=no
9248       ;;
9249
9250     *)
9251       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9252         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9254       else
9255         ld_shlibs=no
9256       fi
9257       ;;
9258     esac
9259
9260     if test "$ld_shlibs" = no; then
9261       runpath_var=
9262       hardcode_libdir_flag_spec=
9263       export_dynamic_flag_spec=
9264       whole_archive_flag_spec=
9265     fi
9266   else
9267     # PORTME fill in a description of your system's linker (not GNU ld)
9268     case $host_os in
9269     aix3*)
9270       allow_undefined_flag=unsupported
9271       always_export_symbols=yes
9272       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'
9273       # Note: this linker hardcodes the directories in LIBPATH if there
9274       # are no directories specified by -L.
9275       hardcode_minus_L=yes
9276       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9277         # Neither direct hardcoding nor static linking is supported with a
9278         # broken collect2.
9279         hardcode_direct=unsupported
9280       fi
9281       ;;
9282
9283     aix[4-9]*)
9284       if test "$host_cpu" = ia64; then
9285         # On IA64, the linker does run time linking by default, so we don't
9286         # have to do anything special.
9287         aix_use_runtimelinking=no
9288         exp_sym_flag='-Bexport'
9289         no_entry_flag=""
9290       else
9291         # If we're using GNU nm, then we don't want the "-C" option.
9292         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9293         # Also, AIX nm treats weak defined symbols like other global
9294         # defined symbols, whereas GNU nm marks them as "W".
9295         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9296           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'
9297         else
9298           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'
9299         fi
9300         aix_use_runtimelinking=no
9301
9302         # Test if we are trying to use run time linking or normal
9303         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9304         # need to do runtime linking.
9305         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9306           for ld_flag in $LDFLAGS; do
9307           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9308             aix_use_runtimelinking=yes
9309             break
9310           fi
9311           done
9312           ;;
9313         esac
9314
9315         exp_sym_flag='-bexport'
9316         no_entry_flag='-bnoentry'
9317       fi
9318
9319       # When large executables or shared objects are built, AIX ld can
9320       # have problems creating the table of contents.  If linking a library
9321       # or program results in "error TOC overflow" add -mminimal-toc to
9322       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9323       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9324
9325       archive_cmds=''
9326       hardcode_direct=yes
9327       hardcode_direct_absolute=yes
9328       hardcode_libdir_separator=':'
9329       link_all_deplibs=yes
9330       file_list_spec='${wl}-f,'
9331
9332       if test "$GCC" = yes; then
9333         case $host_os in aix4.[012]|aix4.[012].*)
9334         # We only want to do this on AIX 4.2 and lower, the check
9335         # below for broken collect2 doesn't work under 4.3+
9336           collect2name=`${CC} -print-prog-name=collect2`
9337           if test -f "$collect2name" &&
9338            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9339           then
9340           # We have reworked collect2
9341           :
9342           else
9343           # We have old collect2
9344           hardcode_direct=unsupported
9345           # It fails to find uninstalled libraries when the uninstalled
9346           # path is not listed in the libpath.  Setting hardcode_minus_L
9347           # to unsupported forces relinking
9348           hardcode_minus_L=yes
9349           hardcode_libdir_flag_spec='-L$libdir'
9350           hardcode_libdir_separator=
9351           fi
9352           ;;
9353         esac
9354         shared_flag='-shared'
9355         if test "$aix_use_runtimelinking" = yes; then
9356           shared_flag="$shared_flag "'${wl}-G'
9357         fi
9358       else
9359         # not using gcc
9360         if test "$host_cpu" = ia64; then
9361         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9362         # chokes on -Wl,-G. The following line is correct:
9363           shared_flag='-G'
9364         else
9365           if test "$aix_use_runtimelinking" = yes; then
9366             shared_flag='${wl}-G'
9367           else
9368             shared_flag='${wl}-bM:SRE'
9369           fi
9370         fi
9371       fi
9372
9373       export_dynamic_flag_spec='${wl}-bexpall'
9374       # It seems that -bexpall does not export symbols beginning with
9375       # underscore (_), so it is better to generate a list of symbols to export.
9376       always_export_symbols=yes
9377       if test "$aix_use_runtimelinking" = yes; then
9378         # Warning - without using the other runtime loading flags (-brtl),
9379         # -berok will link without error, but may produce a broken library.
9380         allow_undefined_flag='-berok'
9381         # Determine the default libpath from the value encoded in an
9382         # empty executable.
9383         if test "${lt_cv_aix_libpath+set}" = set; then
9384   aix_libpath=$lt_cv_aix_libpath
9385 else
9386   if ${lt_cv_aix_libpath_+:} false; then :
9387   $as_echo_n "(cached) " >&6
9388 else
9389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h.  */
9391
9392 int
9393 main ()
9394 {
9395
9396   ;
9397   return 0;
9398 }
9399 _ACEOF
9400 if ac_fn_c_try_link "$LINENO"; then :
9401
9402   lt_aix_libpath_sed='
9403       /Import File Strings/,/^$/ {
9404           /^0/ {
9405               s/^0  *\([^ ]*\) *$/\1/
9406               p
9407           }
9408       }'
9409   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410   # Check for a 64-bit object if we didn't find anything.
9411   if test -z "$lt_cv_aix_libpath_"; then
9412     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9413   fi
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext \
9416     conftest$ac_exeext conftest.$ac_ext
9417   if test -z "$lt_cv_aix_libpath_"; then
9418     lt_cv_aix_libpath_="/usr/lib:/lib"
9419   fi
9420
9421 fi
9422
9423   aix_libpath=$lt_cv_aix_libpath_
9424 fi
9425
9426         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9427         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"
9428       else
9429         if test "$host_cpu" = ia64; then
9430           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9431           allow_undefined_flag="-z nodefs"
9432           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"
9433         else
9434          # Determine the default libpath from the value encoded in an
9435          # empty executable.
9436          if test "${lt_cv_aix_libpath+set}" = set; then
9437   aix_libpath=$lt_cv_aix_libpath
9438 else
9439   if ${lt_cv_aix_libpath_+:} false; then :
9440   $as_echo_n "(cached) " >&6
9441 else
9442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h.  */
9444
9445 int
9446 main ()
9447 {
9448
9449   ;
9450   return 0;
9451 }
9452 _ACEOF
9453 if ac_fn_c_try_link "$LINENO"; then :
9454
9455   lt_aix_libpath_sed='
9456       /Import File Strings/,/^$/ {
9457           /^0/ {
9458               s/^0  *\([^ ]*\) *$/\1/
9459               p
9460           }
9461       }'
9462   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9463   # Check for a 64-bit object if we didn't find anything.
9464   if test -z "$lt_cv_aix_libpath_"; then
9465     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9466   fi
9467 fi
9468 rm -f core conftest.err conftest.$ac_objext \
9469     conftest$ac_exeext conftest.$ac_ext
9470   if test -z "$lt_cv_aix_libpath_"; then
9471     lt_cv_aix_libpath_="/usr/lib:/lib"
9472   fi
9473
9474 fi
9475
9476   aix_libpath=$lt_cv_aix_libpath_
9477 fi
9478
9479          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9480           # Warning - without using the other run time loading flags,
9481           # -berok will link without error, but may produce a broken library.
9482           no_undefined_flag=' ${wl}-bernotok'
9483           allow_undefined_flag=' ${wl}-berok'
9484           if test "$with_gnu_ld" = yes; then
9485             # We only use this code for GNU lds that support --whole-archive.
9486             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9487           else
9488             # Exported symbols can be pulled into shared objects from archives
9489             whole_archive_flag_spec='$convenience'
9490           fi
9491           archive_cmds_need_lc=yes
9492           # This is similar to how AIX traditionally builds its shared libraries.
9493           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'
9494         fi
9495       fi
9496       ;;
9497
9498     amigaos*)
9499       case $host_cpu in
9500       powerpc)
9501             # see comment about AmigaOS4 .so support
9502             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503             archive_expsym_cmds=''
9504         ;;
9505       m68k)
9506             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)'
9507             hardcode_libdir_flag_spec='-L$libdir'
9508             hardcode_minus_L=yes
9509         ;;
9510       esac
9511       ;;
9512
9513     bsdi[45]*)
9514       export_dynamic_flag_spec=-rdynamic
9515       ;;
9516
9517     cygwin* | mingw* | pw32* | cegcc*)
9518       # When not using gcc, we currently assume that we are using
9519       # Microsoft Visual C++.
9520       # hardcode_libdir_flag_spec is actually meaningless, as there is
9521       # no search path for DLLs.
9522       case $cc_basename in
9523       cl*)
9524         # Native MSVC
9525         hardcode_libdir_flag_spec=' '
9526         allow_undefined_flag=unsupported
9527         always_export_symbols=yes
9528         file_list_spec='@'
9529         # Tell ltmain to make .lib files, not .a files.
9530         libext=lib
9531         # Tell ltmain to make .dll files, not .so files.
9532         shrext_cmds=".dll"
9533         # FIXME: Setting linknames here is a bad hack.
9534         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9535         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9536             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9537           else
9538             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9539           fi~
9540           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9541           linknames='
9542         # The linker will not automatically build a static lib if we build a DLL.
9543         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9544         enable_shared_with_static_runtimes=yes
9545         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9546         # Don't use ranlib
9547         old_postinstall_cmds='chmod 644 $oldlib'
9548         postlink_cmds='lt_outputfile="@OUTPUT@"~
9549           lt_tool_outputfile="@TOOL_OUTPUT@"~
9550           case $lt_outputfile in
9551             *.exe|*.EXE) ;;
9552             *)
9553               lt_outputfile="$lt_outputfile.exe"
9554               lt_tool_outputfile="$lt_tool_outputfile.exe"
9555               ;;
9556           esac~
9557           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9558             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9559             $RM "$lt_outputfile.manifest";
9560           fi'
9561         ;;
9562       *)
9563         # Assume MSVC wrapper
9564         hardcode_libdir_flag_spec=' '
9565         allow_undefined_flag=unsupported
9566         # Tell ltmain to make .lib files, not .a files.
9567         libext=lib
9568         # Tell ltmain to make .dll files, not .so files.
9569         shrext_cmds=".dll"
9570         # FIXME: Setting linknames here is a bad hack.
9571         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9572         # The linker will automatically build a .lib file if we build a DLL.
9573         old_archive_from_new_cmds='true'
9574         # FIXME: Should let the user specify the lib program.
9575         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9576         enable_shared_with_static_runtimes=yes
9577         ;;
9578       esac
9579       ;;
9580
9581     darwin* | rhapsody*)
9582
9583
9584   archive_cmds_need_lc=no
9585   hardcode_direct=no
9586   hardcode_automatic=yes
9587   hardcode_shlibpath_var=unsupported
9588   if test "$lt_cv_ld_force_load" = "yes"; then
9589     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\"`'
9590   else
9591     whole_archive_flag_spec=''
9592   fi
9593   link_all_deplibs=yes
9594   allow_undefined_flag="$_lt_dar_allow_undefined"
9595   case $cc_basename in
9596      ifort*) _lt_dar_can_shared=yes ;;
9597      *) _lt_dar_can_shared=$GCC ;;
9598   esac
9599   if test "$_lt_dar_can_shared" = "yes"; then
9600     output_verbose_link_cmd=func_echo_all
9601     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9602     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9603     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}"
9604     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}"
9605
9606   else
9607   ld_shlibs=no
9608   fi
9609
9610       ;;
9611
9612     dgux*)
9613       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614       hardcode_libdir_flag_spec='-L$libdir'
9615       hardcode_shlibpath_var=no
9616       ;;
9617
9618     freebsd1*)
9619       ld_shlibs=no
9620       ;;
9621
9622     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9623     # support.  Future versions do this automatically, but an explicit c++rt0.o
9624     # does not break anything, and helps significantly (at the cost of a little
9625     # extra space).
9626     freebsd2.2*)
9627       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9628       hardcode_libdir_flag_spec='-R$libdir'
9629       hardcode_direct=yes
9630       hardcode_shlibpath_var=no
9631       ;;
9632
9633     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9634     freebsd2*)
9635       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636       hardcode_direct=yes
9637       hardcode_minus_L=yes
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9642     freebsd* | dragonfly*)
9643       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9644       hardcode_libdir_flag_spec='-R$libdir'
9645       hardcode_direct=yes
9646       hardcode_shlibpath_var=no
9647       ;;
9648
9649     hpux9*)
9650       if test "$GCC" = yes; then
9651         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'
9652       else
9653         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'
9654       fi
9655       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9656       hardcode_libdir_separator=:
9657       hardcode_direct=yes
9658
9659       # hardcode_minus_L: Not really in the search PATH,
9660       # but as the default location of the library.
9661       hardcode_minus_L=yes
9662       export_dynamic_flag_spec='${wl}-E'
9663       ;;
9664
9665     hpux10*)
9666       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9667         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9668       else
9669         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9670       fi
9671       if test "$with_gnu_ld" = no; then
9672         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9673         hardcode_libdir_flag_spec_ld='+b $libdir'
9674         hardcode_libdir_separator=:
9675         hardcode_direct=yes
9676         hardcode_direct_absolute=yes
9677         export_dynamic_flag_spec='${wl}-E'
9678         # hardcode_minus_L: Not really in the search PATH,
9679         # but as the default location of the library.
9680         hardcode_minus_L=yes
9681       fi
9682       ;;
9683
9684     hpux11*)
9685       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9686         case $host_cpu in
9687         hppa*64*)
9688           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9689           ;;
9690         ia64*)
9691           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9692           ;;
9693         *)
9694           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9695           ;;
9696         esac
9697       else
9698         case $host_cpu in
9699         hppa*64*)
9700           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9701           ;;
9702         ia64*)
9703           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9704           ;;
9705         *)
9706
9707           # Older versions of the 11.00 compiler do not understand -b yet
9708           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9709           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9710 $as_echo_n "checking if $CC understands -b... " >&6; }
9711 if ${lt_cv_prog_compiler__b+:} false; then :
9712   $as_echo_n "(cached) " >&6
9713 else
9714   lt_cv_prog_compiler__b=no
9715    save_LDFLAGS="$LDFLAGS"
9716    LDFLAGS="$LDFLAGS -b"
9717    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9718    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9719      # The linker can only warn and ignore the option if not recognized
9720      # So say no if there are warnings
9721      if test -s conftest.err; then
9722        # Append any errors to the config.log.
9723        cat conftest.err 1>&5
9724        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9725        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9726        if diff conftest.exp conftest.er2 >/dev/null; then
9727          lt_cv_prog_compiler__b=yes
9728        fi
9729      else
9730        lt_cv_prog_compiler__b=yes
9731      fi
9732    fi
9733    $RM -r conftest*
9734    LDFLAGS="$save_LDFLAGS"
9735
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9738 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9739
9740 if test x"$lt_cv_prog_compiler__b" = xyes; then
9741     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9742 else
9743     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9744 fi
9745
9746           ;;
9747         esac
9748       fi
9749       if test "$with_gnu_ld" = no; then
9750         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9751         hardcode_libdir_separator=:
9752
9753         case $host_cpu in
9754         hppa*64*|ia64*)
9755           hardcode_direct=no
9756           hardcode_shlibpath_var=no
9757           ;;
9758         *)
9759           hardcode_direct=yes
9760           hardcode_direct_absolute=yes
9761           export_dynamic_flag_spec='${wl}-E'
9762
9763           # hardcode_minus_L: Not really in the search PATH,
9764           # but as the default location of the library.
9765           hardcode_minus_L=yes
9766           ;;
9767         esac
9768       fi
9769       ;;
9770
9771     irix5* | irix6* | nonstopux*)
9772       if test "$GCC" = yes; then
9773         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'
9774         # Try to use the -exported_symbol ld option, if it does not
9775         # work, assume that -exports_file does not work either and
9776         # implicitly export all symbols.
9777         # This should be the same for all languages, so no per-tag cache variable.
9778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9779 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9780 if ${lt_cv_irix_exported_symbol+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   save_LDFLAGS="$LDFLAGS"
9784            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9785            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h.  */
9787 int foo (void) { return 0; }
9788 _ACEOF
9789 if ac_fn_c_try_link "$LINENO"; then :
9790   lt_cv_irix_exported_symbol=yes
9791 else
9792   lt_cv_irix_exported_symbol=no
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext \
9795     conftest$ac_exeext conftest.$ac_ext
9796            LDFLAGS="$save_LDFLAGS"
9797 fi
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9799 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9800         if test "$lt_cv_irix_exported_symbol" = yes; then
9801           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'
9802         fi
9803       else
9804         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'
9805         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'
9806       fi
9807       archive_cmds_need_lc='no'
9808       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9809       hardcode_libdir_separator=:
9810       inherit_rpath=yes
9811       link_all_deplibs=yes
9812       ;;
9813
9814     netbsd*)
9815       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9816         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9817       else
9818         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9819       fi
9820       hardcode_libdir_flag_spec='-R$libdir'
9821       hardcode_direct=yes
9822       hardcode_shlibpath_var=no
9823       ;;
9824
9825     newsos6)
9826       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827       hardcode_direct=yes
9828       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9829       hardcode_libdir_separator=:
9830       hardcode_shlibpath_var=no
9831       ;;
9832
9833     *nto* | *qnx*)
9834       ;;
9835
9836     openbsd*)
9837       if test -f /usr/libexec/ld.so; then
9838         hardcode_direct=yes
9839         hardcode_shlibpath_var=no
9840         hardcode_direct_absolute=yes
9841         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9842           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9843           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9844           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9845           export_dynamic_flag_spec='${wl}-E'
9846         else
9847           case $host_os in
9848            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9849              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9850              hardcode_libdir_flag_spec='-R$libdir'
9851              ;;
9852            *)
9853              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9854              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9855              ;;
9856           esac
9857         fi
9858       else
9859         ld_shlibs=no
9860       fi
9861       ;;
9862
9863     os2*)
9864       hardcode_libdir_flag_spec='-L$libdir'
9865       hardcode_minus_L=yes
9866       allow_undefined_flag=unsupported
9867       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'
9868       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9869       ;;
9870
9871     osf3*)
9872       if test "$GCC" = yes; then
9873         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9874         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'
9875       else
9876         allow_undefined_flag=' -expect_unresolved \*'
9877         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'
9878       fi
9879       archive_cmds_need_lc='no'
9880       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9881       hardcode_libdir_separator=:
9882       ;;
9883
9884     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9885       if test "$GCC" = yes; then
9886         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9887         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'
9888         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9889       else
9890         allow_undefined_flag=' -expect_unresolved \*'
9891         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'
9892         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~
9893         $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'
9894
9895         # Both c and cxx compiler support -rpath directly
9896         hardcode_libdir_flag_spec='-rpath $libdir'
9897       fi
9898       archive_cmds_need_lc='no'
9899       hardcode_libdir_separator=:
9900       ;;
9901
9902     solaris*)
9903       no_undefined_flag=' -z defs'
9904       if test "$GCC" = yes; then
9905         wlarc='${wl}'
9906         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9907         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9908           $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'
9909       else
9910         case `$CC -V 2>&1` in
9911         *"Compilers 5.0"*)
9912           wlarc=''
9913           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9915           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9916           ;;
9917         *)
9918           wlarc='${wl}'
9919           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9920           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9921           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9922           ;;
9923         esac
9924       fi
9925       hardcode_libdir_flag_spec='-R$libdir'
9926       hardcode_shlibpath_var=no
9927       case $host_os in
9928       solaris2.[0-5] | solaris2.[0-5].*) ;;
9929       *)
9930         # The compiler driver will combine and reorder linker options,
9931         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9932         # but is careful enough not to reorder.
9933         # Supported since Solaris 2.6 (maybe 2.5.1?)
9934         if test "$GCC" = yes; then
9935           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9936         else
9937           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9938         fi
9939         ;;
9940       esac
9941       link_all_deplibs=yes
9942       ;;
9943
9944     sunos4*)
9945       if test "x$host_vendor" = xsequent; then
9946         # Use $CC to link under sequent, because it throws in some extra .o
9947         # files that make .init and .fini sections work.
9948         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9949       else
9950         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9951       fi
9952       hardcode_libdir_flag_spec='-L$libdir'
9953       hardcode_direct=yes
9954       hardcode_minus_L=yes
9955       hardcode_shlibpath_var=no
9956       ;;
9957
9958     sysv4)
9959       case $host_vendor in
9960         sni)
9961           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962           hardcode_direct=yes # is this really true???
9963         ;;
9964         siemens)
9965           ## LD is ld it makes a PLAMLIB
9966           ## CC just makes a GrossModule.
9967           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9968           reload_cmds='$CC -r -o $output$reload_objs'
9969           hardcode_direct=no
9970         ;;
9971         motorola)
9972           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9974         ;;
9975       esac
9976       runpath_var='LD_RUN_PATH'
9977       hardcode_shlibpath_var=no
9978       ;;
9979
9980     sysv4.3*)
9981       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9982       hardcode_shlibpath_var=no
9983       export_dynamic_flag_spec='-Bexport'
9984       ;;
9985
9986     sysv4*MP*)
9987       if test -d /usr/nec; then
9988         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989         hardcode_shlibpath_var=no
9990         runpath_var=LD_RUN_PATH
9991         hardcode_runpath_var=yes
9992         ld_shlibs=yes
9993       fi
9994       ;;
9995
9996     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9997       no_undefined_flag='${wl}-z,text'
9998       archive_cmds_need_lc=no
9999       hardcode_shlibpath_var=no
10000       runpath_var='LD_RUN_PATH'
10001
10002       if test "$GCC" = yes; then
10003         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10004         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10005       else
10006         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10007         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10008       fi
10009       ;;
10010
10011     sysv5* | sco3.2v5* | sco5v6*)
10012       # Note: We can NOT use -z defs as we might desire, because we do not
10013       # link with -lc, and that would cause any symbols used from libc to
10014       # always be unresolved, which means just about no library would
10015       # ever link correctly.  If we're not using GNU ld we use -z text
10016       # though, which does catch some bad symbols but isn't as heavy-handed
10017       # as -z defs.
10018       no_undefined_flag='${wl}-z,text'
10019       allow_undefined_flag='${wl}-z,nodefs'
10020       archive_cmds_need_lc=no
10021       hardcode_shlibpath_var=no
10022       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10023       hardcode_libdir_separator=':'
10024       link_all_deplibs=yes
10025       export_dynamic_flag_spec='${wl}-Bexport'
10026       runpath_var='LD_RUN_PATH'
10027
10028       if test "$GCC" = yes; then
10029         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031       else
10032         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034       fi
10035       ;;
10036
10037     uts4*)
10038       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039       hardcode_libdir_flag_spec='-L$libdir'
10040       hardcode_shlibpath_var=no
10041       ;;
10042
10043     *)
10044       ld_shlibs=no
10045       ;;
10046     esac
10047
10048     if test x$host_vendor = xsni; then
10049       case $host in
10050       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10051         export_dynamic_flag_spec='${wl}-Blargedynsym'
10052         ;;
10053       esac
10054     fi
10055   fi
10056
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10058 $as_echo "$ld_shlibs" >&6; }
10059 test "$ld_shlibs" = no && can_build_shared=no
10060
10061 with_gnu_ld=$with_gnu_ld
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077 #
10078 # Do we need to explicitly link libc?
10079 #
10080 case "x$archive_cmds_need_lc" in
10081 x|xyes)
10082   # Assume -lc should be added
10083   archive_cmds_need_lc=yes
10084
10085   if test "$enable_shared" = yes && test "$GCC" = yes; then
10086     case $archive_cmds in
10087     *'~'*)
10088       # FIXME: we may have to deal with multi-command sequences.
10089       ;;
10090     '$CC '*)
10091       # Test whether the compiler implicitly links with -lc since on some
10092       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10093       # to ld, don't add -lc before -lgcc.
10094       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10095 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10096 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099   $RM conftest*
10100         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10101
10102         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10103   (eval $ac_compile) 2>&5
10104   ac_status=$?
10105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10106   test $ac_status = 0; } 2>conftest.err; then
10107           soname=conftest
10108           lib=conftest
10109           libobjs=conftest.$ac_objext
10110           deplibs=
10111           wl=$lt_prog_compiler_wl
10112           pic_flag=$lt_prog_compiler_pic
10113           compiler_flags=-v
10114           linker_flags=-v
10115           verstring=
10116           output_objdir=.
10117           libname=conftest
10118           lt_save_allow_undefined_flag=$allow_undefined_flag
10119           allow_undefined_flag=
10120           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10121   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10122   ac_status=$?
10123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124   test $ac_status = 0; }
10125           then
10126             lt_cv_archive_cmds_need_lc=no
10127           else
10128             lt_cv_archive_cmds_need_lc=yes
10129           fi
10130           allow_undefined_flag=$lt_save_allow_undefined_flag
10131         else
10132           cat conftest.err 1>&5
10133         fi
10134         $RM conftest*
10135
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10138 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10139       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10140       ;;
10141     esac
10142   fi
10143   ;;
10144 esac
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10303 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10304
10305 if test "$GCC" = yes; then
10306   case $host_os in
10307     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10308     *) lt_awk_arg="/^libraries:/" ;;
10309   esac
10310   case $host_os in
10311     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10312     *) lt_sed_strip_eq="s,=/,/,g" ;;
10313   esac
10314   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10315   case $lt_search_path_spec in
10316   *\;*)
10317     # if the path contains ";" then we assume it to be the separator
10318     # otherwise default to the standard path separator (i.e. ":") - it is
10319     # assumed that no part of a normal pathname contains ";" but that should
10320     # okay in the real world where ";" in dirpaths is itself problematic.
10321     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10322     ;;
10323   *)
10324     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10325     ;;
10326   esac
10327   # Ok, now we have the path, separated by spaces, we can step through it
10328   # and add multilib dir if necessary.
10329   lt_tmp_lt_search_path_spec=
10330   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10331   for lt_sys_path in $lt_search_path_spec; do
10332     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10333       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10334     else
10335       test -d "$lt_sys_path" && \
10336         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10337     fi
10338   done
10339   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10340 BEGIN {RS=" "; FS="/|\n";} {
10341   lt_foo="";
10342   lt_count=0;
10343   for (lt_i = NF; lt_i > 0; lt_i--) {
10344     if ($lt_i != "" && $lt_i != ".") {
10345       if ($lt_i == "..") {
10346         lt_count++;
10347       } else {
10348         if (lt_count == 0) {
10349           lt_foo="/" $lt_i lt_foo;
10350         } else {
10351           lt_count--;
10352         }
10353       }
10354     }
10355   }
10356   if (lt_foo != "") { lt_freq[lt_foo]++; }
10357   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10358 }'`
10359   # AWK program above erroneously prepends '/' to C:/dos/paths
10360   # for these hosts.
10361   case $host_os in
10362     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10363       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10364   esac
10365   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10366 else
10367   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10368 fi
10369 library_names_spec=
10370 libname_spec='lib$name'
10371 soname_spec=
10372 shrext_cmds=".so"
10373 postinstall_cmds=
10374 postuninstall_cmds=
10375 finish_cmds=
10376 finish_eval=
10377 shlibpath_var=
10378 shlibpath_overrides_runpath=unknown
10379 version_type=none
10380 dynamic_linker="$host_os ld.so"
10381 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10382 need_lib_prefix=unknown
10383 hardcode_into_libs=no
10384
10385 # when you set need_version to no, make sure it does not cause -set_version
10386 # flags to be left without arguments
10387 need_version=unknown
10388
10389 case $host_os in
10390 aix3*)
10391   version_type=linux
10392   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10393   shlibpath_var=LIBPATH
10394
10395   # AIX 3 has no versioning support, so we append a major version to the name.
10396   soname_spec='${libname}${release}${shared_ext}$major'
10397   ;;
10398
10399 aix[4-9]*)
10400   version_type=linux
10401   need_lib_prefix=no
10402   need_version=no
10403   hardcode_into_libs=yes
10404   if test "$host_cpu" = ia64; then
10405     # AIX 5 supports IA64
10406     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10407     shlibpath_var=LD_LIBRARY_PATH
10408   else
10409     # With GCC up to 2.95.x, collect2 would create an import file
10410     # for dependence libraries.  The import file would start with
10411     # the line `#! .'.  This would cause the generated library to
10412     # depend on `.', always an invalid library.  This was fixed in
10413     # development snapshots of GCC prior to 3.0.
10414     case $host_os in
10415       aix4 | aix4.[01] | aix4.[01].*)
10416       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10417            echo ' yes '
10418            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10419         :
10420       else
10421         can_build_shared=no
10422       fi
10423       ;;
10424     esac
10425     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10426     # soname into executable. Probably we can add versioning support to
10427     # collect2, so additional links can be useful in future.
10428     if test "$aix_use_runtimelinking" = yes; then
10429       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10430       # instead of lib<name>.a to let people know that these are not
10431       # typical AIX shared libraries.
10432       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433     else
10434       # We preserve .a as extension for shared libraries through AIX4.2
10435       # and later when we are not doing run time linking.
10436       library_names_spec='${libname}${release}.a $libname.a'
10437       soname_spec='${libname}${release}${shared_ext}$major'
10438     fi
10439     shlibpath_var=LIBPATH
10440   fi
10441   ;;
10442
10443 amigaos*)
10444   case $host_cpu in
10445   powerpc)
10446     # Since July 2007 AmigaOS4 officially supports .so libraries.
10447     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449     ;;
10450   m68k)
10451     library_names_spec='$libname.ixlibrary $libname.a'
10452     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10453     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'
10454     ;;
10455   esac
10456   ;;
10457
10458 beos*)
10459   library_names_spec='${libname}${shared_ext}'
10460   dynamic_linker="$host_os ld.so"
10461   shlibpath_var=LIBRARY_PATH
10462   ;;
10463
10464 bsdi[45]*)
10465   version_type=linux
10466   need_version=no
10467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468   soname_spec='${libname}${release}${shared_ext}$major'
10469   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10470   shlibpath_var=LD_LIBRARY_PATH
10471   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10472   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10473   # the default ld.so.conf also contains /usr/contrib/lib and
10474   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10475   # libtool to hard-code these into programs
10476   ;;
10477
10478 cygwin* | mingw* | pw32* | cegcc*)
10479   version_type=windows
10480   shrext_cmds=".dll"
10481   need_version=no
10482   need_lib_prefix=no
10483
10484   case $GCC,$cc_basename in
10485   yes,*)
10486     # gcc
10487     library_names_spec='$libname.dll.a'
10488     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10489     postinstall_cmds='base_file=`basename \${file}`~
10490       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10491       dldir=$destdir/`dirname \$dlpath`~
10492       test -d \$dldir || mkdir -p \$dldir~
10493       $install_prog $dir/$dlname \$dldir/$dlname~
10494       chmod a+x \$dldir/$dlname~
10495       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10496         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10497       fi'
10498     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10499       dlpath=$dir/\$dldll~
10500        $RM \$dlpath'
10501     shlibpath_overrides_runpath=yes
10502
10503     case $host_os in
10504     cygwin*)
10505       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10506       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10507
10508       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10509       ;;
10510     mingw* | cegcc*)
10511       # MinGW DLLs use traditional 'lib' prefix
10512       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10513       ;;
10514     pw32*)
10515       # pw32 DLLs use 'pw' prefix rather than 'lib'
10516       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10517       ;;
10518     esac
10519     dynamic_linker='Win32 ld.exe'
10520     ;;
10521
10522   *,cl*)
10523     # Native MSVC
10524     libname_spec='$name'
10525     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10526     library_names_spec='${libname}.dll.lib'
10527
10528     case $build_os in
10529     mingw*)
10530       sys_lib_search_path_spec=
10531       lt_save_ifs=$IFS
10532       IFS=';'
10533       for lt_path in $LIB
10534       do
10535         IFS=$lt_save_ifs
10536         # Let DOS variable expansion print the short 8.3 style file name.
10537         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10538         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10539       done
10540       IFS=$lt_save_ifs
10541       # Convert to MSYS style.
10542       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10543       ;;
10544     cygwin*)
10545       # Convert to unix form, then to dos form, then back to unix form
10546       # but this time dos style (no spaces!) so that the unix form looks
10547       # like /cygdrive/c/PROGRA~1:/cygdr...
10548       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10549       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10550       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10551       ;;
10552     *)
10553       sys_lib_search_path_spec="$LIB"
10554       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10555         # It is most probably a Windows format PATH.
10556         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10557       else
10558         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10559       fi
10560       # FIXME: find the short name or the path components, as spaces are
10561       # common. (e.g. "Program Files" -> "PROGRA~1")
10562       ;;
10563     esac
10564
10565     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10566     postinstall_cmds='base_file=`basename \${file}`~
10567       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10568       dldir=$destdir/`dirname \$dlpath`~
10569       test -d \$dldir || mkdir -p \$dldir~
10570       $install_prog $dir/$dlname \$dldir/$dlname'
10571     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10572       dlpath=$dir/\$dldll~
10573        $RM \$dlpath'
10574     shlibpath_overrides_runpath=yes
10575     dynamic_linker='Win32 link.exe'
10576     ;;
10577
10578   *)
10579     # Assume MSVC wrapper
10580     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10581     dynamic_linker='Win32 ld.exe'
10582     ;;
10583   esac
10584   # FIXME: first we should search . and the directory the executable is in
10585   shlibpath_var=PATH
10586   ;;
10587
10588 darwin* | rhapsody*)
10589   dynamic_linker="$host_os dyld"
10590   version_type=darwin
10591   need_lib_prefix=no
10592   need_version=no
10593   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10594   soname_spec='${libname}${release}${major}$shared_ext'
10595   shlibpath_overrides_runpath=yes
10596   shlibpath_var=DYLD_LIBRARY_PATH
10597   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10598
10599   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10600   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10601   ;;
10602
10603 dgux*)
10604   version_type=linux
10605   need_lib_prefix=no
10606   need_version=no
10607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10608   soname_spec='${libname}${release}${shared_ext}$major'
10609   shlibpath_var=LD_LIBRARY_PATH
10610   ;;
10611
10612 freebsd1*)
10613   dynamic_linker=no
10614   ;;
10615
10616 freebsd* | dragonfly*)
10617   # DragonFly does not have aout.  When/if they implement a new
10618   # versioning mechanism, adjust this.
10619   if test -x /usr/bin/objformat; then
10620     objformat=`/usr/bin/objformat`
10621   else
10622     case $host_os in
10623     freebsd[123]*) objformat=aout ;;
10624     *) objformat=elf ;;
10625     esac
10626   fi
10627   version_type=freebsd-$objformat
10628   case $version_type in
10629     freebsd-elf*)
10630       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10631       need_version=no
10632       need_lib_prefix=no
10633       ;;
10634     freebsd-*)
10635       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10636       need_version=yes
10637       ;;
10638   esac
10639   shlibpath_var=LD_LIBRARY_PATH
10640   case $host_os in
10641   freebsd2*)
10642     shlibpath_overrides_runpath=yes
10643     ;;
10644   freebsd3.[01]* | freebsdelf3.[01]*)
10645     shlibpath_overrides_runpath=yes
10646     hardcode_into_libs=yes
10647     ;;
10648   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10649   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10650     shlibpath_overrides_runpath=no
10651     hardcode_into_libs=yes
10652     ;;
10653   *) # from 4.6 on, and DragonFly
10654     shlibpath_overrides_runpath=yes
10655     hardcode_into_libs=yes
10656     ;;
10657   esac
10658   ;;
10659
10660 gnu*)
10661   version_type=linux
10662   need_lib_prefix=no
10663   need_version=no
10664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10665   soname_spec='${libname}${release}${shared_ext}$major'
10666   shlibpath_var=LD_LIBRARY_PATH
10667   hardcode_into_libs=yes
10668   ;;
10669
10670 haiku*)
10671   version_type=linux
10672   need_lib_prefix=no
10673   need_version=no
10674   dynamic_linker="$host_os runtime_loader"
10675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10676   soname_spec='${libname}${release}${shared_ext}$major'
10677   shlibpath_var=LIBRARY_PATH
10678   shlibpath_overrides_runpath=yes
10679   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10680   hardcode_into_libs=yes
10681   ;;
10682
10683 hpux9* | hpux10* | hpux11*)
10684   # Give a soname corresponding to the major version so that dld.sl refuses to
10685   # link against other versions.
10686   version_type=sunos
10687   need_lib_prefix=no
10688   need_version=no
10689   case $host_cpu in
10690   ia64*)
10691     shrext_cmds='.so'
10692     hardcode_into_libs=yes
10693     dynamic_linker="$host_os dld.so"
10694     shlibpath_var=LD_LIBRARY_PATH
10695     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697     soname_spec='${libname}${release}${shared_ext}$major'
10698     if test "X$HPUX_IA64_MODE" = X32; then
10699       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10700     else
10701       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10702     fi
10703     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10704     ;;
10705   hppa*64*)
10706     shrext_cmds='.sl'
10707     hardcode_into_libs=yes
10708     dynamic_linker="$host_os dld.sl"
10709     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10710     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712     soname_spec='${libname}${release}${shared_ext}$major'
10713     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10714     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10715     ;;
10716   *)
10717     shrext_cmds='.sl'
10718     dynamic_linker="$host_os dld.sl"
10719     shlibpath_var=SHLIB_PATH
10720     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722     soname_spec='${libname}${release}${shared_ext}$major'
10723     ;;
10724   esac
10725   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10726   postinstall_cmds='chmod 555 $lib'
10727   # or fails outright, so override atomically:
10728   install_override_mode=555
10729   ;;
10730
10731 interix[3-9]*)
10732   version_type=linux
10733   need_lib_prefix=no
10734   need_version=no
10735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10736   soname_spec='${libname}${release}${shared_ext}$major'
10737   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10738   shlibpath_var=LD_LIBRARY_PATH
10739   shlibpath_overrides_runpath=no
10740   hardcode_into_libs=yes
10741   ;;
10742
10743 irix5* | irix6* | nonstopux*)
10744   case $host_os in
10745     nonstopux*) version_type=nonstopux ;;
10746     *)
10747         if test "$lt_cv_prog_gnu_ld" = yes; then
10748                 version_type=linux
10749         else
10750                 version_type=irix
10751         fi ;;
10752   esac
10753   need_lib_prefix=no
10754   need_version=no
10755   soname_spec='${libname}${release}${shared_ext}$major'
10756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10757   case $host_os in
10758   irix5* | nonstopux*)
10759     libsuff= shlibsuff=
10760     ;;
10761   *)
10762     case $LD in # libtool.m4 will add one of these switches to LD
10763     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10764       libsuff= shlibsuff= libmagic=32-bit;;
10765     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10766       libsuff=32 shlibsuff=N32 libmagic=N32;;
10767     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10768       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10769     *) libsuff= shlibsuff= libmagic=never-match;;
10770     esac
10771     ;;
10772   esac
10773   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10774   shlibpath_overrides_runpath=no
10775   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10776   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10777   hardcode_into_libs=yes
10778   ;;
10779
10780 # No shared lib support for Linux oldld, aout, or coff.
10781 linux*oldld* | linux*aout* | linux*coff*)
10782   dynamic_linker=no
10783   ;;
10784
10785 # This must be Linux ELF.
10786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10787   version_type=linux
10788   need_lib_prefix=no
10789   need_version=no
10790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791   soname_spec='${libname}${release}${shared_ext}$major'
10792   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10793   shlibpath_var=LD_LIBRARY_PATH
10794   shlibpath_overrides_runpath=no
10795
10796   # Some binutils ld are patched to set DT_RUNPATH
10797   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10798   $as_echo_n "(cached) " >&6
10799 else
10800   lt_cv_shlibpath_overrides_runpath=no
10801     save_LDFLAGS=$LDFLAGS
10802     save_libdir=$libdir
10803     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10804          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10805     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h.  */
10807
10808 int
10809 main ()
10810 {
10811
10812   ;
10813   return 0;
10814 }
10815 _ACEOF
10816 if ac_fn_c_try_link "$LINENO"; then :
10817   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10818   lt_cv_shlibpath_overrides_runpath=yes
10819 fi
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext \
10822     conftest$ac_exeext conftest.$ac_ext
10823     LDFLAGS=$save_LDFLAGS
10824     libdir=$save_libdir
10825
10826 fi
10827
10828   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10829
10830   # This implies no fast_install, which is unacceptable.
10831   # Some rework will be needed to allow for fast_install
10832   # before this can be enabled.
10833   hardcode_into_libs=yes
10834
10835   # Append ld.so.conf contents to the search path
10836   if test -f /etc/ld.so.conf; then
10837     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' ' '`
10838     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10839   fi
10840
10841   # We used to test for /lib/ld.so.1 and disable shared libraries on
10842   # powerpc, because MkLinux only supported shared libraries with the
10843   # GNU dynamic linker.  Since this was broken with cross compilers,
10844   # most powerpc-linux boxes support dynamic linking these days and
10845   # people can always --disable-shared, the test was removed, and we
10846   # assume the GNU/Linux dynamic linker is in use.
10847   dynamic_linker='GNU/Linux ld.so'
10848   ;;
10849
10850 netbsd*)
10851   version_type=sunos
10852   need_lib_prefix=no
10853   need_version=no
10854   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10856     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10857     dynamic_linker='NetBSD (a.out) ld.so'
10858   else
10859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10860     soname_spec='${libname}${release}${shared_ext}$major'
10861     dynamic_linker='NetBSD ld.elf_so'
10862   fi
10863   shlibpath_var=LD_LIBRARY_PATH
10864   shlibpath_overrides_runpath=yes
10865   hardcode_into_libs=yes
10866   ;;
10867
10868 newsos6)
10869   version_type=linux
10870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10871   shlibpath_var=LD_LIBRARY_PATH
10872   shlibpath_overrides_runpath=yes
10873   ;;
10874
10875 *nto* | *qnx*)
10876   version_type=qnx
10877   need_lib_prefix=no
10878   need_version=no
10879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880   soname_spec='${libname}${release}${shared_ext}$major'
10881   shlibpath_var=LD_LIBRARY_PATH
10882   shlibpath_overrides_runpath=no
10883   hardcode_into_libs=yes
10884   dynamic_linker='ldqnx.so'
10885   ;;
10886
10887 openbsd*)
10888   version_type=sunos
10889   sys_lib_dlsearch_path_spec="/usr/lib"
10890   need_lib_prefix=no
10891   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10892   case $host_os in
10893     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10894     *)                          need_version=no  ;;
10895   esac
10896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10897   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10898   shlibpath_var=LD_LIBRARY_PATH
10899   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10900     case $host_os in
10901       openbsd2.[89] | openbsd2.[89].*)
10902         shlibpath_overrides_runpath=no
10903         ;;
10904       *)
10905         shlibpath_overrides_runpath=yes
10906         ;;
10907       esac
10908   else
10909     shlibpath_overrides_runpath=yes
10910   fi
10911   ;;
10912
10913 os2*)
10914   libname_spec='$name'
10915   shrext_cmds=".dll"
10916   need_lib_prefix=no
10917   library_names_spec='$libname${shared_ext} $libname.a'
10918   dynamic_linker='OS/2 ld.exe'
10919   shlibpath_var=LIBPATH
10920   ;;
10921
10922 osf3* | osf4* | osf5*)
10923   version_type=osf
10924   need_lib_prefix=no
10925   need_version=no
10926   soname_spec='${libname}${release}${shared_ext}$major'
10927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928   shlibpath_var=LD_LIBRARY_PATH
10929   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10930   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10931   ;;
10932
10933 rdos*)
10934   dynamic_linker=no
10935   ;;
10936
10937 solaris*)
10938   version_type=linux
10939   need_lib_prefix=no
10940   need_version=no
10941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942   soname_spec='${libname}${release}${shared_ext}$major'
10943   shlibpath_var=LD_LIBRARY_PATH
10944   shlibpath_overrides_runpath=yes
10945   hardcode_into_libs=yes
10946   # ldd complains unless libraries are executable
10947   postinstall_cmds='chmod +x $lib'
10948   ;;
10949
10950 sunos4*)
10951   version_type=sunos
10952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10953   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10954   shlibpath_var=LD_LIBRARY_PATH
10955   shlibpath_overrides_runpath=yes
10956   if test "$with_gnu_ld" = yes; then
10957     need_lib_prefix=no
10958   fi
10959   need_version=yes
10960   ;;
10961
10962 sysv4 | sysv4.3*)
10963   version_type=linux
10964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965   soname_spec='${libname}${release}${shared_ext}$major'
10966   shlibpath_var=LD_LIBRARY_PATH
10967   case $host_vendor in
10968     sni)
10969       shlibpath_overrides_runpath=no
10970       need_lib_prefix=no
10971       runpath_var=LD_RUN_PATH
10972       ;;
10973     siemens)
10974       need_lib_prefix=no
10975       ;;
10976     motorola)
10977       need_lib_prefix=no
10978       need_version=no
10979       shlibpath_overrides_runpath=no
10980       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10981       ;;
10982   esac
10983   ;;
10984
10985 sysv4*MP*)
10986   if test -d /usr/nec ;then
10987     version_type=linux
10988     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10989     soname_spec='$libname${shared_ext}.$major'
10990     shlibpath_var=LD_LIBRARY_PATH
10991   fi
10992   ;;
10993
10994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10995   version_type=freebsd-elf
10996   need_lib_prefix=no
10997   need_version=no
10998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10999   soname_spec='${libname}${release}${shared_ext}$major'
11000   shlibpath_var=LD_LIBRARY_PATH
11001   shlibpath_overrides_runpath=yes
11002   hardcode_into_libs=yes
11003   if test "$with_gnu_ld" = yes; then
11004     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11005   else
11006     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11007     case $host_os in
11008       sco3.2v5*)
11009         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11010         ;;
11011     esac
11012   fi
11013   sys_lib_dlsearch_path_spec='/usr/lib'
11014   ;;
11015
11016 tpf*)
11017   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11018   version_type=linux
11019   need_lib_prefix=no
11020   need_version=no
11021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022   shlibpath_var=LD_LIBRARY_PATH
11023   shlibpath_overrides_runpath=no
11024   hardcode_into_libs=yes
11025   ;;
11026
11027 uts4*)
11028   version_type=linux
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030   soname_spec='${libname}${release}${shared_ext}$major'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   ;;
11033
11034 *)
11035   dynamic_linker=no
11036   ;;
11037 esac
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11039 $as_echo "$dynamic_linker" >&6; }
11040 test "$dynamic_linker" = no && can_build_shared=no
11041
11042 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11043 if test "$GCC" = yes; then
11044   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11045 fi
11046
11047 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11048   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11049 fi
11050 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11051   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11052 fi
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11146 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11147 hardcode_action=
11148 if test -n "$hardcode_libdir_flag_spec" ||
11149    test -n "$runpath_var" ||
11150    test "X$hardcode_automatic" = "Xyes" ; then
11151
11152   # We can hardcode non-existent directories.
11153   if test "$hardcode_direct" != no &&
11154      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11155      # have to relink, otherwise we might link with an installed library
11156      # when we should be linking with a yet-to-be-installed one
11157      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11158      test "$hardcode_minus_L" != no; then
11159     # Linking always hardcodes the temporary library directory.
11160     hardcode_action=relink
11161   else
11162     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11163     hardcode_action=immediate
11164   fi
11165 else
11166   # We cannot hardcode anything, or else we can only hardcode existing
11167   # directories.
11168   hardcode_action=unsupported
11169 fi
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11171 $as_echo "$hardcode_action" >&6; }
11172
11173 if test "$hardcode_action" = relink ||
11174    test "$inherit_rpath" = yes; then
11175   # Fast installation is not supported
11176   enable_fast_install=no
11177 elif test "$shlibpath_overrides_runpath" = yes ||
11178      test "$enable_shared" = no; then
11179   # Fast installation is not necessary
11180   enable_fast_install=needless
11181 fi
11182
11183
11184
11185
11186
11187
11188   if test "x$enable_dlopen" != xyes; then
11189   enable_dlopen=unknown
11190   enable_dlopen_self=unknown
11191   enable_dlopen_self_static=unknown
11192 else
11193   lt_cv_dlopen=no
11194   lt_cv_dlopen_libs=
11195
11196   case $host_os in
11197   beos*)
11198     lt_cv_dlopen="load_add_on"
11199     lt_cv_dlopen_libs=
11200     lt_cv_dlopen_self=yes
11201     ;;
11202
11203   mingw* | pw32* | cegcc*)
11204     lt_cv_dlopen="LoadLibrary"
11205     lt_cv_dlopen_libs=
11206     ;;
11207
11208   cygwin*)
11209     lt_cv_dlopen="dlopen"
11210     lt_cv_dlopen_libs=
11211     ;;
11212
11213   darwin*)
11214   # if libdl is installed we need to link against it
11215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11216 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11217 if ${ac_cv_lib_dl_dlopen+:} false; then :
11218   $as_echo_n "(cached) " >&6
11219 else
11220   ac_check_lib_save_LIBS=$LIBS
11221 LIBS="-ldl  $LIBS"
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h.  */
11224
11225 /* Override any GCC internal prototype to avoid an error.
11226    Use char because int might match the return type of a GCC
11227    builtin and then its argument prototype would still apply.  */
11228 #ifdef __cplusplus
11229 extern "C"
11230 #endif
11231 char dlopen ();
11232 int
11233 main ()
11234 {
11235 return dlopen ();
11236   ;
11237   return 0;
11238 }
11239 _ACEOF
11240 if ac_fn_c_try_link "$LINENO"; then :
11241   ac_cv_lib_dl_dlopen=yes
11242 else
11243   ac_cv_lib_dl_dlopen=no
11244 fi
11245 rm -f core conftest.err conftest.$ac_objext \
11246     conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11248 fi
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11250 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11251 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11252   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11253 else
11254
11255     lt_cv_dlopen="dyld"
11256     lt_cv_dlopen_libs=
11257     lt_cv_dlopen_self=yes
11258
11259 fi
11260
11261     ;;
11262
11263   *)
11264     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11265 if test "x$ac_cv_func_shl_load" = xyes; then :
11266   lt_cv_dlopen="shl_load"
11267 else
11268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11269 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11270 if ${ac_cv_lib_dld_shl_load+:} false; then :
11271   $as_echo_n "(cached) " >&6
11272 else
11273   ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-ldld  $LIBS"
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h.  */
11277
11278 /* Override any GCC internal prototype to avoid an error.
11279    Use char because int might match the return type of a GCC
11280    builtin and then its argument prototype would still apply.  */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 char shl_load ();
11285 int
11286 main ()
11287 {
11288 return shl_load ();
11289   ;
11290   return 0;
11291 }
11292 _ACEOF
11293 if ac_fn_c_try_link "$LINENO"; then :
11294   ac_cv_lib_dld_shl_load=yes
11295 else
11296   ac_cv_lib_dld_shl_load=no
11297 fi
11298 rm -f core conftest.err conftest.$ac_objext \
11299     conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11303 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11304 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11305   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11306 else
11307   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11308 if test "x$ac_cv_func_dlopen" = xyes; then :
11309   lt_cv_dlopen="dlopen"
11310 else
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11312 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11313 if ${ac_cv_lib_dl_dlopen+:} false; then :
11314   $as_echo_n "(cached) " >&6
11315 else
11316   ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-ldl  $LIBS"
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h.  */
11320
11321 /* Override any GCC internal prototype to avoid an error.
11322    Use char because int might match the return type of a GCC
11323    builtin and then its argument prototype would still apply.  */
11324 #ifdef __cplusplus
11325 extern "C"
11326 #endif
11327 char dlopen ();
11328 int
11329 main ()
11330 {
11331 return dlopen ();
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 if ac_fn_c_try_link "$LINENO"; then :
11337   ac_cv_lib_dl_dlopen=yes
11338 else
11339   ac_cv_lib_dl_dlopen=no
11340 fi
11341 rm -f core conftest.err conftest.$ac_objext \
11342     conftest$ac_exeext conftest.$ac_ext
11343 LIBS=$ac_check_lib_save_LIBS
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11346 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11347 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11348   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11349 else
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11351 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11352 if ${ac_cv_lib_svld_dlopen+:} false; then :
11353   $as_echo_n "(cached) " >&6
11354 else
11355   ac_check_lib_save_LIBS=$LIBS
11356 LIBS="-lsvld  $LIBS"
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h.  */
11359
11360 /* Override any GCC internal prototype to avoid an error.
11361    Use char because int might match the return type of a GCC
11362    builtin and then its argument prototype would still apply.  */
11363 #ifdef __cplusplus
11364 extern "C"
11365 #endif
11366 char dlopen ();
11367 int
11368 main ()
11369 {
11370 return dlopen ();
11371   ;
11372   return 0;
11373 }
11374 _ACEOF
11375 if ac_fn_c_try_link "$LINENO"; then :
11376   ac_cv_lib_svld_dlopen=yes
11377 else
11378   ac_cv_lib_svld_dlopen=no
11379 fi
11380 rm -f core conftest.err conftest.$ac_objext \
11381     conftest$ac_exeext conftest.$ac_ext
11382 LIBS=$ac_check_lib_save_LIBS
11383 fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11385 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11386 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11387   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11388 else
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11390 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11391 if ${ac_cv_lib_dld_dld_link+:} false; then :
11392   $as_echo_n "(cached) " >&6
11393 else
11394   ac_check_lib_save_LIBS=$LIBS
11395 LIBS="-ldld  $LIBS"
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h.  */
11398
11399 /* Override any GCC internal prototype to avoid an error.
11400    Use char because int might match the return type of a GCC
11401    builtin and then its argument prototype would still apply.  */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 char dld_link ();
11406 int
11407 main ()
11408 {
11409 return dld_link ();
11410   ;
11411   return 0;
11412 }
11413 _ACEOF
11414 if ac_fn_c_try_link "$LINENO"; then :
11415   ac_cv_lib_dld_dld_link=yes
11416 else
11417   ac_cv_lib_dld_dld_link=no
11418 fi
11419 rm -f core conftest.err conftest.$ac_objext \
11420     conftest$ac_exeext conftest.$ac_ext
11421 LIBS=$ac_check_lib_save_LIBS
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11424 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11425 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11426   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11427 fi
11428
11429
11430 fi
11431
11432
11433 fi
11434
11435
11436 fi
11437
11438
11439 fi
11440
11441
11442 fi
11443
11444     ;;
11445   esac
11446
11447   if test "x$lt_cv_dlopen" != xno; then
11448     enable_dlopen=yes
11449   else
11450     enable_dlopen=no
11451   fi
11452
11453   case $lt_cv_dlopen in
11454   dlopen)
11455     save_CPPFLAGS="$CPPFLAGS"
11456     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11457
11458     save_LDFLAGS="$LDFLAGS"
11459     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11460
11461     save_LIBS="$LIBS"
11462     LIBS="$lt_cv_dlopen_libs $LIBS"
11463
11464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11465 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11466 if ${lt_cv_dlopen_self+:} false; then :
11467   $as_echo_n "(cached) " >&6
11468 else
11469           if test "$cross_compiling" = yes; then :
11470   lt_cv_dlopen_self=cross
11471 else
11472   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11473   lt_status=$lt_dlunknown
11474   cat > conftest.$ac_ext <<_LT_EOF
11475 #line $LINENO "configure"
11476 #include "confdefs.h"
11477
11478 #if HAVE_DLFCN_H
11479 #include <dlfcn.h>
11480 #endif
11481
11482 #include <stdio.h>
11483
11484 #ifdef RTLD_GLOBAL
11485 #  define LT_DLGLOBAL           RTLD_GLOBAL
11486 #else
11487 #  ifdef DL_GLOBAL
11488 #    define LT_DLGLOBAL         DL_GLOBAL
11489 #  else
11490 #    define LT_DLGLOBAL         0
11491 #  endif
11492 #endif
11493
11494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11495    find out it does not work in some platform. */
11496 #ifndef LT_DLLAZY_OR_NOW
11497 #  ifdef RTLD_LAZY
11498 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11499 #  else
11500 #    ifdef DL_LAZY
11501 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11502 #    else
11503 #      ifdef RTLD_NOW
11504 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11505 #      else
11506 #        ifdef DL_NOW
11507 #          define LT_DLLAZY_OR_NOW      DL_NOW
11508 #        else
11509 #          define LT_DLLAZY_OR_NOW      0
11510 #        endif
11511 #      endif
11512 #    endif
11513 #  endif
11514 #endif
11515
11516 /* When -fvisbility=hidden is used, assume the code has been annotated
11517    correspondingly for the symbols needed.  */
11518 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11519 int fnord () __attribute__((visibility("default")));
11520 #endif
11521
11522 int fnord () { return 42; }
11523 int main ()
11524 {
11525   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11526   int status = $lt_dlunknown;
11527
11528   if (self)
11529     {
11530       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11531       else
11532         {
11533           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11534           else puts (dlerror ());
11535         }
11536       /* dlclose (self); */
11537     }
11538   else
11539     puts (dlerror ());
11540
11541   return status;
11542 }
11543 _LT_EOF
11544   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11545   (eval $ac_link) 2>&5
11546   ac_status=$?
11547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11548   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11549     (./conftest; exit; ) >&5 2>/dev/null
11550     lt_status=$?
11551     case x$lt_status in
11552       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11553       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11554       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11555     esac
11556   else :
11557     # compilation failed
11558     lt_cv_dlopen_self=no
11559   fi
11560 fi
11561 rm -fr conftest*
11562
11563
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11566 $as_echo "$lt_cv_dlopen_self" >&6; }
11567
11568     if test "x$lt_cv_dlopen_self" = xyes; then
11569       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11570       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11571 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11572 if ${lt_cv_dlopen_self_static+:} false; then :
11573   $as_echo_n "(cached) " >&6
11574 else
11575           if test "$cross_compiling" = yes; then :
11576   lt_cv_dlopen_self_static=cross
11577 else
11578   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11579   lt_status=$lt_dlunknown
11580   cat > conftest.$ac_ext <<_LT_EOF
11581 #line $LINENO "configure"
11582 #include "confdefs.h"
11583
11584 #if HAVE_DLFCN_H
11585 #include <dlfcn.h>
11586 #endif
11587
11588 #include <stdio.h>
11589
11590 #ifdef RTLD_GLOBAL
11591 #  define LT_DLGLOBAL           RTLD_GLOBAL
11592 #else
11593 #  ifdef DL_GLOBAL
11594 #    define LT_DLGLOBAL         DL_GLOBAL
11595 #  else
11596 #    define LT_DLGLOBAL         0
11597 #  endif
11598 #endif
11599
11600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11601    find out it does not work in some platform. */
11602 #ifndef LT_DLLAZY_OR_NOW
11603 #  ifdef RTLD_LAZY
11604 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11605 #  else
11606 #    ifdef DL_LAZY
11607 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11608 #    else
11609 #      ifdef RTLD_NOW
11610 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11611 #      else
11612 #        ifdef DL_NOW
11613 #          define LT_DLLAZY_OR_NOW      DL_NOW
11614 #        else
11615 #          define LT_DLLAZY_OR_NOW      0
11616 #        endif
11617 #      endif
11618 #    endif
11619 #  endif
11620 #endif
11621
11622 /* When -fvisbility=hidden is used, assume the code has been annotated
11623    correspondingly for the symbols needed.  */
11624 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11625 int fnord () __attribute__((visibility("default")));
11626 #endif
11627
11628 int fnord () { return 42; }
11629 int main ()
11630 {
11631   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11632   int status = $lt_dlunknown;
11633
11634   if (self)
11635     {
11636       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11637       else
11638         {
11639           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11640           else puts (dlerror ());
11641         }
11642       /* dlclose (self); */
11643     }
11644   else
11645     puts (dlerror ());
11646
11647   return status;
11648 }
11649 _LT_EOF
11650   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11651   (eval $ac_link) 2>&5
11652   ac_status=$?
11653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11654   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11655     (./conftest; exit; ) >&5 2>/dev/null
11656     lt_status=$?
11657     case x$lt_status in
11658       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11659       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11660       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11661     esac
11662   else :
11663     # compilation failed
11664     lt_cv_dlopen_self_static=no
11665   fi
11666 fi
11667 rm -fr conftest*
11668
11669
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11672 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11673     fi
11674
11675     CPPFLAGS="$save_CPPFLAGS"
11676     LDFLAGS="$save_LDFLAGS"
11677     LIBS="$save_LIBS"
11678     ;;
11679   esac
11680
11681   case $lt_cv_dlopen_self in
11682   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11683   *) enable_dlopen_self=unknown ;;
11684   esac
11685
11686   case $lt_cv_dlopen_self_static in
11687   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11688   *) enable_dlopen_self_static=unknown ;;
11689   esac
11690 fi
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708 striplib=
11709 old_striplib=
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11711 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11712 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11713   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11714   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11716 $as_echo "yes" >&6; }
11717 else
11718 # FIXME - insert some real tests, host_os isn't really good enough
11719   case $host_os in
11720   darwin*)
11721     if test -n "$STRIP" ; then
11722       striplib="$STRIP -x"
11723       old_striplib="$STRIP -S"
11724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11725 $as_echo "yes" >&6; }
11726     else
11727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11729     fi
11730     ;;
11731   *)
11732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11734     ;;
11735   esac
11736 fi
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749   # Report which library types will actually be built
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11751 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11753 $as_echo "$can_build_shared" >&6; }
11754
11755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11756 $as_echo_n "checking whether to build shared libraries... " >&6; }
11757   test "$can_build_shared" = "no" && enable_shared=no
11758
11759   # On AIX, shared libraries and static libraries use the same namespace, and
11760   # are all built from PIC.
11761   case $host_os in
11762   aix3*)
11763     test "$enable_shared" = yes && enable_static=no
11764     if test -n "$RANLIB"; then
11765       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11766       postinstall_cmds='$RANLIB $lib'
11767     fi
11768     ;;
11769
11770   aix[4-9]*)
11771     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11772       test "$enable_shared" = yes && enable_static=no
11773     fi
11774     ;;
11775   esac
11776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11777 $as_echo "$enable_shared" >&6; }
11778
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11780 $as_echo_n "checking whether to build static libraries... " >&6; }
11781   # Make sure either enable_shared or enable_static is yes.
11782   test "$enable_shared" = yes || enable_static=yes
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11784 $as_echo "$enable_static" >&6; }
11785
11786
11787
11788
11789 fi
11790 ac_ext=c
11791 ac_cpp='$CPP $CPPFLAGS'
11792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11795
11796 CC="$lt_save_CC"
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810         ac_config_commands="$ac_config_commands libtool"
11811
11812
11813
11814
11815 # Only expand once:
11816
11817
11818
11819 # On Solaris 10 and 12 CPP gets set to cc -E, however this still
11820 # does some input parsing.  We need strict ANSI-C style tokenization,
11821 # check this:
11822
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a C preprocessor that does not parse its input" >&5
11824 $as_echo_n "checking for a C preprocessor that does not parse its input... " >&6; }
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h.  */
11827 1.5.0 16BIT
11828 _ACEOF
11829 if ac_fn_c_try_cpp "$LINENO"; then :
11830   DFNCPP="$CPP"
11831 else
11832   DFNCPP=""
11833    sav_CPP="$CPP"
11834    for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp" "cpp"; do
11835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h.  */
11837 1.5.0 16BIT
11838 _ACEOF
11839 if ac_fn_c_try_cpp "$LINENO"; then :
11840   DFNCPP="$CPP"
11841          break
11842 fi
11843 rm -f conftest.err conftest.i conftest.$ac_ext
11844    done
11845    CPP="$sav_CPP"
11846 fi
11847 rm -f conftest.err conftest.i conftest.$ac_ext
11848 if test -n "$DFNCPP"; then
11849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DFNCPP" >&5
11850 $as_echo "$DFNCPP" >&6; }
11851
11852 else
11853    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11855 as_fn_error 1 "not found
11856 See \`config.log' for more details" "$LINENO" 5; }
11857 fi
11858
11859 # Checks for header files.
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11861 $as_echo_n "checking for ANSI C header files... " >&6; }
11862 if ${ac_cv_header_stdc+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h.  */
11867 #include <stdlib.h>
11868 #include <stdarg.h>
11869 #include <string.h>
11870 #include <float.h>
11871
11872 int
11873 main ()
11874 {
11875
11876   ;
11877   return 0;
11878 }
11879 _ACEOF
11880 if ac_fn_c_try_compile "$LINENO"; then :
11881   ac_cv_header_stdc=yes
11882 else
11883   ac_cv_header_stdc=no
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886
11887 if test $ac_cv_header_stdc = yes; then
11888   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h.  */
11891 #include <string.h>
11892
11893 _ACEOF
11894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11895   $EGREP "memchr" >/dev/null 2>&1; then :
11896
11897 else
11898   ac_cv_header_stdc=no
11899 fi
11900 rm -f conftest*
11901
11902 fi
11903
11904 if test $ac_cv_header_stdc = yes; then
11905   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h.  */
11908 #include <stdlib.h>
11909
11910 _ACEOF
11911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11912   $EGREP "free" >/dev/null 2>&1; then :
11913
11914 else
11915   ac_cv_header_stdc=no
11916 fi
11917 rm -f conftest*
11918
11919 fi
11920
11921 if test $ac_cv_header_stdc = yes; then
11922   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11923   if test "$cross_compiling" = yes; then :
11924   :
11925 else
11926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h.  */
11928 #include <ctype.h>
11929 #include <stdlib.h>
11930 #if ((' ' & 0x0FF) == 0x020)
11931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11933 #else
11934 # define ISLOWER(c) \
11935                    (('a' <= (c) && (c) <= 'i') \
11936                      || ('j' <= (c) && (c) <= 'r') \
11937                      || ('s' <= (c) && (c) <= 'z'))
11938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11939 #endif
11940
11941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11942 int
11943 main ()
11944 {
11945   int i;
11946   for (i = 0; i < 256; i++)
11947     if (XOR (islower (i), ISLOWER (i))
11948         || toupper (i) != TOUPPER (i))
11949       return 2;
11950   return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_run "$LINENO"; then :
11954
11955 else
11956   ac_cv_header_stdc=no
11957 fi
11958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11959   conftest.$ac_objext conftest.beam conftest.$ac_ext
11960 fi
11961
11962 fi
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11965 $as_echo "$ac_cv_header_stdc" >&6; }
11966 if test $ac_cv_header_stdc = yes; then
11967
11968 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11969
11970 fi
11971
11972 for ac_header in malloc.h stdlib.h string.h strings.h
11973 do :
11974   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11977   cat >>confdefs.h <<_ACEOF
11978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11979 _ACEOF
11980
11981 fi
11982
11983 done
11984
11985
11986 # Checks for typedefs, structures, and compiler characteristics.
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11988 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11989 if ${ac_cv_c_const+:} false; then :
11990   $as_echo_n "(cached) " >&6
11991 else
11992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h.  */
11994
11995 int
11996 main ()
11997 {
11998 /* FIXME: Include the comments suggested by Paul. */
11999 #ifndef __cplusplus
12000   /* Ultrix mips cc rejects this.  */
12001   typedef int charset[2];
12002   const charset cs;
12003   /* SunOS 4.1.1 cc rejects this.  */
12004   char const *const *pcpcc;
12005   char **ppc;
12006   /* NEC SVR4.0.2 mips cc rejects this.  */
12007   struct point {int x, y;};
12008   static struct point const zero = {0,0};
12009   /* AIX XL C 1.02.0.0 rejects this.
12010      It does not let you subtract one const X* pointer from another in
12011      an arm of an if-expression whose if-part is not a constant
12012      expression */
12013   const char *g = "string";
12014   pcpcc = &g + (g ? g-g : 0);
12015   /* HPUX 7.0 cc rejects these. */
12016   ++pcpcc;
12017   ppc = (char**) pcpcc;
12018   pcpcc = (char const *const *) ppc;
12019   { /* SCO 3.2v4 cc rejects this.  */
12020     char *t;
12021     char const *s = 0 ? (char *) 0 : (char const *) 0;
12022
12023     *t++ = 0;
12024     if (s) return 0;
12025   }
12026   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12027     int x[] = {25, 17};
12028     const int *foo = &x[0];
12029     ++foo;
12030   }
12031   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12032     typedef const int *iptr;
12033     iptr p = 0;
12034     ++p;
12035   }
12036   { /* AIX XL C 1.02.0.0 rejects this saying
12037        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12038     struct s { int j; const int *ap[3]; };
12039     struct s *b; b->j = 5;
12040   }
12041   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12042     const int foo = 10;
12043     if (!foo) return 0;
12044   }
12045   return !cs[0] && !zero.x;
12046 #endif
12047
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 if ac_fn_c_try_compile "$LINENO"; then :
12053   ac_cv_c_const=yes
12054 else
12055   ac_cv_c_const=no
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12060 $as_echo "$ac_cv_c_const" >&6; }
12061 if test $ac_cv_c_const = no; then
12062
12063 $as_echo "#define const /**/" >>confdefs.h
12064
12065 fi
12066
12067 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12068 if test "x$ac_cv_type_size_t" = xyes; then :
12069
12070 else
12071
12072 cat >>confdefs.h <<_ACEOF
12073 #define size_t unsigned int
12074 _ACEOF
12075
12076 fi
12077
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12079 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12080 if ${ac_cv_struct_tm+:} false; then :
12081   $as_echo_n "(cached) " >&6
12082 else
12083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h.  */
12085 #include <sys/types.h>
12086 #include <time.h>
12087
12088 int
12089 main ()
12090 {
12091 struct tm tm;
12092                                      int *p = &tm.tm_sec;
12093                                      return !p;
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 if ac_fn_c_try_compile "$LINENO"; then :
12099   ac_cv_struct_tm=time.h
12100 else
12101   ac_cv_struct_tm=sys/time.h
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12106 $as_echo "$ac_cv_struct_tm" >&6; }
12107 if test $ac_cv_struct_tm = sys/time.h; then
12108
12109 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12110
12111 fi
12112
12113
12114 # Checks for library functions.
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12116 $as_echo_n "checking for working strtod... " >&6; }
12117 if ${ac_cv_func_strtod+:} false; then :
12118   $as_echo_n "(cached) " >&6
12119 else
12120   if test "$cross_compiling" = yes; then :
12121   ac_cv_func_strtod=no
12122 else
12123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125
12126 $ac_includes_default
12127 #ifndef strtod
12128 double strtod ();
12129 #endif
12130 int
12131 main()
12132 {
12133   {
12134     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12135     char *string = " +69";
12136     char *term;
12137     double value;
12138     value = strtod (string, &term);
12139     if (value != 69 || term != (string + 4))
12140       return 1;
12141   }
12142
12143   {
12144     /* Under Solaris 2.4, strtod returns the wrong value for the
12145        terminating character under some conditions.  */
12146     char *string = "NaN";
12147     char *term;
12148     strtod (string, &term);
12149     if (term != string && *(term - 1) == 0)
12150       return 1;
12151   }
12152   return 0;
12153 }
12154
12155 _ACEOF
12156 if ac_fn_c_try_run "$LINENO"; then :
12157   ac_cv_func_strtod=yes
12158 else
12159   ac_cv_func_strtod=no
12160 fi
12161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12162   conftest.$ac_objext conftest.beam conftest.$ac_ext
12163 fi
12164
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12167 $as_echo "$ac_cv_func_strtod" >&6; }
12168 if test $ac_cv_func_strtod = no; then
12169   case " $LIBOBJS " in
12170   *" strtod.$ac_objext "* ) ;;
12171   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12172  ;;
12173 esac
12174
12175 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12176 if test "x$ac_cv_func_pow" = xyes; then :
12177
12178 fi
12179
12180 if test $ac_cv_func_pow = no; then
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12182 $as_echo_n "checking for pow in -lm... " >&6; }
12183 if ${ac_cv_lib_m_pow+:} false; then :
12184   $as_echo_n "(cached) " >&6
12185 else
12186   ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lm  $LIBS"
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h.  */
12190
12191 /* Override any GCC internal prototype to avoid an error.
12192    Use char because int might match the return type of a GCC
12193    builtin and then its argument prototype would still apply.  */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 char pow ();
12198 int
12199 main ()
12200 {
12201 return pow ();
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 if ac_fn_c_try_link "$LINENO"; then :
12207   ac_cv_lib_m_pow=yes
12208 else
12209   ac_cv_lib_m_pow=no
12210 fi
12211 rm -f core conftest.err conftest.$ac_objext \
12212     conftest$ac_exeext conftest.$ac_ext
12213 LIBS=$ac_check_lib_save_LIBS
12214 fi
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12216 $as_echo "$ac_cv_lib_m_pow" >&6; }
12217 if test "x$ac_cv_lib_m_pow" = xyes; then :
12218   POW_LIB=-lm
12219 else
12220   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12221 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12222 fi
12223
12224 fi
12225
12226 fi
12227
12228 for ac_func in memset
12229 do :
12230   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12231 if test "x$ac_cv_func_memset" = xyes; then :
12232   cat >>confdefs.h <<_ACEOF
12233 #define HAVE_MEMSET 1
12234 _ACEOF
12235
12236 else
12237   as_fn_error $? "memset not found in libc" "$LINENO" 5
12238 fi
12239 done
12240
12241 for ac_func in pow
12242 do :
12243   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12244 if test "x$ac_cv_func_pow" = xyes; then :
12245   cat >>confdefs.h <<_ACEOF
12246 #define HAVE_POW 1
12247 _ACEOF
12248
12249 else
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12251 $as_echo_n "checking for pow in -lm... " >&6; }
12252 if ${ac_cv_lib_m_pow+:} false; then :
12253   $as_echo_n "(cached) " >&6
12254 else
12255   ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-lm  $LIBS"
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h.  */
12259
12260 /* Override any GCC internal prototype to avoid an error.
12261    Use char because int might match the return type of a GCC
12262    builtin and then its argument prototype would still apply.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char pow ();
12267 int
12268 main ()
12269 {
12270 return pow ();
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276   ac_cv_lib_m_pow=yes
12277 else
12278   ac_cv_lib_m_pow=no
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext \
12281     conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12285 $as_echo "$ac_cv_lib_m_pow" >&6; }
12286 if test "x$ac_cv_lib_m_pow" = xyes; then :
12287   cat >>confdefs.h <<_ACEOF
12288 #define HAVE_LIBM 1
12289 _ACEOF
12290
12291   LIBS="-lm $LIBS"
12292
12293 else
12294   as_fn_error $? "cannot find pow" "$LINENO" 5
12295 fi
12296
12297 fi
12298 done
12299
12300
12301 # Check whether --with-zlib-prefix was given.
12302 if test "${with_zlib_prefix+set}" = set; then :
12303   withval=$with_zlib_prefix; ZPREFIX=${withval}
12304 else
12305   ZPREFIX='z_'
12306 fi
12307
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12309 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12310 if ${ac_cv_lib_z_zlibVersion+:} false; then :
12311   $as_echo_n "(cached) " >&6
12312 else
12313   ac_check_lib_save_LIBS=$LIBS
12314 LIBS="-lz  $LIBS"
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h.  */
12317
12318 /* Override any GCC internal prototype to avoid an error.
12319    Use char because int might match the return type of a GCC
12320    builtin and then its argument prototype would still apply.  */
12321 #ifdef __cplusplus
12322 extern "C"
12323 #endif
12324 char zlibVersion ();
12325 int
12326 main ()
12327 {
12328 return zlibVersion ();
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 if ac_fn_c_try_link "$LINENO"; then :
12334   ac_cv_lib_z_zlibVersion=yes
12335 else
12336   ac_cv_lib_z_zlibVersion=no
12337 fi
12338 rm -f core conftest.err conftest.$ac_objext \
12339     conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12341 fi
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12343 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12344 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12345   cat >>confdefs.h <<_ACEOF
12346 #define HAVE_LIBZ 1
12347 _ACEOF
12348
12349   LIBS="-lz $LIBS"
12350
12351 else
12352   as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
12354 $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
12355 if eval \${$as_ac_Lib+:} false; then :
12356   $as_echo_n "(cached) " >&6
12357 else
12358   ac_check_lib_save_LIBS=$LIBS
12359 LIBS="-lz  $LIBS"
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h.  */
12362
12363 /* Override any GCC internal prototype to avoid an error.
12364    Use char because int might match the return type of a GCC
12365    builtin and then its argument prototype would still apply.  */
12366 #ifdef __cplusplus
12367 extern "C"
12368 #endif
12369 char ${ZPREFIX}zlibVersion ();
12370 int
12371 main ()
12372 {
12373 return ${ZPREFIX}zlibVersion ();
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 if ac_fn_c_try_link "$LINENO"; then :
12379   eval "$as_ac_Lib=yes"
12380 else
12381   eval "$as_ac_Lib=no"
12382 fi
12383 rm -f core conftest.err conftest.$ac_objext \
12384     conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12386 fi
12387 eval ac_res=\$$as_ac_Lib
12388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12389 $as_echo "$ac_res" >&6; }
12390 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12391   cat >>confdefs.h <<_ACEOF
12392 #define HAVE_LIBZ 1
12393 _ACEOF
12394
12395   LIBS="-lz $LIBS"
12396
12397 else
12398   as_fn_error $? "zlib not installed" "$LINENO" 5
12399 fi
12400
12401 fi
12402
12403
12404
12405 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
12406 LIBPNG_DEFINES=$LIBPNG_DEFINES
12407
12408
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12410 $as_echo_n "checking if libraries can be versioned... " >&6; }
12411 # Special case for PE/COFF platforms: ld reports
12412 # support for version-script, but doesn't actually
12413 # DO anything with it.
12414 case $host in
12415 *cygwin* | *mingw32* | *interix* )
12416     have_ld_version_script=no
12417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12419 ;;
12420 * )
12421 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12422 if test "$GLD"; then
12423     have_ld_version_script=yes
12424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12425 $as_echo "yes" >&6; }
12426 else
12427     have_ld_version_script=no
12428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12430     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12431 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12432 fi
12433 ;;
12434 esac
12435
12436  if test "$have_ld_version_script" = "yes"; then
12437   HAVE_LD_VERSION_SCRIPT_TRUE=
12438   HAVE_LD_VERSION_SCRIPT_FALSE='#'
12439 else
12440   HAVE_LD_VERSION_SCRIPT_TRUE='#'
12441   HAVE_LD_VERSION_SCRIPT_FALSE=
12442 fi
12443
12444
12445 if test "$have_ld_version_script" = "yes"; then
12446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12447 $as_echo_n "checking for symbol prefix... " >&6; }
12448     SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12449                    | ${CPP-${CC-gcc} -E} - 2>&1 \
12450                    | ${EGREP-grep} "^PREFIX=" \
12451                    | ${SED-sed} "s:^PREFIX=::"`
12452
12453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12454 $as_echo "$SYMBOL_PREFIX" >&6; }
12455 fi
12456
12457 # Substitutions for .in files
12458
12459
12460
12461
12462
12463 # Additional arguments (and substitutions)
12464 # Allow the pkg-config directory to be set
12465
12466 # Check whether --with-pkgconfigdir was given.
12467 if test "${with_pkgconfigdir+set}" = set; then :
12468   withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12469 else
12470   pkgconfigdir='${libdir}/pkgconfig'
12471 fi
12472
12473
12474
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12476 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12477
12478 # Make the *-config binary config scripts optional
12479
12480 # Check whether --with-binconfigs was given.
12481 if test "${with_binconfigs+set}" = set; then :
12482   withval=$with_binconfigs; if test "${withval}" = no; then
12483                 binconfigs=
12484                 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
12485 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12486         else
12487                 binconfigs='${binconfigs}'
12488         fi
12489 else
12490   binconfigs='${binconfigs}'
12491 fi
12492
12493
12494
12495 # Config files, substituting as above
12496 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
12497
12498 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
12499
12500
12501 cat >confcache <<\_ACEOF
12502 # This file is a shell script that caches the results of configure
12503 # tests run on this system so they can be shared between configure
12504 # scripts and configure runs, see configure's option --config-cache.
12505 # It is not useful on other systems.  If it contains results you don't
12506 # want to keep, you may remove or edit it.
12507 #
12508 # config.status only pays attention to the cache file if you give it
12509 # the --recheck option to rerun configure.
12510 #
12511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12513 # following values.
12514
12515 _ACEOF
12516
12517 # The following way of writing the cache mishandles newlines in values,
12518 # but we know of no workaround that is simple, portable, and efficient.
12519 # So, we kill variables containing newlines.
12520 # Ultrix sh set writes to stderr and can't be redirected directly,
12521 # and sets the high bit in the cache file unless we assign to the vars.
12522 (
12523   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12524     eval ac_val=\$$ac_var
12525     case $ac_val in #(
12526     *${as_nl}*)
12527       case $ac_var in #(
12528       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12530       esac
12531       case $ac_var in #(
12532       _ | IFS | as_nl) ;; #(
12533       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12534       *) { eval $ac_var=; unset $ac_var;} ;;
12535       esac ;;
12536     esac
12537   done
12538
12539   (set) 2>&1 |
12540     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12541     *${as_nl}ac_space=\ *)
12542       # `set' does not quote correctly, so add quotes: double-quote
12543       # substitution turns \\\\ into \\, and sed turns \\ into \.
12544       sed -n \
12545         "s/'/'\\\\''/g;
12546           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12547       ;; #(
12548     *)
12549       # `set' quotes correctly as required by POSIX, so do not add quotes.
12550       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12551       ;;
12552     esac |
12553     sort
12554 ) |
12555   sed '
12556      /^ac_cv_env_/b end
12557      t clear
12558      :clear
12559      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12560      t end
12561      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12562      :end' >>confcache
12563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12564   if test -w "$cache_file"; then
12565     if test "x$cache_file" != "x/dev/null"; then
12566       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12567 $as_echo "$as_me: updating cache $cache_file" >&6;}
12568       if test ! -f "$cache_file" || test -h "$cache_file"; then
12569         cat confcache >"$cache_file"
12570       else
12571         case $cache_file in #(
12572         */* | ?:*)
12573           mv -f confcache "$cache_file"$$ &&
12574           mv -f "$cache_file"$$ "$cache_file" ;; #(
12575         *)
12576           mv -f confcache "$cache_file" ;;
12577         esac
12578       fi
12579     fi
12580   else
12581     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12583   fi
12584 fi
12585 rm -f confcache
12586
12587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12588 # Let make expand exec_prefix.
12589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12590
12591 DEFS=-DHAVE_CONFIG_H
12592
12593 ac_libobjs=
12594 ac_ltlibobjs=
12595 U=
12596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12597   # 1. Remove the extension, and $U if already installed.
12598   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12599   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12600   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12601   #    will be set to the directory where LIBOBJS objects are built.
12602   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12603   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12604 done
12605 LIBOBJS=$ac_libobjs
12606
12607 LTLIBOBJS=$ac_ltlibobjs
12608
12609
12610  if test -n "$EXEEXT"; then
12611   am__EXEEXT_TRUE=
12612   am__EXEEXT_FALSE='#'
12613 else
12614   am__EXEEXT_TRUE='#'
12615   am__EXEEXT_FALSE=
12616 fi
12617
12618 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12619   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12621 fi
12622 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12623   as_fn_error $? "conditional \"AMDEP\" was never defined.
12624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12625 fi
12626 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12627   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12629 fi
12630 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
12631   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12633 fi
12634
12635 : "${CONFIG_STATUS=./config.status}"
12636 ac_write_fail=0
12637 ac_clean_files_save=$ac_clean_files
12638 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12640 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12641 as_write_fail=0
12642 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12643 #! $SHELL
12644 # Generated by $as_me.
12645 # Run this file to recreate the current configuration.
12646 # Compiler output produced by configure, useful for debugging
12647 # configure, is in config.log if it exists.
12648
12649 debug=false
12650 ac_cs_recheck=false
12651 ac_cs_silent=false
12652
12653 SHELL=\${CONFIG_SHELL-$SHELL}
12654 export SHELL
12655 _ASEOF
12656 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12657 ## -------------------- ##
12658 ## M4sh Initialization. ##
12659 ## -------------------- ##
12660
12661 # Be more Bourne compatible
12662 DUALCASE=1; export DUALCASE # for MKS sh
12663 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12664   emulate sh
12665   NULLCMD=:
12666   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12667   # is contrary to our usage.  Disable this feature.
12668   alias -g '${1+"$@"}'='"$@"'
12669   setopt NO_GLOB_SUBST
12670 else
12671   case `(set -o) 2>/dev/null` in #(
12672   *posix*) :
12673     set -o posix ;; #(
12674   *) :
12675      ;;
12676 esac
12677 fi
12678
12679
12680 as_nl='
12681 '
12682 export as_nl
12683 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12684 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12686 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12687 # Prefer a ksh shell builtin over an external printf program on Solaris,
12688 # but without wasting forks for bash or zsh.
12689 if test -z "$BASH_VERSION$ZSH_VERSION" \
12690     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12691   as_echo='print -r --'
12692   as_echo_n='print -rn --'
12693 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12694   as_echo='printf %s\n'
12695   as_echo_n='printf %s'
12696 else
12697   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12698     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12699     as_echo_n='/usr/ucb/echo -n'
12700   else
12701     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12702     as_echo_n_body='eval
12703       arg=$1;
12704       case $arg in #(
12705       *"$as_nl"*)
12706         expr "X$arg" : "X\\(.*\\)$as_nl";
12707         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12708       esac;
12709       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12710     '
12711     export as_echo_n_body
12712     as_echo_n='sh -c $as_echo_n_body as_echo'
12713   fi
12714   export as_echo_body
12715   as_echo='sh -c $as_echo_body as_echo'
12716 fi
12717
12718 # The user is always right.
12719 if test "${PATH_SEPARATOR+set}" != set; then
12720   PATH_SEPARATOR=:
12721   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12722     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12723       PATH_SEPARATOR=';'
12724   }
12725 fi
12726
12727
12728 # IFS
12729 # We need space, tab and new line, in precisely that order.  Quoting is
12730 # there to prevent editors from complaining about space-tab.
12731 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12732 # splitting by setting IFS to empty value.)
12733 IFS=" ""        $as_nl"
12734
12735 # Find who we are.  Look in the path if we contain no directory separator.
12736 as_myself=
12737 case $0 in #((
12738   *[\\/]* ) as_myself=$0 ;;
12739   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12741 do
12742   IFS=$as_save_IFS
12743   test -z "$as_dir" && as_dir=.
12744     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12745   done
12746 IFS=$as_save_IFS
12747
12748      ;;
12749 esac
12750 # We did not find ourselves, most probably we were run as `sh COMMAND'
12751 # in which case we are not to be found in the path.
12752 if test "x$as_myself" = x; then
12753   as_myself=$0
12754 fi
12755 if test ! -f "$as_myself"; then
12756   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12757   exit 1
12758 fi
12759
12760 # Unset variables that we do not need and which cause bugs (e.g. in
12761 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12762 # suppresses any "Segmentation fault" message there.  '((' could
12763 # trigger a bug in pdksh 5.2.14.
12764 for as_var in BASH_ENV ENV MAIL MAILPATH
12765 do eval test x\${$as_var+set} = xset \
12766   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12767 done
12768 PS1='$ '
12769 PS2='> '
12770 PS4='+ '
12771
12772 # NLS nuisances.
12773 LC_ALL=C
12774 export LC_ALL
12775 LANGUAGE=C
12776 export LANGUAGE
12777
12778 # CDPATH.
12779 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12780
12781
12782 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12783 # ----------------------------------------
12784 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12785 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12786 # script with STATUS, using 1 if that was 0.
12787 as_fn_error ()
12788 {
12789   as_status=$1; test $as_status -eq 0 && as_status=1
12790   if test "$4"; then
12791     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12792     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12793   fi
12794   $as_echo "$as_me: error: $2" >&2
12795   as_fn_exit $as_status
12796 } # as_fn_error
12797
12798
12799 # as_fn_set_status STATUS
12800 # -----------------------
12801 # Set $? to STATUS, without forking.
12802 as_fn_set_status ()
12803 {
12804   return $1
12805 } # as_fn_set_status
12806
12807 # as_fn_exit STATUS
12808 # -----------------
12809 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12810 as_fn_exit ()
12811 {
12812   set +e
12813   as_fn_set_status $1
12814   exit $1
12815 } # as_fn_exit
12816
12817 # as_fn_unset VAR
12818 # ---------------
12819 # Portably unset VAR.
12820 as_fn_unset ()
12821 {
12822   { eval $1=; unset $1;}
12823 }
12824 as_unset=as_fn_unset
12825 # as_fn_append VAR VALUE
12826 # ----------------------
12827 # Append the text in VALUE to the end of the definition contained in VAR. Take
12828 # advantage of any shell optimizations that allow amortized linear growth over
12829 # repeated appends, instead of the typical quadratic growth present in naive
12830 # implementations.
12831 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12832   eval 'as_fn_append ()
12833   {
12834     eval $1+=\$2
12835   }'
12836 else
12837   as_fn_append ()
12838   {
12839     eval $1=\$$1\$2
12840   }
12841 fi # as_fn_append
12842
12843 # as_fn_arith ARG...
12844 # ------------------
12845 # Perform arithmetic evaluation on the ARGs, and store the result in the
12846 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12847 # must be portable across $(()) and expr.
12848 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12849   eval 'as_fn_arith ()
12850   {
12851     as_val=$(( $* ))
12852   }'
12853 else
12854   as_fn_arith ()
12855   {
12856     as_val=`expr "$@" || test $? -eq 1`
12857   }
12858 fi # as_fn_arith
12859
12860
12861 if expr a : '\(a\)' >/dev/null 2>&1 &&
12862    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12863   as_expr=expr
12864 else
12865   as_expr=false
12866 fi
12867
12868 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12869   as_basename=basename
12870 else
12871   as_basename=false
12872 fi
12873
12874 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12875   as_dirname=dirname
12876 else
12877   as_dirname=false
12878 fi
12879
12880 as_me=`$as_basename -- "$0" ||
12881 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12882          X"$0" : 'X\(//\)$' \| \
12883          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12884 $as_echo X/"$0" |
12885     sed '/^.*\/\([^/][^/]*\)\/*$/{
12886             s//\1/
12887             q
12888           }
12889           /^X\/\(\/\/\)$/{
12890             s//\1/
12891             q
12892           }
12893           /^X\/\(\/\).*/{
12894             s//\1/
12895             q
12896           }
12897           s/.*/./; q'`
12898
12899 # Avoid depending upon Character Ranges.
12900 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12901 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12902 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12903 as_cr_digits='0123456789'
12904 as_cr_alnum=$as_cr_Letters$as_cr_digits
12905
12906 ECHO_C= ECHO_N= ECHO_T=
12907 case `echo -n x` in #(((((
12908 -n*)
12909   case `echo 'xy\c'` in
12910   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12911   xy)  ECHO_C='\c';;
12912   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12913        ECHO_T=' ';;
12914   esac;;
12915 *)
12916   ECHO_N='-n';;
12917 esac
12918
12919 rm -f conf$$ conf$$.exe conf$$.file
12920 if test -d conf$$.dir; then
12921   rm -f conf$$.dir/conf$$.file
12922 else
12923   rm -f conf$$.dir
12924   mkdir conf$$.dir 2>/dev/null
12925 fi
12926 if (echo >conf$$.file) 2>/dev/null; then
12927   if ln -s conf$$.file conf$$ 2>/dev/null; then
12928     as_ln_s='ln -s'
12929     # ... but there are two gotchas:
12930     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12931     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12932     # In both cases, we have to default to `cp -p'.
12933     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12934       as_ln_s='cp -p'
12935   elif ln conf$$.file conf$$ 2>/dev/null; then
12936     as_ln_s=ln
12937   else
12938     as_ln_s='cp -p'
12939   fi
12940 else
12941   as_ln_s='cp -p'
12942 fi
12943 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12944 rmdir conf$$.dir 2>/dev/null
12945
12946
12947 # as_fn_mkdir_p
12948 # -------------
12949 # Create "$as_dir" as a directory, including parents if necessary.
12950 as_fn_mkdir_p ()
12951 {
12952
12953   case $as_dir in #(
12954   -*) as_dir=./$as_dir;;
12955   esac
12956   test -d "$as_dir" || eval $as_mkdir_p || {
12957     as_dirs=
12958     while :; do
12959       case $as_dir in #(
12960       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12961       *) as_qdir=$as_dir;;
12962       esac
12963       as_dirs="'$as_qdir' $as_dirs"
12964       as_dir=`$as_dirname -- "$as_dir" ||
12965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12966          X"$as_dir" : 'X\(//\)[^/]' \| \
12967          X"$as_dir" : 'X\(//\)$' \| \
12968          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12969 $as_echo X"$as_dir" |
12970     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12971             s//\1/
12972             q
12973           }
12974           /^X\(\/\/\)[^/].*/{
12975             s//\1/
12976             q
12977           }
12978           /^X\(\/\/\)$/{
12979             s//\1/
12980             q
12981           }
12982           /^X\(\/\).*/{
12983             s//\1/
12984             q
12985           }
12986           s/.*/./; q'`
12987       test -d "$as_dir" && break
12988     done
12989     test -z "$as_dirs" || eval "mkdir $as_dirs"
12990   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12991
12992
12993 } # as_fn_mkdir_p
12994 if mkdir -p . 2>/dev/null; then
12995   as_mkdir_p='mkdir -p "$as_dir"'
12996 else
12997   test -d ./-p && rmdir ./-p
12998   as_mkdir_p=false
12999 fi
13000
13001 if test -x / >/dev/null 2>&1; then
13002   as_test_x='test -x'
13003 else
13004   if ls -dL / >/dev/null 2>&1; then
13005     as_ls_L_option=L
13006   else
13007     as_ls_L_option=
13008   fi
13009   as_test_x='
13010     eval sh -c '\''
13011       if test -d "$1"; then
13012         test -d "$1/.";
13013       else
13014         case $1 in #(
13015         -*)set "./$1";;
13016         esac;
13017         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13018         ???[sx]*):;;*)false;;esac;fi
13019     '\'' sh
13020   '
13021 fi
13022 as_executable_p=$as_test_x
13023
13024 # Sed expression to map a string onto a valid CPP name.
13025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13026
13027 # Sed expression to map a string onto a valid variable name.
13028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13029
13030
13031 exec 6>&1
13032 ## ----------------------------------- ##
13033 ## Main body of $CONFIG_STATUS script. ##
13034 ## ----------------------------------- ##
13035 _ASEOF
13036 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13037
13038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13039 # Save the log message, to keep $0 and so on meaningful, and to
13040 # report actual input values of CONFIG_FILES etc. instead of their
13041 # values after options handling.
13042 ac_log="
13043 This file was extended by libpng $as_me 1.5.2, which was
13044 generated by GNU Autoconf 2.68.  Invocation command line was
13045
13046   CONFIG_FILES    = $CONFIG_FILES
13047   CONFIG_HEADERS  = $CONFIG_HEADERS
13048   CONFIG_LINKS    = $CONFIG_LINKS
13049   CONFIG_COMMANDS = $CONFIG_COMMANDS
13050   $ $0 $@
13051
13052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13053 "
13054
13055 _ACEOF
13056
13057 case $ac_config_files in *"
13058 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13059 esac
13060
13061 case $ac_config_headers in *"
13062 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13063 esac
13064
13065
13066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13067 # Files that config.status was made for.
13068 config_files="$ac_config_files"
13069 config_headers="$ac_config_headers"
13070 config_commands="$ac_config_commands"
13071
13072 _ACEOF
13073
13074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13075 ac_cs_usage="\
13076 \`$as_me' instantiates files and other configuration actions
13077 from templates according to the current configuration.  Unless the files
13078 and actions are specified as TAGs, all are instantiated by default.
13079
13080 Usage: $0 [OPTION]... [TAG]...
13081
13082   -h, --help       print this help, then exit
13083   -V, --version    print version number and configuration settings, then exit
13084       --config     print configuration, then exit
13085   -q, --quiet, --silent
13086                    do not print progress messages
13087   -d, --debug      don't remove temporary files
13088       --recheck    update $as_me by reconfiguring in the same conditions
13089       --file=FILE[:TEMPLATE]
13090                    instantiate the configuration file FILE
13091       --header=FILE[:TEMPLATE]
13092                    instantiate the configuration header FILE
13093
13094 Configuration files:
13095 $config_files
13096
13097 Configuration headers:
13098 $config_headers
13099
13100 Configuration commands:
13101 $config_commands
13102
13103 Report bugs to <png-mng-implement@lists.sourceforge.net>."
13104
13105 _ACEOF
13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13108 ac_cs_version="\\
13109 libpng config.status 1.5.2
13110 configured by $0, generated by GNU Autoconf 2.68,
13111   with options \\"\$ac_cs_config\\"
13112
13113 Copyright (C) 2010 Free Software Foundation, Inc.
13114 This config.status script is free software; the Free Software Foundation
13115 gives unlimited permission to copy, distribute and modify it."
13116
13117 ac_pwd='$ac_pwd'
13118 srcdir='$srcdir'
13119 INSTALL='$INSTALL'
13120 MKDIR_P='$MKDIR_P'
13121 AWK='$AWK'
13122 test -n "\$AWK" || AWK=awk
13123 _ACEOF
13124
13125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13126 # The default lists apply if the user does not specify any file.
13127 ac_need_defaults=:
13128 while test $# != 0
13129 do
13130   case $1 in
13131   --*=?*)
13132     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13133     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13134     ac_shift=:
13135     ;;
13136   --*=)
13137     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13138     ac_optarg=
13139     ac_shift=:
13140     ;;
13141   *)
13142     ac_option=$1
13143     ac_optarg=$2
13144     ac_shift=shift
13145     ;;
13146   esac
13147
13148   case $ac_option in
13149   # Handling of the options.
13150   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13151     ac_cs_recheck=: ;;
13152   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13153     $as_echo "$ac_cs_version"; exit ;;
13154   --config | --confi | --conf | --con | --co | --c )
13155     $as_echo "$ac_cs_config"; exit ;;
13156   --debug | --debu | --deb | --de | --d | -d )
13157     debug=: ;;
13158   --file | --fil | --fi | --f )
13159     $ac_shift
13160     case $ac_optarg in
13161     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13162     '') as_fn_error $? "missing file argument" ;;
13163     esac
13164     as_fn_append CONFIG_FILES " '$ac_optarg'"
13165     ac_need_defaults=false;;
13166   --header | --heade | --head | --hea )
13167     $ac_shift
13168     case $ac_optarg in
13169     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13170     esac
13171     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13172     ac_need_defaults=false;;
13173   --he | --h)
13174     # Conflict between --help and --header
13175     as_fn_error $? "ambiguous option: \`$1'
13176 Try \`$0 --help' for more information.";;
13177   --help | --hel | -h )
13178     $as_echo "$ac_cs_usage"; exit ;;
13179   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13180   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13181     ac_cs_silent=: ;;
13182
13183   # This is an error.
13184   -*) as_fn_error $? "unrecognized option: \`$1'
13185 Try \`$0 --help' for more information." ;;
13186
13187   *) as_fn_append ac_config_targets " $1"
13188      ac_need_defaults=false ;;
13189
13190   esac
13191   shift
13192 done
13193
13194 ac_configure_extra_args=
13195
13196 if $ac_cs_silent; then
13197   exec 6>/dev/null
13198   ac_configure_extra_args="$ac_configure_extra_args --silent"
13199 fi
13200
13201 _ACEOF
13202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13203 if \$ac_cs_recheck; then
13204   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13205   shift
13206   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13207   CONFIG_SHELL='$SHELL'
13208   export CONFIG_SHELL
13209   exec "\$@"
13210 fi
13211
13212 _ACEOF
13213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13214 exec 5>>config.log
13215 {
13216   echo
13217   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13218 ## Running $as_me. ##
13219 _ASBOX
13220   $as_echo "$ac_log"
13221 } >&5
13222
13223 _ACEOF
13224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13225 #
13226 # INIT-COMMANDS
13227 #
13228 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13229
13230
13231 # The HP-UX ksh and POSIX shell print the target directory to stdout
13232 # if CDPATH is set.
13233 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13234
13235 sed_quote_subst='$sed_quote_subst'
13236 double_quote_subst='$double_quote_subst'
13237 delay_variable_subst='$delay_variable_subst'
13238 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13239 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13240 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13241 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13242 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13243 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13244 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13245 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13246 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13247 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13248 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13249 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13250 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13251 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13252 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13253 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13254 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13255 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13256 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13257 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13258 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13259 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13260 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13261 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13262 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13263 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13264 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13265 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13266 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13267 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13268 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13269 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13270 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13271 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13272 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13273 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13274 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13275 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13276 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13277 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13278 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13279 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13280 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13281 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13282 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13283 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13284 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13285 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13286 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13287 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13288 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13289 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13290 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13291 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13292 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13293 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13294 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"`'
13295 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13296 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13297 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13298 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13299 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13300 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13301 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13302 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13303 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13304 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13305 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13306 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13307 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13308 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13309 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13310 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13311 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13312 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13313 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13314 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13315 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13316 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13317 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13318 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13319 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13320 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13321 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13322 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13323 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13324 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13325 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13326 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13327 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13328 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13329 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13330 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13331 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13332 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13333 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13334 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13335 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13336 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13337 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13338 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13339 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13340 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13341 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13342 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13343 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13344 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13345 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13346 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13347 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13348 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13349 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13350 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13351 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13352 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13353 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13354 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13355 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13356 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13357 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13358 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13359 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13360 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13361 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13362 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13363 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13364 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13365 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13366 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13367 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13368 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13369
13370 LTCC='$LTCC'
13371 LTCFLAGS='$LTCFLAGS'
13372 compiler='$compiler_DEFAULT'
13373
13374 # A function that is used when there is no print builtin or printf.
13375 func_fallback_echo ()
13376 {
13377   eval 'cat <<_LTECHO_EOF
13378 \$1
13379 _LTECHO_EOF'
13380 }
13381
13382 # Quote evaled strings.
13383 for var in SED \
13384 GREP \
13385 EGREP \
13386 FGREP \
13387 SHELL \
13388 ECHO \
13389 LD \
13390 AS \
13391 DLLTOOL \
13392 OBJDUMP \
13393 NM \
13394 LN_S \
13395 lt_SP2NL \
13396 lt_NL2SP \
13397 reload_flag \
13398 deplibs_check_method \
13399 file_magic_cmd \
13400 file_magic_glob \
13401 want_nocaseglob \
13402 sharedlib_from_linklib_cmd \
13403 AR \
13404 AR_FLAGS \
13405 archiver_list_spec \
13406 STRIP \
13407 RANLIB \
13408 CC \
13409 CFLAGS \
13410 compiler \
13411 lt_cv_sys_global_symbol_pipe \
13412 lt_cv_sys_global_symbol_to_cdecl \
13413 lt_cv_sys_global_symbol_to_c_name_address \
13414 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13415 nm_file_list_spec \
13416 lt_prog_compiler_no_builtin_flag \
13417 lt_prog_compiler_pic \
13418 lt_prog_compiler_wl \
13419 lt_prog_compiler_static \
13420 lt_cv_prog_compiler_c_o \
13421 need_locks \
13422 MANIFEST_TOOL \
13423 DSYMUTIL \
13424 NMEDIT \
13425 LIPO \
13426 OTOOL \
13427 OTOOL64 \
13428 shrext_cmds \
13429 export_dynamic_flag_spec \
13430 whole_archive_flag_spec \
13431 compiler_needs_object \
13432 with_gnu_ld \
13433 allow_undefined_flag \
13434 no_undefined_flag \
13435 hardcode_libdir_flag_spec \
13436 hardcode_libdir_flag_spec_ld \
13437 hardcode_libdir_separator \
13438 exclude_expsyms \
13439 include_expsyms \
13440 file_list_spec \
13441 variables_saved_for_relink \
13442 libname_spec \
13443 library_names_spec \
13444 soname_spec \
13445 install_override_mode \
13446 finish_eval \
13447 old_striplib \
13448 striplib; do
13449     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13450     *[\\\\\\\`\\"\\\$]*)
13451       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13452       ;;
13453     *)
13454       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13455       ;;
13456     esac
13457 done
13458
13459 # Double-quote double-evaled strings.
13460 for var in reload_cmds \
13461 old_postinstall_cmds \
13462 old_postuninstall_cmds \
13463 old_archive_cmds \
13464 extract_expsyms_cmds \
13465 old_archive_from_new_cmds \
13466 old_archive_from_expsyms_cmds \
13467 archive_cmds \
13468 archive_expsym_cmds \
13469 module_cmds \
13470 module_expsym_cmds \
13471 export_symbols_cmds \
13472 prelink_cmds \
13473 postlink_cmds \
13474 postinstall_cmds \
13475 postuninstall_cmds \
13476 finish_cmds \
13477 sys_lib_search_path_spec \
13478 sys_lib_dlsearch_path_spec; do
13479     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13480     *[\\\\\\\`\\"\\\$]*)
13481       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13482       ;;
13483     *)
13484       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13485       ;;
13486     esac
13487 done
13488
13489 ac_aux_dir='$ac_aux_dir'
13490 xsi_shell='$xsi_shell'
13491 lt_shell_append='$lt_shell_append'
13492
13493 # See if we are running on zsh, and set the options which allow our
13494 # commands through without removal of \ escapes INIT.
13495 if test -n "\${ZSH_VERSION+set}" ; then
13496    setopt NO_GLOB_SUBST
13497 fi
13498
13499
13500     PACKAGE='$PACKAGE'
13501     VERSION='$VERSION'
13502     TIMESTAMP='$TIMESTAMP'
13503     RM='$RM'
13504     ofile='$ofile'
13505
13506
13507
13508
13509 _ACEOF
13510
13511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13512
13513 # Handling of arguments.
13514 for ac_config_target in $ac_config_targets
13515 do
13516   case $ac_config_target in
13517     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13518     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13519     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13520     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13521     "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
13522     "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
13523
13524   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13525   esac
13526 done
13527
13528
13529 # If the user did not use the arguments to specify the items to instantiate,
13530 # then the envvar interface is used.  Set only those that are not.
13531 # We use the long form for the default assignment because of an extremely
13532 # bizarre bug on SunOS 4.1.3.
13533 if $ac_need_defaults; then
13534   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13535   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13536   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13537 fi
13538
13539 # Have a temporary directory for convenience.  Make it in the build tree
13540 # simply because there is no reason against having it here, and in addition,
13541 # creating and moving files from /tmp can sometimes cause problems.
13542 # Hook for its removal unless debugging.
13543 # Note that there is a small window in which the directory will not be cleaned:
13544 # after its creation but before its name has been assigned to `$tmp'.
13545 $debug ||
13546 {
13547   tmp= ac_tmp=
13548   trap 'exit_status=$?
13549   : "${ac_tmp:=$tmp}"
13550   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13551 ' 0
13552   trap 'as_fn_exit 1' 1 2 13 15
13553 }
13554 # Create a (secure) tmp directory for tmp files.
13555
13556 {
13557   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13558   test -d "$tmp"
13559 }  ||
13560 {
13561   tmp=./conf$$-$RANDOM
13562   (umask 077 && mkdir "$tmp")
13563 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13564 ac_tmp=$tmp
13565
13566 # Set up the scripts for CONFIG_FILES section.
13567 # No need to generate them if there are no CONFIG_FILES.
13568 # This happens for instance with `./config.status config.h'.
13569 if test -n "$CONFIG_FILES"; then
13570
13571
13572 ac_cr=`echo X | tr X '\015'`
13573 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13574 # But we know of no other shell where ac_cr would be empty at this
13575 # point, so we can use a bashism as a fallback.
13576 if test "x$ac_cr" = x; then
13577   eval ac_cr=\$\'\\r\'
13578 fi
13579 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13580 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13581   ac_cs_awk_cr='\\r'
13582 else
13583   ac_cs_awk_cr=$ac_cr
13584 fi
13585
13586 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13587 _ACEOF
13588
13589
13590 {
13591   echo "cat >conf$$subs.awk <<_ACEOF" &&
13592   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13593   echo "_ACEOF"
13594 } >conf$$subs.sh ||
13595   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13596 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13597 ac_delim='%!_!# '
13598 for ac_last_try in false false false false false :; do
13599   . ./conf$$subs.sh ||
13600     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13601
13602   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13603   if test $ac_delim_n = $ac_delim_num; then
13604     break
13605   elif $ac_last_try; then
13606     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13607   else
13608     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13609   fi
13610 done
13611 rm -f conf$$subs.sh
13612
13613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13614 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13615 _ACEOF
13616 sed -n '
13617 h
13618 s/^/S["/; s/!.*/"]=/
13619 p
13620 g
13621 s/^[^!]*!//
13622 :repl
13623 t repl
13624 s/'"$ac_delim"'$//
13625 t delim
13626 :nl
13627 h
13628 s/\(.\{148\}\)..*/\1/
13629 t more1
13630 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13631 p
13632 n
13633 b repl
13634 :more1
13635 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13636 p
13637 g
13638 s/.\{148\}//
13639 t nl
13640 :delim
13641 h
13642 s/\(.\{148\}\)..*/\1/
13643 t more2
13644 s/["\\]/\\&/g; s/^/"/; s/$/"/
13645 p
13646 b
13647 :more2
13648 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13649 p
13650 g
13651 s/.\{148\}//
13652 t delim
13653 ' <conf$$subs.awk | sed '
13654 /^[^""]/{
13655   N
13656   s/\n//
13657 }
13658 ' >>$CONFIG_STATUS || ac_write_fail=1
13659 rm -f conf$$subs.awk
13660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13661 _ACAWK
13662 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13663   for (key in S) S_is_set[key] = 1
13664   FS = "\a"
13665
13666 }
13667 {
13668   line = $ 0
13669   nfields = split(line, field, "@")
13670   substed = 0
13671   len = length(field[1])
13672   for (i = 2; i < nfields; i++) {
13673     key = field[i]
13674     keylen = length(key)
13675     if (S_is_set[key]) {
13676       value = S[key]
13677       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13678       len += length(value) + length(field[++i])
13679       substed = 1
13680     } else
13681       len += 1 + keylen
13682   }
13683
13684   print line
13685 }
13686
13687 _ACAWK
13688 _ACEOF
13689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13690 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13691   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13692 else
13693   cat
13694 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13695   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13696 _ACEOF
13697
13698 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13699 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13700 # trailing colons and then remove the whole line if VPATH becomes empty
13701 # (actually we leave an empty line to preserve line numbers).
13702 if test "x$srcdir" = x.; then
13703   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13704 h
13705 s///
13706 s/^/:/
13707 s/[      ]*$/:/
13708 s/:\$(srcdir):/:/g
13709 s/:\${srcdir}:/:/g
13710 s/:@srcdir@:/:/g
13711 s/^:*//
13712 s/:*$//
13713 x
13714 s/\(=[   ]*\).*/\1/
13715 G
13716 s/\n//
13717 s/^[^=]*=[       ]*$//
13718 }'
13719 fi
13720
13721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13722 fi # test -n "$CONFIG_FILES"
13723
13724 # Set up the scripts for CONFIG_HEADERS section.
13725 # No need to generate them if there are no CONFIG_HEADERS.
13726 # This happens for instance with `./config.status Makefile'.
13727 if test -n "$CONFIG_HEADERS"; then
13728 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13729 BEGIN {
13730 _ACEOF
13731
13732 # Transform confdefs.h into an awk script `defines.awk', embedded as
13733 # here-document in config.status, that substitutes the proper values into
13734 # config.h.in to produce config.h.
13735
13736 # Create a delimiter string that does not exist in confdefs.h, to ease
13737 # handling of long lines.
13738 ac_delim='%!_!# '
13739 for ac_last_try in false false :; do
13740   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13741   if test -z "$ac_tt"; then
13742     break
13743   elif $ac_last_try; then
13744     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13745   else
13746     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13747   fi
13748 done
13749
13750 # For the awk script, D is an array of macro values keyed by name,
13751 # likewise P contains macro parameters if any.  Preserve backslash
13752 # newline sequences.
13753
13754 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13755 sed -n '
13756 s/.\{148\}/&'"$ac_delim"'/g
13757 t rset
13758 :rset
13759 s/^[     ]*#[    ]*define[       ][      ]*/ /
13760 t def
13761 d
13762 :def
13763 s/\\$//
13764 t bsnl
13765 s/["\\]/\\&/g
13766 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13767 D["\1"]=" \3"/p
13768 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13769 d
13770 :bsnl
13771 s/["\\]/\\&/g
13772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13773 D["\1"]=" \3\\\\\\n"\\/p
13774 t cont
13775 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13776 t cont
13777 d
13778 :cont
13779 n
13780 s/.\{148\}/&'"$ac_delim"'/g
13781 t clear
13782 :clear
13783 s/\\$//
13784 t bsnlc
13785 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13786 d
13787 :bsnlc
13788 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13789 b cont
13790 ' <confdefs.h | sed '
13791 s/'"$ac_delim"'/"\\\
13792 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13793
13794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13795   for (key in D) D_is_set[key] = 1
13796   FS = "\a"
13797 }
13798 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13799   line = \$ 0
13800   split(line, arg, " ")
13801   if (arg[1] == "#") {
13802     defundef = arg[2]
13803     mac1 = arg[3]
13804   } else {
13805     defundef = substr(arg[1], 2)
13806     mac1 = arg[2]
13807   }
13808   split(mac1, mac2, "(") #)
13809   macro = mac2[1]
13810   prefix = substr(line, 1, index(line, defundef) - 1)
13811   if (D_is_set[macro]) {
13812     # Preserve the white space surrounding the "#".
13813     print prefix "define", macro P[macro] D[macro]
13814     next
13815   } else {
13816     # Replace #undef with comments.  This is necessary, for example,
13817     # in the case of _POSIX_SOURCE, which is predefined and required
13818     # on some systems where configure will not decide to define it.
13819     if (defundef == "undef") {
13820       print "/*", prefix defundef, macro, "*/"
13821       next
13822     }
13823   }
13824 }
13825 { print }
13826 _ACAWK
13827 _ACEOF
13828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13829   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13830 fi # test -n "$CONFIG_HEADERS"
13831
13832
13833 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13834 shift
13835 for ac_tag
13836 do
13837   case $ac_tag in
13838   :[FHLC]) ac_mode=$ac_tag; continue;;
13839   esac
13840   case $ac_mode$ac_tag in
13841   :[FHL]*:*);;
13842   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13843   :[FH]-) ac_tag=-:-;;
13844   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13845   esac
13846   ac_save_IFS=$IFS
13847   IFS=:
13848   set x $ac_tag
13849   IFS=$ac_save_IFS
13850   shift
13851   ac_file=$1
13852   shift
13853
13854   case $ac_mode in
13855   :L) ac_source=$1;;
13856   :[FH])
13857     ac_file_inputs=
13858     for ac_f
13859     do
13860       case $ac_f in
13861       -) ac_f="$ac_tmp/stdin";;
13862       *) # Look for the file first in the build tree, then in the source tree
13863          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13864          # because $ac_f cannot contain `:'.
13865          test -f "$ac_f" ||
13866            case $ac_f in
13867            [\\/$]*) false;;
13868            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13869            esac ||
13870            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13871       esac
13872       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13873       as_fn_append ac_file_inputs " '$ac_f'"
13874     done
13875
13876     # Let's still pretend it is `configure' which instantiates (i.e., don't
13877     # use $as_me), people would be surprised to read:
13878     #    /* config.h.  Generated by config.status.  */
13879     configure_input='Generated from '`
13880           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13881         `' by configure.'
13882     if test x"$ac_file" != x-; then
13883       configure_input="$ac_file.  $configure_input"
13884       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13885 $as_echo "$as_me: creating $ac_file" >&6;}
13886     fi
13887     # Neutralize special characters interpreted by sed in replacement strings.
13888     case $configure_input in #(
13889     *\&* | *\|* | *\\* )
13890        ac_sed_conf_input=`$as_echo "$configure_input" |
13891        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13892     *) ac_sed_conf_input=$configure_input;;
13893     esac
13894
13895     case $ac_tag in
13896     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13897       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13898     esac
13899     ;;
13900   esac
13901
13902   ac_dir=`$as_dirname -- "$ac_file" ||
13903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13904          X"$ac_file" : 'X\(//\)[^/]' \| \
13905          X"$ac_file" : 'X\(//\)$' \| \
13906          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13907 $as_echo X"$ac_file" |
13908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13909             s//\1/
13910             q
13911           }
13912           /^X\(\/\/\)[^/].*/{
13913             s//\1/
13914             q
13915           }
13916           /^X\(\/\/\)$/{
13917             s//\1/
13918             q
13919           }
13920           /^X\(\/\).*/{
13921             s//\1/
13922             q
13923           }
13924           s/.*/./; q'`
13925   as_dir="$ac_dir"; as_fn_mkdir_p
13926   ac_builddir=.
13927
13928 case "$ac_dir" in
13929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13930 *)
13931   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13932   # A ".." for each directory in $ac_dir_suffix.
13933   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13934   case $ac_top_builddir_sub in
13935   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13936   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13937   esac ;;
13938 esac
13939 ac_abs_top_builddir=$ac_pwd
13940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13941 # for backward compatibility:
13942 ac_top_builddir=$ac_top_build_prefix
13943
13944 case $srcdir in
13945   .)  # We are building in place.
13946     ac_srcdir=.
13947     ac_top_srcdir=$ac_top_builddir_sub
13948     ac_abs_top_srcdir=$ac_pwd ;;
13949   [\\/]* | ?:[\\/]* )  # Absolute name.
13950     ac_srcdir=$srcdir$ac_dir_suffix;
13951     ac_top_srcdir=$srcdir
13952     ac_abs_top_srcdir=$srcdir ;;
13953   *) # Relative name.
13954     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13955     ac_top_srcdir=$ac_top_build_prefix$srcdir
13956     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13957 esac
13958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13959
13960
13961   case $ac_mode in
13962   :F)
13963   #
13964   # CONFIG_FILE
13965   #
13966
13967   case $INSTALL in
13968   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13969   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13970   esac
13971   ac_MKDIR_P=$MKDIR_P
13972   case $MKDIR_P in
13973   [\\/$]* | ?:[\\/]* ) ;;
13974   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13975   esac
13976 _ACEOF
13977
13978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13979 # If the template does not know about datarootdir, expand it.
13980 # FIXME: This hack should be removed a few years after 2.60.
13981 ac_datarootdir_hack=; ac_datarootdir_seen=
13982 ac_sed_dataroot='
13983 /datarootdir/ {
13984   p
13985   q
13986 }
13987 /@datadir@/p
13988 /@docdir@/p
13989 /@infodir@/p
13990 /@localedir@/p
13991 /@mandir@/p'
13992 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13993 *datarootdir*) ac_datarootdir_seen=yes;;
13994 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13995   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13996 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13997 _ACEOF
13998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13999   ac_datarootdir_hack='
14000   s&@datadir@&$datadir&g
14001   s&@docdir@&$docdir&g
14002   s&@infodir@&$infodir&g
14003   s&@localedir@&$localedir&g
14004   s&@mandir@&$mandir&g
14005   s&\\\${datarootdir}&$datarootdir&g' ;;
14006 esac
14007 _ACEOF
14008
14009 # Neutralize VPATH when `$srcdir' = `.'.
14010 # Shell code in configure.ac might set extrasub.
14011 # FIXME: do we really want to maintain this feature?
14012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14013 ac_sed_extra="$ac_vpsub
14014 $extrasub
14015 _ACEOF
14016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14017 :t
14018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14019 s|@configure_input@|$ac_sed_conf_input|;t t
14020 s&@top_builddir@&$ac_top_builddir_sub&;t t
14021 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14022 s&@srcdir@&$ac_srcdir&;t t
14023 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14024 s&@top_srcdir@&$ac_top_srcdir&;t t
14025 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14026 s&@builddir@&$ac_builddir&;t t
14027 s&@abs_builddir@&$ac_abs_builddir&;t t
14028 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14029 s&@INSTALL@&$ac_INSTALL&;t t
14030 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14031 $ac_datarootdir_hack
14032 "
14033 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14034   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14035
14036 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14037   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14038   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14039       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14040   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14041 which seems to be undefined.  Please make sure it is defined" >&5
14042 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14043 which seems to be undefined.  Please make sure it is defined" >&2;}
14044
14045   rm -f "$ac_tmp/stdin"
14046   case $ac_file in
14047   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14048   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14049   esac \
14050   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14051  ;;
14052   :H)
14053   #
14054   # CONFIG_HEADER
14055   #
14056   if test x"$ac_file" != x-; then
14057     {
14058       $as_echo "/* $configure_input  */" \
14059       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14060     } >"$ac_tmp/config.h" \
14061       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14062     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14063       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14064 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14065     else
14066       rm -f "$ac_file"
14067       mv "$ac_tmp/config.h" "$ac_file" \
14068         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14069     fi
14070   else
14071     $as_echo "/* $configure_input  */" \
14072       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14073       || as_fn_error $? "could not create -" "$LINENO" 5
14074   fi
14075 # Compute "$ac_file"'s index in $config_headers.
14076 _am_arg="$ac_file"
14077 _am_stamp_count=1
14078 for _am_header in $config_headers :; do
14079   case $_am_header in
14080     $_am_arg | $_am_arg:* )
14081       break ;;
14082     * )
14083       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14084   esac
14085 done
14086 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14087 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14088          X"$_am_arg" : 'X\(//\)[^/]' \| \
14089          X"$_am_arg" : 'X\(//\)$' \| \
14090          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14091 $as_echo X"$_am_arg" |
14092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14093             s//\1/
14094             q
14095           }
14096           /^X\(\/\/\)[^/].*/{
14097             s//\1/
14098             q
14099           }
14100           /^X\(\/\/\)$/{
14101             s//\1/
14102             q
14103           }
14104           /^X\(\/\).*/{
14105             s//\1/
14106             q
14107           }
14108           s/.*/./; q'`/stamp-h$_am_stamp_count
14109  ;;
14110
14111   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14112 $as_echo "$as_me: executing $ac_file commands" >&6;}
14113  ;;
14114   esac
14115
14116
14117   case $ac_file$ac_mode in
14118     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14119   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14120   # are listed without --file.  Let's play safe and only enable the eval
14121   # if we detect the quoting.
14122   case $CONFIG_FILES in
14123   *\'*) eval set x "$CONFIG_FILES" ;;
14124   *)   set x $CONFIG_FILES ;;
14125   esac
14126   shift
14127   for mf
14128   do
14129     # Strip MF so we end up with the name of the file.
14130     mf=`echo "$mf" | sed -e 's/:.*$//'`
14131     # Check whether this is an Automake generated Makefile or not.
14132     # We used to match only the files named `Makefile.in', but
14133     # some people rename them; so instead we look at the file content.
14134     # Grep'ing the first line is not enough: some people post-process
14135     # each Makefile.in and add a new line on top of each file to say so.
14136     # Grep'ing the whole file is not good either: AIX grep has a line
14137     # limit of 2048, but all sed's we know have understand at least 4000.
14138     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14139       dirpart=`$as_dirname -- "$mf" ||
14140 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14141          X"$mf" : 'X\(//\)[^/]' \| \
14142          X"$mf" : 'X\(//\)$' \| \
14143          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14144 $as_echo X"$mf" |
14145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14146             s//\1/
14147             q
14148           }
14149           /^X\(\/\/\)[^/].*/{
14150             s//\1/
14151             q
14152           }
14153           /^X\(\/\/\)$/{
14154             s//\1/
14155             q
14156           }
14157           /^X\(\/\).*/{
14158             s//\1/
14159             q
14160           }
14161           s/.*/./; q'`
14162     else
14163       continue
14164     fi
14165     # Extract the definition of DEPDIR, am__include, and am__quote
14166     # from the Makefile without running `make'.
14167     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14168     test -z "$DEPDIR" && continue
14169     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14170     test -z "am__include" && continue
14171     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14172     # When using ansi2knr, U may be empty or an underscore; expand it
14173     U=`sed -n 's/^U = //p' < "$mf"`
14174     # Find all dependency output files, they are included files with
14175     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14176     # simplest approach to changing $(DEPDIR) to its actual value in the
14177     # expansion.
14178     for file in `sed -n "
14179       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14180          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14181       # Make sure the directory exists.
14182       test -f "$dirpart/$file" && continue
14183       fdir=`$as_dirname -- "$file" ||
14184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14185          X"$file" : 'X\(//\)[^/]' \| \
14186          X"$file" : 'X\(//\)$' \| \
14187          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14188 $as_echo X"$file" |
14189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14190             s//\1/
14191             q
14192           }
14193           /^X\(\/\/\)[^/].*/{
14194             s//\1/
14195             q
14196           }
14197           /^X\(\/\/\)$/{
14198             s//\1/
14199             q
14200           }
14201           /^X\(\/\).*/{
14202             s//\1/
14203             q
14204           }
14205           s/.*/./; q'`
14206       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14207       # echo "creating $dirpart/$file"
14208       echo '# dummy' > "$dirpart/$file"
14209     done
14210   done
14211 }
14212  ;;
14213     "libtool":C)
14214
14215     # See if we are running on zsh, and set the options which allow our
14216     # commands through without removal of \ escapes.
14217     if test -n "${ZSH_VERSION+set}" ; then
14218       setopt NO_GLOB_SUBST
14219     fi
14220
14221     cfgfile="${ofile}T"
14222     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14223     $RM "$cfgfile"
14224
14225     cat <<_LT_EOF >> "$cfgfile"
14226 #! $SHELL
14227
14228 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14229 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14231 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14232 #
14233 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14234 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14235 #                 Inc.
14236 #   Written by Gordon Matzigkeit, 1996
14237 #
14238 #   This file is part of GNU Libtool.
14239 #
14240 # GNU Libtool is free software; you can redistribute it and/or
14241 # modify it under the terms of the GNU General Public License as
14242 # published by the Free Software Foundation; either version 2 of
14243 # the License, or (at your option) any later version.
14244 #
14245 # As a special exception to the GNU General Public License,
14246 # if you distribute this file as part of a program or library that
14247 # is built using GNU Libtool, you may include this file under the
14248 # same distribution terms that you use for the rest of that program.
14249 #
14250 # GNU Libtool is distributed in the hope that it will be useful,
14251 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14252 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14253 # GNU General Public License for more details.
14254 #
14255 # You should have received a copy of the GNU General Public License
14256 # along with GNU Libtool; see the file COPYING.  If not, a copy
14257 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14258 # obtained by writing to the Free Software Foundation, Inc.,
14259 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14260
14261
14262 # The names of the tagged configurations supported by this script.
14263 available_tags=""
14264
14265 # ### BEGIN LIBTOOL CONFIG
14266
14267 # A sed program that does not truncate output.
14268 SED=$lt_SED
14269
14270 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14271 Xsed="\$SED -e 1s/^X//"
14272
14273 # A grep program that handles long lines.
14274 GREP=$lt_GREP
14275
14276 # An ERE matcher.
14277 EGREP=$lt_EGREP
14278
14279 # A literal string matcher.
14280 FGREP=$lt_FGREP
14281
14282 # Shell to use when invoking shell scripts.
14283 SHELL=$lt_SHELL
14284
14285 # An echo program that protects backslashes.
14286 ECHO=$lt_ECHO
14287
14288 # Which release of libtool.m4 was used?
14289 macro_version=$macro_version
14290 macro_revision=$macro_revision
14291
14292 # Assembler program.
14293 AS=$lt_AS
14294
14295 # DLL creation program.
14296 DLLTOOL=$lt_DLLTOOL
14297
14298 # Object dumper program.
14299 OBJDUMP=$lt_OBJDUMP
14300
14301 # Whether or not to build shared libraries.
14302 build_libtool_libs=$enable_shared
14303
14304 # Whether or not to build static libraries.
14305 build_old_libs=$enable_static
14306
14307 # What type of objects to build.
14308 pic_mode=$pic_mode
14309
14310 # Whether or not to optimize for fast installation.
14311 fast_install=$enable_fast_install
14312
14313 # The host system.
14314 host_alias=$host_alias
14315 host=$host
14316 host_os=$host_os
14317
14318 # The build system.
14319 build_alias=$build_alias
14320 build=$build
14321 build_os=$build_os
14322
14323 # A BSD- or MS-compatible name lister.
14324 NM=$lt_NM
14325
14326 # Whether we need soft or hard links.
14327 LN_S=$lt_LN_S
14328
14329 # What is the maximum length of a command?
14330 max_cmd_len=$max_cmd_len
14331
14332 # Object file suffix (normally "o").
14333 objext=$ac_objext
14334
14335 # Executable file suffix (normally "").
14336 exeext=$exeext
14337
14338 # whether the shell understands "unset".
14339 lt_unset=$lt_unset
14340
14341 # turn spaces into newlines.
14342 SP2NL=$lt_lt_SP2NL
14343
14344 # turn newlines into spaces.
14345 NL2SP=$lt_lt_NL2SP
14346
14347 # convert \$build file names to \$host format.
14348 to_host_file_cmd=$lt_cv_to_host_file_cmd
14349
14350 # convert \$build files to toolchain format.
14351 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14352
14353 # Method to check whether dependent libraries are shared objects.
14354 deplibs_check_method=$lt_deplibs_check_method
14355
14356 # Command to use when deplibs_check_method = "file_magic".
14357 file_magic_cmd=$lt_file_magic_cmd
14358
14359 # How to find potential files when deplibs_check_method = "file_magic".
14360 file_magic_glob=$lt_file_magic_glob
14361
14362 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14363 want_nocaseglob=$lt_want_nocaseglob
14364
14365 # Command to associate shared and link libraries.
14366 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14367
14368 # The archiver.
14369 AR=$lt_AR
14370
14371 # Flags to create an archive.
14372 AR_FLAGS=$lt_AR_FLAGS
14373
14374 # How to feed a file listing to the archiver.
14375 archiver_list_spec=$lt_archiver_list_spec
14376
14377 # A symbol stripping program.
14378 STRIP=$lt_STRIP
14379
14380 # Commands used to install an old-style archive.
14381 RANLIB=$lt_RANLIB
14382 old_postinstall_cmds=$lt_old_postinstall_cmds
14383 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14384
14385 # Whether to use a lock for old archive extraction.
14386 lock_old_archive_extraction=$lock_old_archive_extraction
14387
14388 # A C compiler.
14389 LTCC=$lt_CC
14390
14391 # LTCC compiler flags.
14392 LTCFLAGS=$lt_CFLAGS
14393
14394 # Take the output of nm and produce a listing of raw symbols and C names.
14395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14396
14397 # Transform the output of nm in a proper C declaration.
14398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14399
14400 # Transform the output of nm in a C name address pair.
14401 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14402
14403 # Transform the output of nm in a C name address pair when lib prefix is needed.
14404 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14405
14406 # Specify filename containing input files for \$NM.
14407 nm_file_list_spec=$lt_nm_file_list_spec
14408
14409 # The root where to search for dependent libraries,and in which our libraries should be installed.
14410 lt_sysroot=$lt_sysroot
14411
14412 # The name of the directory that contains temporary libtool files.
14413 objdir=$objdir
14414
14415 # Used to examine libraries when file_magic_cmd begins with "file".
14416 MAGIC_CMD=$MAGIC_CMD
14417
14418 # Must we lock files when doing compilation?
14419 need_locks=$lt_need_locks
14420
14421 # Manifest tool.
14422 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14423
14424 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14425 DSYMUTIL=$lt_DSYMUTIL
14426
14427 # Tool to change global to local symbols on Mac OS X.
14428 NMEDIT=$lt_NMEDIT
14429
14430 # Tool to manipulate fat objects and archives on Mac OS X.
14431 LIPO=$lt_LIPO
14432
14433 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14434 OTOOL=$lt_OTOOL
14435
14436 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14437 OTOOL64=$lt_OTOOL64
14438
14439 # Old archive suffix (normally "a").
14440 libext=$libext
14441
14442 # Shared library suffix (normally ".so").
14443 shrext_cmds=$lt_shrext_cmds
14444
14445 # The commands to extract the exported symbol list from a shared archive.
14446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14447
14448 # Variables whose values should be saved in libtool wrapper scripts and
14449 # restored at link time.
14450 variables_saved_for_relink=$lt_variables_saved_for_relink
14451
14452 # Do we need the "lib" prefix for modules?
14453 need_lib_prefix=$need_lib_prefix
14454
14455 # Do we need a version for libraries?
14456 need_version=$need_version
14457
14458 # Library versioning type.
14459 version_type=$version_type
14460
14461 # Shared library runtime path variable.
14462 runpath_var=$runpath_var
14463
14464 # Shared library path variable.
14465 shlibpath_var=$shlibpath_var
14466
14467 # Is shlibpath searched before the hard-coded library search path?
14468 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14469
14470 # Format of library name prefix.
14471 libname_spec=$lt_libname_spec
14472
14473 # List of archive names.  First name is the real one, the rest are links.
14474 # The last name is the one that the linker finds with -lNAME
14475 library_names_spec=$lt_library_names_spec
14476
14477 # The coded name of the library, if different from the real name.
14478 soname_spec=$lt_soname_spec
14479
14480 # Permission mode override for installation of shared libraries.
14481 install_override_mode=$lt_install_override_mode
14482
14483 # Command to use after installation of a shared archive.
14484 postinstall_cmds=$lt_postinstall_cmds
14485
14486 # Command to use after uninstallation of a shared archive.
14487 postuninstall_cmds=$lt_postuninstall_cmds
14488
14489 # Commands used to finish a libtool library installation in a directory.
14490 finish_cmds=$lt_finish_cmds
14491
14492 # As "finish_cmds", except a single script fragment to be evaled but
14493 # not shown.
14494 finish_eval=$lt_finish_eval
14495
14496 # Whether we should hardcode library paths into libraries.
14497 hardcode_into_libs=$hardcode_into_libs
14498
14499 # Compile-time system search path for libraries.
14500 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14501
14502 # Run-time system search path for libraries.
14503 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14504
14505 # Whether dlopen is supported.
14506 dlopen_support=$enable_dlopen
14507
14508 # Whether dlopen of programs is supported.
14509 dlopen_self=$enable_dlopen_self
14510
14511 # Whether dlopen of statically linked programs is supported.
14512 dlopen_self_static=$enable_dlopen_self_static
14513
14514 # Commands to strip libraries.
14515 old_striplib=$lt_old_striplib
14516 striplib=$lt_striplib
14517
14518
14519 # The linker used to build libraries.
14520 LD=$lt_LD
14521
14522 # How to create reloadable object files.
14523 reload_flag=$lt_reload_flag
14524 reload_cmds=$lt_reload_cmds
14525
14526 # Commands used to build an old-style archive.
14527 old_archive_cmds=$lt_old_archive_cmds
14528
14529 # A language specific compiler.
14530 CC=$lt_compiler
14531
14532 # Is the compiler the GNU compiler?
14533 with_gcc=$GCC
14534
14535 # Compiler flag to turn off builtin functions.
14536 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14537
14538 # Additional compiler flags for building library objects.
14539 pic_flag=$lt_lt_prog_compiler_pic
14540
14541 # How to pass a linker flag through the compiler.
14542 wl=$lt_lt_prog_compiler_wl
14543
14544 # Compiler flag to prevent dynamic linking.
14545 link_static_flag=$lt_lt_prog_compiler_static
14546
14547 # Does compiler simultaneously support -c and -o options?
14548 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14549
14550 # Whether or not to add -lc for building shared libraries.
14551 build_libtool_need_lc=$archive_cmds_need_lc
14552
14553 # Whether or not to disallow shared libs when runtime libs are static.
14554 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14555
14556 # Compiler flag to allow reflexive dlopens.
14557 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14558
14559 # Compiler flag to generate shared objects directly from archives.
14560 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14561
14562 # Whether the compiler copes with passing no objects directly.
14563 compiler_needs_object=$lt_compiler_needs_object
14564
14565 # Create an old-style archive from a shared archive.
14566 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14567
14568 # Create a temporary old-style archive to link instead of a shared archive.
14569 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14570
14571 # Commands used to build a shared archive.
14572 archive_cmds=$lt_archive_cmds
14573 archive_expsym_cmds=$lt_archive_expsym_cmds
14574
14575 # Commands used to build a loadable module if different from building
14576 # a shared archive.
14577 module_cmds=$lt_module_cmds
14578 module_expsym_cmds=$lt_module_expsym_cmds
14579
14580 # Whether we are building with GNU ld or not.
14581 with_gnu_ld=$lt_with_gnu_ld
14582
14583 # Flag that allows shared libraries with undefined symbols to be built.
14584 allow_undefined_flag=$lt_allow_undefined_flag
14585
14586 # Flag that enforces no undefined symbols.
14587 no_undefined_flag=$lt_no_undefined_flag
14588
14589 # Flag to hardcode \$libdir into a binary during linking.
14590 # This must work even if \$libdir does not exist
14591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14592
14593 # If ld is used when linking, flag to hardcode \$libdir into a binary
14594 # during linking.  This must work even if \$libdir does not exist.
14595 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14596
14597 # Whether we need a single "-rpath" flag with a separated argument.
14598 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14599
14600 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14601 # DIR into the resulting binary.
14602 hardcode_direct=$hardcode_direct
14603
14604 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14605 # DIR into the resulting binary and the resulting library dependency is
14606 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14607 # library is relocated.
14608 hardcode_direct_absolute=$hardcode_direct_absolute
14609
14610 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14611 # into the resulting binary.
14612 hardcode_minus_L=$hardcode_minus_L
14613
14614 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14615 # into the resulting binary.
14616 hardcode_shlibpath_var=$hardcode_shlibpath_var
14617
14618 # Set to "yes" if building a shared library automatically hardcodes DIR
14619 # into the library and all subsequent libraries and executables linked
14620 # against it.
14621 hardcode_automatic=$hardcode_automatic
14622
14623 # Set to yes if linker adds runtime paths of dependent libraries
14624 # to runtime path list.
14625 inherit_rpath=$inherit_rpath
14626
14627 # Whether libtool must link a program against all its dependency libraries.
14628 link_all_deplibs=$link_all_deplibs
14629
14630 # Set to "yes" if exported symbols are required.
14631 always_export_symbols=$always_export_symbols
14632
14633 # The commands to list exported symbols.
14634 export_symbols_cmds=$lt_export_symbols_cmds
14635
14636 # Symbols that should not be listed in the preloaded symbols.
14637 exclude_expsyms=$lt_exclude_expsyms
14638
14639 # Symbols that must always be exported.
14640 include_expsyms=$lt_include_expsyms
14641
14642 # Commands necessary for linking programs (against libraries) with templates.
14643 prelink_cmds=$lt_prelink_cmds
14644
14645 # Commands necessary for finishing linking programs.
14646 postlink_cmds=$lt_postlink_cmds
14647
14648 # Specify filename containing input files.
14649 file_list_spec=$lt_file_list_spec
14650
14651 # How to hardcode a shared library path into an executable.
14652 hardcode_action=$hardcode_action
14653
14654 # ### END LIBTOOL CONFIG
14655
14656 _LT_EOF
14657
14658   case $host_os in
14659   aix3*)
14660     cat <<\_LT_EOF >> "$cfgfile"
14661 # AIX sometimes has problems with the GCC collect2 program.  For some
14662 # reason, if we set the COLLECT_NAMES environment variable, the problems
14663 # vanish in a puff of smoke.
14664 if test "X${COLLECT_NAMES+set}" != Xset; then
14665   COLLECT_NAMES=
14666   export COLLECT_NAMES
14667 fi
14668 _LT_EOF
14669     ;;
14670   esac
14671
14672
14673 ltmain="$ac_aux_dir/ltmain.sh"
14674
14675
14676   # We use sed instead of cat because bash on DJGPP gets confused if
14677   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14678   # text mode, it properly converts lines to CR/LF.  This bash problem
14679   # is reportedly fixed, but why not run on old versions too?
14680   sed '$q' "$ltmain" >> "$cfgfile" \
14681      || (rm -f "$cfgfile"; exit 1)
14682
14683   if test x"$xsi_shell" = xyes; then
14684   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14685 func_dirname ()\
14686 {\
14687 \    case ${1} in\
14688 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14689 \      *  ) func_dirname_result="${3}" ;;\
14690 \    esac\
14691 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14692   && mv -f "$cfgfile.tmp" "$cfgfile" \
14693     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14694 test 0 -eq $? || _lt_function_replace_fail=:
14695
14696
14697   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14698 func_basename ()\
14699 {\
14700 \    func_basename_result="${1##*/}"\
14701 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14702   && mv -f "$cfgfile.tmp" "$cfgfile" \
14703     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14704 test 0 -eq $? || _lt_function_replace_fail=:
14705
14706
14707   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14708 func_dirname_and_basename ()\
14709 {\
14710 \    case ${1} in\
14711 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14712 \      *  ) func_dirname_result="${3}" ;;\
14713 \    esac\
14714 \    func_basename_result="${1##*/}"\
14715 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14716   && mv -f "$cfgfile.tmp" "$cfgfile" \
14717     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14718 test 0 -eq $? || _lt_function_replace_fail=:
14719
14720
14721   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14722 func_stripname ()\
14723 {\
14724 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14725 \    # positional parameters, so assign one to ordinary parameter first.\
14726 \    func_stripname_result=${3}\
14727 \    func_stripname_result=${func_stripname_result#"${1}"}\
14728 \    func_stripname_result=${func_stripname_result%"${2}"}\
14729 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14730   && mv -f "$cfgfile.tmp" "$cfgfile" \
14731     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14732 test 0 -eq $? || _lt_function_replace_fail=:
14733
14734
14735   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14736 func_split_long_opt ()\
14737 {\
14738 \    func_split_long_opt_name=${1%%=*}\
14739 \    func_split_long_opt_arg=${1#*=}\
14740 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14741   && mv -f "$cfgfile.tmp" "$cfgfile" \
14742     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14743 test 0 -eq $? || _lt_function_replace_fail=:
14744
14745
14746   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14747 func_split_short_opt ()\
14748 {\
14749 \    func_split_short_opt_arg=${1#??}\
14750 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14751 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14752   && mv -f "$cfgfile.tmp" "$cfgfile" \
14753     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14754 test 0 -eq $? || _lt_function_replace_fail=:
14755
14756
14757   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14758 func_lo2o ()\
14759 {\
14760 \    case ${1} in\
14761 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14762 \      *)    func_lo2o_result=${1} ;;\
14763 \    esac\
14764 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14765   && mv -f "$cfgfile.tmp" "$cfgfile" \
14766     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14767 test 0 -eq $? || _lt_function_replace_fail=:
14768
14769
14770   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14771 func_xform ()\
14772 {\
14773     func_xform_result=${1%.*}.lo\
14774 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14775   && mv -f "$cfgfile.tmp" "$cfgfile" \
14776     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14777 test 0 -eq $? || _lt_function_replace_fail=:
14778
14779
14780   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14781 func_arith ()\
14782 {\
14783     func_arith_result=$(( $* ))\
14784 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14785   && mv -f "$cfgfile.tmp" "$cfgfile" \
14786     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14787 test 0 -eq $? || _lt_function_replace_fail=:
14788
14789
14790   sed -e '/^func_len ()$/,/^} # func_len /c\
14791 func_len ()\
14792 {\
14793     func_len_result=${#1}\
14794 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14795   && mv -f "$cfgfile.tmp" "$cfgfile" \
14796     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14797 test 0 -eq $? || _lt_function_replace_fail=:
14798
14799 fi
14800
14801 if test x"$lt_shell_append" = xyes; then
14802   sed -e '/^func_append ()$/,/^} # func_append /c\
14803 func_append ()\
14804 {\
14805     eval "${1}+=\\${2}"\
14806 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14807   && mv -f "$cfgfile.tmp" "$cfgfile" \
14808     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14809 test 0 -eq $? || _lt_function_replace_fail=:
14810
14811
14812   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14813 func_append_quoted ()\
14814 {\
14815 \    func_quote_for_eval "${2}"\
14816 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14817 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14818   && mv -f "$cfgfile.tmp" "$cfgfile" \
14819     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14820 test 0 -eq $? || _lt_function_replace_fail=:
14821
14822
14823   # Save a `func_append' function call where possible by direct use of '+='
14824   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14825     && mv -f "$cfgfile.tmp" "$cfgfile" \
14826       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14827   test 0 -eq $? || _lt_function_replace_fail=:
14828 else
14829   # Save a `func_append' function call even when '+=' is not available
14830   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14831     && mv -f "$cfgfile.tmp" "$cfgfile" \
14832       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14833   test 0 -eq $? || _lt_function_replace_fail=:
14834 fi
14835
14836 if test x"$_lt_function_replace_fail" = x":"; then
14837   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14838 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14839 fi
14840
14841
14842    mv -f "$cfgfile" "$ofile" ||
14843     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14844   chmod +x "$ofile"
14845
14846  ;;
14847     "libpng-config":F) chmod +x libpng-config ;;
14848
14849   esac
14850 done # for ac_tag
14851
14852
14853 as_fn_exit 0
14854 _ACEOF
14855 ac_clean_files=$ac_clean_files_save
14856
14857 test $ac_write_fail = 0 ||
14858   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14859
14860
14861 # configure is writing to config.log, and then calls config.status.
14862 # config.status does its own redirection, appending to config.log.
14863 # Unfortunately, on DOS this fails, as config.log is still kept open
14864 # by configure, so config.status won't be able to write to it; its
14865 # output is simply discarded.  So we exec the FD to /dev/null,
14866 # effectively closing config.log, so it can be properly (re)opened and
14867 # appended to by config.status.  When coming back to configure, we
14868 # need to make the FD available again.
14869 if test "$no_create" != yes; then
14870   ac_cs_success=:
14871   ac_config_status_args=
14872   test "$silent" = yes &&
14873     ac_config_status_args="$ac_config_status_args --quiet"
14874   exec 5>/dev/null
14875   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14876   exec 5>>config.log
14877   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14878   # would make configure fail if this is the last instruction.
14879   $ac_cs_success || as_fn_exit 1
14880 fi
14881 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14882   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14883 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14884 fi
14885