2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpng 1.6.2.
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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
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 :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
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 :
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
248 if test "x$CONFIG_SHELL" != x; then :
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.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
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
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."
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."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
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
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
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 :
409 as_val=`expr "$@" || test $? -eq 1`
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.
421 as_status=$1; test $as_status -eq 0 && as_status=1
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
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
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. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
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'"
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'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
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`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
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'
598 ac_unique_file="pngget.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
651 HAVE_LD_VERSION_SCRIPT_FALSE
652 HAVE_LD_VERSION_SCRIPT_TRUE
653 HAVE_SOLARIS_LD_FALSE
690 am__fastdepCCAS_FALSE
713 MAINTAINER_MODE_FALSE
727 INSTALL_STRIP_PROGRAM
769 program_transform_name
782 enable_option_checking
784 enable_maintainer_mode
785 enable_dependency_tracking
800 ac_precious_vars='build_alias
814 # Initialize some variables set by options.
816 ac_init_version=false
817 ac_unrecognized_opts=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
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'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
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 ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
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 ;;
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
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
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
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
957 eval enable_$ac_useropt=\$ac_optarg ;;
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 ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
972 -help | --help | --hel | --he | -h)
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 ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 htmldir=$ac_optarg ;;
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 ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
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 ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
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 ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1121 -site=* | --site=* | --sit=*)
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
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
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1161 eval with_$ac_useropt=\$ac_optarg ;;
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
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1177 eval with_$ac_useropt=no ;;
1180 # Obsolete; use --with-x.
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 ;;
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 ;;
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
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'" ;;
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
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}"
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"
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
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
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1248 # Be sure to have absolute directory names.
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
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.
1261 target=$target_alias
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
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
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"
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1318 ac_srcdir_defaulted=no
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"
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
1346 # Report the --help message.
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.
1352 \`configure' configures libpng 1.6.2 to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1359 Defaults for the options are specified in brackets.
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 \`..']
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
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'.
1383 For better control, use the options below.
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]
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
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of libpng 1.6.2:";;
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
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,
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
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
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
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)
1481 PNG_COPTS additional flags for the C compiler, use this for options that
1482 would cause configure itself to fail
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.
1487 Report bugs to <png-mng-implement@lists.sourceforge.net>.
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"; } ||
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
1517 .) # We are building in place.
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 ;;
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 ;;
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1550 libpng configure 1.6.2
1551 generated by GNU Autoconf 2.69
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.
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
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 ()
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"
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
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
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
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 :
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1600 } # ac_fn_c_try_compile
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
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
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
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
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1639 # ac_fn_c_try_link LINENO
1640 # -----------------------
1641 # Try to link conftest.$ac_ext, and return whether this succeeded.
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"
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
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
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
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
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
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
1683 } # ac_fn_c_try_link
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 ()
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
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1702 if ac_fn_c_try_compile "$LINENO"; then :
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
1714 } # ac_fn_c_check_header_compile
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.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
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
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;;
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
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
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
1750 ac_retval=$ac_status
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
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 ()
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
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
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. */
1781 # include <limits.h>
1783 # include <assert.h>
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. */
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
1810 if ac_fn_c_try_link "$LINENO"; then :
1815 rm -f core conftest.err conftest.$ac_objext \
1816 conftest$ac_exeext conftest.$ac_ext
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
1823 } # ac_fn_c_check_func
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 ()
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
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1863 if ac_fn_c_try_compile "$LINENO"; then :
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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.
1882 It was created by libpng $as_me 1.6.2, which was
1883 generated by GNU Autoconf 2.69. Invocation command line was
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`
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`
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`
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 test -z "$as_dir" && as_dir=.
1919 $as_echo "PATH: $as_dir"
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.
1943 ac_must_keep_next=false
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)
1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
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.
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 ;;
1972 -* ) ac_must_keep_next=true ;;
1975 as_fn_append ac_configure_args " '$ac_arg'"
1980 { ac_configure_args0=; unset ac_configure_args0;}
1981 { ac_configure_args1=; unset ac_configure_args1;}
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.
1993 $as_echo "## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##"
1997 # The following way of writing the cache mishandles newlines in values,
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
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;} ;;
2008 _ | IFS | as_nl) ;; #(
2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010 *) { eval $ac_var=; unset $ac_var;} ;;
2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016 *${as_nl}ac_space=\ *)
2018 "s/'\''/'\''\\\\'\'''\''/g;
2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029 $as_echo "## ----------------- ##
2030 ## Output variables. ##
2031 ## ----------------- ##"
2033 for ac_var in $ac_subst_vars
2035 eval ac_val=\$$ac_var
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 $as_echo "$ac_var='\''$ac_val'\''"
2043 if test -n "$ac_subst_files"; then
2044 $as_echo "## ------------------- ##
2045 ## File substitutions. ##
2046 ## ------------------- ##"
2048 for ac_var in $ac_subst_files
2050 eval ac_val=\$$ac_var
2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 $as_echo "$ac_var='\''$ac_val'\''"
2059 if test -s confdefs.h; then
2060 $as_echo "## ----------- ##
2067 test "$ac_signal" != 0 &&
2068 $as_echo "$as_me: caught signal $ac_signal"
2069 $as_echo "$as_me: exit $exit_status"
2071 rm -f core *.core core.conftest.* &&
2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075 for ac_signal in 1 2 13 15; do
2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2081 rm -f -r conftest* confdefs.h
2083 $as_echo "/* confdefs.h */" > confdefs.h
2085 # Predefined preprocessor variables.
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_NAME "$PACKAGE_NAME"
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_URL "$PACKAGE_URL"
2112 # Let the site file select an alternate cache file if it wants to.
2113 # Prefer an explicitly selected file to automatically selected ones.
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;;
2123 elif test "x$prefix" != xNONE; then
2124 ac_site_file1=$prefix/share/config.site
2125 ac_site_file2=$prefix/etc/config.site
2127 ac_site_file1=$ac_default_prefix/share/config.site
2128 ac_site_file2=$ac_default_prefix/etc/config.site
2130 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
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
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; }
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;}
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2162 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
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
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;}
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
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
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'
2241 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2242 if test -f "$ac_dir/install-sh"; then
2244 ac_install_sh="$ac_aux_dir/install-sh -c"
2246 elif test -f "$ac_dir/install.sh"; then
2248 ac_install_sh="$ac_aux_dir/install.sh -c"
2250 elif test -f "$ac_dir/shtool"; then
2252 ac_install_sh="$ac_aux_dir/shtool install -c"
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
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.
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
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
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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[\\/]* | \
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
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.
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.
2316 rm -rf conftest.one conftest.two conftest.dir
2317 echo one > conftest.one
2318 echo two > conftest.two
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
2325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2338 rm -rf conftest.one conftest.two conftest.dir
2341 if test "${ac_cv_path_install+set}" = set; then
2342 INSTALL=$ac_cv_path_install
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
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2352 $as_echo "$INSTALL" >&6; }
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}'
2358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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.
2369 *[\\\"\#\$\&\'\`$am_lf]*)
2370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2374 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
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
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
2389 set X `ls -t "$srcdir/configure" conftest.file`
2391 if test "$*" != "X $srcdir/configure conftest.file" \
2392 && test "$*" != "X conftest.file $srcdir/configure"; then
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
2401 if test "$2" = conftest.file || test $am_try -eq 2; then
2408 test "$2" = conftest.file
2414 as_fn_error $? "newly created file is older than distributed files!
2415 Check your system clock" "$LINENO" 5
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.
2422 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
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"`
2439 # expand $ac_aux_dir to an absolute path
2440 am_aux_dir=`cd $ac_aux_dir && pwd`
2442 if test x"${MISSING+set}" != xset; then
2445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2447 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2450 # Use eval to expand $SHELL
2451 if eval "$MISSING --is-lightweight"; then
2452 am_missing_run="$MISSING "
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;}
2459 if test x"${install_sh}" != xset; then
2462 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2464 install_sh="\${SHELL} $am_aux_dir/install-sh"
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
2481 if test -n "$STRIP"; then
2482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2512 if test -z "$ac_cv_prog_STRIP"; then
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
2521 if test -n "$ac_ct_STRIP"; then
2522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2550 if test "x$ac_ct_STRIP" = x; then
2553 case $cross_compiling:$ac_tool_warned in
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 ;;
2562 STRIP="$ac_cv_prog_STRIP"
2566 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
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
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
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
2596 test -d ./--version && rmdir ./--version
2597 if test "${ac_cv_path_mkdir+set}" = set; then
2598 MKDIR_P="$ac_cv_path_mkdir -p"
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"
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2608 $as_echo "$MKDIR_P" >&6; }
2610 for ac_prog in gawk mawk nawk awk
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
2619 if test -n "$AWK"; then
2620 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2640 if test -n "$AWK"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642 $as_echo "$AWK" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2649 test -n "$AWK" && break
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; }
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
2659 cat >conftest.make <<\_ACEOF
2662 @echo '@@@%%%=$(MAKE)=@@@%%%'
2664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2667 eval ac_cv_prog_make_${ac_make}_set=yes;;
2669 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 SET_MAKE="MAKE=${MAKE-make}"
2683 rm -rf .tst 2>/dev/null
2684 mkdir .tst 2>/dev/null
2685 if test -d .tst; then
2690 rmdir .tst 2>/dev/null
2692 # Check whether --enable-silent-rules was given.
2693 if test "${enable_silent_rules+set}" = set; then :
2694 enableval=$enable_silent_rules;
2697 case $enable_silent_rules in # (((
2698 yes) AM_DEFAULT_VERBOSITY=0;;
2699 no) AM_DEFAULT_VERBOSITY=1;;
2700 *) AM_DEFAULT_VERBOSITY=1;;
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
2708 if $as_echo 'TRUE=$(BAR$(V))
2714 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2715 am_cv_make_support_nested_variables=yes
2717 am_cv_make_support_nested_variables=no
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
2724 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2726 AM_V=$AM_DEFAULT_VERBOSITY
2727 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
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
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'
2751 # Define the identity of the package.
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE "$PACKAGE"
2761 cat >>confdefs.h <<_ACEOF
2762 #define VERSION "$VERSION"
2765 # Some tools Automake needs.
2767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
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)'
2787 # We need awk for the "check" target. The system "awk" is bad on
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 ...
2793 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
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
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
2809 USE_MAINTAINER_MODE=no
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='#'
2818 MAINTAINER_MODE_TRUE='#'
2819 MAINTAINER_MODE_FALSE=
2822 MAINT=$MAINTAINER_MODE_TRUE
2827 PNGLIB_VERSION=1.6.2
2834 ac_config_headers="$ac_config_headers config.h"
2837 # Checks for programs.
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
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
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2878 if test -n "$CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880 $as_echo "$CC" >&6; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2888 if test -z "$ac_cv_prog_CC"; then
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
2897 if test -n "$ac_ct_CC"; then
2898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2926 if test "x$ac_ct_CC" = x; then
2929 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
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
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
3022 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3038 if test -z "$CC"; then
3039 if test -n "$ac_tool_prefix"; then
3040 for ac_prog in cl.exe
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
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3079 test -n "$CC" && break
3082 if test -z "$CC"; then
3084 for ac_prog in cl.exe
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
3093 if test -n "$ac_ct_CC"; then
3094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3123 test -n "$ac_ct_CC" && break
3126 if test "x$ac_ct_CC" = x; then
3129 case $cross_compiling:$ac_tool_warned in
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 ;;
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; }
3147 # Provide some information about the compiler.
3148 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3151 for ac_option in --version -v -V -qversion; do
3152 { { ac_try="$ac_compiler $ac_option >&5"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
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
3161 if test -s conftest.err; then
3163 ... rest of stderr output deleted ...
3164 10q' conftest.err >conftest.er1
3165 cat conftest.er1 >&5
3167 rm -f conftest.er1 conftest.err
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
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
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[^ ]*//'`
3192 # The possible output files:
3193 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3196 for ac_file in $ac_files
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3200 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3205 if { { ac_try="$ac_link_default"
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
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
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
3221 for ac_file in $ac_files ''
3223 test -f "$ac_file" || continue
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3228 # We found the default executable, but exeext='' is most
3232 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
3246 test "$ac_cv_exeext" = no && ac_cv_exeext=
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
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; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
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
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"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
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
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
3290 for ac_file in conftest.exe conftest conftest.*; do
3291 test -f "$ac_file" || continue
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }
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; }
3309 rm -f conftest.$ac_ext
3310 EXEEXT=$ac_cv_exeext
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3318 FILE *f = fopen ("conftest.out", "w");
3319 return ferror (f) || fclose (f) != 0;
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"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
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
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;;
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
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }; }; then
3355 if test "$cross_compiling" = maybe; then
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; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3367 $as_echo "$cross_compiling" >&6; }
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
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3387 rm -f conftest.o conftest.obj
3388 if { { ac_try="$ac_compile"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
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
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;
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
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; }
3416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
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
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
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3441 if ac_fn_c_try_compile "$LINENO"; then :
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
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
3464 ac_save_c_werror_flag=$ac_c_werror_flag
3465 ac_c_werror_flag=yes
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3479 if ac_fn_c_try_compile "$LINENO"; then :
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3494 if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3510 if ac_fn_c_try_compile "$LINENO"; then :
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_c_werror_flag=$ac_save_c_werror_flag
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
3531 if test "$GCC" = yes; then
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
3542 ac_cv_prog_cc_c89=no
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
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)
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3563 s = g (p, va_arg (v,int));
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];
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578 inside strings and character constants. */
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
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);
3591 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3599 CC="$ac_save_CC $ac_arg"
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_c89=$ac_arg
3603 rm -f core conftest.err conftest.$ac_objext
3604 test "x$ac_cv_prog_cc_c89" != "xno" && break
3606 rm -f conftest.$ac_ext
3611 case "x$ac_cv_prog_cc_c89" in
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614 $as_echo "none needed" >&6; } ;;
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617 $as_echo "unsupported" >&6; } ;;
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; } ;;
3623 if test "x$ac_cv_prog_cc_c89" != xno; then :
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"
3634 ac_config_commands="$ac_config_commands depfiles"
3637 am_make=${MAKE-make}
3638 cat > confinc << 'END'
3640 @echo this is the am__doit target
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; }
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*)
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
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3673 $as_echo "$_am_result" >&6; }
3674 rm -f confinc confmf
3676 # Check whether --enable-dependency-tracking was given.
3677 if test "${enable_dependency_tracking+set}" = set; then :
3678 enableval=$enable_dependency_tracking;
3681 if test "x$enable_dependency_tracking" != xno; then
3682 am_depcomp="$ac_aux_dir/depcomp"
3686 if test "x$enable_dependency_tracking" != xno; then
3696 depcc="$CC" am_compiler_list=
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
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
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
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
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`
3728 case " $depcc " in #(
3729 *\ -arch\ *\ -arch\ *) am__universal=true ;;
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.
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.
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
3747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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"
3757 # This depmode causes a compiler race in universal mode.
3758 test "$am__universal" = false || continue
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
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}
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
3805 am_cv_CC_dependencies_compiler_type=none
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
3814 test "x$enable_dependency_tracking" != xno \
3815 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3817 am__fastdepCC_FALSE='#'
3819 am__fastdepCC_TRUE='#'
3820 am__fastdepCC_FALSE=
3824 # By default we simply use the C compiler to build assembly code.
3826 test "${CCAS+set}" = set || CCAS=$CC
3827 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3831 depcc="$CCAS" am_compiler_list=
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
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
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
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
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`
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.
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.
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
3880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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"
3890 # This depmode causes a compiler race in universal mode.
3891 test "$am__universal" = false || continue
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
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}
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
3938 am_cv_CCAS_dependencies_compiler_type=none
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
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='#'
3952 am__fastdepCCAS_TRUE='#'
3953 am__fastdepCCAS_FALSE=
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
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
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
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
3979 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3982 ac_save_IFS=$IFS; IFS='-'
3988 # Remember, the first character of IFS is used to create $*,
3989 # except with old shells:
3992 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
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
4000 if test "x$host_alias" = x; then
4001 ac_cv_host=$ac_cv_build
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
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4009 $as_echo "$ac_cv_host" >&6; }
4012 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4015 ac_save_IFS=$IFS; IFS='-'
4021 # Remember, the first character of IFS is used to create $*,
4022 # except with old shells:
4025 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
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
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"
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
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
4055 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4058 $as_echo_n 0123456789 >"conftest.in"
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
4073 # 10*(2^10) chars as input seems more than enough
4074 test $ac_count -gt 10 && break
4076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079 $ac_path_SED_found && break 3
4084 if test -z "$ac_cv_path_SED"; then
4085 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
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"
4097 test -z "$SED" && SED=sed
4098 Xsed="$SED -e 1s/^X//"
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
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
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
4131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4134 $as_echo_n 0123456789 >"conftest.in"
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
4149 # 10*(2^10) chars as input seems more than enough
4150 test $ac_count -gt 10 && break
4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 $ac_path_GREP_found && break 3
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
4164 ac_cv_path_GREP=$GREP
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"
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
4178 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179 then ac_cv_path_EGREP="$GREP -E"
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
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
4197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200 $as_echo_n 0123456789 >"conftest.in"
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
4215 # 10*(2^10) chars as input seems more than enough
4216 test $ac_count -gt 10 && break
4218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221 $ac_path_EGREP_found && break 3
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
4230 ac_cv_path_EGREP=$EGREP
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"
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
4245 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4246 then ac_cv_path_FGREP="$GREP -F"
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
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
4264 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4267 $as_echo_n 0123456789 >"conftest.in"
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
4282 # 10*(2^10) chars as input seems more than enough
4283 test $ac_count -gt 10 && break
4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4288 $ac_path_FGREP_found && break 3
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
4297 ac_cv_path_FGREP=$FGREP
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"
4307 test -z "$GREP" && GREP=grep
4325 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4326 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4327 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
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
4335 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4338 # Use this function as a fallback that always works.
4339 func_fallback_echo ()
4341 eval 'cat <<_LTECHO_EOF
4345 ECHO='func_fallback_echo'
4348 # func_echo_all arg...
4349 # Invoke $ECHO with all args, space-separated.
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; } ;;
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
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; }
4393 # gcc leaves a trailing carriage return which upsets mingw
4394 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4396 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4399 # Accept absolute paths.
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%/%"`
4407 test -z "$LD" && LD="$ac_prog"
4410 # If it fails, then pretend we aren't using GCC.
4414 # If it is relative, then search for the first ld in PATH.
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; }
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4423 $as_echo_n "checking for non-GNU ld... " >&6; }
4425 if ${lt_cv_path_LD+:} false; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -z "$LD"; then
4429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4430 for ac_dir in $PATH; do
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
4443 test "$with_gnu_ld" != yes && break
4450 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4455 if test -n "$LD"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4457 $as_echo "$LD" >&6; }
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
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
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
4474 lt_cv_prog_gnu_ld=no
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
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
4501 if test -z "$CPP"; then
4502 if ${ac_cv_prog_CPP+:} false; then :
4503 $as_echo_n "(cached) " >&6
4505 # Double quotes because CPP needs to be expanded
4506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4509 for ac_c_preproc_warn_flag in '' yes
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. */
4520 # include <limits.h>
4522 # include <assert.h>
4526 if ac_fn_c_try_cpp "$LINENO"; then :
4529 # Broken: fails on valid input.
4532 rm -f conftest.err conftest.i conftest.$ac_ext
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>
4540 if ac_fn_c_try_cpp "$LINENO"; then :
4541 # Broken: success on invalid input.
4544 # Passes both tests.
4548 rm -f conftest.err conftest.i conftest.$ac_ext
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 :
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4566 $as_echo "$CPP" >&6; }
4568 for ac_c_preproc_warn_flag in '' yes
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. */
4579 # include <limits.h>
4581 # include <assert.h>
4585 if ac_fn_c_try_cpp "$LINENO"; then :
4588 # Broken: fails on valid input.
4591 rm -f conftest.err conftest.i conftest.$ac_ext
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>
4599 if ac_fn_c_try_cpp "$LINENO"; then :
4600 # Broken: success on invalid input.
4603 # Passes both tests.
4607 rm -f conftest.err conftest.i conftest.$ac_ext
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 :
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; }
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
4627 for ac_prog in gawk mawk nawk awk
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
4636 if test -n "$AWK"; then
4637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4657 if test -n "$AWK"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4659 $as_echo "$AWK" >&6; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4666 test -n "$AWK" && break
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4671 $as_echo_n "checking whether ln -s works... " >&6; }
4673 if test "$LN_S" = "ln -s"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4675 $as_echo "yes" >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4678 $as_echo "no, using $LN_S" >&6; }
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; }
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
4688 cat >conftest.make <<\_ACEOF
4691 @echo '@@@%%%=$(MAKE)=@@@%%%'
4693 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4694 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4696 eval ac_cv_prog_make_${ac_make}_set=yes;;
4698 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 SET_MAKE="MAKE=${MAKE-make}"
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;} ;;
4721 macro_version='2.4.2'
4722 macro_revision='1.3337'
4736 ltmain="$ac_aux_dir/ltmain.sh"
4738 # Backslashify metacharacters that are still active within
4739 # double-quoted strings.
4740 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4742 # Same as above, but do not quote variable references.
4743 double_quote_subst='s/\(["`\\]\)/\\\1/g'
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'
4749 # Sed substitution to delay expansion of an escaped single quote.
4750 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4752 # Sed substitution to avoid accidental globbing in evaled expressions
4753 no_glob_subst='s/\*/\\\*/g'
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
4760 if test -n "$NM"; then
4761 # Let the user override the test.
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"
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
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"
4785 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4787 lt_cv_path_NM="$tmp_nm -p"
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
4801 : ${lt_cv_path_NM=no}
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
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.
4813 if test -n "$ac_tool_prefix"; then
4814 for ac_prog in dumpbin "link -dump"
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
4823 if test -n "$DUMPBIN"; then
4824 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4853 test -n "$DUMPBIN" && break
4856 if test -z "$DUMPBIN"; then
4857 ac_ct_DUMPBIN=$DUMPBIN
4858 for ac_prog in dumpbin "link -dump"
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
4867 if test -n "$ac_ct_DUMPBIN"; then
4868 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4897 test -n "$ac_ct_DUMPBIN" && break
4900 if test "x$ac_ct_DUMPBIN" = x; then
4903 case $cross_compiling:$ac_tool_warned in
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 ;;
4909 DUMPBIN=$ac_ct_DUMPBIN
4913 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4915 DUMPBIN="$DUMPBIN -symbols"
4923 if test "$DUMPBIN" != ":"; then
4927 test -z "$NM" && NM=nm
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
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"
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4955 $as_echo "$lt_cv_nm_interface" >&6; }
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
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
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;
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;
4994 # On MiNT this can take a long time and run out of memory.
4995 lt_cv_sys_max_cmd_len=8192;
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;
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`
5011 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
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`
5019 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5020 lt_cv_sys_max_cmd_len=196608
5024 # The test takes a long time on OS/2.
5025 lt_cv_sys_max_cmd_len=8192
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
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 ;;
5042 lt_cv_sys_max_cmd_len=102400
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/.*[ ]//'`
5049 lt_cv_sys_max_cmd_len=32768
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`
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
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
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
5072 teststring=$teststring$teststring
5074 # Only check the string length outside the loop.
5075 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
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`
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; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5092 $as_echo "none" >&6; }
5094 max_cmd_len=$lt_cv_sys_max_cmd_len
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
5110 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5112 && eval 'test $(( 1 + 1 )) -eq 2 \
5113 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5116 $as_echo "$xsi_shell" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5120 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5122 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
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; }
5129 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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'
5146 *) # EBCDIC based system
5147 lt_SP2NL='tr \100 \n'
5148 lt_NL2SP='tr \r\n \100\100'
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
5168 *-*-mingw* ) # actually msys
5169 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5172 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5174 * ) # otherwise, assume *nix
5175 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5181 *-*-mingw* ) # actually msys
5182 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5185 lt_cv_to_host_file_cmd=func_convert_file_noop
5187 * ) # otherwise, assume *nix
5188 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5192 * ) # unhandled hosts (and "normal" native builds)
5193 lt_cv_to_host_file_cmd=func_convert_file_noop
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; }
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
5212 #assume ordinary cross tools, or native build.
5213 lt_cv_to_tool_file_cmd=func_convert_file_noop
5217 *-*-mingw* ) # actually msys
5218 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
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; }
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
5239 lt_cv_ld_reload_flag='-r'
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
5246 *) reload_flag=" $reload_flag" ;;
5248 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5250 cygwin* | mingw* | pw32* | cegcc*)
5251 if test "$GCC" != yes; then
5256 if test "$GCC" = yes; then
5257 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5259 reload_cmds='$LD$reload_flag -o $output$reload_objs'
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
5280 if test -n "$OBJDUMP"; then
5281 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
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
5320 if test -n "$ac_ct_OBJDUMP"; then
5321 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5349 if test "x$ac_ct_OBJDUMP" = x; then
5352 case $cross_compiling:$ac_tool_warned in
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 ;;
5358 OBJDUMP=$ac_ct_OBJDUMP
5361 OBJDUMP="$ac_cv_prog_OBJDUMP"
5364 test -z "$OBJDUMP" && OBJDUMP=objdump
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
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.
5392 lt_cv_deplibs_check_method=pass_all
5396 lt_cv_deplibs_check_method=pass_all
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
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'
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'
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'
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'
5432 darwin* | rhapsody*)
5433 lt_cv_deplibs_check_method=pass_all
5436 freebsd* | dragonfly*)
5437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
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.*`
5448 lt_cv_deplibs_check_method=pass_all
5453 lt_cv_deplibs_check_method=pass_all
5457 lt_cv_deplibs_check_method=pass_all
5460 hpux10.20* | hpux11*)
5461 lt_cv_file_magic_cmd=/usr/bin/file
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
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
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
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)$'
5483 irix5* | irix6* | nonstopux*)
5485 *-32|*"-32 ") libmagic=32-bit;;
5486 *-n32|*"-n32 ") libmagic=N32;;
5487 *-64|*"-64 ") libmagic=64-bit;;
5488 *) libmagic=never-match;;
5490 lt_cv_deplibs_check_method=pass_all
5493 # This must be glibc/ELF.
5494 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5495 lt_cv_deplibs_check_method=pass_all
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)$'
5502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
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
5513 lt_cv_deplibs_check_method=pass_all
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)$'
5520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5524 osf3* | osf4* | osf5*)
5525 lt_cv_deplibs_check_method=pass_all
5529 lt_cv_deplibs_check_method=pass_all
5533 lt_cv_deplibs_check_method=pass_all
5536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5537 lt_cv_deplibs_check_method=pass_all
5541 case $host_vendor in
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*`
5547 lt_cv_deplibs_check_method=pass_all
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 )'
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
5559 lt_cv_deplibs_check_method=pass_all
5562 lt_cv_deplibs_check_method=pass_all
5568 lt_cv_deplibs_check_method=pass_all
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5574 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5578 if test "$build" = "$host"; then
5581 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5584 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
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
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
5623 if test -n "$DLLTOOL"; then
5624 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
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
5663 if test -n "$ac_ct_DLLTOOL"; then
5664 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5692 if test "x$ac_ct_DLLTOOL" = x; then
5695 case $cross_compiling:$ac_tool_warned in
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 ;;
5701 DLLTOOL=$ac_ct_DLLTOOL
5704 DLLTOOL="$ac_cv_prog_DLLTOOL"
5707 test -z "$DLLTOOL" && DLLTOOL=dlltool
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
5720 lt_cv_sharedlib_from_linklib_cmd='unknown'
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
5731 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5736 # fallback: assume linklib IS sharedlib
5737 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
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
5754 if test -n "$ac_tool_prefix"; then
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
5764 if test -n "$AR"; then
5765 ac_cv_prog_AR="$AR" # Let the user override the test.
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5785 if test -n "$AR"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5787 $as_echo "$AR" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5794 test -n "$AR" && break
5797 if test -z "$AR"; then
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
5808 if test -n "$ac_ct_AR"; then
5809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5838 test -n "$ac_ct_AR" && break
5841 if test "x$ac_ct_AR" = x; then
5844 case $cross_compiling:$ac_tool_warned in
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 ;;
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
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
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
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
5898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899 test $ac_status = 0; }
5900 if test "$ac_status" -ne 0; then
5904 rm -f conftest.* libconftest.a
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5911 $as_echo "$lt_cv_ar_at_file" >&6; }
5913 if test "x$lt_cv_ar_at_file" = xno; then
5916 archiver_list_spec=$lt_cv_ar_at_file
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
5933 if test -n "$STRIP"; then
5934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5964 if test -z "$ac_cv_prog_STRIP"; then
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
5973 if test -n "$ac_ct_STRIP"; then
5974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6002 if test "x$ac_ct_STRIP" = x; then
6005 case $cross_compiling:$ac_tool_warned in
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 ;;
6014 STRIP="$ac_cv_prog_STRIP"
6017 test -z "$STRIP" && STRIP=:
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
6032 if test -n "$RANLIB"; then
6033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
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
6072 if test -n "$ac_ct_RANLIB"; then
6073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_RANLIB" = x; then
6104 case $cross_compiling:$ac_tool_warned in
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 ;;
6110 RANLIB=$ac_ct_RANLIB
6113 RANLIB="$ac_cv_prog_RANLIB"
6116 test -z "$RANLIB" && RANLIB=:
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=
6128 if test -n "$RANLIB"; then
6131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6134 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6137 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6142 lock_old_archive_extraction=yes ;;
6144 lock_old_archive_extraction=no ;;
6185 # If no C compiler was specified, use CC.
6188 # If no C compiler flags were specified, use CFLAGS.
6189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6191 # Allow CC to be a program name with arguments.
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
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?!! ;)]
6205 # Character class describing NM global symbol codes.
6206 symcode='[BCDEGRST]'
6208 # Regexp to match symbols that can be accessed directly from C.
6209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6211 # Define system-specific variables.
6216 cygwin* | mingw* | pw32* | cegcc*)
6217 symcode='[ABCDGISTW]'
6220 if test "$host_cpu" = ia64; then
6221 symcode='[ABCDEGRST]'
6225 symcode='[BCDEGRST]'
6228 symcode='[BCDEGQRST]'
6239 sysv5* | sco5v6* | unixware* | OpenUNIX*)
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]' ;;
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'"
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'"
6262 # Handle CRLF in mingw tool chain
6266 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6270 # Try without a prefix underscore, then with it.
6271 for ac_symprfx in "" "_"; do
6273 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6274 symxfrm="\\1 $ac_symprfx\\2 \\2"
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"
6295 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6297 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6299 # Check to see that the pipe works correctly.
6303 cat > conftest.$ac_ext <<_LT_EOF
6308 void nm_test_func(void);
6309 void nm_test_func(void){}
6313 int main(){nm_test_var='a';nm_test_func();return(0);}
6316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6317 (eval $ac_compile) 2>&5
6319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320 test $ac_status = 0; }; then
6321 # Now try to grab the symbols.
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
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"
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
6348 # define LT_DLSYM_CONST const
6356 # Now generate the symbol file.
6357 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6359 cat <<_LT_EOF >> conftest.$ac_ext
6361 /* The mapping between symbol names and symbols. */
6362 LT_DLSYM_CONST struct {
6366 lt__PROGRAM__LTX_preloaded_symbols[] =
6368 { "@PROGRAM@", (void *) 0 },
6370 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6371 cat <<\_LT_EOF >> conftest.$ac_ext
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;
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
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6399 LIBS=$lt_globsym_save_LIBS
6400 CFLAGS=$lt_globsym_save_CFLAGS
6402 echo "cannot find nm_test_func in $nlist" >&5
6405 echo "cannot find nm_test_var in $nlist" >&5
6408 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6411 echo "$progname: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 rm -rf conftest* conftst*
6416 # Do not use the global_symbol_pipe unless it works.
6417 if test "$pipe_works" = yes; then
6420 lt_cv_sys_global_symbol_pipe=
6426 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6427 lt_cv_sys_global_symbol_to_cdecl=
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; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6434 $as_echo "ok" >&6; }
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='@'
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6471 $as_echo_n "checking for sysroot... " >&6; }
6473 # Check whether --with-sysroot was given.
6474 if test "${with_sysroot+set}" = set; then :
6475 withval=$with_sysroot;
6482 case ${with_sysroot} in #(
6484 if test "$GCC" = yes; then
6485 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6489 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
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
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6501 $as_echo "${lt_sysroot:-no}" >&6; }
6507 # Check whether --enable-libtool-lock was given.
6508 if test "${enable_libtool_lock+set}" = set; then :
6509 enableval=$enable_libtool_lock;
6512 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6514 # Some flags need to be propagated to the compiler or linker for good
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
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
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
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
6547 LD="${LD-ld} -melf32bsmip"
6550 LD="${LD-ld} -melf32bmipn32"
6553 LD="${LD-ld} -melf64bmip"
6557 case `/usr/bin/file conftest.$ac_objext` in
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
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
6585 x86_64-*kfreebsd*-gnu)
6586 LD="${LD-ld} -m elf_i386_fbsd"
6589 LD="${LD-ld} -m elf_i386"
6591 ppc64-*linux*|powerpc64-*linux*)
6592 LD="${LD-ld} -m elf32ppclinux"
6595 LD="${LD-ld} -m elf_s390"
6598 LD="${LD-ld} -m elf32_sparc"
6604 x86_64-*kfreebsd*-gnu)
6605 LD="${LD-ld} -m elf_x86_64_fbsd"
6608 LD="${LD-ld} -m elf_x86_64"
6610 ppc*-*linux*|powerpc*-*linux*)
6611 LD="${LD-ld} -m elf64ppc"
6613 s390*-*linux*|s390*-*tpf*)
6614 LD="${LD-ld} -m elf64_s390"
6617 LD="${LD-ld} -m elf64_sparc"
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
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
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6652 if ac_fn_c_try_link "$LINENO"; then :
6653 lt_cv_cc_needs_belf=yes
6655 lt_cv_cc_needs_belf=no
6657 rm -f core conftest.err conftest.$ac_objext \
6658 conftest$ac_exeext conftest.$ac_ext
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
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"
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
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
6683 case $lt_cv_prog_gnu_ld in
6687 LD="${LD-ld} -m elf_x86_64"
6690 LD="${LD-ld} -m elf64_sparc"
6693 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6694 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6699 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6711 need_locks="$enable_libtool_lock"
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
6721 if test -n "$MANIFEST_TOOL"; then
6722 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
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
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.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6790 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6793 case $cross_compiling:$ac_tool_warned in
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 ;;
6799 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6802 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
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
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
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
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
6841 if test -n "$DSYMUTIL"; then
6842 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
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
6881 if test -n "$ac_ct_DSYMUTIL"; then
6882 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6910 if test "x$ac_ct_DSYMUTIL" = x; then
6913 case $cross_compiling:$ac_tool_warned in
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 ;;
6919 DSYMUTIL=$ac_ct_DSYMUTIL
6922 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
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
6933 if test -n "$NMEDIT"; then
6934 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
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
6973 if test -n "$ac_ct_NMEDIT"; then
6974 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7002 if test "x$ac_ct_NMEDIT" = x; then
7005 case $cross_compiling:$ac_tool_warned in
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 ;;
7011 NMEDIT=$ac_ct_NMEDIT
7014 NMEDIT="$ac_cv_prog_NMEDIT"
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
7025 if test -n "$LIPO"; then
7026 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7056 if test -z "$ac_cv_prog_LIPO"; then
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
7065 if test -n "$ac_ct_LIPO"; then
7066 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7094 if test "x$ac_ct_LIPO" = x; then
7097 case $cross_compiling:$ac_tool_warned in
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 ;;
7106 LIPO="$ac_cv_prog_LIPO"
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
7117 if test -n "$OTOOL"; then
7118 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7148 if test -z "$ac_cv_prog_OTOOL"; then
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
7157 if test -n "$ac_ct_OTOOL"; then
7158 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7186 if test "x$ac_ct_OTOOL" = x; then
7189 case $cross_compiling:$ac_tool_warned in
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 ;;
7198 OTOOL="$ac_cv_prog_OTOOL"
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
7209 if test -n "$OTOOL64"; then
7210 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
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
7249 if test -n "$ac_ct_OTOOL64"; then
7250 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7278 if test "x$ac_ct_OTOOL64" = x; then
7281 case $cross_compiling:$ac_tool_warned in
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 ;;
7287 OTOOL64=$ac_ct_OTOOL64
7290 OTOOL64="$ac_cv_prog_OTOOL64"
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
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
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
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
7346 cat conftest.err >&5
7348 rm -rf libconftest.dylib*
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; }
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
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. */
7375 if ac_fn_c_try_link "$LINENO"; then :
7376 lt_cv_ld_exported_symbols_list=yes
7378 lt_cv_ld_exported_symbols_list=no
7380 rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
7382 LDFLAGS="$save_LDFLAGS"
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; }
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
7393 lt_cv_ld_force_load=no
7394 cat > conftest.c << _LT_EOF
7395 int forced_loaded() { return 2;}
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;}
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
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
7414 cat conftest.err >&5
7416 rm -f conftest.err libconftest.a conftest conftest.c
7417 rm -rf conftest.dSYM
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7421 $as_echo "$lt_cv_ld_force_load" >&6; }
7423 rhapsody* | darwin1.[012])
7424 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
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' ;;
7435 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7437 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7441 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7442 _lt_dar_single_mod='$single_module'
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'
7447 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7449 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7450 _lt_dsymutil='~$DSYMUTIL $lib || :'
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
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479 ac_cv_header_stdc=yes
7481 ac_cv_header_stdc=no
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
7492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7493 $EGREP "memchr" >/dev/null 2>&1; then :
7496 ac_cv_header_stdc=no
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. */
7509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7510 $EGREP "free" >/dev/null 2>&1; then :
7513 ac_cv_header_stdc=no
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 :
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7528 #if ((' ' & 0x0FF) == 0x020)
7529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
7539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7544 for (i = 0; i < 256; i++)
7545 if (XOR (islower (i), ISLOWER (i))
7546 || toupper (i) != TOUPPER (i))
7551 if ac_fn_c_try_run "$LINENO"; then :
7554 ac_cv_header_stdc=no
7556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7557 conftest.$ac_objext conftest.beam conftest.$ac_ext
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
7566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
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
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
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
7587 for ac_header in dlfcn.h
7589 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7591 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7592 cat >>confdefs.h <<_ACEOF
7593 #define HAVE_DLFCN_H 1
7605 enable_win32_dll=yes
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
7617 if test -n "$AS"; then
7618 ac_cv_prog_AS="$AS" # Let the user override the test.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
7638 if test -n "$AS"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7640 $as_echo "$AS" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7648 if test -z "$ac_cv_prog_AS"; then
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
7657 if test -n "$ac_ct_AS"; then
7658 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7686 if test "x$ac_ct_AS" = x; then
7689 case $cross_compiling:$ac_tool_warned in
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 ;;
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
7709 if test -n "$DLLTOOL"; then
7710 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
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
7749 if test -n "$ac_ct_DLLTOOL"; then
7750 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7778 if test "x$ac_ct_DLLTOOL" = x; then
7781 case $cross_compiling:$ac_tool_warned in
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 ;;
7787 DLLTOOL=$ac_ct_DLLTOOL
7790 DLLTOOL="$ac_cv_prog_DLLTOOL"
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
7801 if test -n "$OBJDUMP"; then
7802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
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
7841 if test -n "$ac_ct_OBJDUMP"; then
7842 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7870 if test "x$ac_ct_OBJDUMP" = x; then
7873 case $cross_compiling:$ac_tool_warned in
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 ;;
7879 OBJDUMP=$ac_ct_OBJDUMP
7882 OBJDUMP="$ac_cv_prog_OBJDUMP"
7888 test -z "$AS" && AS=as
7894 test -z "$DLLTOOL" && DLLTOOL=dlltool
7900 test -z "$OBJDUMP" && OBJDUMP=objdump
7912 # Check whether --enable-shared was given.
7913 if test "${enable_shared+set}" = set; then :
7914 enableval=$enable_shared; p=${PACKAGE-default}
7916 yes) enable_shared=yes ;;
7917 no) 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
7924 if test "X$pkg" = "X$p"; then
7943 # Check whether --enable-static was given.
7944 if test "${enable_static+set}" = set; then :
7945 enableval=$enable_static; p=${PACKAGE-default}
7947 yes) enable_static=yes ;;
7948 no) 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
7955 if test "X$pkg" = "X$p"; then
7975 # Check whether --with-pic was given.
7976 if test "${with_pic+set}" = set; then :
7977 withval=$with_pic; lt_p=${PACKAGE-default}
7979 yes|no) pic_mode=$withval ;;
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
7986 if test "X$lt_pkg" = "X$lt_p"; then
7998 test -z "$pic_mode" && pic_mode=default
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}
8010 yes) enable_fast_install=yes ;;
8011 no) enable_fast_install=no ;;
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
8018 if test "X$pkg" = "X$p"; then
8019 enable_fast_install=yes
8026 enable_fast_install=yes
8039 # This can be used to rebuild libtool when needed
8040 LIBTOOL_DEPS="$ltmain"
8042 # Always use our own libtool.
8043 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8074 test -z "$LN_S" && LN_S="ln -s"
8089 if test -n "${ZSH_VERSION+set}" ; then
8090 setopt NO_GLOB_SUBST
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
8098 rm -f .libs 2>/dev/null
8099 mkdir .libs 2>/dev/null
8100 if test -d .libs; then
8103 # MS-DOS does not allow filenames that begin with a dot.
8106 rmdir .libs 2>/dev/null
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
8116 cat >>confdefs.h <<_ACEOF
8117 #define LT_OBJDIR "$lt_cv_objdir/"
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
8130 export COLLECT_NAMES
8137 can_build_shared=yes
8139 # All known linkers require a `.a' archive for static linking (except MSVC,
8140 # which needs '.lib').
8143 with_gnu_ld="$lt_cv_prog_gnu_ld"
8146 old_CFLAGS="$CFLAGS"
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
8155 for cc_temp in $compiler""; do
8157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8163 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
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
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
8178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
8217 MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
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
8244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
8283 MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8307 # Use C for the default configuration in the libtool script
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
8317 # Source file extension for C test sources.
8320 # Object file extension for compiled C test sources.
8324 # Code to be used in simple compile tests
8325 lt_simple_compile_test_code="int some_variable = 0;"
8327 # Code to be used in simple link tests
8328 lt_simple_link_test_code='int main(){return(0);}'
8336 # If no C compiler was specified, use CC.
8339 # If no C compiler flags were specified, use CFLAGS.
8340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8342 # Allow CC to be a program name with arguments.
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
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`
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`
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
8369 lt_prog_compiler_no_builtin_flag=
8371 if test "$GCC" = yes; then
8372 case $cc_basename in
8374 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8376 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
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
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)
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
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; }
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"
8430 lt_prog_compiler_wl=
8431 lt_prog_compiler_pic=
8432 lt_prog_compiler_static=
8435 if test "$GCC" = yes; then
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_static='-static'
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'
8451 # see comment about AmigaOS4 .so support
8452 lt_prog_compiler_pic='-fPIC'
8455 # FIXME: we need at least 68020 code to build shared libraries, but
8456 # adding the `-m68020' flag to GCC prevents building anything better,
8458 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8463 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8464 # PIC is the default for these OSes.
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'
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'
8482 # PIC is the default for Haiku.
8483 # The "-static" flag exists, but is broken.
8484 lt_prog_compiler_static=
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.
8496 lt_prog_compiler_pic='-fPIC'
8502 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8503 # Instead, we relocate shared libraries at runtime.
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
8514 # QNX uses GNU C++, but need to define -shared option too, otherwise
8516 lt_prog_compiler_pic='-fPIC -shared'
8520 if test -d /usr/nec; then
8521 lt_prog_compiler_pic=-Kconform_pic
8526 lt_prog_compiler_pic='-fPIC'
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"
8539 # PORTME Check for flag to pass linker flags through the system compiler.
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'
8547 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
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'
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
8566 lt_prog_compiler_pic='+Z'
8569 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8570 lt_prog_compiler_static='${wl}-a ${wl}archive'
8573 irix5* | irix6* | nonstopux*)
8574 lt_prog_compiler_wl='-Wl,'
8575 # PIC (with -KPIC) is the default.
8576 lt_prog_compiler_static='-non_shared'
8579 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8580 case $cc_basename in
8581 # old Intel for x86_64 which still supported -KPIC.
8583 lt_prog_compiler_wl='-Wl,'
8584 lt_prog_compiler_pic='-KPIC'
8585 lt_prog_compiler_static='-static'
8587 # icc used to be incompatible with GCC.
8588 # ICC 10 doesn't accept -KPIC any more.
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-fPIC'
8592 lt_prog_compiler_static='-static'
8594 # Lahey Fortran 8.1.
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='--shared'
8598 lt_prog_compiler_static='--static'
8601 # NAG Fortran compiler
8602 lt_prog_compiler_wl='-Wl,-Wl,,'
8603 lt_prog_compiler_pic='-PIC'
8604 lt_prog_compiler_static='-Bstatic'
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'
8614 lt_prog_compiler_wl='-Wl,'
8615 # All Alpha code is PIC.
8616 lt_prog_compiler_static='-non_shared'
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'
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=''
8632 *Sun\ F* | *Sun*Fortran*)
8633 lt_prog_compiler_pic='-KPIC'
8634 lt_prog_compiler_static='-Bstatic'
8635 lt_prog_compiler_wl='-Qoption ld '
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 lt_prog_compiler_wl='-Wl,'
8643 *Intel*\ [CF]*Compiler*)
8644 lt_prog_compiler_wl='-Wl,'
8645 lt_prog_compiler_pic='-fPIC'
8646 lt_prog_compiler_static='-static'
8649 lt_prog_compiler_wl='-Wl,'
8650 lt_prog_compiler_pic='-fpic'
8651 lt_prog_compiler_static='-Bstatic'
8659 lt_prog_compiler_pic='-KPIC'
8660 lt_prog_compiler_static='-Bstatic'
8664 # QNX uses GNU C++, but need to define -shared option too, otherwise
8666 lt_prog_compiler_pic='-fPIC -shared'
8669 osf3* | osf4* | osf5*)
8670 lt_prog_compiler_wl='-Wl,'
8671 # All OSF/1 code is PIC.
8672 lt_prog_compiler_static='-non_shared'
8676 lt_prog_compiler_static='-non_shared'
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 ';;
8686 lt_prog_compiler_wl='-Wl,';;
8691 lt_prog_compiler_wl='-Qoption ld '
8692 lt_prog_compiler_pic='-PIC'
8693 lt_prog_compiler_static='-Bstatic'
8696 sysv4 | sysv4.2uw2* | sysv4.3*)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-Bstatic'
8703 if test -d /usr/nec ;then
8704 lt_prog_compiler_pic='-Kconform_pic'
8705 lt_prog_compiler_static='-Bstatic'
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'
8716 lt_prog_compiler_wl='-Wl,'
8717 lt_prog_compiler_can_build_shared=no
8721 lt_prog_compiler_pic='-pic'
8722 lt_prog_compiler_static='-Bstatic'
8726 lt_prog_compiler_can_build_shared=no
8732 # For platforms which do not support PIC, -DPIC is meaningless:
8734 lt_prog_compiler_pic=
8737 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
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
8746 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
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
8753 # Check to make sure the PIC flag actually works.
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
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)
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
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; }
8794 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8795 case $lt_prog_compiler_pic in
8797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8800 lt_prog_compiler_pic=
8801 lt_prog_compiler_can_build_shared=no
8817 # Check to make sure the static flag actually works.
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
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
8841 lt_cv_prog_compiler_static_works=yes
8845 LDFLAGS="$save_LDFLAGS"
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; }
8851 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8854 lt_prog_compiler_static=
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
8868 lt_cv_prog_compiler_c_o=no
8869 $RM -r conftest 2>/dev/null
8873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
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; }
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
8923 lt_cv_prog_compiler_c_o=no
8924 $RM -r conftest 2>/dev/null
8928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
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; }
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; }
8978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
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;}
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; }
9002 allow_undefined_flag=
9003 always_export_symbols=no
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
9012 hardcode_direct_absolute=no
9013 hardcode_libdir_flag_spec=
9014 hardcode_libdir_separator=
9016 hardcode_shlibpath_var=unsupported
9018 link_all_deplibs=unknown
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
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=
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
9051 # we just hope/assume this is gcc and not c89 (= MSVC++)
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
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]*) ;;
9076 lt_use_gnu_ld_interface=yes
9081 lt_use_gnu_ld_interface=yes
9086 if test "$lt_use_gnu_ld_interface" = yes; then
9087 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
9100 whole_archive_flag_spec=
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 ;;
9112 # See if GNU ld supports shared libraries.
9115 # On AIX/PPC, the GNU linker is very broken
9116 if test "$host_cpu" != ia64; then
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.
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=''
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
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'
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'
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;
9175 echo EXPORTS > $output_objdir/$soname.def;
9176 cat $export_symbols >> $output_objdir/$soname.def;
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'
9185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186 link_all_deplibs=yes
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'
9204 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
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)
9211 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9212 && test "$tmp_diet" = no
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'
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'
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
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' ;;
9250 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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'
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'
9279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9280 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
9289 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
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.
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'
9309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9310 case `$LD -v 2>&1` in
9311 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
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.
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'
9341 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_shlibpath_var=no
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'
9357 if test "$ld_shlibs" = no; then
9359 hardcode_libdir_flag_spec=
9360 export_dynamic_flag_spec=
9361 whole_archive_flag_spec=
9364 # PORTME fill in a description of your system's linker (not GNU ld)
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
9376 hardcode_direct=unsupported
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'
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'
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'
9397 aix_use_runtimelinking=no
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
9412 exp_sym_flag='-bexport'
9413 no_entry_flag='-bnoentry'
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.
9424 hardcode_direct_absolute=yes
9425 hardcode_libdir_separator=':'
9426 link_all_deplibs=yes
9427 file_list_spec='${wl}-f,'
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
9437 # We have reworked collect2
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=
9451 shared_flag='-shared'
9452 if test "$aix_use_runtimelinking" = yes; then
9453 shared_flag="$shared_flag "'${wl}-G'
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:
9462 if test "$aix_use_runtimelinking" = yes; then
9463 shared_flag='${wl}-G'
9465 shared_flag='${wl}-bM:SRE'
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
9480 if test "${lt_cv_aix_libpath+set}" = set; then
9481 aix_libpath=$lt_cv_aix_libpath
9483 if ${lt_cv_aix_libpath_+:} false; then :
9484 $as_echo_n "(cached) " >&6
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9497 if ac_fn_c_try_link "$LINENO"; then :
9499 lt_aix_libpath_sed='
9500 /Import File Strings/,/^$/ {
9502 s/^0 *\([^ ]*\) *$/\1/
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"`
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"
9520 aix_libpath=$lt_cv_aix_libpath_
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"
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"
9531 # Determine the default libpath from the value encoded in an
9533 if test "${lt_cv_aix_libpath+set}" = set; then
9534 aix_libpath=$lt_cv_aix_libpath
9536 if ${lt_cv_aix_libpath_+:} false; then :
9537 $as_echo_n "(cached) " >&6
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9550 if ac_fn_c_try_link "$LINENO"; then :
9552 lt_aix_libpath_sed='
9553 /Import File Strings/,/^$/ {
9555 s/^0 *\([^ ]*\) *$/\1/
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"`
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"
9573 aix_libpath=$lt_cv_aix_libpath_
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'
9585 # Exported symbols can be pulled into shared objects from archives
9586 whole_archive_flag_spec='$convenience'
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'
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=''
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
9611 export_dynamic_flag_spec=-rdynamic
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
9622 hardcode_libdir_flag_spec=' '
9623 allow_undefined_flag=unsupported
9624 always_export_symbols=yes
9626 # Tell ltmain to make .lib files, not .a files.
9628 # Tell ltmain to make .dll files, not .so files.
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;
9635 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
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"~
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'
9645 old_postinstall_cmds='chmod 644 $oldlib'
9646 postlink_cmds='lt_outputfile="@OUTPUT@"~
9647 lt_tool_outputfile="@TOOL_OUTPUT@"~
9648 case $lt_outputfile in
9651 lt_outputfile="$lt_outputfile.exe"
9652 lt_tool_outputfile="$lt_tool_outputfile.exe"
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";
9661 # Assume MSVC wrapper
9662 hardcode_libdir_flag_spec=' '
9663 allow_undefined_flag=unsupported
9664 # Tell ltmain to make .lib files, not .a files.
9666 # Tell ltmain to make .dll files, not .so files.
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
9679 darwin* | rhapsody*)
9682 archive_cmds_need_lc=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\"`'
9690 whole_archive_flag_spec=''
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 ;;
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}"
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
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
9722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9723 hardcode_libdir_flag_spec='-R$libdir'
9725 hardcode_shlibpath_var=no
9728 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_minus_L=yes
9733 hardcode_shlibpath_var=no
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'
9741 hardcode_shlibpath_var=no
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'
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'
9750 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9751 hardcode_libdir_separator=:
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'
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'
9764 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9766 if test "$with_gnu_ld" = no; then
9767 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9768 hardcode_libdir_separator=:
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
9779 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9782 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9788 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9794 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
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
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
9824 lt_cv_prog_compiler__b=yes
9828 LDFLAGS="$save_LDFLAGS"
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9832 $as_echo "$lt_cv_prog_compiler__b" >&6; }
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'
9837 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9843 if test "$with_gnu_ld" = no; then
9844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9845 hardcode_libdir_separator=:
9850 hardcode_shlibpath_var=no
9854 hardcode_direct_absolute=yes
9855 export_dynamic_flag_spec='${wl}-E'
9857 # hardcode_minus_L: Not really in the search PATH,
9858 # but as the default location of the library.
9859 hardcode_minus_L=yes
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
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; }
9883 if ac_fn_c_try_link "$LINENO"; then :
9884 lt_cv_irix_exported_symbol=yes
9886 lt_cv_irix_exported_symbol=no
9888 rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 LDFLAGS="$save_LDFLAGS"
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'
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'
9901 archive_cmds_need_lc='no'
9902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9903 hardcode_libdir_separator=:
9905 link_all_deplibs=yes
9909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9912 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9914 hardcode_libdir_flag_spec='-R$libdir'
9916 hardcode_shlibpath_var=no
9920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9923 hardcode_libdir_separator=:
9924 hardcode_shlibpath_var=no
9931 if test -f /usr/libexec/ld.so; then
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'
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'
9947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9948 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
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'
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'
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'
9973 archive_cmds_need_lc='no'
9974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9975 hardcode_libdir_separator=:
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'
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'
9989 # Both c and cxx compiler support -rpath directly
9990 hardcode_libdir_flag_spec='-rpath $libdir'
9992 archive_cmds_need_lc='no'
9993 hardcode_libdir_separator=:
9997 no_undefined_flag=' -z defs'
9998 if test "$GCC" = yes; then
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'
10004 case `$CC -V 2>&1` in
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'
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'
10019 hardcode_libdir_flag_spec='-R$libdir'
10020 hardcode_shlibpath_var=no
10022 solaris2.[0-5] | solaris2.[0-5].*) ;;
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'
10031 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10035 link_all_deplibs=yes
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'
10044 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10046 hardcode_libdir_flag_spec='-L$libdir'
10047 hardcode_direct=yes
10048 hardcode_minus_L=yes
10049 hardcode_shlibpath_var=no
10053 case $host_vendor in
10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_direct=yes # is this really true???
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'
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
10070 runpath_var='LD_RUN_PATH'
10071 hardcode_shlibpath_var=no
10075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076 hardcode_shlibpath_var=no
10077 export_dynamic_flag_spec='-Bexport'
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
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'
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'
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'
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
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'
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'
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'
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
10142 if test x$host_vendor = xsni; then
10144 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10145 export_dynamic_flag_spec='${wl}-Blargedynsym'
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
10155 with_gnu_ld=$with_gnu_ld
10172 # Do we need to explicitly link libc?
10174 case "x$archive_cmds_need_lc" in
10176 # Assume -lc should be added
10177 archive_cmds_need_lc=yes
10179 if test "$enable_shared" = yes && test "$GCC" = yes; then
10180 case $archive_cmds in
10182 # FIXME: we may have to deal with multi-command sequences.
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
10194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10197 (eval $ac_compile) 2>&5
10199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200 test $ac_status = 0; } 2>conftest.err; then
10203 libobjs=conftest.$ac_objext
10205 wl=$lt_prog_compiler_wl
10206 pic_flag=$lt_prog_compiler_pic
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
10217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10218 test $ac_status = 0; }
10220 lt_cv_archive_cmds_need_lc=no
10222 lt_cv_archive_cmds_need_lc=yes
10224 allow_undefined_flag=$lt_save_allow_undefined_flag
10226 cat conftest.err 1>&5
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
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10392 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10394 if test "$GCC" = yes; then
10396 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10397 *) lt_awk_arg="/^libraries:/" ;;
10400 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10401 *) lt_sed_strip_eq="s,=/,/,g" ;;
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
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'`
10413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
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"
10424 test -d "$lt_sys_path" && \
10425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10428 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10429 BEGIN {RS=" "; FS="/|\n";} {
10432 for (lt_i = NF; lt_i > 0; lt_i--) {
10433 if ($lt_i != "" && $lt_i != ".") {
10434 if ($lt_i == "..") {
10437 if (lt_count == 0) {
10438 lt_foo="/" $lt_i lt_foo;
10445 if (lt_foo != "") { lt_freq[lt_foo]++; }
10446 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10448 # AWK program above erroneously prepends '/' to C:/dos/paths
10451 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10452 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10454 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10458 library_names_spec=
10459 libname_spec='lib$name'
10463 postuninstall_cmds=
10467 shlibpath_overrides_runpath=unknown
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
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
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
10484 # AIX 3 has no versioning support, so we append a major version to the name.
10485 soname_spec='${libname}${release}${shared_ext}$major'
10489 version_type=linux # correct to gnu/linux during the next big refactor
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
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.
10504 aix4 | aix4.[01] | aix4.[01].*)
10505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10507 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10510 can_build_shared=no
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}'
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'
10528 shlibpath_var=LIBPATH
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}'
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'
10548 library_names_spec='${libname}${shared_ext}'
10549 dynamic_linker="$host_os ld.so"
10550 shlibpath_var=LIBRARY_PATH
10554 version_type=linux # correct to gnu/linux during the next big refactor
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
10567 cygwin* | mingw* | pw32* | cegcc*)
10568 version_type=windows
10573 case $GCC,$cc_basename in
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 \$?;
10587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10588 dlpath=$dir/\$dldll~
10590 shlibpath_overrides_runpath=yes
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}'
10597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10600 # MinGW DLLs use traditional 'lib' prefix
10601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
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}'
10608 dynamic_linker='Win32 ld.exe'
10613 libname_spec='$name'
10614 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10615 library_names_spec='${libname}.dll.lib'
10619 sys_lib_search_path_spec=
10622 for lt_path in $LIB
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"
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|^ ||'`
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"`
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'`
10647 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10649 # FIXME: find the short name or the path components, as spaces are
10650 # common. (e.g. "Program Files" -> "PROGRA~1")
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~
10663 shlibpath_overrides_runpath=yes
10664 dynamic_linker='Win32 link.exe'
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'
10673 # FIXME: first we should search . and the directory the executable is in
10677 darwin* | rhapsody*)
10678 dynamic_linker="$host_os dyld"
10679 version_type=darwin
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`'
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'
10693 version_type=linux # correct to gnu/linux during the next big refactor
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
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`
10708 freebsd[23].*) objformat=aout ;;
10709 *) objformat=elf ;;
10712 version_type=freebsd-$objformat
10713 case $version_type in
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10724 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=yes
10729 freebsd3.[01]* | freebsdelf3.[01]*)
10730 shlibpath_overrides_runpath=yes
10731 hardcode_into_libs=yes
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
10738 *) # from 4.6 on, and DragonFly
10739 shlibpath_overrides_runpath=yes
10740 hardcode_into_libs=yes
10746 version_type=linux # correct to gnu/linux during the next big refactor
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
10757 version_type=linux # correct to gnu/linux during the next big refactor
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
10769 hpux9* | hpux10* | hpux11*)
10770 # Give a soname corresponding to the major version so that dld.sl refuses to
10771 # link against other versions.
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"
10787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
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
10818 version_type=linux # correct to gnu/linux during the next big refactor
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
10829 irix5* | irix6* | nonstopux*)
10831 nonstopux*) version_type=nonstopux ;;
10833 if test "$lt_cv_prog_gnu_ld" = yes; then
10834 version_type=linux # correct to gnu/linux during the next big refactor
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}'
10844 irix5* | nonstopux*)
10845 libsuff= shlibsuff=
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;;
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
10866 # No shared lib support for Linux oldld, aout, or coff.
10867 linux*oldld* | linux*aout* | linux*coff*)
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
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
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
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. */
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
10907 rm -f core conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10909 LDFLAGS=$save_LDFLAGS
10910 libdir=$save_libdir
10914 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
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
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"
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'
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'
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'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=yes
10951 hardcode_into_libs=yes
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
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'
10975 sys_lib_dlsearch_path_spec="/usr/lib"
10977 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10979 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10980 *) need_version=no ;;
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
10987 openbsd2.[89] | openbsd2.[89].*)
10988 shlibpath_overrides_runpath=no
10991 shlibpath_overrides_runpath=yes
10995 shlibpath_overrides_runpath=yes
11000 libname_spec='$name'
11003 library_names_spec='$libname${shared_ext} $libname.a'
11004 dynamic_linker='OS/2 ld.exe'
11005 shlibpath_var=LIBPATH
11008 osf3* | osf4* | osf5*)
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"
11024 version_type=linux # correct to gnu/linux during the next big refactor
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'
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
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
11055 shlibpath_overrides_runpath=no
11057 runpath_var=LD_RUN_PATH
11065 shlibpath_overrides_runpath=no
11066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
11080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11081 version_type=freebsd-elf
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'
11092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11099 sys_lib_dlsearch_path_spec='/usr/lib'
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
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
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
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
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"
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"
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"
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; }
11234 if test -n "$hardcode_libdir_flag_spec" ||
11235 test -n "$runpath_var" ||
11236 test "X$hardcode_automatic" = "Xyes" ; then
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
11248 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11249 hardcode_action=immediate
11252 # We cannot hardcode anything, or else we can only hardcode existing
11254 hardcode_action=unsupported
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11257 $as_echo "$hardcode_action" >&6; }
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
11274 if test "x$enable_dlopen" != xyes; then
11275 enable_dlopen=unknown
11276 enable_dlopen_self=unknown
11277 enable_dlopen_self_static=unknown
11284 lt_cv_dlopen="load_add_on"
11286 lt_cv_dlopen_self=yes
11289 mingw* | pw32* | cegcc*)
11290 lt_cv_dlopen="LoadLibrary"
11295 lt_cv_dlopen="dlopen"
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
11306 ac_check_lib_save_LIBS=$LIBS
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
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. */
11326 if ac_fn_c_try_link "$LINENO"; then :
11327 ac_cv_lib_dl_dlopen=yes
11329 ac_cv_lib_dl_dlopen=no
11331 rm -f core conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11333 LIBS=$ac_check_lib_save_LIBS
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"
11341 lt_cv_dlopen="dyld"
11343 lt_cv_dlopen_self=yes
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"
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
11359 ac_check_lib_save_LIBS=$LIBS
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
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. */
11374 return shl_load ();
11379 if ac_fn_c_try_link "$LINENO"; then :
11380 ac_cv_lib_dld_shl_load=yes
11382 ac_cv_lib_dld_shl_load=no
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11386 LIBS=$ac_check_lib_save_LIBS
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"
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"
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
11402 ac_check_lib_save_LIBS=$LIBS
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
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. */
11422 if ac_fn_c_try_link "$LINENO"; then :
11423 ac_cv_lib_dl_dlopen=yes
11425 ac_cv_lib_dl_dlopen=no
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
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"
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
11441 ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-lsvld $LIBS"
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
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. */
11461 if ac_fn_c_try_link "$LINENO"; then :
11462 ac_cv_lib_svld_dlopen=yes
11464 ac_cv_lib_svld_dlopen=no
11466 rm -f core conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
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"
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
11480 ac_check_lib_save_LIBS=$LIBS
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
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. */
11495 return dld_link ();
11500 if ac_fn_c_try_link "$LINENO"; then :
11501 ac_cv_lib_dld_dld_link=yes
11503 ac_cv_lib_dld_dld_link=no
11505 rm -f core conftest.err conftest.$ac_objext \
11506 conftest$ac_exeext conftest.$ac_ext
11507 LIBS=$ac_check_lib_save_LIBS
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"
11533 if test "x$lt_cv_dlopen" != xno; then
11539 case $lt_cv_dlopen in
11541 save_CPPFLAGS="$CPPFLAGS"
11542 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11544 save_LDFLAGS="$LDFLAGS"
11545 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11548 LIBS="$lt_cv_dlopen_libs $LIBS"
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
11555 if test "$cross_compiling" = yes; then :
11556 lt_cv_dlopen_self=cross
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"
11571 # define LT_DLGLOBAL RTLD_GLOBAL
11574 # define LT_DLGLOBAL DL_GLOBAL
11576 # define LT_DLGLOBAL 0
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
11584 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11587 # define LT_DLLAZY_OR_NOW DL_LAZY
11590 # define LT_DLLAZY_OR_NOW RTLD_NOW
11593 # define LT_DLLAZY_OR_NOW DL_NOW
11595 # define LT_DLLAZY_OR_NOW 0
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")));
11608 int fnord () { return 42; }
11611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11612 int status = $lt_dlunknown;
11616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11619 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11620 else puts (dlerror ());
11622 /* dlclose (self); */
11630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11631 (eval $ac_link) 2>&5
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
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 ;;
11643 # compilation failed
11644 lt_cv_dlopen_self=no
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11652 $as_echo "$lt_cv_dlopen_self" >&6; }
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
11661 if test "$cross_compiling" = yes; then :
11662 lt_cv_dlopen_self_static=cross
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"
11677 # define LT_DLGLOBAL RTLD_GLOBAL
11680 # define LT_DLGLOBAL DL_GLOBAL
11682 # define LT_DLGLOBAL 0
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
11690 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11693 # define LT_DLLAZY_OR_NOW DL_LAZY
11696 # define LT_DLLAZY_OR_NOW RTLD_NOW
11699 # define LT_DLLAZY_OR_NOW DL_NOW
11701 # define LT_DLLAZY_OR_NOW 0
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")));
11714 int fnord () { return 42; }
11717 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11718 int status = $lt_dlunknown;
11722 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11725 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11726 else puts (dlerror ());
11728 /* dlclose (self); */
11736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11737 (eval $ac_link) 2>&5
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
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 ;;
11749 # compilation failed
11750 lt_cv_dlopen_self_static=no
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11758 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11761 CPPFLAGS="$save_CPPFLAGS"
11762 LDFLAGS="$save_LDFLAGS"
11767 case $lt_cv_dlopen_self in
11768 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11769 *) enable_dlopen_self=unknown ;;
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 ;;
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; }
11804 # FIXME - insert some real tests, host_os isn't really good enough
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; }
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
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; }
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
11845 # On AIX, shared libraries and static libraries use the same namespace, and
11846 # are all built from PIC.
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'
11857 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11858 test "$enable_shared" = yes && enable_static=no
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11863 $as_echo "$enable_shared" >&6; }
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; }
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
11898 ac_config_commands="$ac_config_commands libtool"
11903 # Only expand once:
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
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11917 $as_echo "ok" >&6; }
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; }
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
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
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. */
11945 int main(int argc, char **argv){
11946 return argv[argc-1][0];
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"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958 CFLAGS="$sav_CFLAGS"
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
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h. */
11971 #include <stdlib.h>
11972 #include <stdarg.h>
11973 #include <string.h>
11984 if ac_fn_c_try_compile "$LINENO"; then :
11985 ac_cv_header_stdc=yes
11987 ac_cv_header_stdc=no
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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>
11998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999 $EGREP "memchr" >/dev/null 2>&1; then :
12002 ac_cv_header_stdc=no
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>
12015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12016 $EGREP "free" >/dev/null 2>&1; then :
12019 ac_cv_header_stdc=no
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 :
12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.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))
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))
12045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12050 for (i = 0; i < 256; i++)
12051 if (XOR (islower (i), ISLOWER (i))
12052 || toupper (i) != TOUPPER (i))
12057 if ac_fn_c_try_run "$LINENO"; then :
12060 ac_cv_header_stdc=no
12062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12063 conftest.$ac_objext conftest.beam conftest.$ac_ext
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
12072 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
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
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
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;
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
12104 const char *g = "string";
12105 pcpcc = &g + (g ? g-g : 0);
12106 /* HPUX 7.0 cc rejects these. */
12108 ppc = (char**) pcpcc;
12109 pcpcc = (char const *const *) ppc;
12110 { /* SCO 3.2v4 cc rejects this sort of thing. */
12113 char const *s = 0 ? (char *) 0 : (char const *) 0;
12118 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12119 int x[] = {25, 17};
12120 const int *foo = &x[0];
12123 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12124 typedef const int *iptr;
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;
12133 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12134 const int foo = 10;
12135 if (!foo) return 0;
12137 return !cs[0] && !zero.x;
12144 if ac_fn_c_try_compile "$LINENO"; then :
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
12155 $as_echo "#define const /**/" >>confdefs.h
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 :
12164 cat >>confdefs.h <<_ACEOF
12165 #define size_t unsigned int
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
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177 #include <sys/types.h>
12184 int *p = &tm.tm_sec;
12190 if ac_fn_c_try_compile "$LINENO"; then :
12191 ac_cv_struct_tm=time.h
12193 ac_cv_struct_tm=sys/time.h
12195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
12201 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
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
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) {
12223 int * $ac_kw t = s;
12230 if ac_fn_c_try_compile "$LINENO"; then :
12231 ac_cv_c_restrict=$ac_kw
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 test "$ac_cv_c_restrict" != no && break
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12239 $as_echo "$ac_cv_c_restrict" >&6; }
12241 case $ac_cv_c_restrict in
12243 no) $as_echo "#define restrict /**/" >>confdefs.h
12245 *) cat >>confdefs.h <<_ACEOF
12246 #define restrict $ac_cv_c_restrict
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
12258 if test "$cross_compiling" = yes; then :
12259 ac_cv_func_strtod=no
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12264 $ac_includes_default
12272 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12273 char *string = " +69";
12276 value = strtod (string, &term);
12277 if (value != 69 || term != (string + 4))
12282 /* Under Solaris 2.4, strtod returns the wrong value for the
12283 terminating character under some conditions. */
12284 char *string = "NaN";
12286 strtod (string, &term);
12287 if (term != string && *(term - 1) == 0)
12294 if ac_fn_c_try_run "$LINENO"; then :
12295 ac_cv_func_strtod=yes
12297 ac_cv_func_strtod=no
12299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12300 conftest.$ac_objext conftest.beam conftest.$ac_ext
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"
12313 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12314 if test "x$ac_cv_func_pow" = xyes; then :
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
12324 ac_check_lib_save_LIBS=$LIBS
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
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. */
12344 if ac_fn_c_try_link "$LINENO"; then :
12345 ac_cv_lib_m_pow=yes
12349 rm -f core conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext conftest.$ac_ext
12351 LIBS=$ac_check_lib_save_LIBS
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 :
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;}
12366 for ac_func in memset
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
12375 as_fn_error $? "memset not found in libc" "$LINENO" 5
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
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
12393 ac_check_lib_save_LIBS=$LIBS
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
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. */
12413 if ac_fn_c_try_link "$LINENO"; then :
12414 ac_cv_lib_m_pow=yes
12418 rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420 LIBS=$ac_check_lib_save_LIBS
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
12432 as_fn_error $? "cannot find pow" "$LINENO" 5
12439 # Check whether --with-zlib-prefix was given.
12440 if test "${with_zlib_prefix+set}" = set; then :
12441 withval=$with_zlib_prefix; ZPREFIX=${withval}
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
12451 ac_check_lib_save_LIBS=$LIBS
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
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. */
12462 char zlibVersion ();
12466 return zlibVersion ();
12471 if ac_fn_c_try_link "$LINENO"; then :
12472 ac_cv_lib_z_zlibVersion=yes
12474 ac_cv_lib_z_zlibVersion=no
12476 rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12478 LIBS=$ac_check_lib_save_LIBS
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
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
12496 ac_check_lib_save_LIBS=$LIBS
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
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. */
12507 char ${ZPREFIX}zlibVersion ();
12511 return ${ZPREFIX}zlibVersion ();
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 eval "$as_ac_Lib=yes"
12519 eval "$as_ac_Lib=no"
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
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
12536 as_fn_error $? "zlib not installed" "$LINENO" 5
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
12550 ac_check_lib_save_LIBS=$LIBS
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
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. */
12561 char feenableexcept ();
12565 return feenableexcept ();
12570 if ac_fn_c_try_link "$LINENO"; then :
12571 ac_cv_lib_m_feenableexcept=yes
12573 ac_cv_lib_m_feenableexcept=no
12575 rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
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
12590 for ac_func in feenableexcept
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
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; }
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12614 if test "$have_solaris_ld" = "yes"; then
12615 HAVE_SOLARIS_LD_TRUE=
12616 HAVE_SOLARIS_LD_FALSE='#'
12618 HAVE_SOLARIS_LD_TRUE='#'
12619 HAVE_SOLARIS_LD_FALSE=
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.
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; }
12636 if test "$have_solaris_ld" = "yes"; then
12637 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
12639 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
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; }
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;}
12656 if test "$have_ld_version_script" = "yes"; then
12657 HAVE_LD_VERSION_SCRIPT_TRUE=
12658 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12660 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12661 HAVE_LD_VERSION_SCRIPT_FALSE=
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__::"`
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12674 $as_echo "$SYMBOL_PREFIX" >&6; }
12677 # Substitutions for .in files
12683 # Additional arguments (and substitutions)
12684 # Allow the pkg-config directory to be set
12686 # Check whether --with-pkgconfigdir was given.
12687 if test "${with_pkgconfigdir+set}" = set; then :
12688 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12690 pkgconfigdir='${libdir}/pkgconfig'
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12696 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12698 # Make the *-config binary config scripts optional
12700 # Check whether --with-binconfigs was given.
12701 if test "${with_binconfigs+set}" = set; then :
12702 withval=$with_binconfigs; if test "${withval}" = no; then
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;}
12707 binconfigs='${binconfigs}'
12710 binconfigs='${binconfigs}'
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
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}
12726 if test "${with_libpng_prefix:-no}" != "no"; then
12727 DO_PNG_PREFIX_TRUE=
12728 DO_PNG_PREFIX_FALSE='#'
12730 DO_PNG_PREFIX_TRUE='#'
12731 DO_PNG_PREFIX_FALSE=
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
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
12746 $as_echo "#define PNG_NO_ARM_NEON /**/" >>confdefs.h
12750 $as_echo "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
12754 $as_echo "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
12758 $as_echo "#define PNG_ARM_NEON_SUPPORTED /**/" >>confdefs.h
12761 as_fn_error $? "arm-neon: option value required (off/check/api/on)" "$LINENO" 5;;
12765 if test "${enable_arm_neon:-no}" != "no"; then
12767 PNG_ARM_NEON_FALSE='#'
12769 PNG_ARM_NEON_TRUE='#'
12770 PNG_ARM_NEON_FALSE=
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;}
12777 # Config files, substituting as above
12778 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
12780 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
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.
12790 # config.status only pays attention to the cache file if you give it
12791 # the --recheck option to rerun configure.
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.
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.
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
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;} ;;
12814 _ | IFS | as_nl) ;; #(
12815 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12816 *) { eval $ac_var=; unset $ac_var;} ;;
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 \.
12828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12831 # `set' quotes correctly as required by POSIX, so do not add quotes.
12832 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12841 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12843 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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"
12853 case $cache_file in #(
12855 mv -f confcache "$cache_file"$$ &&
12856 mv -f "$cache_file"$$ "$cache_file" ;; #(
12858 mv -f confcache "$cache_file" ;;
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;}
12869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12870 # Let make expand exec_prefix.
12871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12873 DEFS=-DHAVE_CONFIG_H
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'
12887 LIBOBJS=$ac_libobjs
12889 LTLIBOBJS=$ac_ltlibobjs
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
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12899 $as_echo "done" >&6; }
12900 if test -n "$EXEEXT"; then
12902 am__EXEEXT_FALSE='#'
12904 am__EXEEXT_TRUE='#'
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
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
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
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
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
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
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
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
12941 : "${CONFIG_STATUS=./config.status}"
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;}
12948 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
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.
12956 ac_cs_recheck=false
12959 SHELL=\${CONFIG_SHELL-$SHELL}
12962 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12963 ## -------------------- ##
12964 ## M4sh Initialization. ##
12965 ## -------------------- ##
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 :
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
12977 case `(set -o) 2>/dev/null` in #(
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'
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'
13007 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13008 as_echo_n_body='eval
13012 expr "X$arg" : "X\\(.*\\)$as_nl";
13013 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13015 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13017 export as_echo_n_body
13018 as_echo_n='sh -c $as_echo_n_body as_echo'
13020 export as_echo_body
13021 as_echo='sh -c $as_echo_body as_echo'
13024 # The user is always right.
13025 if test "${PATH_SEPARATOR+set}" != set; then
13027 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13028 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
13041 # Find who we are. Look in the path if we contain no directory separator.
13044 *[\\/]* ) as_myself=$0 ;;
13045 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13049 test -z "$as_dir" && as_dir=.
13050 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
13061 if test ! -f "$as_myself"; then
13062 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
13085 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
13095 as_status=$1; test $as_status -eq 0 && as_status=1
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
13100 $as_echo "$as_me: error: $2" >&2
13101 as_fn_exit $as_status
13105 # as_fn_set_status STATUS
13106 # -----------------------
13107 # Set $? to STATUS, without forking.
13108 as_fn_set_status ()
13111 } # as_fn_set_status
13113 # as_fn_exit STATUS
13114 # -----------------
13115 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13119 as_fn_set_status $1
13125 # Portably unset VAR.
13128 { eval $1=; unset $1;}
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
13137 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13138 eval 'as_fn_append ()
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 ()
13162 as_val=`expr "$@" || test $? -eq 1`
13167 if expr a : '\(a\)' >/dev/null 2>&1 &&
13168 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13175 as_basename=basename
13180 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13186 as_me=`$as_basename -- "$0" ||
13187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13188 X"$0" : 'X\(//\)$' \| \
13189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13191 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
13212 ECHO_C= ECHO_N= ECHO_T=
13213 case `echo -n x` in #(((((
13215 case `echo 'xy\c'` in
13216 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13218 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13225 rm -f conf$$ conf$$.exe conf$$.file
13226 if test -d conf$$.dir; then
13227 rm -f conf$$.dir/conf$$.file
13230 mkdir conf$$.dir 2>/dev/null
13232 if (echo >conf$$.file) 2>/dev/null; then
13233 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
13241 elif ln conf$$.file conf$$ 2>/dev/null; then
13249 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13250 rmdir conf$$.dir 2>/dev/null
13255 # Create "$as_dir" as a directory, including parents if necessary.
13260 -*) as_dir=./$as_dir;;
13262 test -d "$as_dir" || eval $as_mkdir_p || {
13266 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13267 *) as_qdir=$as_dir;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13280 /^X\(\/\/\)[^/].*/{
13293 test -d "$as_dir" && break
13295 test -z "$as_dirs" || eval "mkdir $as_dirs"
13296 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13300 if mkdir -p . 2>/dev/null; then
13301 as_mkdir_p='mkdir -p "$as_dir"'
13303 test -d ./-p && rmdir ./-p
13308 # as_fn_executable_p FILE
13309 # -----------------------
13310 # Test if FILE is an executable regular file.
13311 as_fn_executable_p ()
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
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'"
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'"
13326 ## ----------------------------------- ##
13327 ## Main body of $CONFIG_STATUS script. ##
13328 ## ----------------------------------- ##
13330 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
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.
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
13340 CONFIG_FILES = $CONFIG_FILES
13341 CONFIG_HEADERS = $CONFIG_HEADERS
13342 CONFIG_LINKS = $CONFIG_LINKS
13343 CONFIG_COMMANDS = $CONFIG_COMMANDS
13346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13351 case $ac_config_files in *"
13352 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13355 case $ac_config_headers in *"
13356 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
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"
13368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
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.
13374 Usage: $0 [OPTION]... [TAG]...
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
13388 Configuration files:
13391 Configuration headers:
13394 Configuration commands:
13397 Report bugs to <png-mng-implement@lists.sourceforge.net>."
13400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13401 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13403 libpng config.status 1.6.2
13404 configured by $0, generated by GNU Autoconf 2.69,
13405 with options \\"\$ac_cs_config\\"
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."
13416 test -n "\$AWK" || AWK=awk
13419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13420 # The default lists apply if the user does not specify any file.
13426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13427 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13443 # Handling of the options.
13444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
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 )
13452 --file | --fil | --fi | --f )
13455 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13456 '') as_fn_error $? "missing file argument" ;;
13458 as_fn_append CONFIG_FILES " '$ac_optarg'"
13459 ac_need_defaults=false;;
13460 --header | --heade | --head | --hea )
13463 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13465 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13466 ac_need_defaults=false;;
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)
13477 # This is an error.
13478 -*) as_fn_error $? "unrecognized option: \`$1'
13479 Try \`$0 --help' for more information." ;;
13481 *) as_fn_append ac_config_targets " $1"
13482 ac_need_defaults=false ;;
13488 ac_configure_extra_args=
13490 if $ac_cs_silent; then
13492 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
13500 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13501 CONFIG_SHELL='$SHELL'
13502 export CONFIG_SHELL
13507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13511 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13512 ## Running $as_me. ##
13518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13522 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
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
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"`'
13665 LTCFLAGS='$LTCFLAGS'
13666 compiler='$compiler_DEFAULT'
13668 # A function that is used when there is no print builtin or printf.
13669 func_fallback_echo ()
13671 eval 'cat <<_LTECHO_EOF
13676 # Quote evaled strings.
13693 deplibs_check_method \
13697 sharedlib_from_linklib_cmd \
13700 archiver_list_spec \
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 \
13724 export_dynamic_flag_spec \
13725 whole_archive_flag_spec \
13726 compiler_needs_object \
13728 allow_undefined_flag \
13729 no_undefined_flag \
13730 hardcode_libdir_flag_spec \
13731 hardcode_libdir_separator \
13735 variables_saved_for_relink \
13737 library_names_spec \
13739 install_override_mode \
13743 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13744 *[\\\\\\\`\\"\\\$]*)
13745 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13748 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13753 # Double-quote double-evaled strings.
13754 for var in reload_cmds \
13755 old_postinstall_cmds \
13756 old_postuninstall_cmds \
13758 extract_expsyms_cmds \
13759 old_archive_from_new_cmds \
13760 old_archive_from_expsyms_cmds \
13762 archive_expsym_cmds \
13764 module_expsym_cmds \
13765 export_symbols_cmds \
13769 postuninstall_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\\"\\\`\\\\\\""
13778 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13783 ac_aux_dir='$ac_aux_dir'
13784 xsi_shell='$xsi_shell'
13785 lt_shell_append='$lt_shell_append'
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
13796 TIMESTAMP='$TIMESTAMP'
13805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13807 # Handling of arguments.
13808 for ac_config_target in $ac_config_targets
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" ;;
13818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
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
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'.
13842 trap 'exit_status=$?
13843 : "${ac_tmp:=$tmp}"
13844 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13846 trap 'as_fn_exit 1' 1 2 13 15
13848 # Create a (secure) tmp directory for tmp files.
13851 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13855 tmp=./conf$$-$RANDOM
13856 (umask 077 && mkdir "$tmp")
13857 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
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
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\'
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
13877 ac_cs_awk_cr=$ac_cr
13880 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13885 echo "cat >conf$$subs.awk <<_ACEOF" &&
13886 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
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 '^'`
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
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
13899 elif $ac_last_try; then
13900 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13905 rm -f conf$$subs.sh
13907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13908 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13912 s/^/S["/; s/!.*/"]=/
13922 s/\(.\{148\}\)..*/\1/
13924 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13936 s/\(.\{148\}\)..*/\1/
13938 s/["\\]/\\&/g; s/^/"/; s/$/"/
13942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13947 ' <conf$$subs.awk | sed '
13952 ' >>$CONFIG_STATUS || ac_write_fail=1
13953 rm -f conf$$subs.awk
13954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13956 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13957 for (key in S) S_is_set[key] = 1
13963 nfields = split(line, field, "@")
13965 len = length(field[1])
13966 for (i = 2; i < nfields; i++) {
13968 keylen = length(key)
13969 if (S_is_set[key]) {
13971 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13972 len += length(value) + length(field[++i])
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"
13988 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13989 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
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[ ]*=[ ]*/{
14015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14016 fi # test -n "$CONFIG_FILES"
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 ||
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.
14030 # Create a delimiter string that does not exist in confdefs.h, to ease
14031 # handling of long lines.
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
14037 elif $ac_last_try; then
14038 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
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.
14048 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14050 s/.\{148\}/&'"$ac_delim"'/g
14053 s/^[ ]*#[ ]*define[ ][ ]*/ /
14060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14062 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14066 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14067 D["\1"]=" \3\\\\\\n"\\/p
14069 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14074 s/.\{148\}/&'"$ac_delim"'/g
14079 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14082 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14084 ' <confdefs.h | sed '
14085 s/'"$ac_delim"'/"\\\
14086 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14089 for (key in D) D_is_set[key] = 1
14092 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14094 split(line, arg, " ")
14095 if (arg[1] == "#") {
14099 defundef = substr(arg[1], 2)
14102 split(mac1, mac2, "(") #)
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]
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, "*/"
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"
14127 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14132 :[FHLC]) ac_mode=$ac_tag; continue;;
14134 case $ac_mode$ac_tag in
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;;
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 `:'.
14162 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14164 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14166 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14167 as_fn_append ac_file_inputs " '$ac_f'"
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'
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;}
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;;
14190 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14206 /^X\(\/\/\)[^/].*/{
14219 as_dir="$ac_dir"; as_fn_mkdir_p
14223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
14239 .) # We are building in place.
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 ;;
14252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14262 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14263 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14265 ac_MKDIR_P=$MKDIR_P
14267 [\\/$]* | ?:[\\/]* ) ;;
14268 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
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=
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;}
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' ;;
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
14310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
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
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
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;}
14339 rm -f "$ac_tmp/stdin"
14341 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14342 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14350 if test x"$ac_file" != x-; then
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;}
14361 mv "$ac_tmp/config.h" "$ac_file" \
14362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
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
14369 # Compute "$ac_file"'s index in $config_headers.
14372 for _am_header in $config_headers :; do
14373 case $_am_header in
14374 $_am_arg | $_am_arg:* )
14377 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14390 /^X\(\/\/\)[^/].*/{
14402 s/.*/./; q'`/stamp-h$_am_stamp_count
14405 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14406 $as_echo "$as_me: executing $ac_file commands" >&6;}
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 ;;
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 ||
14439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14443 /^X\(\/\/\)[^/].*/{
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
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14485 /^X\(\/\/\)[^/].*/{
14498 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14499 # echo "creating $dirpart/$file"
14500 echo '# dummy' > "$dirpart/$file"
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
14513 cfgfile="${ofile}T"
14514 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14517 cat <<_LT_EOF >> "$cfgfile"
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.
14525 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14526 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14528 # Written by Gordon Matzigkeit, 1996
14530 # This file is part of GNU Libtool.
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.
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.
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.
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.
14554 # The names of the tagged configurations supported by this script.
14557 # ### BEGIN LIBTOOL CONFIG
14559 # A sed program that does not truncate output.
14562 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14563 Xsed="\$SED -e 1s/^X//"
14565 # A grep program that handles long lines.
14571 # A literal string matcher.
14574 # Shell to use when invoking shell scripts.
14577 # An echo program that protects backslashes.
14580 # Which release of libtool.m4 was used?
14581 macro_version=$macro_version
14582 macro_revision=$macro_revision
14584 # Assembler program.
14587 # DLL creation program.
14588 DLLTOOL=$lt_DLLTOOL
14590 # Object dumper program.
14591 OBJDUMP=$lt_OBJDUMP
14593 # Whether or not to build shared libraries.
14594 build_libtool_libs=$enable_shared
14596 # Whether or not to build static libraries.
14597 build_old_libs=$enable_static
14599 # What type of objects to build.
14602 # Whether or not to optimize for fast installation.
14603 fast_install=$enable_fast_install
14605 # The PATH separator for the build system.
14606 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14609 host_alias=$host_alias
14613 # The build system.
14614 build_alias=$build_alias
14618 # A BSD- or MS-compatible name lister.
14621 # Whether we need soft or hard links.
14624 # What is the maximum length of a command?
14625 max_cmd_len=$max_cmd_len
14627 # Object file suffix (normally "o").
14630 # Executable file suffix (normally "").
14633 # whether the shell understands "unset".
14636 # turn spaces into newlines.
14639 # turn newlines into spaces.
14642 # convert \$build file names to \$host format.
14643 to_host_file_cmd=$lt_cv_to_host_file_cmd
14645 # convert \$build files to toolchain format.
14646 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14648 # Method to check whether dependent libraries are shared objects.
14649 deplibs_check_method=$lt_deplibs_check_method
14651 # Command to use when deplibs_check_method = "file_magic".
14652 file_magic_cmd=$lt_file_magic_cmd
14654 # How to find potential files when deplibs_check_method = "file_magic".
14655 file_magic_glob=$lt_file_magic_glob
14657 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14658 want_nocaseglob=$lt_want_nocaseglob
14660 # Command to associate shared and link libraries.
14661 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14666 # Flags to create an archive.
14667 AR_FLAGS=$lt_AR_FLAGS
14669 # How to feed a file listing to the archiver.
14670 archiver_list_spec=$lt_archiver_list_spec
14672 # A symbol stripping program.
14675 # Commands used to install an old-style archive.
14677 old_postinstall_cmds=$lt_old_postinstall_cmds
14678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14680 # Whether to use a lock for old archive extraction.
14681 lock_old_archive_extraction=$lock_old_archive_extraction
14686 # LTCC compiler flags.
14687 LTCFLAGS=$lt_CFLAGS
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
14692 # Transform the output of nm in a proper C declaration.
14693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
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
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
14701 # Specify filename containing input files for \$NM.
14702 nm_file_list_spec=$lt_nm_file_list_spec
14704 # The root where to search for dependent libraries,and in which our libraries should be installed.
14705 lt_sysroot=$lt_sysroot
14707 # The name of the directory that contains temporary libtool files.
14710 # Used to examine libraries when file_magic_cmd begins with "file".
14711 MAGIC_CMD=$MAGIC_CMD
14713 # Must we lock files when doing compilation?
14714 need_locks=$lt_need_locks
14717 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14719 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14720 DSYMUTIL=$lt_DSYMUTIL
14722 # Tool to change global to local symbols on Mac OS X.
14725 # Tool to manipulate fat objects and archives on Mac OS X.
14728 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14731 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14732 OTOOL64=$lt_OTOOL64
14734 # Old archive suffix (normally "a").
14737 # Shared library suffix (normally ".so").
14738 shrext_cmds=$lt_shrext_cmds
14740 # The commands to extract the exported symbol list from a shared archive.
14741 extract_expsyms_cmds=$lt_extract_expsyms_cmds
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
14747 # Do we need the "lib" prefix for modules?
14748 need_lib_prefix=$need_lib_prefix
14750 # Do we need a version for libraries?
14751 need_version=$need_version
14753 # Library versioning type.
14754 version_type=$version_type
14756 # Shared library runtime path variable.
14757 runpath_var=$runpath_var
14759 # Shared library path variable.
14760 shlibpath_var=$shlibpath_var
14762 # Is shlibpath searched before the hard-coded library search path?
14763 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14765 # Format of library name prefix.
14766 libname_spec=$lt_libname_spec
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
14772 # The coded name of the library, if different from the real name.
14773 soname_spec=$lt_soname_spec
14775 # Permission mode override for installation of shared libraries.
14776 install_override_mode=$lt_install_override_mode
14778 # Command to use after installation of a shared archive.
14779 postinstall_cmds=$lt_postinstall_cmds
14781 # Command to use after uninstallation of a shared archive.
14782 postuninstall_cmds=$lt_postuninstall_cmds
14784 # Commands used to finish a libtool library installation in a directory.
14785 finish_cmds=$lt_finish_cmds
14787 # As "finish_cmds", except a single script fragment to be evaled but
14789 finish_eval=$lt_finish_eval
14791 # Whether we should hardcode library paths into libraries.
14792 hardcode_into_libs=$hardcode_into_libs
14794 # Compile-time system search path for libraries.
14795 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14797 # Run-time system search path for libraries.
14798 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14800 # Whether dlopen is supported.
14801 dlopen_support=$enable_dlopen
14803 # Whether dlopen of programs is supported.
14804 dlopen_self=$enable_dlopen_self
14806 # Whether dlopen of statically linked programs is supported.
14807 dlopen_self_static=$enable_dlopen_self_static
14809 # Commands to strip libraries.
14810 old_striplib=$lt_old_striplib
14811 striplib=$lt_striplib
14814 # The linker used to build libraries.
14817 # How to create reloadable object files.
14818 reload_flag=$lt_reload_flag
14819 reload_cmds=$lt_reload_cmds
14821 # Commands used to build an old-style archive.
14822 old_archive_cmds=$lt_old_archive_cmds
14824 # A language specific compiler.
14827 # Is the compiler the GNU compiler?
14830 # Compiler flag to turn off builtin functions.
14831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14833 # Additional compiler flags for building library objects.
14834 pic_flag=$lt_lt_prog_compiler_pic
14836 # How to pass a linker flag through the compiler.
14837 wl=$lt_lt_prog_compiler_wl
14839 # Compiler flag to prevent dynamic linking.
14840 link_static_flag=$lt_lt_prog_compiler_static
14842 # Does compiler simultaneously support -c and -o options?
14843 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14845 # Whether or not to add -lc for building shared libraries.
14846 build_libtool_need_lc=$archive_cmds_need_lc
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
14851 # Compiler flag to allow reflexive dlopens.
14852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14854 # Compiler flag to generate shared objects directly from archives.
14855 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14857 # Whether the compiler copes with passing no objects directly.
14858 compiler_needs_object=$lt_compiler_needs_object
14860 # Create an old-style archive from a shared archive.
14861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
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
14866 # Commands used to build a shared archive.
14867 archive_cmds=$lt_archive_cmds
14868 archive_expsym_cmds=$lt_archive_expsym_cmds
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
14875 # Whether we are building with GNU ld or not.
14876 with_gnu_ld=$lt_with_gnu_ld
14878 # Flag that allows shared libraries with undefined symbols to be built.
14879 allow_undefined_flag=$lt_allow_undefined_flag
14881 # Flag that enforces no undefined symbols.
14882 no_undefined_flag=$lt_no_undefined_flag
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
14888 # Whether we need a single "-rpath" flag with a separated argument.
14889 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14891 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14892 # DIR into the resulting binary.
14893 hardcode_direct=$hardcode_direct
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
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
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
14909 # Set to "yes" if building a shared library automatically hardcodes DIR
14910 # into the library and all subsequent libraries and executables linked
14912 hardcode_automatic=$hardcode_automatic
14914 # Set to yes if linker adds runtime paths of dependent libraries
14915 # to runtime path list.
14916 inherit_rpath=$inherit_rpath
14918 # Whether libtool must link a program against all its dependency libraries.
14919 link_all_deplibs=$link_all_deplibs
14921 # Set to "yes" if exported symbols are required.
14922 always_export_symbols=$always_export_symbols
14924 # The commands to list exported symbols.
14925 export_symbols_cmds=$lt_export_symbols_cmds
14927 # Symbols that should not be listed in the preloaded symbols.
14928 exclude_expsyms=$lt_exclude_expsyms
14930 # Symbols that must always be exported.
14931 include_expsyms=$lt_include_expsyms
14933 # Commands necessary for linking programs (against libraries) with templates.
14934 prelink_cmds=$lt_prelink_cmds
14936 # Commands necessary for finishing linking programs.
14937 postlink_cmds=$lt_postlink_cmds
14939 # Specify filename containing input files.
14940 file_list_spec=$lt_file_list_spec
14942 # How to hardcode a shared library path into an executable.
14943 hardcode_action=$hardcode_action
14945 # ### END LIBTOOL CONFIG
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
14957 export COLLECT_NAMES
14964 ltmain="$ac_aux_dir/ltmain.sh"
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)
14974 if test x"$xsi_shell" = xyes; then
14975 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14979 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14980 \ * ) func_dirname_result="${3}" ;;\
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=:
14988 sed -e '/^func_basename ()$/,/^} # func_basename /c\
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=:
14998 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14999 func_dirname_and_basename ()\
15002 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15003 \ * ) func_dirname_result="${3}" ;;\
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=:
15012 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
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=:
15026 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15027 func_split_long_opt ()\
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=:
15037 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15038 func_split_short_opt ()\
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=:
15048 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15052 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15053 \ *) func_lo2o_result=${1} ;;\
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=:
15061 sed -e '/^func_xform ()$/,/^} # func_xform /c\
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=:
15071 sed -e '/^func_arith ()$/,/^} # func_arith /c\
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=:
15081 sed -e '/^func_len ()$/,/^} # func_len /c\
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=:
15092 if test x"$lt_shell_append" = xyes; then
15093 sed -e '/^func_append ()$/,/^} # func_append /c\
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=:
15103 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15104 func_append_quoted ()\
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=:
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=:
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=:
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;}
15133 mv -f "$cfgfile" "$ofile" ||
15134 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15138 "libpng-config":F) chmod +x libpng-config ;;
15146 ac_clean_files=$ac_clean_files_save
15148 test $ac_write_fail = 0 ||
15149 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
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
15162 ac_config_status_args=
15163 test "$silent" = yes &&
15164 ac_config_status_args="$ac_config_status_args --quiet"
15166 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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
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;}