New comit of SDL2
[supertux.git] / src / SDL2 / external / libpng-1.6.2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpng 1.6.2.
4 #
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: png-mng-implement@lists.sourceforge.net about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libpng'
592 PACKAGE_TARNAME='libpng'
593 PACKAGE_VERSION='1.6.2'
594 PACKAGE_STRING='libpng 1.6.2'
595 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="pngget.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 PNG_ARM_NEON_FALSE
639 PNG_ARM_NEON_TRUE
640 AM_CCASFLAGS
641 DO_PNG_PREFIX_FALSE
642 DO_PNG_PREFIX_TRUE
643 PNG_PREFIX
644 binconfigs
645 pkgconfigdir
646 PNGLIB_RELEASE
647 PNGLIB_MINOR
648 PNGLIB_MAJOR
649 PNGLIB_VERSION
650 SYMBOL_PREFIX
651 HAVE_LD_VERSION_SCRIPT_FALSE
652 HAVE_LD_VERSION_SCRIPT_TRUE
653 HAVE_SOLARIS_LD_FALSE
654 HAVE_SOLARIS_LD_TRUE
655 LIBOBJS
656 POW_LIB
657 PNG_COPTS
658 DFNCPP
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LIBTOOL
672 OBJDUMP
673 DLLTOOL
674 AS
675 LN_S
676 CPP
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 am__fastdepCCAS_FALSE
691 am__fastdepCCAS_TRUE
692 CCASDEPMODE
693 CCASFLAGS
694 CCAS
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 MAINT
713 MAINTAINER_MODE_FALSE
714 MAINTAINER_MODE_TRUE
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_maintainer_mode
785 enable_dependency_tracking
786 with_gnu_ld
787 enable_shared
788 enable_static
789 with_pic
790 enable_fast_install
791 with_sysroot
792 enable_libtool_lock
793 enable_werror
794 with_zlib_prefix
795 with_pkgconfigdir
796 with_binconfigs
797 with_libpng_prefix
798 enable_arm_neon
799 '
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CCAS
809 CCASFLAGS
810 CPP
811 PNG_COPTS'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866   # If the previous option needs an argument, assign it.
867   if test -n "$ac_prev"; then
868     eval $ac_prev=\$ac_option
869     ac_prev=
870     continue
871   fi
872
873   case $ac_option in
874   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875   *=)   ac_optarg= ;;
876   *)    ac_optarg=yes ;;
877   esac
878
879   # Accept the important Cygnus configure options, so we can diagnose typos.
880
881   case $ac_dashdash$ac_option in
882   --)
883     ac_dashdash=yes ;;
884
885   -bindir | --bindir | --bindi | --bind | --bin | --bi)
886     ac_prev=bindir ;;
887   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888     bindir=$ac_optarg ;;
889
890   -build | --build | --buil | --bui | --bu)
891     ac_prev=build_alias ;;
892   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893     build_alias=$ac_optarg ;;
894
895   -cache-file | --cache-file | --cache-fil | --cache-fi \
896   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897     ac_prev=cache_file ;;
898   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900     cache_file=$ac_optarg ;;
901
902   --config-cache | -C)
903     cache_file=config.cache ;;
904
905   -datadir | --datadir | --datadi | --datad)
906     ac_prev=datadir ;;
907   -datadir=* | --datadir=* | --datadi=* | --datad=*)
908     datadir=$ac_optarg ;;
909
910   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911   | --dataroo | --dataro | --datar)
912     ac_prev=datarootdir ;;
913   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915     datarootdir=$ac_optarg ;;
916
917   -disable-* | --disable-*)
918     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921       as_fn_error $? "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=no ;;
932
933   -docdir | --docdir | --docdi | --doc | --do)
934     ac_prev=docdir ;;
935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936     docdir=$ac_optarg ;;
937
938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939     ac_prev=dvidir ;;
940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941     dvidir=$ac_optarg ;;
942
943   -enable-* | --enable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error $? "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=\$ac_optarg ;;
958
959   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961   | --exec | --exe | --ex)
962     ac_prev=exec_prefix ;;
963   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965   | --exec=* | --exe=* | --ex=*)
966     exec_prefix=$ac_optarg ;;
967
968   -gas | --gas | --ga | --g)
969     # Obsolete; use --with-gas.
970     with_gas=yes ;;
971
972   -help | --help | --hel | --he | -h)
973     ac_init_help=long ;;
974   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975     ac_init_help=recursive ;;
976   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977     ac_init_help=short ;;
978
979   -host | --host | --hos | --ho)
980     ac_prev=host_alias ;;
981   -host=* | --host=* | --hos=* | --ho=*)
982     host_alias=$ac_optarg ;;
983
984   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985     ac_prev=htmldir ;;
986   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987   | --ht=*)
988     htmldir=$ac_optarg ;;
989
990   -includedir | --includedir | --includedi | --included | --include \
991   | --includ | --inclu | --incl | --inc)
992     ac_prev=includedir ;;
993   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994   | --includ=* | --inclu=* | --incl=* | --inc=*)
995     includedir=$ac_optarg ;;
996
997   -infodir | --infodir | --infodi | --infod | --info | --inf)
998     ac_prev=infodir ;;
999   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000     infodir=$ac_optarg ;;
1001
1002   -libdir | --libdir | --libdi | --libd)
1003     ac_prev=libdir ;;
1004   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005     libdir=$ac_optarg ;;
1006
1007   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008   | --libexe | --libex | --libe)
1009     ac_prev=libexecdir ;;
1010   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011   | --libexe=* | --libex=* | --libe=*)
1012     libexecdir=$ac_optarg ;;
1013
1014   -localedir | --localedir | --localedi | --localed | --locale)
1015     ac_prev=localedir ;;
1016   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017     localedir=$ac_optarg ;;
1018
1019   -localstatedir | --localstatedir | --localstatedi | --localstated \
1020   | --localstate | --localstat | --localsta | --localst | --locals)
1021     ac_prev=localstatedir ;;
1022   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024     localstatedir=$ac_optarg ;;
1025
1026   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027     ac_prev=mandir ;;
1028   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029     mandir=$ac_optarg ;;
1030
1031   -nfp | --nfp | --nf)
1032     # Obsolete; use --without-fp.
1033     with_fp=no ;;
1034
1035   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036   | --no-cr | --no-c | -n)
1037     no_create=yes ;;
1038
1039   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041     no_recursion=yes ;;
1042
1043   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045   | --oldin | --oldi | --old | --ol | --o)
1046     ac_prev=oldincludedir ;;
1047   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050     oldincludedir=$ac_optarg ;;
1051
1052   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053     ac_prev=prefix ;;
1054   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055     prefix=$ac_optarg ;;
1056
1057   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058   | --program-pre | --program-pr | --program-p)
1059     ac_prev=program_prefix ;;
1060   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062     program_prefix=$ac_optarg ;;
1063
1064   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065   | --program-suf | --program-su | --program-s)
1066     ac_prev=program_suffix ;;
1067   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069     program_suffix=$ac_optarg ;;
1070
1071   -program-transform-name | --program-transform-name \
1072   | --program-transform-nam | --program-transform-na \
1073   | --program-transform-n | --program-transform- \
1074   | --program-transform | --program-transfor \
1075   | --program-transfo | --program-transf \
1076   | --program-trans | --program-tran \
1077   | --progr-tra | --program-tr | --program-t)
1078     ac_prev=program_transform_name ;;
1079   -program-transform-name=* | --program-transform-name=* \
1080   | --program-transform-nam=* | --program-transform-na=* \
1081   | --program-transform-n=* | --program-transform-=* \
1082   | --program-transform=* | --program-transfor=* \
1083   | --program-transfo=* | --program-transf=* \
1084   | --program-trans=* | --program-tran=* \
1085   | --progr-tra=* | --program-tr=* | --program-t=*)
1086     program_transform_name=$ac_optarg ;;
1087
1088   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089     ac_prev=pdfdir ;;
1090   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091     pdfdir=$ac_optarg ;;
1092
1093   -psdir | --psdir | --psdi | --psd | --ps)
1094     ac_prev=psdir ;;
1095   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096     psdir=$ac_optarg ;;
1097
1098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099   | -silent | --silent | --silen | --sile | --sil)
1100     silent=yes ;;
1101
1102   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103     ac_prev=sbindir ;;
1104   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105   | --sbi=* | --sb=*)
1106     sbindir=$ac_optarg ;;
1107
1108   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110   | --sharedst | --shareds | --shared | --share | --shar \
1111   | --sha | --sh)
1112     ac_prev=sharedstatedir ;;
1113   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116   | --sha=* | --sh=*)
1117     sharedstatedir=$ac_optarg ;;
1118
1119   -site | --site | --sit)
1120     ac_prev=site ;;
1121   -site=* | --site=* | --sit=*)
1122     site=$ac_optarg ;;
1123
1124   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125     ac_prev=srcdir ;;
1126   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127     srcdir=$ac_optarg ;;
1128
1129   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130   | --syscon | --sysco | --sysc | --sys | --sy)
1131     ac_prev=sysconfdir ;;
1132   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134     sysconfdir=$ac_optarg ;;
1135
1136   -target | --target | --targe | --targ | --tar | --ta | --t)
1137     ac_prev=target_alias ;;
1138   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139     target_alias=$ac_optarg ;;
1140
1141   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142     verbose=yes ;;
1143
1144   -version | --version | --versio | --versi | --vers | -V)
1145     ac_init_version=: ;;
1146
1147   -with-* | --with-*)
1148     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151       as_fn_error $? "invalid package name: $ac_useropt"
1152     ac_useropt_orig=$ac_useropt
1153     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154     case $ac_user_opts in
1155       *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159          ac_unrecognized_sep=', ';;
1160     esac
1161     eval with_$ac_useropt=\$ac_optarg ;;
1162
1163   -without-* | --without-*)
1164     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167       as_fn_error $? "invalid package name: $ac_useropt"
1168     ac_useropt_orig=$ac_useropt
1169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170     case $ac_user_opts in
1171       *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175          ac_unrecognized_sep=', ';;
1176     esac
1177     eval with_$ac_useropt=no ;;
1178
1179   --x)
1180     # Obsolete; use --with-x.
1181     with_x=yes ;;
1182
1183   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184   | --x-incl | --x-inc | --x-in | --x-i)
1185     ac_prev=x_includes ;;
1186   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188     x_includes=$ac_optarg ;;
1189
1190   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192     ac_prev=x_libraries ;;
1193   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195     x_libraries=$ac_optarg ;;
1196
1197   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1199     ;;
1200
1201   *=*)
1202     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203     # Reject names that are not valid shell variable names.
1204     case $ac_envvar in #(
1205       '' | [0-9]* | *[!_$as_cr_alnum]* )
1206       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207     esac
1208     eval $ac_envvar=\$ac_optarg
1209     export $ac_envvar ;;
1210
1211   *)
1212     # FIXME: should be removed in autoconf 3.0.
1213     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217     ;;
1218
1219   esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224   as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228   case $enable_option_checking in
1229     no) ;;
1230     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232   esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237                 datadir sysconfdir sharedstatedir localstatedir includedir \
1238                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239                 libdir localedir mandir
1240 do
1241   eval ac_val=\$$ac_var
1242   # Remove trailing slashes.
1243   case $ac_val in
1244     */ )
1245       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246       eval $ac_var=\$ac_val;;
1247   esac
1248   # Be sure to have absolute directory names.
1249   case $ac_val in
1250     [\\/$]* | ?:[\\/]* )  continue;;
1251     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252   esac
1253   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265   if test "x$build_alias" = x; then
1266     cross_compiling=maybe
1267   elif test "x$build_alias" != "x$host_alias"; then
1268     cross_compiling=yes
1269   fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281   as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283   as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288   ac_srcdir_defaulted=yes
1289   # Try the directory containing this script, then the parent directory.
1290   ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292          X"$as_myself" : 'X\(//\)[^/]' \| \
1293          X"$as_myself" : 'X\(//\)$' \| \
1294          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)[^/].*/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\).*/{
1309             s//\1/
1310             q
1311           }
1312           s/.*/./; q'`
1313   srcdir=$ac_confdir
1314   if test ! -r "$srcdir/$ac_unique_file"; then
1315     srcdir=..
1316   fi
1317 else
1318   ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327         pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330   srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_env_${ac_var}_value=\$${ac_var}
1341   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349   # Omit some internal or obsolete options to make the list less imposing.
1350   # This message is too long to be a string in the A/UX 3.1 sh.
1351   cat <<_ACEOF
1352 \`configure' configures libpng 1.6.2 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362   -h, --help              display this help and exit
1363       --help=short        display options specific to this package
1364       --help=recursive    display the short help of all the included packages
1365   -V, --version           display version information and exit
1366   -q, --quiet, --silent   do not print \`checking ...' messages
1367       --cache-file=FILE   cache test results in FILE [disabled]
1368   -C, --config-cache      alias for \`--cache-file=config.cache'
1369   -n, --no-create         do not create output files
1370       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372 Installation directories:
1373   --prefix=PREFIX         install architecture-independent files in PREFIX
1374                           [$ac_default_prefix]
1375   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                           [PREFIX]
1377
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386   --bindir=DIR            user executables [EPREFIX/bin]
1387   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388   --libexecdir=DIR        program executables [EPREFIX/libexec]
1389   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392   --libdir=DIR            object code libraries [EPREFIX/lib]
1393   --includedir=DIR        C header files [PREFIX/include]
1394   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397   --infodir=DIR           info documentation [DATAROOTDIR/info]
1398   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399   --mandir=DIR            man documentation [DATAROOTDIR/man]
1400   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpng]
1401   --htmldir=DIR           html documentation [DOCDIR]
1402   --dvidir=DIR            dvi documentation [DOCDIR]
1403   --pdfdir=DIR            pdf documentation [DOCDIR]
1404   --psdir=DIR             ps documentation [DOCDIR]
1405 _ACEOF
1406
1407   cat <<\_ACEOF
1408
1409 Program names:
1410   --program-prefix=PREFIX            prepend PREFIX to installed program names
1411   --program-suffix=SUFFIX            append SUFFIX to installed program names
1412   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414 System types:
1415   --build=BUILD     configure for building on BUILD [guessed]
1416   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421   case $ac_init_help in
1422      short | recursive ) echo "Configuration of libpng 1.6.2:";;
1423    esac
1424   cat <<\_ACEOF
1425
1426 Optional Features:
1427   --disable-option-checking  ignore unrecognized --enable/--with options
1428   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430   --enable-silent-rules   less verbose build output (undo: "make V=1")
1431   --disable-silent-rules  verbose build output (undo: "make V=0")
1432   --enable-maintainer-mode
1433                           enable make rules and dependencies not useful (and
1434                           sometimes confusing) to the casual installer
1435   --enable-dependency-tracking
1436                           do not reject slow dependency extractors
1437   --disable-dependency-tracking
1438                           speeds up one-time build
1439   --enable-shared[=PKGS]  build shared libraries [default=yes]
1440   --enable-static[=PKGS]  build static libraries [default=yes]
1441   --enable-fast-install[=PKGS]
1442                           optimize for fast installation [default=yes]
1443   --disable-libtool-lock  avoid locking (might break parallel builds)
1444   --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1445                           if it is supported
1446   --enable-arm-neon     Enable ARM NEON optimizations: =off, check, api, on:
1447                           off: disable the optimizations; check: use internal
1448                           checking code (deprecated and poorly supported);
1449                           api: disable by default, enable by a call to
1450                           png_set_option; on: turn on unconditionally. The
1451                           default is 'on' if __ARM_NEON__ is defined,
1452                           otherwise 'off'.
1453
1454 Optional Packages:
1455   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1456   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1457   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1458   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                           both]
1460   --with-sysroot=DIR Search for dependent libraries within DIR
1461                         (or the compiler's sysroot if not specified).
1462   --with-zlib-prefix    prefix that may have been used in installed zlib
1463   --with-pkgconfigdir   Use the specified pkgconfig dir (default is
1464                           libdir/pkgconfig)
1465   --with-binconfigs     Generate shell libpng-config scripts as well as
1466                           pkg-config data [default=yes]
1467   --with-libpng-prefix  prefix libpng exported function (API) names with the
1468                           given value
1469
1470 Some influential environment variables:
1471   CC          C compiler command
1472   CFLAGS      C compiler flags
1473   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474               nonstandard directory <lib dir>
1475   LIBS        libraries to pass to the linker, e.g. -l<library>
1476   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477               you have headers in a nonstandard directory <include dir>
1478   CCAS        assembler compiler command (defaults to CC)
1479   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1480   CPP         C preprocessor
1481   PNG_COPTS   additional flags for the C compiler, use this for options that
1482               would cause configure itself to fail
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493   # If there are subdirs, report their specific --help.
1494   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495     test -d "$ac_dir" ||
1496       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497       continue
1498     ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504   # A ".." for each directory in $ac_dir_suffix.
1505   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506   case $ac_top_builddir_sub in
1507   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509   esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517   .)  # We are building in place.
1518     ac_srcdir=.
1519     ac_top_srcdir=$ac_top_builddir_sub
1520     ac_abs_top_srcdir=$ac_pwd ;;
1521   [\\/]* | ?:[\\/]* )  # Absolute name.
1522     ac_srcdir=$srcdir$ac_dir_suffix;
1523     ac_top_srcdir=$srcdir
1524     ac_abs_top_srcdir=$srcdir ;;
1525   *) # Relative name.
1526     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527     ac_top_srcdir=$ac_top_build_prefix$srcdir
1528     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532     cd "$ac_dir" || { ac_status=$?; continue; }
1533     # Check for guested configure.
1534     if test -f "$ac_srcdir/configure.gnu"; then
1535       echo &&
1536       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537     elif test -f "$ac_srcdir/configure"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure" --help=recursive
1540     else
1541       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542     fi || ac_status=$?
1543     cd "$ac_pwd" || { ac_status=$?; break; }
1544   done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549   cat <<\_ACEOF
1550 libpng configure 1.6.2
1551 generated by GNU Autoconf 2.69
1552
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557   exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   rm -f conftest.$ac_objext
1571   if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574   *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578   (eval "$ac_compile") 2>conftest.err
1579   ac_status=$?
1580   if test -s conftest.err; then
1581     grep -v '^ *+' conftest.err >conftest.er1
1582     cat conftest.er1 >&5
1583     mv -f conftest.er1 conftest.err
1584   fi
1585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586   test $ac_status = 0; } && {
1587          test -z "$ac_c_werror_flag" ||
1588          test ! -s conftest.err
1589        } && test -s conftest.$ac_objext; then :
1590   ac_retval=0
1591 else
1592   $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595         ac_retval=1
1596 fi
1597   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598   as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_compile
1601
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } > conftest.i && {
1624          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625          test ! -s conftest.err
1626        }; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632     ac_retval=1
1633 fi
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_cpp
1638
1639 # ac_fn_c_try_link LINENO
1640 # -----------------------
1641 # Try to link conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_link ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   rm -f conftest.$ac_objext conftest$ac_exeext
1646   if { { ac_try="$ac_link"
1647 case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_link") 2>conftest.err
1654   ac_status=$?
1655   if test -s conftest.err; then
1656     grep -v '^ *+' conftest.err >conftest.er1
1657     cat conftest.er1 >&5
1658     mv -f conftest.er1 conftest.err
1659   fi
1660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661   test $ac_status = 0; } && {
1662          test -z "$ac_c_werror_flag" ||
1663          test ! -s conftest.err
1664        } && test -s conftest$ac_exeext && {
1665          test "$cross_compiling" = yes ||
1666          test -x conftest$ac_exeext
1667        }; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673         ac_retval=1
1674 fi
1675   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1676   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1677   # interfere with the next link command; also delete a directory that is
1678   # left behind by Apple's compiler.  We do this before executing the actions.
1679   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1680   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681   as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_link
1684
1685 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686 # -------------------------------------------------------
1687 # Tests whether HEADER exists and can be compiled using the include files in
1688 # INCLUDES, setting the cache variable VAR accordingly.
1689 ac_fn_c_check_header_compile ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695   $as_echo_n "(cached) " >&6
1696 else
1697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h.  */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703   eval "$3=yes"
1704 else
1705   eval "$3=no"
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 fi
1709 eval ac_res=\$$3
1710                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714 } # ac_fn_c_check_header_compile
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_link") 2>&5
1731   ac_status=$?
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734   { { case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_try") 2>&5
1741   ac_status=$?
1742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743   test $ac_status = 0; }; }; then :
1744   ac_retval=0
1745 else
1746   $as_echo "$as_me: program exited with status $ac_status" >&5
1747        $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750        ac_retval=$ac_status
1751 fi
1752   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_run
1757
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767   $as_echo_n "(cached) " >&6
1768 else
1769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h.  */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1773 #define $2 innocuous_$2
1774
1775 /* System header to define __stub macros and hopefully few prototypes,
1776     which can conflict with char $2 (); below.
1777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778     <limits.h> exists even on freestanding compilers.  */
1779
1780 #ifdef __STDC__
1781 # include <limits.h>
1782 #else
1783 # include <assert.h>
1784 #endif
1785
1786 #undef $2
1787
1788 /* Override any GCC internal prototype to avoid an error.
1789    Use char because int might match the return type of a GCC
1790    builtin and then its argument prototype would still apply.  */
1791 #ifdef __cplusplus
1792 extern "C"
1793 #endif
1794 char $2 ();
1795 /* The GNU C library defines this for functions which it implements
1796     to always fail with ENOSYS.  Some functions are actually named
1797     something starting with __ and the normal name is an alias.  */
1798 #if defined __stub_$2 || defined __stub___$2
1799 choke me
1800 #endif
1801
1802 int
1803 main ()
1804 {
1805 return $2 ();
1806   ;
1807   return 0;
1808 }
1809 _ACEOF
1810 if ac_fn_c_try_link "$LINENO"; then :
1811   eval "$3=yes"
1812 else
1813   eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext \
1816     conftest$ac_exeext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_func
1824
1825 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1826 # -------------------------------------------
1827 # Tests whether TYPE exists after having included INCLUDES, setting cache
1828 # variable VAR accordingly.
1829 ac_fn_c_check_type ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835   $as_echo_n "(cached) " >&6
1836 else
1837   eval "$3=no"
1838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h.  */
1840 $4
1841 int
1842 main ()
1843 {
1844 if (sizeof ($2))
1845          return 0;
1846   ;
1847   return 0;
1848 }
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 $4
1854 int
1855 main ()
1856 {
1857 if (sizeof (($2)))
1858             return 0;
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864
1865 else
1866   eval "$3=yes"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_type
1878 cat >config.log <<_ACEOF
1879 This file contains any messages produced by compilers while
1880 running configure, to aid debugging if configure makes a mistake.
1881
1882 It was created by libpng $as_me 1.6.2, which was
1883 generated by GNU Autoconf 2.69.  Invocation command line was
1884
1885   $ $0 $@
1886
1887 _ACEOF
1888 exec 5>>config.log
1889 {
1890 cat <<_ASUNAME
1891 ## --------- ##
1892 ## Platform. ##
1893 ## --------- ##
1894
1895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1903
1904 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1905 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1908 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1909 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1910 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1911
1912 _ASUNAME
1913
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919     $as_echo "PATH: $as_dir"
1920   done
1921 IFS=$as_save_IFS
1922
1923 } >&5
1924
1925 cat >&5 <<_ACEOF
1926
1927
1928 ## ----------- ##
1929 ## Core tests. ##
1930 ## ----------- ##
1931
1932 _ACEOF
1933
1934
1935 # Keep a trace of the command line.
1936 # Strip out --no-create and --no-recursion so they do not pile up.
1937 # Strip out --silent because we don't want to record it for future runs.
1938 # Also quote any args containing shell meta-characters.
1939 # Make two passes to allow for proper duplicate-argument suppression.
1940 ac_configure_args=
1941 ac_configure_args0=
1942 ac_configure_args1=
1943 ac_must_keep_next=false
1944 for ac_pass in 1 2
1945 do
1946   for ac_arg
1947   do
1948     case $ac_arg in
1949     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951     | -silent | --silent | --silen | --sile | --sil)
1952       continue ;;
1953     *\'*)
1954       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955     esac
1956     case $ac_pass in
1957     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958     2)
1959       as_fn_append ac_configure_args1 " '$ac_arg'"
1960       if test $ac_must_keep_next = true; then
1961         ac_must_keep_next=false # Got value, back to normal.
1962       else
1963         case $ac_arg in
1964           *=* | --config-cache | -C | -disable-* | --disable-* \
1965           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967           | -with-* | --with-* | -without-* | --without-* | --x)
1968             case "$ac_configure_args0 " in
1969               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970             esac
1971             ;;
1972           -* ) ac_must_keep_next=true ;;
1973         esac
1974       fi
1975       as_fn_append ac_configure_args " '$ac_arg'"
1976       ;;
1977     esac
1978   done
1979 done
1980 { ac_configure_args0=; unset ac_configure_args0;}
1981 { ac_configure_args1=; unset ac_configure_args1;}
1982
1983 # When interrupted or exit'd, cleanup temporary files, and complete
1984 # config.log.  We remove comments because anyway the quotes in there
1985 # would cause problems or look ugly.
1986 # WARNING: Use '\'' to represent an apostrophe within the trap.
1987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988 trap 'exit_status=$?
1989   # Save into config.log some information that might help in debugging.
1990   {
1991     echo
1992
1993     $as_echo "## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##"
1996     echo
1997     # The following way of writing the cache mishandles newlines in values,
1998 (
1999   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000     eval ac_val=\$$ac_var
2001     case $ac_val in #(
2002     *${as_nl}*)
2003       case $ac_var in #(
2004       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006       esac
2007       case $ac_var in #(
2008       _ | IFS | as_nl) ;; #(
2009       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010       *) { eval $ac_var=; unset $ac_var;} ;;
2011       esac ;;
2012     esac
2013   done
2014   (set) 2>&1 |
2015     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016     *${as_nl}ac_space=\ *)
2017       sed -n \
2018         "s/'\''/'\''\\\\'\'''\''/g;
2019           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020       ;; #(
2021     *)
2022       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023       ;;
2024     esac |
2025     sort
2026 )
2027     echo
2028
2029     $as_echo "## ----------------- ##
2030 ## Output variables. ##
2031 ## ----------------- ##"
2032     echo
2033     for ac_var in $ac_subst_vars
2034     do
2035       eval ac_val=\$$ac_var
2036       case $ac_val in
2037       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038       esac
2039       $as_echo "$ac_var='\''$ac_val'\''"
2040     done | sort
2041     echo
2042
2043     if test -n "$ac_subst_files"; then
2044       $as_echo "## ------------------- ##
2045 ## File substitutions. ##
2046 ## ------------------- ##"
2047       echo
2048       for ac_var in $ac_subst_files
2049       do
2050         eval ac_val=\$$ac_var
2051         case $ac_val in
2052         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053         esac
2054         $as_echo "$ac_var='\''$ac_val'\''"
2055       done | sort
2056       echo
2057     fi
2058
2059     if test -s confdefs.h; then
2060       $as_echo "## ----------- ##
2061 ## confdefs.h. ##
2062 ## ----------- ##"
2063       echo
2064       cat confdefs.h
2065       echo
2066     fi
2067     test "$ac_signal" != 0 &&
2068       $as_echo "$as_me: caught signal $ac_signal"
2069     $as_echo "$as_me: exit $exit_status"
2070   } >&5
2071   rm -f core *.core core.conftest.* &&
2072     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073     exit $exit_status
2074 ' 0
2075 for ac_signal in 1 2 13 15; do
2076   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077 done
2078 ac_signal=0
2079
2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2081 rm -f -r conftest* confdefs.h
2082
2083 $as_echo "/* confdefs.h */" > confdefs.h
2084
2085 # Predefined preprocessor variables.
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_URL "$PACKAGE_URL"
2109 _ACEOF
2110
2111
2112 # Let the site file select an alternate cache file if it wants to.
2113 # Prefer an explicitly selected file to automatically selected ones.
2114 ac_site_file1=NONE
2115 ac_site_file2=NONE
2116 if test -n "$CONFIG_SITE"; then
2117   # We do not want a PATH search for config.site.
2118   case $CONFIG_SITE in #((
2119     -*)  ac_site_file1=./$CONFIG_SITE;;
2120     */*) ac_site_file1=$CONFIG_SITE;;
2121     *)   ac_site_file1=./$CONFIG_SITE;;
2122   esac
2123 elif test "x$prefix" != xNONE; then
2124   ac_site_file1=$prefix/share/config.site
2125   ac_site_file2=$prefix/etc/config.site
2126 else
2127   ac_site_file1=$ac_default_prefix/share/config.site
2128   ac_site_file2=$ac_default_prefix/etc/config.site
2129 fi
2130 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131 do
2132   test "x$ac_site_file" = xNONE && continue
2133   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2134     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2135 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2136     sed 's/^/| /' "$ac_site_file" >&5
2137     . "$ac_site_file" \
2138       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140 as_fn_error $? "failed to load site script $ac_site_file
2141 See \`config.log' for more details" "$LINENO" 5; }
2142   fi
2143 done
2144
2145 if test -r "$cache_file"; then
2146   # Some versions of bash will fail to source /dev/null (special files
2147   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2148   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151     case $cache_file in
2152       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153       *)                      . "./$cache_file";;
2154     esac
2155   fi
2156 else
2157   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159   >$cache_file
2160 fi
2161
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167   eval ac_new_set=\$ac_env_${ac_var}_set
2168   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169   eval ac_new_val=\$ac_env_${ac_var}_value
2170   case $ac_old_set,$ac_new_set in
2171     set,)
2172       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174       ac_cache_corrupted=: ;;
2175     ,set)
2176       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178       ac_cache_corrupted=: ;;
2179     ,);;
2180     *)
2181       if test "x$ac_old_val" != "x$ac_new_val"; then
2182         # differences in whitespace do not lead to failure.
2183         ac_old_val_w=`echo x $ac_old_val`
2184         ac_new_val_w=`echo x $ac_new_val`
2185         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188           ac_cache_corrupted=:
2189         else
2190           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192           eval $ac_var=\$ac_old_val
2193         fi
2194         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2195 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2196         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2198       fi;;
2199   esac
2200   # Pass precious variables to config.status.
2201   if test "$ac_new_set" = set; then
2202     case $ac_new_val in
2203     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204     *) ac_arg=$ac_var=$ac_new_val ;;
2205     esac
2206     case " $ac_configure_args " in
2207       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2208       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209     esac
2210   fi
2211 done
2212 if $ac_cache_corrupted; then
2213   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218 fi
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2222
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
2230
2231
2232 # libpng does not follow GNU file name conventions (hence 'foreign')
2233 # color-tests requires automake 1.11 or later
2234 # silent-rules requires automake 1.11 or later
2235 # dist-xz requires automake 1.11 or later
2236 # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2237 # 1.13 is required for parallel tests
2238 am__api_version='1.13'
2239
2240 ac_aux_dir=
2241 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2242   if test -f "$ac_dir/install-sh"; then
2243     ac_aux_dir=$ac_dir
2244     ac_install_sh="$ac_aux_dir/install-sh -c"
2245     break
2246   elif test -f "$ac_dir/install.sh"; then
2247     ac_aux_dir=$ac_dir
2248     ac_install_sh="$ac_aux_dir/install.sh -c"
2249     break
2250   elif test -f "$ac_dir/shtool"; then
2251     ac_aux_dir=$ac_dir
2252     ac_install_sh="$ac_aux_dir/shtool install -c"
2253     break
2254   fi
2255 done
2256 if test -z "$ac_aux_dir"; then
2257   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2258 fi
2259
2260 # These three variables are undocumented and unsupported,
2261 # and are intended to be withdrawn in a future Autoconf release.
2262 # They can cause serious problems if a builder's source tree is in a directory
2263 # whose full name contains unusual characters.
2264 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2265 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2266 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2267
2268
2269 # Find a good install program.  We prefer a C program (faster),
2270 # so one script is as good as another.  But avoid the broken or
2271 # incompatible versions:
2272 # SysV /etc/install, /usr/sbin/install
2273 # SunOS /usr/etc/install
2274 # IRIX /sbin/install
2275 # AIX /bin/install
2276 # AmigaOS /C/install, which installs bootblocks on floppy discs
2277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280 # OS/2's system install, which has a completely different semantic
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 # Reject install programs that cannot install multiple files.
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2284 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2285 if test -z "$INSTALL"; then
2286 if ${ac_cv_path_install+:} false; then :
2287   $as_echo_n "(cached) " >&6
2288 else
2289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292   IFS=$as_save_IFS
2293   test -z "$as_dir" && as_dir=.
2294     # Account for people who put trailing slashes in PATH elements.
2295 case $as_dir/ in #((
2296   ./ | .// | /[cC]/* | \
2297   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2298   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2299   /usr/ucb/* ) ;;
2300   *)
2301     # OSF1 and SCO ODT 3.0 have their own names for install.
2302     # Don't use installbsd from OSF since it installs stuff as root
2303     # by default.
2304     for ac_prog in ginstall scoinst install; do
2305       for ac_exec_ext in '' $ac_executable_extensions; do
2306         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2307           if test $ac_prog = install &&
2308             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309             # AIX install.  It has an incompatible calling convention.
2310             :
2311           elif test $ac_prog = install &&
2312             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313             # program-specific install script used by HP pwplus--don't use.
2314             :
2315           else
2316             rm -rf conftest.one conftest.two conftest.dir
2317             echo one > conftest.one
2318             echo two > conftest.two
2319             mkdir conftest.dir
2320             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2321               test -s conftest.one && test -s conftest.two &&
2322               test -s conftest.dir/conftest.one &&
2323               test -s conftest.dir/conftest.two
2324             then
2325               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2326               break 3
2327             fi
2328           fi
2329         fi
2330       done
2331     done
2332     ;;
2333 esac
2334
2335   done
2336 IFS=$as_save_IFS
2337
2338 rm -rf conftest.one conftest.two conftest.dir
2339
2340 fi
2341   if test "${ac_cv_path_install+set}" = set; then
2342     INSTALL=$ac_cv_path_install
2343   else
2344     # As a last resort, use the slow shell script.  Don't cache a
2345     # value for INSTALL within a source directory, because that will
2346     # break other packages using the cache if that directory is
2347     # removed, or if the value is a relative name.
2348     INSTALL=$ac_install_sh
2349   fi
2350 fi
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2352 $as_echo "$INSTALL" >&6; }
2353
2354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2355 # It thinks the first close brace ends the variable substitution.
2356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2357
2358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2359
2360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2361
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2363 $as_echo_n "checking whether build environment is sane... " >&6; }
2364 # Reject unsafe characters in $srcdir or the absolute working directory
2365 # name.  Accept space and tab only in the latter.
2366 am_lf='
2367 '
2368 case `pwd` in
2369   *[\\\"\#\$\&\'\`$am_lf]*)
2370     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2371 esac
2372 case $srcdir in
2373   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2374     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2375 esac
2376
2377 # Do 'set' in a subshell so we don't clobber the current shell's
2378 # arguments.  Must try -L first in case configure is actually a
2379 # symlink; some systems play weird games with the mod time of symlinks
2380 # (eg FreeBSD returns the mod time of the symlink's containing
2381 # directory).
2382 if (
2383    am_has_slept=no
2384    for am_try in 1 2; do
2385      echo "timestamp, slept: $am_has_slept" > conftest.file
2386      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2387      if test "$*" = "X"; then
2388         # -L didn't work.
2389         set X `ls -t "$srcdir/configure" conftest.file`
2390      fi
2391      if test "$*" != "X $srcdir/configure conftest.file" \
2392         && test "$*" != "X conftest.file $srcdir/configure"; then
2393
2394         # If neither matched, then we have a broken ls.  This can happen
2395         # if, for instance, CONFIG_SHELL is bash and it inherits a
2396         # broken ls alias from the environment.  This has actually
2397         # happened.  Such a system could not be considered "sane".
2398         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2399   alias in your environment" "$LINENO" 5
2400      fi
2401      if test "$2" = conftest.file || test $am_try -eq 2; then
2402        break
2403      fi
2404      # Just in case.
2405      sleep 1
2406      am_has_slept=yes
2407    done
2408    test "$2" = conftest.file
2409    )
2410 then
2411    # Ok.
2412    :
2413 else
2414    as_fn_error $? "newly created file is older than distributed files!
2415 Check your system clock" "$LINENO" 5
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2418 $as_echo "yes" >&6; }
2419 # If we didn't sleep, we still need to ensure time stamps of config.status and
2420 # generated files are strictly newer.
2421 am_sleep_pid=
2422 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2423   ( sleep 1 ) &
2424   am_sleep_pid=$!
2425 fi
2426
2427 rm -f conftest.file
2428
2429 test "$program_prefix" != NONE &&
2430   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431 # Use a double $ so make ignores it.
2432 test "$program_suffix" != NONE &&
2433   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434 # Double any \ or $.
2435 # By default was `s,x,x', remove it if useless.
2436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439 # expand $ac_aux_dir to an absolute path
2440 am_aux_dir=`cd $ac_aux_dir && pwd`
2441
2442 if test x"${MISSING+set}" != xset; then
2443   case $am_aux_dir in
2444   *\ * | *\     *)
2445     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2446   *)
2447     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2448   esac
2449 fi
2450 # Use eval to expand $SHELL
2451 if eval "$MISSING --is-lightweight"; then
2452   am_missing_run="$MISSING "
2453 else
2454   am_missing_run=
2455   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2456 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2457 fi
2458
2459 if test x"${install_sh}" != xset; then
2460   case $am_aux_dir in
2461   *\ * | *\     *)
2462     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2463   *)
2464     install_sh="\${SHELL} $am_aux_dir/install-sh"
2465   esac
2466 fi
2467
2468 # Installed binaries are usually stripped using 'strip' when the user
2469 # run "make install-strip".  However 'strip' might not be the right
2470 # tool to use in cross-compilation environments, therefore Automake
2471 # will honor the 'STRIP' environment variable to overrule this program.
2472 if test "$cross_compiling" != no; then
2473   if test -n "$ac_tool_prefix"; then
2474   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}strip; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_STRIP+:} false; then :
2479   $as_echo_n "(cached) " >&6
2480 else
2481   if test -n "$STRIP"; then
2482   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487   IFS=$as_save_IFS
2488   test -z "$as_dir" && as_dir=.
2489     for ac_exec_ext in '' $ac_executable_extensions; do
2490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493     break 2
2494   fi
2495 done
2496   done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 STRIP=$ac_cv_prog_STRIP
2502 if test -n "$STRIP"; then
2503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2504 $as_echo "$STRIP" >&6; }
2505 else
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510
2511 fi
2512 if test -z "$ac_cv_prog_STRIP"; then
2513   ac_ct_STRIP=$STRIP
2514   # Extract the first word of "strip", so it can be a program name with args.
2515 set dummy strip; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2519   $as_echo_n "(cached) " >&6
2520 else
2521   if test -n "$ac_ct_STRIP"; then
2522   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529     for ac_exec_ext in '' $ac_executable_extensions; do
2530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531     ac_cv_prog_ac_ct_STRIP="strip"
2532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536   done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2542 if test -n "$ac_ct_STRIP"; then
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2544 $as_echo "$ac_ct_STRIP" >&6; }
2545 else
2546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550   if test "x$ac_ct_STRIP" = x; then
2551     STRIP=":"
2552   else
2553     case $cross_compiling:$ac_tool_warned in
2554 yes:)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2557 ac_tool_warned=yes ;;
2558 esac
2559     STRIP=$ac_ct_STRIP
2560   fi
2561 else
2562   STRIP="$ac_cv_prog_STRIP"
2563 fi
2564
2565 fi
2566 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2569 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2570 if test -z "$MKDIR_P"; then
2571   if ${ac_cv_path_mkdir+:} false; then :
2572   $as_echo_n "(cached) " >&6
2573 else
2574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579     for ac_prog in mkdir gmkdir; do
2580          for ac_exec_ext in '' $ac_executable_extensions; do
2581            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2582            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2583              'mkdir (GNU coreutils) '* | \
2584              'mkdir (coreutils) '* | \
2585              'mkdir (fileutils) '4.1*)
2586                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2587                break 3;;
2588            esac
2589          done
2590        done
2591   done
2592 IFS=$as_save_IFS
2593
2594 fi
2595
2596   test -d ./--version && rmdir ./--version
2597   if test "${ac_cv_path_mkdir+set}" = set; then
2598     MKDIR_P="$ac_cv_path_mkdir -p"
2599   else
2600     # As a last resort, use the slow shell script.  Don't cache a
2601     # value for MKDIR_P within a source directory, because that will
2602     # break other packages using the cache if that directory is
2603     # removed, or if the value is a relative name.
2604     MKDIR_P="$ac_install_sh -d"
2605   fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2608 $as_echo "$MKDIR_P" >&6; }
2609
2610 for ac_prog in gawk mawk nawk awk
2611 do
2612   # Extract the first word of "$ac_prog", so it can be a program name with args.
2613 set dummy $ac_prog; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_AWK+:} false; then :
2617   $as_echo_n "(cached) " >&6
2618 else
2619   if test -n "$AWK"; then
2620   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625   IFS=$as_save_IFS
2626   test -z "$as_dir" && as_dir=.
2627     for ac_exec_ext in '' $ac_executable_extensions; do
2628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629     ac_cv_prog_AWK="$ac_prog"
2630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631     break 2
2632   fi
2633 done
2634   done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 AWK=$ac_cv_prog_AWK
2640 if test -n "$AWK"; then
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642 $as_echo "$AWK" >&6; }
2643 else
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648
2649   test -n "$AWK" && break
2650 done
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2654 set x ${MAKE-make}
2655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2657   $as_echo_n "(cached) " >&6
2658 else
2659   cat >conftest.make <<\_ACEOF
2660 SHELL = /bin/sh
2661 all:
2662         @echo '@@@%%%=$(MAKE)=@@@%%%'
2663 _ACEOF
2664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2666   *@@@%%%=?*=@@@%%%*)
2667     eval ac_cv_prog_make_${ac_make}_set=yes;;
2668   *)
2669     eval ac_cv_prog_make_${ac_make}_set=no;;
2670 esac
2671 rm -f conftest.make
2672 fi
2673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675 $as_echo "yes" >&6; }
2676   SET_MAKE=
2677 else
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680   SET_MAKE="MAKE=${MAKE-make}"
2681 fi
2682
2683 rm -rf .tst 2>/dev/null
2684 mkdir .tst 2>/dev/null
2685 if test -d .tst; then
2686   am__leading_dot=.
2687 else
2688   am__leading_dot=_
2689 fi
2690 rmdir .tst 2>/dev/null
2691
2692 # Check whether --enable-silent-rules was given.
2693 if test "${enable_silent_rules+set}" = set; then :
2694   enableval=$enable_silent_rules;
2695 fi
2696
2697 case $enable_silent_rules in # (((
2698   yes) AM_DEFAULT_VERBOSITY=0;;
2699    no) AM_DEFAULT_VERBOSITY=1;;
2700     *) AM_DEFAULT_VERBOSITY=1;;
2701 esac
2702 am_make=${MAKE-make}
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2704 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2705 if ${am_cv_make_support_nested_variables+:} false; then :
2706   $as_echo_n "(cached) " >&6
2707 else
2708   if $as_echo 'TRUE=$(BAR$(V))
2709 BAR0=false
2710 BAR1=true
2711 V=1
2712 am__doit:
2713         @$(TRUE)
2714 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2715   am_cv_make_support_nested_variables=yes
2716 else
2717   am_cv_make_support_nested_variables=no
2718 fi
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2721 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2722 if test $am_cv_make_support_nested_variables = yes; then
2723     AM_V='$(V)'
2724   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2725 else
2726   AM_V=$AM_DEFAULT_VERBOSITY
2727   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2728 fi
2729 AM_BACKSLASH='\'
2730
2731 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2732   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2733   # is not polluted with repeated "-I."
2734   am__isrc=' -I$(srcdir)'
2735   # test to see if srcdir already configured
2736   if test -f $srcdir/config.status; then
2737     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2738   fi
2739 fi
2740
2741 # test whether we have cygpath
2742 if test -z "$CYGPATH_W"; then
2743   if (cygpath --version) >/dev/null 2>/dev/null; then
2744     CYGPATH_W='cygpath -w'
2745   else
2746     CYGPATH_W=echo
2747   fi
2748 fi
2749
2750
2751 # Define the identity of the package.
2752  PACKAGE='libpng'
2753  VERSION='1.6.2'
2754
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE "$PACKAGE"
2758 _ACEOF
2759
2760
2761 cat >>confdefs.h <<_ACEOF
2762 #define VERSION "$VERSION"
2763 _ACEOF
2764
2765 # Some tools Automake needs.
2766
2767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2768
2769
2770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2771
2772
2773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2774
2775
2776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2777
2778
2779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2780
2781 # For better backward compatibility.  To be removed once Automake 1.9.x
2782 # dies out for good.  For more background, see:
2783 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2784 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2785 mkdir_p='$(MKDIR_P)'
2786
2787 # We need awk for the "check" target.  The system "awk" is bad on
2788 # some platforms.
2789 # Always define AMTAR for backward compatibility.  Yes, it's still used
2790 # in the wild :-(  We should find a proper way to deprecate it ...
2791 AMTAR='$${TAR-tar}'
2792
2793 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2794
2795
2796
2797
2798
2799 # The following line causes --disable-maintainer-mode to be the default to
2800 # configure, this is necessary because libpng distributions cannot rely on the
2801 # time stamps of the autotools generated files being correct
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2804 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2805     # Check whether --enable-maintainer-mode was given.
2806 if test "${enable_maintainer_mode+set}" = set; then :
2807   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2808 else
2809   USE_MAINTAINER_MODE=no
2810 fi
2811
2812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2813 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2814    if test $USE_MAINTAINER_MODE = yes; then
2815   MAINTAINER_MODE_TRUE=
2816   MAINTAINER_MODE_FALSE='#'
2817 else
2818   MAINTAINER_MODE_TRUE='#'
2819   MAINTAINER_MODE_FALSE=
2820 fi
2821
2822   MAINT=$MAINTAINER_MODE_TRUE
2823
2824
2825
2826
2827 PNGLIB_VERSION=1.6.2
2828 PNGLIB_MAJOR=1
2829 PNGLIB_MINOR=6
2830 PNGLIB_RELEASE=2
2831
2832
2833
2834 ac_config_headers="$ac_config_headers config.h"
2835
2836
2837 # Checks for programs.
2838 ac_ext=c
2839 ac_cpp='$CPP $CPPFLAGS'
2840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
2844 ac_ext=c
2845 ac_cpp='$CPP $CPPFLAGS'
2846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 if test -n "$ac_tool_prefix"; then
2850   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2851 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_CC+:} false; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   if test -n "$CC"; then
2858   ac_cv_prog_CC="$CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865     for ac_exec_ext in '' $ac_executable_extensions; do
2866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872   done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 CC=$ac_cv_prog_CC
2878 if test -n "$CC"; then
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880 $as_echo "$CC" >&6; }
2881 else
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886
2887 fi
2888 if test -z "$ac_cv_prog_CC"; then
2889   ac_ct_CC=$CC
2890   # Extract the first word of "gcc", so it can be a program name with args.
2891 set dummy gcc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2895   $as_echo_n "(cached) " >&6
2896 else
2897   if test -n "$ac_ct_CC"; then
2898   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903   IFS=$as_save_IFS
2904   test -z "$as_dir" && as_dir=.
2905     for ac_exec_ext in '' $ac_executable_extensions; do
2906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907     ac_cv_prog_ac_ct_CC="gcc"
2908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909     break 2
2910   fi
2911 done
2912   done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2918 if test -n "$ac_ct_CC"; then
2919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2920 $as_echo "$ac_ct_CC" >&6; }
2921 else
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 fi
2925
2926   if test "x$ac_ct_CC" = x; then
2927     CC=""
2928   else
2929     case $cross_compiling:$ac_tool_warned in
2930 yes:)
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2934 esac
2935     CC=$ac_ct_CC
2936   fi
2937 else
2938   CC="$ac_cv_prog_CC"
2939 fi
2940
2941 if test -z "$CC"; then
2942           if test -n "$ac_tool_prefix"; then
2943     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2944 set dummy ${ac_tool_prefix}cc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_CC+:} false; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   if test -n "$CC"; then
2951   ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956   IFS=$as_save_IFS
2957   test -z "$as_dir" && as_dir=.
2958     for ac_exec_ext in '' $ac_executable_extensions; do
2959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960     ac_cv_prog_CC="${ac_tool_prefix}cc"
2961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962     break 2
2963   fi
2964 done
2965   done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 CC=$ac_cv_prog_CC
2971 if test -n "$CC"; then
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2974 else
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980   fi
2981 fi
2982 if test -z "$CC"; then
2983   # Extract the first word of "cc", so it can be a program name with args.
2984 set dummy cc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988   $as_echo_n "(cached) " >&6
2989 else
2990   if test -n "$CC"; then
2991   ac_cv_prog_CC="$CC" # Let the user override the test.
2992 else
2993   ac_prog_rejected=no
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997   IFS=$as_save_IFS
2998   test -z "$as_dir" && as_dir=.
2999     for ac_exec_ext in '' $ac_executable_extensions; do
3000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3002        ac_prog_rejected=yes
3003        continue
3004      fi
3005     ac_cv_prog_CC="cc"
3006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007     break 2
3008   fi
3009 done
3010   done
3011 IFS=$as_save_IFS
3012
3013 if test $ac_prog_rejected = yes; then
3014   # We found a bogon in the path, so make sure we never use it.
3015   set dummy $ac_cv_prog_CC
3016   shift
3017   if test $# != 0; then
3018     # We chose a different compiler from the bogus one.
3019     # However, it has the same basename, so the bogon will be chosen
3020     # first if we set CC to just the basename; use the full file name.
3021     shift
3022     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3023   fi
3024 fi
3025 fi
3026 fi
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037 fi
3038 if test -z "$CC"; then
3039   if test -n "$ac_tool_prefix"; then
3040   for ac_prog in cl.exe
3041   do
3042     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_CC+:} false; then :
3047   $as_echo_n "(cached) " >&6
3048 else
3049   if test -n "$CC"; then
3050   ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055   IFS=$as_save_IFS
3056   test -z "$as_dir" && as_dir=.
3057     for ac_exec_ext in '' $ac_executable_extensions; do
3058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061     break 2
3062   fi
3063 done
3064   done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079     test -n "$CC" && break
3080   done
3081 fi
3082 if test -z "$CC"; then
3083   ac_ct_CC=$CC
3084   for ac_prog in cl.exe
3085 do
3086   # Extract the first word of "$ac_prog", so it can be a program name with args.
3087 set dummy $ac_prog; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3091   $as_echo_n "(cached) " >&6
3092 else
3093   if test -n "$ac_ct_CC"; then
3094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099   IFS=$as_save_IFS
3100   test -z "$as_dir" && as_dir=.
3101     for ac_exec_ext in '' $ac_executable_extensions; do
3102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103     ac_cv_prog_ac_ct_CC="$ac_prog"
3104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105     break 2
3106   fi
3107 done
3108   done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3114 if test -n "$ac_ct_CC"; then
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3116 $as_echo "$ac_ct_CC" >&6; }
3117 else
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123   test -n "$ac_ct_CC" && break
3124 done
3125
3126   if test "x$ac_ct_CC" = x; then
3127     CC=""
3128   else
3129     case $cross_compiling:$ac_tool_warned in
3130 yes:)
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133 ac_tool_warned=yes ;;
3134 esac
3135     CC=$ac_ct_CC
3136   fi
3137 fi
3138
3139 fi
3140
3141
3142 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 as_fn_error $? "no acceptable C compiler found in \$PATH
3145 See \`config.log' for more details" "$LINENO" 5; }
3146
3147 # Provide some information about the compiler.
3148 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3149 set X $ac_compile
3150 ac_compiler=$2
3151 for ac_option in --version -v -V -qversion; do
3152   { { ac_try="$ac_compiler $ac_option >&5"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3160   ac_status=$?
3161   if test -s conftest.err; then
3162     sed '10a\
3163 ... rest of stderr output deleted ...
3164          10q' conftest.err >conftest.er1
3165     cat conftest.er1 >&5
3166   fi
3167   rm -f conftest.er1 conftest.err
3168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169   test $ac_status = 0; }
3170 done
3171
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h.  */
3174
3175 int
3176 main ()
3177 {
3178
3179   ;
3180   return 0;
3181 }
3182 _ACEOF
3183 ac_clean_files_save=$ac_clean_files
3184 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3185 # Try to create an executable without -o first, disregard a.out.
3186 # It will help us diagnose broken compilers, and finding out an intuition
3187 # of exeext.
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3189 $as_echo_n "checking whether the C compiler works... " >&6; }
3190 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3191
3192 # The possible output files:
3193 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3194
3195 ac_rmfiles=
3196 for ac_file in $ac_files
3197 do
3198   case $ac_file in
3199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3200     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3201   esac
3202 done
3203 rm -f $ac_rmfiles
3204
3205 if { { ac_try="$ac_link_default"
3206 case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212   (eval "$ac_link_default") 2>&5
3213   ac_status=$?
3214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215   test $ac_status = 0; }; then :
3216   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3217 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3218 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3219 # so that the user can short-circuit this test for compilers unknown to
3220 # Autoconf.
3221 for ac_file in $ac_files ''
3222 do
3223   test -f "$ac_file" || continue
3224   case $ac_file in
3225     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3226         ;;
3227     [ab].out )
3228         # We found the default executable, but exeext='' is most
3229         # certainly right.
3230         break;;
3231     *.* )
3232         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3233         then :; else
3234            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235         fi
3236         # We set ac_cv_exeext here because the later test for it is not
3237         # safe: cross compilers may not add the suffix if given an `-o'
3238         # argument, so we may need to know it at that point already.
3239         # Even if this section looks crufty: it has the advantage of
3240         # actually working.
3241         break;;
3242     * )
3243         break;;
3244   esac
3245 done
3246 test "$ac_cv_exeext" = no && ac_cv_exeext=
3247
3248 else
3249   ac_file=''
3250 fi
3251 if test -z "$ac_file"; then :
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error 77 "C compiler cannot create executables
3260 See \`config.log' for more details" "$LINENO" 5; }
3261 else
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3266 $as_echo_n "checking for C compiler default output file name... " >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3268 $as_echo "$ac_file" >&6; }
3269 ac_exeext=$ac_cv_exeext
3270
3271 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3272 ac_clean_files=$ac_clean_files_save
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3274 $as_echo_n "checking for suffix of executables... " >&6; }
3275 if { { ac_try="$ac_link"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282   (eval "$ac_link") 2>&5
3283   ac_status=$?
3284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285   test $ac_status = 0; }; then :
3286   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3287 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3288 # work properly (i.e., refer to `conftest.exe'), while it won't with
3289 # `rm'.
3290 for ac_file in conftest.exe conftest conftest.*; do
3291   test -f "$ac_file" || continue
3292   case $ac_file in
3293     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3294     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295           break;;
3296     * ) break;;
3297   esac
3298 done
3299 else
3300   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3303 See \`config.log' for more details" "$LINENO" 5; }
3304 fi
3305 rm -f conftest conftest$ac_cv_exeext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3307 $as_echo "$ac_cv_exeext" >&6; }
3308
3309 rm -f conftest.$ac_ext
3310 EXEEXT=$ac_cv_exeext
3311 ac_exeext=$EXEEXT
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h.  */
3314 #include <stdio.h>
3315 int
3316 main ()
3317 {
3318 FILE *f = fopen ("conftest.out", "w");
3319  return ferror (f) || fclose (f) != 0;
3320
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 ac_clean_files="$ac_clean_files conftest.out"
3326 # Check that the compiler produces executables we can run.  If not, either
3327 # the compiler is broken, or we cross compile.
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3329 $as_echo_n "checking whether we are cross compiling... " >&6; }
3330 if test "$cross_compiling" != yes; then
3331   { { ac_try="$ac_link"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338   (eval "$ac_link") 2>&5
3339   ac_status=$?
3340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341   test $ac_status = 0; }
3342   if { ac_try='./conftest$ac_cv_exeext'
3343   { { case "(($ac_try" in
3344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345   *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349   (eval "$ac_try") 2>&5
3350   ac_status=$?
3351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352   test $ac_status = 0; }; }; then
3353     cross_compiling=no
3354   else
3355     if test "$cross_compiling" = maybe; then
3356         cross_compiling=yes
3357     else
3358         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "cannot run C compiled programs.
3361 If you meant to cross compile, use \`--host'.
3362 See \`config.log' for more details" "$LINENO" 5; }
3363     fi
3364   fi
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3367 $as_echo "$cross_compiling" >&6; }
3368
3369 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3370 ac_clean_files=$ac_clean_files_save
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3372 $as_echo_n "checking for suffix of object files... " >&6; }
3373 if ${ac_cv_objext+:} false; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h.  */
3378
3379 int
3380 main ()
3381 {
3382
3383   ;
3384   return 0;
3385 }
3386 _ACEOF
3387 rm -f conftest.o conftest.obj
3388 if { { ac_try="$ac_compile"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395   (eval "$ac_compile") 2>&5
3396   ac_status=$?
3397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398   test $ac_status = 0; }; then :
3399   for ac_file in conftest.o conftest.obj conftest.*; do
3400   test -f "$ac_file" || continue;
3401   case $ac_file in
3402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404        break;;
3405   esac
3406 done
3407 else
3408   $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot compute suffix of object files: cannot compile
3414 See \`config.log' for more details" "$LINENO" 5; }
3415 fi
3416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3419 $as_echo "$ac_cv_objext" >&6; }
3420 OBJEXT=$ac_cv_objext
3421 ac_objext=$OBJEXT
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3423 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3424 if ${ac_cv_c_compiler_gnu+:} false; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433 #ifndef __GNUC__
3434        choke me
3435 #endif
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442   ac_compiler_gnu=yes
3443 else
3444   ac_compiler_gnu=no
3445 fi
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3448
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3451 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3452 if test $ac_compiler_gnu = yes; then
3453   GCC=yes
3454 else
3455   GCC=
3456 fi
3457 ac_test_CFLAGS=${CFLAGS+set}
3458 ac_save_CFLAGS=$CFLAGS
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3460 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3461 if ${ac_cv_prog_cc_g+:} false; then :
3462   $as_echo_n "(cached) " >&6
3463 else
3464   ac_save_c_werror_flag=$ac_c_werror_flag
3465    ac_c_werror_flag=yes
3466    ac_cv_prog_cc_g=no
3467    CFLAGS="-g"
3468    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h.  */
3470
3471 int
3472 main ()
3473 {
3474
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480   ac_cv_prog_cc_g=yes
3481 else
3482   CFLAGS=""
3483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495
3496 else
3497   ac_c_werror_flag=$ac_save_c_werror_flag
3498          CFLAGS="-g"
3499          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h.  */
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511   ac_cv_prog_cc_g=yes
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518    ac_c_werror_flag=$ac_save_c_werror_flag
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3521 $as_echo "$ac_cv_prog_cc_g" >&6; }
3522 if test "$ac_test_CFLAGS" = set; then
3523   CFLAGS=$ac_save_CFLAGS
3524 elif test $ac_cv_prog_cc_g = yes; then
3525   if test "$GCC" = yes; then
3526     CFLAGS="-g -O2"
3527   else
3528     CFLAGS="-g"
3529   fi
3530 else
3531   if test "$GCC" = yes; then
3532     CFLAGS="-O2"
3533   else
3534     CFLAGS=
3535   fi
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3538 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3539 if ${ac_cv_prog_cc_c89+:} false; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   ac_cv_prog_cc_c89=no
3543 ac_save_CC=$CC
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h.  */
3546 #include <stdarg.h>
3547 #include <stdio.h>
3548 struct stat;
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3553      char **p;
3554      int i;
3555 {
3556   return p[i];
3557 }
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3559 {
3560   char *s;
3561   va_list v;
3562   va_start (v,p);
3563   s = g (p, va_arg (v,int));
3564   va_end (v);
3565   return s;
3566 }
3567
3568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3569    function prototypes and stuff, but not '\xHH' hex character constants.
3570    These don't provoke an error unfortunately, instead are silently treated
3571    as 'x'.  The following induces an error, until -std is added to get
3572    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3573    array size at least.  It's necessary to write '\x00'==0 to get something
3574    that's true only with -std.  */
3575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578    inside strings and character constants.  */
3579 #define FOO(x) 'x'
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581
3582 int test (int i, double x);
3583 struct s1 {int (*f) (int a);};
3584 struct s2 {int (*f) (double a);};
3585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586 int argc;
3587 char **argv;
3588 int
3589 main ()
3590 {
3591 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 do
3599   CC="$ac_save_CC $ac_arg"
3600   if ac_fn_c_try_compile "$LINENO"; then :
3601   ac_cv_prog_cc_c89=$ac_arg
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext
3604   test "x$ac_cv_prog_cc_c89" != "xno" && break
3605 done
3606 rm -f conftest.$ac_ext
3607 CC=$ac_save_CC
3608
3609 fi
3610 # AC_CACHE_VAL
3611 case "x$ac_cv_prog_cc_c89" in
3612   x)
3613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614 $as_echo "none needed" >&6; } ;;
3615   xno)
3616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617 $as_echo "unsupported" >&6; } ;;
3618   *)
3619     CC="$CC $ac_cv_prog_cc_c89"
3620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3621 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3622 esac
3623 if test "x$ac_cv_prog_cc_c89" != xno; then :
3624
3625 fi
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 DEPDIR="${am__leading_dot}deps"
3633
3634 ac_config_commands="$ac_config_commands depfiles"
3635
3636
3637 am_make=${MAKE-make}
3638 cat > confinc << 'END'
3639 am__doit:
3640         @echo this is the am__doit target
3641 .PHONY: am__doit
3642 END
3643 # If we don't find an include directive, just comment out the code.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3645 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3646 am__include="#"
3647 am__quote=
3648 _am_result=none
3649 # First try GNU make style include.
3650 echo "include confinc" > confmf
3651 # Ignore all kinds of additional output from 'make'.
3652 case `$am_make -s -f confmf 2> /dev/null` in #(
3653 *the\ am__doit\ target*)
3654   am__include=include
3655   am__quote=
3656   _am_result=GNU
3657   ;;
3658 esac
3659 # Now try BSD make style include.
3660 if test "$am__include" = "#"; then
3661    echo '.include "confinc"' > confmf
3662    case `$am_make -s -f confmf 2> /dev/null` in #(
3663    *the\ am__doit\ target*)
3664      am__include=.include
3665      am__quote="\""
3666      _am_result=BSD
3667      ;;
3668    esac
3669 fi
3670
3671
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3673 $as_echo "$_am_result" >&6; }
3674 rm -f confinc confmf
3675
3676 # Check whether --enable-dependency-tracking was given.
3677 if test "${enable_dependency_tracking+set}" = set; then :
3678   enableval=$enable_dependency_tracking;
3679 fi
3680
3681 if test "x$enable_dependency_tracking" != xno; then
3682   am_depcomp="$ac_aux_dir/depcomp"
3683   AMDEPBACKSLASH='\'
3684   am__nodep='_no'
3685 fi
3686  if test "x$enable_dependency_tracking" != xno; then
3687   AMDEP_TRUE=
3688   AMDEP_FALSE='#'
3689 else
3690   AMDEP_TRUE='#'
3691   AMDEP_FALSE=
3692 fi
3693
3694
3695
3696 depcc="$CC"   am_compiler_list=
3697
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3699 $as_echo_n "checking dependency style of $depcc... " >&6; }
3700 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3701   $as_echo_n "(cached) " >&6
3702 else
3703   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3704   # We make a subdir and do the tests there.  Otherwise we can end up
3705   # making bogus files that we don't know about and never remove.  For
3706   # instance it was reported that on HP-UX the gcc test will end up
3707   # making a dummy file named 'D' -- because '-MD' means "put the output
3708   # in D".
3709   rm -rf conftest.dir
3710   mkdir conftest.dir
3711   # Copy depcomp to subdir because otherwise we won't find it if we're
3712   # using a relative directory.
3713   cp "$am_depcomp" conftest.dir
3714   cd conftest.dir
3715   # We will build objects and dependencies in a subdirectory because
3716   # it helps to detect inapplicable dependency modes.  For instance
3717   # both Tru64's cc and ICC support -MD to output dependencies as a
3718   # side effect of compilation, but ICC will put the dependencies in
3719   # the current directory while Tru64 will put them in the object
3720   # directory.
3721   mkdir sub
3722
3723   am_cv_CC_dependencies_compiler_type=none
3724   if test "$am_compiler_list" = ""; then
3725      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3726   fi
3727   am__universal=false
3728   case " $depcc " in #(
3729      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3730      esac
3731
3732   for depmode in $am_compiler_list; do
3733     # Setup a source with many dependencies, because some compilers
3734     # like to wrap large dependency lists on column 80 (with \), and
3735     # we should not choose a depcomp mode which is confused by this.
3736     #
3737     # We need to recreate these files for each test, as the compiler may
3738     # overwrite some of them when testing with obscure command lines.
3739     # This happens at least with the AIX C compiler.
3740     : > sub/conftest.c
3741     for i in 1 2 3 4 5 6; do
3742       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3743       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3744       # Solaris 10 /bin/sh.
3745       echo '/* dummy */' > sub/conftst$i.h
3746     done
3747     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3748
3749     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3750     # mode.  It turns out that the SunPro C++ compiler does not properly
3751     # handle '-M -o', and we need to detect this.  Also, some Intel
3752     # versions had trouble with output in subdirs.
3753     am__obj=sub/conftest.${OBJEXT-o}
3754     am__minus_obj="-o $am__obj"
3755     case $depmode in
3756     gcc)
3757       # This depmode causes a compiler race in universal mode.
3758       test "$am__universal" = false || continue
3759       ;;
3760     nosideeffect)
3761       # After this tag, mechanisms are not by side-effect, so they'll
3762       # only be used when explicitly requested.
3763       if test "x$enable_dependency_tracking" = xyes; then
3764         continue
3765       else
3766         break
3767       fi
3768       ;;
3769     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3770       # This compiler won't grok '-c -o', but also, the minuso test has
3771       # not run yet.  These depmodes are late enough in the game, and
3772       # so weak that their functioning should not be impacted.
3773       am__obj=conftest.${OBJEXT-o}
3774       am__minus_obj=
3775       ;;
3776     none) break ;;
3777     esac
3778     if depmode=$depmode \
3779        source=sub/conftest.c object=$am__obj \
3780        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3781        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3782          >/dev/null 2>conftest.err &&
3783        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3784        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3785        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3786        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3787       # icc doesn't choke on unknown options, it will just issue warnings
3788       # or remarks (even with -Werror).  So we grep stderr for any message
3789       # that says an option was ignored or not supported.
3790       # When given -MP, icc 7.0 and 7.1 complain thusly:
3791       #   icc: Command line warning: ignoring option '-M'; no argument required
3792       # The diagnosis changed in icc 8.0:
3793       #   icc: Command line remark: option '-MP' not supported
3794       if (grep 'ignoring option' conftest.err ||
3795           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3796         am_cv_CC_dependencies_compiler_type=$depmode
3797         break
3798       fi
3799     fi
3800   done
3801
3802   cd ..
3803   rm -rf conftest.dir
3804 else
3805   am_cv_CC_dependencies_compiler_type=none
3806 fi
3807
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3810 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3811 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3812
3813  if
3814   test "x$enable_dependency_tracking" != xno \
3815   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3816   am__fastdepCC_TRUE=
3817   am__fastdepCC_FALSE='#'
3818 else
3819   am__fastdepCC_TRUE='#'
3820   am__fastdepCC_FALSE=
3821 fi
3822
3823
3824 # By default we simply use the C compiler to build assembly code.
3825
3826 test "${CCAS+set}" = set || CCAS=$CC
3827 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3828
3829
3830
3831 depcc="$CCAS"   am_compiler_list=
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3834 $as_echo_n "checking dependency style of $depcc... " >&6; }
3835 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3839   # We make a subdir and do the tests there.  Otherwise we can end up
3840   # making bogus files that we don't know about and never remove.  For
3841   # instance it was reported that on HP-UX the gcc test will end up
3842   # making a dummy file named 'D' -- because '-MD' means "put the output
3843   # in D".
3844   rm -rf conftest.dir
3845   mkdir conftest.dir
3846   # Copy depcomp to subdir because otherwise we won't find it if we're
3847   # using a relative directory.
3848   cp "$am_depcomp" conftest.dir
3849   cd conftest.dir
3850   # We will build objects and dependencies in a subdirectory because
3851   # it helps to detect inapplicable dependency modes.  For instance
3852   # both Tru64's cc and ICC support -MD to output dependencies as a
3853   # side effect of compilation, but ICC will put the dependencies in
3854   # the current directory while Tru64 will put them in the object
3855   # directory.
3856   mkdir sub
3857
3858   am_cv_CCAS_dependencies_compiler_type=none
3859   if test "$am_compiler_list" = ""; then
3860      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3861   fi
3862   am__universal=false
3863
3864
3865   for depmode in $am_compiler_list; do
3866     # Setup a source with many dependencies, because some compilers
3867     # like to wrap large dependency lists on column 80 (with \), and
3868     # we should not choose a depcomp mode which is confused by this.
3869     #
3870     # We need to recreate these files for each test, as the compiler may
3871     # overwrite some of them when testing with obscure command lines.
3872     # This happens at least with the AIX C compiler.
3873     : > sub/conftest.c
3874     for i in 1 2 3 4 5 6; do
3875       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3877       # Solaris 10 /bin/sh.
3878       echo '/* dummy */' > sub/conftst$i.h
3879     done
3880     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881
3882     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3883     # mode.  It turns out that the SunPro C++ compiler does not properly
3884     # handle '-M -o', and we need to detect this.  Also, some Intel
3885     # versions had trouble with output in subdirs.
3886     am__obj=sub/conftest.${OBJEXT-o}
3887     am__minus_obj="-o $am__obj"
3888     case $depmode in
3889     gcc)
3890       # This depmode causes a compiler race in universal mode.
3891       test "$am__universal" = false || continue
3892       ;;
3893     nosideeffect)
3894       # After this tag, mechanisms are not by side-effect, so they'll
3895       # only be used when explicitly requested.
3896       if test "x$enable_dependency_tracking" = xyes; then
3897         continue
3898       else
3899         break
3900       fi
3901       ;;
3902     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3903       # This compiler won't grok '-c -o', but also, the minuso test has
3904       # not run yet.  These depmodes are late enough in the game, and
3905       # so weak that their functioning should not be impacted.
3906       am__obj=conftest.${OBJEXT-o}
3907       am__minus_obj=
3908       ;;
3909     none) break ;;
3910     esac
3911     if depmode=$depmode \
3912        source=sub/conftest.c object=$am__obj \
3913        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3915          >/dev/null 2>conftest.err &&
3916        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3917        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3918        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3919        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920       # icc doesn't choke on unknown options, it will just issue warnings
3921       # or remarks (even with -Werror).  So we grep stderr for any message
3922       # that says an option was ignored or not supported.
3923       # When given -MP, icc 7.0 and 7.1 complain thusly:
3924       #   icc: Command line warning: ignoring option '-M'; no argument required
3925       # The diagnosis changed in icc 8.0:
3926       #   icc: Command line remark: option '-MP' not supported
3927       if (grep 'ignoring option' conftest.err ||
3928           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929         am_cv_CCAS_dependencies_compiler_type=$depmode
3930         break
3931       fi
3932     fi
3933   done
3934
3935   cd ..
3936   rm -rf conftest.dir
3937 else
3938   am_cv_CCAS_dependencies_compiler_type=none
3939 fi
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3943 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
3944 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3945
3946  if
3947   test "x$enable_dependency_tracking" != xno \
3948   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3949   am__fastdepCCAS_TRUE=
3950   am__fastdepCCAS_FALSE='#'
3951 else
3952   am__fastdepCCAS_TRUE='#'
3953   am__fastdepCCAS_FALSE=
3954 fi
3955
3956
3957 # Make sure we can run config.sub.
3958 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3959   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3960
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3962 $as_echo_n "checking build system type... " >&6; }
3963 if ${ac_cv_build+:} false; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   ac_build_alias=$build_alias
3967 test "x$ac_build_alias" = x &&
3968   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3969 test "x$ac_build_alias" = x &&
3970   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3971 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3972   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3973
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3976 $as_echo "$ac_cv_build" >&6; }
3977 case $ac_cv_build in
3978 *-*-*) ;;
3979 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3980 esac
3981 build=$ac_cv_build
3982 ac_save_IFS=$IFS; IFS='-'
3983 set x $ac_cv_build
3984 shift
3985 build_cpu=$1
3986 build_vendor=$2
3987 shift; shift
3988 # Remember, the first character of IFS is used to create $*,
3989 # except with old shells:
3990 build_os=$*
3991 IFS=$ac_save_IFS
3992 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3993
3994
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3996 $as_echo_n "checking host system type... " >&6; }
3997 if ${ac_cv_host+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   if test "x$host_alias" = x; then
4001   ac_cv_host=$ac_cv_build
4002 else
4003   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4004     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4005 fi
4006
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4009 $as_echo "$ac_cv_host" >&6; }
4010 case $ac_cv_host in
4011 *-*-*) ;;
4012 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4013 esac
4014 host=$ac_cv_host
4015 ac_save_IFS=$IFS; IFS='-'
4016 set x $ac_cv_host
4017 shift
4018 host_cpu=$1
4019 host_vendor=$2
4020 shift; shift
4021 # Remember, the first character of IFS is used to create $*,
4022 # except with old shells:
4023 host_os=$*
4024 IFS=$ac_save_IFS
4025 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4026
4027
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4029 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4030 if ${ac_cv_path_SED+:} false; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4034      for ac_i in 1 2 3 4 5 6 7; do
4035        ac_script="$ac_script$as_nl$ac_script"
4036      done
4037      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4038      { ac_script=; unset ac_script;}
4039      if test -z "$SED"; then
4040   ac_path_SED_found=false
4041   # Loop through the user's path and test for each of PROGNAME-LIST
4042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047     for ac_prog in sed gsed; do
4048     for ac_exec_ext in '' $ac_executable_extensions; do
4049       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4050       as_fn_executable_p "$ac_path_SED" || continue
4051 # Check for GNU ac_path_SED and select it if it is found.
4052   # Check for GNU $ac_path_SED
4053 case `"$ac_path_SED" --version 2>&1` in
4054 *GNU*)
4055   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4056 *)
4057   ac_count=0
4058   $as_echo_n 0123456789 >"conftest.in"
4059   while :
4060   do
4061     cat "conftest.in" "conftest.in" >"conftest.tmp"
4062     mv "conftest.tmp" "conftest.in"
4063     cp "conftest.in" "conftest.nl"
4064     $as_echo '' >> "conftest.nl"
4065     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067     as_fn_arith $ac_count + 1 && ac_count=$as_val
4068     if test $ac_count -gt ${ac_path_SED_max-0}; then
4069       # Best one so far, save it but keep looking for a better one
4070       ac_cv_path_SED="$ac_path_SED"
4071       ac_path_SED_max=$ac_count
4072     fi
4073     # 10*(2^10) chars as input seems more than enough
4074     test $ac_count -gt 10 && break
4075   done
4076   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077 esac
4078
4079       $ac_path_SED_found && break 3
4080     done
4081   done
4082   done
4083 IFS=$as_save_IFS
4084   if test -z "$ac_cv_path_SED"; then
4085     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4086   fi
4087 else
4088   ac_cv_path_SED=$SED
4089 fi
4090
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4093 $as_echo "$ac_cv_path_SED" >&6; }
4094  SED="$ac_cv_path_SED"
4095   rm -f conftest.sed
4096
4097 test -z "$SED" && SED=sed
4098 Xsed="$SED -e 1s/^X//"
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4111 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4112 if ${ac_cv_path_GREP+:} false; then :
4113   $as_echo_n "(cached) " >&6
4114 else
4115   if test -z "$GREP"; then
4116   ac_path_GREP_found=false
4117   # Loop through the user's path and test for each of PROGNAME-LIST
4118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120 do
4121   IFS=$as_save_IFS
4122   test -z "$as_dir" && as_dir=.
4123     for ac_prog in grep ggrep; do
4124     for ac_exec_ext in '' $ac_executable_extensions; do
4125       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4126       as_fn_executable_p "$ac_path_GREP" || continue
4127 # Check for GNU ac_path_GREP and select it if it is found.
4128   # Check for GNU $ac_path_GREP
4129 case `"$ac_path_GREP" --version 2>&1` in
4130 *GNU*)
4131   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4132 *)
4133   ac_count=0
4134   $as_echo_n 0123456789 >"conftest.in"
4135   while :
4136   do
4137     cat "conftest.in" "conftest.in" >"conftest.tmp"
4138     mv "conftest.tmp" "conftest.in"
4139     cp "conftest.in" "conftest.nl"
4140     $as_echo 'GREP' >> "conftest.nl"
4141     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143     as_fn_arith $ac_count + 1 && ac_count=$as_val
4144     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4145       # Best one so far, save it but keep looking for a better one
4146       ac_cv_path_GREP="$ac_path_GREP"
4147       ac_path_GREP_max=$ac_count
4148     fi
4149     # 10*(2^10) chars as input seems more than enough
4150     test $ac_count -gt 10 && break
4151   done
4152   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153 esac
4154
4155       $ac_path_GREP_found && break 3
4156     done
4157   done
4158   done
4159 IFS=$as_save_IFS
4160   if test -z "$ac_cv_path_GREP"; then
4161     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162   fi
4163 else
4164   ac_cv_path_GREP=$GREP
4165 fi
4166
4167 fi
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4169 $as_echo "$ac_cv_path_GREP" >&6; }
4170  GREP="$ac_cv_path_GREP"
4171
4172
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4174 $as_echo_n "checking for egrep... " >&6; }
4175 if ${ac_cv_path_EGREP+:} false; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179    then ac_cv_path_EGREP="$GREP -E"
4180    else
4181      if test -z "$EGREP"; then
4182   ac_path_EGREP_found=false
4183   # Loop through the user's path and test for each of PROGNAME-LIST
4184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189     for ac_prog in egrep; do
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4192       as_fn_executable_p "$ac_path_EGREP" || continue
4193 # Check for GNU ac_path_EGREP and select it if it is found.
4194   # Check for GNU $ac_path_EGREP
4195 case `"$ac_path_EGREP" --version 2>&1` in
4196 *GNU*)
4197   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4198 *)
4199   ac_count=0
4200   $as_echo_n 0123456789 >"conftest.in"
4201   while :
4202   do
4203     cat "conftest.in" "conftest.in" >"conftest.tmp"
4204     mv "conftest.tmp" "conftest.in"
4205     cp "conftest.in" "conftest.nl"
4206     $as_echo 'EGREP' >> "conftest.nl"
4207     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209     as_fn_arith $ac_count + 1 && ac_count=$as_val
4210     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4211       # Best one so far, save it but keep looking for a better one
4212       ac_cv_path_EGREP="$ac_path_EGREP"
4213       ac_path_EGREP_max=$ac_count
4214     fi
4215     # 10*(2^10) chars as input seems more than enough
4216     test $ac_count -gt 10 && break
4217   done
4218   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219 esac
4220
4221       $ac_path_EGREP_found && break 3
4222     done
4223   done
4224   done
4225 IFS=$as_save_IFS
4226   if test -z "$ac_cv_path_EGREP"; then
4227     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4228   fi
4229 else
4230   ac_cv_path_EGREP=$EGREP
4231 fi
4232
4233    fi
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4236 $as_echo "$ac_cv_path_EGREP" >&6; }
4237  EGREP="$ac_cv_path_EGREP"
4238
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4241 $as_echo_n "checking for fgrep... " >&6; }
4242 if ${ac_cv_path_FGREP+:} false; then :
4243   $as_echo_n "(cached) " >&6
4244 else
4245   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4246    then ac_cv_path_FGREP="$GREP -F"
4247    else
4248      if test -z "$FGREP"; then
4249   ac_path_FGREP_found=false
4250   # Loop through the user's path and test for each of PROGNAME-LIST
4251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256     for ac_prog in fgrep; do
4257     for ac_exec_ext in '' $ac_executable_extensions; do
4258       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4259       as_fn_executable_p "$ac_path_FGREP" || continue
4260 # Check for GNU ac_path_FGREP and select it if it is found.
4261   # Check for GNU $ac_path_FGREP
4262 case `"$ac_path_FGREP" --version 2>&1` in
4263 *GNU*)
4264   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4265 *)
4266   ac_count=0
4267   $as_echo_n 0123456789 >"conftest.in"
4268   while :
4269   do
4270     cat "conftest.in" "conftest.in" >"conftest.tmp"
4271     mv "conftest.tmp" "conftest.in"
4272     cp "conftest.in" "conftest.nl"
4273     $as_echo 'FGREP' >> "conftest.nl"
4274     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276     as_fn_arith $ac_count + 1 && ac_count=$as_val
4277     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4278       # Best one so far, save it but keep looking for a better one
4279       ac_cv_path_FGREP="$ac_path_FGREP"
4280       ac_path_FGREP_max=$ac_count
4281     fi
4282     # 10*(2^10) chars as input seems more than enough
4283     test $ac_count -gt 10 && break
4284   done
4285   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286 esac
4287
4288       $ac_path_FGREP_found && break 3
4289     done
4290   done
4291   done
4292 IFS=$as_save_IFS
4293   if test -z "$ac_cv_path_FGREP"; then
4294     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295   fi
4296 else
4297   ac_cv_path_FGREP=$FGREP
4298 fi
4299
4300    fi
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4303 $as_echo "$ac_cv_path_FGREP" >&6; }
4304  FGREP="$ac_cv_path_FGREP"
4305
4306
4307 test -z "$GREP" && GREP=grep
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4326 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4327 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4330 $as_echo_n "checking how to print strings... " >&6; }
4331 # Test print first, because it will be a builtin if present.
4332 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4333    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4334   ECHO='print -r --'
4335 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4336   ECHO='printf %s\n'
4337 else
4338   # Use this function as a fallback that always works.
4339   func_fallback_echo ()
4340   {
4341     eval 'cat <<_LTECHO_EOF
4342 $1
4343 _LTECHO_EOF'
4344   }
4345   ECHO='func_fallback_echo'
4346 fi
4347
4348 # func_echo_all arg...
4349 # Invoke $ECHO with all args, space-separated.
4350 func_echo_all ()
4351 {
4352     $ECHO ""
4353 }
4354
4355 case "$ECHO" in
4356   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4357 $as_echo "printf" >&6; } ;;
4358   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4359 $as_echo "print -r" >&6; } ;;
4360   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4361 $as_echo "cat" >&6; } ;;
4362 esac
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379 # Check whether --with-gnu-ld was given.
4380 if test "${with_gnu_ld+set}" = set; then :
4381   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4382 else
4383   with_gnu_ld=no
4384 fi
4385
4386 ac_prog=ld
4387 if test "$GCC" = yes; then
4388   # Check if gcc -print-prog-name=ld gives a path.
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4390 $as_echo_n "checking for ld used by $CC... " >&6; }
4391   case $host in
4392   *-*-mingw*)
4393     # gcc leaves a trailing carriage return which upsets mingw
4394     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4395   *)
4396     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4397   esac
4398   case $ac_prog in
4399     # Accept absolute paths.
4400     [\\/]* | ?:[\\/]*)
4401       re_direlt='/[^/][^/]*/\.\./'
4402       # Canonicalize the pathname of ld
4403       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4404       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4405         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4406       done
4407       test -z "$LD" && LD="$ac_prog"
4408       ;;
4409   "")
4410     # If it fails, then pretend we aren't using GCC.
4411     ac_prog=ld
4412     ;;
4413   *)
4414     # If it is relative, then search for the first ld in PATH.
4415     with_gnu_ld=unknown
4416     ;;
4417   esac
4418 elif test "$with_gnu_ld" = yes; then
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4420 $as_echo_n "checking for GNU ld... " >&6; }
4421 else
4422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4423 $as_echo_n "checking for non-GNU ld... " >&6; }
4424 fi
4425 if ${lt_cv_path_LD+:} false; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   if test -z "$LD"; then
4429   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4430   for ac_dir in $PATH; do
4431     IFS="$lt_save_ifs"
4432     test -z "$ac_dir" && ac_dir=.
4433     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4434       lt_cv_path_LD="$ac_dir/$ac_prog"
4435       # Check to see if the program is GNU ld.  I'd rather use --version,
4436       # but apparently some variants of GNU ld only accept -v.
4437       # Break only if it was the GNU/non-GNU ld that we prefer.
4438       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4439       *GNU* | *'with BFD'*)
4440         test "$with_gnu_ld" != no && break
4441         ;;
4442       *)
4443         test "$with_gnu_ld" != yes && break
4444         ;;
4445       esac
4446     fi
4447   done
4448   IFS="$lt_save_ifs"
4449 else
4450   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4451 fi
4452 fi
4453
4454 LD="$lt_cv_path_LD"
4455 if test -n "$LD"; then
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4457 $as_echo "$LD" >&6; }
4458 else
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4461 fi
4462 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4464 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4465 if ${lt_cv_prog_gnu_ld+:} false; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4469 case `$LD -v 2>&1 </dev/null` in
4470 *GNU* | *'with BFD'*)
4471   lt_cv_prog_gnu_ld=yes
4472   ;;
4473 *)
4474   lt_cv_prog_gnu_ld=no
4475   ;;
4476 esac
4477 fi
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4479 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4480 with_gnu_ld=$lt_cv_prog_gnu_ld
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490 ac_ext=c
4491 ac_cpp='$CPP $CPPFLAGS'
4492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4496 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4497 # On Suns, sometimes $CPP names a directory.
4498 if test -n "$CPP" && test -d "$CPP"; then
4499   CPP=
4500 fi
4501 if test -z "$CPP"; then
4502   if ${ac_cv_prog_CPP+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505       # Double quotes because CPP needs to be expanded
4506     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4507     do
4508       ac_preproc_ok=false
4509 for ac_c_preproc_warn_flag in '' yes
4510 do
4511   # Use a header file that comes with gcc, so configuring glibc
4512   # with a fresh cross-compiler works.
4513   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4514   # <limits.h> exists even on freestanding compilers.
4515   # On the NeXT, cc -E runs the code through the compiler's parser,
4516   # not just through cpp. "Syntax error" is here to catch this case.
4517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h.  */
4519 #ifdef __STDC__
4520 # include <limits.h>
4521 #else
4522 # include <assert.h>
4523 #endif
4524                      Syntax error
4525 _ACEOF
4526 if ac_fn_c_try_cpp "$LINENO"; then :
4527
4528 else
4529   # Broken: fails on valid input.
4530 continue
4531 fi
4532 rm -f conftest.err conftest.i conftest.$ac_ext
4533
4534   # OK, works on sane cases.  Now check whether nonexistent headers
4535   # can be detected and how.
4536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h.  */
4538 #include <ac_nonexistent.h>
4539 _ACEOF
4540 if ac_fn_c_try_cpp "$LINENO"; then :
4541   # Broken: success on invalid input.
4542 continue
4543 else
4544   # Passes both tests.
4545 ac_preproc_ok=:
4546 break
4547 fi
4548 rm -f conftest.err conftest.i conftest.$ac_ext
4549
4550 done
4551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4552 rm -f conftest.i conftest.err conftest.$ac_ext
4553 if $ac_preproc_ok; then :
4554   break
4555 fi
4556
4557     done
4558     ac_cv_prog_CPP=$CPP
4559
4560 fi
4561   CPP=$ac_cv_prog_CPP
4562 else
4563   ac_cv_prog_CPP=$CPP
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4566 $as_echo "$CPP" >&6; }
4567 ac_preproc_ok=false
4568 for ac_c_preproc_warn_flag in '' yes
4569 do
4570   # Use a header file that comes with gcc, so configuring glibc
4571   # with a fresh cross-compiler works.
4572   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4573   # <limits.h> exists even on freestanding compilers.
4574   # On the NeXT, cc -E runs the code through the compiler's parser,
4575   # not just through cpp. "Syntax error" is here to catch this case.
4576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h.  */
4578 #ifdef __STDC__
4579 # include <limits.h>
4580 #else
4581 # include <assert.h>
4582 #endif
4583                      Syntax error
4584 _ACEOF
4585 if ac_fn_c_try_cpp "$LINENO"; then :
4586
4587 else
4588   # Broken: fails on valid input.
4589 continue
4590 fi
4591 rm -f conftest.err conftest.i conftest.$ac_ext
4592
4593   # OK, works on sane cases.  Now check whether nonexistent headers
4594   # can be detected and how.
4595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h.  */
4597 #include <ac_nonexistent.h>
4598 _ACEOF
4599 if ac_fn_c_try_cpp "$LINENO"; then :
4600   # Broken: success on invalid input.
4601 continue
4602 else
4603   # Passes both tests.
4604 ac_preproc_ok=:
4605 break
4606 fi
4607 rm -f conftest.err conftest.i conftest.$ac_ext
4608
4609 done
4610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4611 rm -f conftest.i conftest.err conftest.$ac_ext
4612 if $ac_preproc_ok; then :
4613
4614 else
4615   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4617 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4618 See \`config.log' for more details" "$LINENO" 5; }
4619 fi
4620
4621 ac_ext=c
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626
4627 for ac_prog in gawk mawk nawk awk
4628 do
4629   # Extract the first word of "$ac_prog", so it can be a program name with args.
4630 set dummy $ac_prog; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_AWK+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   if test -n "$AWK"; then
4637   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644     for ac_exec_ext in '' $ac_executable_extensions; do
4645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646     ac_cv_prog_AWK="$ac_prog"
4647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648     break 2
4649   fi
4650 done
4651   done
4652 IFS=$as_save_IFS
4653
4654 fi
4655 fi
4656 AWK=$ac_cv_prog_AWK
4657 if test -n "$AWK"; then
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4659 $as_echo "$AWK" >&6; }
4660 else
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4663 fi
4664
4665
4666   test -n "$AWK" && break
4667 done
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4671 $as_echo_n "checking whether ln -s works... " >&6; }
4672 LN_S=$as_ln_s
4673 if test "$LN_S" = "ln -s"; then
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4675 $as_echo "yes" >&6; }
4676 else
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4678 $as_echo "no, using $LN_S" >&6; }
4679 fi
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4682 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4683 set x ${MAKE-make}
4684 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4685 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   cat >conftest.make <<\_ACEOF
4689 SHELL = /bin/sh
4690 all:
4691         @echo '@@@%%%=$(MAKE)=@@@%%%'
4692 _ACEOF
4693 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4694 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4695   *@@@%%%=?*=@@@%%%*)
4696     eval ac_cv_prog_make_${ac_make}_set=yes;;
4697   *)
4698     eval ac_cv_prog_make_${ac_make}_set=no;;
4699 esac
4700 rm -f conftest.make
4701 fi
4702 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4704 $as_echo "yes" >&6; }
4705   SET_MAKE=
4706 else
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709   SET_MAKE="MAKE=${MAKE-make}"
4710 fi
4711
4712
4713 case `pwd` in
4714   *\ * | *\     *)
4715     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4716 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4717 esac
4718
4719
4720
4721 macro_version='2.4.2'
4722 macro_revision='1.3337'
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736 ltmain="$ac_aux_dir/ltmain.sh"
4737
4738 # Backslashify metacharacters that are still active within
4739 # double-quoted strings.
4740 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4741
4742 # Same as above, but do not quote variable references.
4743 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4744
4745 # Sed substitution to delay expansion of an escaped shell variable in a
4746 # double_quote_subst'ed string.
4747 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4748
4749 # Sed substitution to delay expansion of an escaped single quote.
4750 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4751
4752 # Sed substitution to avoid accidental globbing in evaled expressions
4753 no_glob_subst='s/\*/\\\*/g'
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4756 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4757 if ${lt_cv_path_NM+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test -n "$NM"; then
4761   # Let the user override the test.
4762   lt_cv_path_NM="$NM"
4763 else
4764   lt_nm_to_check="${ac_tool_prefix}nm"
4765   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4766     lt_nm_to_check="$lt_nm_to_check nm"
4767   fi
4768   for lt_tmp_nm in $lt_nm_to_check; do
4769     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4770     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4771       IFS="$lt_save_ifs"
4772       test -z "$ac_dir" && ac_dir=.
4773       tmp_nm="$ac_dir/$lt_tmp_nm"
4774       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4775         # Check to see if the nm accepts a BSD-compat flag.
4776         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4777         #   nm: unknown option "B" ignored
4778         # Tru64's nm complains that /dev/null is an invalid object file
4779         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4780         */dev/null* | *'Invalid file or object type'*)
4781           lt_cv_path_NM="$tmp_nm -B"
4782           break
4783           ;;
4784         *)
4785           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4786           */dev/null*)
4787             lt_cv_path_NM="$tmp_nm -p"
4788             break
4789             ;;
4790           *)
4791             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4792             continue # so that we can try to find one that supports BSD flags
4793             ;;
4794           esac
4795           ;;
4796         esac
4797       fi
4798     done
4799     IFS="$lt_save_ifs"
4800   done
4801   : ${lt_cv_path_NM=no}
4802 fi
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4805 $as_echo "$lt_cv_path_NM" >&6; }
4806 if test "$lt_cv_path_NM" != "no"; then
4807   NM="$lt_cv_path_NM"
4808 else
4809   # Didn't find any BSD compatible name lister, look for dumpbin.
4810   if test -n "$DUMPBIN"; then :
4811     # Let the user override the test.
4812   else
4813     if test -n "$ac_tool_prefix"; then
4814   for ac_prog in dumpbin "link -dump"
4815   do
4816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_prog_DUMPBIN+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   if test -n "$DUMPBIN"; then
4824   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831     for ac_exec_ext in '' $ac_executable_extensions; do
4832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838   done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 DUMPBIN=$ac_cv_prog_DUMPBIN
4844 if test -n "$DUMPBIN"; then
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4846 $as_echo "$DUMPBIN" >&6; }
4847 else
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852
4853     test -n "$DUMPBIN" && break
4854   done
4855 fi
4856 if test -z "$DUMPBIN"; then
4857   ac_ct_DUMPBIN=$DUMPBIN
4858   for ac_prog in dumpbin "link -dump"
4859 do
4860   # Extract the first word of "$ac_prog", so it can be a program name with args.
4861 set dummy $ac_prog; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   if test -n "$ac_ct_DUMPBIN"; then
4868   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875     for ac_exec_ext in '' $ac_executable_extensions; do
4876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882   done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4888 if test -n "$ac_ct_DUMPBIN"; then
4889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4890 $as_echo "$ac_ct_DUMPBIN" >&6; }
4891 else
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896
4897   test -n "$ac_ct_DUMPBIN" && break
4898 done
4899
4900   if test "x$ac_ct_DUMPBIN" = x; then
4901     DUMPBIN=":"
4902   else
4903     case $cross_compiling:$ac_tool_warned in
4904 yes:)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909     DUMPBIN=$ac_ct_DUMPBIN
4910   fi
4911 fi
4912
4913     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4914     *COFF*)
4915       DUMPBIN="$DUMPBIN -symbols"
4916       ;;
4917     *)
4918       DUMPBIN=:
4919       ;;
4920     esac
4921   fi
4922
4923   if test "$DUMPBIN" != ":"; then
4924     NM="$DUMPBIN"
4925   fi
4926 fi
4927 test -z "$NM" && NM=nm
4928
4929
4930
4931
4932
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4935 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4936 if ${lt_cv_nm_interface+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   lt_cv_nm_interface="BSD nm"
4940   echo "int some_variable = 0;" > conftest.$ac_ext
4941   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4942   (eval "$ac_compile" 2>conftest.err)
4943   cat conftest.err >&5
4944   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4945   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4946   cat conftest.err >&5
4947   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4948   cat conftest.out >&5
4949   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4950     lt_cv_nm_interface="MS dumpbin"
4951   fi
4952   rm -f conftest*
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4955 $as_echo "$lt_cv_nm_interface" >&6; }
4956
4957 # find the maximum length of command line arguments
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4959 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4960 if ${lt_cv_sys_max_cmd_len+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963     i=0
4964   teststring="ABCD"
4965
4966   case $build_os in
4967   msdosdjgpp*)
4968     # On DJGPP, this test can blow up pretty badly due to problems in libc
4969     # (any single argument exceeding 2000 bytes causes a buffer overrun
4970     # during glob expansion).  Even if it were fixed, the result of this
4971     # check would be larger than it should be.
4972     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4973     ;;
4974
4975   gnu*)
4976     # Under GNU Hurd, this test is not required because there is
4977     # no limit to the length of command line arguments.
4978     # Libtool will interpret -1 as no limit whatsoever
4979     lt_cv_sys_max_cmd_len=-1;
4980     ;;
4981
4982   cygwin* | mingw* | cegcc*)
4983     # On Win9x/ME, this test blows up -- it succeeds, but takes
4984     # about 5 minutes as the teststring grows exponentially.
4985     # Worse, since 9x/ME are not pre-emptively multitasking,
4986     # you end up with a "frozen" computer, even though with patience
4987     # the test eventually succeeds (with a max line length of 256k).
4988     # Instead, let's just punt: use the minimum linelength reported by
4989     # all of the supported platforms: 8192 (on NT/2K/XP).
4990     lt_cv_sys_max_cmd_len=8192;
4991     ;;
4992
4993   mint*)
4994     # On MiNT this can take a long time and run out of memory.
4995     lt_cv_sys_max_cmd_len=8192;
4996     ;;
4997
4998   amigaos*)
4999     # On AmigaOS with pdksh, this test takes hours, literally.
5000     # So we just punt and use a minimum line length of 8192.
5001     lt_cv_sys_max_cmd_len=8192;
5002     ;;
5003
5004   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5005     # This has been around since 386BSD, at least.  Likely further.
5006     if test -x /sbin/sysctl; then
5007       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5008     elif test -x /usr/sbin/sysctl; then
5009       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5010     else
5011       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5012     fi
5013     # And add a safety zone
5014     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5015     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5016     ;;
5017
5018   interix*)
5019     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5020     lt_cv_sys_max_cmd_len=196608
5021     ;;
5022
5023   os2*)
5024     # The test takes a long time on OS/2.
5025     lt_cv_sys_max_cmd_len=8192
5026     ;;
5027
5028   osf*)
5029     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5030     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5031     # nice to cause kernel panics so lets avoid the loop below.
5032     # First set a reasonable default.
5033     lt_cv_sys_max_cmd_len=16384
5034     #
5035     if test -x /sbin/sysconfig; then
5036       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5037         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5038       esac
5039     fi
5040     ;;
5041   sco3.2v5*)
5042     lt_cv_sys_max_cmd_len=102400
5043     ;;
5044   sysv5* | sco5v6* | sysv4.2uw2*)
5045     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5046     if test -n "$kargmax"; then
5047       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5048     else
5049       lt_cv_sys_max_cmd_len=32768
5050     fi
5051     ;;
5052   *)
5053     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5054     if test -n "$lt_cv_sys_max_cmd_len"; then
5055       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5056       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5057     else
5058       # Make teststring a little bigger before we do anything with it.
5059       # a 1K string should be a reasonable start.
5060       for i in 1 2 3 4 5 6 7 8 ; do
5061         teststring=$teststring$teststring
5062       done
5063       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5064       # If test is not a shell built-in, we'll probably end up computing a
5065       # maximum length that is only half of the actual maximum length, but
5066       # we can't tell.
5067       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5068                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5069               test $i != 17 # 1/2 MB should be enough
5070       do
5071         i=`expr $i + 1`
5072         teststring=$teststring$teststring
5073       done
5074       # Only check the string length outside the loop.
5075       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5076       teststring=
5077       # Add a significant safety factor because C++ compilers can tack on
5078       # massive amounts of additional arguments before passing them to the
5079       # linker.  It appears as though 1/2 is a usable value.
5080       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5081     fi
5082     ;;
5083   esac
5084
5085 fi
5086
5087 if test -n $lt_cv_sys_max_cmd_len ; then
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5089 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5090 else
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5092 $as_echo "none" >&6; }
5093 fi
5094 max_cmd_len=$lt_cv_sys_max_cmd_len
5095
5096
5097
5098
5099
5100
5101 : ${CP="cp -f"}
5102 : ${MV="mv -f"}
5103 : ${RM="rm -f"}
5104
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5106 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5107 # Try some XSI features
5108 xsi_shell=no
5109 ( _lt_dummy="a/b/c"
5110   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5111       = c,a/b,b/c, \
5112     && eval 'test $(( 1 + 1 )) -eq 2 \
5113     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5114   && xsi_shell=yes
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5116 $as_echo "$xsi_shell" >&6; }
5117
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5120 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5121 lt_shell_append=no
5122 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5123     >/dev/null 2>&1 \
5124   && lt_shell_append=yes
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5126 $as_echo "$lt_shell_append" >&6; }
5127
5128
5129 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5130   lt_unset=unset
5131 else
5132   lt_unset=false
5133 fi
5134
5135
5136
5137
5138
5139 # test EBCDIC or ASCII
5140 case `echo X|tr X '\101'` in
5141  A) # ASCII based system
5142     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5143   lt_SP2NL='tr \040 \012'
5144   lt_NL2SP='tr \015\012 \040\040'
5145   ;;
5146  *) # EBCDIC based system
5147   lt_SP2NL='tr \100 \n'
5148   lt_NL2SP='tr \r\n \100\100'
5149   ;;
5150 esac
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5161 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5162 if ${lt_cv_to_host_file_cmd+:} false; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   case $host in
5166   *-*-mingw* )
5167     case $build in
5168       *-*-mingw* ) # actually msys
5169         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5170         ;;
5171       *-*-cygwin* )
5172         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5173         ;;
5174       * ) # otherwise, assume *nix
5175         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5176         ;;
5177     esac
5178     ;;
5179   *-*-cygwin* )
5180     case $build in
5181       *-*-mingw* ) # actually msys
5182         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5183         ;;
5184       *-*-cygwin* )
5185         lt_cv_to_host_file_cmd=func_convert_file_noop
5186         ;;
5187       * ) # otherwise, assume *nix
5188         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5189         ;;
5190     esac
5191     ;;
5192   * ) # unhandled hosts (and "normal" native builds)
5193     lt_cv_to_host_file_cmd=func_convert_file_noop
5194     ;;
5195 esac
5196
5197 fi
5198
5199 to_host_file_cmd=$lt_cv_to_host_file_cmd
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5201 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5202
5203
5204
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5208 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5209 if ${lt_cv_to_tool_file_cmd+:} false; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212   #assume ordinary cross tools, or native build.
5213 lt_cv_to_tool_file_cmd=func_convert_file_noop
5214 case $host in
5215   *-*-mingw* )
5216     case $build in
5217       *-*-mingw* ) # actually msys
5218         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5219         ;;
5220     esac
5221     ;;
5222 esac
5223
5224 fi
5225
5226 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5228 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5229
5230
5231
5232
5233
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5235 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5236 if ${lt_cv_ld_reload_flag+:} false; then :
5237   $as_echo_n "(cached) " >&6
5238 else
5239   lt_cv_ld_reload_flag='-r'
5240 fi
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5242 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5243 reload_flag=$lt_cv_ld_reload_flag
5244 case $reload_flag in
5245 "" | " "*) ;;
5246 *) reload_flag=" $reload_flag" ;;
5247 esac
5248 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5249 case $host_os in
5250   cygwin* | mingw* | pw32* | cegcc*)
5251     if test "$GCC" != yes; then
5252       reload_cmds=false
5253     fi
5254     ;;
5255   darwin*)
5256     if test "$GCC" = yes; then
5257       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5258     else
5259       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5260     fi
5261     ;;
5262 esac
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 if test -n "$ac_tool_prefix"; then
5273   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5274 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_OBJDUMP+:} false; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   if test -n "$OBJDUMP"; then
5281   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288     for ac_exec_ext in '' $ac_executable_extensions; do
5289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295   done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 OBJDUMP=$ac_cv_prog_OBJDUMP
5301 if test -n "$OBJDUMP"; then
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5303 $as_echo "$OBJDUMP" >&6; }
5304 else
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309
5310 fi
5311 if test -z "$ac_cv_prog_OBJDUMP"; then
5312   ac_ct_OBJDUMP=$OBJDUMP
5313   # Extract the first word of "objdump", so it can be a program name with args.
5314 set dummy objdump; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if test -n "$ac_ct_OBJDUMP"; then
5321   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326   IFS=$as_save_IFS
5327   test -z "$as_dir" && as_dir=.
5328     for ac_exec_ext in '' $ac_executable_extensions; do
5329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332     break 2
5333   fi
5334 done
5335   done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5341 if test -n "$ac_ct_OBJDUMP"; then
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5343 $as_echo "$ac_ct_OBJDUMP" >&6; }
5344 else
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349   if test "x$ac_ct_OBJDUMP" = x; then
5350     OBJDUMP="false"
5351   else
5352     case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5357 esac
5358     OBJDUMP=$ac_ct_OBJDUMP
5359   fi
5360 else
5361   OBJDUMP="$ac_cv_prog_OBJDUMP"
5362 fi
5363
5364 test -z "$OBJDUMP" && OBJDUMP=objdump
5365
5366
5367
5368
5369
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5372 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5373 if ${lt_cv_deplibs_check_method+:} false; then :
5374   $as_echo_n "(cached) " >&6
5375 else
5376   lt_cv_file_magic_cmd='$MAGIC_CMD'
5377 lt_cv_file_magic_test_file=
5378 lt_cv_deplibs_check_method='unknown'
5379 # Need to set the preceding variable on all platforms that support
5380 # interlibrary dependencies.
5381 # 'none' -- dependencies not supported.
5382 # `unknown' -- same as none, but documents that we really don't know.
5383 # 'pass_all' -- all dependencies passed with no checks.
5384 # 'test_compile' -- check by making test program.
5385 # 'file_magic [[regex]]' -- check by looking for files in library path
5386 # which responds to the $file_magic_cmd with a given extended regex.
5387 # If you have `file' or equivalent on your system and you're not sure
5388 # whether `pass_all' will *always* work, you probably want this one.
5389
5390 case $host_os in
5391 aix[4-9]*)
5392   lt_cv_deplibs_check_method=pass_all
5393   ;;
5394
5395 beos*)
5396   lt_cv_deplibs_check_method=pass_all
5397   ;;
5398
5399 bsdi[45]*)
5400   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5401   lt_cv_file_magic_cmd='/usr/bin/file -L'
5402   lt_cv_file_magic_test_file=/shlib/libc.so
5403   ;;
5404
5405 cygwin*)
5406   # func_win32_libid is a shell function defined in ltmain.sh
5407   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5408   lt_cv_file_magic_cmd='func_win32_libid'
5409   ;;
5410
5411 mingw* | pw32*)
5412   # Base MSYS/MinGW do not provide the 'file' command needed by
5413   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5414   # unless we find 'file', for example because we are cross-compiling.
5415   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5416   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5417     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5418     lt_cv_file_magic_cmd='func_win32_libid'
5419   else
5420     # Keep this pattern in sync with the one in func_win32_libid.
5421     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5422     lt_cv_file_magic_cmd='$OBJDUMP -f'
5423   fi
5424   ;;
5425
5426 cegcc*)
5427   # use the weaker test based on 'objdump'. See mingw*.
5428   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5429   lt_cv_file_magic_cmd='$OBJDUMP -f'
5430   ;;
5431
5432 darwin* | rhapsody*)
5433   lt_cv_deplibs_check_method=pass_all
5434   ;;
5435
5436 freebsd* | dragonfly*)
5437   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5438     case $host_cpu in
5439     i*86 )
5440       # Not sure whether the presence of OpenBSD here was a mistake.
5441       # Let's accept both of them until this is cleared up.
5442       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5443       lt_cv_file_magic_cmd=/usr/bin/file
5444       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5445       ;;
5446     esac
5447   else
5448     lt_cv_deplibs_check_method=pass_all
5449   fi
5450   ;;
5451
5452 gnu*)
5453   lt_cv_deplibs_check_method=pass_all
5454   ;;
5455
5456 haiku*)
5457   lt_cv_deplibs_check_method=pass_all
5458   ;;
5459
5460 hpux10.20* | hpux11*)
5461   lt_cv_file_magic_cmd=/usr/bin/file
5462   case $host_cpu in
5463   ia64*)
5464     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5465     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5466     ;;
5467   hppa*64*)
5468     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]'
5469     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5470     ;;
5471   *)
5472     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5473     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5474     ;;
5475   esac
5476   ;;
5477
5478 interix[3-9]*)
5479   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5480   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5481   ;;
5482
5483 irix5* | irix6* | nonstopux*)
5484   case $LD in
5485   *-32|*"-32 ") libmagic=32-bit;;
5486   *-n32|*"-n32 ") libmagic=N32;;
5487   *-64|*"-64 ") libmagic=64-bit;;
5488   *) libmagic=never-match;;
5489   esac
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492
5493 # This must be glibc/ELF.
5494 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5495   lt_cv_deplibs_check_method=pass_all
5496   ;;
5497
5498 netbsd*)
5499   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5500     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5501   else
5502     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5503   fi
5504   ;;
5505
5506 newos6*)
5507   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5508   lt_cv_file_magic_cmd=/usr/bin/file
5509   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5510   ;;
5511
5512 *nto* | *qnx*)
5513   lt_cv_deplibs_check_method=pass_all
5514   ;;
5515
5516 openbsd*)
5517   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5518     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5519   else
5520     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5521   fi
5522   ;;
5523
5524 osf3* | osf4* | osf5*)
5525   lt_cv_deplibs_check_method=pass_all
5526   ;;
5527
5528 rdos*)
5529   lt_cv_deplibs_check_method=pass_all
5530   ;;
5531
5532 solaris*)
5533   lt_cv_deplibs_check_method=pass_all
5534   ;;
5535
5536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5537   lt_cv_deplibs_check_method=pass_all
5538   ;;
5539
5540 sysv4 | sysv4.3*)
5541   case $host_vendor in
5542   motorola)
5543     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]'
5544     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5545     ;;
5546   ncr)
5547     lt_cv_deplibs_check_method=pass_all
5548     ;;
5549   sequent)
5550     lt_cv_file_magic_cmd='/bin/file'
5551     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5552     ;;
5553   sni)
5554     lt_cv_file_magic_cmd='/bin/file'
5555     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5556     lt_cv_file_magic_test_file=/lib/libc.so
5557     ;;
5558   siemens)
5559     lt_cv_deplibs_check_method=pass_all
5560     ;;
5561   pc)
5562     lt_cv_deplibs_check_method=pass_all
5563     ;;
5564   esac
5565   ;;
5566
5567 tpf*)
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570 esac
5571
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5574 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5575
5576 file_magic_glob=
5577 want_nocaseglob=no
5578 if test "$build" = "$host"; then
5579   case $host_os in
5580   mingw* | pw32*)
5581     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5582       want_nocaseglob=yes
5583     else
5584       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5585     fi
5586     ;;
5587   esac
5588 fi
5589
5590 file_magic_cmd=$lt_cv_file_magic_cmd
5591 deplibs_check_method=$lt_cv_deplibs_check_method
5592 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615 if test -n "$ac_tool_prefix"; then
5616   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_DLLTOOL+:} false; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   if test -n "$DLLTOOL"; then
5624   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 DLLTOOL=$ac_cv_prog_DLLTOOL
5644 if test -n "$DLLTOOL"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5646 $as_echo "$DLLTOOL" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653 fi
5654 if test -z "$ac_cv_prog_DLLTOOL"; then
5655   ac_ct_DLLTOOL=$DLLTOOL
5656   # Extract the first word of "dlltool", so it can be a program name with args.
5657 set dummy dlltool; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   if test -n "$ac_ct_DLLTOOL"; then
5664   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678   done
5679 IFS=$as_save_IFS
5680
5681 fi
5682 fi
5683 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5684 if test -n "$ac_ct_DLLTOOL"; then
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5686 $as_echo "$ac_ct_DLLTOOL" >&6; }
5687 else
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691
5692   if test "x$ac_ct_DLLTOOL" = x; then
5693     DLLTOOL="false"
5694   else
5695     case $cross_compiling:$ac_tool_warned in
5696 yes:)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5700 esac
5701     DLLTOOL=$ac_ct_DLLTOOL
5702   fi
5703 else
5704   DLLTOOL="$ac_cv_prog_DLLTOOL"
5705 fi
5706
5707 test -z "$DLLTOOL" && DLLTOOL=dlltool
5708
5709
5710
5711
5712
5713
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5716 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5717 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   lt_cv_sharedlib_from_linklib_cmd='unknown'
5721
5722 case $host_os in
5723 cygwin* | mingw* | pw32* | cegcc*)
5724   # two different shell functions defined in ltmain.sh
5725   # decide which to use based on capabilities of $DLLTOOL
5726   case `$DLLTOOL --help 2>&1` in
5727   *--identify-strict*)
5728     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5729     ;;
5730   *)
5731     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5732     ;;
5733   esac
5734   ;;
5735 *)
5736   # fallback: assume linklib IS sharedlib
5737   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5738   ;;
5739 esac
5740
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5743 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5744 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5745 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5746
5747
5748
5749
5750
5751
5752
5753
5754 if test -n "$ac_tool_prefix"; then
5755   for ac_prog in ar
5756   do
5757     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_prog_AR+:} false; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   if test -n "$AR"; then
5765   ac_cv_prog_AR="$AR" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770   IFS=$as_save_IFS
5771   test -z "$as_dir" && as_dir=.
5772     for ac_exec_ext in '' $ac_executable_extensions; do
5773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776     break 2
5777   fi
5778 done
5779   done
5780 IFS=$as_save_IFS
5781
5782 fi
5783 fi
5784 AR=$ac_cv_prog_AR
5785 if test -n "$AR"; then
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5787 $as_echo "$AR" >&6; }
5788 else
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793
5794     test -n "$AR" && break
5795   done
5796 fi
5797 if test -z "$AR"; then
5798   ac_ct_AR=$AR
5799   for ac_prog in ar
5800 do
5801   # Extract the first word of "$ac_prog", so it can be a program name with args.
5802 set dummy $ac_prog; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   if test -n "$ac_ct_AR"; then
5809   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816     for ac_exec_ext in '' $ac_executable_extensions; do
5817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818     ac_cv_prog_ac_ct_AR="$ac_prog"
5819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823   done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5829 if test -n "$ac_ct_AR"; then
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5831 $as_echo "$ac_ct_AR" >&6; }
5832 else
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837
5838   test -n "$ac_ct_AR" && break
5839 done
5840
5841   if test "x$ac_ct_AR" = x; then
5842     AR="false"
5843   else
5844     case $cross_compiling:$ac_tool_warned in
5845 yes:)
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5849 esac
5850     AR=$ac_ct_AR
5851   fi
5852 fi
5853
5854 : ${AR=ar}
5855 : ${AR_FLAGS=cru}
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5868 $as_echo_n "checking for archiver @FILE support... " >&6; }
5869 if ${lt_cv_ar_at_file+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   lt_cv_ar_at_file=no
5873    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h.  */
5875
5876 int
5877 main ()
5878 {
5879
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 if ac_fn_c_try_compile "$LINENO"; then :
5885   echo conftest.$ac_objext > conftest.lst
5886       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5887       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5888   (eval $lt_ar_try) 2>&5
5889   ac_status=$?
5890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891   test $ac_status = 0; }
5892       if test "$ac_status" -eq 0; then
5893         # Ensure the archiver fails upon bogus file names.
5894         rm -f conftest.$ac_objext libconftest.a
5895         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5896   (eval $lt_ar_try) 2>&5
5897   ac_status=$?
5898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899   test $ac_status = 0; }
5900         if test "$ac_status" -ne 0; then
5901           lt_cv_ar_at_file=@
5902         fi
5903       fi
5904       rm -f conftest.* libconftest.a
5905
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908
5909 fi
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5911 $as_echo "$lt_cv_ar_at_file" >&6; }
5912
5913 if test "x$lt_cv_ar_at_file" = xno; then
5914   archiver_list_spec=
5915 else
5916   archiver_list_spec=$lt_cv_ar_at_file
5917 fi
5918
5919
5920
5921
5922
5923
5924
5925 if test -n "$ac_tool_prefix"; then
5926   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}strip; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if ${ac_cv_prog_STRIP+:} false; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933   if test -n "$STRIP"; then
5934   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941     for ac_exec_ext in '' $ac_executable_extensions; do
5942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948   done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 STRIP=$ac_cv_prog_STRIP
5954 if test -n "$STRIP"; then
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5956 $as_echo "$STRIP" >&6; }
5957 else
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 fi
5961
5962
5963 fi
5964 if test -z "$ac_cv_prog_STRIP"; then
5965   ac_ct_STRIP=$STRIP
5966   # Extract the first word of "strip", so it can be a program name with args.
5967 set dummy strip; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5971   $as_echo_n "(cached) " >&6
5972 else
5973   if test -n "$ac_ct_STRIP"; then
5974   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981     for ac_exec_ext in '' $ac_executable_extensions; do
5982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983     ac_cv_prog_ac_ct_STRIP="strip"
5984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988   done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5994 if test -n "$ac_ct_STRIP"; then
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5996 $as_echo "$ac_ct_STRIP" >&6; }
5997 else
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001
6002   if test "x$ac_ct_STRIP" = x; then
6003     STRIP=":"
6004   else
6005     case $cross_compiling:$ac_tool_warned in
6006 yes:)
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6010 esac
6011     STRIP=$ac_ct_STRIP
6012   fi
6013 else
6014   STRIP="$ac_cv_prog_STRIP"
6015 fi
6016
6017 test -z "$STRIP" && STRIP=:
6018
6019
6020
6021
6022
6023
6024 if test -n "$ac_tool_prefix"; then
6025   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if ${ac_cv_prog_RANLIB+:} false; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   if test -n "$RANLIB"; then
6033   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040     for ac_exec_ext in '' $ac_executable_extensions; do
6041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047   done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6055 $as_echo "$RANLIB" >&6; }
6056 else
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 fi
6063 if test -z "$ac_cv_prog_RANLIB"; then
6064   ac_ct_RANLIB=$RANLIB
6065   # Extract the first word of "ranlib", so it can be a program name with args.
6066 set dummy ranlib; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   if test -n "$ac_ct_RANLIB"; then
6073   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080     for ac_exec_ext in '' $ac_executable_extensions; do
6081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082     ac_cv_prog_ac_ct_RANLIB="ranlib"
6083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087   done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6093 if test -n "$ac_ct_RANLIB"; then
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6095 $as_echo "$ac_ct_RANLIB" >&6; }
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101   if test "x$ac_ct_RANLIB" = x; then
6102     RANLIB=":"
6103   else
6104     case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110     RANLIB=$ac_ct_RANLIB
6111   fi
6112 else
6113   RANLIB="$ac_cv_prog_RANLIB"
6114 fi
6115
6116 test -z "$RANLIB" && RANLIB=:
6117
6118
6119
6120
6121
6122
6123 # Determine commands to create old-style static archives.
6124 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6125 old_postinstall_cmds='chmod 644 $oldlib'
6126 old_postuninstall_cmds=
6127
6128 if test -n "$RANLIB"; then
6129   case $host_os in
6130   openbsd*)
6131     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6132     ;;
6133   *)
6134     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6135     ;;
6136   esac
6137   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6138 fi
6139
6140 case $host_os in
6141   darwin*)
6142     lock_old_archive_extraction=yes ;;
6143   *)
6144     lock_old_archive_extraction=no ;;
6145 esac
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185 # If no C compiler was specified, use CC.
6186 LTCC=${LTCC-"$CC"}
6187
6188 # If no C compiler flags were specified, use CFLAGS.
6189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6190
6191 # Allow CC to be a program name with arguments.
6192 compiler=$CC
6193
6194
6195 # Check for command to grab the raw symbol name followed by C symbol from nm.
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6197 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6198 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6199   $as_echo_n "(cached) " >&6
6200 else
6201
6202 # These are sane defaults that work on at least a few old systems.
6203 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6204
6205 # Character class describing NM global symbol codes.
6206 symcode='[BCDEGRST]'
6207
6208 # Regexp to match symbols that can be accessed directly from C.
6209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6210
6211 # Define system-specific variables.
6212 case $host_os in
6213 aix*)
6214   symcode='[BCDT]'
6215   ;;
6216 cygwin* | mingw* | pw32* | cegcc*)
6217   symcode='[ABCDGISTW]'
6218   ;;
6219 hpux*)
6220   if test "$host_cpu" = ia64; then
6221     symcode='[ABCDEGRST]'
6222   fi
6223   ;;
6224 irix* | nonstopux*)
6225   symcode='[BCDEGRST]'
6226   ;;
6227 osf*)
6228   symcode='[BCDEGQRST]'
6229   ;;
6230 solaris*)
6231   symcode='[BDRT]'
6232   ;;
6233 sco3.2v5*)
6234   symcode='[DT]'
6235   ;;
6236 sysv4.2uw2*)
6237   symcode='[DT]'
6238   ;;
6239 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6240   symcode='[ABDT]'
6241   ;;
6242 sysv4)
6243   symcode='[DFNSTU]'
6244   ;;
6245 esac
6246
6247 # If we're using GNU nm, then use its standard symbol codes.
6248 case `$NM -V 2>&1` in
6249 *GNU* | *'with BFD'*)
6250   symcode='[ABCDGIRSTW]' ;;
6251 esac
6252
6253 # Transform an extracted symbol line into a proper C declaration.
6254 # Some systems (esp. on ia64) link data and code symbols differently,
6255 # so use this general approach.
6256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6257
6258 # Transform an extracted symbol line into symbol name and symbol address
6259 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6260 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'"
6261
6262 # Handle CRLF in mingw tool chain
6263 opt_cr=
6264 case $build_os in
6265 mingw*)
6266   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6267   ;;
6268 esac
6269
6270 # Try without a prefix underscore, then with it.
6271 for ac_symprfx in "" "_"; do
6272
6273   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6274   symxfrm="\\1 $ac_symprfx\\2 \\2"
6275
6276   # Write the raw and C identifiers.
6277   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6278     # Fake it for dumpbin and say T for any non-static function
6279     # and D for any global variable.
6280     # Also find C++ and __fastcall symbols from MSVC++,
6281     # which start with @ or ?.
6282     lt_cv_sys_global_symbol_pipe="$AWK '"\
6283 "     {last_section=section; section=\$ 3};"\
6284 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6285 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6286 "     \$ 0!~/External *\|/{next};"\
6287 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6288 "     {if(hide[section]) next};"\
6289 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6290 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6291 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6292 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6293 "     ' prfx=^$ac_symprfx"
6294   else
6295     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6296   fi
6297   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6298
6299   # Check to see that the pipe works correctly.
6300   pipe_works=no
6301
6302   rm -f conftest*
6303   cat > conftest.$ac_ext <<_LT_EOF
6304 #ifdef __cplusplus
6305 extern "C" {
6306 #endif
6307 char nm_test_var;
6308 void nm_test_func(void);
6309 void nm_test_func(void){}
6310 #ifdef __cplusplus
6311 }
6312 #endif
6313 int main(){nm_test_var='a';nm_test_func();return(0);}
6314 _LT_EOF
6315
6316   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6317   (eval $ac_compile) 2>&5
6318   ac_status=$?
6319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320   test $ac_status = 0; }; then
6321     # Now try to grab the symbols.
6322     nlist=conftest.nm
6323     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6324   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6325   ac_status=$?
6326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327   test $ac_status = 0; } && test -s "$nlist"; then
6328       # Try sorting and uniquifying the output.
6329       if sort "$nlist" | uniq > "$nlist"T; then
6330         mv -f "$nlist"T "$nlist"
6331       else
6332         rm -f "$nlist"T
6333       fi
6334
6335       # Make sure that we snagged all the symbols we need.
6336       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6337         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6338           cat <<_LT_EOF > conftest.$ac_ext
6339 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6340 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6341 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6342    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6343 # define LT_DLSYM_CONST
6344 #elif defined(__osf__)
6345 /* This system does not cope well with relocations in const data.  */
6346 # define LT_DLSYM_CONST
6347 #else
6348 # define LT_DLSYM_CONST const
6349 #endif
6350
6351 #ifdef __cplusplus
6352 extern "C" {
6353 #endif
6354
6355 _LT_EOF
6356           # Now generate the symbol file.
6357           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6358
6359           cat <<_LT_EOF >> conftest.$ac_ext
6360
6361 /* The mapping between symbol names and symbols.  */
6362 LT_DLSYM_CONST struct {
6363   const char *name;
6364   void       *address;
6365 }
6366 lt__PROGRAM__LTX_preloaded_symbols[] =
6367 {
6368   { "@PROGRAM@", (void *) 0 },
6369 _LT_EOF
6370           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6371           cat <<\_LT_EOF >> conftest.$ac_ext
6372   {0, (void *) 0}
6373 };
6374
6375 /* This works around a problem in FreeBSD linker */
6376 #ifdef FREEBSD_WORKAROUND
6377 static const void *lt_preloaded_setup() {
6378   return lt__PROGRAM__LTX_preloaded_symbols;
6379 }
6380 #endif
6381
6382 #ifdef __cplusplus
6383 }
6384 #endif
6385 _LT_EOF
6386           # Now try linking the two files.
6387           mv conftest.$ac_objext conftstm.$ac_objext
6388           lt_globsym_save_LIBS=$LIBS
6389           lt_globsym_save_CFLAGS=$CFLAGS
6390           LIBS="conftstm.$ac_objext"
6391           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6392           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6393   (eval $ac_link) 2>&5
6394   ac_status=$?
6395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6397             pipe_works=yes
6398           fi
6399           LIBS=$lt_globsym_save_LIBS
6400           CFLAGS=$lt_globsym_save_CFLAGS
6401         else
6402           echo "cannot find nm_test_func in $nlist" >&5
6403         fi
6404       else
6405         echo "cannot find nm_test_var in $nlist" >&5
6406       fi
6407     else
6408       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6409     fi
6410   else
6411     echo "$progname: failed program was:" >&5
6412     cat conftest.$ac_ext >&5
6413   fi
6414   rm -rf conftest* conftst*
6415
6416   # Do not use the global_symbol_pipe unless it works.
6417   if test "$pipe_works" = yes; then
6418     break
6419   else
6420     lt_cv_sys_global_symbol_pipe=
6421   fi
6422 done
6423
6424 fi
6425
6426 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6427   lt_cv_sys_global_symbol_to_cdecl=
6428 fi
6429 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6431 $as_echo "failed" >&6; }
6432 else
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6434 $as_echo "ok" >&6; }
6435 fi
6436
6437 # Response file support.
6438 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6439   nm_file_list_spec='@'
6440 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6441   nm_file_list_spec='@'
6442 fi
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6471 $as_echo_n "checking for sysroot... " >&6; }
6472
6473 # Check whether --with-sysroot was given.
6474 if test "${with_sysroot+set}" = set; then :
6475   withval=$with_sysroot;
6476 else
6477   with_sysroot=no
6478 fi
6479
6480
6481 lt_sysroot=
6482 case ${with_sysroot} in #(
6483  yes)
6484    if test "$GCC" = yes; then
6485      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6486    fi
6487    ;; #(
6488  /*)
6489    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6490    ;; #(
6491  no|'')
6492    ;; #(
6493  *)
6494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6495 $as_echo "${with_sysroot}" >&6; }
6496    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6497    ;;
6498 esac
6499
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6501 $as_echo "${lt_sysroot:-no}" >&6; }
6502
6503
6504
6505
6506
6507 # Check whether --enable-libtool-lock was given.
6508 if test "${enable_libtool_lock+set}" = set; then :
6509   enableval=$enable_libtool_lock;
6510 fi
6511
6512 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6513
6514 # Some flags need to be propagated to the compiler or linker for good
6515 # libtool support.
6516 case $host in
6517 ia64-*-hpux*)
6518   # Find out which ABI we are using.
6519   echo 'int i;' > conftest.$ac_ext
6520   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6521   (eval $ac_compile) 2>&5
6522   ac_status=$?
6523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524   test $ac_status = 0; }; then
6525     case `/usr/bin/file conftest.$ac_objext` in
6526       *ELF-32*)
6527         HPUX_IA64_MODE="32"
6528         ;;
6529       *ELF-64*)
6530         HPUX_IA64_MODE="64"
6531         ;;
6532     esac
6533   fi
6534   rm -rf conftest*
6535   ;;
6536 *-*-irix6*)
6537   # Find out which ABI we are using.
6538   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6539   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6540   (eval $ac_compile) 2>&5
6541   ac_status=$?
6542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543   test $ac_status = 0; }; then
6544     if test "$lt_cv_prog_gnu_ld" = yes; then
6545       case `/usr/bin/file conftest.$ac_objext` in
6546         *32-bit*)
6547           LD="${LD-ld} -melf32bsmip"
6548           ;;
6549         *N32*)
6550           LD="${LD-ld} -melf32bmipn32"
6551           ;;
6552         *64-bit*)
6553           LD="${LD-ld} -melf64bmip"
6554         ;;
6555       esac
6556     else
6557       case `/usr/bin/file conftest.$ac_objext` in
6558         *32-bit*)
6559           LD="${LD-ld} -32"
6560           ;;
6561         *N32*)
6562           LD="${LD-ld} -n32"
6563           ;;
6564         *64-bit*)
6565           LD="${LD-ld} -64"
6566           ;;
6567       esac
6568     fi
6569   fi
6570   rm -rf conftest*
6571   ;;
6572
6573 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6574 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6575   # Find out which ABI we are using.
6576   echo 'int i;' > conftest.$ac_ext
6577   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6578   (eval $ac_compile) 2>&5
6579   ac_status=$?
6580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581   test $ac_status = 0; }; then
6582     case `/usr/bin/file conftest.o` in
6583       *32-bit*)
6584         case $host in
6585           x86_64-*kfreebsd*-gnu)
6586             LD="${LD-ld} -m elf_i386_fbsd"
6587             ;;
6588           x86_64-*linux*)
6589             LD="${LD-ld} -m elf_i386"
6590             ;;
6591           ppc64-*linux*|powerpc64-*linux*)
6592             LD="${LD-ld} -m elf32ppclinux"
6593             ;;
6594           s390x-*linux*)
6595             LD="${LD-ld} -m elf_s390"
6596             ;;
6597           sparc64-*linux*)
6598             LD="${LD-ld} -m elf32_sparc"
6599             ;;
6600         esac
6601         ;;
6602       *64-bit*)
6603         case $host in
6604           x86_64-*kfreebsd*-gnu)
6605             LD="${LD-ld} -m elf_x86_64_fbsd"
6606             ;;
6607           x86_64-*linux*)
6608             LD="${LD-ld} -m elf_x86_64"
6609             ;;
6610           ppc*-*linux*|powerpc*-*linux*)
6611             LD="${LD-ld} -m elf64ppc"
6612             ;;
6613           s390*-*linux*|s390*-*tpf*)
6614             LD="${LD-ld} -m elf64_s390"
6615             ;;
6616           sparc*-*linux*)
6617             LD="${LD-ld} -m elf64_sparc"
6618             ;;
6619         esac
6620         ;;
6621     esac
6622   fi
6623   rm -rf conftest*
6624   ;;
6625
6626 *-*-sco3.2v5*)
6627   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6628   SAVE_CFLAGS="$CFLAGS"
6629   CFLAGS="$CFLAGS -belf"
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6631 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6632 if ${lt_cv_cc_needs_belf+:} false; then :
6633   $as_echo_n "(cached) " >&6
6634 else
6635   ac_ext=c
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640
6641      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h.  */
6643
6644 int
6645 main ()
6646 {
6647
6648   ;
6649   return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_c_try_link "$LINENO"; then :
6653   lt_cv_cc_needs_belf=yes
6654 else
6655   lt_cv_cc_needs_belf=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext \
6658     conftest$ac_exeext conftest.$ac_ext
6659      ac_ext=c
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6664
6665 fi
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6667 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6668   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6669     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6670     CFLAGS="$SAVE_CFLAGS"
6671   fi
6672   ;;
6673 *-*solaris*)
6674   # Find out which ABI we are using.
6675   echo 'int i;' > conftest.$ac_ext
6676   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6677   (eval $ac_compile) 2>&5
6678   ac_status=$?
6679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6680   test $ac_status = 0; }; then
6681     case `/usr/bin/file conftest.o` in
6682     *64-bit*)
6683       case $lt_cv_prog_gnu_ld in
6684       yes*)
6685         case $host in
6686         i?86-*-solaris*)
6687           LD="${LD-ld} -m elf_x86_64"
6688           ;;
6689         sparc*-*-solaris*)
6690           LD="${LD-ld} -m elf64_sparc"
6691           ;;
6692         esac
6693         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6694         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6695           LD="${LD-ld}_sol2"
6696         fi
6697         ;;
6698       *)
6699         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6700           LD="${LD-ld} -64"
6701         fi
6702         ;;
6703       esac
6704       ;;
6705     esac
6706   fi
6707   rm -rf conftest*
6708   ;;
6709 esac
6710
6711 need_locks="$enable_libtool_lock"
6712
6713 if test -n "$ac_tool_prefix"; then
6714   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}mt; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   if test -n "$MANIFEST_TOOL"; then
6722   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6742 if test -n "$MANIFEST_TOOL"; then
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6744 $as_echo "$MANIFEST_TOOL" >&6; }
6745 else
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6753   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6754   # Extract the first word of "mt", so it can be a program name with args.
6755 set dummy mt; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   if test -n "$ac_ct_MANIFEST_TOOL"; then
6762   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_exec_ext in '' $ac_executable_extensions; do
6770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776   done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6782 if test -n "$ac_ct_MANIFEST_TOOL"; then
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6784 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6791     MANIFEST_TOOL=":"
6792   else
6793     case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6800   fi
6801 else
6802   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6803 fi
6804
6805 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6807 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6808 if ${lt_cv_path_mainfest_tool+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   lt_cv_path_mainfest_tool=no
6812   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6813   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6814   cat conftest.err >&5
6815   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6816     lt_cv_path_mainfest_tool=yes
6817   fi
6818   rm -f conftest*
6819 fi
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6821 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6822 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6823   MANIFEST_TOOL=:
6824 fi
6825
6826
6827
6828
6829
6830
6831   case $host_os in
6832     rhapsody* | darwin*)
6833     if test -n "$ac_tool_prefix"; then
6834   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   if test -n "$DSYMUTIL"; then
6842   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849     for ac_exec_ext in '' $ac_executable_extensions; do
6850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856   done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6862 if test -n "$DSYMUTIL"; then
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6864 $as_echo "$DSYMUTIL" >&6; }
6865 else
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870
6871 fi
6872 if test -z "$ac_cv_prog_DSYMUTIL"; then
6873   ac_ct_DSYMUTIL=$DSYMUTIL
6874   # Extract the first word of "dsymutil", so it can be a program name with args.
6875 set dummy dsymutil; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6879   $as_echo_n "(cached) " >&6
6880 else
6881   if test -n "$ac_ct_DSYMUTIL"; then
6882   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889     for ac_exec_ext in '' $ac_executable_extensions; do
6890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896   done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6902 if test -n "$ac_ct_DSYMUTIL"; then
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6904 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6905 else
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910   if test "x$ac_ct_DSYMUTIL" = x; then
6911     DSYMUTIL=":"
6912   else
6913     case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919     DSYMUTIL=$ac_ct_DSYMUTIL
6920   fi
6921 else
6922   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6923 fi
6924
6925     if test -n "$ac_tool_prefix"; then
6926   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6927 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_NMEDIT+:} false; then :
6931   $as_echo_n "(cached) " >&6
6932 else
6933   if test -n "$NMEDIT"; then
6934   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941     for ac_exec_ext in '' $ac_executable_extensions; do
6942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948   done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 NMEDIT=$ac_cv_prog_NMEDIT
6954 if test -n "$NMEDIT"; then
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6956 $as_echo "$NMEDIT" >&6; }
6957 else
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962
6963 fi
6964 if test -z "$ac_cv_prog_NMEDIT"; then
6965   ac_ct_NMEDIT=$NMEDIT
6966   # Extract the first word of "nmedit", so it can be a program name with args.
6967 set dummy nmedit; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6971   $as_echo_n "(cached) " >&6
6972 else
6973   if test -n "$ac_ct_NMEDIT"; then
6974   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6994 if test -n "$ac_ct_NMEDIT"; then
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6996 $as_echo "$ac_ct_NMEDIT" >&6; }
6997 else
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002   if test "x$ac_ct_NMEDIT" = x; then
7003     NMEDIT=":"
7004   else
7005     case $cross_compiling:$ac_tool_warned in
7006 yes:)
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7009 ac_tool_warned=yes ;;
7010 esac
7011     NMEDIT=$ac_ct_NMEDIT
7012   fi
7013 else
7014   NMEDIT="$ac_cv_prog_NMEDIT"
7015 fi
7016
7017     if test -n "$ac_tool_prefix"; then
7018   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_LIPO+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   if test -n "$LIPO"; then
7026   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033     for ac_exec_ext in '' $ac_executable_extensions; do
7034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040   done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 LIPO=$ac_cv_prog_LIPO
7046 if test -n "$LIPO"; then
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7048 $as_echo "$LIPO" >&6; }
7049 else
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054
7055 fi
7056 if test -z "$ac_cv_prog_LIPO"; then
7057   ac_ct_LIPO=$LIPO
7058   # Extract the first word of "lipo", so it can be a program name with args.
7059 set dummy lipo; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7063   $as_echo_n "(cached) " >&6
7064 else
7065   if test -n "$ac_ct_LIPO"; then
7066   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073     for ac_exec_ext in '' $ac_executable_extensions; do
7074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075     ac_cv_prog_ac_ct_LIPO="lipo"
7076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080   done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7086 if test -n "$ac_ct_LIPO"; then
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7088 $as_echo "$ac_ct_LIPO" >&6; }
7089 else
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094   if test "x$ac_ct_LIPO" = x; then
7095     LIPO=":"
7096   else
7097     case $cross_compiling:$ac_tool_warned in
7098 yes:)
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned=yes ;;
7102 esac
7103     LIPO=$ac_ct_LIPO
7104   fi
7105 else
7106   LIPO="$ac_cv_prog_LIPO"
7107 fi
7108
7109     if test -n "$ac_tool_prefix"; then
7110   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}otool; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_OTOOL+:} false; then :
7115   $as_echo_n "(cached) " >&6
7116 else
7117   if test -n "$OTOOL"; then
7118   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125     for ac_exec_ext in '' $ac_executable_extensions; do
7126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129     break 2
7130   fi
7131 done
7132   done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 OTOOL=$ac_cv_prog_OTOOL
7138 if test -n "$OTOOL"; then
7139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7140 $as_echo "$OTOOL" >&6; }
7141 else
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_OTOOL"; then
7149   ac_ct_OTOOL=$OTOOL
7150   # Extract the first word of "otool", so it can be a program name with args.
7151 set dummy otool; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7155   $as_echo_n "(cached) " >&6
7156 else
7157   if test -n "$ac_ct_OTOOL"; then
7158   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165     for ac_exec_ext in '' $ac_executable_extensions; do
7166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167     ac_cv_prog_ac_ct_OTOOL="otool"
7168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172   done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7178 if test -n "$ac_ct_OTOOL"; then
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7180 $as_echo "$ac_ct_OTOOL" >&6; }
7181 else
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186   if test "x$ac_ct_OTOOL" = x; then
7187     OTOOL=":"
7188   else
7189     case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195     OTOOL=$ac_ct_OTOOL
7196   fi
7197 else
7198   OTOOL="$ac_cv_prog_OTOOL"
7199 fi
7200
7201     if test -n "$ac_tool_prefix"; then
7202   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_OTOOL64+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$OTOOL64"; then
7210   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 OTOOL64=$ac_cv_prog_OTOOL64
7230 if test -n "$OTOOL64"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7232 $as_echo "$OTOOL64" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 fi
7240 if test -z "$ac_cv_prog_OTOOL64"; then
7241   ac_ct_OTOOL64=$OTOOL64
7242   # Extract the first word of "otool64", so it can be a program name with args.
7243 set dummy otool64; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7247   $as_echo_n "(cached) " >&6
7248 else
7249   if test -n "$ac_ct_OTOOL64"; then
7250   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257     for ac_exec_ext in '' $ac_executable_extensions; do
7258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259     ac_cv_prog_ac_ct_OTOOL64="otool64"
7260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264   done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7270 if test -n "$ac_ct_OTOOL64"; then
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7272 $as_echo "$ac_ct_OTOOL64" >&6; }
7273 else
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278   if test "x$ac_ct_OTOOL64" = x; then
7279     OTOOL64=":"
7280   else
7281     case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287     OTOOL64=$ac_ct_OTOOL64
7288   fi
7289 else
7290   OTOOL64="$ac_cv_prog_OTOOL64"
7291 fi
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7320 $as_echo_n "checking for -single_module linker flag... " >&6; }
7321 if ${lt_cv_apple_cc_single_mod+:} false; then :
7322   $as_echo_n "(cached) " >&6
7323 else
7324   lt_cv_apple_cc_single_mod=no
7325       if test -z "${LT_MULTI_MODULE}"; then
7326         # By default we will add the -single_module flag. You can override
7327         # by either setting the environment variable LT_MULTI_MODULE
7328         # non-empty at configure time, or by adding -multi_module to the
7329         # link flags.
7330         rm -rf libconftest.dylib*
7331         echo "int foo(void){return 1;}" > conftest.c
7332         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7333 -dynamiclib -Wl,-single_module conftest.c" >&5
7334         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7335           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7336         _lt_result=$?
7337         # If there is a non-empty error log, and "single_module"
7338         # appears in it, assume the flag caused a linker warning
7339         if test -s conftest.err && $GREP single_module conftest.err; then
7340           cat conftest.err >&5
7341         # Otherwise, if the output was created with a 0 exit code from
7342         # the compiler, it worked.
7343         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7344           lt_cv_apple_cc_single_mod=yes
7345         else
7346           cat conftest.err >&5
7347         fi
7348         rm -rf libconftest.dylib*
7349         rm -f conftest.*
7350       fi
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7353 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7354
7355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7356 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7357 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   lt_cv_ld_exported_symbols_list=no
7361       save_LDFLAGS=$LDFLAGS
7362       echo "_main" > conftest.sym
7363       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7364       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h.  */
7366
7367 int
7368 main ()
7369 {
7370
7371   ;
7372   return 0;
7373 }
7374 _ACEOF
7375 if ac_fn_c_try_link "$LINENO"; then :
7376   lt_cv_ld_exported_symbols_list=yes
7377 else
7378   lt_cv_ld_exported_symbols_list=no
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext \
7381     conftest$ac_exeext conftest.$ac_ext
7382         LDFLAGS="$save_LDFLAGS"
7383
7384 fi
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7386 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7387
7388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7389 $as_echo_n "checking for -force_load linker flag... " >&6; }
7390 if ${lt_cv_ld_force_load+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   lt_cv_ld_force_load=no
7394       cat > conftest.c << _LT_EOF
7395 int forced_loaded() { return 2;}
7396 _LT_EOF
7397       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7398       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7399       echo "$AR cru libconftest.a conftest.o" >&5
7400       $AR cru libconftest.a conftest.o 2>&5
7401       echo "$RANLIB libconftest.a" >&5
7402       $RANLIB libconftest.a 2>&5
7403       cat > conftest.c << _LT_EOF
7404 int main() { return 0;}
7405 _LT_EOF
7406       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7407       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7408       _lt_result=$?
7409       if test -s conftest.err && $GREP force_load conftest.err; then
7410         cat conftest.err >&5
7411       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7412         lt_cv_ld_force_load=yes
7413       else
7414         cat conftest.err >&5
7415       fi
7416         rm -f conftest.err libconftest.a conftest conftest.c
7417         rm -rf conftest.dSYM
7418
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7421 $as_echo "$lt_cv_ld_force_load" >&6; }
7422     case $host_os in
7423     rhapsody* | darwin1.[012])
7424       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7425     darwin1.*)
7426       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7427     darwin*) # darwin 5.x on
7428       # if running on 10.5 or later, the deployment target defaults
7429       # to the OS version, if on x86, and 10.4, the deployment
7430       # target defaults to 10.4. Don't you love it?
7431       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7432         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7433           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7434         10.[012]*)
7435           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7436         10.*)
7437           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7438       esac
7439     ;;
7440   esac
7441     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7442       _lt_dar_single_mod='$single_module'
7443     fi
7444     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7445       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7446     else
7447       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7448     fi
7449     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7450       _lt_dsymutil='~$DSYMUTIL $lib || :'
7451     else
7452       _lt_dsymutil=
7453     fi
7454     ;;
7455   esac
7456
7457
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7459 $as_echo_n "checking for ANSI C header files... " >&6; }
7460 if ${ac_cv_header_stdc+:} false; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h.  */
7465 #include <stdlib.h>
7466 #include <stdarg.h>
7467 #include <string.h>
7468 #include <float.h>
7469
7470 int
7471 main ()
7472 {
7473
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479   ac_cv_header_stdc=yes
7480 else
7481   ac_cv_header_stdc=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484
7485 if test $ac_cv_header_stdc = yes; then
7486   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h.  */
7489 #include <string.h>
7490
7491 _ACEOF
7492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7493   $EGREP "memchr" >/dev/null 2>&1; then :
7494
7495 else
7496   ac_cv_header_stdc=no
7497 fi
7498 rm -f conftest*
7499
7500 fi
7501
7502 if test $ac_cv_header_stdc = yes; then
7503   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h.  */
7506 #include <stdlib.h>
7507
7508 _ACEOF
7509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7510   $EGREP "free" >/dev/null 2>&1; then :
7511
7512 else
7513   ac_cv_header_stdc=no
7514 fi
7515 rm -f conftest*
7516
7517 fi
7518
7519 if test $ac_cv_header_stdc = yes; then
7520   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7521   if test "$cross_compiling" = yes; then :
7522   :
7523 else
7524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h.  */
7526 #include <ctype.h>
7527 #include <stdlib.h>
7528 #if ((' ' & 0x0FF) == 0x020)
7529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7531 #else
7532 # define ISLOWER(c) \
7533                    (('a' <= (c) && (c) <= 'i') \
7534                      || ('j' <= (c) && (c) <= 'r') \
7535                      || ('s' <= (c) && (c) <= 'z'))
7536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7537 #endif
7538
7539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7540 int
7541 main ()
7542 {
7543   int i;
7544   for (i = 0; i < 256; i++)
7545     if (XOR (islower (i), ISLOWER (i))
7546         || toupper (i) != TOUPPER (i))
7547       return 2;
7548   return 0;
7549 }
7550 _ACEOF
7551 if ac_fn_c_try_run "$LINENO"; then :
7552
7553 else
7554   ac_cv_header_stdc=no
7555 fi
7556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7557   conftest.$ac_objext conftest.beam conftest.$ac_ext
7558 fi
7559
7560 fi
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7563 $as_echo "$ac_cv_header_stdc" >&6; }
7564 if test $ac_cv_header_stdc = yes; then
7565
7566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7567
7568 fi
7569
7570 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7571 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7572                   inttypes.h stdint.h unistd.h
7573 do :
7574   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7575 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7576 "
7577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7578   cat >>confdefs.h <<_ACEOF
7579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580 _ACEOF
7581
7582 fi
7583
7584 done
7585
7586
7587 for ac_header in dlfcn.h
7588 do :
7589   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7590 "
7591 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7592   cat >>confdefs.h <<_ACEOF
7593 #define HAVE_DLFCN_H 1
7594 _ACEOF
7595
7596 fi
7597
7598 done
7599
7600
7601
7602
7603
7604 # Set options
7605 enable_win32_dll=yes
7606
7607 case $host in
7608 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7609   if test -n "$ac_tool_prefix"; then
7610   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7611 set dummy ${ac_tool_prefix}as; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_AS+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$AS"; then
7618   ac_cv_prog_AS="$AS" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627     ac_cv_prog_AS="${ac_tool_prefix}as"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 AS=$ac_cv_prog_AS
7638 if test -n "$AS"; then
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7640 $as_echo "$AS" >&6; }
7641 else
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646
7647 fi
7648 if test -z "$ac_cv_prog_AS"; then
7649   ac_ct_AS=$AS
7650   # Extract the first word of "as", so it can be a program name with args.
7651 set dummy as; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   if test -n "$ac_ct_AS"; then
7658   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663   IFS=$as_save_IFS
7664   test -z "$as_dir" && as_dir=.
7665     for ac_exec_ext in '' $ac_executable_extensions; do
7666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667     ac_cv_prog_ac_ct_AS="as"
7668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669     break 2
7670   fi
7671 done
7672   done
7673 IFS=$as_save_IFS
7674
7675 fi
7676 fi
7677 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7678 if test -n "$ac_ct_AS"; then
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7680 $as_echo "$ac_ct_AS" >&6; }
7681 else
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684 fi
7685
7686   if test "x$ac_ct_AS" = x; then
7687     AS="false"
7688   else
7689     case $cross_compiling:$ac_tool_warned in
7690 yes:)
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7693 ac_tool_warned=yes ;;
7694 esac
7695     AS=$ac_ct_AS
7696   fi
7697 else
7698   AS="$ac_cv_prog_AS"
7699 fi
7700
7701   if test -n "$ac_tool_prefix"; then
7702   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7703 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_prog_DLLTOOL+:} false; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   if test -n "$DLLTOOL"; then
7710   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717     for ac_exec_ext in '' $ac_executable_extensions; do
7718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724   done
7725 IFS=$as_save_IFS
7726
7727 fi
7728 fi
7729 DLLTOOL=$ac_cv_prog_DLLTOOL
7730 if test -n "$DLLTOOL"; then
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7732 $as_echo "$DLLTOOL" >&6; }
7733 else
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7736 fi
7737
7738
7739 fi
7740 if test -z "$ac_cv_prog_DLLTOOL"; then
7741   ac_ct_DLLTOOL=$DLLTOOL
7742   # Extract the first word of "dlltool", so it can be a program name with args.
7743 set dummy dlltool; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   if test -n "$ac_ct_DLLTOOL"; then
7750   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755   IFS=$as_save_IFS
7756   test -z "$as_dir" && as_dir=.
7757     for ac_exec_ext in '' $ac_executable_extensions; do
7758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761     break 2
7762   fi
7763 done
7764   done
7765 IFS=$as_save_IFS
7766
7767 fi
7768 fi
7769 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7770 if test -n "$ac_ct_DLLTOOL"; then
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7772 $as_echo "$ac_ct_DLLTOOL" >&6; }
7773 else
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 fi
7777
7778   if test "x$ac_ct_DLLTOOL" = x; then
7779     DLLTOOL="false"
7780   else
7781     case $cross_compiling:$ac_tool_warned in
7782 yes:)
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7785 ac_tool_warned=yes ;;
7786 esac
7787     DLLTOOL=$ac_ct_DLLTOOL
7788   fi
7789 else
7790   DLLTOOL="$ac_cv_prog_DLLTOOL"
7791 fi
7792
7793   if test -n "$ac_tool_prefix"; then
7794   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7795 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_prog_OBJDUMP+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   if test -n "$OBJDUMP"; then
7802   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809     for ac_exec_ext in '' $ac_executable_extensions; do
7810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816   done
7817 IFS=$as_save_IFS
7818
7819 fi
7820 fi
7821 OBJDUMP=$ac_cv_prog_OBJDUMP
7822 if test -n "$OBJDUMP"; then
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7824 $as_echo "$OBJDUMP" >&6; }
7825 else
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829
7830
7831 fi
7832 if test -z "$ac_cv_prog_OBJDUMP"; then
7833   ac_ct_OBJDUMP=$OBJDUMP
7834   # Extract the first word of "objdump", so it can be a program name with args.
7835 set dummy objdump; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   if test -n "$ac_ct_OBJDUMP"; then
7842   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849     for ac_exec_ext in '' $ac_executable_extensions; do
7850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856   done
7857 IFS=$as_save_IFS
7858
7859 fi
7860 fi
7861 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7862 if test -n "$ac_ct_OBJDUMP"; then
7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7864 $as_echo "$ac_ct_OBJDUMP" >&6; }
7865 else
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7868 fi
7869
7870   if test "x$ac_ct_OBJDUMP" = x; then
7871     OBJDUMP="false"
7872   else
7873     case $cross_compiling:$ac_tool_warned in
7874 yes:)
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7877 ac_tool_warned=yes ;;
7878 esac
7879     OBJDUMP=$ac_ct_OBJDUMP
7880   fi
7881 else
7882   OBJDUMP="$ac_cv_prog_OBJDUMP"
7883 fi
7884
7885   ;;
7886 esac
7887
7888 test -z "$AS" && AS=as
7889
7890
7891
7892
7893
7894 test -z "$DLLTOOL" && DLLTOOL=dlltool
7895
7896
7897
7898
7899
7900 test -z "$OBJDUMP" && OBJDUMP=objdump
7901
7902
7903
7904
7905
7906
7907
7908         enable_dlopen=no
7909
7910
7911
7912             # Check whether --enable-shared was given.
7913 if test "${enable_shared+set}" = set; then :
7914   enableval=$enable_shared; p=${PACKAGE-default}
7915     case $enableval in
7916     yes) enable_shared=yes ;;
7917     no) enable_shared=no ;;
7918     *)
7919       enable_shared=no
7920       # Look at the argument we got.  We use all the common list separators.
7921       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7922       for pkg in $enableval; do
7923         IFS="$lt_save_ifs"
7924         if test "X$pkg" = "X$p"; then
7925           enable_shared=yes
7926         fi
7927       done
7928       IFS="$lt_save_ifs"
7929       ;;
7930     esac
7931 else
7932   enable_shared=yes
7933 fi
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943   # Check whether --enable-static was given.
7944 if test "${enable_static+set}" = set; then :
7945   enableval=$enable_static; p=${PACKAGE-default}
7946     case $enableval in
7947     yes) enable_static=yes ;;
7948     no) enable_static=no ;;
7949     *)
7950      enable_static=no
7951       # Look at the argument we got.  We use all the common list separators.
7952       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7953       for pkg in $enableval; do
7954         IFS="$lt_save_ifs"
7955         if test "X$pkg" = "X$p"; then
7956           enable_static=yes
7957         fi
7958       done
7959       IFS="$lt_save_ifs"
7960       ;;
7961     esac
7962 else
7963   enable_static=yes
7964 fi
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975 # Check whether --with-pic was given.
7976 if test "${with_pic+set}" = set; then :
7977   withval=$with_pic; lt_p=${PACKAGE-default}
7978     case $withval in
7979     yes|no) pic_mode=$withval ;;
7980     *)
7981       pic_mode=default
7982       # Look at the argument we got.  We use all the common list separators.
7983       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7984       for lt_pkg in $withval; do
7985         IFS="$lt_save_ifs"
7986         if test "X$lt_pkg" = "X$lt_p"; then
7987           pic_mode=yes
7988         fi
7989       done
7990       IFS="$lt_save_ifs"
7991       ;;
7992     esac
7993 else
7994   pic_mode=default
7995 fi
7996
7997
7998 test -z "$pic_mode" && pic_mode=default
7999
8000
8001
8002
8003
8004
8005
8006   # Check whether --enable-fast-install was given.
8007 if test "${enable_fast_install+set}" = set; then :
8008   enableval=$enable_fast_install; p=${PACKAGE-default}
8009     case $enableval in
8010     yes) enable_fast_install=yes ;;
8011     no) enable_fast_install=no ;;
8012     *)
8013       enable_fast_install=no
8014       # Look at the argument we got.  We use all the common list separators.
8015       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8016       for pkg in $enableval; do
8017         IFS="$lt_save_ifs"
8018         if test "X$pkg" = "X$p"; then
8019           enable_fast_install=yes
8020         fi
8021       done
8022       IFS="$lt_save_ifs"
8023       ;;
8024     esac
8025 else
8026   enable_fast_install=yes
8027 fi
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 # This can be used to rebuild libtool when needed
8040 LIBTOOL_DEPS="$ltmain"
8041
8042 # Always use our own libtool.
8043 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074 test -z "$LN_S" && LN_S="ln -s"
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089 if test -n "${ZSH_VERSION+set}" ; then
8090    setopt NO_GLOB_SUBST
8091 fi
8092
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8094 $as_echo_n "checking for objdir... " >&6; }
8095 if ${lt_cv_objdir+:} false; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098   rm -f .libs 2>/dev/null
8099 mkdir .libs 2>/dev/null
8100 if test -d .libs; then
8101   lt_cv_objdir=.libs
8102 else
8103   # MS-DOS does not allow filenames that begin with a dot.
8104   lt_cv_objdir=_libs
8105 fi
8106 rmdir .libs 2>/dev/null
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8109 $as_echo "$lt_cv_objdir" >&6; }
8110 objdir=$lt_cv_objdir
8111
8112
8113
8114
8115
8116 cat >>confdefs.h <<_ACEOF
8117 #define LT_OBJDIR "$lt_cv_objdir/"
8118 _ACEOF
8119
8120
8121
8122
8123 case $host_os in
8124 aix3*)
8125   # AIX sometimes has problems with the GCC collect2 program.  For some
8126   # reason, if we set the COLLECT_NAMES environment variable, the problems
8127   # vanish in a puff of smoke.
8128   if test "X${COLLECT_NAMES+set}" != Xset; then
8129     COLLECT_NAMES=
8130     export COLLECT_NAMES
8131   fi
8132   ;;
8133 esac
8134
8135 # Global variables:
8136 ofile=libtool
8137 can_build_shared=yes
8138
8139 # All known linkers require a `.a' archive for static linking (except MSVC,
8140 # which needs '.lib').
8141 libext=a
8142
8143 with_gnu_ld="$lt_cv_prog_gnu_ld"
8144
8145 old_CC="$CC"
8146 old_CFLAGS="$CFLAGS"
8147
8148 # Set sane defaults for various variables
8149 test -z "$CC" && CC=cc
8150 test -z "$LTCC" && LTCC=$CC
8151 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8152 test -z "$LD" && LD=ld
8153 test -z "$ac_objext" && ac_objext=o
8154
8155 for cc_temp in $compiler""; do
8156   case $cc_temp in
8157     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8158     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8159     \-*) ;;
8160     *) break;;
8161   esac
8162 done
8163 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8164
8165
8166 # Only perform the check for file, if the check method requires it
8167 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8168 case $deplibs_check_method in
8169 file_magic*)
8170   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8172 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8173 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   case $MAGIC_CMD in
8177 [\\/*] |  ?:[\\/]*)
8178   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8179   ;;
8180 *)
8181   lt_save_MAGIC_CMD="$MAGIC_CMD"
8182   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8183   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8184   for ac_dir in $ac_dummy; do
8185     IFS="$lt_save_ifs"
8186     test -z "$ac_dir" && ac_dir=.
8187     if test -f $ac_dir/${ac_tool_prefix}file; then
8188       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8189       if test -n "$file_magic_test_file"; then
8190         case $deplibs_check_method in
8191         "file_magic "*)
8192           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8193           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8194           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8195             $EGREP "$file_magic_regex" > /dev/null; then
8196             :
8197           else
8198             cat <<_LT_EOF 1>&2
8199
8200 *** Warning: the command libtool uses to detect shared libraries,
8201 *** $file_magic_cmd, produces output that libtool cannot recognize.
8202 *** The result is that libtool may fail to recognize shared libraries
8203 *** as such.  This will affect the creation of libtool libraries that
8204 *** depend on shared libraries, but programs linked with such libtool
8205 *** libraries will work regardless of this problem.  Nevertheless, you
8206 *** may want to report the problem to your system manager and/or to
8207 *** bug-libtool@gnu.org
8208
8209 _LT_EOF
8210           fi ;;
8211         esac
8212       fi
8213       break
8214     fi
8215   done
8216   IFS="$lt_save_ifs"
8217   MAGIC_CMD="$lt_save_MAGIC_CMD"
8218   ;;
8219 esac
8220 fi
8221
8222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8223 if test -n "$MAGIC_CMD"; then
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8225 $as_echo "$MAGIC_CMD" >&6; }
8226 else
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231
8232
8233
8234
8235 if test -z "$lt_cv_path_MAGIC_CMD"; then
8236   if test -n "$ac_tool_prefix"; then
8237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8238 $as_echo_n "checking for file... " >&6; }
8239 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242   case $MAGIC_CMD in
8243 [\\/*] |  ?:[\\/]*)
8244   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8245   ;;
8246 *)
8247   lt_save_MAGIC_CMD="$MAGIC_CMD"
8248   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8249   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8250   for ac_dir in $ac_dummy; do
8251     IFS="$lt_save_ifs"
8252     test -z "$ac_dir" && ac_dir=.
8253     if test -f $ac_dir/file; then
8254       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8255       if test -n "$file_magic_test_file"; then
8256         case $deplibs_check_method in
8257         "file_magic "*)
8258           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8259           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8261             $EGREP "$file_magic_regex" > /dev/null; then
8262             :
8263           else
8264             cat <<_LT_EOF 1>&2
8265
8266 *** Warning: the command libtool uses to detect shared libraries,
8267 *** $file_magic_cmd, produces output that libtool cannot recognize.
8268 *** The result is that libtool may fail to recognize shared libraries
8269 *** as such.  This will affect the creation of libtool libraries that
8270 *** depend on shared libraries, but programs linked with such libtool
8271 *** libraries will work regardless of this problem.  Nevertheless, you
8272 *** may want to report the problem to your system manager and/or to
8273 *** bug-libtool@gnu.org
8274
8275 _LT_EOF
8276           fi ;;
8277         esac
8278       fi
8279       break
8280     fi
8281   done
8282   IFS="$lt_save_ifs"
8283   MAGIC_CMD="$lt_save_MAGIC_CMD"
8284   ;;
8285 esac
8286 fi
8287
8288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8289 if test -n "$MAGIC_CMD"; then
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8291 $as_echo "$MAGIC_CMD" >&6; }
8292 else
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298   else
8299     MAGIC_CMD=:
8300   fi
8301 fi
8302
8303   fi
8304   ;;
8305 esac
8306
8307 # Use C for the default configuration in the libtool script
8308
8309 lt_save_CC="$CC"
8310 ac_ext=c
8311 ac_cpp='$CPP $CPPFLAGS'
8312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315
8316
8317 # Source file extension for C test sources.
8318 ac_ext=c
8319
8320 # Object file extension for compiled C test sources.
8321 objext=o
8322 objext=$objext
8323
8324 # Code to be used in simple compile tests
8325 lt_simple_compile_test_code="int some_variable = 0;"
8326
8327 # Code to be used in simple link tests
8328 lt_simple_link_test_code='int main(){return(0);}'
8329
8330
8331
8332
8333
8334
8335
8336 # If no C compiler was specified, use CC.
8337 LTCC=${LTCC-"$CC"}
8338
8339 # If no C compiler flags were specified, use CFLAGS.
8340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8341
8342 # Allow CC to be a program name with arguments.
8343 compiler=$CC
8344
8345 # Save the default compiler, since it gets overwritten when the other
8346 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8347 compiler_DEFAULT=$CC
8348
8349 # save warnings/boilerplate of simple test code
8350 ac_outfile=conftest.$ac_objext
8351 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8352 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8353 _lt_compiler_boilerplate=`cat conftest.err`
8354 $RM conftest*
8355
8356 ac_outfile=conftest.$ac_objext
8357 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8358 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359 _lt_linker_boilerplate=`cat conftest.err`
8360 $RM -r conftest*
8361
8362
8363 ## CAVEAT EMPTOR:
8364 ## There is no encapsulation within the following macros, do not change
8365 ## the running order or otherwise move them around unless you know exactly
8366 ## what you are doing...
8367 if test -n "$compiler"; then
8368
8369 lt_prog_compiler_no_builtin_flag=
8370
8371 if test "$GCC" = yes; then
8372   case $cc_basename in
8373   nvcc*)
8374     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8375   *)
8376     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8377   esac
8378
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8380 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8381 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   lt_cv_prog_compiler_rtti_exceptions=no
8385    ac_outfile=conftest.$ac_objext
8386    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8387    lt_compiler_flag="-fno-rtti -fno-exceptions"
8388    # Insert the option either (1) after the last *FLAGS variable, or
8389    # (2) before a word containing "conftest.", or (3) at the end.
8390    # Note that $ac_compile itself does not contain backslashes and begins
8391    # with a dollar sign (not a hyphen), so the echo should work correctly.
8392    # The option is referenced via a variable to avoid confusing sed.
8393    lt_compile=`echo "$ac_compile" | $SED \
8394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8396    -e 's:$: $lt_compiler_flag:'`
8397    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8398    (eval "$lt_compile" 2>conftest.err)
8399    ac_status=$?
8400    cat conftest.err >&5
8401    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402    if (exit $ac_status) && test -s "$ac_outfile"; then
8403      # The compiler can only warn and ignore the option if not recognized
8404      # So say no if there are warnings other than the usual output.
8405      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8406      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8407      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8408        lt_cv_prog_compiler_rtti_exceptions=yes
8409      fi
8410    fi
8411    $RM conftest*
8412
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8415 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8416
8417 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8418     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8419 else
8420     :
8421 fi
8422
8423 fi
8424
8425
8426
8427
8428
8429
8430   lt_prog_compiler_wl=
8431 lt_prog_compiler_pic=
8432 lt_prog_compiler_static=
8433
8434
8435   if test "$GCC" = yes; then
8436     lt_prog_compiler_wl='-Wl,'
8437     lt_prog_compiler_static='-static'
8438
8439     case $host_os in
8440       aix*)
8441       # All AIX code is PIC.
8442       if test "$host_cpu" = ia64; then
8443         # AIX 5 now supports IA64 processor
8444         lt_prog_compiler_static='-Bstatic'
8445       fi
8446       ;;
8447
8448     amigaos*)
8449       case $host_cpu in
8450       powerpc)
8451             # see comment about AmigaOS4 .so support
8452             lt_prog_compiler_pic='-fPIC'
8453         ;;
8454       m68k)
8455             # FIXME: we need at least 68020 code to build shared libraries, but
8456             # adding the `-m68020' flag to GCC prevents building anything better,
8457             # like `-m68040'.
8458             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8459         ;;
8460       esac
8461       ;;
8462
8463     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8464       # PIC is the default for these OSes.
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       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8471       # (--disable-auto-import) libraries
8472       lt_prog_compiler_pic='-DDLL_EXPORT'
8473       ;;
8474
8475     darwin* | rhapsody*)
8476       # PIC is the default on this platform
8477       # Common symbols not allowed in MH_DYLIB files
8478       lt_prog_compiler_pic='-fno-common'
8479       ;;
8480
8481     haiku*)
8482       # PIC is the default for Haiku.
8483       # The "-static" flag exists, but is broken.
8484       lt_prog_compiler_static=
8485       ;;
8486
8487     hpux*)
8488       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8489       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8490       # sets the default TLS model and affects inlining.
8491       case $host_cpu in
8492       hppa*64*)
8493         # +Z the default
8494         ;;
8495       *)
8496         lt_prog_compiler_pic='-fPIC'
8497         ;;
8498       esac
8499       ;;
8500
8501     interix[3-9]*)
8502       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8503       # Instead, we relocate shared libraries at runtime.
8504       ;;
8505
8506     msdosdjgpp*)
8507       # Just because we use GCC doesn't mean we suddenly get shared libraries
8508       # on systems that don't support them.
8509       lt_prog_compiler_can_build_shared=no
8510       enable_shared=no
8511       ;;
8512
8513     *nto* | *qnx*)
8514       # QNX uses GNU C++, but need to define -shared option too, otherwise
8515       # it will coredump.
8516       lt_prog_compiler_pic='-fPIC -shared'
8517       ;;
8518
8519     sysv4*MP*)
8520       if test -d /usr/nec; then
8521         lt_prog_compiler_pic=-Kconform_pic
8522       fi
8523       ;;
8524
8525     *)
8526       lt_prog_compiler_pic='-fPIC'
8527       ;;
8528     esac
8529
8530     case $cc_basename in
8531     nvcc*) # Cuda Compiler Driver 2.2
8532       lt_prog_compiler_wl='-Xlinker '
8533       if test -n "$lt_prog_compiler_pic"; then
8534         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8535       fi
8536       ;;
8537     esac
8538   else
8539     # PORTME Check for flag to pass linker flags through the system compiler.
8540     case $host_os in
8541     aix*)
8542       lt_prog_compiler_wl='-Wl,'
8543       if test "$host_cpu" = ia64; then
8544         # AIX 5 now supports IA64 processor
8545         lt_prog_compiler_static='-Bstatic'
8546       else
8547         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8548       fi
8549       ;;
8550
8551     mingw* | cygwin* | pw32* | os2* | cegcc*)
8552       # This hack is so that the source file can tell whether it is being
8553       # built for inclusion in a dll (and should export symbols for example).
8554       lt_prog_compiler_pic='-DDLL_EXPORT'
8555       ;;
8556
8557     hpux9* | hpux10* | hpux11*)
8558       lt_prog_compiler_wl='-Wl,'
8559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8560       # not for PA HP-UX.
8561       case $host_cpu in
8562       hppa*64*|ia64*)
8563         # +Z the default
8564         ;;
8565       *)
8566         lt_prog_compiler_pic='+Z'
8567         ;;
8568       esac
8569       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8570       lt_prog_compiler_static='${wl}-a ${wl}archive'
8571       ;;
8572
8573     irix5* | irix6* | nonstopux*)
8574       lt_prog_compiler_wl='-Wl,'
8575       # PIC (with -KPIC) is the default.
8576       lt_prog_compiler_static='-non_shared'
8577       ;;
8578
8579     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8580       case $cc_basename in
8581       # old Intel for x86_64 which still supported -KPIC.
8582       ecc*)
8583         lt_prog_compiler_wl='-Wl,'
8584         lt_prog_compiler_pic='-KPIC'
8585         lt_prog_compiler_static='-static'
8586         ;;
8587       # icc used to be incompatible with GCC.
8588       # ICC 10 doesn't accept -KPIC any more.
8589       icc* | ifort*)
8590         lt_prog_compiler_wl='-Wl,'
8591         lt_prog_compiler_pic='-fPIC'
8592         lt_prog_compiler_static='-static'
8593         ;;
8594       # Lahey Fortran 8.1.
8595       lf95*)
8596         lt_prog_compiler_wl='-Wl,'
8597         lt_prog_compiler_pic='--shared'
8598         lt_prog_compiler_static='--static'
8599         ;;
8600       nagfor*)
8601         # NAG Fortran compiler
8602         lt_prog_compiler_wl='-Wl,-Wl,,'
8603         lt_prog_compiler_pic='-PIC'
8604         lt_prog_compiler_static='-Bstatic'
8605         ;;
8606       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8607         # Portland Group compilers (*not* the Pentium gcc compiler,
8608         # which looks to be a dead project)
8609         lt_prog_compiler_wl='-Wl,'
8610         lt_prog_compiler_pic='-fpic'
8611         lt_prog_compiler_static='-Bstatic'
8612         ;;
8613       ccc*)
8614         lt_prog_compiler_wl='-Wl,'
8615         # All Alpha code is PIC.
8616         lt_prog_compiler_static='-non_shared'
8617         ;;
8618       xl* | bgxl* | bgf* | mpixl*)
8619         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8620         lt_prog_compiler_wl='-Wl,'
8621         lt_prog_compiler_pic='-qpic'
8622         lt_prog_compiler_static='-qstaticlink'
8623         ;;
8624       *)
8625         case `$CC -V 2>&1 | sed 5q` in
8626         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8627           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8628           lt_prog_compiler_pic='-KPIC'
8629           lt_prog_compiler_static='-Bstatic'
8630           lt_prog_compiler_wl=''
8631           ;;
8632         *Sun\ F* | *Sun*Fortran*)
8633           lt_prog_compiler_pic='-KPIC'
8634           lt_prog_compiler_static='-Bstatic'
8635           lt_prog_compiler_wl='-Qoption ld '
8636           ;;
8637         *Sun\ C*)
8638           # Sun C 5.9
8639           lt_prog_compiler_pic='-KPIC'
8640           lt_prog_compiler_static='-Bstatic'
8641           lt_prog_compiler_wl='-Wl,'
8642           ;;
8643         *Intel*\ [CF]*Compiler*)
8644           lt_prog_compiler_wl='-Wl,'
8645           lt_prog_compiler_pic='-fPIC'
8646           lt_prog_compiler_static='-static'
8647           ;;
8648         *Portland\ Group*)
8649           lt_prog_compiler_wl='-Wl,'
8650           lt_prog_compiler_pic='-fpic'
8651           lt_prog_compiler_static='-Bstatic'
8652           ;;
8653         esac
8654         ;;
8655       esac
8656       ;;
8657
8658     newsos6)
8659       lt_prog_compiler_pic='-KPIC'
8660       lt_prog_compiler_static='-Bstatic'
8661       ;;
8662
8663     *nto* | *qnx*)
8664       # QNX uses GNU C++, but need to define -shared option too, otherwise
8665       # it will coredump.
8666       lt_prog_compiler_pic='-fPIC -shared'
8667       ;;
8668
8669     osf3* | osf4* | osf5*)
8670       lt_prog_compiler_wl='-Wl,'
8671       # All OSF/1 code is PIC.
8672       lt_prog_compiler_static='-non_shared'
8673       ;;
8674
8675     rdos*)
8676       lt_prog_compiler_static='-non_shared'
8677       ;;
8678
8679     solaris*)
8680       lt_prog_compiler_pic='-KPIC'
8681       lt_prog_compiler_static='-Bstatic'
8682       case $cc_basename in
8683       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8684         lt_prog_compiler_wl='-Qoption ld ';;
8685       *)
8686         lt_prog_compiler_wl='-Wl,';;
8687       esac
8688       ;;
8689
8690     sunos4*)
8691       lt_prog_compiler_wl='-Qoption ld '
8692       lt_prog_compiler_pic='-PIC'
8693       lt_prog_compiler_static='-Bstatic'
8694       ;;
8695
8696     sysv4 | sysv4.2uw2* | sysv4.3*)
8697       lt_prog_compiler_wl='-Wl,'
8698       lt_prog_compiler_pic='-KPIC'
8699       lt_prog_compiler_static='-Bstatic'
8700       ;;
8701
8702     sysv4*MP*)
8703       if test -d /usr/nec ;then
8704         lt_prog_compiler_pic='-Kconform_pic'
8705         lt_prog_compiler_static='-Bstatic'
8706       fi
8707       ;;
8708
8709     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8710       lt_prog_compiler_wl='-Wl,'
8711       lt_prog_compiler_pic='-KPIC'
8712       lt_prog_compiler_static='-Bstatic'
8713       ;;
8714
8715     unicos*)
8716       lt_prog_compiler_wl='-Wl,'
8717       lt_prog_compiler_can_build_shared=no
8718       ;;
8719
8720     uts4*)
8721       lt_prog_compiler_pic='-pic'
8722       lt_prog_compiler_static='-Bstatic'
8723       ;;
8724
8725     *)
8726       lt_prog_compiler_can_build_shared=no
8727       ;;
8728     esac
8729   fi
8730
8731 case $host_os in
8732   # For platforms which do not support PIC, -DPIC is meaningless:
8733   *djgpp*)
8734     lt_prog_compiler_pic=
8735     ;;
8736   *)
8737     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8738     ;;
8739 esac
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8742 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8743 if ${lt_cv_prog_compiler_pic+:} false; then :
8744   $as_echo_n "(cached) " >&6
8745 else
8746   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8747 fi
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8749 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8750 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8751
8752 #
8753 # Check to make sure the PIC flag actually works.
8754 #
8755 if test -n "$lt_prog_compiler_pic"; then
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8757 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8758 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8759   $as_echo_n "(cached) " >&6
8760 else
8761   lt_cv_prog_compiler_pic_works=no
8762    ac_outfile=conftest.$ac_objext
8763    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8764    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8765    # Insert the option either (1) after the last *FLAGS variable, or
8766    # (2) before a word containing "conftest.", or (3) at the end.
8767    # Note that $ac_compile itself does not contain backslashes and begins
8768    # with a dollar sign (not a hyphen), so the echo should work correctly.
8769    # The option is referenced via a variable to avoid confusing sed.
8770    lt_compile=`echo "$ac_compile" | $SED \
8771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8773    -e 's:$: $lt_compiler_flag:'`
8774    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8775    (eval "$lt_compile" 2>conftest.err)
8776    ac_status=$?
8777    cat conftest.err >&5
8778    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779    if (exit $ac_status) && test -s "$ac_outfile"; then
8780      # The compiler can only warn and ignore the option if not recognized
8781      # So say no if there are warnings other than the usual output.
8782      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8783      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8784      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8785        lt_cv_prog_compiler_pic_works=yes
8786      fi
8787    fi
8788    $RM conftest*
8789
8790 fi
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8792 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8793
8794 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8795     case $lt_prog_compiler_pic in
8796      "" | " "*) ;;
8797      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8798      esac
8799 else
8800     lt_prog_compiler_pic=
8801      lt_prog_compiler_can_build_shared=no
8802 fi
8803
8804 fi
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816 #
8817 # Check to make sure the static flag actually works.
8818 #
8819 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8821 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8822 if ${lt_cv_prog_compiler_static_works+:} false; then :
8823   $as_echo_n "(cached) " >&6
8824 else
8825   lt_cv_prog_compiler_static_works=no
8826    save_LDFLAGS="$LDFLAGS"
8827    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8828    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8829    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8830      # The linker can only warn and ignore the option if not recognized
8831      # So say no if there are warnings
8832      if test -s conftest.err; then
8833        # Append any errors to the config.log.
8834        cat conftest.err 1>&5
8835        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8836        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8837        if diff conftest.exp conftest.er2 >/dev/null; then
8838          lt_cv_prog_compiler_static_works=yes
8839        fi
8840      else
8841        lt_cv_prog_compiler_static_works=yes
8842      fi
8843    fi
8844    $RM -r conftest*
8845    LDFLAGS="$save_LDFLAGS"
8846
8847 fi
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8849 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8850
8851 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8852     :
8853 else
8854     lt_prog_compiler_static=
8855 fi
8856
8857
8858
8859
8860
8861
8862
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8864 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8865 if ${lt_cv_prog_compiler_c_o+:} false; then :
8866   $as_echo_n "(cached) " >&6
8867 else
8868   lt_cv_prog_compiler_c_o=no
8869    $RM -r conftest 2>/dev/null
8870    mkdir conftest
8871    cd conftest
8872    mkdir out
8873    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8874
8875    lt_compiler_flag="-o out/conftest2.$ac_objext"
8876    # Insert the option either (1) after the last *FLAGS variable, or
8877    # (2) before a word containing "conftest.", or (3) at the end.
8878    # Note that $ac_compile itself does not contain backslashes and begins
8879    # with a dollar sign (not a hyphen), so the echo should work correctly.
8880    lt_compile=`echo "$ac_compile" | $SED \
8881    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8882    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8883    -e 's:$: $lt_compiler_flag:'`
8884    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8885    (eval "$lt_compile" 2>out/conftest.err)
8886    ac_status=$?
8887    cat out/conftest.err >&5
8888    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8890    then
8891      # The compiler can only warn and ignore the option if not recognized
8892      # So say no if there are warnings
8893      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8894      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8895      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8896        lt_cv_prog_compiler_c_o=yes
8897      fi
8898    fi
8899    chmod u+w . 2>&5
8900    $RM conftest*
8901    # SGI C++ compiler will create directory out/ii_files/ for
8902    # template instantiation
8903    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8904    $RM out/* && rmdir out
8905    cd ..
8906    $RM -r conftest
8907    $RM conftest*
8908
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8911 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8912
8913
8914
8915
8916
8917
8918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8919 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8920 if ${lt_cv_prog_compiler_c_o+:} false; then :
8921   $as_echo_n "(cached) " >&6
8922 else
8923   lt_cv_prog_compiler_c_o=no
8924    $RM -r conftest 2>/dev/null
8925    mkdir conftest
8926    cd conftest
8927    mkdir out
8928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8929
8930    lt_compiler_flag="-o out/conftest2.$ac_objext"
8931    # Insert the option either (1) after the last *FLAGS variable, or
8932    # (2) before a word containing "conftest.", or (3) at the end.
8933    # Note that $ac_compile itself does not contain backslashes and begins
8934    # with a dollar sign (not a hyphen), so the echo should work correctly.
8935    lt_compile=`echo "$ac_compile" | $SED \
8936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8938    -e 's:$: $lt_compiler_flag:'`
8939    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8940    (eval "$lt_compile" 2>out/conftest.err)
8941    ac_status=$?
8942    cat out/conftest.err >&5
8943    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8945    then
8946      # The compiler can only warn and ignore the option if not recognized
8947      # So say no if there are warnings
8948      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8949      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8950      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8951        lt_cv_prog_compiler_c_o=yes
8952      fi
8953    fi
8954    chmod u+w . 2>&5
8955    $RM conftest*
8956    # SGI C++ compiler will create directory out/ii_files/ for
8957    # template instantiation
8958    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8959    $RM out/* && rmdir out
8960    cd ..
8961    $RM -r conftest
8962    $RM conftest*
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8966 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8967
8968
8969
8970
8971 hard_links="nottested"
8972 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8973   # do not overwrite the value of need_locks provided by the user
8974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8975 $as_echo_n "checking if we can lock with hard links... " >&6; }
8976   hard_links=yes
8977   $RM conftest*
8978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8979   touch conftest.a
8980   ln conftest.a conftest.b 2>&5 || hard_links=no
8981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8983 $as_echo "$hard_links" >&6; }
8984   if test "$hard_links" = no; then
8985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8986 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8987     need_locks=warn
8988   fi
8989 else
8990   need_locks=no
8991 fi
8992
8993
8994
8995
8996
8997
8998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8999 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9000
9001   runpath_var=
9002   allow_undefined_flag=
9003   always_export_symbols=no
9004   archive_cmds=
9005   archive_expsym_cmds=
9006   compiler_needs_object=no
9007   enable_shared_with_static_runtimes=no
9008   export_dynamic_flag_spec=
9009   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9010   hardcode_automatic=no
9011   hardcode_direct=no
9012   hardcode_direct_absolute=no
9013   hardcode_libdir_flag_spec=
9014   hardcode_libdir_separator=
9015   hardcode_minus_L=no
9016   hardcode_shlibpath_var=unsupported
9017   inherit_rpath=no
9018   link_all_deplibs=unknown
9019   module_cmds=
9020   module_expsym_cmds=
9021   old_archive_from_new_cmds=
9022   old_archive_from_expsyms_cmds=
9023   thread_safe_flag_spec=
9024   whole_archive_flag_spec=
9025   # include_expsyms should be a list of space-separated symbols to be *always*
9026   # included in the symbol list
9027   include_expsyms=
9028   # exclude_expsyms can be an extended regexp of symbols to exclude
9029   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9030   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9031   # as well as any symbol that contains `d'.
9032   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9033   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9034   # platforms (ab)use it in PIC code, but their linkers get confused if
9035   # the symbol is explicitly referenced.  Since portable code cannot
9036   # rely on this symbol name, it's probably fine to never include it in
9037   # preloaded symbol tables.
9038   # Exclude shared library initialization/finalization symbols.
9039   extract_expsyms_cmds=
9040
9041   case $host_os in
9042   cygwin* | mingw* | pw32* | cegcc*)
9043     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9044     # When not using gcc, we currently assume that we are using
9045     # Microsoft Visual C++.
9046     if test "$GCC" != yes; then
9047       with_gnu_ld=no
9048     fi
9049     ;;
9050   interix*)
9051     # we just hope/assume this is gcc and not c89 (= MSVC++)
9052     with_gnu_ld=yes
9053     ;;
9054   openbsd*)
9055     with_gnu_ld=no
9056     ;;
9057   esac
9058
9059   ld_shlibs=yes
9060
9061   # On some targets, GNU ld is compatible enough with the native linker
9062   # that we're better off using the native interface for both.
9063   lt_use_gnu_ld_interface=no
9064   if test "$with_gnu_ld" = yes; then
9065     case $host_os in
9066       aix*)
9067         # The AIX port of GNU ld has always aspired to compatibility
9068         # with the native linker.  However, as the warning in the GNU ld
9069         # block says, versions before 2.19.5* couldn't really create working
9070         # shared libraries, regardless of the interface used.
9071         case `$LD -v 2>&1` in
9072           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9073           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9074           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9075           *)
9076             lt_use_gnu_ld_interface=yes
9077             ;;
9078         esac
9079         ;;
9080       *)
9081         lt_use_gnu_ld_interface=yes
9082         ;;
9083     esac
9084   fi
9085
9086   if test "$lt_use_gnu_ld_interface" = yes; then
9087     # If archive_cmds runs LD, not CC, wlarc should be empty
9088     wlarc='${wl}'
9089
9090     # Set some defaults for GNU ld with shared library support. These
9091     # are reset later if shared libraries are not supported. Putting them
9092     # here allows them to be overridden if necessary.
9093     runpath_var=LD_RUN_PATH
9094     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9095     export_dynamic_flag_spec='${wl}--export-dynamic'
9096     # ancient GNU ld didn't support --whole-archive et. al.
9097     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9098       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9099     else
9100       whole_archive_flag_spec=
9101     fi
9102     supports_anon_versioning=no
9103     case `$LD -v 2>&1` in
9104       *GNU\ gold*) supports_anon_versioning=yes ;;
9105       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9106       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9107       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9108       *\ 2.11.*) ;; # other 2.11 versions
9109       *) supports_anon_versioning=yes ;;
9110     esac
9111
9112     # See if GNU ld supports shared libraries.
9113     case $host_os in
9114     aix[3-9]*)
9115       # On AIX/PPC, the GNU linker is very broken
9116       if test "$host_cpu" != ia64; then
9117         ld_shlibs=no
9118         cat <<_LT_EOF 1>&2
9119
9120 *** Warning: the GNU linker, at least up to release 2.19, is reported
9121 *** to be unable to reliably create shared libraries on AIX.
9122 *** Therefore, libtool is disabling shared libraries support.  If you
9123 *** really care for shared libraries, you may want to install binutils
9124 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9125 *** You will then need to restart the configuration process.
9126
9127 _LT_EOF
9128       fi
9129       ;;
9130
9131     amigaos*)
9132       case $host_cpu in
9133       powerpc)
9134             # see comment about AmigaOS4 .so support
9135             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136             archive_expsym_cmds=''
9137         ;;
9138       m68k)
9139             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)'
9140             hardcode_libdir_flag_spec='-L$libdir'
9141             hardcode_minus_L=yes
9142         ;;
9143       esac
9144       ;;
9145
9146     beos*)
9147       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9148         allow_undefined_flag=unsupported
9149         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9150         # support --undefined.  This deserves some investigation.  FIXME
9151         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152       else
9153         ld_shlibs=no
9154       fi
9155       ;;
9156
9157     cygwin* | mingw* | pw32* | cegcc*)
9158       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9159       # as there is no search path for DLLs.
9160       hardcode_libdir_flag_spec='-L$libdir'
9161       export_dynamic_flag_spec='${wl}--export-all-symbols'
9162       allow_undefined_flag=unsupported
9163       always_export_symbols=no
9164       enable_shared_with_static_runtimes=yes
9165       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'
9166       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9167
9168       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9169         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9170         # If the export-symbols file already is a .def file (1st line
9171         # is EXPORTS), use it as is; otherwise, prepend...
9172         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9173           cp $export_symbols $output_objdir/$soname.def;
9174         else
9175           echo EXPORTS > $output_objdir/$soname.def;
9176           cat $export_symbols >> $output_objdir/$soname.def;
9177         fi~
9178         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9179       else
9180         ld_shlibs=no
9181       fi
9182       ;;
9183
9184     haiku*)
9185       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186       link_all_deplibs=yes
9187       ;;
9188
9189     interix[3-9]*)
9190       hardcode_direct=no
9191       hardcode_shlibpath_var=no
9192       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9193       export_dynamic_flag_spec='${wl}-E'
9194       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9195       # Instead, shared libraries are loaded at an image base (0x10000000 by
9196       # default) and relocated if they conflict, which is a slow very memory
9197       # consuming and fragmenting process.  To avoid this, we pick a random,
9198       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9199       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9200       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9201       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'
9202       ;;
9203
9204     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9205       tmp_diet=no
9206       if test "$host_os" = linux-dietlibc; then
9207         case $cc_basename in
9208           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9209         esac
9210       fi
9211       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9212          && test "$tmp_diet" = no
9213       then
9214         tmp_addflag=' $pic_flag'
9215         tmp_sharedflag='-shared'
9216         case $cc_basename,$host_cpu in
9217         pgcc*)                          # Portland Group C compiler
9218           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'
9219           tmp_addflag=' $pic_flag'
9220           ;;
9221         pgf77* | pgf90* | pgf95* | pgfortran*)
9222                                         # Portland Group f77 and f90 compilers
9223           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'
9224           tmp_addflag=' $pic_flag -Mnomain' ;;
9225         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9226           tmp_addflag=' -i_dynamic' ;;
9227         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9228           tmp_addflag=' -i_dynamic -nofor_main' ;;
9229         ifc* | ifort*)                  # Intel Fortran compiler
9230           tmp_addflag=' -nofor_main' ;;
9231         lf95*)                          # Lahey Fortran 8.1
9232           whole_archive_flag_spec=
9233           tmp_sharedflag='--shared' ;;
9234         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9235           tmp_sharedflag='-qmkshrobj'
9236           tmp_addflag= ;;
9237         nvcc*)  # Cuda Compiler Driver 2.2
9238           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'
9239           compiler_needs_object=yes
9240           ;;
9241         esac
9242         case `$CC -V 2>&1 | sed 5q` in
9243         *Sun\ C*)                       # Sun C 5.9
9244           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'
9245           compiler_needs_object=yes
9246           tmp_sharedflag='-G' ;;
9247         *Sun\ F*)                       # Sun Fortran 8.3
9248           tmp_sharedflag='-G' ;;
9249         esac
9250         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251
9252         if test "x$supports_anon_versioning" = xyes; then
9253           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9254             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9255             echo "local: *; };" >> $output_objdir/$libname.ver~
9256             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9257         fi
9258
9259         case $cc_basename in
9260         xlf* | bgf* | bgxlf* | mpixlf*)
9261           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9262           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9263           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9265           if test "x$supports_anon_versioning" = xyes; then
9266             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9267               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9268               echo "local: *; };" >> $output_objdir/$libname.ver~
9269               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9270           fi
9271           ;;
9272         esac
9273       else
9274         ld_shlibs=no
9275       fi
9276       ;;
9277
9278     netbsd*)
9279       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9280         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9281         wlarc=
9282       else
9283         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9285       fi
9286       ;;
9287
9288     solaris*)
9289       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9290         ld_shlibs=no
9291         cat <<_LT_EOF 1>&2
9292
9293 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9294 *** create shared libraries on Solaris systems.  Therefore, libtool
9295 *** is disabling shared libraries support.  We urge you to upgrade GNU
9296 *** binutils to release 2.9.1 or newer.  Another option is to modify
9297 *** your PATH or compiler configuration so that the native linker is
9298 *** used, and then restart.
9299
9300 _LT_EOF
9301       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9302         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9304       else
9305         ld_shlibs=no
9306       fi
9307       ;;
9308
9309     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9310       case `$LD -v 2>&1` in
9311         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9312         ld_shlibs=no
9313         cat <<_LT_EOF 1>&2
9314
9315 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9316 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9317 *** is disabling shared libraries support.  We urge you to upgrade GNU
9318 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9319 *** your PATH or compiler configuration so that the native linker is
9320 *** used, and then restart.
9321
9322 _LT_EOF
9323         ;;
9324         *)
9325           # For security reasons, it is highly recommended that you always
9326           # use absolute paths for naming shared libraries, and exclude the
9327           # DT_RUNPATH tag from executables and libraries.  But doing so
9328           # requires that you compile everything twice, which is a pain.
9329           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9330             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9333           else
9334             ld_shlibs=no
9335           fi
9336         ;;
9337       esac
9338       ;;
9339
9340     sunos4*)
9341       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9342       wlarc=
9343       hardcode_direct=yes
9344       hardcode_shlibpath_var=no
9345       ;;
9346
9347     *)
9348       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9349         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351       else
9352         ld_shlibs=no
9353       fi
9354       ;;
9355     esac
9356
9357     if test "$ld_shlibs" = no; then
9358       runpath_var=
9359       hardcode_libdir_flag_spec=
9360       export_dynamic_flag_spec=
9361       whole_archive_flag_spec=
9362     fi
9363   else
9364     # PORTME fill in a description of your system's linker (not GNU ld)
9365     case $host_os in
9366     aix3*)
9367       allow_undefined_flag=unsupported
9368       always_export_symbols=yes
9369       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'
9370       # Note: this linker hardcodes the directories in LIBPATH if there
9371       # are no directories specified by -L.
9372       hardcode_minus_L=yes
9373       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9374         # Neither direct hardcoding nor static linking is supported with a
9375         # broken collect2.
9376         hardcode_direct=unsupported
9377       fi
9378       ;;
9379
9380     aix[4-9]*)
9381       if test "$host_cpu" = ia64; then
9382         # On IA64, the linker does run time linking by default, so we don't
9383         # have to do anything special.
9384         aix_use_runtimelinking=no
9385         exp_sym_flag='-Bexport'
9386         no_entry_flag=""
9387       else
9388         # If we're using GNU nm, then we don't want the "-C" option.
9389         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9390         # Also, AIX nm treats weak defined symbols like other global
9391         # defined symbols, whereas GNU nm marks them as "W".
9392         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9393           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'
9394         else
9395           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'
9396         fi
9397         aix_use_runtimelinking=no
9398
9399         # Test if we are trying to use run time linking or normal
9400         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9401         # need to do runtime linking.
9402         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9403           for ld_flag in $LDFLAGS; do
9404           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9405             aix_use_runtimelinking=yes
9406             break
9407           fi
9408           done
9409           ;;
9410         esac
9411
9412         exp_sym_flag='-bexport'
9413         no_entry_flag='-bnoentry'
9414       fi
9415
9416       # When large executables or shared objects are built, AIX ld can
9417       # have problems creating the table of contents.  If linking a library
9418       # or program results in "error TOC overflow" add -mminimal-toc to
9419       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9420       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9421
9422       archive_cmds=''
9423       hardcode_direct=yes
9424       hardcode_direct_absolute=yes
9425       hardcode_libdir_separator=':'
9426       link_all_deplibs=yes
9427       file_list_spec='${wl}-f,'
9428
9429       if test "$GCC" = yes; then
9430         case $host_os in aix4.[012]|aix4.[012].*)
9431         # We only want to do this on AIX 4.2 and lower, the check
9432         # below for broken collect2 doesn't work under 4.3+
9433           collect2name=`${CC} -print-prog-name=collect2`
9434           if test -f "$collect2name" &&
9435            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9436           then
9437           # We have reworked collect2
9438           :
9439           else
9440           # We have old collect2
9441           hardcode_direct=unsupported
9442           # It fails to find uninstalled libraries when the uninstalled
9443           # path is not listed in the libpath.  Setting hardcode_minus_L
9444           # to unsupported forces relinking
9445           hardcode_minus_L=yes
9446           hardcode_libdir_flag_spec='-L$libdir'
9447           hardcode_libdir_separator=
9448           fi
9449           ;;
9450         esac
9451         shared_flag='-shared'
9452         if test "$aix_use_runtimelinking" = yes; then
9453           shared_flag="$shared_flag "'${wl}-G'
9454         fi
9455       else
9456         # not using gcc
9457         if test "$host_cpu" = ia64; then
9458         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9459         # chokes on -Wl,-G. The following line is correct:
9460           shared_flag='-G'
9461         else
9462           if test "$aix_use_runtimelinking" = yes; then
9463             shared_flag='${wl}-G'
9464           else
9465             shared_flag='${wl}-bM:SRE'
9466           fi
9467         fi
9468       fi
9469
9470       export_dynamic_flag_spec='${wl}-bexpall'
9471       # It seems that -bexpall does not export symbols beginning with
9472       # underscore (_), so it is better to generate a list of symbols to export.
9473       always_export_symbols=yes
9474       if test "$aix_use_runtimelinking" = yes; then
9475         # Warning - without using the other runtime loading flags (-brtl),
9476         # -berok will link without error, but may produce a broken library.
9477         allow_undefined_flag='-berok'
9478         # Determine the default libpath from the value encoded in an
9479         # empty executable.
9480         if test "${lt_cv_aix_libpath+set}" = set; then
9481   aix_libpath=$lt_cv_aix_libpath
9482 else
9483   if ${lt_cv_aix_libpath_+:} false; then :
9484   $as_echo_n "(cached) " >&6
9485 else
9486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h.  */
9488
9489 int
9490 main ()
9491 {
9492
9493   ;
9494   return 0;
9495 }
9496 _ACEOF
9497 if ac_fn_c_try_link "$LINENO"; then :
9498
9499   lt_aix_libpath_sed='
9500       /Import File Strings/,/^$/ {
9501           /^0/ {
9502               s/^0  *\([^ ]*\) *$/\1/
9503               p
9504           }
9505       }'
9506   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9507   # Check for a 64-bit object if we didn't find anything.
9508   if test -z "$lt_cv_aix_libpath_"; then
9509     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9510   fi
9511 fi
9512 rm -f core conftest.err conftest.$ac_objext \
9513     conftest$ac_exeext conftest.$ac_ext
9514   if test -z "$lt_cv_aix_libpath_"; then
9515     lt_cv_aix_libpath_="/usr/lib:/lib"
9516   fi
9517
9518 fi
9519
9520   aix_libpath=$lt_cv_aix_libpath_
9521 fi
9522
9523         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9524         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"
9525       else
9526         if test "$host_cpu" = ia64; then
9527           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9528           allow_undefined_flag="-z nodefs"
9529           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"
9530         else
9531          # Determine the default libpath from the value encoded in an
9532          # empty executable.
9533          if test "${lt_cv_aix_libpath+set}" = set; then
9534   aix_libpath=$lt_cv_aix_libpath
9535 else
9536   if ${lt_cv_aix_libpath_+:} false; then :
9537   $as_echo_n "(cached) " >&6
9538 else
9539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h.  */
9541
9542 int
9543 main ()
9544 {
9545
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"; then :
9551
9552   lt_aix_libpath_sed='
9553       /Import File Strings/,/^$/ {
9554           /^0/ {
9555               s/^0  *\([^ ]*\) *$/\1/
9556               p
9557           }
9558       }'
9559   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560   # Check for a 64-bit object if we didn't find anything.
9561   if test -z "$lt_cv_aix_libpath_"; then
9562     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9563   fi
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext \
9566     conftest$ac_exeext conftest.$ac_ext
9567   if test -z "$lt_cv_aix_libpath_"; then
9568     lt_cv_aix_libpath_="/usr/lib:/lib"
9569   fi
9570
9571 fi
9572
9573   aix_libpath=$lt_cv_aix_libpath_
9574 fi
9575
9576          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9577           # Warning - without using the other run time loading flags,
9578           # -berok will link without error, but may produce a broken library.
9579           no_undefined_flag=' ${wl}-bernotok'
9580           allow_undefined_flag=' ${wl}-berok'
9581           if test "$with_gnu_ld" = yes; then
9582             # We only use this code for GNU lds that support --whole-archive.
9583             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9584           else
9585             # Exported symbols can be pulled into shared objects from archives
9586             whole_archive_flag_spec='$convenience'
9587           fi
9588           archive_cmds_need_lc=yes
9589           # This is similar to how AIX traditionally builds its shared libraries.
9590           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'
9591         fi
9592       fi
9593       ;;
9594
9595     amigaos*)
9596       case $host_cpu in
9597       powerpc)
9598             # see comment about AmigaOS4 .so support
9599             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600             archive_expsym_cmds=''
9601         ;;
9602       m68k)
9603             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)'
9604             hardcode_libdir_flag_spec='-L$libdir'
9605             hardcode_minus_L=yes
9606         ;;
9607       esac
9608       ;;
9609
9610     bsdi[45]*)
9611       export_dynamic_flag_spec=-rdynamic
9612       ;;
9613
9614     cygwin* | mingw* | pw32* | cegcc*)
9615       # When not using gcc, we currently assume that we are using
9616       # Microsoft Visual C++.
9617       # hardcode_libdir_flag_spec is actually meaningless, as there is
9618       # no search path for DLLs.
9619       case $cc_basename in
9620       cl*)
9621         # Native MSVC
9622         hardcode_libdir_flag_spec=' '
9623         allow_undefined_flag=unsupported
9624         always_export_symbols=yes
9625         file_list_spec='@'
9626         # Tell ltmain to make .lib files, not .a files.
9627         libext=lib
9628         # Tell ltmain to make .dll files, not .so files.
9629         shrext_cmds=".dll"
9630         # FIXME: Setting linknames here is a bad hack.
9631         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9632         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9633             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9634           else
9635             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9636           fi~
9637           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9638           linknames='
9639         # The linker will not automatically build a static lib if we build a DLL.
9640         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9641         enable_shared_with_static_runtimes=yes
9642         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9643         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9644         # Don't use ranlib
9645         old_postinstall_cmds='chmod 644 $oldlib'
9646         postlink_cmds='lt_outputfile="@OUTPUT@"~
9647           lt_tool_outputfile="@TOOL_OUTPUT@"~
9648           case $lt_outputfile in
9649             *.exe|*.EXE) ;;
9650             *)
9651               lt_outputfile="$lt_outputfile.exe"
9652               lt_tool_outputfile="$lt_tool_outputfile.exe"
9653               ;;
9654           esac~
9655           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9656             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9657             $RM "$lt_outputfile.manifest";
9658           fi'
9659         ;;
9660       *)
9661         # Assume MSVC wrapper
9662         hardcode_libdir_flag_spec=' '
9663         allow_undefined_flag=unsupported
9664         # Tell ltmain to make .lib files, not .a files.
9665         libext=lib
9666         # Tell ltmain to make .dll files, not .so files.
9667         shrext_cmds=".dll"
9668         # FIXME: Setting linknames here is a bad hack.
9669         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9670         # The linker will automatically build a .lib file if we build a DLL.
9671         old_archive_from_new_cmds='true'
9672         # FIXME: Should let the user specify the lib program.
9673         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9674         enable_shared_with_static_runtimes=yes
9675         ;;
9676       esac
9677       ;;
9678
9679     darwin* | rhapsody*)
9680
9681
9682   archive_cmds_need_lc=no
9683   hardcode_direct=no
9684   hardcode_automatic=yes
9685   hardcode_shlibpath_var=unsupported
9686   if test "$lt_cv_ld_force_load" = "yes"; then
9687     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\"`'
9688
9689   else
9690     whole_archive_flag_spec=''
9691   fi
9692   link_all_deplibs=yes
9693   allow_undefined_flag="$_lt_dar_allow_undefined"
9694   case $cc_basename in
9695      ifort*) _lt_dar_can_shared=yes ;;
9696      *) _lt_dar_can_shared=$GCC ;;
9697   esac
9698   if test "$_lt_dar_can_shared" = "yes"; then
9699     output_verbose_link_cmd=func_echo_all
9700     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9701     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9702     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}"
9703     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}"
9704
9705   else
9706   ld_shlibs=no
9707   fi
9708
9709       ;;
9710
9711     dgux*)
9712       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713       hardcode_libdir_flag_spec='-L$libdir'
9714       hardcode_shlibpath_var=no
9715       ;;
9716
9717     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9718     # support.  Future versions do this automatically, but an explicit c++rt0.o
9719     # does not break anything, and helps significantly (at the cost of a little
9720     # extra space).
9721     freebsd2.2*)
9722       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9723       hardcode_libdir_flag_spec='-R$libdir'
9724       hardcode_direct=yes
9725       hardcode_shlibpath_var=no
9726       ;;
9727
9728     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9729     freebsd2.*)
9730       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9731       hardcode_direct=yes
9732       hardcode_minus_L=yes
9733       hardcode_shlibpath_var=no
9734       ;;
9735
9736     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9737     freebsd* | dragonfly*)
9738       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9739       hardcode_libdir_flag_spec='-R$libdir'
9740       hardcode_direct=yes
9741       hardcode_shlibpath_var=no
9742       ;;
9743
9744     hpux9*)
9745       if test "$GCC" = yes; then
9746         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'
9747       else
9748         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'
9749       fi
9750       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9751       hardcode_libdir_separator=:
9752       hardcode_direct=yes
9753
9754       # hardcode_minus_L: Not really in the search PATH,
9755       # but as the default location of the library.
9756       hardcode_minus_L=yes
9757       export_dynamic_flag_spec='${wl}-E'
9758       ;;
9759
9760     hpux10*)
9761       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9762         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9763       else
9764         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9765       fi
9766       if test "$with_gnu_ld" = no; then
9767         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9768         hardcode_libdir_separator=:
9769         hardcode_direct=yes
9770         hardcode_direct_absolute=yes
9771         export_dynamic_flag_spec='${wl}-E'
9772         # hardcode_minus_L: Not really in the search PATH,
9773         # but as the default location of the library.
9774         hardcode_minus_L=yes
9775       fi
9776       ;;
9777
9778     hpux11*)
9779       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9780         case $host_cpu in
9781         hppa*64*)
9782           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9783           ;;
9784         ia64*)
9785           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9786           ;;
9787         *)
9788           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9789           ;;
9790         esac
9791       else
9792         case $host_cpu in
9793         hppa*64*)
9794           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9795           ;;
9796         ia64*)
9797           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9798           ;;
9799         *)
9800
9801           # Older versions of the 11.00 compiler do not understand -b yet
9802           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9803           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9804 $as_echo_n "checking if $CC understands -b... " >&6; }
9805 if ${lt_cv_prog_compiler__b+:} false; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   lt_cv_prog_compiler__b=no
9809    save_LDFLAGS="$LDFLAGS"
9810    LDFLAGS="$LDFLAGS -b"
9811    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9812    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9813      # The linker can only warn and ignore the option if not recognized
9814      # So say no if there are warnings
9815      if test -s conftest.err; then
9816        # Append any errors to the config.log.
9817        cat conftest.err 1>&5
9818        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9819        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9820        if diff conftest.exp conftest.er2 >/dev/null; then
9821          lt_cv_prog_compiler__b=yes
9822        fi
9823      else
9824        lt_cv_prog_compiler__b=yes
9825      fi
9826    fi
9827    $RM -r conftest*
9828    LDFLAGS="$save_LDFLAGS"
9829
9830 fi
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9832 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9833
9834 if test x"$lt_cv_prog_compiler__b" = xyes; then
9835     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836 else
9837     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9838 fi
9839
9840           ;;
9841         esac
9842       fi
9843       if test "$with_gnu_ld" = no; then
9844         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9845         hardcode_libdir_separator=:
9846
9847         case $host_cpu in
9848         hppa*64*|ia64*)
9849           hardcode_direct=no
9850           hardcode_shlibpath_var=no
9851           ;;
9852         *)
9853           hardcode_direct=yes
9854           hardcode_direct_absolute=yes
9855           export_dynamic_flag_spec='${wl}-E'
9856
9857           # hardcode_minus_L: Not really in the search PATH,
9858           # but as the default location of the library.
9859           hardcode_minus_L=yes
9860           ;;
9861         esac
9862       fi
9863       ;;
9864
9865     irix5* | irix6* | nonstopux*)
9866       if test "$GCC" = yes; then
9867         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'
9868         # Try to use the -exported_symbol ld option, if it does not
9869         # work, assume that -exports_file does not work either and
9870         # implicitly export all symbols.
9871         # This should be the same for all languages, so no per-tag cache variable.
9872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9873 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9874 if ${lt_cv_irix_exported_symbol+:} false; then :
9875   $as_echo_n "(cached) " >&6
9876 else
9877   save_LDFLAGS="$LDFLAGS"
9878            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9879            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h.  */
9881 int foo (void) { return 0; }
9882 _ACEOF
9883 if ac_fn_c_try_link "$LINENO"; then :
9884   lt_cv_irix_exported_symbol=yes
9885 else
9886   lt_cv_irix_exported_symbol=no
9887 fi
9888 rm -f core conftest.err conftest.$ac_objext \
9889     conftest$ac_exeext conftest.$ac_ext
9890            LDFLAGS="$save_LDFLAGS"
9891 fi
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9893 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9894         if test "$lt_cv_irix_exported_symbol" = yes; then
9895           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'
9896         fi
9897       else
9898         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'
9899         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'
9900       fi
9901       archive_cmds_need_lc='no'
9902       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9903       hardcode_libdir_separator=:
9904       inherit_rpath=yes
9905       link_all_deplibs=yes
9906       ;;
9907
9908     netbsd*)
9909       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9910         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9911       else
9912         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9913       fi
9914       hardcode_libdir_flag_spec='-R$libdir'
9915       hardcode_direct=yes
9916       hardcode_shlibpath_var=no
9917       ;;
9918
9919     newsos6)
9920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9921       hardcode_direct=yes
9922       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9923       hardcode_libdir_separator=:
9924       hardcode_shlibpath_var=no
9925       ;;
9926
9927     *nto* | *qnx*)
9928       ;;
9929
9930     openbsd*)
9931       if test -f /usr/libexec/ld.so; then
9932         hardcode_direct=yes
9933         hardcode_shlibpath_var=no
9934         hardcode_direct_absolute=yes
9935         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9936           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9938           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9939           export_dynamic_flag_spec='${wl}-E'
9940         else
9941           case $host_os in
9942            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9943              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9944              hardcode_libdir_flag_spec='-R$libdir'
9945              ;;
9946            *)
9947              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9948              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9949              ;;
9950           esac
9951         fi
9952       else
9953         ld_shlibs=no
9954       fi
9955       ;;
9956
9957     os2*)
9958       hardcode_libdir_flag_spec='-L$libdir'
9959       hardcode_minus_L=yes
9960       allow_undefined_flag=unsupported
9961       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'
9962       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9963       ;;
9964
9965     osf3*)
9966       if test "$GCC" = yes; then
9967         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9968         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'
9969       else
9970         allow_undefined_flag=' -expect_unresolved \*'
9971         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'
9972       fi
9973       archive_cmds_need_lc='no'
9974       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9975       hardcode_libdir_separator=:
9976       ;;
9977
9978     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9979       if test "$GCC" = yes; then
9980         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9981         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'
9982         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9983       else
9984         allow_undefined_flag=' -expect_unresolved \*'
9985         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'
9986         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~
9987         $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'
9988
9989         # Both c and cxx compiler support -rpath directly
9990         hardcode_libdir_flag_spec='-rpath $libdir'
9991       fi
9992       archive_cmds_need_lc='no'
9993       hardcode_libdir_separator=:
9994       ;;
9995
9996     solaris*)
9997       no_undefined_flag=' -z defs'
9998       if test "$GCC" = yes; then
9999         wlarc='${wl}'
10000         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10001         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10002           $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'
10003       else
10004         case `$CC -V 2>&1` in
10005         *"Compilers 5.0"*)
10006           wlarc=''
10007           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10009           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10010           ;;
10011         *)
10012           wlarc='${wl}'
10013           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10014           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10015           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10016           ;;
10017         esac
10018       fi
10019       hardcode_libdir_flag_spec='-R$libdir'
10020       hardcode_shlibpath_var=no
10021       case $host_os in
10022       solaris2.[0-5] | solaris2.[0-5].*) ;;
10023       *)
10024         # The compiler driver will combine and reorder linker options,
10025         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10026         # but is careful enough not to reorder.
10027         # Supported since Solaris 2.6 (maybe 2.5.1?)
10028         if test "$GCC" = yes; then
10029           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10030         else
10031           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10032         fi
10033         ;;
10034       esac
10035       link_all_deplibs=yes
10036       ;;
10037
10038     sunos4*)
10039       if test "x$host_vendor" = xsequent; then
10040         # Use $CC to link under sequent, because it throws in some extra .o
10041         # files that make .init and .fini sections work.
10042         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10043       else
10044         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10045       fi
10046       hardcode_libdir_flag_spec='-L$libdir'
10047       hardcode_direct=yes
10048       hardcode_minus_L=yes
10049       hardcode_shlibpath_var=no
10050       ;;
10051
10052     sysv4)
10053       case $host_vendor in
10054         sni)
10055           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056           hardcode_direct=yes # is this really true???
10057         ;;
10058         siemens)
10059           ## LD is ld it makes a PLAMLIB
10060           ## CC just makes a GrossModule.
10061           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10062           reload_cmds='$CC -r -o $output$reload_objs'
10063           hardcode_direct=no
10064         ;;
10065         motorola)
10066           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10068         ;;
10069       esac
10070       runpath_var='LD_RUN_PATH'
10071       hardcode_shlibpath_var=no
10072       ;;
10073
10074     sysv4.3*)
10075       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076       hardcode_shlibpath_var=no
10077       export_dynamic_flag_spec='-Bexport'
10078       ;;
10079
10080     sysv4*MP*)
10081       if test -d /usr/nec; then
10082         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083         hardcode_shlibpath_var=no
10084         runpath_var=LD_RUN_PATH
10085         hardcode_runpath_var=yes
10086         ld_shlibs=yes
10087       fi
10088       ;;
10089
10090     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10091       no_undefined_flag='${wl}-z,text'
10092       archive_cmds_need_lc=no
10093       hardcode_shlibpath_var=no
10094       runpath_var='LD_RUN_PATH'
10095
10096       if test "$GCC" = yes; then
10097         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099       else
10100         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10102       fi
10103       ;;
10104
10105     sysv5* | sco3.2v5* | sco5v6*)
10106       # Note: We can NOT use -z defs as we might desire, because we do not
10107       # link with -lc, and that would cause any symbols used from libc to
10108       # always be unresolved, which means just about no library would
10109       # ever link correctly.  If we're not using GNU ld we use -z text
10110       # though, which does catch some bad symbols but isn't as heavy-handed
10111       # as -z defs.
10112       no_undefined_flag='${wl}-z,text'
10113       allow_undefined_flag='${wl}-z,nodefs'
10114       archive_cmds_need_lc=no
10115       hardcode_shlibpath_var=no
10116       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10117       hardcode_libdir_separator=':'
10118       link_all_deplibs=yes
10119       export_dynamic_flag_spec='${wl}-Bexport'
10120       runpath_var='LD_RUN_PATH'
10121
10122       if test "$GCC" = yes; then
10123         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125       else
10126         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10128       fi
10129       ;;
10130
10131     uts4*)
10132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133       hardcode_libdir_flag_spec='-L$libdir'
10134       hardcode_shlibpath_var=no
10135       ;;
10136
10137     *)
10138       ld_shlibs=no
10139       ;;
10140     esac
10141
10142     if test x$host_vendor = xsni; then
10143       case $host in
10144       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10145         export_dynamic_flag_spec='${wl}-Blargedynsym'
10146         ;;
10147       esac
10148     fi
10149   fi
10150
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10152 $as_echo "$ld_shlibs" >&6; }
10153 test "$ld_shlibs" = no && can_build_shared=no
10154
10155 with_gnu_ld=$with_gnu_ld
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171 #
10172 # Do we need to explicitly link libc?
10173 #
10174 case "x$archive_cmds_need_lc" in
10175 x|xyes)
10176   # Assume -lc should be added
10177   archive_cmds_need_lc=yes
10178
10179   if test "$enable_shared" = yes && test "$GCC" = yes; then
10180     case $archive_cmds in
10181     *'~'*)
10182       # FIXME: we may have to deal with multi-command sequences.
10183       ;;
10184     '$CC '*)
10185       # Test whether the compiler implicitly links with -lc since on some
10186       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10187       # to ld, don't add -lc before -lgcc.
10188       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10189 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10190 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   $RM conftest*
10194         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10195
10196         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10197   (eval $ac_compile) 2>&5
10198   ac_status=$?
10199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200   test $ac_status = 0; } 2>conftest.err; then
10201           soname=conftest
10202           lib=conftest
10203           libobjs=conftest.$ac_objext
10204           deplibs=
10205           wl=$lt_prog_compiler_wl
10206           pic_flag=$lt_prog_compiler_pic
10207           compiler_flags=-v
10208           linker_flags=-v
10209           verstring=
10210           output_objdir=.
10211           libname=conftest
10212           lt_save_allow_undefined_flag=$allow_undefined_flag
10213           allow_undefined_flag=
10214           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10215   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10216   ac_status=$?
10217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10218   test $ac_status = 0; }
10219           then
10220             lt_cv_archive_cmds_need_lc=no
10221           else
10222             lt_cv_archive_cmds_need_lc=yes
10223           fi
10224           allow_undefined_flag=$lt_save_allow_undefined_flag
10225         else
10226           cat conftest.err 1>&5
10227         fi
10228         $RM conftest*
10229
10230 fi
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10232 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10233       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10234       ;;
10235     esac
10236   fi
10237   ;;
10238 esac
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
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10392 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10393
10394 if test "$GCC" = yes; then
10395   case $host_os in
10396     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10397     *) lt_awk_arg="/^libraries:/" ;;
10398   esac
10399   case $host_os in
10400     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10401     *) lt_sed_strip_eq="s,=/,/,g" ;;
10402   esac
10403   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10404   case $lt_search_path_spec in
10405   *\;*)
10406     # if the path contains ";" then we assume it to be the separator
10407     # otherwise default to the standard path separator (i.e. ":") - it is
10408     # assumed that no part of a normal pathname contains ";" but that should
10409     # okay in the real world where ";" in dirpaths is itself problematic.
10410     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10411     ;;
10412   *)
10413     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10414     ;;
10415   esac
10416   # Ok, now we have the path, separated by spaces, we can step through it
10417   # and add multilib dir if necessary.
10418   lt_tmp_lt_search_path_spec=
10419   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10420   for lt_sys_path in $lt_search_path_spec; do
10421     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10422       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10423     else
10424       test -d "$lt_sys_path" && \
10425         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10426     fi
10427   done
10428   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10429 BEGIN {RS=" "; FS="/|\n";} {
10430   lt_foo="";
10431   lt_count=0;
10432   for (lt_i = NF; lt_i > 0; lt_i--) {
10433     if ($lt_i != "" && $lt_i != ".") {
10434       if ($lt_i == "..") {
10435         lt_count++;
10436       } else {
10437         if (lt_count == 0) {
10438           lt_foo="/" $lt_i lt_foo;
10439         } else {
10440           lt_count--;
10441         }
10442       }
10443     }
10444   }
10445   if (lt_foo != "") { lt_freq[lt_foo]++; }
10446   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10447 }'`
10448   # AWK program above erroneously prepends '/' to C:/dos/paths
10449   # for these hosts.
10450   case $host_os in
10451     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10452       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10453   esac
10454   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10455 else
10456   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10457 fi
10458 library_names_spec=
10459 libname_spec='lib$name'
10460 soname_spec=
10461 shrext_cmds=".so"
10462 postinstall_cmds=
10463 postuninstall_cmds=
10464 finish_cmds=
10465 finish_eval=
10466 shlibpath_var=
10467 shlibpath_overrides_runpath=unknown
10468 version_type=none
10469 dynamic_linker="$host_os ld.so"
10470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10471 need_lib_prefix=unknown
10472 hardcode_into_libs=no
10473
10474 # when you set need_version to no, make sure it does not cause -set_version
10475 # flags to be left without arguments
10476 need_version=unknown
10477
10478 case $host_os in
10479 aix3*)
10480   version_type=linux # correct to gnu/linux during the next big refactor
10481   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10482   shlibpath_var=LIBPATH
10483
10484   # AIX 3 has no versioning support, so we append a major version to the name.
10485   soname_spec='${libname}${release}${shared_ext}$major'
10486   ;;
10487
10488 aix[4-9]*)
10489   version_type=linux # correct to gnu/linux during the next big refactor
10490   need_lib_prefix=no
10491   need_version=no
10492   hardcode_into_libs=yes
10493   if test "$host_cpu" = ia64; then
10494     # AIX 5 supports IA64
10495     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10496     shlibpath_var=LD_LIBRARY_PATH
10497   else
10498     # With GCC up to 2.95.x, collect2 would create an import file
10499     # for dependence libraries.  The import file would start with
10500     # the line `#! .'.  This would cause the generated library to
10501     # depend on `.', always an invalid library.  This was fixed in
10502     # development snapshots of GCC prior to 3.0.
10503     case $host_os in
10504       aix4 | aix4.[01] | aix4.[01].*)
10505       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10506            echo ' yes '
10507            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10508         :
10509       else
10510         can_build_shared=no
10511       fi
10512       ;;
10513     esac
10514     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10515     # soname into executable. Probably we can add versioning support to
10516     # collect2, so additional links can be useful in future.
10517     if test "$aix_use_runtimelinking" = yes; then
10518       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10519       # instead of lib<name>.a to let people know that these are not
10520       # typical AIX shared libraries.
10521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522     else
10523       # We preserve .a as extension for shared libraries through AIX4.2
10524       # and later when we are not doing run time linking.
10525       library_names_spec='${libname}${release}.a $libname.a'
10526       soname_spec='${libname}${release}${shared_ext}$major'
10527     fi
10528     shlibpath_var=LIBPATH
10529   fi
10530   ;;
10531
10532 amigaos*)
10533   case $host_cpu in
10534   powerpc)
10535     # Since July 2007 AmigaOS4 officially supports .so libraries.
10536     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538     ;;
10539   m68k)
10540     library_names_spec='$libname.ixlibrary $libname.a'
10541     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10542     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'
10543     ;;
10544   esac
10545   ;;
10546
10547 beos*)
10548   library_names_spec='${libname}${shared_ext}'
10549   dynamic_linker="$host_os ld.so"
10550   shlibpath_var=LIBRARY_PATH
10551   ;;
10552
10553 bsdi[45]*)
10554   version_type=linux # correct to gnu/linux during the next big refactor
10555   need_version=no
10556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557   soname_spec='${libname}${release}${shared_ext}$major'
10558   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10559   shlibpath_var=LD_LIBRARY_PATH
10560   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10561   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10562   # the default ld.so.conf also contains /usr/contrib/lib and
10563   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10564   # libtool to hard-code these into programs
10565   ;;
10566
10567 cygwin* | mingw* | pw32* | cegcc*)
10568   version_type=windows
10569   shrext_cmds=".dll"
10570   need_version=no
10571   need_lib_prefix=no
10572
10573   case $GCC,$cc_basename in
10574   yes,*)
10575     # gcc
10576     library_names_spec='$libname.dll.a'
10577     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10578     postinstall_cmds='base_file=`basename \${file}`~
10579       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10580       dldir=$destdir/`dirname \$dlpath`~
10581       test -d \$dldir || mkdir -p \$dldir~
10582       $install_prog $dir/$dlname \$dldir/$dlname~
10583       chmod a+x \$dldir/$dlname~
10584       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10585         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10586       fi'
10587     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10588       dlpath=$dir/\$dldll~
10589        $RM \$dlpath'
10590     shlibpath_overrides_runpath=yes
10591
10592     case $host_os in
10593     cygwin*)
10594       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10595       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10596
10597       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10598       ;;
10599     mingw* | cegcc*)
10600       # MinGW DLLs use traditional 'lib' prefix
10601       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10602       ;;
10603     pw32*)
10604       # pw32 DLLs use 'pw' prefix rather than 'lib'
10605       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10606       ;;
10607     esac
10608     dynamic_linker='Win32 ld.exe'
10609     ;;
10610
10611   *,cl*)
10612     # Native MSVC
10613     libname_spec='$name'
10614     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10615     library_names_spec='${libname}.dll.lib'
10616
10617     case $build_os in
10618     mingw*)
10619       sys_lib_search_path_spec=
10620       lt_save_ifs=$IFS
10621       IFS=';'
10622       for lt_path in $LIB
10623       do
10624         IFS=$lt_save_ifs
10625         # Let DOS variable expansion print the short 8.3 style file name.
10626         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10627         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10628       done
10629       IFS=$lt_save_ifs
10630       # Convert to MSYS style.
10631       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10632       ;;
10633     cygwin*)
10634       # Convert to unix form, then to dos form, then back to unix form
10635       # but this time dos style (no spaces!) so that the unix form looks
10636       # like /cygdrive/c/PROGRA~1:/cygdr...
10637       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10638       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10639       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10640       ;;
10641     *)
10642       sys_lib_search_path_spec="$LIB"
10643       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10644         # It is most probably a Windows format PATH.
10645         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10646       else
10647         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10648       fi
10649       # FIXME: find the short name or the path components, as spaces are
10650       # common. (e.g. "Program Files" -> "PROGRA~1")
10651       ;;
10652     esac
10653
10654     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10655     postinstall_cmds='base_file=`basename \${file}`~
10656       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10657       dldir=$destdir/`dirname \$dlpath`~
10658       test -d \$dldir || mkdir -p \$dldir~
10659       $install_prog $dir/$dlname \$dldir/$dlname'
10660     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10661       dlpath=$dir/\$dldll~
10662        $RM \$dlpath'
10663     shlibpath_overrides_runpath=yes
10664     dynamic_linker='Win32 link.exe'
10665     ;;
10666
10667   *)
10668     # Assume MSVC wrapper
10669     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10670     dynamic_linker='Win32 ld.exe'
10671     ;;
10672   esac
10673   # FIXME: first we should search . and the directory the executable is in
10674   shlibpath_var=PATH
10675   ;;
10676
10677 darwin* | rhapsody*)
10678   dynamic_linker="$host_os dyld"
10679   version_type=darwin
10680   need_lib_prefix=no
10681   need_version=no
10682   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10683   soname_spec='${libname}${release}${major}$shared_ext'
10684   shlibpath_overrides_runpath=yes
10685   shlibpath_var=DYLD_LIBRARY_PATH
10686   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10687
10688   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10689   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10690   ;;
10691
10692 dgux*)
10693   version_type=linux # correct to gnu/linux during the next big refactor
10694   need_lib_prefix=no
10695   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
10699   ;;
10700
10701 freebsd* | dragonfly*)
10702   # DragonFly does not have aout.  When/if they implement a new
10703   # versioning mechanism, adjust this.
10704   if test -x /usr/bin/objformat; then
10705     objformat=`/usr/bin/objformat`
10706   else
10707     case $host_os in
10708     freebsd[23].*) objformat=aout ;;
10709     *) objformat=elf ;;
10710     esac
10711   fi
10712   version_type=freebsd-$objformat
10713   case $version_type in
10714     freebsd-elf*)
10715       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10716       need_version=no
10717       need_lib_prefix=no
10718       ;;
10719     freebsd-*)
10720       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10721       need_version=yes
10722       ;;
10723   esac
10724   shlibpath_var=LD_LIBRARY_PATH
10725   case $host_os in
10726   freebsd2.*)
10727     shlibpath_overrides_runpath=yes
10728     ;;
10729   freebsd3.[01]* | freebsdelf3.[01]*)
10730     shlibpath_overrides_runpath=yes
10731     hardcode_into_libs=yes
10732     ;;
10733   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10734   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10735     shlibpath_overrides_runpath=no
10736     hardcode_into_libs=yes
10737     ;;
10738   *) # from 4.6 on, and DragonFly
10739     shlibpath_overrides_runpath=yes
10740     hardcode_into_libs=yes
10741     ;;
10742   esac
10743   ;;
10744
10745 gnu*)
10746   version_type=linux # correct to gnu/linux during the next big refactor
10747   need_lib_prefix=no
10748   need_version=no
10749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10750   soname_spec='${libname}${release}${shared_ext}$major'
10751   shlibpath_var=LD_LIBRARY_PATH
10752   shlibpath_overrides_runpath=no
10753   hardcode_into_libs=yes
10754   ;;
10755
10756 haiku*)
10757   version_type=linux # correct to gnu/linux during the next big refactor
10758   need_lib_prefix=no
10759   need_version=no
10760   dynamic_linker="$host_os runtime_loader"
10761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10762   soname_spec='${libname}${release}${shared_ext}$major'
10763   shlibpath_var=LIBRARY_PATH
10764   shlibpath_overrides_runpath=yes
10765   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10766   hardcode_into_libs=yes
10767   ;;
10768
10769 hpux9* | hpux10* | hpux11*)
10770   # Give a soname corresponding to the major version so that dld.sl refuses to
10771   # link against other versions.
10772   version_type=sunos
10773   need_lib_prefix=no
10774   need_version=no
10775   case $host_cpu in
10776   ia64*)
10777     shrext_cmds='.so'
10778     hardcode_into_libs=yes
10779     dynamic_linker="$host_os dld.so"
10780     shlibpath_var=LD_LIBRARY_PATH
10781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783     soname_spec='${libname}${release}${shared_ext}$major'
10784     if test "X$HPUX_IA64_MODE" = X32; then
10785       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10786     else
10787       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10788     fi
10789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10790     ;;
10791   hppa*64*)
10792     shrext_cmds='.sl'
10793     hardcode_into_libs=yes
10794     dynamic_linker="$host_os dld.sl"
10795     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10796     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798     soname_spec='${libname}${release}${shared_ext}$major'
10799     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10800     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10801     ;;
10802   *)
10803     shrext_cmds='.sl'
10804     dynamic_linker="$host_os dld.sl"
10805     shlibpath_var=SHLIB_PATH
10806     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808     soname_spec='${libname}${release}${shared_ext}$major'
10809     ;;
10810   esac
10811   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10812   postinstall_cmds='chmod 555 $lib'
10813   # or fails outright, so override atomically:
10814   install_override_mode=555
10815   ;;
10816
10817 interix[3-9]*)
10818   version_type=linux # correct to gnu/linux during the next big refactor
10819   need_lib_prefix=no
10820   need_version=no
10821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10822   soname_spec='${libname}${release}${shared_ext}$major'
10823   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10824   shlibpath_var=LD_LIBRARY_PATH
10825   shlibpath_overrides_runpath=no
10826   hardcode_into_libs=yes
10827   ;;
10828
10829 irix5* | irix6* | nonstopux*)
10830   case $host_os in
10831     nonstopux*) version_type=nonstopux ;;
10832     *)
10833         if test "$lt_cv_prog_gnu_ld" = yes; then
10834                 version_type=linux # correct to gnu/linux during the next big refactor
10835         else
10836                 version_type=irix
10837         fi ;;
10838   esac
10839   need_lib_prefix=no
10840   need_version=no
10841   soname_spec='${libname}${release}${shared_ext}$major'
10842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10843   case $host_os in
10844   irix5* | nonstopux*)
10845     libsuff= shlibsuff=
10846     ;;
10847   *)
10848     case $LD in # libtool.m4 will add one of these switches to LD
10849     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10850       libsuff= shlibsuff= libmagic=32-bit;;
10851     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10852       libsuff=32 shlibsuff=N32 libmagic=N32;;
10853     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10854       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10855     *) libsuff= shlibsuff= libmagic=never-match;;
10856     esac
10857     ;;
10858   esac
10859   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10860   shlibpath_overrides_runpath=no
10861   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10862   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10863   hardcode_into_libs=yes
10864   ;;
10865
10866 # No shared lib support for Linux oldld, aout, or coff.
10867 linux*oldld* | linux*aout* | linux*coff*)
10868   dynamic_linker=no
10869   ;;
10870
10871 # This must be glibc/ELF.
10872 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10873   version_type=linux # correct to gnu/linux during the next big refactor
10874   need_lib_prefix=no
10875   need_version=no
10876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877   soname_spec='${libname}${release}${shared_ext}$major'
10878   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10879   shlibpath_var=LD_LIBRARY_PATH
10880   shlibpath_overrides_runpath=no
10881
10882   # Some binutils ld are patched to set DT_RUNPATH
10883   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10884   $as_echo_n "(cached) " >&6
10885 else
10886   lt_cv_shlibpath_overrides_runpath=no
10887     save_LDFLAGS=$LDFLAGS
10888     save_libdir=$libdir
10889     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10890          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h.  */
10893
10894 int
10895 main ()
10896 {
10897
10898   ;
10899   return 0;
10900 }
10901 _ACEOF
10902 if ac_fn_c_try_link "$LINENO"; then :
10903   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10904   lt_cv_shlibpath_overrides_runpath=yes
10905 fi
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext \
10908     conftest$ac_exeext conftest.$ac_ext
10909     LDFLAGS=$save_LDFLAGS
10910     libdir=$save_libdir
10911
10912 fi
10913
10914   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10915
10916   # This implies no fast_install, which is unacceptable.
10917   # Some rework will be needed to allow for fast_install
10918   # before this can be enabled.
10919   hardcode_into_libs=yes
10920
10921   # Append ld.so.conf contents to the search path
10922   if test -f /etc/ld.so.conf; then
10923     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' ' '`
10924     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10925   fi
10926
10927   # We used to test for /lib/ld.so.1 and disable shared libraries on
10928   # powerpc, because MkLinux only supported shared libraries with the
10929   # GNU dynamic linker.  Since this was broken with cross compilers,
10930   # most powerpc-linux boxes support dynamic linking these days and
10931   # people can always --disable-shared, the test was removed, and we
10932   # assume the GNU/Linux dynamic linker is in use.
10933   dynamic_linker='GNU/Linux ld.so'
10934   ;;
10935
10936 netbsd*)
10937   version_type=sunos
10938   need_lib_prefix=no
10939   need_version=no
10940   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10942     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10943     dynamic_linker='NetBSD (a.out) ld.so'
10944   else
10945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10946     soname_spec='${libname}${release}${shared_ext}$major'
10947     dynamic_linker='NetBSD ld.elf_so'
10948   fi
10949   shlibpath_var=LD_LIBRARY_PATH
10950   shlibpath_overrides_runpath=yes
10951   hardcode_into_libs=yes
10952   ;;
10953
10954 newsos6)
10955   version_type=linux # correct to gnu/linux during the next big refactor
10956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957   shlibpath_var=LD_LIBRARY_PATH
10958   shlibpath_overrides_runpath=yes
10959   ;;
10960
10961 *nto* | *qnx*)
10962   version_type=qnx
10963   need_lib_prefix=no
10964   need_version=no
10965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966   soname_spec='${libname}${release}${shared_ext}$major'
10967   shlibpath_var=LD_LIBRARY_PATH
10968   shlibpath_overrides_runpath=no
10969   hardcode_into_libs=yes
10970   dynamic_linker='ldqnx.so'
10971   ;;
10972
10973 openbsd*)
10974   version_type=sunos
10975   sys_lib_dlsearch_path_spec="/usr/lib"
10976   need_lib_prefix=no
10977   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10978   case $host_os in
10979     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10980     *)                          need_version=no  ;;
10981   esac
10982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10986     case $host_os in
10987       openbsd2.[89] | openbsd2.[89].*)
10988         shlibpath_overrides_runpath=no
10989         ;;
10990       *)
10991         shlibpath_overrides_runpath=yes
10992         ;;
10993       esac
10994   else
10995     shlibpath_overrides_runpath=yes
10996   fi
10997   ;;
10998
10999 os2*)
11000   libname_spec='$name'
11001   shrext_cmds=".dll"
11002   need_lib_prefix=no
11003   library_names_spec='$libname${shared_ext} $libname.a'
11004   dynamic_linker='OS/2 ld.exe'
11005   shlibpath_var=LIBPATH
11006   ;;
11007
11008 osf3* | osf4* | osf5*)
11009   version_type=osf
11010   need_lib_prefix=no
11011   need_version=no
11012   soname_spec='${libname}${release}${shared_ext}$major'
11013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014   shlibpath_var=LD_LIBRARY_PATH
11015   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11016   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11017   ;;
11018
11019 rdos*)
11020   dynamic_linker=no
11021   ;;
11022
11023 solaris*)
11024   version_type=linux # correct to gnu/linux during the next big refactor
11025   need_lib_prefix=no
11026   need_version=no
11027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028   soname_spec='${libname}${release}${shared_ext}$major'
11029   shlibpath_var=LD_LIBRARY_PATH
11030   shlibpath_overrides_runpath=yes
11031   hardcode_into_libs=yes
11032   # ldd complains unless libraries are executable
11033   postinstall_cmds='chmod +x $lib'
11034   ;;
11035
11036 sunos4*)
11037   version_type=sunos
11038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11039   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11040   shlibpath_var=LD_LIBRARY_PATH
11041   shlibpath_overrides_runpath=yes
11042   if test "$with_gnu_ld" = yes; then
11043     need_lib_prefix=no
11044   fi
11045   need_version=yes
11046   ;;
11047
11048 sysv4 | sysv4.3*)
11049   version_type=linux # correct to gnu/linux during the next big refactor
11050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051   soname_spec='${libname}${release}${shared_ext}$major'
11052   shlibpath_var=LD_LIBRARY_PATH
11053   case $host_vendor in
11054     sni)
11055       shlibpath_overrides_runpath=no
11056       need_lib_prefix=no
11057       runpath_var=LD_RUN_PATH
11058       ;;
11059     siemens)
11060       need_lib_prefix=no
11061       ;;
11062     motorola)
11063       need_lib_prefix=no
11064       need_version=no
11065       shlibpath_overrides_runpath=no
11066       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11067       ;;
11068   esac
11069   ;;
11070
11071 sysv4*MP*)
11072   if test -d /usr/nec ;then
11073     version_type=linux # correct to gnu/linux during the next big refactor
11074     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11075     soname_spec='$libname${shared_ext}.$major'
11076     shlibpath_var=LD_LIBRARY_PATH
11077   fi
11078   ;;
11079
11080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11081   version_type=freebsd-elf
11082   need_lib_prefix=no
11083   need_version=no
11084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11085   soname_spec='${libname}${release}${shared_ext}$major'
11086   shlibpath_var=LD_LIBRARY_PATH
11087   shlibpath_overrides_runpath=yes
11088   hardcode_into_libs=yes
11089   if test "$with_gnu_ld" = yes; then
11090     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11091   else
11092     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11093     case $host_os in
11094       sco3.2v5*)
11095         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11096         ;;
11097     esac
11098   fi
11099   sys_lib_dlsearch_path_spec='/usr/lib'
11100   ;;
11101
11102 tpf*)
11103   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11104   version_type=linux # correct to gnu/linux during the next big refactor
11105   need_lib_prefix=no
11106   need_version=no
11107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=no
11110   hardcode_into_libs=yes
11111   ;;
11112
11113 uts4*)
11114   version_type=linux # correct to gnu/linux during the next big refactor
11115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116   soname_spec='${libname}${release}${shared_ext}$major'
11117   shlibpath_var=LD_LIBRARY_PATH
11118   ;;
11119
11120 *)
11121   dynamic_linker=no
11122   ;;
11123 esac
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11125 $as_echo "$dynamic_linker" >&6; }
11126 test "$dynamic_linker" = no && can_build_shared=no
11127
11128 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11129 if test "$GCC" = yes; then
11130   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11131 fi
11132
11133 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11134   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11135 fi
11136 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11137   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11138 fi
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11232 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11233 hardcode_action=
11234 if test -n "$hardcode_libdir_flag_spec" ||
11235    test -n "$runpath_var" ||
11236    test "X$hardcode_automatic" = "Xyes" ; then
11237
11238   # We can hardcode non-existent directories.
11239   if test "$hardcode_direct" != no &&
11240      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11241      # have to relink, otherwise we might link with an installed library
11242      # when we should be linking with a yet-to-be-installed one
11243      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11244      test "$hardcode_minus_L" != no; then
11245     # Linking always hardcodes the temporary library directory.
11246     hardcode_action=relink
11247   else
11248     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11249     hardcode_action=immediate
11250   fi
11251 else
11252   # We cannot hardcode anything, or else we can only hardcode existing
11253   # directories.
11254   hardcode_action=unsupported
11255 fi
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11257 $as_echo "$hardcode_action" >&6; }
11258
11259 if test "$hardcode_action" = relink ||
11260    test "$inherit_rpath" = yes; then
11261   # Fast installation is not supported
11262   enable_fast_install=no
11263 elif test "$shlibpath_overrides_runpath" = yes ||
11264      test "$enable_shared" = no; then
11265   # Fast installation is not necessary
11266   enable_fast_install=needless
11267 fi
11268
11269
11270
11271
11272
11273
11274   if test "x$enable_dlopen" != xyes; then
11275   enable_dlopen=unknown
11276   enable_dlopen_self=unknown
11277   enable_dlopen_self_static=unknown
11278 else
11279   lt_cv_dlopen=no
11280   lt_cv_dlopen_libs=
11281
11282   case $host_os in
11283   beos*)
11284     lt_cv_dlopen="load_add_on"
11285     lt_cv_dlopen_libs=
11286     lt_cv_dlopen_self=yes
11287     ;;
11288
11289   mingw* | pw32* | cegcc*)
11290     lt_cv_dlopen="LoadLibrary"
11291     lt_cv_dlopen_libs=
11292     ;;
11293
11294   cygwin*)
11295     lt_cv_dlopen="dlopen"
11296     lt_cv_dlopen_libs=
11297     ;;
11298
11299   darwin*)
11300   # if libdl is installed we need to link against it
11301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11302 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11303 if ${ac_cv_lib_dl_dlopen+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-ldl  $LIBS"
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h.  */
11310
11311 /* Override any GCC internal prototype to avoid an error.
11312    Use char because int might match the return type of a GCC
11313    builtin and then its argument prototype would still apply.  */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char dlopen ();
11318 int
11319 main ()
11320 {
11321 return dlopen ();
11322   ;
11323   return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327   ac_cv_lib_dl_dlopen=yes
11328 else
11329   ac_cv_lib_dl_dlopen=no
11330 fi
11331 rm -f core conftest.err conftest.$ac_objext \
11332     conftest$ac_exeext conftest.$ac_ext
11333 LIBS=$ac_check_lib_save_LIBS
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11336 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11337 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11338   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11339 else
11340
11341     lt_cv_dlopen="dyld"
11342     lt_cv_dlopen_libs=
11343     lt_cv_dlopen_self=yes
11344
11345 fi
11346
11347     ;;
11348
11349   *)
11350     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11351 if test "x$ac_cv_func_shl_load" = xyes; then :
11352   lt_cv_dlopen="shl_load"
11353 else
11354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11355 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11356 if ${ac_cv_lib_dld_shl_load+:} false; then :
11357   $as_echo_n "(cached) " >&6
11358 else
11359   ac_check_lib_save_LIBS=$LIBS
11360 LIBS="-ldld  $LIBS"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h.  */
11363
11364 /* Override any GCC internal prototype to avoid an error.
11365    Use char because int might match the return type of a GCC
11366    builtin and then its argument prototype would still apply.  */
11367 #ifdef __cplusplus
11368 extern "C"
11369 #endif
11370 char shl_load ();
11371 int
11372 main ()
11373 {
11374 return shl_load ();
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 if ac_fn_c_try_link "$LINENO"; then :
11380   ac_cv_lib_dld_shl_load=yes
11381 else
11382   ac_cv_lib_dld_shl_load=no
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext \
11385     conftest$ac_exeext conftest.$ac_ext
11386 LIBS=$ac_check_lib_save_LIBS
11387 fi
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11389 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11390 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11391   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11392 else
11393   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11394 if test "x$ac_cv_func_dlopen" = xyes; then :
11395   lt_cv_dlopen="dlopen"
11396 else
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11398 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11399 if ${ac_cv_lib_dl_dlopen+:} false; then :
11400   $as_echo_n "(cached) " >&6
11401 else
11402   ac_check_lib_save_LIBS=$LIBS
11403 LIBS="-ldl  $LIBS"
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h.  */
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408    Use char because int might match the return type of a GCC
11409    builtin and then its argument prototype would still apply.  */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char dlopen ();
11414 int
11415 main ()
11416 {
11417 return dlopen ();
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423   ac_cv_lib_dl_dlopen=yes
11424 else
11425   ac_cv_lib_dl_dlopen=no
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428     conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11433 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11434   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11435 else
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11437 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11438 if ${ac_cv_lib_svld_dlopen+:} false; then :
11439   $as_echo_n "(cached) " >&6
11440 else
11441   ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-lsvld  $LIBS"
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h.  */
11445
11446 /* Override any GCC internal prototype to avoid an error.
11447    Use char because int might match the return type of a GCC
11448    builtin and then its argument prototype would still apply.  */
11449 #ifdef __cplusplus
11450 extern "C"
11451 #endif
11452 char dlopen ();
11453 int
11454 main ()
11455 {
11456 return dlopen ();
11457   ;
11458   return 0;
11459 }
11460 _ACEOF
11461 if ac_fn_c_try_link "$LINENO"; then :
11462   ac_cv_lib_svld_dlopen=yes
11463 else
11464   ac_cv_lib_svld_dlopen=no
11465 fi
11466 rm -f core conftest.err conftest.$ac_objext \
11467     conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
11469 fi
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11471 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11472 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11473   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11474 else
11475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11476 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11477 if ${ac_cv_lib_dld_dld_link+:} false; then :
11478   $as_echo_n "(cached) " >&6
11479 else
11480   ac_check_lib_save_LIBS=$LIBS
11481 LIBS="-ldld  $LIBS"
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h.  */
11484
11485 /* Override any GCC internal prototype to avoid an error.
11486    Use char because int might match the return type of a GCC
11487    builtin and then its argument prototype would still apply.  */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 char dld_link ();
11492 int
11493 main ()
11494 {
11495 return dld_link ();
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 if ac_fn_c_try_link "$LINENO"; then :
11501   ac_cv_lib_dld_dld_link=yes
11502 else
11503   ac_cv_lib_dld_dld_link=no
11504 fi
11505 rm -f core conftest.err conftest.$ac_objext \
11506     conftest$ac_exeext conftest.$ac_ext
11507 LIBS=$ac_check_lib_save_LIBS
11508 fi
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11510 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11511 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11512   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11513 fi
11514
11515
11516 fi
11517
11518
11519 fi
11520
11521
11522 fi
11523
11524
11525 fi
11526
11527
11528 fi
11529
11530     ;;
11531   esac
11532
11533   if test "x$lt_cv_dlopen" != xno; then
11534     enable_dlopen=yes
11535   else
11536     enable_dlopen=no
11537   fi
11538
11539   case $lt_cv_dlopen in
11540   dlopen)
11541     save_CPPFLAGS="$CPPFLAGS"
11542     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11543
11544     save_LDFLAGS="$LDFLAGS"
11545     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11546
11547     save_LIBS="$LIBS"
11548     LIBS="$lt_cv_dlopen_libs $LIBS"
11549
11550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11551 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11552 if ${lt_cv_dlopen_self+:} false; then :
11553   $as_echo_n "(cached) " >&6
11554 else
11555           if test "$cross_compiling" = yes; then :
11556   lt_cv_dlopen_self=cross
11557 else
11558   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11559   lt_status=$lt_dlunknown
11560   cat > conftest.$ac_ext <<_LT_EOF
11561 #line $LINENO "configure"
11562 #include "confdefs.h"
11563
11564 #if HAVE_DLFCN_H
11565 #include <dlfcn.h>
11566 #endif
11567
11568 #include <stdio.h>
11569
11570 #ifdef RTLD_GLOBAL
11571 #  define LT_DLGLOBAL           RTLD_GLOBAL
11572 #else
11573 #  ifdef DL_GLOBAL
11574 #    define LT_DLGLOBAL         DL_GLOBAL
11575 #  else
11576 #    define LT_DLGLOBAL         0
11577 #  endif
11578 #endif
11579
11580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11581    find out it does not work in some platform. */
11582 #ifndef LT_DLLAZY_OR_NOW
11583 #  ifdef RTLD_LAZY
11584 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11585 #  else
11586 #    ifdef DL_LAZY
11587 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11588 #    else
11589 #      ifdef RTLD_NOW
11590 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11591 #      else
11592 #        ifdef DL_NOW
11593 #          define LT_DLLAZY_OR_NOW      DL_NOW
11594 #        else
11595 #          define LT_DLLAZY_OR_NOW      0
11596 #        endif
11597 #      endif
11598 #    endif
11599 #  endif
11600 #endif
11601
11602 /* When -fvisbility=hidden is used, assume the code has been annotated
11603    correspondingly for the symbols needed.  */
11604 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11605 int fnord () __attribute__((visibility("default")));
11606 #endif
11607
11608 int fnord () { return 42; }
11609 int main ()
11610 {
11611   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11612   int status = $lt_dlunknown;
11613
11614   if (self)
11615     {
11616       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11617       else
11618         {
11619           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11620           else puts (dlerror ());
11621         }
11622       /* dlclose (self); */
11623     }
11624   else
11625     puts (dlerror ());
11626
11627   return status;
11628 }
11629 _LT_EOF
11630   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11631   (eval $ac_link) 2>&5
11632   ac_status=$?
11633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11634   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11635     (./conftest; exit; ) >&5 2>/dev/null
11636     lt_status=$?
11637     case x$lt_status in
11638       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11639       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11640       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11641     esac
11642   else :
11643     # compilation failed
11644     lt_cv_dlopen_self=no
11645   fi
11646 fi
11647 rm -fr conftest*
11648
11649
11650 fi
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11652 $as_echo "$lt_cv_dlopen_self" >&6; }
11653
11654     if test "x$lt_cv_dlopen_self" = xyes; then
11655       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11656       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11657 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11658 if ${lt_cv_dlopen_self_static+:} false; then :
11659   $as_echo_n "(cached) " >&6
11660 else
11661           if test "$cross_compiling" = yes; then :
11662   lt_cv_dlopen_self_static=cross
11663 else
11664   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11665   lt_status=$lt_dlunknown
11666   cat > conftest.$ac_ext <<_LT_EOF
11667 #line $LINENO "configure"
11668 #include "confdefs.h"
11669
11670 #if HAVE_DLFCN_H
11671 #include <dlfcn.h>
11672 #endif
11673
11674 #include <stdio.h>
11675
11676 #ifdef RTLD_GLOBAL
11677 #  define LT_DLGLOBAL           RTLD_GLOBAL
11678 #else
11679 #  ifdef DL_GLOBAL
11680 #    define LT_DLGLOBAL         DL_GLOBAL
11681 #  else
11682 #    define LT_DLGLOBAL         0
11683 #  endif
11684 #endif
11685
11686 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11687    find out it does not work in some platform. */
11688 #ifndef LT_DLLAZY_OR_NOW
11689 #  ifdef RTLD_LAZY
11690 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11691 #  else
11692 #    ifdef DL_LAZY
11693 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11694 #    else
11695 #      ifdef RTLD_NOW
11696 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11697 #      else
11698 #        ifdef DL_NOW
11699 #          define LT_DLLAZY_OR_NOW      DL_NOW
11700 #        else
11701 #          define LT_DLLAZY_OR_NOW      0
11702 #        endif
11703 #      endif
11704 #    endif
11705 #  endif
11706 #endif
11707
11708 /* When -fvisbility=hidden is used, assume the code has been annotated
11709    correspondingly for the symbols needed.  */
11710 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11711 int fnord () __attribute__((visibility("default")));
11712 #endif
11713
11714 int fnord () { return 42; }
11715 int main ()
11716 {
11717   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11718   int status = $lt_dlunknown;
11719
11720   if (self)
11721     {
11722       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11723       else
11724         {
11725           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11726           else puts (dlerror ());
11727         }
11728       /* dlclose (self); */
11729     }
11730   else
11731     puts (dlerror ());
11732
11733   return status;
11734 }
11735 _LT_EOF
11736   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11737   (eval $ac_link) 2>&5
11738   ac_status=$?
11739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11741     (./conftest; exit; ) >&5 2>/dev/null
11742     lt_status=$?
11743     case x$lt_status in
11744       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11745       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11746       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11747     esac
11748   else :
11749     # compilation failed
11750     lt_cv_dlopen_self_static=no
11751   fi
11752 fi
11753 rm -fr conftest*
11754
11755
11756 fi
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11758 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11759     fi
11760
11761     CPPFLAGS="$save_CPPFLAGS"
11762     LDFLAGS="$save_LDFLAGS"
11763     LIBS="$save_LIBS"
11764     ;;
11765   esac
11766
11767   case $lt_cv_dlopen_self in
11768   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11769   *) enable_dlopen_self=unknown ;;
11770   esac
11771
11772   case $lt_cv_dlopen_self_static in
11773   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11774   *) enable_dlopen_self_static=unknown ;;
11775   esac
11776 fi
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794 striplib=
11795 old_striplib=
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11797 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11798 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11799   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11800   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11802 $as_echo "yes" >&6; }
11803 else
11804 # FIXME - insert some real tests, host_os isn't really good enough
11805   case $host_os in
11806   darwin*)
11807     if test -n "$STRIP" ; then
11808       striplib="$STRIP -x"
11809       old_striplib="$STRIP -S"
11810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11811 $as_echo "yes" >&6; }
11812     else
11813       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11815     fi
11816     ;;
11817   *)
11818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11820     ;;
11821   esac
11822 fi
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835   # Report which library types will actually be built
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11837 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11839 $as_echo "$can_build_shared" >&6; }
11840
11841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11842 $as_echo_n "checking whether to build shared libraries... " >&6; }
11843   test "$can_build_shared" = "no" && enable_shared=no
11844
11845   # On AIX, shared libraries and static libraries use the same namespace, and
11846   # are all built from PIC.
11847   case $host_os in
11848   aix3*)
11849     test "$enable_shared" = yes && enable_static=no
11850     if test -n "$RANLIB"; then
11851       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11852       postinstall_cmds='$RANLIB $lib'
11853     fi
11854     ;;
11855
11856   aix[4-9]*)
11857     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11858       test "$enable_shared" = yes && enable_static=no
11859     fi
11860     ;;
11861   esac
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11863 $as_echo "$enable_shared" >&6; }
11864
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11866 $as_echo_n "checking whether to build static libraries... " >&6; }
11867   # Make sure either enable_shared or enable_static is yes.
11868   test "$enable_shared" = yes || enable_static=yes
11869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11870 $as_echo "$enable_static" >&6; }
11871
11872
11873
11874
11875 fi
11876 ac_ext=c
11877 ac_cpp='$CPP $CPPFLAGS'
11878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11881
11882 CC="$lt_save_CC"
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898         ac_config_commands="$ac_config_commands libtool"
11899
11900
11901
11902
11903 # Only expand once:
11904
11905
11906
11907
11908 # Some awks crash when confronted with pnglibconf.dfa, do a test run now
11909 # to make sure this doesn't happen
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
11911 $as_echo_n "checking that AWK works... " >&6; }
11912 if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
11913    ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
11914    ${srcdir}/pngusr.dfa 1>&2
11915 then
11916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11917 $as_echo "ok" >&6; }
11918 else
11919    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11921 as_fn_error 1 "failed
11922 See \`config.log' for more details" "$LINENO" 5; }
11923 fi
11924
11925 # This is a remnant of the old cc -E validation, where it may have been
11926 # necessary to use a different preprocessor for .dfn files
11927 DFNCPP="$CPP"
11928
11929
11930 # -Werror cannot be passed to GCC in CFLAGS because configure will fail (it
11931 # checks the compiler with a program that generates a warning), add the
11932 # following option to deal with this
11933
11934 # Check whether --enable-werror was given.
11935 if test "${enable_werror+set}" = set; then :
11936   enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
11937     if test "$enable_werror" != "no"; then
11938       sav_CFLAGS="$CFLAGS"
11939       CFLAGS="$enable_werror $CFLAGS"
11940       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
11941 $as_echo_n "checking if the compiler allows $enable_werror... " >&6; }
11942       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h.  */
11944
11945             int main(int argc, char **argv){
11946             return argv[argc-1][0];
11947             }
11948 _ACEOF
11949 if ac_fn_c_try_compile "$LINENO"; then :
11950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11951 $as_echo "yes" >&6; }
11952          PNG_COPTS="$PNG_COPTS $enable_werror"
11953 else
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956 fi
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958       CFLAGS="$sav_CFLAGS"
11959     fi
11960 fi
11961
11962
11963 # Checks for header files.
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11965 $as_echo_n "checking for ANSI C header files... " >&6; }
11966 if ${ac_cv_header_stdc+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h.  */
11971 #include <stdlib.h>
11972 #include <stdarg.h>
11973 #include <string.h>
11974 #include <float.h>
11975
11976 int
11977 main ()
11978 {
11979
11980   ;
11981   return 0;
11982 }
11983 _ACEOF
11984 if ac_fn_c_try_compile "$LINENO"; then :
11985   ac_cv_header_stdc=yes
11986 else
11987   ac_cv_header_stdc=no
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990
11991 if test $ac_cv_header_stdc = yes; then
11992   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h.  */
11995 #include <string.h>
11996
11997 _ACEOF
11998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999   $EGREP "memchr" >/dev/null 2>&1; then :
12000
12001 else
12002   ac_cv_header_stdc=no
12003 fi
12004 rm -f conftest*
12005
12006 fi
12007
12008 if test $ac_cv_header_stdc = yes; then
12009   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h.  */
12012 #include <stdlib.h>
12013
12014 _ACEOF
12015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12016   $EGREP "free" >/dev/null 2>&1; then :
12017
12018 else
12019   ac_cv_header_stdc=no
12020 fi
12021 rm -f conftest*
12022
12023 fi
12024
12025 if test $ac_cv_header_stdc = yes; then
12026   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12027   if test "$cross_compiling" = yes; then :
12028   :
12029 else
12030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h.  */
12032 #include <ctype.h>
12033 #include <stdlib.h>
12034 #if ((' ' & 0x0FF) == 0x020)
12035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12037 #else
12038 # define ISLOWER(c) \
12039                    (('a' <= (c) && (c) <= 'i') \
12040                      || ('j' <= (c) && (c) <= 'r') \
12041                      || ('s' <= (c) && (c) <= 'z'))
12042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12043 #endif
12044
12045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12046 int
12047 main ()
12048 {
12049   int i;
12050   for (i = 0; i < 256; i++)
12051     if (XOR (islower (i), ISLOWER (i))
12052         || toupper (i) != TOUPPER (i))
12053       return 2;
12054   return 0;
12055 }
12056 _ACEOF
12057 if ac_fn_c_try_run "$LINENO"; then :
12058
12059 else
12060   ac_cv_header_stdc=no
12061 fi
12062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12063   conftest.$ac_objext conftest.beam conftest.$ac_ext
12064 fi
12065
12066 fi
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12069 $as_echo "$ac_cv_header_stdc" >&6; }
12070 if test $ac_cv_header_stdc = yes; then
12071
12072 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12073
12074 fi
12075
12076
12077 # Checks for typedefs, structures, and compiler characteristics.
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12079 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12080 if ${ac_cv_c_const+:} false; then :
12081   $as_echo_n "(cached) " >&6
12082 else
12083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h.  */
12085
12086 int
12087 main ()
12088 {
12089
12090 #ifndef __cplusplus
12091   /* Ultrix mips cc rejects this sort of thing.  */
12092   typedef int charset[2];
12093   const charset cs = { 0, 0 };
12094   /* SunOS 4.1.1 cc rejects this.  */
12095   char const *const *pcpcc;
12096   char **ppc;
12097   /* NEC SVR4.0.2 mips cc rejects this.  */
12098   struct point {int x, y;};
12099   static struct point const zero = {0,0};
12100   /* AIX XL C 1.02.0.0 rejects this.
12101      It does not let you subtract one const X* pointer from another in
12102      an arm of an if-expression whose if-part is not a constant
12103      expression */
12104   const char *g = "string";
12105   pcpcc = &g + (g ? g-g : 0);
12106   /* HPUX 7.0 cc rejects these. */
12107   ++pcpcc;
12108   ppc = (char**) pcpcc;
12109   pcpcc = (char const *const *) ppc;
12110   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12111     char tx;
12112     char *t = &tx;
12113     char const *s = 0 ? (char *) 0 : (char const *) 0;
12114
12115     *t++ = 0;
12116     if (s) return 0;
12117   }
12118   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12119     int x[] = {25, 17};
12120     const int *foo = &x[0];
12121     ++foo;
12122   }
12123   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12124     typedef const int *iptr;
12125     iptr p = 0;
12126     ++p;
12127   }
12128   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12129        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12130     struct s { int j; const int *ap[3]; } bx;
12131     struct s *b = &bx; b->j = 5;
12132   }
12133   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12134     const int foo = 10;
12135     if (!foo) return 0;
12136   }
12137   return !cs[0] && !zero.x;
12138 #endif
12139
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 if ac_fn_c_try_compile "$LINENO"; then :
12145   ac_cv_c_const=yes
12146 else
12147   ac_cv_c_const=no
12148 fi
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12152 $as_echo "$ac_cv_c_const" >&6; }
12153 if test $ac_cv_c_const = no; then
12154
12155 $as_echo "#define const /**/" >>confdefs.h
12156
12157 fi
12158
12159 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12160 if test "x$ac_cv_type_size_t" = xyes; then :
12161
12162 else
12163
12164 cat >>confdefs.h <<_ACEOF
12165 #define size_t unsigned int
12166 _ACEOF
12167
12168 fi
12169
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12171 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12172 if ${ac_cv_struct_tm+:} false; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h.  */
12177 #include <sys/types.h>
12178 #include <time.h>
12179
12180 int
12181 main ()
12182 {
12183 struct tm tm;
12184                                      int *p = &tm.tm_sec;
12185                                      return !p;
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 if ac_fn_c_try_compile "$LINENO"; then :
12191   ac_cv_struct_tm=time.h
12192 else
12193   ac_cv_struct_tm=sys/time.h
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12198 $as_echo "$ac_cv_struct_tm" >&6; }
12199 if test $ac_cv_struct_tm = sys/time.h; then
12200
12201 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12202
12203 fi
12204
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12206 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12207 if ${ac_cv_c_restrict+:} false; then :
12208   $as_echo_n "(cached) " >&6
12209 else
12210   ac_cv_c_restrict=no
12211    # The order here caters to the fact that C++ does not require restrict.
12212    for ac_kw in __restrict __restrict__ _Restrict restrict; do
12213      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h.  */
12215 typedef int * int_ptr;
12216         int foo (int_ptr $ac_kw ip) {
12217         return ip[0];
12218        }
12219 int
12220 main ()
12221 {
12222 int s[1];
12223         int * $ac_kw t = s;
12224         t[0] = 0;
12225         return foo(t)
12226   ;
12227   return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_compile "$LINENO"; then :
12231   ac_cv_c_restrict=$ac_kw
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234      test "$ac_cv_c_restrict" != no && break
12235    done
12236
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12239 $as_echo "$ac_cv_c_restrict" >&6; }
12240
12241  case $ac_cv_c_restrict in
12242    restrict) ;;
12243    no) $as_echo "#define restrict /**/" >>confdefs.h
12244  ;;
12245    *)  cat >>confdefs.h <<_ACEOF
12246 #define restrict $ac_cv_c_restrict
12247 _ACEOF
12248  ;;
12249  esac
12250
12251
12252 # Checks for library functions.
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12254 $as_echo_n "checking for working strtod... " >&6; }
12255 if ${ac_cv_func_strtod+:} false; then :
12256   $as_echo_n "(cached) " >&6
12257 else
12258   if test "$cross_compiling" = yes; then :
12259   ac_cv_func_strtod=no
12260 else
12261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h.  */
12263
12264 $ac_includes_default
12265 #ifndef strtod
12266 double strtod ();
12267 #endif
12268 int
12269 main()
12270 {
12271   {
12272     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12273     char *string = " +69";
12274     char *term;
12275     double value;
12276     value = strtod (string, &term);
12277     if (value != 69 || term != (string + 4))
12278       return 1;
12279   }
12280
12281   {
12282     /* Under Solaris 2.4, strtod returns the wrong value for the
12283        terminating character under some conditions.  */
12284     char *string = "NaN";
12285     char *term;
12286     strtod (string, &term);
12287     if (term != string && *(term - 1) == 0)
12288       return 1;
12289   }
12290   return 0;
12291 }
12292
12293 _ACEOF
12294 if ac_fn_c_try_run "$LINENO"; then :
12295   ac_cv_func_strtod=yes
12296 else
12297   ac_cv_func_strtod=no
12298 fi
12299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12300   conftest.$ac_objext conftest.beam conftest.$ac_ext
12301 fi
12302
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12305 $as_echo "$ac_cv_func_strtod" >&6; }
12306 if test $ac_cv_func_strtod = no; then
12307   case " $LIBOBJS " in
12308   *" strtod.$ac_objext "* ) ;;
12309   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12310  ;;
12311 esac
12312
12313 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12314 if test "x$ac_cv_func_pow" = xyes; then :
12315
12316 fi
12317
12318 if test $ac_cv_func_pow = no; then
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12320 $as_echo_n "checking for pow in -lm... " >&6; }
12321 if ${ac_cv_lib_m_pow+:} false; then :
12322   $as_echo_n "(cached) " >&6
12323 else
12324   ac_check_lib_save_LIBS=$LIBS
12325 LIBS="-lm  $LIBS"
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h.  */
12328
12329 /* Override any GCC internal prototype to avoid an error.
12330    Use char because int might match the return type of a GCC
12331    builtin and then its argument prototype would still apply.  */
12332 #ifdef __cplusplus
12333 extern "C"
12334 #endif
12335 char pow ();
12336 int
12337 main ()
12338 {
12339 return pow ();
12340   ;
12341   return 0;
12342 }
12343 _ACEOF
12344 if ac_fn_c_try_link "$LINENO"; then :
12345   ac_cv_lib_m_pow=yes
12346 else
12347   ac_cv_lib_m_pow=no
12348 fi
12349 rm -f core conftest.err conftest.$ac_objext \
12350     conftest$ac_exeext conftest.$ac_ext
12351 LIBS=$ac_check_lib_save_LIBS
12352 fi
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12354 $as_echo "$ac_cv_lib_m_pow" >&6; }
12355 if test "x$ac_cv_lib_m_pow" = xyes; then :
12356   POW_LIB=-lm
12357 else
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12359 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12360 fi
12361
12362 fi
12363
12364 fi
12365
12366 for ac_func in memset
12367 do :
12368   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12369 if test "x$ac_cv_func_memset" = xyes; then :
12370   cat >>confdefs.h <<_ACEOF
12371 #define HAVE_MEMSET 1
12372 _ACEOF
12373
12374 else
12375   as_fn_error $? "memset not found in libc" "$LINENO" 5
12376 fi
12377 done
12378
12379 for ac_func in pow
12380 do :
12381   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12382 if test "x$ac_cv_func_pow" = xyes; then :
12383   cat >>confdefs.h <<_ACEOF
12384 #define HAVE_POW 1
12385 _ACEOF
12386
12387 else
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12389 $as_echo_n "checking for pow in -lm... " >&6; }
12390 if ${ac_cv_lib_m_pow+:} false; then :
12391   $as_echo_n "(cached) " >&6
12392 else
12393   ac_check_lib_save_LIBS=$LIBS
12394 LIBS="-lm  $LIBS"
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h.  */
12397
12398 /* Override any GCC internal prototype to avoid an error.
12399    Use char because int might match the return type of a GCC
12400    builtin and then its argument prototype would still apply.  */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 char pow ();
12405 int
12406 main ()
12407 {
12408 return pow ();
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 if ac_fn_c_try_link "$LINENO"; then :
12414   ac_cv_lib_m_pow=yes
12415 else
12416   ac_cv_lib_m_pow=no
12417 fi
12418 rm -f core conftest.err conftest.$ac_objext \
12419     conftest$ac_exeext conftest.$ac_ext
12420 LIBS=$ac_check_lib_save_LIBS
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12423 $as_echo "$ac_cv_lib_m_pow" >&6; }
12424 if test "x$ac_cv_lib_m_pow" = xyes; then :
12425   cat >>confdefs.h <<_ACEOF
12426 #define HAVE_LIBM 1
12427 _ACEOF
12428
12429   LIBS="-lm $LIBS"
12430
12431 else
12432   as_fn_error $? "cannot find pow" "$LINENO" 5
12433 fi
12434
12435 fi
12436 done
12437
12438
12439 # Check whether --with-zlib-prefix was given.
12440 if test "${with_zlib_prefix+set}" = set; then :
12441   withval=$with_zlib_prefix; ZPREFIX=${withval}
12442 else
12443   ZPREFIX='z_'
12444 fi
12445
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12447 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12448 if ${ac_cv_lib_z_zlibVersion+:} false; then :
12449   $as_echo_n "(cached) " >&6
12450 else
12451   ac_check_lib_save_LIBS=$LIBS
12452 LIBS="-lz  $LIBS"
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h.  */
12455
12456 /* Override any GCC internal prototype to avoid an error.
12457    Use char because int might match the return type of a GCC
12458    builtin and then its argument prototype would still apply.  */
12459 #ifdef __cplusplus
12460 extern "C"
12461 #endif
12462 char zlibVersion ();
12463 int
12464 main ()
12465 {
12466 return zlibVersion ();
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_c_try_link "$LINENO"; then :
12472   ac_cv_lib_z_zlibVersion=yes
12473 else
12474   ac_cv_lib_z_zlibVersion=no
12475 fi
12476 rm -f core conftest.err conftest.$ac_objext \
12477     conftest$ac_exeext conftest.$ac_ext
12478 LIBS=$ac_check_lib_save_LIBS
12479 fi
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12481 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12482 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12483   cat >>confdefs.h <<_ACEOF
12484 #define HAVE_LIBZ 1
12485 _ACEOF
12486
12487   LIBS="-lz $LIBS"
12488
12489 else
12490   as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
12492 $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
12493 if eval \${$as_ac_Lib+:} false; then :
12494   $as_echo_n "(cached) " >&6
12495 else
12496   ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lz  $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h.  */
12500
12501 /* Override any GCC internal prototype to avoid an error.
12502    Use char because int might match the return type of a GCC
12503    builtin and then its argument prototype would still apply.  */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char ${ZPREFIX}zlibVersion ();
12508 int
12509 main ()
12510 {
12511 return ${ZPREFIX}zlibVersion ();
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517   eval "$as_ac_Lib=yes"
12518 else
12519   eval "$as_ac_Lib=no"
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522     conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12524 fi
12525 eval ac_res=\$$as_ac_Lib
12526                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12527 $as_echo "$ac_res" >&6; }
12528 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12529   cat >>confdefs.h <<_ACEOF
12530 #define HAVE_LIBZ 1
12531 _ACEOF
12532
12533   LIBS="-lz $LIBS"
12534
12535 else
12536   as_fn_error $? "zlib not installed" "$LINENO" 5
12537 fi
12538
12539 fi
12540
12541
12542 # The following is for pngvalid, to ensure it catches FP errors even on
12543 # platforms that don't enable FP exceptions, the function appears in the math
12544 # library (typically), it's not an error if it is not found.
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
12546 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
12547 if ${ac_cv_lib_m_feenableexcept+:} false; then :
12548   $as_echo_n "(cached) " >&6
12549 else
12550   ac_check_lib_save_LIBS=$LIBS
12551 LIBS="-lm  $LIBS"
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h.  */
12554
12555 /* Override any GCC internal prototype to avoid an error.
12556    Use char because int might match the return type of a GCC
12557    builtin and then its argument prototype would still apply.  */
12558 #ifdef __cplusplus
12559 extern "C"
12560 #endif
12561 char feenableexcept ();
12562 int
12563 main ()
12564 {
12565 return feenableexcept ();
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 if ac_fn_c_try_link "$LINENO"; then :
12571   ac_cv_lib_m_feenableexcept=yes
12572 else
12573   ac_cv_lib_m_feenableexcept=no
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext \
12576     conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
12580 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
12581 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
12582   cat >>confdefs.h <<_ACEOF
12583 #define HAVE_LIBM 1
12584 _ACEOF
12585
12586   LIBS="-lm $LIBS"
12587
12588 fi
12589
12590 for ac_func in feenableexcept
12591 do :
12592   ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
12593 if test "x$ac_cv_func_feenableexcept" = xyes; then :
12594   cat >>confdefs.h <<_ACEOF
12595 #define HAVE_FEENABLEEXCEPT 1
12596 _ACEOF
12597
12598 fi
12599 done
12600
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
12603 $as_echo_n "checking if using Solaris linker... " >&6; }
12604 SLD=`$LD --version 2>&1 | grep Solaris`
12605 if test "$SLD"; then
12606     have_solaris_ld=yes
12607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 $as_echo "yes" >&6; }
12609 else
12610     have_solaris_ld=no
12611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613 fi
12614  if test "$have_solaris_ld" = "yes"; then
12615   HAVE_SOLARIS_LD_TRUE=
12616   HAVE_SOLARIS_LD_FALSE='#'
12617 else
12618   HAVE_SOLARIS_LD_TRUE='#'
12619   HAVE_SOLARIS_LD_FALSE=
12620 fi
12621
12622
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12624 $as_echo_n "checking if libraries can be versioned... " >&6; }
12625 # Special case for PE/COFF platforms: ld reports
12626 # support for version-script, but doesn't actually
12627 # DO anything with it.
12628 case $host in
12629 *cygwin* | *mingw32* | *interix* )
12630     have_ld_version_script=no
12631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12633 ;;
12634 * )
12635
12636 if test "$have_solaris_ld" = "yes"; then
12637     GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
12638 else
12639     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12640 fi
12641
12642 if test "$GLD"; then
12643     have_ld_version_script=yes
12644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12645 $as_echo "yes" >&6; }
12646 else
12647     have_ld_version_script=no
12648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12650     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12651 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12652 fi
12653 ;;
12654 esac
12655
12656  if test "$have_ld_version_script" = "yes"; then
12657   HAVE_LD_VERSION_SCRIPT_TRUE=
12658   HAVE_LD_VERSION_SCRIPT_FALSE='#'
12659 else
12660   HAVE_LD_VERSION_SCRIPT_TRUE='#'
12661   HAVE_LD_VERSION_SCRIPT_FALSE=
12662 fi
12663
12664
12665 if test "$have_ld_version_script" = "yes"; then
12666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12667 $as_echo_n "checking for symbol prefix... " >&6; }
12668     SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12669                   | ${CPP-${CC-gcc} -E} - 2>&1 \
12670                   | ${EGREP-grep} "^PREFIX=" \
12671                   | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
12672
12673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12674 $as_echo "$SYMBOL_PREFIX" >&6; }
12675 fi
12676
12677 # Substitutions for .in files
12678
12679
12680
12681
12682
12683 # Additional arguments (and substitutions)
12684 # Allow the pkg-config directory to be set
12685
12686 # Check whether --with-pkgconfigdir was given.
12687 if test "${with_pkgconfigdir+set}" = set; then :
12688   withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12689 else
12690   pkgconfigdir='${libdir}/pkgconfig'
12691 fi
12692
12693
12694
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12696 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12697
12698 # Make the *-config binary config scripts optional
12699
12700 # Check whether --with-binconfigs was given.
12701 if test "${with_binconfigs+set}" = set; then :
12702   withval=$with_binconfigs; if test "${withval}" = no; then
12703       binconfigs=
12704       { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
12705 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12706     else
12707       binconfigs='${binconfigs}'
12708     fi
12709 else
12710   binconfigs='${binconfigs}'
12711 fi
12712
12713
12714
12715 # Support for prefixes to the API function names; this will generate defines
12716 # at the start of the build to rename exported library functions
12717
12718 # Check whether --with-libpng-prefix was given.
12719 if test "${with_libpng_prefix+set}" = set; then :
12720   withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
12721       PNG_PREFIX=${withval}
12722
12723     fi
12724 fi
12725
12726  if test "${with_libpng_prefix:-no}" != "no"; then
12727   DO_PNG_PREFIX_TRUE=
12728   DO_PNG_PREFIX_FALSE='#'
12729 else
12730   DO_PNG_PREFIX_TRUE='#'
12731   DO_PNG_PREFIX_FALSE=
12732 fi
12733
12734
12735 # Because GCC by default assembles code with an executable stack, even though it
12736 # compiles C code with a non-executable stack, it is necessary to do a fixup
12737 # here (this may by GCC specific)
12738 AM_CCASFLAGS=-Wa,--noexecstack
12739
12740
12741 # Check whether --enable-arm-neon was given.
12742 if test "${enable_arm_neon+set}" = set; then :
12743   enableval=$enable_arm_neon; case "$enableval" in
12744       off)
12745
12746 $as_echo "#define PNG_NO_ARM_NEON /**/" >>confdefs.h
12747 ;;
12748       check)
12749
12750 $as_echo "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
12751 ;;
12752       api)
12753
12754 $as_echo "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
12755 ;;
12756       on)
12757
12758 $as_echo "#define PNG_ARM_NEON_SUPPORTED /**/" >>confdefs.h
12759 ;;
12760       *)
12761          as_fn_error $? "arm-neon: option value required (off/check/api/on)" "$LINENO" 5;;
12762    esac
12763 fi
12764
12765  if test "${enable_arm_neon:-no}" != "no"; then
12766   PNG_ARM_NEON_TRUE=
12767   PNG_ARM_NEON_FALSE='#'
12768 else
12769   PNG_ARM_NEON_TRUE='#'
12770   PNG_ARM_NEON_FALSE=
12771 fi
12772
12773
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
12775 $as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
12776
12777 # Config files, substituting as above
12778 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
12779
12780 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
12781
12782
12783 cat >confcache <<\_ACEOF
12784 # This file is a shell script that caches the results of configure
12785 # tests run on this system so they can be shared between configure
12786 # scripts and configure runs, see configure's option --config-cache.
12787 # It is not useful on other systems.  If it contains results you don't
12788 # want to keep, you may remove or edit it.
12789 #
12790 # config.status only pays attention to the cache file if you give it
12791 # the --recheck option to rerun configure.
12792 #
12793 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12794 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12795 # following values.
12796
12797 _ACEOF
12798
12799 # The following way of writing the cache mishandles newlines in values,
12800 # but we know of no workaround that is simple, portable, and efficient.
12801 # So, we kill variables containing newlines.
12802 # Ultrix sh set writes to stderr and can't be redirected directly,
12803 # and sets the high bit in the cache file unless we assign to the vars.
12804 (
12805   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12806     eval ac_val=\$$ac_var
12807     case $ac_val in #(
12808     *${as_nl}*)
12809       case $ac_var in #(
12810       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12811 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12812       esac
12813       case $ac_var in #(
12814       _ | IFS | as_nl) ;; #(
12815       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12816       *) { eval $ac_var=; unset $ac_var;} ;;
12817       esac ;;
12818     esac
12819   done
12820
12821   (set) 2>&1 |
12822     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12823     *${as_nl}ac_space=\ *)
12824       # `set' does not quote correctly, so add quotes: double-quote
12825       # substitution turns \\\\ into \\, and sed turns \\ into \.
12826       sed -n \
12827         "s/'/'\\\\''/g;
12828           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12829       ;; #(
12830     *)
12831       # `set' quotes correctly as required by POSIX, so do not add quotes.
12832       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12833       ;;
12834     esac |
12835     sort
12836 ) |
12837   sed '
12838      /^ac_cv_env_/b end
12839      t clear
12840      :clear
12841      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12842      t end
12843      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12844      :end' >>confcache
12845 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12846   if test -w "$cache_file"; then
12847     if test "x$cache_file" != "x/dev/null"; then
12848       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12849 $as_echo "$as_me: updating cache $cache_file" >&6;}
12850       if test ! -f "$cache_file" || test -h "$cache_file"; then
12851         cat confcache >"$cache_file"
12852       else
12853         case $cache_file in #(
12854         */* | ?:*)
12855           mv -f confcache "$cache_file"$$ &&
12856           mv -f "$cache_file"$$ "$cache_file" ;; #(
12857         *)
12858           mv -f confcache "$cache_file" ;;
12859         esac
12860       fi
12861     fi
12862   else
12863     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12864 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12865   fi
12866 fi
12867 rm -f confcache
12868
12869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12870 # Let make expand exec_prefix.
12871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12872
12873 DEFS=-DHAVE_CONFIG_H
12874
12875 ac_libobjs=
12876 ac_ltlibobjs=
12877 U=
12878 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12879   # 1. Remove the extension, and $U if already installed.
12880   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12881   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12882   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12883   #    will be set to the directory where LIBOBJS objects are built.
12884   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12885   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12886 done
12887 LIBOBJS=$ac_libobjs
12888
12889 LTLIBOBJS=$ac_ltlibobjs
12890
12891
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12893 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12894    if test -n "$am_sleep_pid"; then
12895      # Hide warnings about reused PIDs.
12896      wait $am_sleep_pid 2>/dev/null
12897    fi
12898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12899 $as_echo "done" >&6; }
12900  if test -n "$EXEEXT"; then
12901   am__EXEEXT_TRUE=
12902   am__EXEEXT_FALSE='#'
12903 else
12904   am__EXEEXT_TRUE='#'
12905   am__EXEEXT_FALSE=
12906 fi
12907
12908 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12909   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12911 fi
12912 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12913   as_fn_error $? "conditional \"AMDEP\" was never defined.
12914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12915 fi
12916 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12917   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12919 fi
12920 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12921   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
12922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12923 fi
12924 if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
12925   as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
12926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12927 fi
12928 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
12929   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12931 fi
12932 if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
12933   as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
12934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12935 fi
12936 if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
12937   as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
12938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12939 fi
12940
12941 : "${CONFIG_STATUS=./config.status}"
12942 ac_write_fail=0
12943 ac_clean_files_save=$ac_clean_files
12944 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12946 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12947 as_write_fail=0
12948 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12949 #! $SHELL
12950 # Generated by $as_me.
12951 # Run this file to recreate the current configuration.
12952 # Compiler output produced by configure, useful for debugging
12953 # configure, is in config.log if it exists.
12954
12955 debug=false
12956 ac_cs_recheck=false
12957 ac_cs_silent=false
12958
12959 SHELL=\${CONFIG_SHELL-$SHELL}
12960 export SHELL
12961 _ASEOF
12962 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12963 ## -------------------- ##
12964 ## M4sh Initialization. ##
12965 ## -------------------- ##
12966
12967 # Be more Bourne compatible
12968 DUALCASE=1; export DUALCASE # for MKS sh
12969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12970   emulate sh
12971   NULLCMD=:
12972   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12973   # is contrary to our usage.  Disable this feature.
12974   alias -g '${1+"$@"}'='"$@"'
12975   setopt NO_GLOB_SUBST
12976 else
12977   case `(set -o) 2>/dev/null` in #(
12978   *posix*) :
12979     set -o posix ;; #(
12980   *) :
12981      ;;
12982 esac
12983 fi
12984
12985
12986 as_nl='
12987 '
12988 export as_nl
12989 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12990 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12991 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12993 # Prefer a ksh shell builtin over an external printf program on Solaris,
12994 # but without wasting forks for bash or zsh.
12995 if test -z "$BASH_VERSION$ZSH_VERSION" \
12996     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12997   as_echo='print -r --'
12998   as_echo_n='print -rn --'
12999 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13000   as_echo='printf %s\n'
13001   as_echo_n='printf %s'
13002 else
13003   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13004     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13005     as_echo_n='/usr/ucb/echo -n'
13006   else
13007     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13008     as_echo_n_body='eval
13009       arg=$1;
13010       case $arg in #(
13011       *"$as_nl"*)
13012         expr "X$arg" : "X\\(.*\\)$as_nl";
13013         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13014       esac;
13015       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13016     '
13017     export as_echo_n_body
13018     as_echo_n='sh -c $as_echo_n_body as_echo'
13019   fi
13020   export as_echo_body
13021   as_echo='sh -c $as_echo_body as_echo'
13022 fi
13023
13024 # The user is always right.
13025 if test "${PATH_SEPARATOR+set}" != set; then
13026   PATH_SEPARATOR=:
13027   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13028     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13029       PATH_SEPARATOR=';'
13030   }
13031 fi
13032
13033
13034 # IFS
13035 # We need space, tab and new line, in precisely that order.  Quoting is
13036 # there to prevent editors from complaining about space-tab.
13037 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13038 # splitting by setting IFS to empty value.)
13039 IFS=" ""        $as_nl"
13040
13041 # Find who we are.  Look in the path if we contain no directory separator.
13042 as_myself=
13043 case $0 in #((
13044   *[\\/]* ) as_myself=$0 ;;
13045   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048   IFS=$as_save_IFS
13049   test -z "$as_dir" && as_dir=.
13050     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13051   done
13052 IFS=$as_save_IFS
13053
13054      ;;
13055 esac
13056 # We did not find ourselves, most probably we were run as `sh COMMAND'
13057 # in which case we are not to be found in the path.
13058 if test "x$as_myself" = x; then
13059   as_myself=$0
13060 fi
13061 if test ! -f "$as_myself"; then
13062   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13063   exit 1
13064 fi
13065
13066 # Unset variables that we do not need and which cause bugs (e.g. in
13067 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13068 # suppresses any "Segmentation fault" message there.  '((' could
13069 # trigger a bug in pdksh 5.2.14.
13070 for as_var in BASH_ENV ENV MAIL MAILPATH
13071 do eval test x\${$as_var+set} = xset \
13072   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13073 done
13074 PS1='$ '
13075 PS2='> '
13076 PS4='+ '
13077
13078 # NLS nuisances.
13079 LC_ALL=C
13080 export LC_ALL
13081 LANGUAGE=C
13082 export LANGUAGE
13083
13084 # CDPATH.
13085 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13086
13087
13088 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13089 # ----------------------------------------
13090 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13091 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13092 # script with STATUS, using 1 if that was 0.
13093 as_fn_error ()
13094 {
13095   as_status=$1; test $as_status -eq 0 && as_status=1
13096   if test "$4"; then
13097     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13098     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13099   fi
13100   $as_echo "$as_me: error: $2" >&2
13101   as_fn_exit $as_status
13102 } # as_fn_error
13103
13104
13105 # as_fn_set_status STATUS
13106 # -----------------------
13107 # Set $? to STATUS, without forking.
13108 as_fn_set_status ()
13109 {
13110   return $1
13111 } # as_fn_set_status
13112
13113 # as_fn_exit STATUS
13114 # -----------------
13115 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13116 as_fn_exit ()
13117 {
13118   set +e
13119   as_fn_set_status $1
13120   exit $1
13121 } # as_fn_exit
13122
13123 # as_fn_unset VAR
13124 # ---------------
13125 # Portably unset VAR.
13126 as_fn_unset ()
13127 {
13128   { eval $1=; unset $1;}
13129 }
13130 as_unset=as_fn_unset
13131 # as_fn_append VAR VALUE
13132 # ----------------------
13133 # Append the text in VALUE to the end of the definition contained in VAR. Take
13134 # advantage of any shell optimizations that allow amortized linear growth over
13135 # repeated appends, instead of the typical quadratic growth present in naive
13136 # implementations.
13137 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13138   eval 'as_fn_append ()
13139   {
13140     eval $1+=\$2
13141   }'
13142 else
13143   as_fn_append ()
13144   {
13145     eval $1=\$$1\$2
13146   }
13147 fi # as_fn_append
13148
13149 # as_fn_arith ARG...
13150 # ------------------
13151 # Perform arithmetic evaluation on the ARGs, and store the result in the
13152 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13153 # must be portable across $(()) and expr.
13154 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13155   eval 'as_fn_arith ()
13156   {
13157     as_val=$(( $* ))
13158   }'
13159 else
13160   as_fn_arith ()
13161   {
13162     as_val=`expr "$@" || test $? -eq 1`
13163   }
13164 fi # as_fn_arith
13165
13166
13167 if expr a : '\(a\)' >/dev/null 2>&1 &&
13168    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13169   as_expr=expr
13170 else
13171   as_expr=false
13172 fi
13173
13174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13175   as_basename=basename
13176 else
13177   as_basename=false
13178 fi
13179
13180 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13181   as_dirname=dirname
13182 else
13183   as_dirname=false
13184 fi
13185
13186 as_me=`$as_basename -- "$0" ||
13187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13188          X"$0" : 'X\(//\)$' \| \
13189          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13190 $as_echo X/"$0" |
13191     sed '/^.*\/\([^/][^/]*\)\/*$/{
13192             s//\1/
13193             q
13194           }
13195           /^X\/\(\/\/\)$/{
13196             s//\1/
13197             q
13198           }
13199           /^X\/\(\/\).*/{
13200             s//\1/
13201             q
13202           }
13203           s/.*/./; q'`
13204
13205 # Avoid depending upon Character Ranges.
13206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13209 as_cr_digits='0123456789'
13210 as_cr_alnum=$as_cr_Letters$as_cr_digits
13211
13212 ECHO_C= ECHO_N= ECHO_T=
13213 case `echo -n x` in #(((((
13214 -n*)
13215   case `echo 'xy\c'` in
13216   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13217   xy)  ECHO_C='\c';;
13218   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13219        ECHO_T=' ';;
13220   esac;;
13221 *)
13222   ECHO_N='-n';;
13223 esac
13224
13225 rm -f conf$$ conf$$.exe conf$$.file
13226 if test -d conf$$.dir; then
13227   rm -f conf$$.dir/conf$$.file
13228 else
13229   rm -f conf$$.dir
13230   mkdir conf$$.dir 2>/dev/null
13231 fi
13232 if (echo >conf$$.file) 2>/dev/null; then
13233   if ln -s conf$$.file conf$$ 2>/dev/null; then
13234     as_ln_s='ln -s'
13235     # ... but there are two gotchas:
13236     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13237     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13238     # In both cases, we have to default to `cp -pR'.
13239     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13240       as_ln_s='cp -pR'
13241   elif ln conf$$.file conf$$ 2>/dev/null; then
13242     as_ln_s=ln
13243   else
13244     as_ln_s='cp -pR'
13245   fi
13246 else
13247   as_ln_s='cp -pR'
13248 fi
13249 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13250 rmdir conf$$.dir 2>/dev/null
13251
13252
13253 # as_fn_mkdir_p
13254 # -------------
13255 # Create "$as_dir" as a directory, including parents if necessary.
13256 as_fn_mkdir_p ()
13257 {
13258
13259   case $as_dir in #(
13260   -*) as_dir=./$as_dir;;
13261   esac
13262   test -d "$as_dir" || eval $as_mkdir_p || {
13263     as_dirs=
13264     while :; do
13265       case $as_dir in #(
13266       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13267       *) as_qdir=$as_dir;;
13268       esac
13269       as_dirs="'$as_qdir' $as_dirs"
13270       as_dir=`$as_dirname -- "$as_dir" ||
13271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13272          X"$as_dir" : 'X\(//\)[^/]' \| \
13273          X"$as_dir" : 'X\(//\)$' \| \
13274          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13275 $as_echo X"$as_dir" |
13276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13277             s//\1/
13278             q
13279           }
13280           /^X\(\/\/\)[^/].*/{
13281             s//\1/
13282             q
13283           }
13284           /^X\(\/\/\)$/{
13285             s//\1/
13286             q
13287           }
13288           /^X\(\/\).*/{
13289             s//\1/
13290             q
13291           }
13292           s/.*/./; q'`
13293       test -d "$as_dir" && break
13294     done
13295     test -z "$as_dirs" || eval "mkdir $as_dirs"
13296   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13297
13298
13299 } # as_fn_mkdir_p
13300 if mkdir -p . 2>/dev/null; then
13301   as_mkdir_p='mkdir -p "$as_dir"'
13302 else
13303   test -d ./-p && rmdir ./-p
13304   as_mkdir_p=false
13305 fi
13306
13307
13308 # as_fn_executable_p FILE
13309 # -----------------------
13310 # Test if FILE is an executable regular file.
13311 as_fn_executable_p ()
13312 {
13313   test -f "$1" && test -x "$1"
13314 } # as_fn_executable_p
13315 as_test_x='test -x'
13316 as_executable_p=as_fn_executable_p
13317
13318 # Sed expression to map a string onto a valid CPP name.
13319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13320
13321 # Sed expression to map a string onto a valid variable name.
13322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13323
13324
13325 exec 6>&1
13326 ## ----------------------------------- ##
13327 ## Main body of $CONFIG_STATUS script. ##
13328 ## ----------------------------------- ##
13329 _ASEOF
13330 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13331
13332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13333 # Save the log message, to keep $0 and so on meaningful, and to
13334 # report actual input values of CONFIG_FILES etc. instead of their
13335 # values after options handling.
13336 ac_log="
13337 This file was extended by libpng $as_me 1.6.2, which was
13338 generated by GNU Autoconf 2.69.  Invocation command line was
13339
13340   CONFIG_FILES    = $CONFIG_FILES
13341   CONFIG_HEADERS  = $CONFIG_HEADERS
13342   CONFIG_LINKS    = $CONFIG_LINKS
13343   CONFIG_COMMANDS = $CONFIG_COMMANDS
13344   $ $0 $@
13345
13346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13347 "
13348
13349 _ACEOF
13350
13351 case $ac_config_files in *"
13352 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13353 esac
13354
13355 case $ac_config_headers in *"
13356 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13357 esac
13358
13359
13360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13361 # Files that config.status was made for.
13362 config_files="$ac_config_files"
13363 config_headers="$ac_config_headers"
13364 config_commands="$ac_config_commands"
13365
13366 _ACEOF
13367
13368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13369 ac_cs_usage="\
13370 \`$as_me' instantiates files and other configuration actions
13371 from templates according to the current configuration.  Unless the files
13372 and actions are specified as TAGs, all are instantiated by default.
13373
13374 Usage: $0 [OPTION]... [TAG]...
13375
13376   -h, --help       print this help, then exit
13377   -V, --version    print version number and configuration settings, then exit
13378       --config     print configuration, then exit
13379   -q, --quiet, --silent
13380                    do not print progress messages
13381   -d, --debug      don't remove temporary files
13382       --recheck    update $as_me by reconfiguring in the same conditions
13383       --file=FILE[:TEMPLATE]
13384                    instantiate the configuration file FILE
13385       --header=FILE[:TEMPLATE]
13386                    instantiate the configuration header FILE
13387
13388 Configuration files:
13389 $config_files
13390
13391 Configuration headers:
13392 $config_headers
13393
13394 Configuration commands:
13395 $config_commands
13396
13397 Report bugs to <png-mng-implement@lists.sourceforge.net>."
13398
13399 _ACEOF
13400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13401 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13402 ac_cs_version="\\
13403 libpng config.status 1.6.2
13404 configured by $0, generated by GNU Autoconf 2.69,
13405   with options \\"\$ac_cs_config\\"
13406
13407 Copyright (C) 2012 Free Software Foundation, Inc.
13408 This config.status script is free software; the Free Software Foundation
13409 gives unlimited permission to copy, distribute and modify it."
13410
13411 ac_pwd='$ac_pwd'
13412 srcdir='$srcdir'
13413 INSTALL='$INSTALL'
13414 MKDIR_P='$MKDIR_P'
13415 AWK='$AWK'
13416 test -n "\$AWK" || AWK=awk
13417 _ACEOF
13418
13419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13420 # The default lists apply if the user does not specify any file.
13421 ac_need_defaults=:
13422 while test $# != 0
13423 do
13424   case $1 in
13425   --*=?*)
13426     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13427     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13428     ac_shift=:
13429     ;;
13430   --*=)
13431     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13432     ac_optarg=
13433     ac_shift=:
13434     ;;
13435   *)
13436     ac_option=$1
13437     ac_optarg=$2
13438     ac_shift=shift
13439     ;;
13440   esac
13441
13442   case $ac_option in
13443   # Handling of the options.
13444   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13445     ac_cs_recheck=: ;;
13446   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13447     $as_echo "$ac_cs_version"; exit ;;
13448   --config | --confi | --conf | --con | --co | --c )
13449     $as_echo "$ac_cs_config"; exit ;;
13450   --debug | --debu | --deb | --de | --d | -d )
13451     debug=: ;;
13452   --file | --fil | --fi | --f )
13453     $ac_shift
13454     case $ac_optarg in
13455     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13456     '') as_fn_error $? "missing file argument" ;;
13457     esac
13458     as_fn_append CONFIG_FILES " '$ac_optarg'"
13459     ac_need_defaults=false;;
13460   --header | --heade | --head | --hea )
13461     $ac_shift
13462     case $ac_optarg in
13463     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13464     esac
13465     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13466     ac_need_defaults=false;;
13467   --he | --h)
13468     # Conflict between --help and --header
13469     as_fn_error $? "ambiguous option: \`$1'
13470 Try \`$0 --help' for more information.";;
13471   --help | --hel | -h )
13472     $as_echo "$ac_cs_usage"; exit ;;
13473   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13474   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13475     ac_cs_silent=: ;;
13476
13477   # This is an error.
13478   -*) as_fn_error $? "unrecognized option: \`$1'
13479 Try \`$0 --help' for more information." ;;
13480
13481   *) as_fn_append ac_config_targets " $1"
13482      ac_need_defaults=false ;;
13483
13484   esac
13485   shift
13486 done
13487
13488 ac_configure_extra_args=
13489
13490 if $ac_cs_silent; then
13491   exec 6>/dev/null
13492   ac_configure_extra_args="$ac_configure_extra_args --silent"
13493 fi
13494
13495 _ACEOF
13496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13497 if \$ac_cs_recheck; then
13498   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13499   shift
13500   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13501   CONFIG_SHELL='$SHELL'
13502   export CONFIG_SHELL
13503   exec "\$@"
13504 fi
13505
13506 _ACEOF
13507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13508 exec 5>>config.log
13509 {
13510   echo
13511   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13512 ## Running $as_me. ##
13513 _ASBOX
13514   $as_echo "$ac_log"
13515 } >&5
13516
13517 _ACEOF
13518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13519 #
13520 # INIT-COMMANDS
13521 #
13522 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13523
13524
13525 # The HP-UX ksh and POSIX shell print the target directory to stdout
13526 # if CDPATH is set.
13527 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13528
13529 sed_quote_subst='$sed_quote_subst'
13530 double_quote_subst='$double_quote_subst'
13531 delay_variable_subst='$delay_variable_subst'
13532 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13533 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13534 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13535 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13536 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13537 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13538 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13539 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13540 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13541 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13542 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13543 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13544 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13545 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13546 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13547 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13548 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13549 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13550 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13551 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13552 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13553 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13554 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13555 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13556 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13557 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13558 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13559 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13560 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13561 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13562 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13563 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13564 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13565 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13566 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13567 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13568 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13569 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13570 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13571 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13572 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13573 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13574 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13575 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13576 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13577 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13578 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13579 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13580 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13581 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13582 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13583 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13584 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13585 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13586 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13587 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13588 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13589 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"`'
13590 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13591 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13592 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13593 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13594 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13595 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13596 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13597 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13598 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13599 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13600 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13601 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13602 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13603 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13604 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13605 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13606 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13607 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13608 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13609 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13610 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13611 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13612 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13613 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13614 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13615 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13616 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13617 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13618 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13619 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13620 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13621 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13622 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13623 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13624 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13625 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13626 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13627 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13628 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13629 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13630 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13631 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13632 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13633 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13634 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13635 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13636 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13637 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13638 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13639 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13640 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13641 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13642 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13643 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13644 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13645 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13646 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13647 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13648 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13649 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13650 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13651 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13652 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13653 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13654 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13655 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13656 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13657 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13658 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13659 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13660 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13661 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13662 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13663
13664 LTCC='$LTCC'
13665 LTCFLAGS='$LTCFLAGS'
13666 compiler='$compiler_DEFAULT'
13667
13668 # A function that is used when there is no print builtin or printf.
13669 func_fallback_echo ()
13670 {
13671   eval 'cat <<_LTECHO_EOF
13672 \$1
13673 _LTECHO_EOF'
13674 }
13675
13676 # Quote evaled strings.
13677 for var in SED \
13678 GREP \
13679 EGREP \
13680 FGREP \
13681 SHELL \
13682 ECHO \
13683 LD \
13684 AS \
13685 DLLTOOL \
13686 OBJDUMP \
13687 PATH_SEPARATOR \
13688 NM \
13689 LN_S \
13690 lt_SP2NL \
13691 lt_NL2SP \
13692 reload_flag \
13693 deplibs_check_method \
13694 file_magic_cmd \
13695 file_magic_glob \
13696 want_nocaseglob \
13697 sharedlib_from_linklib_cmd \
13698 AR \
13699 AR_FLAGS \
13700 archiver_list_spec \
13701 STRIP \
13702 RANLIB \
13703 CC \
13704 CFLAGS \
13705 compiler \
13706 lt_cv_sys_global_symbol_pipe \
13707 lt_cv_sys_global_symbol_to_cdecl \
13708 lt_cv_sys_global_symbol_to_c_name_address \
13709 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13710 nm_file_list_spec \
13711 lt_prog_compiler_no_builtin_flag \
13712 lt_prog_compiler_pic \
13713 lt_prog_compiler_wl \
13714 lt_prog_compiler_static \
13715 lt_cv_prog_compiler_c_o \
13716 need_locks \
13717 MANIFEST_TOOL \
13718 DSYMUTIL \
13719 NMEDIT \
13720 LIPO \
13721 OTOOL \
13722 OTOOL64 \
13723 shrext_cmds \
13724 export_dynamic_flag_spec \
13725 whole_archive_flag_spec \
13726 compiler_needs_object \
13727 with_gnu_ld \
13728 allow_undefined_flag \
13729 no_undefined_flag \
13730 hardcode_libdir_flag_spec \
13731 hardcode_libdir_separator \
13732 exclude_expsyms \
13733 include_expsyms \
13734 file_list_spec \
13735 variables_saved_for_relink \
13736 libname_spec \
13737 library_names_spec \
13738 soname_spec \
13739 install_override_mode \
13740 finish_eval \
13741 old_striplib \
13742 striplib; do
13743     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13744     *[\\\\\\\`\\"\\\$]*)
13745       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13746       ;;
13747     *)
13748       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13749       ;;
13750     esac
13751 done
13752
13753 # Double-quote double-evaled strings.
13754 for var in reload_cmds \
13755 old_postinstall_cmds \
13756 old_postuninstall_cmds \
13757 old_archive_cmds \
13758 extract_expsyms_cmds \
13759 old_archive_from_new_cmds \
13760 old_archive_from_expsyms_cmds \
13761 archive_cmds \
13762 archive_expsym_cmds \
13763 module_cmds \
13764 module_expsym_cmds \
13765 export_symbols_cmds \
13766 prelink_cmds \
13767 postlink_cmds \
13768 postinstall_cmds \
13769 postuninstall_cmds \
13770 finish_cmds \
13771 sys_lib_search_path_spec \
13772 sys_lib_dlsearch_path_spec; do
13773     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13774     *[\\\\\\\`\\"\\\$]*)
13775       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13776       ;;
13777     *)
13778       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13779       ;;
13780     esac
13781 done
13782
13783 ac_aux_dir='$ac_aux_dir'
13784 xsi_shell='$xsi_shell'
13785 lt_shell_append='$lt_shell_append'
13786
13787 # See if we are running on zsh, and set the options which allow our
13788 # commands through without removal of \ escapes INIT.
13789 if test -n "\${ZSH_VERSION+set}" ; then
13790    setopt NO_GLOB_SUBST
13791 fi
13792
13793
13794     PACKAGE='$PACKAGE'
13795     VERSION='$VERSION'
13796     TIMESTAMP='$TIMESTAMP'
13797     RM='$RM'
13798     ofile='$ofile'
13799
13800
13801
13802
13803 _ACEOF
13804
13805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13806
13807 # Handling of arguments.
13808 for ac_config_target in $ac_config_targets
13809 do
13810   case $ac_config_target in
13811     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13812     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13813     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13814     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13815     "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
13816     "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
13817
13818   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13819   esac
13820 done
13821
13822
13823 # If the user did not use the arguments to specify the items to instantiate,
13824 # then the envvar interface is used.  Set only those that are not.
13825 # We use the long form for the default assignment because of an extremely
13826 # bizarre bug on SunOS 4.1.3.
13827 if $ac_need_defaults; then
13828   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13829   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13830   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13831 fi
13832
13833 # Have a temporary directory for convenience.  Make it in the build tree
13834 # simply because there is no reason against having it here, and in addition,
13835 # creating and moving files from /tmp can sometimes cause problems.
13836 # Hook for its removal unless debugging.
13837 # Note that there is a small window in which the directory will not be cleaned:
13838 # after its creation but before its name has been assigned to `$tmp'.
13839 $debug ||
13840 {
13841   tmp= ac_tmp=
13842   trap 'exit_status=$?
13843   : "${ac_tmp:=$tmp}"
13844   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13845 ' 0
13846   trap 'as_fn_exit 1' 1 2 13 15
13847 }
13848 # Create a (secure) tmp directory for tmp files.
13849
13850 {
13851   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13852   test -d "$tmp"
13853 }  ||
13854 {
13855   tmp=./conf$$-$RANDOM
13856   (umask 077 && mkdir "$tmp")
13857 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13858 ac_tmp=$tmp
13859
13860 # Set up the scripts for CONFIG_FILES section.
13861 # No need to generate them if there are no CONFIG_FILES.
13862 # This happens for instance with `./config.status config.h'.
13863 if test -n "$CONFIG_FILES"; then
13864
13865
13866 ac_cr=`echo X | tr X '\015'`
13867 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13868 # But we know of no other shell where ac_cr would be empty at this
13869 # point, so we can use a bashism as a fallback.
13870 if test "x$ac_cr" = x; then
13871   eval ac_cr=\$\'\\r\'
13872 fi
13873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13875   ac_cs_awk_cr='\\r'
13876 else
13877   ac_cs_awk_cr=$ac_cr
13878 fi
13879
13880 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13881 _ACEOF
13882
13883
13884 {
13885   echo "cat >conf$$subs.awk <<_ACEOF" &&
13886   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13887   echo "_ACEOF"
13888 } >conf$$subs.sh ||
13889   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13890 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13891 ac_delim='%!_!# '
13892 for ac_last_try in false false false false false :; do
13893   . ./conf$$subs.sh ||
13894     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13895
13896   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13897   if test $ac_delim_n = $ac_delim_num; then
13898     break
13899   elif $ac_last_try; then
13900     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13901   else
13902     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13903   fi
13904 done
13905 rm -f conf$$subs.sh
13906
13907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13908 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13909 _ACEOF
13910 sed -n '
13911 h
13912 s/^/S["/; s/!.*/"]=/
13913 p
13914 g
13915 s/^[^!]*!//
13916 :repl
13917 t repl
13918 s/'"$ac_delim"'$//
13919 t delim
13920 :nl
13921 h
13922 s/\(.\{148\}\)..*/\1/
13923 t more1
13924 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13925 p
13926 n
13927 b repl
13928 :more1
13929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13930 p
13931 g
13932 s/.\{148\}//
13933 t nl
13934 :delim
13935 h
13936 s/\(.\{148\}\)..*/\1/
13937 t more2
13938 s/["\\]/\\&/g; s/^/"/; s/$/"/
13939 p
13940 b
13941 :more2
13942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13943 p
13944 g
13945 s/.\{148\}//
13946 t delim
13947 ' <conf$$subs.awk | sed '
13948 /^[^""]/{
13949   N
13950   s/\n//
13951 }
13952 ' >>$CONFIG_STATUS || ac_write_fail=1
13953 rm -f conf$$subs.awk
13954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13955 _ACAWK
13956 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13957   for (key in S) S_is_set[key] = 1
13958   FS = "\a"
13959
13960 }
13961 {
13962   line = $ 0
13963   nfields = split(line, field, "@")
13964   substed = 0
13965   len = length(field[1])
13966   for (i = 2; i < nfields; i++) {
13967     key = field[i]
13968     keylen = length(key)
13969     if (S_is_set[key]) {
13970       value = S[key]
13971       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13972       len += length(value) + length(field[++i])
13973       substed = 1
13974     } else
13975       len += 1 + keylen
13976   }
13977
13978   print line
13979 }
13980
13981 _ACAWK
13982 _ACEOF
13983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13985   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13986 else
13987   cat
13988 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13989   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13990 _ACEOF
13991
13992 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13993 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13994 # trailing colons and then remove the whole line if VPATH becomes empty
13995 # (actually we leave an empty line to preserve line numbers).
13996 if test "x$srcdir" = x.; then
13997   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13998 h
13999 s///
14000 s/^/:/
14001 s/[      ]*$/:/
14002 s/:\$(srcdir):/:/g
14003 s/:\${srcdir}:/:/g
14004 s/:@srcdir@:/:/g
14005 s/^:*//
14006 s/:*$//
14007 x
14008 s/\(=[   ]*\).*/\1/
14009 G
14010 s/\n//
14011 s/^[^=]*=[       ]*$//
14012 }'
14013 fi
14014
14015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14016 fi # test -n "$CONFIG_FILES"
14017
14018 # Set up the scripts for CONFIG_HEADERS section.
14019 # No need to generate them if there are no CONFIG_HEADERS.
14020 # This happens for instance with `./config.status Makefile'.
14021 if test -n "$CONFIG_HEADERS"; then
14022 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14023 BEGIN {
14024 _ACEOF
14025
14026 # Transform confdefs.h into an awk script `defines.awk', embedded as
14027 # here-document in config.status, that substitutes the proper values into
14028 # config.h.in to produce config.h.
14029
14030 # Create a delimiter string that does not exist in confdefs.h, to ease
14031 # handling of long lines.
14032 ac_delim='%!_!# '
14033 for ac_last_try in false false :; do
14034   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14035   if test -z "$ac_tt"; then
14036     break
14037   elif $ac_last_try; then
14038     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14039   else
14040     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14041   fi
14042 done
14043
14044 # For the awk script, D is an array of macro values keyed by name,
14045 # likewise P contains macro parameters if any.  Preserve backslash
14046 # newline sequences.
14047
14048 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14049 sed -n '
14050 s/.\{148\}/&'"$ac_delim"'/g
14051 t rset
14052 :rset
14053 s/^[     ]*#[    ]*define[       ][      ]*/ /
14054 t def
14055 d
14056 :def
14057 s/\\$//
14058 t bsnl
14059 s/["\\]/\\&/g
14060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14061 D["\1"]=" \3"/p
14062 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14063 d
14064 :bsnl
14065 s/["\\]/\\&/g
14066 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14067 D["\1"]=" \3\\\\\\n"\\/p
14068 t cont
14069 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14070 t cont
14071 d
14072 :cont
14073 n
14074 s/.\{148\}/&'"$ac_delim"'/g
14075 t clear
14076 :clear
14077 s/\\$//
14078 t bsnlc
14079 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14080 d
14081 :bsnlc
14082 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14083 b cont
14084 ' <confdefs.h | sed '
14085 s/'"$ac_delim"'/"\\\
14086 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14087
14088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14089   for (key in D) D_is_set[key] = 1
14090   FS = "\a"
14091 }
14092 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14093   line = \$ 0
14094   split(line, arg, " ")
14095   if (arg[1] == "#") {
14096     defundef = arg[2]
14097     mac1 = arg[3]
14098   } else {
14099     defundef = substr(arg[1], 2)
14100     mac1 = arg[2]
14101   }
14102   split(mac1, mac2, "(") #)
14103   macro = mac2[1]
14104   prefix = substr(line, 1, index(line, defundef) - 1)
14105   if (D_is_set[macro]) {
14106     # Preserve the white space surrounding the "#".
14107     print prefix "define", macro P[macro] D[macro]
14108     next
14109   } else {
14110     # Replace #undef with comments.  This is necessary, for example,
14111     # in the case of _POSIX_SOURCE, which is predefined and required
14112     # on some systems where configure will not decide to define it.
14113     if (defundef == "undef") {
14114       print "/*", prefix defundef, macro, "*/"
14115       next
14116     }
14117   }
14118 }
14119 { print }
14120 _ACAWK
14121 _ACEOF
14122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14123   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14124 fi # test -n "$CONFIG_HEADERS"
14125
14126
14127 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14128 shift
14129 for ac_tag
14130 do
14131   case $ac_tag in
14132   :[FHLC]) ac_mode=$ac_tag; continue;;
14133   esac
14134   case $ac_mode$ac_tag in
14135   :[FHL]*:*);;
14136   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14137   :[FH]-) ac_tag=-:-;;
14138   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14139   esac
14140   ac_save_IFS=$IFS
14141   IFS=:
14142   set x $ac_tag
14143   IFS=$ac_save_IFS
14144   shift
14145   ac_file=$1
14146   shift
14147
14148   case $ac_mode in
14149   :L) ac_source=$1;;
14150   :[FH])
14151     ac_file_inputs=
14152     for ac_f
14153     do
14154       case $ac_f in
14155       -) ac_f="$ac_tmp/stdin";;
14156       *) # Look for the file first in the build tree, then in the source tree
14157          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14158          # because $ac_f cannot contain `:'.
14159          test -f "$ac_f" ||
14160            case $ac_f in
14161            [\\/$]*) false;;
14162            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14163            esac ||
14164            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14165       esac
14166       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14167       as_fn_append ac_file_inputs " '$ac_f'"
14168     done
14169
14170     # Let's still pretend it is `configure' which instantiates (i.e., don't
14171     # use $as_me), people would be surprised to read:
14172     #    /* config.h.  Generated by config.status.  */
14173     configure_input='Generated from '`
14174           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14175         `' by configure.'
14176     if test x"$ac_file" != x-; then
14177       configure_input="$ac_file.  $configure_input"
14178       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14179 $as_echo "$as_me: creating $ac_file" >&6;}
14180     fi
14181     # Neutralize special characters interpreted by sed in replacement strings.
14182     case $configure_input in #(
14183     *\&* | *\|* | *\\* )
14184        ac_sed_conf_input=`$as_echo "$configure_input" |
14185        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14186     *) ac_sed_conf_input=$configure_input;;
14187     esac
14188
14189     case $ac_tag in
14190     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14191       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14192     esac
14193     ;;
14194   esac
14195
14196   ac_dir=`$as_dirname -- "$ac_file" ||
14197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14198          X"$ac_file" : 'X\(//\)[^/]' \| \
14199          X"$ac_file" : 'X\(//\)$' \| \
14200          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14201 $as_echo X"$ac_file" |
14202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14203             s//\1/
14204             q
14205           }
14206           /^X\(\/\/\)[^/].*/{
14207             s//\1/
14208             q
14209           }
14210           /^X\(\/\/\)$/{
14211             s//\1/
14212             q
14213           }
14214           /^X\(\/\).*/{
14215             s//\1/
14216             q
14217           }
14218           s/.*/./; q'`
14219   as_dir="$ac_dir"; as_fn_mkdir_p
14220   ac_builddir=.
14221
14222 case "$ac_dir" in
14223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14224 *)
14225   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14226   # A ".." for each directory in $ac_dir_suffix.
14227   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14228   case $ac_top_builddir_sub in
14229   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14230   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14231   esac ;;
14232 esac
14233 ac_abs_top_builddir=$ac_pwd
14234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14235 # for backward compatibility:
14236 ac_top_builddir=$ac_top_build_prefix
14237
14238 case $srcdir in
14239   .)  # We are building in place.
14240     ac_srcdir=.
14241     ac_top_srcdir=$ac_top_builddir_sub
14242     ac_abs_top_srcdir=$ac_pwd ;;
14243   [\\/]* | ?:[\\/]* )  # Absolute name.
14244     ac_srcdir=$srcdir$ac_dir_suffix;
14245     ac_top_srcdir=$srcdir
14246     ac_abs_top_srcdir=$srcdir ;;
14247   *) # Relative name.
14248     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14249     ac_top_srcdir=$ac_top_build_prefix$srcdir
14250     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14251 esac
14252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14253
14254
14255   case $ac_mode in
14256   :F)
14257   #
14258   # CONFIG_FILE
14259   #
14260
14261   case $INSTALL in
14262   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14263   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14264   esac
14265   ac_MKDIR_P=$MKDIR_P
14266   case $MKDIR_P in
14267   [\\/$]* | ?:[\\/]* ) ;;
14268   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14269   esac
14270 _ACEOF
14271
14272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14273 # If the template does not know about datarootdir, expand it.
14274 # FIXME: This hack should be removed a few years after 2.60.
14275 ac_datarootdir_hack=; ac_datarootdir_seen=
14276 ac_sed_dataroot='
14277 /datarootdir/ {
14278   p
14279   q
14280 }
14281 /@datadir@/p
14282 /@docdir@/p
14283 /@infodir@/p
14284 /@localedir@/p
14285 /@mandir@/p'
14286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14287 *datarootdir*) ac_datarootdir_seen=yes;;
14288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14291 _ACEOF
14292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14293   ac_datarootdir_hack='
14294   s&@datadir@&$datadir&g
14295   s&@docdir@&$docdir&g
14296   s&@infodir@&$infodir&g
14297   s&@localedir@&$localedir&g
14298   s&@mandir@&$mandir&g
14299   s&\\\${datarootdir}&$datarootdir&g' ;;
14300 esac
14301 _ACEOF
14302
14303 # Neutralize VPATH when `$srcdir' = `.'.
14304 # Shell code in configure.ac might set extrasub.
14305 # FIXME: do we really want to maintain this feature?
14306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307 ac_sed_extra="$ac_vpsub
14308 $extrasub
14309 _ACEOF
14310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14311 :t
14312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14313 s|@configure_input@|$ac_sed_conf_input|;t t
14314 s&@top_builddir@&$ac_top_builddir_sub&;t t
14315 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14316 s&@srcdir@&$ac_srcdir&;t t
14317 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14318 s&@top_srcdir@&$ac_top_srcdir&;t t
14319 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14320 s&@builddir@&$ac_builddir&;t t
14321 s&@abs_builddir@&$ac_abs_builddir&;t t
14322 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14323 s&@INSTALL@&$ac_INSTALL&;t t
14324 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14325 $ac_datarootdir_hack
14326 "
14327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14328   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14329
14330 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14331   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14332   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14333       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14335 which seems to be undefined.  Please make sure it is defined" >&5
14336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14337 which seems to be undefined.  Please make sure it is defined" >&2;}
14338
14339   rm -f "$ac_tmp/stdin"
14340   case $ac_file in
14341   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14342   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14343   esac \
14344   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14345  ;;
14346   :H)
14347   #
14348   # CONFIG_HEADER
14349   #
14350   if test x"$ac_file" != x-; then
14351     {
14352       $as_echo "/* $configure_input  */" \
14353       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14354     } >"$ac_tmp/config.h" \
14355       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14356     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14357       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14358 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14359     else
14360       rm -f "$ac_file"
14361       mv "$ac_tmp/config.h" "$ac_file" \
14362         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14363     fi
14364   else
14365     $as_echo "/* $configure_input  */" \
14366       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14367       || as_fn_error $? "could not create -" "$LINENO" 5
14368   fi
14369 # Compute "$ac_file"'s index in $config_headers.
14370 _am_arg="$ac_file"
14371 _am_stamp_count=1
14372 for _am_header in $config_headers :; do
14373   case $_am_header in
14374     $_am_arg | $_am_arg:* )
14375       break ;;
14376     * )
14377       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14378   esac
14379 done
14380 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14381 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14382          X"$_am_arg" : 'X\(//\)[^/]' \| \
14383          X"$_am_arg" : 'X\(//\)$' \| \
14384          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14385 $as_echo X"$_am_arg" |
14386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14387             s//\1/
14388             q
14389           }
14390           /^X\(\/\/\)[^/].*/{
14391             s//\1/
14392             q
14393           }
14394           /^X\(\/\/\)$/{
14395             s//\1/
14396             q
14397           }
14398           /^X\(\/\).*/{
14399             s//\1/
14400             q
14401           }
14402           s/.*/./; q'`/stamp-h$_am_stamp_count
14403  ;;
14404
14405   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14406 $as_echo "$as_me: executing $ac_file commands" >&6;}
14407  ;;
14408   esac
14409
14410
14411   case $ac_file$ac_mode in
14412     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14413   # Older Autoconf quotes --file arguments for eval, but not when files
14414   # are listed without --file.  Let's play safe and only enable the eval
14415   # if we detect the quoting.
14416   case $CONFIG_FILES in
14417   *\'*) eval set x "$CONFIG_FILES" ;;
14418   *)   set x $CONFIG_FILES ;;
14419   esac
14420   shift
14421   for mf
14422   do
14423     # Strip MF so we end up with the name of the file.
14424     mf=`echo "$mf" | sed -e 's/:.*$//'`
14425     # Check whether this is an Automake generated Makefile or not.
14426     # We used to match only the files named 'Makefile.in', but
14427     # some people rename them; so instead we look at the file content.
14428     # Grep'ing the first line is not enough: some people post-process
14429     # each Makefile.in and add a new line on top of each file to say so.
14430     # Grep'ing the whole file is not good either: AIX grep has a line
14431     # limit of 2048, but all sed's we know have understand at least 4000.
14432     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14433       dirpart=`$as_dirname -- "$mf" ||
14434 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14435          X"$mf" : 'X\(//\)[^/]' \| \
14436          X"$mf" : 'X\(//\)$' \| \
14437          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14438 $as_echo X"$mf" |
14439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14440             s//\1/
14441             q
14442           }
14443           /^X\(\/\/\)[^/].*/{
14444             s//\1/
14445             q
14446           }
14447           /^X\(\/\/\)$/{
14448             s//\1/
14449             q
14450           }
14451           /^X\(\/\).*/{
14452             s//\1/
14453             q
14454           }
14455           s/.*/./; q'`
14456     else
14457       continue
14458     fi
14459     # Extract the definition of DEPDIR, am__include, and am__quote
14460     # from the Makefile without running 'make'.
14461     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14462     test -z "$DEPDIR" && continue
14463     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14464     test -z "am__include" && continue
14465     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14466     # Find all dependency output files, they are included files with
14467     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14468     # simplest approach to changing $(DEPDIR) to its actual value in the
14469     # expansion.
14470     for file in `sed -n "
14471       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14472          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14473       # Make sure the directory exists.
14474       test -f "$dirpart/$file" && continue
14475       fdir=`$as_dirname -- "$file" ||
14476 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14477          X"$file" : 'X\(//\)[^/]' \| \
14478          X"$file" : 'X\(//\)$' \| \
14479          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14480 $as_echo X"$file" |
14481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14482             s//\1/
14483             q
14484           }
14485           /^X\(\/\/\)[^/].*/{
14486             s//\1/
14487             q
14488           }
14489           /^X\(\/\/\)$/{
14490             s//\1/
14491             q
14492           }
14493           /^X\(\/\).*/{
14494             s//\1/
14495             q
14496           }
14497           s/.*/./; q'`
14498       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14499       # echo "creating $dirpart/$file"
14500       echo '# dummy' > "$dirpart/$file"
14501     done
14502   done
14503 }
14504  ;;
14505     "libtool":C)
14506
14507     # See if we are running on zsh, and set the options which allow our
14508     # commands through without removal of \ escapes.
14509     if test -n "${ZSH_VERSION+set}" ; then
14510       setopt NO_GLOB_SUBST
14511     fi
14512
14513     cfgfile="${ofile}T"
14514     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14515     $RM "$cfgfile"
14516
14517     cat <<_LT_EOF >> "$cfgfile"
14518 #! $SHELL
14519
14520 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14521 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14523 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14524 #
14525 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14526 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14527 #                 Foundation, Inc.
14528 #   Written by Gordon Matzigkeit, 1996
14529 #
14530 #   This file is part of GNU Libtool.
14531 #
14532 # GNU Libtool is free software; you can redistribute it and/or
14533 # modify it under the terms of the GNU General Public License as
14534 # published by the Free Software Foundation; either version 2 of
14535 # the License, or (at your option) any later version.
14536 #
14537 # As a special exception to the GNU General Public License,
14538 # if you distribute this file as part of a program or library that
14539 # is built using GNU Libtool, you may include this file under the
14540 # same distribution terms that you use for the rest of that program.
14541 #
14542 # GNU Libtool is distributed in the hope that it will be useful,
14543 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14545 # GNU General Public License for more details.
14546 #
14547 # You should have received a copy of the GNU General Public License
14548 # along with GNU Libtool; see the file COPYING.  If not, a copy
14549 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14550 # obtained by writing to the Free Software Foundation, Inc.,
14551 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14552
14553
14554 # The names of the tagged configurations supported by this script.
14555 available_tags=""
14556
14557 # ### BEGIN LIBTOOL CONFIG
14558
14559 # A sed program that does not truncate output.
14560 SED=$lt_SED
14561
14562 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14563 Xsed="\$SED -e 1s/^X//"
14564
14565 # A grep program that handles long lines.
14566 GREP=$lt_GREP
14567
14568 # An ERE matcher.
14569 EGREP=$lt_EGREP
14570
14571 # A literal string matcher.
14572 FGREP=$lt_FGREP
14573
14574 # Shell to use when invoking shell scripts.
14575 SHELL=$lt_SHELL
14576
14577 # An echo program that protects backslashes.
14578 ECHO=$lt_ECHO
14579
14580 # Which release of libtool.m4 was used?
14581 macro_version=$macro_version
14582 macro_revision=$macro_revision
14583
14584 # Assembler program.
14585 AS=$lt_AS
14586
14587 # DLL creation program.
14588 DLLTOOL=$lt_DLLTOOL
14589
14590 # Object dumper program.
14591 OBJDUMP=$lt_OBJDUMP
14592
14593 # Whether or not to build shared libraries.
14594 build_libtool_libs=$enable_shared
14595
14596 # Whether or not to build static libraries.
14597 build_old_libs=$enable_static
14598
14599 # What type of objects to build.
14600 pic_mode=$pic_mode
14601
14602 # Whether or not to optimize for fast installation.
14603 fast_install=$enable_fast_install
14604
14605 # The PATH separator for the build system.
14606 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14607
14608 # The host system.
14609 host_alias=$host_alias
14610 host=$host
14611 host_os=$host_os
14612
14613 # The build system.
14614 build_alias=$build_alias
14615 build=$build
14616 build_os=$build_os
14617
14618 # A BSD- or MS-compatible name lister.
14619 NM=$lt_NM
14620
14621 # Whether we need soft or hard links.
14622 LN_S=$lt_LN_S
14623
14624 # What is the maximum length of a command?
14625 max_cmd_len=$max_cmd_len
14626
14627 # Object file suffix (normally "o").
14628 objext=$ac_objext
14629
14630 # Executable file suffix (normally "").
14631 exeext=$exeext
14632
14633 # whether the shell understands "unset".
14634 lt_unset=$lt_unset
14635
14636 # turn spaces into newlines.
14637 SP2NL=$lt_lt_SP2NL
14638
14639 # turn newlines into spaces.
14640 NL2SP=$lt_lt_NL2SP
14641
14642 # convert \$build file names to \$host format.
14643 to_host_file_cmd=$lt_cv_to_host_file_cmd
14644
14645 # convert \$build files to toolchain format.
14646 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14647
14648 # Method to check whether dependent libraries are shared objects.
14649 deplibs_check_method=$lt_deplibs_check_method
14650
14651 # Command to use when deplibs_check_method = "file_magic".
14652 file_magic_cmd=$lt_file_magic_cmd
14653
14654 # How to find potential files when deplibs_check_method = "file_magic".
14655 file_magic_glob=$lt_file_magic_glob
14656
14657 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14658 want_nocaseglob=$lt_want_nocaseglob
14659
14660 # Command to associate shared and link libraries.
14661 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14662
14663 # The archiver.
14664 AR=$lt_AR
14665
14666 # Flags to create an archive.
14667 AR_FLAGS=$lt_AR_FLAGS
14668
14669 # How to feed a file listing to the archiver.
14670 archiver_list_spec=$lt_archiver_list_spec
14671
14672 # A symbol stripping program.
14673 STRIP=$lt_STRIP
14674
14675 # Commands used to install an old-style archive.
14676 RANLIB=$lt_RANLIB
14677 old_postinstall_cmds=$lt_old_postinstall_cmds
14678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14679
14680 # Whether to use a lock for old archive extraction.
14681 lock_old_archive_extraction=$lock_old_archive_extraction
14682
14683 # A C compiler.
14684 LTCC=$lt_CC
14685
14686 # LTCC compiler flags.
14687 LTCFLAGS=$lt_CFLAGS
14688
14689 # Take the output of nm and produce a listing of raw symbols and C names.
14690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14691
14692 # Transform the output of nm in a proper C declaration.
14693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14694
14695 # Transform the output of nm in a C name address pair.
14696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14697
14698 # Transform the output of nm in a C name address pair when lib prefix is needed.
14699 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14700
14701 # Specify filename containing input files for \$NM.
14702 nm_file_list_spec=$lt_nm_file_list_spec
14703
14704 # The root where to search for dependent libraries,and in which our libraries should be installed.
14705 lt_sysroot=$lt_sysroot
14706
14707 # The name of the directory that contains temporary libtool files.
14708 objdir=$objdir
14709
14710 # Used to examine libraries when file_magic_cmd begins with "file".
14711 MAGIC_CMD=$MAGIC_CMD
14712
14713 # Must we lock files when doing compilation?
14714 need_locks=$lt_need_locks
14715
14716 # Manifest tool.
14717 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14718
14719 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14720 DSYMUTIL=$lt_DSYMUTIL
14721
14722 # Tool to change global to local symbols on Mac OS X.
14723 NMEDIT=$lt_NMEDIT
14724
14725 # Tool to manipulate fat objects and archives on Mac OS X.
14726 LIPO=$lt_LIPO
14727
14728 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14729 OTOOL=$lt_OTOOL
14730
14731 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14732 OTOOL64=$lt_OTOOL64
14733
14734 # Old archive suffix (normally "a").
14735 libext=$libext
14736
14737 # Shared library suffix (normally ".so").
14738 shrext_cmds=$lt_shrext_cmds
14739
14740 # The commands to extract the exported symbol list from a shared archive.
14741 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14742
14743 # Variables whose values should be saved in libtool wrapper scripts and
14744 # restored at link time.
14745 variables_saved_for_relink=$lt_variables_saved_for_relink
14746
14747 # Do we need the "lib" prefix for modules?
14748 need_lib_prefix=$need_lib_prefix
14749
14750 # Do we need a version for libraries?
14751 need_version=$need_version
14752
14753 # Library versioning type.
14754 version_type=$version_type
14755
14756 # Shared library runtime path variable.
14757 runpath_var=$runpath_var
14758
14759 # Shared library path variable.
14760 shlibpath_var=$shlibpath_var
14761
14762 # Is shlibpath searched before the hard-coded library search path?
14763 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14764
14765 # Format of library name prefix.
14766 libname_spec=$lt_libname_spec
14767
14768 # List of archive names.  First name is the real one, the rest are links.
14769 # The last name is the one that the linker finds with -lNAME
14770 library_names_spec=$lt_library_names_spec
14771
14772 # The coded name of the library, if different from the real name.
14773 soname_spec=$lt_soname_spec
14774
14775 # Permission mode override for installation of shared libraries.
14776 install_override_mode=$lt_install_override_mode
14777
14778 # Command to use after installation of a shared archive.
14779 postinstall_cmds=$lt_postinstall_cmds
14780
14781 # Command to use after uninstallation of a shared archive.
14782 postuninstall_cmds=$lt_postuninstall_cmds
14783
14784 # Commands used to finish a libtool library installation in a directory.
14785 finish_cmds=$lt_finish_cmds
14786
14787 # As "finish_cmds", except a single script fragment to be evaled but
14788 # not shown.
14789 finish_eval=$lt_finish_eval
14790
14791 # Whether we should hardcode library paths into libraries.
14792 hardcode_into_libs=$hardcode_into_libs
14793
14794 # Compile-time system search path for libraries.
14795 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14796
14797 # Run-time system search path for libraries.
14798 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14799
14800 # Whether dlopen is supported.
14801 dlopen_support=$enable_dlopen
14802
14803 # Whether dlopen of programs is supported.
14804 dlopen_self=$enable_dlopen_self
14805
14806 # Whether dlopen of statically linked programs is supported.
14807 dlopen_self_static=$enable_dlopen_self_static
14808
14809 # Commands to strip libraries.
14810 old_striplib=$lt_old_striplib
14811 striplib=$lt_striplib
14812
14813
14814 # The linker used to build libraries.
14815 LD=$lt_LD
14816
14817 # How to create reloadable object files.
14818 reload_flag=$lt_reload_flag
14819 reload_cmds=$lt_reload_cmds
14820
14821 # Commands used to build an old-style archive.
14822 old_archive_cmds=$lt_old_archive_cmds
14823
14824 # A language specific compiler.
14825 CC=$lt_compiler
14826
14827 # Is the compiler the GNU compiler?
14828 with_gcc=$GCC
14829
14830 # Compiler flag to turn off builtin functions.
14831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14832
14833 # Additional compiler flags for building library objects.
14834 pic_flag=$lt_lt_prog_compiler_pic
14835
14836 # How to pass a linker flag through the compiler.
14837 wl=$lt_lt_prog_compiler_wl
14838
14839 # Compiler flag to prevent dynamic linking.
14840 link_static_flag=$lt_lt_prog_compiler_static
14841
14842 # Does compiler simultaneously support -c and -o options?
14843 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14844
14845 # Whether or not to add -lc for building shared libraries.
14846 build_libtool_need_lc=$archive_cmds_need_lc
14847
14848 # Whether or not to disallow shared libs when runtime libs are static.
14849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14850
14851 # Compiler flag to allow reflexive dlopens.
14852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14853
14854 # Compiler flag to generate shared objects directly from archives.
14855 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14856
14857 # Whether the compiler copes with passing no objects directly.
14858 compiler_needs_object=$lt_compiler_needs_object
14859
14860 # Create an old-style archive from a shared archive.
14861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14862
14863 # Create a temporary old-style archive to link instead of a shared archive.
14864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14865
14866 # Commands used to build a shared archive.
14867 archive_cmds=$lt_archive_cmds
14868 archive_expsym_cmds=$lt_archive_expsym_cmds
14869
14870 # Commands used to build a loadable module if different from building
14871 # a shared archive.
14872 module_cmds=$lt_module_cmds
14873 module_expsym_cmds=$lt_module_expsym_cmds
14874
14875 # Whether we are building with GNU ld or not.
14876 with_gnu_ld=$lt_with_gnu_ld
14877
14878 # Flag that allows shared libraries with undefined symbols to be built.
14879 allow_undefined_flag=$lt_allow_undefined_flag
14880
14881 # Flag that enforces no undefined symbols.
14882 no_undefined_flag=$lt_no_undefined_flag
14883
14884 # Flag to hardcode \$libdir into a binary during linking.
14885 # This must work even if \$libdir does not exist
14886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14887
14888 # Whether we need a single "-rpath" flag with a separated argument.
14889 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14890
14891 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14892 # DIR into the resulting binary.
14893 hardcode_direct=$hardcode_direct
14894
14895 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14896 # DIR into the resulting binary and the resulting library dependency is
14897 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14898 # library is relocated.
14899 hardcode_direct_absolute=$hardcode_direct_absolute
14900
14901 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14902 # into the resulting binary.
14903 hardcode_minus_L=$hardcode_minus_L
14904
14905 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14906 # into the resulting binary.
14907 hardcode_shlibpath_var=$hardcode_shlibpath_var
14908
14909 # Set to "yes" if building a shared library automatically hardcodes DIR
14910 # into the library and all subsequent libraries and executables linked
14911 # against it.
14912 hardcode_automatic=$hardcode_automatic
14913
14914 # Set to yes if linker adds runtime paths of dependent libraries
14915 # to runtime path list.
14916 inherit_rpath=$inherit_rpath
14917
14918 # Whether libtool must link a program against all its dependency libraries.
14919 link_all_deplibs=$link_all_deplibs
14920
14921 # Set to "yes" if exported symbols are required.
14922 always_export_symbols=$always_export_symbols
14923
14924 # The commands to list exported symbols.
14925 export_symbols_cmds=$lt_export_symbols_cmds
14926
14927 # Symbols that should not be listed in the preloaded symbols.
14928 exclude_expsyms=$lt_exclude_expsyms
14929
14930 # Symbols that must always be exported.
14931 include_expsyms=$lt_include_expsyms
14932
14933 # Commands necessary for linking programs (against libraries) with templates.
14934 prelink_cmds=$lt_prelink_cmds
14935
14936 # Commands necessary for finishing linking programs.
14937 postlink_cmds=$lt_postlink_cmds
14938
14939 # Specify filename containing input files.
14940 file_list_spec=$lt_file_list_spec
14941
14942 # How to hardcode a shared library path into an executable.
14943 hardcode_action=$hardcode_action
14944
14945 # ### END LIBTOOL CONFIG
14946
14947 _LT_EOF
14948
14949   case $host_os in
14950   aix3*)
14951     cat <<\_LT_EOF >> "$cfgfile"
14952 # AIX sometimes has problems with the GCC collect2 program.  For some
14953 # reason, if we set the COLLECT_NAMES environment variable, the problems
14954 # vanish in a puff of smoke.
14955 if test "X${COLLECT_NAMES+set}" != Xset; then
14956   COLLECT_NAMES=
14957   export COLLECT_NAMES
14958 fi
14959 _LT_EOF
14960     ;;
14961   esac
14962
14963
14964 ltmain="$ac_aux_dir/ltmain.sh"
14965
14966
14967   # We use sed instead of cat because bash on DJGPP gets confused if
14968   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14969   # text mode, it properly converts lines to CR/LF.  This bash problem
14970   # is reportedly fixed, but why not run on old versions too?
14971   sed '$q' "$ltmain" >> "$cfgfile" \
14972      || (rm -f "$cfgfile"; exit 1)
14973
14974   if test x"$xsi_shell" = xyes; then
14975   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14976 func_dirname ()\
14977 {\
14978 \    case ${1} in\
14979 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14980 \      *  ) func_dirname_result="${3}" ;;\
14981 \    esac\
14982 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14983   && mv -f "$cfgfile.tmp" "$cfgfile" \
14984     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14985 test 0 -eq $? || _lt_function_replace_fail=:
14986
14987
14988   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14989 func_basename ()\
14990 {\
14991 \    func_basename_result="${1##*/}"\
14992 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14993   && mv -f "$cfgfile.tmp" "$cfgfile" \
14994     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14995 test 0 -eq $? || _lt_function_replace_fail=:
14996
14997
14998   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14999 func_dirname_and_basename ()\
15000 {\
15001 \    case ${1} in\
15002 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15003 \      *  ) func_dirname_result="${3}" ;;\
15004 \    esac\
15005 \    func_basename_result="${1##*/}"\
15006 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15007   && mv -f "$cfgfile.tmp" "$cfgfile" \
15008     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15009 test 0 -eq $? || _lt_function_replace_fail=:
15010
15011
15012   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15013 func_stripname ()\
15014 {\
15015 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15016 \    # positional parameters, so assign one to ordinary parameter first.\
15017 \    func_stripname_result=${3}\
15018 \    func_stripname_result=${func_stripname_result#"${1}"}\
15019 \    func_stripname_result=${func_stripname_result%"${2}"}\
15020 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15021   && mv -f "$cfgfile.tmp" "$cfgfile" \
15022     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15023 test 0 -eq $? || _lt_function_replace_fail=:
15024
15025
15026   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15027 func_split_long_opt ()\
15028 {\
15029 \    func_split_long_opt_name=${1%%=*}\
15030 \    func_split_long_opt_arg=${1#*=}\
15031 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15032   && mv -f "$cfgfile.tmp" "$cfgfile" \
15033     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15034 test 0 -eq $? || _lt_function_replace_fail=:
15035
15036
15037   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15038 func_split_short_opt ()\
15039 {\
15040 \    func_split_short_opt_arg=${1#??}\
15041 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15042 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15043   && mv -f "$cfgfile.tmp" "$cfgfile" \
15044     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15045 test 0 -eq $? || _lt_function_replace_fail=:
15046
15047
15048   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15049 func_lo2o ()\
15050 {\
15051 \    case ${1} in\
15052 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15053 \      *)    func_lo2o_result=${1} ;;\
15054 \    esac\
15055 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15056   && mv -f "$cfgfile.tmp" "$cfgfile" \
15057     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15058 test 0 -eq $? || _lt_function_replace_fail=:
15059
15060
15061   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15062 func_xform ()\
15063 {\
15064     func_xform_result=${1%.*}.lo\
15065 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15066   && mv -f "$cfgfile.tmp" "$cfgfile" \
15067     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15068 test 0 -eq $? || _lt_function_replace_fail=:
15069
15070
15071   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15072 func_arith ()\
15073 {\
15074     func_arith_result=$(( $* ))\
15075 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15076   && mv -f "$cfgfile.tmp" "$cfgfile" \
15077     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15078 test 0 -eq $? || _lt_function_replace_fail=:
15079
15080
15081   sed -e '/^func_len ()$/,/^} # func_len /c\
15082 func_len ()\
15083 {\
15084     func_len_result=${#1}\
15085 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15086   && mv -f "$cfgfile.tmp" "$cfgfile" \
15087     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15088 test 0 -eq $? || _lt_function_replace_fail=:
15089
15090 fi
15091
15092 if test x"$lt_shell_append" = xyes; then
15093   sed -e '/^func_append ()$/,/^} # func_append /c\
15094 func_append ()\
15095 {\
15096     eval "${1}+=\\${2}"\
15097 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15098   && mv -f "$cfgfile.tmp" "$cfgfile" \
15099     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15100 test 0 -eq $? || _lt_function_replace_fail=:
15101
15102
15103   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15104 func_append_quoted ()\
15105 {\
15106 \    func_quote_for_eval "${2}"\
15107 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15108 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15109   && mv -f "$cfgfile.tmp" "$cfgfile" \
15110     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15111 test 0 -eq $? || _lt_function_replace_fail=:
15112
15113
15114   # Save a `func_append' function call where possible by direct use of '+='
15115   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15116     && mv -f "$cfgfile.tmp" "$cfgfile" \
15117       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15118   test 0 -eq $? || _lt_function_replace_fail=:
15119 else
15120   # Save a `func_append' function call even when '+=' is not available
15121   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15122     && mv -f "$cfgfile.tmp" "$cfgfile" \
15123       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15124   test 0 -eq $? || _lt_function_replace_fail=:
15125 fi
15126
15127 if test x"$_lt_function_replace_fail" = x":"; then
15128   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15129 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15130 fi
15131
15132
15133    mv -f "$cfgfile" "$ofile" ||
15134     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15135   chmod +x "$ofile"
15136
15137  ;;
15138     "libpng-config":F) chmod +x libpng-config ;;
15139
15140   esac
15141 done # for ac_tag
15142
15143
15144 as_fn_exit 0
15145 _ACEOF
15146 ac_clean_files=$ac_clean_files_save
15147
15148 test $ac_write_fail = 0 ||
15149   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15150
15151
15152 # configure is writing to config.log, and then calls config.status.
15153 # config.status does its own redirection, appending to config.log.
15154 # Unfortunately, on DOS this fails, as config.log is still kept open
15155 # by configure, so config.status won't be able to write to it; its
15156 # output is simply discarded.  So we exec the FD to /dev/null,
15157 # effectively closing config.log, so it can be properly (re)opened and
15158 # appended to by config.status.  When coming back to configure, we
15159 # need to make the FD available again.
15160 if test "$no_create" != yes; then
15161   ac_cs_success=:
15162   ac_config_status_args=
15163   test "$silent" = yes &&
15164     ac_config_status_args="$ac_config_status_args --quiet"
15165   exec 5>/dev/null
15166   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15167   exec 5>>config.log
15168   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15169   # would make configure fail if this is the last instruction.
15170   $ac_cs_success || as_fn_exit 1
15171 fi
15172 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15173   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15174 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15175 fi
15176